浏览代码

xiug

master
YF-yuan 3 年前
父节点
当前提交
185ec8e3a2
共有 4 个文件被更改,包括 17 次插入13 次删除
  1. +8
    -7
      src/views/chain/coordinationManage/applyCooperation.vue
  2. +3
    -2
      src/views/second/coordinationManage/applyCooperation/basicTarget.vue
  3. +3
    -2
      src/views/second/coordinationManage/applyCooperation/constraint.vue
  4. +3
    -2
      src/views/second/coordinationManage/applyCooperation/reward.vue

+ 8
- 7
src/views/chain/coordinationManage/applyCooperation.vue 查看文件

@@ -88,7 +88,7 @@
icon="el-icon-edit"
type="primary"
:underline="false"
:disabled="detail.isApply || !detail.id"
:disabled="judge(detail)"
>申请成为配合部门</el-link
>
</el-popconfirm></span
@@ -233,16 +233,17 @@ export default {
this.searchParams = data;
this.getDataList();
},
judge(row) {
judge(detail) {
let arr = [].concat(
row.cooperateDept
? row.cooperateDept.split(",").map((item) => parseInt(item))
detail.cooperateDept
? detail.cooperateDept.split(",").map((item) => parseInt(item))
: [],
row.leaderDept
? row.leaderDept.split(",").map((item) => parseInt(item))
detail.leaderDept
? detail.leaderDept.split(",").map((item) => parseInt(item))
: []
);
let bool = arr.includes(this.user.user.deptId);
arr.push(parseInt(detail.leaderDept))
let bool = arr.includes(this.user.user.deptId) || detail.isApply || !detail.id;
return bool;
},
getDataList() {

+ 3
- 2
src/views/second/coordinationManage/applyCooperation/basicTarget.vue 查看文件

@@ -102,7 +102,7 @@
icon="el-icon-edit"
type="primary"
:underline="false"
:disabled="row.isApply || !row.id"
:disabled="judge(row)"
>申请成为配合部门</el-link
>
</template>
@@ -234,7 +234,8 @@ export default {
? row.leaderDept.split(",").map((item) => parseInt(item))
: []
);
let bool = arr.includes(this.user.user.deptId);
arr.push(parseInt(row.leaderDept))
let bool = arr.includes(this.user.user.deptId) || row.isApply || !row.id;
return bool;
},
updateParams(data) {

+ 3
- 2
src/views/second/coordinationManage/applyCooperation/constraint.vue 查看文件

@@ -90,7 +90,7 @@
icon="el-icon-edit"
type="primary"
:underline="false"
:disabled="row.isApply || !row.id"
:disabled="judge(row)"
>申请成为配合部门</el-link
>
</template>
@@ -220,7 +220,8 @@ export default {
? row.leaderDept.split(",").map((item) => parseInt(item))
: []
);
let bool = arr.includes(this.user.user.deptId);
arr.push(parseInt(row.leaderDept))
let bool = arr.includes(this.user.user.deptId) || row.isApply || !row.id;
return bool;
},
updateParams(data) {

+ 3
- 2
src/views/second/coordinationManage/applyCooperation/reward.vue 查看文件

@@ -102,7 +102,7 @@
icon="el-icon-edit"
type="primary"
:underline="false"
:disabled="row.isApply || !row.id"
:disabled="judge(row)"
>申请成为配合部门</el-link
>
</template>
@@ -233,7 +233,8 @@ export default {
? row.leaderDept.split(",").map((item) => parseInt(item))
: []
);
let bool = arr.includes(this.user.user.deptId);
arr.push(parseInt(row.leaderDept))
let bool = arr.includes(this.user.user.deptId) || row.isApply || !row.id
return bool;
},
updateParams(data) {

正在加载...
取消
保存