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