Browse Source

feat: 定制频道和多频多台编辑序号修改效果处理

332777428@qq.com 1 month ago
parent
commit
53a4b23c31
2 changed files with 10 additions and 7 deletions
  1. 8 7
      src/views/operation/channel/index.vue
  2. 2 0
      src/views/operation/channels/index.vue

+ 8 - 7
src/views/operation/channel/index.vue

@@ -191,13 +191,13 @@
 
 
 <script>
 <script>
 import {
 import {
-change,
-channelPage,
-create,
-devList,
-editPage,
-getRemove,
-page,
+  change,
+  channelPage,
+  create,
+  devList,
+  editPage,
+  getRemove,
+  page,
 } from "@/api/operation/channel";
 } from "@/api/operation/channel";
 import { dialogCallBack } from "@/utils/DialogUtil";
 import { dialogCallBack } from "@/utils/DialogUtil";
 export default {
 export default {
@@ -401,6 +401,7 @@ export default {
       }
       }
 
 
       if (newSort === this.editData.currentEditSort) {
       if (newSort === this.editData.currentEditSort) {
+        this.editData.currentEditIndex = -1;
         return;
         return;
       }
       }
 
 

+ 2 - 0
src/views/operation/channels/index.vue

@@ -447,9 +447,11 @@ export default {
       }
       }
 
 
       if (newSort === this.editData.currentEditSort) {
       if (newSort === this.editData.currentEditSort) {
+        this.editData.currentEditIndex = -1;
         return;
         return;
       }
       }
 
 
+      
       this.editData.currentEditIndex = -1;
       this.editData.currentEditIndex = -1;
 
 
       // 检查序号是否重复
       // 检查序号是否重复