|
|
@@ -165,15 +165,16 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item prop="checkOrgType" label="受检机构类型:">
|
|
|
+ <el-form-item prop="checkOrgTypes" label="受检机构类型:">
|
|
|
<el-select
|
|
|
:disabled="isChildren()"
|
|
|
@change="cleanCheckOrgList"
|
|
|
- prop="checkOrgType"
|
|
|
+ prop="checkOrgTypes"
|
|
|
label="受检机构类型"
|
|
|
- v-model="formData.checkOrgType"
|
|
|
+ v-model="formData.checkOrgTypes"
|
|
|
placeholder="请选择机构类型"
|
|
|
clearable
|
|
|
+ multiple
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in dict.type.sys_org_type"
|
|
|
@@ -336,7 +337,7 @@
|
|
|
<DialogSelect
|
|
|
ref="DialogSelect"
|
|
|
:defaultSelect="defaultSelect"
|
|
|
- :orgType="formData.checkOrgType"
|
|
|
+ :orgType="formData.checkOrgTypes"
|
|
|
@select="onSelect"
|
|
|
></DialogSelect>
|
|
|
</div>
|
|
|
@@ -394,7 +395,7 @@ export default {
|
|
|
roleList: [{ required: true, message: "请选择检查角色" }],
|
|
|
planExec: [{ required: true, message: "请选择计划时间" }],
|
|
|
count: [{ required: true, message: "请选择计划次数" }],
|
|
|
- checkOrgType: [{ required: true, message: "请选择受检机构类型" }],
|
|
|
+ checkOrgTypes: [{ required: true, message: "请选择受检机构类型" }],
|
|
|
roleIds: [{ required: true, message: "请选择检查角色" }],
|
|
|
},
|
|
|
statusOptions: statusOptions,
|
|
|
@@ -426,6 +427,7 @@ export default {
|
|
|
this.getRolesByOrg();
|
|
|
//角色
|
|
|
this.formData.roleIds = ["116"];
|
|
|
+ this.selectedValues= ["116"];
|
|
|
//检查次数
|
|
|
this.formData.count = 1;
|
|
|
//检查内容
|
|
|
@@ -440,6 +442,7 @@ export default {
|
|
|
this.getRolesByOrg();
|
|
|
//角色
|
|
|
this.formData.roleIds = ["118"];
|
|
|
+ this.selectedValues= ["118"];
|
|
|
//检查次数
|
|
|
this.formData.count = 2;
|
|
|
//检查内容
|
|
|
@@ -454,6 +457,7 @@ export default {
|
|
|
this.getRolesByOrg();
|
|
|
//角色
|
|
|
this.formData.roleIds = ["121"];
|
|
|
+ this.selectedValues= ["121"];
|
|
|
//检查次数
|
|
|
this.formData.count = 3;
|
|
|
//检查内容
|
|
|
@@ -468,6 +472,7 @@ export default {
|
|
|
this.getRolesByOrg();
|
|
|
//角色
|
|
|
this.formData.roleIds = ["120"];
|
|
|
+ this.selectedValues= ["120"];
|
|
|
//检查次数
|
|
|
this.formData.count = 2;
|
|
|
//检查内容
|
|
|
@@ -633,7 +638,7 @@ export default {
|
|
|
checkOrgIds: null,
|
|
|
execOrgIds: null,
|
|
|
rulePointIds: null,
|
|
|
- checkOrgType: null,
|
|
|
+ checkOrgTypes: [],
|
|
|
checkType: null,
|
|
|
startDate: null,
|
|
|
endDate: null,
|
|
|
@@ -663,6 +668,9 @@ export default {
|
|
|
this.formData.roleIds = this.formData.roleList.map(
|
|
|
(role) => role.id
|
|
|
);
|
|
|
+ this.formData.checkOrgTypes = this.formData.checkOrgTypeList.map(
|
|
|
+ (type) => type.typeId.toString()
|
|
|
+ );
|
|
|
this.formData.execOrgIds = this.formData.execOrgList.map(
|
|
|
(org) => org.id
|
|
|
);
|
|
|
@@ -679,7 +687,7 @@ export default {
|
|
|
this.formData.planCycle = null;
|
|
|
this.formData.planStatus = null;
|
|
|
this.formData.execOrgType = null;
|
|
|
- this.formData.checkOrgType = null;
|
|
|
+ this.formData.checkOrgTypes = [];
|
|
|
this.formData.checkType = null;
|
|
|
this.formData.roleNames = null;
|
|
|
this.formData.count = null;
|
|
|
@@ -790,6 +798,9 @@ export default {
|
|
|
this.loading = false;
|
|
|
this.$emit("success");
|
|
|
this.onHide();
|
|
|
+ }).catch((err)=>{
|
|
|
+ this.loading = false;
|
|
|
+// console.log(err,"err")
|
|
|
});
|
|
|
});
|
|
|
},
|