-
-
+
+
+
+
@@ -56,6 +58,7 @@ export default {
title: '',
visible: false,
confirmLoading: false,
+ leftLoading: false,
form: this.$form.createForm(this),
model: {},
labelCol: {
@@ -86,15 +89,21 @@ export default {
},
methods: {
add (fileId) {
+ this.leftLoading = true
this.getFileInfo(fileId).then(res => {
this.handlePreview(res)
+ }).finally(() => {
+ this.leftLoading = false
})
this.visible = true
this.form.resetFields()
},
edit (fileId, record, index) {
+ this.leftLoading = true
this.getFileInfo(fileId).then(res => {
this.handlePreview(res)
+ }).finally(() => {
+ this.leftLoading = false
})
this.visible = true
this.index = index