浏览代码

电签检测修改

duy 1 月之前
父节点
当前提交
021cc36fe0
共有 1 个文件被更改,包括 33 次插入30 次删除
  1. 33 30
      src/views/systemService/test.vue

+ 33 - 30
src/views/systemService/test.vue

@@ -108,7 +108,7 @@
                                         size="small"
                                         style="width: 80%;"
                                     />
-                                    <span>300/300</span>
+                                    <span class="ml-1">300/300</span>
                                 </div>
                             </div>
                         </div>
@@ -142,7 +142,7 @@
                             style="color: white;"
                             @click="batchOnlineClick"
                         >
-                            <HcIcon name="folder-download" />
+                            <HcIcon name="survey" />
                             <span>电签检测</span>
                         </el-button>
                        
@@ -242,19 +242,15 @@
                         <template #chekStatus="{ row }">
                             <el-tag
 
-                                :type="`${row.chekStatus === 2 ? 'success' : row.chekStatus === 0 ? 'warning' : row.taskStatusStr === 3 ? 'danger' : 'info'}`"
+                                :type="`${row.chekStatus === 2 ? 'success' : row.chekStatus === 0 ? 'warning' : row.chekStatus === 3 ? 'danger' : 'info'}`"
                                 class="mx-1" effect="dark"
                             >
-                                {{ row.chekStatus === 0 ? '未检出' : row.chekStatus === 1 ? '已提交' : row.chekStatus === 2 ? '检测无误' : '检测有误' }}
+                                {{ row.chekStatus === 0 ? '未检测' : row.chekStatus === 1 ? '检测中' : row.chekStatus === 2 ? '检测无误' : '检测有误' }}
                             </el-tag>
                         </template>
                     </HcTable>
                     <template #action>
-                        <div class="lr-dialog-footer">
-                            <div class="right">
-                                <HcPages :pages="searchForm" @change="pageChange" />
-                            </div>
-                        </div>
+                        <HcPages :pages="searchForm" @change="pageChange" />
                     </template>
                 </HcNewCard>
             </hc-body>
@@ -723,10 +719,9 @@ const tableListColumn = ref([
     { key: 'name', name: '文件题名' },
  
     { key: 'taskStatusStr', name: '资料状态', width: 100, align: 'center' },
-    { key: 'taskStatusStr', name: '检测状态', width: 100, align: 'center' },
+    { key: 'chekStatus', name: '检测状态', width: 100, align: 'center' },
 
     { key: 'fileUserIdAndName', name: '填报人', width: 190, align: 'center' },
-    { key: 'waitingUserList', name: '任务人', align: 'center' },
 
 ])
 
@@ -1496,25 +1491,33 @@ const ElTreeMenuClick = async ({ key, node, data, keys }) => {
     nodeDataInfo.value = data
     setStoreValue('wbsTreeExpandKeys', keys)
     if (key === 'add1') {
-        // console.log(22222)
-          const { error, code, msg } = await queryApi.updateCheckPdfInfo(
-      {
-        classify:contractTypeTabKey.value,
-        type:1,
-        primaryKeyId:nodeDataInfo.value.primaryKeyId,
-      },
-   
-    )
-     batchOnlineClickLoad.value = false
-    //处理数据
-    signLoading1.value = false
-
-    if (!error && code === 200) {
-        window.$message?.success(msg )
-         
-        getTableData().then()
-    } 
-    
+     window?.$messageBox?.alert('是否进行电签检测?', '电签检测', {
+            showCancelButton: true,
+            confirmButtonText: '确定',
+            cancelButtonText: '取消',
+            callback:async (action) => {
+                if (action === 'confirm') {
+                     batchOnlineClickLoad.value = true
+                             const { error, code, msg } = await queryApi.updateCheckPdfInfo(
+                        {
+                            classify:contractTypeTabKey.value,
+                            type:1,
+                            primaryKeyId:nodeDataInfo.value.primaryKeyId,
+                        },
+                    
+                        )
+                        batchOnlineClickLoad.value = false
+                        //处理数据
+                        signLoading1.value = false
+
+                        if (!error && code === 200) {
+                            window.$message?.success(msg )
+                            
+                            getTableData().then()
+                        } 
+                }
+            },
+        })
         
     }