Ver Fonte

一键重签修改

duy há 1 mês atrás
pai
commit
a9ed371496
1 ficheiros alterados com 14 adições e 1 exclusões
  1. 14 1
      src/views/data-fill/query.vue

+ 14 - 1
src/views/data-fill/query.vue

@@ -1414,16 +1414,29 @@ const signLoading1 = ref(false)
 const cancelresign1 = ()=>{
     resignModalRadio1.value = 0
     resignModal1.value = false
+    checkTaskUserIds.value = []
+
 }
 
 const signClick1 = async () => {
     const rows = tableCheckedKeys.value
     //获取任务id
        const ids = arrToId(rows)
+
+       if (resignModalRadio1.value === 1) {
+            if (checkTaskUserIds.value.length === 0) { 
+                return window.$message?.warning('请选择用户')
+            }
+        } else {
+            checkTaskUserIds.value = []
+        }
     //发起请求
     signLoading1.value = true
+
+    
     const { error, code, msg } = await queryApi.reSigningEVisa1({
-        userIds: checkTaskUserIds.value,
+        userIds: checkTaskUserIds.value.length === 1 ? checkTaskUserIds.value[0] : checkTaskUserIds.value.join(','),
+
         ids: ids,