|
|
@@ -27,7 +27,9 @@ |
|
|
|
<el-row type="flex"> |
|
|
|
<el-col :span="5" class="grey"><span>区牵头单位</span></el-col> |
|
|
|
<el-col :span="7" |
|
|
|
><span><pre>{{ data.leaderUnit }}</pre></span></el-col |
|
|
|
><span> |
|
|
|
<pre>{{ data.leaderUnit }}</pre> |
|
|
|
</span></el-col |
|
|
|
> |
|
|
|
<el-col :span="5" class="grey"><span>封顶分值</span></el-col> |
|
|
|
<el-col :span="7" |
|
|
@@ -85,13 +87,13 @@ |
|
|
|
>添加</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
<div style="overflow-x:scroll"> |
|
|
|
<div style="overflow-x: scroll"> |
|
|
|
<el-table |
|
|
|
:data="detailList" |
|
|
|
border |
|
|
|
highlight-current-row |
|
|
|
v-loading="tableLoading" |
|
|
|
style="min-height:500px;min-width:1500px" |
|
|
|
style="min-height: 500px; min-width: 1500px" |
|
|
|
> |
|
|
|
<el-table-column |
|
|
|
type="index" |
|
|
@@ -309,7 +311,7 @@ |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" align="center" > |
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
<template slot-scope="{ row, $index }"> |
|
|
|
<template v-if="row.add || row.edit"> |
|
|
|
<el-link |
|
|
@@ -746,7 +748,7 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
}); |
|
|
|
this.$set(this.form, "leaderPrincipal", parseInt(nameId)); |
|
|
|
this.$set(this.form, "leaderPrincipal", parseInt(nameId)||null); |
|
|
|
} |
|
|
|
}, |
|
|
|
getApi() { |
|
|
@@ -850,11 +852,11 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
for (let item of form[param]) { |
|
|
|
if(item==0){ |
|
|
|
if (item == 0) { |
|
|
|
continue; |
|
|
|
} |
|
|
|
if (!item ) { |
|
|
|
debugger |
|
|
|
if (!item) { |
|
|
|
debugger; |
|
|
|
this.$message({ |
|
|
|
type: "warning", |
|
|
|
message: "请完善信息", |
|
|
@@ -864,7 +866,7 @@ export default { |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (!form[param]) { |
|
|
|
debugger |
|
|
|
debugger; |
|
|
|
this.$message({ |
|
|
|
type: "warning", |
|
|
|
message: "请完善信息", |
|
|
@@ -876,7 +878,7 @@ export default { |
|
|
|
typeof form[param] == "string" && |
|
|
|
form[param].trim() == "" |
|
|
|
) { |
|
|
|
debugger |
|
|
|
debugger; |
|
|
|
this.$message({ |
|
|
|
type: "warning", |
|
|
|
message: "请完善信息", |
|
|
@@ -902,17 +904,23 @@ export default { |
|
|
|
form.otherDept = form.otherDept && form.otherDept.join(","); |
|
|
|
form.otherPrincipal = |
|
|
|
form.otherPrincipal && form.otherPrincipal.join(","); |
|
|
|
console.log(form); |
|
|
|
if (data.edit) { |
|
|
|
this.getApi() |
|
|
|
.editItem(form) |
|
|
|
.then((res) => { |
|
|
|
this.$message({ |
|
|
|
type: "success", |
|
|
|
message: "修改小项内容成功", |
|
|
|
}); |
|
|
|
this.getData(); |
|
|
|
if (res.data.code == 0) { |
|
|
|
this.$message({ |
|
|
|
type: "success", |
|
|
|
message: "修改小项内容成功", |
|
|
|
}); |
|
|
|
this.getData(); |
|
|
|
} else { |
|
|
|
this.$message.error(res.data.msg); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((e) => { |
|
|
|
console.log(e) |
|
|
|
this.$message.error("修改小项内容失败"); |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
@@ -1049,10 +1057,10 @@ export default { |
|
|
|
/deep/ .el-table__body-wrapper { |
|
|
|
overflow: visible; |
|
|
|
} |
|
|
|
.table{ |
|
|
|
.table { |
|
|
|
box-sizing: border-box; |
|
|
|
} |
|
|
|
/deep/ .el-table--border th.gutter:last-of-type { |
|
|
|
width:0!important; |
|
|
|
width: 0 !important; |
|
|
|
} |
|
|
|
</style> |