|
|
@@ -117,7 +117,7 @@ |
|
|
|
<span v-else>{{ row.itemContent }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="* 分值" align="center" width="80"> |
|
|
|
<el-table-column label="分值" align="center" width="80" v-if="type!=3"> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
<el-input |
|
|
|
placeholder="请输入分值" |
|
|
@@ -187,7 +187,11 @@ |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="其他牵头部门" align="center" min-width="130"> |
|
|
|
<el-table-column |
|
|
|
label="其他牵头部门" |
|
|
|
align="center" |
|
|
|
min-width="130" |
|
|
|
> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
<treeselect |
|
|
|
:disable-branch-nodes="true" |
|
|
@@ -703,7 +707,7 @@ export default { |
|
|
|
this.$store.dispatch("base/getDepartment", 1); |
|
|
|
this.$store.dispatch("base/getPrincipalList"); |
|
|
|
}, |
|
|
|
filters: { |
|
|
|
filters: { |
|
|
|
formatList(val) { |
|
|
|
if (val) { |
|
|
|
return val.join("\n"); |
|
|
@@ -748,7 +752,7 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
}); |
|
|
|
this.$set(this.form, "leaderPrincipal", parseInt(nameId)||null); |
|
|
|
this.$set(this.form, "leaderPrincipal", parseInt(nameId) || null); |
|
|
|
} |
|
|
|
}, |
|
|
|
getApi() { |
|
|
@@ -865,20 +869,28 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (!form[param]) { |
|
|
|
debugger; |
|
|
|
this.$message({ |
|
|
|
type: "warning", |
|
|
|
message: "请完善信息", |
|
|
|
}); |
|
|
|
return; |
|
|
|
if (this.type == 2||this.type==3) { |
|
|
|
if (param != "points" && !form[param]) { |
|
|
|
this.$message({ |
|
|
|
type: "warning", |
|
|
|
message: "请完善信息", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
}else{ |
|
|
|
if (!form[param]) { |
|
|
|
this.$message({ |
|
|
|
type: "warning", |
|
|
|
message: "请完善信息", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if ( |
|
|
|
form[param] && |
|
|
|
typeof form[param] == "string" && |
|
|
|
form[param].trim() == "" |
|
|
|
) { |
|
|
|
debugger; |
|
|
|
this.$message({ |
|
|
|
type: "warning", |
|
|
|
message: "请完善信息", |
|
|
@@ -887,6 +899,7 @@ export default { |
|
|
|
} |
|
|
|
if ( |
|
|
|
param == "points" && |
|
|
|
form[param] && |
|
|
|
parseInt(form[param]) !== parseInt(form[param]) |
|
|
|
) { |
|
|
|
this.$message({ |
|
|
@@ -920,7 +933,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((e) => { |
|
|
|
console.log(e) |
|
|
|
console.log(e); |
|
|
|
this.$message.error("修改小项内容失败"); |
|
|
|
}) |
|
|
|
.finally(() => { |