[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
@@ -498,7 +498,7 @@
</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>
@@ -742,7 +742,8 @@ export default {
trigger: 'change'
}
]
}
},
isLook: false // 是否是查看
}
},
computed: {
@@ -859,9 +860,14 @@ export default {
this.formInline = Object.assign({}, formInline)
},
look (record) {
this.isLook = true
this.visible = true
this.model = Object.assign({}, record)
this.formInline = Object.assign({}, record)
// 没有申请类型就设置为立项
if (!this.formInline.applicationType) {
this.formInline.applicationType = this.ApplicationCategory.INITIATION.value
}
this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => {
return { value: item }
}) : []
@@ -963,6 +969,7 @@ export default {
this.model = {}
this.formInline = {}
this.visible = false
this.isLook = false
this.$refs.ruleForm.clearValidate()
this.draftPlanFinishDateDisabled = false
this.exposureDraftPlanFinishDateDisabled = false