@@ -187,9 +187,8 @@ export default { | |||
methods: { | |||
judge(row) { | |||
let arr = [].concat( | |||
row.leaderDept, | |||
row.cooperateDept.split(",").map((item) => parseInt(item)), | |||
row.otherDept.split(",").map((item) => parseInt(item)) | |||
row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[], | |||
row.leaderDept?row.leaderDept.split(",").map((item) => parseInt(item)):[] | |||
); | |||
let bool = arr.includes(this.user.user.deptId) || row.status == 1; | |||
return bool; |
@@ -163,7 +163,7 @@ export default { | |||
this.page = page; | |||
}, | |||
getDataList() { | |||
this.searchParams.leaderDept = this.user.user.deptId | |||
// this.searchParams.leaderDept = this.user.user.deptId | |||
api.getBasicDataList(Object.assign({}, this.page, this.searchParams)).then((res)=>{ | |||
let data = res.data.data; | |||
this.count = data.total; |
@@ -156,7 +156,7 @@ export default { | |||
this.page = page; | |||
}, | |||
getDataList() { | |||
this.searchParams.leaderDept = this.user.user.deptId | |||
// this.searchParams.leaderDept = this.user.user.deptId | |||
api.getConstraintDataList(Object.assign({}, this.page, this.searchParams)).then((res)=>{ | |||
let data = res.data.data; | |||
this.count = data.total; |
@@ -163,7 +163,7 @@ export default { | |||
this.page = page; | |||
}, | |||
getDataList() { | |||
this.searchParams.leaderDept = this.user.user.deptId | |||
// this.searchParams.leaderDept = this.user.user.deptId | |||
api.getRewardDataList(Object.assign({}, this.page, this.searchParams)).then((res)=>{ | |||
let data = res.data.data; | |||
this.count = data.total; |
@@ -55,7 +55,7 @@ | |||
align="center" | |||
prop="leaderUnit" | |||
></el-table-column> | |||
<el-table-column label="第一牵头部门" width="120" align="center"> | |||
<el-table-column label="牵头部门" width="120" align="center"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
</template> | |||
@@ -65,14 +65,14 @@ | |||
<pre>{{ row.leaderPrincipalList | formatList }}</pre> | |||
</template> | |||
</el-table-column> | |||
<el-table-column label="牵头部门" width="100" align="center"> | |||
<el-table-column label="其他牵头部门" width="120" align="center"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
<pre>{{ row.otherDeptList | formatList }}</pre> | |||
</template> | |||
</el-table-column> | |||
<el-table-column label="责任领导" width="80" align="center"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderPrincipalList | formatList }}</pre> | |||
<pre>{{ row.otherPrincipalList | formatList }}</pre> | |||
</template> | |||
</el-table-column> | |||
<el-table-column |