瀏覽代碼

second

master
YF-yuan 3 年之前
父節點
當前提交
9bda8ff42e
共有 8 個文件被更改,包括 20 次插入20 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

Loading…
取消
儲存