This commit is contained in:
linfso 2025-06-10 16:43:12 +08:00
parent 8dd2a16b99
commit 1be4e47ba7
3 changed files with 23 additions and 18 deletions

View File

@ -87,6 +87,18 @@ export function listChildUser(query) {
} }
export function delChildUser(userId) {
return request({
url: '/oms2c/emisStaff/delChildUser/' + userId,
method: 'delete'
})
}

View File

@ -7,18 +7,8 @@
placeholder="请输入角色名称" placeholder="请输入角色名称"
clearable clearable
style="width: 240px" style="width: 240px"
@keyup.enter.native="handleQuery"
/> />
</el-form-item> </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-form-item label="状态" prop="status">
<el-select <el-select
v-model="queryParams.status" v-model="queryParams.status"

View File

@ -136,16 +136,17 @@
<el-input v-model="form.userName" placeholder="系统自动生成" maxlength="30" disabled /> <el-input v-model="form.userName" placeholder="系统自动生成" maxlength="30" disabled />
</el-form-item> </el-form-item>
</el-col> --> </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-col :span="12">
<el-form-item label="手机号码" prop="phone"> <el-form-item label="手机号码" prop="phone">
<el-input v-model="form.phone" placeholder="请输入手机号码" maxlength="11" /> <el-input v-model="form.phone" placeholder="请输入手机号码" maxlength="11" />
</el-form-item> </el-form-item>
</el-col> </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-col :span="12" v-if="form.id == undefined">
<el-form-item label="用户密码" prop="password"> <el-form-item label="用户密码" prop="password">
<el-input v-model="form.password" placeholder="请输入用户密码" type="password" maxlength="20" show-password/> <el-input v-model="form.password" placeholder="请输入用户密码" type="password" maxlength="20" show-password/>
@ -218,7 +219,7 @@
<script> <script>
import { listOmsUser, getOmsUserInfo, delUser, addUser, updateUser, resetUserPwd, changeUserStatus } from "@/api/system/user"; 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"; import { getToken } from "@/utils/auth";
@ -375,6 +376,7 @@ export default {
sex: undefined, sex: undefined,
status: "0", status: "0",
remark: undefined, remark: undefined,
blOpenOms:undefined,
roleIds: [] roleIds: []
}; };
this.resetForm("form"); this.resetForm("form");
@ -415,6 +417,7 @@ export default {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "添加子用户"; this.title = "添加子用户";
this.form.blOpenOms="1";
this.form.password = this.initPassword; this.form.password = this.initPassword;
}, },
@ -473,8 +476,8 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除用户编号为"' + ids + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除子账号?').then(function() {
return delUser(ids); return delChildUser(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");