|
|
@@ -137,16 +137,16 @@ |
|
|
|
<span>{{ row.points }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
label="第一牵头部门和责任领导" |
|
|
|
width="250" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
<pre>{{formatList(row,'leader')}}</pre> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column |
|
|
|
<el-table-column |
|
|
|
label="第一牵头部门和责任领导" |
|
|
|
width="250" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
<pre>{{ formatList(row, "leader") }}</pre> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column |
|
|
|
label="第一牵头部门责任领导" |
|
|
|
width="170" |
|
|
|
align="center" |
|
|
@@ -155,16 +155,16 @@ |
|
|
|
<pre>{{ row.leaderPrincipalList | formatList }}</pre> |
|
|
|
</template> |
|
|
|
</el-table-column> --> |
|
|
|
<el-table-column |
|
|
|
label="其他牵头部门和责任领导" |
|
|
|
width="250" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
<pre>{{ formatList(row,'other') }}</pre> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column |
|
|
|
<el-table-column |
|
|
|
label="其他牵头部门和责任领导" |
|
|
|
width="250" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
<pre>{{ formatList(row, "other") }}</pre> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column |
|
|
|
label="其他牵头部门责任领导" |
|
|
|
width="170" |
|
|
|
align="center" |
|
|
@@ -173,16 +173,16 @@ |
|
|
|
<pre>{{ row.otherPrincipalList | formatList }}</pre> |
|
|
|
</template> |
|
|
|
</el-table-column> --> |
|
|
|
<el-table-column |
|
|
|
label="配合部门和责任领导" |
|
|
|
width="250" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
<pre>{{formatList(row,'cooperate') }}</pre> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column |
|
|
|
<el-table-column |
|
|
|
label="配合部门和责任领导" |
|
|
|
width="250" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
<pre>{{ formatList(row, "cooperate") }}</pre> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column |
|
|
|
label="配合部门责任领导" |
|
|
|
width="150" |
|
|
|
align="center" |
|
|
@@ -446,7 +446,7 @@ |
|
|
|
<el-button @click="showEdit = false">取消</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<div style="text-align:center;margin-top:10px"> |
|
|
|
<div style="text-align: center; margin-top: 10px"> |
|
|
|
<el-button type="primary" @click="$router.go(-1)">返回</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@@ -502,18 +502,22 @@ export default { |
|
|
|
this.$store.dispatch("base/getDepartment", 1); |
|
|
|
this.getData(); |
|
|
|
}, |
|
|
|
filters:{ |
|
|
|
formatData(value){ |
|
|
|
return value&&value.join('\n') |
|
|
|
} |
|
|
|
filters: { |
|
|
|
formatData(value) { |
|
|
|
return value && value.join("\n"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
formatList(data,type) { |
|
|
|
let arr=[] |
|
|
|
for(let key in data[type+'DeptList']){ |
|
|
|
arr.push(`${data[type+'DeptList'][key]}(${data[type+'PrincipalList'][key]})`) |
|
|
|
formatList(data, type) { |
|
|
|
let arr = []; |
|
|
|
for (let key in data[type + "DeptList"]) { |
|
|
|
arr.push( |
|
|
|
`${data[type + "DeptList"][key]}(${ |
|
|
|
data[type + "PrincipalList"][key] |
|
|
|
})` |
|
|
|
); |
|
|
|
} |
|
|
|
return arr.join('\n') |
|
|
|
return arr.join("\n"); |
|
|
|
}, |
|
|
|
addDept(type) { |
|
|
|
if (type == "other") { |
|
|
@@ -626,6 +630,22 @@ export default { |
|
|
|
add() { |
|
|
|
let form = this.form; |
|
|
|
let params = ["itemContent", "points", "leaderDept", "leaderPrincipal"]; |
|
|
|
let arr = [ |
|
|
|
"otherDept", |
|
|
|
"otherPrincipal", |
|
|
|
"cooperateDept", |
|
|
|
"cooperatePrincipal", |
|
|
|
]; |
|
|
|
for (let key of arr) { |
|
|
|
if (form[key]) { |
|
|
|
for (let item of form[key]) { |
|
|
|
if (!item || item.length == 0) { |
|
|
|
this.$message.error("请选择部门及对应责任领导"); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
for (let param of params) { |
|
|
|
if ( |
|
|
|
(param == "itemContent" || param == "leaderDept") && |
|
|
@@ -641,7 +661,7 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (param== "points") { |
|
|
|
if (param == "points") { |
|
|
|
if (!form[param]) { |
|
|
|
this.$message.error("请输入分值"); |
|
|
|
return; |