Explorar el Código

三个场景上传文件厚两种类型增加xosc的校验

zhangliang2 hace 3 años
padre
commit
7ebda356d9
Se han modificado 2 ficheros con 12 adiciones y 3 borrados
  1. 10 1
      src/views/sceneLibrary/components/fileDialog.vue
  2. 2 2
      vue.config.js

+ 10 - 1
src/views/sceneLibrary/components/fileDialog.vue

@@ -83,8 +83,17 @@ export default {
                         i.fileName.slice(i.fileName.lastIndexOf(".") + 1) ===
                         type
                 );
+
                 if (!item) {
-                    item = {};
+                    item = this.attachmentList.find(
+                        (i) =>
+                            i.fileName.slice(
+                                i.fileName.lastIndexOf(".") + 1
+                            ) === "xosc"
+                    );
+                    if (!item) {
+                        item = {};
+                    }
                 }
                 data[type + "Address"] = item.fileName || "";
             }

+ 2 - 2
vue.config.js

@@ -102,11 +102,11 @@ module.exports = {
                 }
             },
             '/simulation/resource/server': {
-                target: 'http://10.12.10.73:7003', // 王志强
+                // target: 'http://10.12.10.73:7003', // 王志强
                 // target: 'http://10.12.10.88:7003', // 王耀栋
                 // target: 'http://10.12.10.72:7003',  // 王晓峰
                 // target: 'http://10.12.10.87:7003',  // 赵艳
-                // target: 'http://10.12.10.70',  // windowstest
+                target: 'http://10.12.10.70',  // windowstest
                 // target: 'http://192.168.30.75',  // gq
                 // target: 'http://47.94.105.148',  // aliyun
                 // target: 'http://10.12.10.74:7003', // 孟令鑫