|
|
@@ -68,7 +68,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item
|
|
|
prop="startDate"
|
|
|
@@ -116,7 +116,7 @@
|
|
|
clearable
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in dict.type.sys_org_type"
|
|
|
+ v-for="item in dict.type.sys_org_type"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
:value="parseInt(item.value)"
|
|
|
@@ -180,7 +180,7 @@
|
|
|
:max="9"
|
|
|
></el-input-number>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item :span="6" prop="execOrgIds" label="检查主体">
|
|
|
<org-tree-select
|
|
|
@@ -240,10 +240,16 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-button @click="openSelect" v-if="formData.id==null || formData.planOfOrgId == orgId"
|
|
|
+ <el-button
|
|
|
+ @click="openSelect"
|
|
|
+ v-if="formData.id == null || formData.planOfOrgId == orgId"
|
|
|
><span class="requiredlabel">选择检查内容</span>
|
|
|
</el-button>
|
|
|
- <el-button @click="deleteSelected" v-if="formData.id==null || formData.planOfOrgId == orgId">批量删除</el-button>
|
|
|
+ <el-button
|
|
|
+ @click="deleteSelected"
|
|
|
+ v-if="formData.id == null || formData.planOfOrgId == orgId"
|
|
|
+ >批量删除</el-button
|
|
|
+ >
|
|
|
<el-table
|
|
|
:data="tableData"
|
|
|
style="width: 100%; margin-top: 15px"
|
|
|
@@ -302,7 +308,10 @@
|
|
|
<el-table-column prop="areaName" label="操作">
|
|
|
<template v-slot="{ row }">
|
|
|
<el-button
|
|
|
- v-if="getshenglianshe(row) && (formData.Id==null || formData.planOfOrgId == orgId)"
|
|
|
+ v-if="
|
|
|
+ getshenglianshe(row) &&
|
|
|
+ (formData.Id == null || formData.planOfOrgId == orgId)
|
|
|
+ "
|
|
|
type="text"
|
|
|
@click="removeRow(row)"
|
|
|
>删除</el-button
|
|
|
@@ -380,8 +389,8 @@ export default {
|
|
|
count: [{ required: true, message: "请选择任务次数" }],
|
|
|
checkOrgTypes: [{ required: true, message: "请选择受检机构类型" }],
|
|
|
roleIds: [{ required: true, message: "请选择检查人员" }],
|
|
|
- startDate:[{ required: true, message: "请选择开始时间" }],
|
|
|
- endDate:[{ required: true, message: "请选择结束时间" }]
|
|
|
+ startDate: [{ required: true, message: "请选择开始时间" }],
|
|
|
+ endDate: [{ required: true, message: "请选择结束时间" }],
|
|
|
},
|
|
|
statusOptions: statusOptions,
|
|
|
};
|
|
|
@@ -678,7 +687,7 @@ export default {
|
|
|
this.defbuildTaskNow = res.data.buildTaskNow;
|
|
|
this.parentCount = res.data.parentCount;
|
|
|
this.formData = res.data;
|
|
|
- this.formData.planCycle=this.formData.planCycle+'';
|
|
|
+ this.formData.planCycle = this.formData.planCycle + "";
|
|
|
this.tableData = res.data.rulePointList;
|
|
|
if (this.formData.execOrgType) {
|
|
|
this.formData.roleIds = this.formData.roleList.map(
|
|
|
@@ -834,9 +843,14 @@ export default {
|
|
|
msg = "因不存在已完成任务,本次修改内容将立即生成。";
|
|
|
}
|
|
|
|
|
|
- this.$modal.confirm(msg).then(() => {
|
|
|
- this.update(this.formData, imme);
|
|
|
- });
|
|
|
+ this.$modal
|
|
|
+ .confirm(msg)
|
|
|
+ .then(() => {
|
|
|
+ this.update(this.formData, imme);
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
} else if (this.formData.planStatus == 2) {
|
|
|
this.update(this.formData, false);
|
|
|
} else {
|
|
|
@@ -844,7 +858,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- async update(data, immediateEffect) {
|
|
|
+ async update(data, immediateEffect) {
|
|
|
await api
|
|
|
.add(data, immediateEffect)
|
|
|
.then((data) => {
|