Browse Source

资料填报>>参数库、文件题名多选框排序

duy 3 weeks ago
parent
commit
f3c798403f
3 changed files with 143 additions and 558 deletions
  1. 2 2
      src/config/index.json
  2. 0 18
      src/views/data-fill/collapse-form/index.vue
  3. 141 538
      src/views/data-fill/division.vue

+ 2 - 2
src/config/index.json

@@ -1,7 +1,7 @@
 {
     "version": "20230607160059",
-    "target": "http://127.0.0.1:8090",    
-    "target11": "http://192.168.0.109:8090",
+    "target11": "http://127.0.0.1:8090",    
+    "target": "http://192.168.0.109:8090",
     
     "socket": "wss://measure.hczcxx.cn/websocket",
     "socket2": "ws://192.168.0.125:9527/websocket",

+ 0 - 18
src/views/data-fill/collapse-form/index.vue

@@ -1663,7 +1663,6 @@ const getNewList = () => {
         // 2. 一次性过滤出所有新增项(保持 newObj 里的顺序)
         const addedList = newObj.filter(obj => !oldKeySet.has(obj.pkeyId))
 
-        // 3. 批量插入:全部紧挨在“它们第一次出现位置”的**前一个旧项后面**
         // 3. 逆序插入(同位置后面的先插,不会覆盖前面)
         for (let i = addedList.length - 1; i >= 0; i--) {
             const item = addedList[i]
@@ -1679,23 +1678,6 @@ const getNewList = () => {
             }
             listDatas.value.splice(anchorIndex + 1, 0, item)
         }
-        // addedList.forEach(item => {
-        //     // 先找到 newObj 里这条记录的下标
-        //     const idxInNew = newObj.findIndex(o => o.pkeyId === item.pkeyId)
-        //     // 往前找第一个“已存在于旧表”的节点,作为锚点
-        //     let anchor = null
-        //     for (let i = idxInNew - 1; i >= 0; i--) {
-        //         if (oldKeySet.has(newObj[i].pkeyId)) {
-        //             anchor = newObj[i]
-        //             break
-        //         }
-        //     }
-        //     // 在旧表对应锚点后面插入
-        //     const anchorIndex = anchor
-        //         ? listDatas.value.findIndex(o => o.pkeyId === anchor.pkeyId)
-        //         : -1 // 没找到锚点(说明新增在头部)
-        //     listDatas.value.splice(anchorIndex + 1, 0, item)
-        // })
     }, 1000)
 }
 //隐藏本表

File diff suppressed because it is too large
+ 141 - 538
src/views/data-fill/division.vue


Some files were not shown because too many files changed in this diff