[fix 87446] 解读人填写没有删除

This commit is contained in:
danshihao
2024-07-23 17:35:02 +08:00
parent 0d19dfad11
commit 627f3e33df
@@ -57,8 +57,8 @@
</template>
<template v-slot:action="{text, record}">
<a v-if="showEditBtn" @click="handleEdit(record)" class="table-ope-btn">{{ $t('edit') }}</a>
<a-divider v-if="showEditBtn" type="vertical" />
<a @click="handleDelete(record[rowKey])" class="table-ope-btn">{{ $t('delete') }}</a>
<a-divider v-if="showEditBtn && showDeleteBtn" type="vertical" />
<a v-if="showDeleteBtn" @click="handleDelete(record[rowKey])" class="table-ope-btn">{{ $t('delete') }}</a>
</template>
</j-table>
<!--条文内容-->
@@ -518,6 +518,15 @@ export default {
StandardInterpretationNodes.standardInterpreterSummary.value // 标准主解读人汇总
].includes(this.currentNodeId)
},
// 是否显示删除按钮
showDeleteBtn () {
return [
StandardInterpretationNodes.initiated.value, // 法规工程师发起
StandardInterpretationNodes.controlDepartLiaisonDistribution.value, // 主控部门联络人分发
StandardInterpretationNodes.standardInterpreterDistribution.value, // 标准主解读人分发
StandardInterpretationNodes.standardInterpreterReDistribution.value // 标准主解读人分发
].includes(this.currentNodeId)
},
// token header
tokenHeader () {
const head = { 'X-Access-Token': Vue.ls.get(ACCESS_TOKEN) }