| ... | ... | @@ -22,7 +22,7 @@ | 
|  |  | :options="queue_config.cascade.server_hostList" | 
|  |  | :show-all-levels="false" | 
|  |  | :change-on-select="false" | 
|  |  | clearable | 
|  |  | clearable filterable | 
|  |  | @change="cascadeQueryChange" | 
|  |  | :props="queue_config.cascade.defaultParams" | 
|  |  | placeholder="请选择所属虚拟主机"></el-cascader> | 
| ... | ... | @@ -127,19 +127,25 @@ | 
|  |  | </el-input> | 
|  |  | </el-form-item> | 
|  |  |  | 
|  |  | <el-form-item label="用户名称:" prop="userId"> | 
|  |  | <el-select v-model="queue_addForm.userId" clearable | 
|  |  | style="width:240px" size="small" filterable | 
|  |  | placeholder="请选择用户"> | 
|  |  | <el-option | 
|  |  | v-for="item in (queue_config.userInfoList)" | 
|  |  | :key="item.id" | 
|  |  | :label="item.username" | 
|  |  | :value="item.id"> | 
|  |  | </el-option> | 
|  |  | </el-select> | 
|  |  | <el-form-item label="用户名称:" prop="username"> | 
|  |  | <el-input v-model="queue_addForm.username" style="width:240px" size="small" clearable | 
|  |  | placeholder="请输入用户名称"> | 
|  |  | </el-input> | 
|  |  | </el-form-item> | 
|  |  |  | 
|  |  | <!--                        <el-form-item label="用户名称:" prop="userId">--> | 
|  |  | <!--                            <el-select v-model="queue_addForm.userId" clearable--> | 
|  |  | <!--                                       style="width:240px" size="small" filterable--> | 
|  |  | <!--                                       placeholder="请选择用户">--> | 
|  |  | <!--                                <el-option--> | 
|  |  | <!--                                        v-for="item in (queue_config.userInfoList)"--> | 
|  |  | <!--                                        :key="item.id"--> | 
|  |  | <!--                                        :label="item.username"--> | 
|  |  | <!--                                        :value="item.id">--> | 
|  |  | <!--                                </el-option>--> | 
|  |  | <!--                            </el-select>--> | 
|  |  | <!--                        </el-form-item>--> | 
|  |  |  | 
|  |  | <el-form-item label="所属虚拟主机:" prop="virtualHostId"> | 
|  |  | <el-cascader | 
|  |  | clearable style="width: 240px" size="small" | 
| ... | ... | @@ -212,19 +218,25 @@ | 
|  |  | </el-input> | 
|  |  | </el-form-item> | 
|  |  |  | 
|  |  | <el-form-item label="用户名称:" prop="userId"> | 
|  |  | <el-select v-model="queue_editForm.userId" clearable disabled | 
|  |  | style="width:240px" size="small" filterable | 
|  |  | placeholder="请选择用户"> | 
|  |  | <el-option | 
|  |  | v-for="item in (queue_config.userInfoList)" | 
|  |  | :key="item.id" | 
|  |  | :label="item.username" | 
|  |  | :value="item.id"> | 
|  |  | </el-option> | 
|  |  | </el-select> | 
|  |  | <el-form-item label="用户名称:" prop="username"> | 
|  |  | <el-input v-model="queue_editForm.username" placeholder="请输入用户名称" | 
|  |  | style="width:240px" size="small" clearable disabled> | 
|  |  | </el-input> | 
|  |  | </el-form-item> | 
|  |  |  | 
|  |  | <!--                        <el-form-item label="用户名称:" prop="userId">--> | 
|  |  | <!--                            <el-select v-model="queue_editForm.userId" clearable disabled--> | 
|  |  | <!--                                       style="width:240px" size="small" filterable--> | 
|  |  | <!--                                       placeholder="请选择用户">--> | 
|  |  | <!--                                <el-option--> | 
|  |  | <!--                                        v-for="item in (queue_config.userInfoList)"--> | 
|  |  | <!--                                        :key="item.id"--> | 
|  |  | <!--                                        :label="item.username"--> | 
|  |  | <!--                                        :value="item.id">--> | 
|  |  | <!--                                </el-option>--> | 
|  |  | <!--                            </el-select>--> | 
|  |  | <!--                        </el-form-item>--> | 
|  |  |  | 
|  |  | <el-form-item label="所属虚拟主机:" prop="virtualHostId"> | 
|  |  | <el-cascader | 
|  |  | disabled clearable style="width: 240px" size="small" | 
| ... | ... | @@ -353,7 +365,9 @@ | 
|  |  | queue_addForm: { | 
|  |  | // 队列名称 | 
|  |  | queueName: '', | 
|  |  | // 用户id | 
|  |  | // 用户名称 | 
|  |  | username: '', | 
|  |  | // 用户id(该字段抛弃) | 
|  |  | userId: '', | 
|  |  | // 所属虚拟机id | 
|  |  | virtualHostId: '', | 
| ... | ... | @@ -402,6 +416,10 @@ | 
|  |  | queueName: [ | 
|  |  | {required: true, message: '请输入队列名称', trigger: ['blur', 'change']}, | 
|  |  | ], | 
|  |  | // 用户名称 | 
|  |  | username: [ | 
|  |  | {required: true, message: '请输入用户名称', trigger: ['blur', 'change']}, | 
|  |  | ], | 
|  |  | // 所属虚拟机id | 
|  |  | virtualHostId: [ | 
|  |  | {required: true, message: '请选择所属虚拟机', trigger: ['blur', 'change']}, | 
| ... | ... | @@ -431,6 +449,10 @@ | 
|  |  | queueName: [ | 
|  |  | {required: true, message: '请输入队列名称', trigger: ['blur', 'change']}, | 
|  |  | ], | 
|  |  | // 用户名称 | 
|  |  | username: [ | 
|  |  | {required: true, message: '请输入用户名称', trigger: ['blur', 'change']}, | 
|  |  | ], | 
|  |  | // 所属虚拟机id | 
|  |  | virtualHostId: [ | 
|  |  | {required: true, message: '请选择所属虚拟机', trigger: ['blur', 'change']}, | 
| ... | ... | @@ -495,7 +517,7 @@ | 
|  |  | if (res.code !== '200') { | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.listLoading = false; | 
|  |  | return this.$message.error('获取队列-列表,失败!'); | 
|  |  | return this.$message.error(res.msg); | 
|  |  | } | 
|  |  | // 获取列表数据 | 
|  |  | this.queue_page.queueList = res.data.list; | 
| ... | ... | @@ -503,7 +525,7 @@ | 
|  |  | this.queue_page.total = res.data.total; | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.listLoading = false; | 
|  |  | this.$message.success('获取队列-列表,成功!'); | 
|  |  | this.$message.success(res.msg); | 
|  |  | }).catch(error => { | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.listLoading = false; | 
| ... | ... | @@ -537,22 +559,12 @@ | 
|  |  | let res = response.data; | 
|  |  | // 添加失败 | 
|  |  | if (res.code !== '200') { | 
|  |  | if (res.code === '400') { | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.addLoading = false; | 
|  |  | return this.$message.error('该队列信息,已存在'); | 
|  |  | } | 
|  |  | if (res.code === '999') { | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.addLoading = false; | 
|  |  | return this.$message.error('未知异常,添加队列,失败'); | 
|  |  | } | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.addLoading = false; | 
|  |  | return this.$message.error('添加队列,失败'); | 
|  |  | return this.$message.error(res.msg); | 
|  |  | } | 
|  |  | // 添加,成功 | 
|  |  | this.$message.success('添加队列,成功'); | 
|  |  | this.$message.success(res.msg); | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.addLoading = false; | 
|  |  | // 隐藏对话框 | 
| ... | ... | @@ -593,23 +605,13 @@ | 
|  |  | updateBusQueue(this.queue_editForm).then((response) => { | 
|  |  | let res = response.data; | 
|  |  | if (res.code !== '200') { | 
|  |  | if (res.code === '400') { | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.editLoading = false; | 
|  |  | return this.$message.error('该队列信息,已存在'); | 
|  |  | } | 
|  |  | if (res.code === '999') { | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.editLoading = false; | 
|  |  | return this.$message.error('未知异常,编辑队列信息,失败'); | 
|  |  | } | 
|  |  | //关闭加载 | 
|  |  | this.queue_loading.editLoading = false; | 
|  |  | return this.$message.error('编辑队列信息,失败'); | 
|  |  | return this.$message.error(res.msg); | 
|  |  | } | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.editLoading = false; | 
|  |  | this.$message.success('编辑队列信息,成功!'); | 
|  |  | this.$message.success(res.msg); | 
|  |  | // 隐藏对话框 | 
|  |  | this.queue_dialog.editDialog = false; | 
|  |  | // 刷新列表 | 
| ... | ... | @@ -639,11 +641,11 @@ | 
|  |  | if (res.code !== '200') { | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.delLoading = false; | 
|  |  | return this.$message.error('删除队列信息,失败'); | 
|  |  | return this.$message.error(res.msg); | 
|  |  | } | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.delLoading = false; | 
|  |  | this.$message.success('删除队列信息,成功!'); | 
|  |  | this.$message.success(res.msg); | 
|  |  | // 刷新列表 | 
|  |  | this.queue_getList(); | 
|  |  | }).catch(error => { | 
| ... | ... | @@ -679,9 +681,9 @@ | 
|  |  | if (res.code !== '200') { | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.batchDelLoading = false; | 
|  |  | return this.$message.error('批量删除队列信息,失败'); | 
|  |  | return this.$message.error(res.msg); | 
|  |  | } | 
|  |  | this.$message.success('批量删除队列信息,成功!'); | 
|  |  | this.$message.success(res.msg); | 
|  |  | // 关闭加载 | 
|  |  | this.queue_loading.batchDelLoading = false; | 
|  |  | // 刷新列表 | 
| ... | ... | @@ -702,7 +704,7 @@ | 
|  |  | getServerAndHostList().then((response) => { | 
|  |  | let res = response.data; | 
|  |  | if (res.code !== '200') { | 
|  |  | return this.$message.error('获取服务器与虚拟主机信息,失败!'); | 
|  |  | return this.$message.error(res.msg); | 
|  |  | } | 
|  |  | // 获取列表数据 | 
|  |  | this.queue_config.cascade.server_hostList = res.data; | 
| ... | ... | @@ -742,7 +744,7 @@ | 
|  |  | getUserInfoList().then((response) => { | 
|  |  | let res = response.data; | 
|  |  | if (res.code !== '200') { | 
|  |  | return this.$message.error('获取路由键列表,失败!'); | 
|  |  | return this.$message.error(res.msg); | 
|  |  | } | 
|  |  | // 获取列表数据 | 
|  |  | this.queue_config.userInfoList = res.data; | 
... | ... |  |