Browse Source

压缩包上传清空

luohailiang 1 year ago
parent
commit
2534011cfa
1 changed files with 30 additions and 1 deletions
  1. 30 1
      src/pages/process/ysb/[ykl_id]/[ze_id].vue

+ 30 - 1
src/pages/process/ysb/[ykl_id]/[ze_id].vue

@@ -30,6 +30,31 @@ function showDetail(item) {
    dialogVisible = true;
    detailData = item.detail;
 }
+function clearZip(item) {
+  ElMessageBox.confirm("确认执行清空操作?", "", {
+    confirmButtonText: "确认",
+    cancelButtonText: "取消",
+    type: "warning",
+  }).then(() => {
+
+    request({
+      url: "/yzy/scan/zip_clear",
+      data: {
+        ze_id:ze_id,
+        user_id:item.user_id
+      },
+    }).then((res) => {
+      if (res.code === "1") {
+        ElMessage({
+          type: "success",
+          message: "操作成功!",
+        });
+        dialogVisible = false;
+        getDetail();
+      }
+    });
+  })
+}
 if (route.params.ze_id) {
   ze_id = route.params.ze_id;
   ykl_id = route.params.ykl_id;
@@ -85,11 +110,15 @@ if (route.params.ze_id) {
           <th>姓名</th>
           <th>账号</th>
           <th>上传份数</th>
+          <th>操作</th>
         </tr>
         <tr v-for="item in detailData">
           <td>{{item.realname}}</td>
           <td>{{item.username}}</td>
           <td>{{item.zip_num}}</td>
+          <td>
+            <button type="button" class="op-btn" @click="clearZip(item)">清空压缩包</button>
+          </td>
         </tr>
       </table>
     </div>
@@ -151,10 +180,10 @@ $color: #0048e5;
   }
 }
 .op-btn {
-  width: 50px;
   height: 30px;
   background: #fff;
   border: 1px solid #003eee;
+  padding: 0 10px;
   border-radius: 2px;
   font-size: 14px;
   color: #003eee;