Ver código fonte

更新依赖,插入设计值后更新

ZaiZai 1 ano atrás
pai
commit
79f672d27b
2 arquivos alterados com 26 adições e 4 exclusões
  1. 1 1
      src/config/index.json
  2. 25 3
      src/views/data-fill/query.vue

+ 1 - 1
src/config/index.json

@@ -1,6 +1,6 @@
 {
     "version": "20230607160059",
-    "target": "http://192.168.0.109:8090",
+    "target": "http://47.110.251.215:8090",
     "smsPhone": "",
     "vite": {
         "port": 5174,

+ 25 - 3
src/views/data-fill/query.vue

@@ -28,7 +28,7 @@
                             is-type
                             :auto-expand-keys="treeAutoExpandKeys"
                             default-expand-all
-                            @nodeTap="wbsElTreeClick"
+                            @node-tap="wbsElTreeClick"
                         />
                     </el-scrollbar>
                     <el-scrollbar v-show="!isSearchTree" class="scroll-bar-right-16">
@@ -38,7 +38,7 @@
                             is-counts
                             is-type
                             @load="treeLoadNode"
-                            @nodeTap="wbsElTreeClick"
+                            @node-tap="wbsElTreeClick"
                         />
                     </el-scrollbar>
                 </div>
@@ -108,6 +108,7 @@
                             <span>在线验签</span>
                         </el-button>
                     </HcTooltip>
+                    <el-button :disabled="tableCheckedKeys.length <= 0" :loading="signLoading" hc-btn color="#409eff" @click="signClick">re-sign</el-button>
                 </template>
                 <template #search>
                     <div class="flex items-center">
@@ -218,7 +219,7 @@
             url="informationWriteQuery/batchTask"
             @finish="showReportFinish"
             @hide="showReportModal = false"
-            @tagClose="reportTaskTagClose"
+            @tag-close="reportTaskTagClose"
         />
     </div>
 </template>
@@ -779,6 +780,27 @@ const onmousedown = () => {
         document.onmouseup = null
     }
 }
+
+//一键重签
+const signLoading = ref(false)
+const signClick = async () => {
+    const rows = tableCheckedKeys.value
+    if (rows.length <= 0) {
+        window.$message?.warning('请先勾选已审批的数据')
+        return
+    }
+    //判断是否满足条件
+    const result = rows.every(({ status }) => {
+        return status === 2
+    })
+    //判断状态
+    if (!result) {
+        window.$message?.warning('只能勾选已审批的数据')
+        return
+    }
+    const ids = arrToId(rows)
+    console.log('ids', ids)
+}
 </script>
 
 <style lang="scss" scoped>