Browse Source

修改

master
YF-yuan 3 years ago
parent
commit
e3adf5a894
4 changed files with 8 additions and 6 deletions
  1. +2
    -1
      src/views/chain/coordinationManage/applyCooperation.vue
  2. +2
    -3
      src/views/second/coordinationManage/applyCooperation/basicTarget.vue
  3. +2
    -1
      src/views/second/coordinationManage/applyCooperation/constraint.vue
  4. +2
    -1
      src/views/second/coordinationManage/applyCooperation/reward.vue

+ 2
- 1
src/views/chain/coordinationManage/applyCooperation.vue View File

row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[], row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[],
row.leaderDept?row.leaderDept.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.isApply == 2;
return bool; return bool;
}, },
getDataList() { getDataList() {
edit(row) { edit(row) {
this.showEdit = true; this.showEdit = true;
this.form.chainIndustryId = row.id this.form.chainIndustryId = row.id
this.form.isApply = 2
}, },
save(){ save(){
applyApi applyApi

+ 2
- 3
src/views/second/coordinationManage/applyCooperation/basicTarget.vue View File

row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[], row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[],
row.leaderDept?row.leaderDept.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.isApply == 2;
return bool; return bool;
}, },
updateParams(data) { updateParams(data) {
let data = res.data.data; let data = res.data.data;
this.count = data.total; this.count = data.total;
this.dataList = this.reduceData(data.records); this.dataList = this.reduceData(data.records);
console.log(this.dataList);
}) })
.catch((e) => { .catch((e) => {
this.dataList = []; this.dataList = [];
this.form.type = 1; this.form.type = 1;
this.form.itemId = row.basicTaskId; this.form.itemId = row.basicTaskId;
this.form.leaderDept = row.leaderDept; this.form.leaderDept = row.leaderDept;
console.log(this.form);
this.form.isApply = 2
}, },
save() { save() {
applyApi applyApi

+ 2
- 1
src/views/second/coordinationManage/applyCooperation/constraint.vue View File

row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[], row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[],
row.leaderDept?row.leaderDept.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.isApply == 2;
return bool; return bool;
}, },
updateParams(data) { updateParams(data) {
this.form.type = 3; this.form.type = 3;
this.form.itemId = row.rigidityConstraintId; this.form.itemId = row.rigidityConstraintId;
this.form.leaderDept = row.leaderDept; this.form.leaderDept = row.leaderDept;
this.form.isApply = 2
}, },
save() { save() {
console.log(this.form); console.log(this.form);

+ 2
- 1
src/views/second/coordinationManage/applyCooperation/reward.vue View File

row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[], row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[],
row.leaderDept?row.leaderDept.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.isApply == 2;
return bool; return bool;
}, },
updateParams(data) { updateParams(data) {
this.form.type = 2; this.form.type = 2;
this.form.itemId = row.specialPowerId; this.form.itemId = row.specialPowerId;
this.form.leaderDept = row.leaderDept; this.form.leaderDept = row.leaderDept;
this.form.isApply = 2
}, },
save() { save() {
console.log(this.form); console.log(this.form);

Loading…
Cancel
Save