YF-yuan před 3 roky
rodič
revize
9bda8ff42e
8 změnil soubory, kde provedl 20 přidání a 20 odebrání
  1. +1
    -1
      src/api/second/coordinationManage/applyCooperation.js
  2. +6
    -7
      src/views/chain/coordinationManage/applyCooperation.vue
  3. +8
    -7
      src/views/second/coordinationManage/applyCooperation/basicTarget.vue
  4. +1
    -1
      src/views/second/coordinationManage/applyCooperation/constraint.vue
  5. +1
    -1
      src/views/second/coordinationManage/applyCooperation/reward.vue
  6. +1
    -1
      src/views/second/coordinationManage/approvalCooperation/basicTarget.vue
  7. +1
    -1
      src/views/second/coordinationManage/approvalCooperation/constraint.vue
  8. +1
    -1
      src/views/second/coordinationManage/approvalCooperation/reward.vue

+ 1
- 1
src/api/second/coordinationManage/applyCooperation.js Zobrazit soubor

@@ -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)
}
}

+ 6
- 7
src/views/chain/coordinationManage/applyCooperation.vue Zobrazit soubor

@@ -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=>{

+ 8
- 7
src/views/second/coordinationManage/applyCooperation/basicTarget.vue Zobrazit soubor

@@ -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

+ 1
- 1
src/views/second/coordinationManage/applyCooperation/constraint.vue Zobrazit soubor

@@ -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() {

+ 1
- 1
src/views/second/coordinationManage/applyCooperation/reward.vue Zobrazit soubor

@@ -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() {

+ 1
- 1
src/views/second/coordinationManage/approvalCooperation/basicTarget.vue Zobrazit soubor

@@ -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;

+ 1
- 1
src/views/second/coordinationManage/approvalCooperation/constraint.vue Zobrazit soubor

@@ -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;

+ 1
- 1
src/views/second/coordinationManage/approvalCooperation/reward.vue Zobrazit soubor

@@ -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;

Načítá se…
Zrušit
Uložit