update 文档拆分-查看标准分解单

This commit is contained in:
赵霄
2023-10-19 17:05:28 +08:00
parent 0ecfa8b94f
commit b1eccecd62
4 changed files with 49 additions and 17 deletions
@@ -63,7 +63,7 @@
<a-button type="primary"
ghost
icon="file-text"
@click="previewStandardResolutionSheet"
@click="previewStandardResolutionSheet(detailData[formItem.dbFieldName + '_standardSplit'])"
v-has="btnPermission.standardResolutionSheet"
:disabled="!detailData[formItem.dbFieldName + '_standardSplit']">
{{ $t('standardRegulationLibrary.standardResolutionSheet') }}
@@ -348,8 +348,8 @@ export default {
/**
* 查看标准分解单
*/
previewStandardResolutionSheet () {
this.$refs.standardResolutionSheetModal.open()
previewStandardResolutionSheet (id) {
this.$refs.standardResolutionSheetModal.open(id)
},
handlePreview (file) {
if (!file || !file.url) {
@@ -10,7 +10,7 @@
<a-spin :spinning="confirmLoading">
<div class="page-container">
<standard-resolution-sheet></standard-resolution-sheet>
<standard-resolution-sheet ref="resolutionSheet" />
</div>
</a-spin>
@@ -31,12 +31,18 @@ export default {
return {
width: '90%',
visible: false,
confirmLoading: false
confirmLoading: false,
splitId: null
}
},
methods: {
open () {
open (id) {
this.visible = true
this.$nextTick(() => {
this.$refs.resolutionSheet.splitId = id
this.$refs.resolutionSheet.initClauseFieldList()
this.$refs.resolutionSheet.initDetailInfo()
})
},
handleCancel () {
this.visible = false