Jelajahi Sumber

解决图片上传删除功能

shaun-sheep 4 tahun lalu
induk
melakukan
f2a3ab89ff

+ 1 - 0
public/systemConf.js

@@ -23,6 +23,7 @@ var __systemConf = {
     // 系统编码
     systemCode: 'wandaBmGuide',
     conf: {
+        // 阿里云
         editerUrl: 'http://60.205.177.43:80/wandaEditer/', // 编辑器地址
         wandaBmGuideUrl: 'http://60.205.177.43:80/wandaBmGuide/', //管理书地址
     },

+ 2 - 1
src/views/legendLibrary/addForm.vue

@@ -208,7 +208,8 @@ export default {
             })
         },
         handleRemove(file, fileList) {
-            // //console.log(file, fileList, 'file')
+            console.log(file, fileList, 'file')
+            this.ruleForm.Url = ''
         },
         getFile(file) {
             // let imgSrc = document.querySelector('.input-right>img')

+ 5 - 4
src/views/legendRules/index.vue

@@ -156,9 +156,9 @@ export default {
                     let upDate = _this.tableData[index - 1]
                     _this.tableData.splice(index - 1, 1)
                     _this.tableData.splice(index, 0, upDate)
+                    let ids = _this.tableData.map(({ Id }) => Id)
+                    _this.upDateGraphy(ids)
                 }
-                let ids = _this.tableData.map(({ Id }) => Id)
-                _this.upDateGraphy(ids)
             }
 
             function down() {
@@ -168,9 +168,9 @@ export default {
                     let downDate = _this.tableData[index + 1]
                     _this.tableData.splice(index + 1, 1)
                     _this.tableData.splice(index, 0, downDate)
+                    let ids = _this.tableData.map(({ Id }) => Id)
+                    _this.upDateGraphy(ids)
                 }
-                let ids = _this.tableData.map(({ Id }) => Id)
-                _this.upDateGraphy(ids)
             }
         },
         // 更新图例关系信息
@@ -180,6 +180,7 @@ export default {
                 GraphElementIds: ids,
                 Move: true
             }
+
             graphElementUpdate({ posParams }).then(res => {
                 this.getData()
             })