[update] 修改bug81801

This commit is contained in:
lideqin
2024-02-05 16:35:53 +08:00
parent 870066f419
commit d281a3a4bc
2 changed files with 15 additions and 8 deletions
@@ -71,13 +71,13 @@
<!-- 节点3工作组所联络人填写企标-->
<contact-enter-standard-form v-else-if="currentNode === 3" ref="baseInfoFormRef"></contact-enter-standard-form>
<!-- 节点4收集联络人主管级领导审批 只有表格,不能操作 -->
<only-table-form v-else-if="currentNode === 4" disabled ref="baseInfoFormRef"></only-table-form>
<only-table-form v-else-if="currentNode === 4" disabled noOperColumn ref="baseInfoFormRef"></only-table-form>
<!-- 节点5各部所联络人汇总 只有表格可操作 -->
<only-table-form v-else-if="currentNode === 5" ref="baseInfoFormRef" :currentNode="5"></only-table-form>
<!-- 节点6联络人主管级上一级领导审批 表格不可操作可以查看详情 -->
<only-table-form v-else-if="currentNode === 6" :onlyCanLook="true" ref="baseInfoFormRef"></only-table-form>
<!-- 节点7标准化工程师归档 表格不可新增可以编辑和查看详情 -->
<only-table-form v-else-if="currentNode === 7" disabled ref="baseInfoFormRef"></only-table-form>
<only-table-form v-else-if="currentNode === 7" disabled :editAndLook="true" ref="baseInfoFormRef"></only-table-form>
<!-- 流程审批信息 -->
<div class="process-part-title">{{ $t('processApprovalInformation') }}</div>
@@ -55,16 +55,16 @@
<template v-if="onlyCanLook">
<a @click="handleLook(record, index)" class="table-ope-btn">{{ $t('lookDetail') }}</a>
</template>
<template v-else-if="editAndLook">
<a @click="handleEdit(record)" class="table-ope-btn">{{ $t('edit') }}</a>
<a-divider type="vertical" />
<a @click="handleLook(record, index)" class="table-ope-btn">{{ $t('view') }}</a>
</template>
<template v-else-if="!disabled">
<a @click="handleEdit(record)" class="table-ope-btn">{{ $t('edit') }}</a>
<a-divider type="vertical" />
<a @click="handleDelete(record.uid)" class="table-ope-btn">{{ $t('delete') }}</a>
</template>
<template v-else-if="editAndLook">
<a @click="handleEdit(record)" class="table-ope-btn">{{ $t('edit') }}</a>
<a-divider type="vertical" />
<a @click="handleLook(record, index)" class="table-ope-btn">{{ $t('lookDetail') }}</a>
</template>
</div>
</j-table>
@@ -110,6 +110,12 @@ export default {
type: Number,
required: false,
default: 0
},
// 是否没有操作列
noOperColumn: {
type: Boolean,
required: false,
default: false
}
},
computed: {
@@ -126,7 +132,7 @@ export default {
}
},
mounted () {
if (this.disabled) {
if (this.noOperColumn) {
this.columns.pop()
}
// 当前节点是各部所联络人汇总节点,需要增加创建人列
@@ -473,6 +479,7 @@ export default {
// 查看
handleLook (record) {
this.$refs.contactEnterSendTaskModal.look(record)
this.$refs.contactEnterSendTaskModal.title = this.$t('view')
},
// 删除
handleDelete (uid) {