瀏覽代碼

电签检测修改

duy 3 周之前
父節點
當前提交
fe6d6c49bc
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/views/systemService/test.vue

+ 4 - 3
src/views/systemService/test.vue

@@ -138,9 +138,10 @@
                  
                      
                         <el-button
-                            :disabled="tableCheckedKeys.length <= 0" hc-btn
+                            hc-btn
                             color="#52B200" 
                             style="color: white;"
+                            :disabled="tableCheckedKeys.length <= 0 && !nodeDataInfo.primaryKeyId "
                             @click="batchOnlineClick"
                         >
                             <HcIcon name="survey" />
@@ -1490,8 +1491,8 @@ const batchOnlineClick = async ()=>{
     const { error, code, msg } = await queryApi.updateCheckPdfInfo(
       {
         classify:contractTypeTabKey.value,
-        type:2,
-        ids,
+        type:tableCheckedKeys.value.length > 0 ? 2 : 1,
+        ids:tableCheckedKeys.value.length > 0 ? ids : nodeDataInfo.value.primaryKeyId,
       },
    
     )