Browse Source

1. fix 修复未发布修改标签,确定按钮不生效的问题
2. fix 修复 新建画布时,标签限制10位的问题

yunxing 4 years ago
parent
commit
7ca38490ef

+ 0 - 1
src/components/homeView/createPlanarDialog.vue

@@ -37,7 +37,6 @@
                             size="small"
                             size="small"
                             @keyup.enter.native="handleInputConfirm"
                             @keyup.enter.native="handleInputConfirm"
                             @blur="handleInputConfirm"
                             @blur="handleInputConfirm"
-                            :maxlength="10"
                         >
                         >
                         </el-input>
                         </el-input>
                         <el-button v-else class="button-new-tag" size="small" @click="showInput">+ 添加</el-button>
                         <el-button v-else class="button-new-tag" size="small" @click="showInput">+ 添加</el-button>

+ 6 - 3
src/components/homeView/tagDialog.vue

@@ -24,7 +24,7 @@
 </template>
 </template>
 
 
 <script>
 <script>
-import { pubPlanerUpdate } from "@/api/labsl";
+import { pubPlanerUpdate, planerUpdate } from "@/api/labsl";
 export default {
 export default {
     props: {
     props: {
         isPub: {
         isPub: {
@@ -78,9 +78,12 @@ export default {
                 ],
                 ],
                 projection: ["label"],
                 projection: ["label"],
             };
             };
+            // 已发布
             if (this.isPub) {
             if (this.isPub) {
-                // 已发布
-                let res = await pubPlanerUpdate(pa);
+                const res = await pubPlanerUpdate(pa);
+                this.updateCall(res);
+            } else { //未发布
+                const res = await planerUpdate(pa);
                 this.updateCall(res);
                 this.updateCall(res);
             }
             }
         },
         },