methods: { | methods: { | ||||
judge(row) { | judge(row) { | ||||
let arr = [].concat( | 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; | let bool = arr.includes(this.user.user.deptId) || row.status == 1; | ||||
return bool; | return bool; |
this.page = page; | this.page = page; | ||||
}, | }, | ||||
getDataList() { | 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)=>{ | api.getBasicDataList(Object.assign({}, this.page, this.searchParams)).then((res)=>{ | ||||
let data = res.data.data; | let data = res.data.data; | ||||
this.count = data.total; | this.count = data.total; |
this.page = page; | this.page = page; | ||||
}, | }, | ||||
getDataList() { | 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)=>{ | api.getConstraintDataList(Object.assign({}, this.page, this.searchParams)).then((res)=>{ | ||||
let data = res.data.data; | let data = res.data.data; | ||||
this.count = data.total; | this.count = data.total; |
this.page = page; | this.page = page; | ||||
}, | }, | ||||
getDataList() { | 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)=>{ | api.getRewardDataList(Object.assign({}, this.page, this.searchParams)).then((res)=>{ | ||||
let data = res.data.data; | let data = res.data.data; | ||||
this.count = data.total; | this.count = data.total; |
align="center" | align="center" | ||||
prop="leaderUnit" | prop="leaderUnit" | ||||
></el-table-column> | ></el-table-column> | ||||
<el-table-column label="第一牵头部门" width="120" align="center"> | |||||
<el-table-column label="牵头部门" width="120" align="center"> | |||||
<template slot-scope="{ row }"> | <template slot-scope="{ row }"> | ||||
<pre>{{ row.leaderDeptList | formatList }}</pre> | <pre>{{ row.leaderDeptList | formatList }}</pre> | ||||
</template> | </template> | ||||
<pre>{{ row.leaderPrincipalList | formatList }}</pre> | <pre>{{ row.leaderPrincipalList | formatList }}</pre> | ||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
<el-table-column label="牵头部门" width="100" align="center"> | |||||
<el-table-column label="其他牵头部门" width="120" align="center"> | |||||
<template slot-scope="{ row }"> | <template slot-scope="{ row }"> | ||||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||||
<pre>{{ row.otherDeptList | formatList }}</pre> | |||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
<el-table-column label="责任领导" width="80" align="center"> | <el-table-column label="责任领导" width="80" align="center"> | ||||
<template slot-scope="{ row }"> | <template slot-scope="{ row }"> | ||||
<pre>{{ row.leaderPrincipalList | formatList }}</pre> | |||||
<pre>{{ row.otherPrincipalList | formatList }}</pre> | |||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
<el-table-column | <el-table-column |