...
|
...
|
@@ -98,7 +98,7 @@ |
|
|
<div>
|
|
|
<el-dialog title="添加MQ用户信息"
|
|
|
:visible.sync="user_dialog.addDialog"
|
|
|
v-loading="user_loading.addLoading" element-loading-text="正在添加MQ用户信息,拼命加载中"
|
|
|
v-loading="user_loading.addLoading" element-loading-text="正在添加用户关系,拼命加载中"
|
|
|
style="margin-top: -20px"
|
|
|
width="50%" text-align="center" @close="user_addDialogClosed">
|
|
|
<el-form :inline="true" label-width="145px" status-icon style="margin-top: -10px"
|
...
|
...
|
@@ -108,16 +108,6 @@ |
|
|
placeholder="请输入用户名称">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
<!-- <el-form-item label="用户密码:" prop="firstPassword">-->
|
|
|
<!-- <el-input type="password" v-model="user_addForm.firstPassword" style="width:270px"-->
|
|
|
<!-- size="small" clearable show-password placeholder="请输入用户密码"></el-input>-->
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
<!-- <el-form-item label="重新输入密码:" prop="password">-->
|
|
|
<!-- <el-input type="password" v-model="user_addForm.password" style="width:270px"-->
|
|
|
<!-- size="small" clearable show-password placeholder="请重新输入密码"></el-input>-->
|
|
|
<!-- </el-form-item>-->
|
|
|
<el-form-item label="真实姓名:" prop="realName">
|
|
|
<el-input v-model="user_addForm.realName" style="width:270px" size="small" clearable
|
|
|
placeholder="请输入真实姓名">
|
...
|
...
|
@@ -150,6 +140,7 @@ |
|
|
<div>
|
|
|
<el-dialog title="编辑MQ用户关系"
|
|
|
:visible.sync="user_dialog.editDialog"
|
|
|
v-loading="user_loading.editLoading" element-loading-text="正在拼命编辑,请稍等..."
|
|
|
style="margin-top: -20px"
|
|
|
width="50%" text-align="center" @close="user_editDialogClosed">
|
|
|
<el-form :inline="true" label-width="145px" status-icon style="margin-top: -10px"
|
...
|
...
|
@@ -162,34 +153,6 @@ |
|
|
<el-input v-model="user_editForm.serverName" style="width:300px" size="small" clearable readonly
|
|
|
placeholder="请输入服务器名称"></el-input>
|
|
|
</el-form-item>
|
|
|
<!-- <br/>-->
|
|
|
<!-- <el-form-item label="现有用户关系:" prop="virtualHostIds">-->
|
|
|
<!-- <el-select v-model="user_editForm.virtualHostIds" prefix-icon="el-icon-search" clearable-->
|
|
|
<!-- style="width:300px" size="small" filterable multiple disabled-->
|
|
|
<!-- @change="user_editChange"-->
|
|
|
<!-- placeholder="选择用户关系">-->
|
|
|
<!-- <el-option-->
|
|
|
<!-- v-for="item in (user_config.virtualHostList)"-->
|
|
|
<!-- :key="item.id"-->
|
|
|
<!-- :label="item.virtualHostName"-->
|
|
|
<!-- :value="item.id">-->
|
|
|
<!-- </el-option>-->
|
|
|
<!-- </el-select>-->
|
|
|
<!-- </el-form-item>-->
|
|
|
<!-- <br/>-->
|
|
|
<!-- <el-form-item label="选择用户关系:" prop="virtualHostId">-->
|
|
|
<!-- <el-select v-model="user_editForm.virtualHostId" prefix-icon="el-icon-search" clearable-->
|
|
|
<!-- style="width:300px" size="small" filterable multiple-->
|
|
|
<!-- @change="user_editChange"-->
|
|
|
<!-- placeholder="选择用户关系">-->
|
|
|
<!-- <el-option-->
|
|
|
<!-- v-for="item in (user_config.virtualHostList)"-->
|
|
|
<!-- :key="item.id"-->
|
|
|
<!-- :label="item.virtualHostName"-->
|
|
|
<!-- :value="item.id">-->
|
|
|
<!-- </el-option>-->
|
|
|
<!-- </el-select>-->
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
<br/>
|
|
|
<el-form-item label="选择用户关系:">
|
...
|
...
|
@@ -229,7 +192,7 @@ |
|
|
deleteUserInfo,
|
|
|
deleteUserRelation,
|
|
|
getHostList,
|
|
|
batchDeleteUser,updateUserInfo,
|
|
|
batchDeleteUser, updateUserInfo,
|
|
|
batchDeleteUserRelation
|
|
|
} from "../../api/message_bus";
|
|
|
|
...
|
...
|
@@ -424,9 +387,9 @@ |
|
|
this.user_addForm.virtualHostId = this.$refs.tree.getCheckedKeys().join();
|
|
|
if (this.user_addForm.virtualHostId === '') {
|
|
|
return this.$confirm('用户关系不能为空,请务必选择用户关系', '警告', {
|
|
|
confirmButtonText: '确定',
|
|
|
confirmButtonText: '好的',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
type: 'error'
|
|
|
}
|
|
|
)
|
|
|
}
|
...
|
...
|
@@ -445,7 +408,13 @@ |
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}
|
|
|
)
|
|
|
).then(() => {
|
|
|
this.user_loading.addLoading = false;
|
|
|
// 隐藏对话框
|
|
|
this.user_dialog.addDialog = false;
|
|
|
// 刷新列表
|
|
|
this.user_getList();
|
|
|
})
|
|
|
}
|
|
|
// 关闭加载
|
|
|
this.user_loading.addLoading = false;
|
...
|
...
|
@@ -496,13 +465,11 @@ |
|
|
* user,编辑功能
|
|
|
*/
|
|
|
user_edit() {
|
|
|
console.log(this.user_editForm.virtualHostId)
|
|
|
console.log(this.user_editForm)
|
|
|
if (this.user_editForm.virtualHostId === '') {
|
|
|
return this.$confirm('用户关系不能为空,请务必选择用户关系', '警告', {
|
|
|
confirmButtonText: '确定',
|
|
|
confirmButtonText: '好的',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
type: 'error'
|
|
|
}
|
|
|
)
|
|
|
}
|
...
|
...
|
@@ -616,13 +583,11 @@ |
|
|
username: usernames[i],
|
|
|
serverName: serverNames[i],
|
|
|
}
|
|
|
console.log(param)
|
|
|
params.push(param)
|
|
|
}
|
|
|
} else {
|
|
|
return this.$message.error("批量删除用户失败,请仔细检查");
|
|
|
}
|
|
|
console.log(params)
|
|
|
this.$confirm('此操作永久删除该用户, 是否继续?', '警告', {
|
|
|
confirmButtonText: '确定删除',
|
|
|
cancelButtonText: '取消',
|
...
|
...
|
@@ -657,7 +622,6 @@ |
|
|
*/
|
|
|
user_batchRemoveRelation() {
|
|
|
const ids = this.user_page.selectList.map(item => item.id).toString();
|
|
|
console.log(ids)
|
|
|
const param = {
|
|
|
id: ids,
|
|
|
}
|
...
|
...
|
|