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