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

修改图例--添加非图例接口存储

shaun-sheep пре 4 година
родитељ
комит
a31b6ad86f
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 1 0
      src/views/legendLibrary/addForm.vue
  2. 2 2
      src/views/legendLibrary/addLegend.vue

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

@@ -230,6 +230,7 @@ export default {
             let postParams = {
                 Content: [this.ruleForm]
             }
+
             createLegend({ postParams }).then(res => {
                 console.log(res)
                 if (res.Result == 'success') {

+ 2 - 2
src/views/legendLibrary/addLegend.vue

@@ -129,8 +129,8 @@ export default {
                     }
                 }
                 this.dialogVisible = false
-                if (!this.title) {
-                    this.$refs.searchList.save()
+                if (!this.title || this.info.Type == 'None') {
+                    this.$refs.add.create()
                 }
             }
         },