From 1d32ac7c8337be786cc57b4e0031bdf01f5c9e10 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 24 十月 2022 17:30:36 +0800
Subject: [PATCH] bug修改

---
 src/views/operate/log/index.vue | 1115 ++++++++++++++++++++++++++++++---------------------------
 1 files changed, 588 insertions(+), 527 deletions(-)

diff --git a/src/views/operate/log/index.vue b/src/views/operate/log/index.vue
index a7a9923..2b7370d 100644
--- a/src/views/operate/log/index.vue
+++ b/src/views/operate/log/index.vue
@@ -1,558 +1,619 @@
 <template>
-    <div class="userList">
-        <header>
-            <div class="header-nav">
-                <span class="nav-left">鏁版嵁绛涢��</span>
-                <span class="nav-right">楂樼骇鎼滅储</span>
+  <div class="userList">
+    <header>
+      <div class="header-nav">
+        <span class="nav-left">鏁版嵁绛涢��</span>
+        <span class="nav-right">楂樼骇鎼滅储</span>
+      </div>
+      <div class="header-content">
+        <div class="search">
+          <span>杈撳叆鏌ヨ:</span>
+          <el-input placeholder="鍐呭淇℃伅" v-model="context"></el-input>
+        </div>
+        <div class="message-status">
+          <span>鎿嶄綔绫诲瀷:</span>
+          <el-select v-model="operationType">
+            <el-option
+              v-for="item in operationTypeList"
+              :key="item.id"
+              :label="item.operationType"
+              :value="item.operationType"
+            >
+            </el-option>
+          </el-select>
+        </div>
+        <div class="message-kind">
+          <span>鏃堕棿鑼冨洿:</span>
+          <el-date-picker
+            v-model="mytime"
+            type="daterange"
+            range-separator="-"
+            start-placeholder="寮�濮嬫棩鏈�"
+            end-placeholder="缁撴潫鏃ユ湡"
+          >
+          </el-date-picker>
+        </div>
+        <div class="find">
+          <el-button
+            type="primary"
+            icon="el-icon-search"
+            @click="setTableDataHandle"
+            >鏌ヨ</el-button
+          >
+          <el-button icon="el-icon-delete-solid" @click="resetTableData"
+            >閲嶇疆</el-button
+          >
+        </div>
+      </div>
+    </header>
+    <main>
+      <div class="mainContent">
+        <div class="main-nav">
+          <span>鏁版嵁鍒楄〃</span>
+          <div class="main-nav-right">
+            <el-button
+              type="primary"
+              icon="el-icon-upload2"
+              @click="handleExport"
+              >瀵煎嚭</el-button
+            >
+            <el-button class="el-icon-delete-solid">娓呯┖</el-button>
+          </div>
+        </div>
+        <!-- 鏁版嵁灞曠ず -->
+        <el-table
+          ref="multipleTable"
+          :default-sort="{ prop: 'createTime' }"
+          :header-cell-style="{
+            background: '#06122c',
+            'font-size': '12px',
+            color: '#4b9bb7',
+            'font-weight': '650',
+            'line-height': '45px',
+          }"
+          :data="tableData"
+          style="width: 100%"
+          @sort-change="sortTime"
+          :row-class-name="tableRowClassName"
+          @selection-change="tableChange"
+        >
+          <el-table-column type="selection" min-width="5"> </el-table-column>
+          <el-table-column
+            prop="createTime"
+            sortable
+            label="鏃ュ織鏃堕棿"
+            min-width="10"
+          >
+            <template slot-scope="scope">
+              <span>{{ changeTime(scope.row.createTime) }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column prop="userAgent" label="缁堢璁惧" min-width="10">
+          </el-table-column>
+          <el-table-column prop="operationType" label="鎿嶄綔绫诲瀷" min-width="10">
+          </el-table-column>
+          <el-table-column prop="adminId" label="鎿嶄綔浜哄憳" min-width="10">
+          </el-table-column>
+          <el-table-column prop="ip" label="IP鍦板潃" min-width="10">
+          </el-table-column>
+          <el-table-column prop="contain" label="鍐呭" min-width="10">
+          </el-table-column>
+        </el-table>
+        <!-- tools -->
+        <div class="tools">
+          <div class="funs">
+            <div class="funsItem funs-sp">
+              <el-checkbox v-model="all" @change="selectAll()"
+                >鍏ㄩ��</el-checkbox
+              >
             </div>
-            <div class="header-content">
-                <div class="search">
-                    <span>杈撳叆鏌ヨ:</span>
-                    <el-input placeholder="鍐呭淇℃伅" v-model="context"></el-input>
-                </div>
-                <div class="message-status">
-                    <span>鎿嶄綔绫诲瀷:</span>
-                    <el-select v-model="operationType">
-                        <el-option v-for="item in operationTypeList" :key="item.id" :label="item.operationType"
-                            :value="item.operationType">
-                        </el-option>
-                    </el-select>
-                </div>
-                <div class="message-kind">
-                    <span>鏃堕棿鑼冨洿:</span>
-                    <el-date-picker v-model="mytime" type="daterange" range-separator="-" start-placeholder="寮�濮嬫棩鏈�"
-                        end-placeholder="缁撴潫鏃ユ湡">
-                    </el-date-picker>
-                </div>
-                <div class="find">
-                    <el-button type="primary" icon="el-icon-search" @click="setTableData">鏌ヨ</el-button>
-                    <el-button icon="el-icon-delete-solid" @click="resetTableData">閲嶇疆</el-button>
-                </div>
+            <div class="funsItem funs-sp">
+              <el-checkbox v-model="unsame" @change="disSame(tableData)"
+                >鍙嶉��</el-checkbox
+              >
             </div>
-        </header>
-        <main>
-            <div class="mainContent">
-                <div class="main-nav">
-                    <span>鏁版嵁鍒楄〃</span>
-                    <div class="main-nav-right">
-                        <el-button type="primary" icon="el-icon-upload2" @click="handleExport">瀵煎嚭</el-button>
-                        <el-button class="el-icon-delete-solid">娓呯┖</el-button>
-                    </div>
-                </div>
-                <!-- 鏁版嵁灞曠ず -->
-                <el-table ref="multipleTable" :default-sort="{prop: 'createTime'}"
-                    :header-cell-style="{background:'#06122c','font-size':'12px',color:'#4b9bb7','font-weight':'650','line-height':'45px'}"
-                    :data="tableData" style="width: 100%" @sort-change="sortTime" :row-class-name="tableRowClassName"
-                    @selection-change="tableChange">
-                    <el-table-column type="selection" min-width="5">
-                    </el-table-column>
-                    <el-table-column prop="createTime" sortable label="鏃ュ織鏃堕棿" min-width="10">
-                        <template slot-scope="scope">
-                            <span>{{changeTime(scope.row.createTime)}}</span>
-                        </template>
-                    </el-table-column>
-                    <el-table-column prop="userAgent" label="缁堢璁惧" min-width="10">
-                    </el-table-column>
-                    <el-table-column prop="operationType" label="鎿嶄綔绫诲瀷" min-width="10">
-                    </el-table-column>
-                    <el-table-column prop="adminId" label="鎿嶄綔浜哄憳" min-width="10">
-                    </el-table-column>
-                    <el-table-column prop="ip" label="IP鍦板潃" min-width="10">
-                    </el-table-column>
-                    <el-table-column prop="contain" label="鍐呭" min-width="10">
-                    </el-table-column>
-                </el-table>
-                <!-- tools -->
-                <div class="tools">
-                    <div class="funs">
-                        <div class="funsItem funs-sp">
-                            <el-checkbox v-model="all" @change="selectAll()">鍏ㄩ��</el-checkbox>
-                        </div>
-                        <div class="funsItem funs-sp">
-                            <el-checkbox v-model="unsame" @change="disSame(tableData)">鍙嶉��</el-checkbox>
-                        </div>
-                        <div class="funsItem">
-                            <el-select v-model="myIdx" placeholder="鎵归噺鎿嶄綔" @change="selectChange">
-                                <el-option v-for="item in options" :key="item.value" :label="item.label"
-                                    :value="item.value">
-                                </el-option>
-                            </el-select>
-                        </div>
-                    </div>
-                    <div class="pagination">
-                        <el-pagination background :current-page="currentPage" layout="prev, pager, next"
-                            :total="totalNum" :page-size="pageSize" @current-change="changeCurrentPage"
-                            @prev-click="handlePrev" @next-click="handleNext">
-                        </el-pagination>
-                    </div>
-                </div>
+            <div class="funsItem">
+              <el-select
+                v-model="myIdx"
+                placeholder="鎵归噺鎿嶄綔"
+                @change="selectChange"
+              >
+                <el-option
+                  v-for="item in options"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value"
+                >
+                </el-option>
+              </el-select>
             </div>
-        </main>
-    </div>
+          </div>
+          <div class="pagination">
+            <el-pagination
+              background
+              :current-page="currentPage"
+              layout="prev, pager, next"
+              :total="totalNum"
+              :page-size="pageSize"
+              @current-change="changeCurrentPage"
+              @prev-click="handlePrev"
+              @next-click="handleNext"
+            >
+            </el-pagination>
+          </div>
+        </div>
+      </div>
+    </main>
+  </div>
 </template>
 <script>
-import helper from '@/utils/mydate'
-import {parseTime} from '@/utils/index'
+import helper from "@/utils/mydate";
+import { parseTime } from "@/utils/index";
 import { createNamespacedHelpers } from "vuex";
 const { mapActions } = createNamespacedHelpers("logs");
 export default {
-    components: {
-    },
-    data() {
-        return {
-            tableData: [],
-            context: "",
-            totalNum: null,
-            pageSize: 10,
-            currentPage: 1,
-            all: false,
-            unsame: false,
-            myIdx: null,
-            preMyIdx: null,
-            options: [
-                {
-                    value: 1,
-                    label: '鎵归噺鍒犻櫎',
-                }
-            ],
-            mysort: 0,
-            tempList: [],
-            operationType: '鍏ㄩ儴',
-            operationTypeList: [],
-            mytime: ['',''],
-        }
-    },
-    created() {
-        this.setTableData();
-        this.setOperationType();
-    },
-    methods: {
-        ...mapActions(["getLogsList", 'getLogsOperationType', 'exportLogs']),
-        // 閲嶇疆
-        resetTableData(){
-            const {setTableData} = this
-            this.operationType = '鍏ㄩ儴'
-            this.mytime = ['','']
-            this.context = ''
-            setTableData();
+  components: {},
+  data() {
+    return {
+      tableData: [],
+      context: "",
+      totalNum: null,
+      pageSize: 10,
+      currentPage: 1,
+      all: false,
+      unsame: false,
+      myIdx: null,
+      preMyIdx: null,
+      options: [
+        {
+          value: 1,
+          label: "鎵归噺鍒犻櫎",
         },
-        // 瀵煎嚭鏃ュ織
-        async handleExport() {
-            const { currentPage, pageSize, context, operationType } = this;
-            let arr = await this.exportLogs({
-                content: context,
-                current: currentPage,
-                size: pageSize,
+      ],
+      mysort: 0,
+      tempList: [],
+      operationType: "鍏ㄩ儴",
+      operationTypeList: [],
+      mytime: ["", ""],
+    };
+  },
+  created() {
+    this.setTableData();
+    this.setOperationType();
+  },
+  methods: {
+    ...mapActions(["getLogsList", "getLogsOperationType", "exportLogs"]),
+    // 閲嶇疆
+    resetTableData() {
+      const { setTableData } = this;
+      this.operationType = "鍏ㄩ儴";
+      this.mytime = ["", ""];
+      this.context = "";
+      this.currentPage = 1;
+      this.setTableData();
+    },
+    setTableDataHandle() {
+      this.currentPage = 1;
+      this.setTableData();
+    },
+    // 瀵煎嚭鏃ュ織
+    async handleExport() {
+      const { currentPage, pageSize, context, operationType } = this;
+      let arr = await this.exportLogs({
+        content: context,
+        current: currentPage,
+        size: pageSize,
+      });
+      let fileName = arr.headers["content-disposition"];
+      console.log(fileName);
+      if (fileName) {
+        fileName = fileName.slice(fileName.indexOf("filename=") + 9);
+      }
+      const blob = new Blob([arr.data], {
+        type: "application/octet-stream",
+      });
+      // content-disposition
+      const downloadElement = document.createElement("a");
+      // 鍒涘缓涓嬭浇鐨勯摼鎺�
+      const href = window.URL.createObjectURL(blob);
+      downloadElement.href = href;
+      // // 涓嬭浇鍚庢枃浠跺悕
+      downloadElement.download = fileName;
+      document.body.appendChild(downloadElement);
+      // 鐐瑰嚮涓嬭浇
+      downloadElement.click();
+      // 涓嬭浇瀹屾垚绉婚櫎鍏冪礌
+      document.body.removeChild(downloadElement);
+      // 閲婃斁鎺塨lob瀵硅薄
+      window.URL.revokeObjectURL(href);
+    },
+    // 璁剧疆鎿嶄綔绫诲瀷
+    async setOperationType() {
+      this.operationTypeList = await this.getOperationType();
+    },
+    // 鑾峰彇鎿嶄綔绫诲瀷
+    async getOperationType() {
+      let arr = await this.getLogsOperationType();
+      arr.data.data.unshift({ id: 0, operationType: "鍏ㄩ儴" });
+      return arr.data.data;
+    },
+    // 鎵归噺鍒犻櫎
+    handleDelete(idarr) {
+      this.$confirm("纭鍒犻櫎?").then((_) => {
+        this.$axios({
+          method: "post",
+          url: "sccg/message/delete?ids=" + idarr,
+        }).then((res) => {
+          if (res.code === 200) {
+            this.$message({
+              type: "success",
+              message: "鍒犻櫎鎴愬姛",
             });
-            let fileName = arr.headers['content-disposition'];
-            console.log(fileName);
-            if (fileName) {
-                fileName = fileName.slice(fileName.indexOf('filename=') + 9);
-            }
-            const blob = new Blob([arr.data], {
-                type: 'application/octet-stream'
-            })
-            // content-disposition
-            const downloadElement = document.createElement('a')
-            // 鍒涘缓涓嬭浇鐨勯摼鎺�
-            const href = window.URL.createObjectURL(blob)
-            downloadElement.href = href
-            // // 涓嬭浇鍚庢枃浠跺悕
-            downloadElement.download = fileName
-            document.body.appendChild(downloadElement)
-            // 鐐瑰嚮涓嬭浇
-            downloadElement.click()
-            // 涓嬭浇瀹屾垚绉婚櫎鍏冪礌
-            document.body.removeChild(downloadElement)
-            // 閲婃斁鎺塨lob瀵硅薄
-            window.URL.revokeObjectURL(href)
-        },
-        // 璁剧疆鎿嶄綔绫诲瀷
-        async setOperationType() {
-            this.operationTypeList = await this.getOperationType();
-        },
-        // 鑾峰彇鎿嶄綔绫诲瀷
-        async getOperationType() {
-            let arr = await this.getLogsOperationType();
-            arr.data.data.unshift({ id: 0, operationType: '鍏ㄩ儴' })
-            return arr.data.data;
-        },
-        // 鎵归噺鍒犻櫎
-        handleDelete(idarr) {
-            this.$confirm('纭鍒犻櫎?')
-                .then(_ => {
-                    this.$axios({
-                        method: 'post',
-                        url: 'sccg/message/delete?ids=' + idarr,
-                    })
-                        .then(res => {
-                            if (res.code === 200) {
-                                this.$message({
-                                    type: 'success',
-                                    message: '鍒犻櫎鎴愬姛',
-                                })
-                                this.setTableData();
-                            } else {
-                                this.$message({
-                                    type: 'error',
-                                    message: res.message
-                                })
-                            }
-                        })
-                })
-        },
-        // 璁剧疆琛ㄦ牸鏁版嵁
-        async setTableData() {
-            const arr = await this.getLogList();
-            this.tableData = arr.records;
-            this.totalNum = arr.total
-        },
-        // 鏃堕棿鎺掑簭
-        sortTime({ column, prop, order }) {
-            if (order === 'ascending') {
-                this.mysort = 0
-            } else {
-                this.mysort = 1
-            }
             this.setTableData();
-        },
-        // 鑾峰彇鏃ュ織鏁版嵁
-        async getLogList() {
-            const { currentPage, pageSize, context, operationType, mysort,mytime } = this;
-            console.log(mytime)
-            let arr = await this.getLogsList({
-                content: context,
-                current: currentPage,
-                endTime: mytime[1] !==''?parseTime(mytime[1]):'',
-                id: '',
-                operationType: operationType === '鍏ㄩ儴' ? '' : operationType,
-                portEquipment: '',
-                size: pageSize,
-                startTime: mytime[0] !==''?parseTime(mytime[0]):'',
-                sort: mysort
-            })
-            console.log(arr)
-            return arr.data.data;
-        },
-        // 鎵归噺涓嬫媺妗嗘搷浣�
-        async selectChange(list) {
-            console.log(this.tempList);
-            if (this.tempList.length !== 0) {
-                this.preMyIdx = list;
-                if (list === 3) {
-                    await this.handleDelete(this.tempList);
-                } else if (list === 2) {
-                    await this.mulUpdateStatus(this.tempList, 0);
-                } else {
-                    await this.mulUpdateStatus(this.tempList, 1);
-                }
-                this.myIdx = 0;
-            } else {
-                this.myIdx = this.preMyIdx;
-                this.$message({
-                    type: 'warning',
-                    message: '鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁',
-                })
-            }
-        },
-        // 鎵归噺鎿嶄綔
-        mulUpdateStatus(idArr, flag) {
-            this.$confirm(flag === 1 ? "鎮ㄧ‘瀹氳杩涜鎵归噺鍚敤瑙掕壊鍚�?" : '鎮ㄧ‘瀹氳杩涜鎵归噺绂佺敤瑙掕壊鍚�?')
-                .then(_ => {
-                    this.$axios({
-                        method: 'post',
-                        url: 'sccg/role/updateStatusBatch?ids=' + idArr + '&status=' + flag,
-                    })
-                        .then(res => {
-                            if (res.code === 200) {
-                                this.$message({
-                                    type: 'success',
-                                    message: '鏇存敼鐢ㄦ埛鐘舵�佹垚鍔�',
-                                })
-                                this.getUserList();
-                            } else {
-                                this.$message({
-                                    type: 'error',
-                                    message: res.message
-                                })
-                            }
-                            console.log(res);
-                        })
-                })
-                .catch(err => { console.log(err) })
-        },
-        // 琛ㄦ牸鐩戝惉
-        tableChange(list) {
-            this.tempList = [];
-            list.forEach(item => {
-                this.tempList.push(item.id);
-            })
-            if (list.length === this.tableData.length) {
-                this.all = true;
-            } else {
-                this.all = false
-            }
-        },
-        // 淇敼鏃堕棿鏍煎紡
-        changeTime(time) {
-            return helper(time);
-        },
-        // 鍏ㄩ��
-        selectAll() {
-            this.$refs.multipleTable.toggleAllSelection();
-        },
-        // 鍙嶉��
-        disSame(list) {
-            list.forEach(row => {
-                this.$refs.multipleTable.toggleRowSelection(row)
-            })
-        },
-        // 璁剧疆琛ㄦ牸鏂戦┈绾�
-        tableRowClassName({ row, rowIndex }) {
-            if ((rowIndex + 1) % 2 == 0) {
-                return 'warning-row';
-            } else {
-                return 'success-row';
-            }
-            return '';
-        },
-        // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
-        changeCurrentPage(page) {
-            this.currentPage = page;
-            this.setTableData();
-        },
-        // 涓婁竴椤电偣鍑讳簨浠�
-        handlePrev(page) {
-            this.currentPage = page;
-            this.setTableData();
-        },
-        // 涓嬩竴椤电偣鍑讳簨浠�
-        handleNext(page) {
-            this.currentPage = page;
-            this.setTableData();
-        },
-        // 鍏抽棴寮圭獥
-        handleClose(done) {
-            done();
-        },
-        // 纭鍏抽棴寮圭獥
-        handleConfirmClose(done) {
-            this.$confirm('纭鍏抽棴?')
-                .then(_ => {
-                    done();
-                })
-                .catch(err => {
-                    console.log(err);
-                })
-        },
-        // 鑷畾涔夊叧闂脊绐�
-        closeDialog({ flag, index }) {
-            if (index === 1) {
-                this.setTableData();
-            }
-        },
-        //
-        timechange(data) {
-            console.log(data);
+          } else {
+            this.$message({
+              type: "error",
+              message: res.message,
+            });
+          }
+        });
+      });
+    },
+    // 璁剧疆琛ㄦ牸鏁版嵁
+    async setTableData() {
+      const arr = await this.getLogList();
+      this.tableData = arr.records;
+      this.totalNum = arr.total;
+    },
+    // 鏃堕棿鎺掑簭
+    sortTime({ column, prop, order }) {
+      if (order === "ascending") {
+        this.mysort = 0;
+      } else {
+        this.mysort = 1;
+      }
+      this.setTableData();
+    },
+    // 鑾峰彇鏃ュ織鏁版嵁
+    async getLogList() {
+      const { currentPage, pageSize, context, operationType, mysort, mytime } =
+        this;
+      console.log(mytime);
+      let arr = await this.getLogsList({
+        content: context,
+        current: currentPage,
+        endTime: mytime[1] !== "" ? parseTime(mytime[1]) : "",
+        id: "",
+        operationType: operationType === "鍏ㄩ儴" ? "" : operationType,
+        portEquipment: "",
+        size: pageSize,
+        startTime: mytime[0] !== "" ? parseTime(mytime[0]) : "",
+        sort: mysort,
+      });
+      console.log(arr);
+      return arr.data.data;
+    },
+    // 鎵归噺涓嬫媺妗嗘搷浣�
+    async selectChange(list) {
+      console.log(this.tempList);
+      if (this.tempList.length !== 0) {
+        this.preMyIdx = list;
+        if (list === 3) {
+          await this.handleDelete(this.tempList);
+        } else if (list === 2) {
+          await this.mulUpdateStatus(this.tempList, 0);
+        } else {
+          await this.mulUpdateStatus(this.tempList, 1);
         }
-    }
-}
+        this.myIdx = 0;
+      } else {
+        this.myIdx = this.preMyIdx;
+        this.$message({
+          type: "warning",
+          message: "鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁",
+        });
+      }
+    },
+    // 鎵归噺鎿嶄綔
+    mulUpdateStatus(idArr, flag) {
+      this.$confirm(
+        flag === 1
+          ? "鎮ㄧ‘瀹氳杩涜鎵归噺鍚敤瑙掕壊鍚�?"
+          : "鎮ㄧ‘瀹氳杩涜鎵归噺绂佺敤瑙掕壊鍚�?"
+      )
+        .then((_) => {
+          this.$axios({
+            method: "post",
+            url: "sccg/role/updateStatusBatch?ids=" + idArr + "&status=" + flag,
+          }).then((res) => {
+            if (res.code === 200) {
+              this.$message({
+                type: "success",
+                message: "鏇存敼鐢ㄦ埛鐘舵�佹垚鍔�",
+              });
+              this.getUserList();
+            } else {
+              this.$message({
+                type: "error",
+                message: res.message,
+              });
+            }
+            console.log(res);
+          });
+        })
+        .catch((err) => {
+          console.log(err);
+        });
+    },
+    // 琛ㄦ牸鐩戝惉
+    tableChange(list) {
+      this.tempList = [];
+      list.forEach((item) => {
+        this.tempList.push(item.id);
+      });
+      if (list.length === this.tableData.length) {
+        this.all = true;
+      } else {
+        this.all = false;
+      }
+    },
+    // 淇敼鏃堕棿鏍煎紡
+    changeTime(time) {
+      return helper(time);
+    },
+    // 鍏ㄩ��
+    selectAll() {
+      this.$refs.multipleTable.toggleAllSelection();
+    },
+    // 鍙嶉��
+    disSame(list) {
+      list.forEach((row) => {
+        this.$refs.multipleTable.toggleRowSelection(row);
+      });
+    },
+    // 璁剧疆琛ㄦ牸鏂戦┈绾�
+    tableRowClassName({ row, rowIndex }) {
+      if ((rowIndex + 1) % 2 == 0) {
+        return "warning-row";
+      } else {
+        return "success-row";
+      }
+      return "";
+    },
+    // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
+    changeCurrentPage(page) {
+      this.currentPage = page;
+      this.setTableData();
+    },
+    // 涓婁竴椤电偣鍑讳簨浠�
+    handlePrev(page) {
+      this.currentPage = page;
+      this.setTableData();
+    },
+    // 涓嬩竴椤电偣鍑讳簨浠�
+    handleNext(page) {
+      this.currentPage = page;
+      this.setTableData();
+    },
+    // 鍏抽棴寮圭獥
+    handleClose(done) {
+      done();
+    },
+    // 纭鍏抽棴寮圭獥
+    handleConfirmClose(done) {
+      this.$confirm("纭鍏抽棴?")
+        .then((_) => {
+          done();
+        })
+        .catch((err) => {
+          console.log(err);
+        });
+    },
+    // 鑷畾涔夊叧闂脊绐�
+    closeDialog({ flag, index }) {
+      if (index === 1) {
+        this.setTableData();
+      }
+    },
+    //
+    timechange(data) {
+      console.log(data);
+    },
+  },
+};
 </script>
 <style lang="scss" scoped>
 .userList {
-    text-align: left;
-    margin: 10px 20px;
-    color: #4b9bb7;
+  text-align: left;
+  margin: 10px 20px;
+  color: #4b9bb7;
 
-    header {
-        background-color: #09152f;
-        border: 1pox solid #fff;
+  header {
+    background-color: #09152f;
+    border: 1pox solid #fff;
 
-        .header-nav {
-            line-height: 40px;
-            padding: 0 30px;
-            display: flex;
-            justify-content: space-between;
-            font-weight: 650;
-        }
-
-        .header-content {
-            padding: 0 40px;
-            display: flex;
-            line-height: 100px;
-            justify-content: space-between;
-            align-items: center;
-
-            .search,
-            .message-status,
-            .message-kind {
-                display: flex;
-                justify-content: flex-start;
-                align-items: center;
-                flex: 1;
-                .el-input {
-                    flex: 1;
-                    color: #1d3f57;
-
-                    &::v-deep .el-input__inner {
-                        background-color: #09152f;
-                        border: 1px solid #17324c;
-                    }
-                }
-                .el-select{
-                    flex: 1;
-                }
-                .el-date-editor{
-                    flex: 1;
-                }
-                :deep(.el-range-input){
-                    background-color: #09152f;
-                }
-
-            }
-
-            .findBtn {
-                line-height: 100px;
-                margin-left: 15px;
-                display: flex;
-                align-items: center;
-                margin-top: -2px;
-
-                .el-button {
-                    padding: 10px 20px;
-                    border-radius: 20px;
-                }
-            }
-        }
+    .header-nav {
+      line-height: 40px;
+      padding: 0 30px;
+      display: flex;
+      justify-content: space-between;
+      font-weight: 650;
     }
 
-    main {
-        background-color: #09152f;
-        margin-top: 20px;
-        padding-bottom: 50px;
-        border: 1pox solid #fff;
+    .header-content {
+      padding: 0 40px;
+      display: flex;
+      line-height: 100px;
+      justify-content: space-between;
+      align-items: center;
 
-        .el-link {
-            color: #4b9bb7;
+      .search,
+      .message-status,
+      .message-kind {
+        display: flex;
+        justify-content: flex-start;
+        align-items: center;
+        flex: 1;
+        .el-input {
+          flex: 1;
+          color: #1d3f57;
+
+          &::v-deep .el-input__inner {
+            background-color: #09152f;
+            border: 1px solid #17324c;
+          }
         }
-
-        .leftPx {
-            margin-left: 10px;
+        .el-select {
+          flex: 1;
         }
-
-        .mainTitle {
-            line-height: 60px;
+        .el-date-editor {
+          flex: 1;
         }
-
-        .main-nav {
-            line-height: 40px;
-            display: flex;
-            padding: 10px;
-            justify-content: space-between;
+        :deep(.el-range-input) {
+          background-color: #09152f;
         }
+      }
 
-        .tools {
-            display: flex;
-            justify-content: space-between;
-            align-items: center;
-            padding: 0 20px;
+      .findBtn {
+        line-height: 100px;
+        margin-left: 15px;
+        display: flex;
+        align-items: center;
+        margin-top: -2px;
 
-            .funs {
-                display: flex;
-
-                .funs-sp {
-                    border: 1px solid #17324c;
-                }
-
-                .funsItem {
-                    line-height: 28px;
-                    display: flex;
-                    align-items: center;
-
-                    border-radius: 4px;
-                    font-size: 12px;
-                    margin-left: 10px;
-
-                    .el-checkbox {
-                        width: 80px;
-                        padding: 0 10px;
-                    }
-
-                    .el-select {
-                        width: 120px;
-                    }
-
-                    &::v-deep .el-input__inner {
-                        border: none;
-                        background-color: #09152f;
-                    }
-
-                    &:hover {
-                        border: 1px solid #4b9bb7;
-                    }
-
-                    &:hover .el-checkbox {
-                        color: #4b9bb7;
-                    }
-                }
-
-            }
-
-            .pagination {
-                margin-top: 50px;
-                display: flex;
-                line-height: 50px;
-                justify-content: center;
-
-                .el-pagination {
-
-                    &::v-deep li,
-                    &::v-deep .btn-prev,
-                    &::v-deep .btn-next {
-                        background-color: #071f39;
-                        color: #4b9bb7;
-                    }
-
-                    &::v-deep .active {
-                        background-color: #409eff;
-                        color: #fff;
-                    }
-                }
-            }
+        .el-button {
+          padding: 10px 20px;
+          border-radius: 20px;
         }
-
-        .el-table {
-            color: #4b9bb7;
-            font-size: 10px;
-
-            &::v-deep .el-table__empty-block {
-                background-color: #09152f;
-            }
-
-            &::v-deep .el-table__empty-block {
-                color: #4b9bb7;
-            }
-
-            .operation {
-                display: flex;
-
-                .line {
-                    padding: 0 5px;
-                }
-
-                span:hover {
-                    cursor: pointer;
-                }
-            }
-        }
-
-        .el-table::v-deep .warning-row {
-            background: #06122c;
-        }
-
-        .el-table::v-deep .success-row {
-            background: #071f39;
-        }
+      }
     }
+  }
+
+  main {
+    background-color: #09152f;
+    margin-top: 20px;
+    padding-bottom: 50px;
+    border: 1pox solid #fff;
+
+    .el-link {
+      color: #4b9bb7;
+    }
+
+    .leftPx {
+      margin-left: 10px;
+    }
+
+    .mainTitle {
+      line-height: 60px;
+    }
+
+    .main-nav {
+      line-height: 40px;
+      display: flex;
+      padding: 10px;
+      justify-content: space-between;
+    }
+
+    .tools {
+      display: flex;
+      justify-content: space-between;
+      align-items: center;
+      padding: 0 20px;
+
+      .funs {
+        display: flex;
+
+        .funs-sp {
+          border: 1px solid #17324c;
+        }
+
+        .funsItem {
+          line-height: 28px;
+          display: flex;
+          align-items: center;
+
+          border-radius: 4px;
+          font-size: 12px;
+          margin-left: 10px;
+
+          .el-checkbox {
+            width: 80px;
+            padding: 0 10px;
+          }
+
+          .el-select {
+            width: 120px;
+          }
+
+          &::v-deep .el-input__inner {
+            border: none;
+            background-color: #09152f;
+          }
+
+          &:hover {
+            border: 1px solid #4b9bb7;
+          }
+
+          &:hover .el-checkbox {
+            color: #4b9bb7;
+          }
+        }
+      }
+
+      .pagination {
+        margin-top: 50px;
+        display: flex;
+        line-height: 50px;
+        justify-content: center;
+
+        .el-pagination {
+          &::v-deep li,
+          &::v-deep .btn-prev,
+          &::v-deep .btn-next {
+            background-color: #071f39;
+            color: #4b9bb7;
+          }
+
+          &::v-deep .active {
+            background-color: #409eff;
+            color: #fff;
+          }
+        }
+      }
+    }
+
+    .el-table {
+      color: #4b9bb7;
+      font-size: 10px;
+
+      &::v-deep .el-table__empty-block {
+        background-color: #09152f;
+      }
+
+      &::v-deep .el-table__empty-block {
+        color: #4b9bb7;
+      }
+
+      .operation {
+        display: flex;
+
+        .line {
+          padding: 0 5px;
+        }
+
+        span:hover {
+          cursor: pointer;
+        }
+      }
+    }
+
+    .el-table::v-deep .warning-row {
+      background: #06122c;
+    }
+
+    .el-table::v-deep .success-row {
+      background: #071f39;
+    }
+  }
 }
 </style>
\ No newline at end of file

--
Gitblit v1.8.0