add 项目合规流程页面
This commit is contained in:
@@ -181,14 +181,14 @@ export default {
|
||||
})
|
||||
},
|
||||
handleEdit ({ id }) {
|
||||
this.$refs.modalForm.edit(id)
|
||||
this.$refs.modalForm.title = this.$t('edit')
|
||||
this.$refs.modalForm.disableSubmit = false
|
||||
this.$refs.modalForm.edit(id)
|
||||
},
|
||||
handleDetail ({ id }) {
|
||||
this.$refs.modalForm.edit(id)
|
||||
this.$refs.modalForm.title = this.$t('details')
|
||||
this.$refs.modalForm.disableSubmit = false
|
||||
this.$refs.modalForm.edit(id)
|
||||
},
|
||||
filterTreeOption (input, option) {
|
||||
const text = option.componentOptions.propsData.title || option.componentOptions.propsData.label
|
||||
|
||||
@@ -54,8 +54,10 @@
|
||||
dict-code="yn" />
|
||||
</a-form-item>
|
||||
<!--在线对比-->
|
||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('docTool.customComparison.onlineComparison')">
|
||||
<a-switch v-model="isStartComparison" @change="handleSwitchChange" />
|
||||
<a-form-item :labelCol="labelCol"
|
||||
:wrapperCol="wrapperCol"
|
||||
:label="$t('docTool.customComparison.onlineComparison')">
|
||||
<a-switch v-model="isStartComparison" @change="handleSwitchChange" :disabled="isDetail"/>
|
||||
</a-form-item>
|
||||
<div v-show="isStartComparison" class="comparison-box">
|
||||
<div class="operation-box" v-if="!isDetail">
|
||||
@@ -222,11 +224,6 @@ export default {
|
||||
maintainItemList: [] // 维护项列表
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
title () {
|
||||
this.isDetail = this.title === this.$t('details')
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
add () {
|
||||
this.visible = true
|
||||
@@ -244,6 +241,20 @@ export default {
|
||||
this.isFirstOpenComparison = false
|
||||
this.getFormData()
|
||||
this.initTableData()
|
||||
this.dealIsDetail()
|
||||
},
|
||||
dealIsDetail () {
|
||||
this.isDetail = this.title === this.$t('details')
|
||||
if (this.isDetail) {
|
||||
this.isStartComparison = true
|
||||
this.columns.push({
|
||||
title: this.$t('docTool.customComparison.comparativeAnalysisResult'),
|
||||
dataIndex: 'compareResult',
|
||||
width: 150,
|
||||
align: 'center',
|
||||
scopedSlots: { customRender: 'resultCell' }
|
||||
})
|
||||
}
|
||||
},
|
||||
initDictConfig () {
|
||||
// 涉及国家
|
||||
@@ -425,6 +436,7 @@ export default {
|
||||
})
|
||||
return { ...maintainObj, ...obj }
|
||||
})
|
||||
this.dealIsDetail()
|
||||
},
|
||||
/**
|
||||
* 删除特点(三级表头)
|
||||
|
||||
Reference in New Issue
Block a user