md
This commit is contained in:
parent
8dd2a16b99
commit
1be4e47ba7
@ -87,6 +87,18 @@ export function listChildUser(query) {
|
||||
}
|
||||
|
||||
|
||||
export function delChildUser(userId) {
|
||||
return request({
|
||||
url: '/oms2c/emisStaff/delChildUser/' + userId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -7,18 +7,8 @@
|
||||
placeholder="请输入角色名称"
|
||||
clearable
|
||||
style="width: 240px"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="权限字符" prop="roleKey">
|
||||
<el-input
|
||||
v-model="queryParams.roleKey"
|
||||
placeholder="请输入权限字符"
|
||||
clearable
|
||||
style="width: 240px"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="状态" prop="status">
|
||||
<el-select
|
||||
v-model="queryParams.status"
|
||||
|
||||
@ -136,16 +136,17 @@
|
||||
<el-input v-model="form.userName" placeholder="系统自动生成" maxlength="30" disabled />
|
||||
</el-form-item>
|
||||
</el-col> -->
|
||||
<el-col :span="12">
|
||||
<el-form-item label="名称" prop="nickName">
|
||||
<el-input v-model="form.nickName" placeholder="请输入名称" maxlength="30" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="手机号码" prop="phone">
|
||||
<el-input v-model="form.phone" placeholder="请输入手机号码" maxlength="11" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="呢称" prop="nickName">
|
||||
<el-input v-model="form.nickName" placeholder="请输入呢称" maxlength="30" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" v-if="form.id == undefined">
|
||||
<el-form-item label="用户密码" prop="password">
|
||||
<el-input v-model="form.password" placeholder="请输入用户密码" type="password" maxlength="20" show-password/>
|
||||
@ -218,7 +219,7 @@
|
||||
|
||||
<script>
|
||||
import { listOmsUser, getOmsUserInfo, delUser, addUser, updateUser, resetUserPwd, changeUserStatus } from "@/api/system/user";
|
||||
import { addChildUser,listChildUser } from "@/api/oms/emisStaff";
|
||||
import {listChildUser, addChildUser,delChildUser } from "@/api/oms/emisStaff";
|
||||
|
||||
import { getToken } from "@/utils/auth";
|
||||
|
||||
@ -375,6 +376,7 @@ export default {
|
||||
sex: undefined,
|
||||
status: "0",
|
||||
remark: undefined,
|
||||
blOpenOms:undefined,
|
||||
roleIds: []
|
||||
};
|
||||
this.resetForm("form");
|
||||
@ -415,6 +417,7 @@ export default {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加子用户";
|
||||
this.form.blOpenOms="1";
|
||||
this.form.password = this.initPassword;
|
||||
|
||||
},
|
||||
@ -473,8 +476,8 @@ export default {
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除用户编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delUser(ids);
|
||||
this.$modal.confirm('是否确认删除子账号?').then(function() {
|
||||
return delChildUser(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user