YaolongHan 4 роки тому
батько
коміт
78e41afea3

+ 1 - 1
src/components/baseEditer.vue

@@ -90,7 +90,7 @@ export default {
     // 自动保存(时间差为一分钟)
     this.autoSave = setInterval(() => {
       this.saveMsgNoMessage();
-    }, 60000);
+    }, 10000);
   },
   methods: {
     init() {

+ 6 - 4
src/components/edit/attr_select.vue

@@ -123,7 +123,7 @@
                   v-model="lengedName"
                   allow-clear
                   @change="changeLengedName"
-                      :auto-size="{ minRows: 2}"
+                  :auto-size="{ minRows: 2}"
           />
 <!--          <a-input v-model="lengedName" @change="changeLengedName" />-->
         </div>
@@ -558,6 +558,7 @@ export default {
     focusItemList: function(newval) {
       console.log('------------')
       console.log(FENGMAP)
+      console.log('newval',newval)
       const Item = newval.itemList[0];
       this.imageNum = 1; //切换item初始化
       if (Item.data && Item.data.SubType) {
@@ -631,8 +632,7 @@ export default {
             this.color = Item.color.value;
             this.fontSize = Item.font.size;
           } else if (newval.itemType == "Line") {
-            console.log('line',Item.name)
-            this.color = Item.color.value;
+            // this.color = Item.color.value;
             this.fillColor = Item.fillColor.value;
             this.borderColor = Item.strokeColor.value;
             this.lineWidth = Item.lineWidth;
@@ -657,13 +657,15 @@ export default {
       const assetnumList = [];
       let params = {};
       this.attrCards = [];
-      Item.data.AttachObjectIds.map(item => {
+      if(Item.data.AttachObjectIds && Item.data.AttachObjectIds.length ){
+          Item.data.AttachObjectIds.map(item => {
         if (item.type == "Zone") {
           locationList.push(item.id);
         } else if (item.type == "Image") {
           assetnumList.push(item.id);
         }
       });
+      }
       // if(newval.itemType == 'Zone'){
       this.spinning = true;
       if (locationList.length) {

+ 1 - 1
vue.config.js

@@ -26,7 +26,7 @@ module.exports = {
             },
             '/data': {
                 // target: 'http://192.168.200.87:9003',
-                target: 'http://60.205.177.43:9903', //阿里云
+                target: 'http://60.205.177.43', //阿里云
                 changeOrigin: true,
                 secure: false,
                 pathRewrite: {