[update] 修改bug80470
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
<a-button :loading="confirmLoading" @click="handleCancel">
|
||||
{{ $t('cancel') }}
|
||||
</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleSubmitAddAdd">
|
||||
<a-button v-if="isAdd" type="primary" :loading="confirmLoading" @click="handleSubmitAddAdd">
|
||||
{{ $t('submitAddAdd') }}
|
||||
</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">
|
||||
@@ -118,7 +118,8 @@ export default {
|
||||
}
|
||||
},
|
||||
index: undefined, // 编辑的表格的下标
|
||||
iframeSrc: '' // 左侧预览的路径
|
||||
iframeSrc: '', // 左侧预览的路径
|
||||
isAdd: false // 是否是新增,新增才有提交并新增按钮
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -126,6 +127,7 @@ export default {
|
||||
this.getFileInfo(file).then(res => {
|
||||
this.handlePreview(res)
|
||||
})
|
||||
this.isAdd = true
|
||||
this.visible = true
|
||||
this.form.resetFields()
|
||||
},
|
||||
@@ -171,6 +173,7 @@ export default {
|
||||
this.model = {}
|
||||
this.index = undefined
|
||||
this.iframeSrc = ''
|
||||
this.isAdd = false
|
||||
},
|
||||
handleCancel () {
|
||||
this.close()
|
||||
|
||||
Reference in New Issue
Block a user