@@ -1,7 +1,7 @@ | |||
import axios from "@/config/axios" | |||
export default { | |||
applyCooperate(params) { | |||
return axios.post('/cooperateapply/cooperateDept', params) | |||
return axios.post('/cooperateapply/applyDept', params) | |||
} | |||
} |
@@ -149,13 +149,12 @@ export default { | |||
}, | |||
methods: { | |||
judge(row) { | |||
// console.log(row, this.user.user.deptId); | |||
// let arr = [].concat( | |||
// row.cooperateDept.split(",").map((item) => parseInt(item)), | |||
// row.leaderDept.split(",").map((item) => parseInt(item)) | |||
// ); | |||
// let bool = arr.includes(this.user.user.deptId); | |||
// return bool; | |||
let arr = [].concat( | |||
row.cooperateDept.split(",").map((item) => parseInt(item)), | |||
row.leaderDept.split(",").map((item) => parseInt(item)) | |||
); | |||
let bool = arr.includes(this.user.user.deptId); | |||
return bool; | |||
}, | |||
getDataList() { | |||
api.getList(Object.assign({},this.searchParams)).then(res=>{ |
@@ -186,12 +186,12 @@ export default { | |||
}, | |||
methods: { | |||
judge(row) { | |||
let arr = [].concat( | |||
row.cooperateDept.split(",").map((item) => parseInt(item)), | |||
row.leaderDept.split(",").map((item) => parseInt(item)) | |||
); | |||
let bool = arr.includes(this.user.user.deptId); | |||
return bool; | |||
// let arr = [].concat( | |||
// row.cooperateDept.split(",").map((item) => parseInt(item)), | |||
// row.leaderDept.split(",").map((item) => parseInt(item)) | |||
// ); | |||
// let bool = arr.includes(this.user.user.deptId); | |||
// return bool; | |||
}, | |||
updateParams(data) { | |||
this.searchParams = data; | |||
@@ -224,8 +224,9 @@ export default { | |||
edit(row) { | |||
this.showEdit = true; | |||
this.form.type = 1; | |||
this.form.itemId = row.id; | |||
this.form.itemId = row.basicTaskId; | |||
this.form.leaderDept = row.leaderDept; | |||
console.log(this.form); | |||
}, | |||
save() { | |||
applyApi |
@@ -213,7 +213,7 @@ export default { | |||
edit(row) { | |||
this.showEdit = true; | |||
this.form.type = 3; | |||
this.form.itemId = row.id; | |||
this.form.itemId = row.rigidityConstraintId; | |||
this.form.leaderDept = row.leaderDept; | |||
}, | |||
save() { |
@@ -221,7 +221,7 @@ export default { | |||
edit(row) { | |||
this.showEdit = true; | |||
this.form.type = 2; | |||
this.form.itemId = row.id; | |||
this.form.itemId = row.specialPowerId; | |||
this.form.leaderDept = row.leaderDept; | |||
}, | |||
save() { |
@@ -204,7 +204,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; |
@@ -197,7 +197,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; |
@@ -204,7 +204,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; |