|
|
|
@ -28,7 +28,7 @@
|
|
|
|
|
<el-button-group>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd(0)">新增</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -133,7 +133,7 @@
|
|
|
|
|
<el-button-group>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd(1)">新增</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -236,20 +236,16 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="状态" prop="status">
|
|
|
|
|
<el-radio-group v-model="form.status" >
|
|
|
|
|
<el-radio
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
>{{ dict.label }}
|
|
|
|
|
</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="供应商角色" prop="isCustomer">
|
|
|
|
|
<el-radio-group v-model="form.isCustomer">
|
|
|
|
|
<el-radio :label="0">否</el-radio>
|
|
|
|
|
<el-radio :label="1">是</el-radio>
|
|
|
|
|
<el-radio label="0" >正常</el-radio>
|
|
|
|
|
<el-radio label="1" >禁用</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!--<el-form-item label="供应商角色" prop="isCustomer">-->
|
|
|
|
|
<!-- <el-radio-group v-model="form.isCustomer">-->
|
|
|
|
|
<!-- <el-radio :label="0">否</el-radio>-->
|
|
|
|
|
<!-- <el-radio :label="1">是</el-radio>-->
|
|
|
|
|
<!-- </el-radio-group>-->
|
|
|
|
|
<!--</el-form-item>-->
|
|
|
|
|
<el-form-item label="菜单权限">
|
|
|
|
|
<el-checkbox v-model="menuExpand" @change="handleCheckedTreeExpand($event, 'menu')">展开/折叠</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="menuNodeAll" @change="handleCheckedTreeNodeAll($event, 'menu')">全选/全不选
|
|
|
|
@ -341,6 +337,7 @@ export default {
|
|
|
|
|
dicts: ['sys_normal_disable'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
userStatus:null,
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
|
Adminloading:true,
|
|
|
|
@ -621,7 +618,8 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
handleAdd() {
|
|
|
|
|
handleAdd(val) {
|
|
|
|
|
this.userStatus=val;
|
|
|
|
|
this.reset();
|
|
|
|
|
this.getMenuTreeselect();
|
|
|
|
|
this.open = true;
|
|
|
|
@ -676,12 +674,17 @@ export default {
|
|
|
|
|
this.$router.push("/system/role-auth/user/" + roleId);
|
|
|
|
|
},
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
submitForm: function () {
|
|
|
|
|
if(this.form.isCustomer == null){
|
|
|
|
|
this.$message("请选择供应商角色")
|
|
|
|
|
return
|
|
|
|
|
submitForm: function (val) {
|
|
|
|
|
// if(this.form.isCustomer == null){
|
|
|
|
|
// this.$message("请选择供应商角色")
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
debugger
|
|
|
|
|
if(this.userStatus == 0){
|
|
|
|
|
this.form.isCustomer=0;
|
|
|
|
|
}else{
|
|
|
|
|
this.form.isCustomer=1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (this.form.roleId != undefined) {
|
|
|
|
@ -690,6 +693,7 @@ export default {
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getCustomerList();
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.form.menuIds = this.getMenuAllCheckedKeys();
|
|
|
|
@ -697,6 +701,7 @@ export default {
|
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getCustomerList();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -720,6 +725,7 @@ export default {
|
|
|
|
|
return delRole(roleIds);
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getCustomerList();
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|