update 企标稽查计划-意见调整
This commit is contained in:
+11
-1
@@ -48,7 +48,7 @@
|
||||
</template>
|
||||
<!-- 意见 or 填写意见:节点2非自己创建的就是意见和填写意见 -->
|
||||
<template v-else-if="currentNode === EsInspectionPlan.fillInComments.value">
|
||||
<a v-if="record.processEsInspectPlanOpinionList && record.processEsInspectPlanOpinionList.length" @click="handleShowOpinion(record, index)" >{{ $t('workCenter.esInspectionPlan.opinion') }}</a>
|
||||
<a v-if="isShowOpinion(record)" @click="handleShowOpinion(record, index)" >{{ $t('workCenter.esInspectionPlan.opinion') }}</a>
|
||||
<a v-else @click="handleWriteOpinion(record, index)" >{{ $t('workCenter.esInspectionPlan.writeOpinion') }}</a>
|
||||
</template>
|
||||
</template>
|
||||
@@ -238,6 +238,10 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
// 当前登录用户名
|
||||
currentUserName () {
|
||||
return this.$store.getters.userInfo.username
|
||||
},
|
||||
// 是否显示表格操作按钮
|
||||
hasTableOperator () {
|
||||
const arr = [
|
||||
@@ -267,6 +271,12 @@ export default {
|
||||
this.filters.taskId = this.$route.query.taskId
|
||||
},
|
||||
methods: {
|
||||
// 是否显示意见
|
||||
isShowOpinion (record) {
|
||||
const list = record.processEsInspectPlanOpinionList || []
|
||||
// 意见列表是否有当前用户的意见
|
||||
return !!(list.find(item => item.createBy === this.currentUserName))
|
||||
},
|
||||
getCheckboxProps (record) {
|
||||
const obj = { props: { disabled: false } }
|
||||
// 第二个节点,只有自己的才能勾选删除
|
||||
|
||||
Reference in New Issue
Block a user