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