中介库导入bug
This commit is contained in:
@@ -73,7 +73,7 @@
|
|||||||
>
|
>
|
||||||
{{ isUploading ? '导入中...' : '开始导入' }}
|
{{ isUploading ? '导入中...' : '开始导入' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button icon="el-icon-close" @click="visible = false" :disabled="isUploading">
|
<el-button :disabled="isUploading" icon="el-icon-close" @click="handleCancel">
|
||||||
取 消
|
取 消
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -144,6 +144,10 @@ export default {
|
|||||||
this.isFileSelected = false;
|
this.isFileSelected = false;
|
||||||
this.$emit("close");
|
this.$emit("close");
|
||||||
},
|
},
|
||||||
|
handleCancel() {
|
||||||
|
// 通过 $emit 通知父组件更新 visible 状态,而不是直接修改 prop
|
||||||
|
this.$emit('update:visible', false);
|
||||||
|
},
|
||||||
handleImportTypeChange() {
|
handleImportTypeChange() {
|
||||||
if (this.$refs.upload) {
|
if (this.$refs.upload) {
|
||||||
this.$refs.upload.clearFiles();
|
this.$refs.upload.clearFiles();
|
||||||
|
|||||||
Reference in New Issue
Block a user