From 528c4590c60e18fc480b191cd284013ee8310723 Mon Sep 17 00:00:00 2001
From: luobisheng <727299681@qq.com>
Date: 星期五, 25 十一月 2022 15:24:33 +0800
Subject: [PATCH] 上传处置结果

---
 src/views/systemSetting/platform/cockpitManage/index.vue |   31 ++++++++++++++++++++++---------
 1 files changed, 22 insertions(+), 9 deletions(-)

diff --git a/src/views/systemSetting/platform/cockpitManage/index.vue b/src/views/systemSetting/platform/cockpitManage/index.vue
index 7217eb3..ce70c66 100644
--- a/src/views/systemSetting/platform/cockpitManage/index.vue
+++ b/src/views/systemSetting/platform/cockpitManage/index.vue
@@ -12,7 +12,9 @@
                     <div class="search-item">
                         <span>鐘舵��:</span>
                         <div class="option">
-                            <el-input v-model="searchStatus" placeholder="閫夋嫨鐘舵��"></el-input>
+                          <el-select v-model="searchStatus" placeholder="閫夋嫨鐘舵��">
+                            <el-option v-for="{ label, value } in statusOptions" :key="value" :label="label" :value="value"></el-option>
+                          </el-select>
                         </div>
                     </div>
                     <div class="findBtn">
@@ -134,7 +136,7 @@
 import updateUser from "./updateUser";
 import detailUser from "./detailUser";
 import { deleteTeam, exportTeamInfo, importTeamInfo, searchTeamInfo } from "@/api/system/portal/teamConstruction";
-import {SUCCESS_CODE} from "@/utils";
+import { SUCCESS_CODE } from "@/utils";
 import {downloadFile} from "@/utils/helper";
 
 export default {
@@ -162,6 +164,20 @@
             myIdx: 0,
             preMyIdx: 0,
             file: null,
+            statusOptions: [
+              {
+                value: 2,
+                label: '鍏ㄩ儴'
+              },
+              {
+                value: 1,
+                label: '鍚敤'
+              },
+              {
+                value: 0,
+                label: '绂佺敤'
+              }
+            ],
             options: [
                 {
                     value: 0,
@@ -221,11 +237,6 @@
             this.updateDepartmentData = data;
         },
 
-        // 鏌ョ湅
-        showViewDialog() {
-            this.dialogcheck = true;
-        },
-
         // 娣诲姞鐣岄潰
         showAddDialog() {
           this.dialogAdd = true;
@@ -234,7 +245,8 @@
 
         // 瀵煎嚭
         exportTable() {
-          exportTeamInfo({ current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status: this.searchStatus })
+          const status = this.searchStatus === 2 ? null : this.searchStatus;
+          exportTeamInfo({ current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status })
               .then(res => {
                 downloadFile(res);
                 this.$message({ type: 'success', message: '鎿嶄綔鎴愬姛' });
@@ -345,8 +357,9 @@
 
         // 鑾峰彇鐢ㄦ埛鍒楄〃
         getDepartmentList() {
+          const status = this.searchStatus === 2 ? null : this.searchStatus;
           const searchInfo = {
-            current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status: this.searchStatus
+            current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status
           };
           searchTeamInfo(searchInfo)
               .then(({ records, total }) => {

--
Gitblit v1.8.0