[update] 修改bug80278

This commit is contained in:
lideqin
2024-01-09 10:44:46 +08:00
parent 6e7d741a1f
commit 147a9dab8d
2 changed files with 19 additions and 4 deletions
@@ -518,7 +518,8 @@
</a-form-model>
</a-spin>
</div>
<div class="custom-drawer-style-bottom-btn">
<!-- 查看不显示操作栏 -->
<div v-if="!isLook" class="custom-drawer-style-bottom-btn">
<a-button @click="handleCancel">{{ $t('cancel') }}</a-button>
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{ $t('submit') }}</a-button>
</div>
@@ -716,7 +717,8 @@ export default {
trigger: 'change'
}
]
}
},
isLook: false // 是否是查看
}
},
computed: {
@@ -781,8 +783,13 @@ export default {
},
look (record) {
this.visible = true
this.isLook = true
this.model = Object.assign({}, record)
this.formInline = Object.assign({}, record)
// 没有申请类型就设置为立项
if (!this.formInline.applicationType) {
this.formInline.applicationType = this.ApplicationCategory.INITIATION.value
}
if (this.formInline.workGroup) {
this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText }
}
@@ -906,6 +913,7 @@ export default {
this.model = {}
this.formInline = {}
this.visible = false
this.isLook = false
this.$refs.ruleForm.clearValidate()
},
// 提交