ZaiZai 1 ano atrás
pai
commit
a97d2b23bb

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20240807103135"
+  "value": "20240812113514"
 }

+ 3 - 1
src/config/index.json

@@ -1,6 +1,8 @@
 {
     "version": "202304141558",
-    "target": "http://39.108.216.210:8090",
+    "target": "http://192.168.0.109:8090",
+    "target2": "http://39.108.216.210:8090",
+    "target3": "http://183.247.216.148:28090",
     "socket1": "wss://measure.hczcxx.cn/websocket",
     "smsPhone": "",
     "vite": {

+ 10 - 0
src/styles/app/theme.scss

@@ -422,4 +422,14 @@ html.dark {
         border-color: var(--el-color-primary);
         color: white;
     }
+    &.color-blue {
+        --el-color-primary: #00D7FF !important;
+        .hc-table-ref-box .el-table[hc] {
+            --el-table-row-hover-bg-color: rgba(2, 41, 79, .6);
+            --el-table-current-row-bg-color: #0b2658
+        }
+        .text-blue {
+            color: #6fb8ff !important;
+        }
+    }
 }

+ 11 - 17
src/views/archives/rolling.vue

@@ -7,19 +7,19 @@
             />
         </template>
         <hc-new-card title="已形成的案卷">
-            <!-- <template  #header>
-               <div class="hc-card-header-table-title">
-                  已形成的案卷
-              </div>
-            </template> -->
             <template #extra>
-                <div v-if="propercent < 100 && propercent > 0" class="demo-progress">
+                <div v-if="propercent > 0 && propercent < 100" class="demo-progress">
                     <el-progress :percentage="propercent" :stroke-width="30" :text-inside="true" status="success" />
                 </div>
                 <HcTooltip keys="archives_rolling_btn_update">
                     <el-button :disabled="propercent > 0 && propercent < 100" :loading="updateArchiveLoad" hc-btn type="primary" @click="updateArchive">立即更新立卷</el-button>
                 </HcTooltip>
             </template>
+            <template #search>
+                <div class="flex-1 text-right text-12px text-red-5">
+                    请勿重复点击【自动立卷】,正在组卷中,重复点击会导致组卷失败,影响正在组卷的程序!组卷完成会有进度条提示。
+                </div>
+            </template>
             <HcTable
                 ref="tableRef" :check-style="{ width: 29 }" :column="tableColumn" :datas="tableData"
                 :index-style="{ width: 60 }" :loading="tableLoading" is-check is-new
@@ -43,7 +43,7 @@ import { useAppStore } from '~src/store'
 import HcTree from '~src/components/tree/hc-tree.vue'
 import projectScanningApi from '~api/other-file/projectScanning'
 import { getStoreValue, setStoreValue } from '~src/utils/storage'
-import { getArrValue } from 'js-fast-way'
+import { getArrValue, useClick } from 'js-fast-way'
 import tuningApi from '~api/archiveConfig/tuning.js'
 import { toPdfPage } from '~uti/btn-auth'
 //变量
@@ -61,7 +61,8 @@ watch(() => useAppState.getCollapse, (Collapse) => {
 //渲染完成
 onMounted(() => {
     getClassIfyList()
-    // Verification()
+    updateArchiveprogress()
+    Verification()
 })
 
 //树加载
@@ -202,6 +203,7 @@ const updateArchiveLoad = ref(false)
 const propercent = ref(0)
 
 const updateArchive = async () => {
+    await useClick()
     await updateArchiveprogress()
     if (propercent.value > 0 && propercent.value < 100) {
         window.$message.warning('正在组卷中,请不要重复点击')
@@ -217,24 +219,21 @@ const updateArchive = async () => {
             window.$message?.success(data)
             count.value = 0
             Verification()
-
         }
     }
 }
 
 //更新立卷进度
 const updateArchiveprogress = async () => {
-    const { error, code, data, msg } = await tuningApi.archiveAutoPercentComplete({
+    const { error, code, data } = await tuningApi.archiveAutoPercentComplete({
         projectId: projectId.value,
         contractId: contractId.value,
     })
-
     if (!error && code === 200) {
         if (data == 100) {
             count.value = 100
         }
         propercent.value = data
-
     }
 }
 const timer = ref(null)
@@ -243,14 +242,11 @@ let count = ref(0) // 倒计时
 const Verification = () => {
     timer.value = setInterval(() => {
         if (count.value == 100) {
-            console.log('停着')
             window.$message.success('更新成功')
             clearInterval(timer.value)
         } else {
             updateArchiveprogress()// 请求数据
         }
-
-
     }, 5000)
 }
 </script>
@@ -261,9 +257,7 @@ const Verification = () => {
     line-height: 1.75rem;
 }
 .demo-progress .el-progress--line {
-    margin-bottom: 15px;
     width: 350px;
-    margin-top: 15px;
     margin-right: 15px;
 }
 </style>