Преглед изворни кода

修改选择活动类型后的文件
缓存

DESKTOP-4G80JF4\long пре 3 година
родитељ
комит
df1ac8ed17
1 измењених фајлова са 6 додато и 5 уклоњено
  1. 6 5
      operationSupport/src/views/propertyManagement/inform.vue

+ 6 - 5
operationSupport/src/views/propertyManagement/inform.vue

@@ -490,6 +490,8 @@ export default {
             console.log('点击文件', file);
         },
         successFile(file, fileLists) {
+            console.log('上传文件successFile', fileLists);
+
             let obj = {};
             // this.fileList.push(fileLists.name);
             let resName = fileLists.response.data;
@@ -497,8 +499,6 @@ export default {
             obj.name = fileLists.name;
             // this.uploadFileUrl= this.uploadFileUrl.concat(newName + ',');
             this.uploadFileUrl.push(obj);
-
-            console.log('上传文件successFile', this.fileList);
         },
         handleExceed(files, fileList) {
             this.$message.warning(
@@ -558,7 +558,7 @@ export default {
                 if (res.status === 0) {
                     this.selectDataHouseTreeData = res.data;
                 } else {
-                    // this.$message('请选择房间');
+                    // this.$message('获取房间失败');
                 }
             });
             console.log('选中的房间val', val);
@@ -625,6 +625,7 @@ export default {
         },
         // 发布活动类型
         changeInformType(val) {
+            this.successImageLists = '';
             if (val) {
                 this.showUploadImage = true;
                 this.rowDetail = '';
@@ -645,7 +646,7 @@ export default {
             this.ruleForm.issueRoom.checkAll = false;
             // this.showDetail = false;
             this.filePath = '';
-            this.uploadFileUrl = '';
+            this.uploadFileUrl = [];
             this.fileList = [];
             this.ruleForm.exigencyText = true;
             this.$refs.endit.setContent(this.contents);
@@ -658,7 +659,7 @@ export default {
             this.showUploadImage = false;
             this.ruleForm.issueRoom.checkAll = true;
             this.filePath = '';
-            this.uploadFileUrl = '';
+            this.uploadFileUrl = [];
             this.fileList = [];
             this.$refs.endit.setContent(this.contents);
             this.$refs.upImages.clearImageList();