shaun-sheep 4 rokov pred
rodič
commit
a986235e58

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

@@ -365,15 +365,16 @@ export default {
         },
         // 铺位可视化
         treeConfirm(data) {
+            console.log(data, 'data')
             this.$set(this.ruleForm, 'InfoTypeId', data)
         },
         //专业
         treeConfirmMajor(id, info) {
-            this.$set(this.ruleForm, 'InfoSystem', data)
+            // this.$set(this.ruleForm, 'InfoSystem', data)
         },
         //位置/设备
         treeConfirmDevice(id, info) {
-            this.$set(this.ruleForm, 'InfoLocal', data)
+            // this.$set(this.ruleForm, 'InfoLocal', data)
         },
         focusChange(status) {
             // console.log('focusChange', status)
@@ -500,6 +501,9 @@ export default {
             .form4-span2 {
                 margin-right: 102px;
             }
+            .form4-span3 {
+                margin-left: 37px;
+            }
         }
     }
     .form5 {

+ 29 - 13
src/views/legendLibrary/addLegend.vue

@@ -40,9 +40,9 @@ export default {
                 Url: '',
                 LineWidth: '',
                 LineDash: '',
-                InfoTypeId: [], //铺位可视化typeid
-                InfoLocal: [], //工程信息化位置与设备分类
-                InfoSystem: [] //工程信息化专业/系统
+                InfoTypeId: [] //铺位可视化typeid
+                // InfoLocal: [], //工程信息化位置与设备分类
+                // InfoSystem: [] //工程信息化专业/系统
             },
             title: '',
             GraphCategoryId: 'DTXT',
@@ -70,9 +70,9 @@ export default {
                     Unit: '',
                     FillColor: '',
                     Url: '',
-                    InfoTypeId: [], //铺位可视化typeid
-                    InfoLocal: [], //工程信息化位置与设备分类
-                    InfoSystem: [] //工程信息化专业/系统
+                    InfoTypeId: [] //铺位可视化typeid
+                    // InfoLocal: [], //工程信息化位置与设备分类
+                    // InfoSystem: [] //工程信息化专业/系统
                 }
             } else if (title == '添加图例库') {
                 this.dialogVisible = true
@@ -82,9 +82,9 @@ export default {
                     Unit: '',
                     FillColor: '',
                     Url: '',
-                    InfoTypeId: [], //铺位可视化typeid
-                    InfoLocal: [], //工程信息化位置与设备分类
-                    InfoSystem: [] //工程信息化专业/系统
+                    InfoTypeId: [] //铺位可视化typeid
+                    // InfoLocal: [], //工程信息化位置与设备分类
+                    // InfoSystem: [] //工程信息化专业/系统
                 }
             } else if (title == '修改图例库') {
                 this.dialogVisible = true
@@ -108,9 +108,9 @@ export default {
                 Unit: '',
                 FillColor: '',
                 Url: '',
-                InfoTypeId: [], //铺位可视化typeid
-                InfoLocal: [], //工程信息化位置与设备分类
-                InfoSystem: [] //工程信息化专业/系统
+                InfoTypeId: [] //铺位可视化typeid
+                // InfoLocal: [], //工程信息化位置与设备分类
+                // InfoSystem: [] //工程信息化专业/系统
             }
         },
         mesg() {
@@ -128,7 +128,23 @@ export default {
             if (this.info.Name == '') {
                 this.$message.info('请填写图例名称')
                 return false
-            } else {
+            }
+            //  else if (this.info.Type == 'Zone') {
+            //     if (this.info.FillColor == '') {
+            //         this.$message.info('请选择填充色以及透明度')
+            //         return false
+            //     }
+            //     if (this.info.Color == '') {
+            //         this.$message.info('请选择边框颜色')
+            //         return false
+            //     }
+            // } else if (this.info.Type == 'Line') {
+            //     if (this.info.Color == '') {
+            //         this.$message.info('请选择边框颜色')
+            //         return false
+            //     }
+            // }
+            else {
                 if (this.info.Type != 'Image' && this.info.Type != 'None') {
                     this.$refs.add.saveImg()
                 } else {