[update] 修改bug80278
This commit is contained in:
+10
-2
@@ -518,7 +518,8 @@
|
|||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</div>
|
</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="handleCancel">{{ $t('cancel') }}</a-button>
|
||||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{ $t('submit') }}</a-button>
|
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{ $t('submit') }}</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -716,7 +717,8 @@ export default {
|
|||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
isLook: false // 是否是查看
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -781,8 +783,13 @@ export default {
|
|||||||
},
|
},
|
||||||
look (record) {
|
look (record) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
this.isLook = true
|
||||||
this.model = Object.assign({}, record)
|
this.model = Object.assign({}, record)
|
||||||
this.formInline = Object.assign({}, record)
|
this.formInline = Object.assign({}, record)
|
||||||
|
// 没有申请类型就设置为立项
|
||||||
|
if (!this.formInline.applicationType) {
|
||||||
|
this.formInline.applicationType = this.ApplicationCategory.INITIATION.value
|
||||||
|
}
|
||||||
if (this.formInline.workGroup) {
|
if (this.formInline.workGroup) {
|
||||||
this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText }
|
this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText }
|
||||||
}
|
}
|
||||||
@@ -906,6 +913,7 @@ export default {
|
|||||||
this.model = {}
|
this.model = {}
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
this.isLook = false
|
||||||
this.$refs.ruleForm.clearValidate()
|
this.$refs.ruleForm.clearValidate()
|
||||||
},
|
},
|
||||||
// 提交
|
// 提交
|
||||||
|
|||||||
+9
-2
@@ -498,7 +498,7 @@
|
|||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</div>
|
</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="handleCancel">{{ $t('cancel') }}</a-button>
|
||||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{ $t('submit') }}</a-button>
|
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{ $t('submit') }}</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -742,7 +742,8 @@ export default {
|
|||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
isLook: false // 是否是查看
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -859,9 +860,14 @@ export default {
|
|||||||
this.formInline = Object.assign({}, formInline)
|
this.formInline = Object.assign({}, formInline)
|
||||||
},
|
},
|
||||||
look (record) {
|
look (record) {
|
||||||
|
this.isLook = true
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.model = Object.assign({}, record)
|
this.model = Object.assign({}, record)
|
||||||
this.formInline = 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 => {
|
this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => {
|
||||||
return { value: item }
|
return { value: item }
|
||||||
}) : []
|
}) : []
|
||||||
@@ -963,6 +969,7 @@ export default {
|
|||||||
this.model = {}
|
this.model = {}
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
this.isLook = false
|
||||||
this.$refs.ruleForm.clearValidate()
|
this.$refs.ruleForm.clearValidate()
|
||||||
this.draftPlanFinishDateDisabled = false
|
this.draftPlanFinishDateDisabled = false
|
||||||
this.exposureDraftPlanFinishDateDisabled = false
|
this.exposureDraftPlanFinishDateDisabled = false
|
||||||
|
|||||||
Reference in New Issue
Block a user