From bf9a412b20afe9f22e99448eb002ff9e92fd30cb Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期四, 09 二月 2023 10:17:04 +0800
Subject: [PATCH] 统一table操作按钮样式

---
 src/views/operate/management/myIndex/index.vue | 1102 +++++++++++++++++++++++++++++++--------------------------
 1 files changed, 595 insertions(+), 507 deletions(-)

diff --git a/src/views/operate/management/myIndex/index.vue b/src/views/operate/management/myIndex/index.vue
index 270dd4f..4141ff4 100644
--- a/src/views/operate/management/myIndex/index.vue
+++ b/src/views/operate/management/myIndex/index.vue
@@ -1,97 +1,186 @@
 <template>
-    <div class="userList">
-        <header>
-            <div class="problem">
-                <div class="problem-title">闂绫诲瀷</div>
-                <el-radio-group v-model="myproblem" @change="changeMyProblem">
-                    <el-radio :label="1">杩濊</el-radio>
-                    <el-radio :label="2">杩濆缓</el-radio>
-                </el-radio-group>
-            </div>
-            <div class="status">
-                <div class="status-title">瀹℃牳鐘舵��</div>
-                <el-radio-group v-model="instatus"  @change="changeInStatus">
-                    <el-radio :label="7">寰呭鏍�</el-radio>
-                    <el-radio :label="8">宸插鏍�</el-radio>
-                    <el-radio :label="9">宸茬粨妗�</el-radio>
-                </el-radio-group>
-            </div>
-        </header>
-        <main>
-            <div class="mainContent">
-                <!-- 鏁版嵁灞曠ず -->
-                <el-table
-                    border
-                    stripe
-                    ref="multipleTable"
-                    :header-cell-style="{ 'background':'#F5F5F5','font-weight':'650','line-height':'45px'}"
-                    :data="tableData" style="width: 100%" :row-class-name="tableRowClassName"
-                    @selection-change="tableChange">
-                    <el-table-column type="selection" min-width="5">
-                    </el-table-column>
-                    <el-table-column prop="code" label="浜嬩欢缂栧彿" min-width="18">
-                        <template slot-scope="scope">
-                            <el-link @click="JumpView(scope.row)">{{scope.row.code}}</el-link>
-                        </template>
-                    </el-table-column>
-                    <el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="8">
-                        <template slot-scope="scope">
-                            <span>{{scope.row.eventSource === 2 ? '浜哄伐涓婃姤' : '瑙嗛宸℃煡'}}</span>
-                        </template>
-                    </el-table-column>
-                    <el-table-column :prop="myproblem === 1 ? 'category' :'category'" :label="myproblem===1 ? '澶х被鍚嶇О' : '杩濆缓绫诲埆'" :min-width="myproblem===1?'10':'20'">
-                    </el-table-column>
-                    <el-table-column :prop="myproblem === 1 ? 'type' :'site'" :label="myproblem===1 ? '灏忕被鍚嶇О' : '杩濆缓鍦扮偣'" min-width="10">
-                    </el-table-column>
-                    <el-table-column :prop="myproblem === 1 ? 'actionCause' :'communityId'" :label="myproblem===1 ? '妗堢敱' : '鎵�灞炵ぞ鍖�'" min-width="10">
-                    </el-table-column>
-                    <el-table-column :prop="myproblem === 1 ? 'site' :''" :label="myproblem===1 ? '鎶ヨ鐐逛綅' : '杩濇硶寤虹瓚闀裤�佸銆侀珮'" :min-width="myproblem===1?'10' :'20' ">
-                        <template slot-scope="scope">
-                            <div v-if="myproblem ===2"><span>{{scope.row.buildingLength+'绫�'+'銆�'+ scope.row.buildingWidth+'绫�'+'銆�'+scope.row.buildingHigh+'绫�'}}</span></div>
-                            <div v-else>{{scope.row.site}}</div>
-                        </template>
-                    </el-table-column>
-                    <el-table-column :prop="myproblem === 1 ? 'street' :'buildingArea'" :label="myproblem===1 ? '鎵�灞炲尯鍩�' : '杩濇硶寤虹瓚闈㈢Н'" min-width="10">
-                    </el-table-column>
-                    <el-table-column prop="alarmTime" label="鎶ヨ鏃堕棿" min-width="15" v-if="myproblem===1">
-                        <template slot-scope="scope">
-                            <span>{{filterTime(scope.row.alarmTime)}}</span>
-                        </template>
-                    </el-table-column>
-                    <el-table-column :prop="myproblem === 1 ? 'continueTime' :'materials'" :label="myproblem===1 ? '鎸佺画鏃堕棿' : '杩濇硶寤虹瓚鏉愭枡'" min-width="15">
-                    </el-table-column>
-                    <el-table-column prop="operation" label="鎿嶄綔" min-width="15">
-                        <template slot-scope="scope">
-                            <div class="btn">
-                                <!-- v-if="instatus===7 ? true : false" -->
-                                <span @click="handleExamine(scope.row)" v-if="instatus===7">瀹℃牳</span>
-                                <span @click="handleClosure(scope.row)" v-if="instatus===8">缁撴</span>
-                                <span class="line" v-if="instatus !==9">|</span>
-                                <span @click="JumpView(scope.row)">鏌ョ湅</span>
-                            </div>
-                        </template>
-                    </el-table-column>
-                </el-table>
-                <!-- 瀹℃牳椤甸潰 -->
-                <el-dialog :visible.sync="dialogExamine" width="60%" title="鍩虹淇℃伅(浜哄伐)" v-if="dialogExamine"
-                    :before-close="handleClose">
-                    <MyExamine :info="info" v-if="myproblem === 1" @closeDialog="closeDialog"></MyExamine>
-                    <MyIllExamine :info="info" v-else  @closeDialog="closeDialog"></MyIllExamine>
-                </el-dialog>
-                <!-- 缁撴椤甸潰 -->
-                <el-dialog :visible.sync="dialogClosure" width="60%" title="鍩虹淇℃伅(浜哄伐)" v-if="dialogClosure"
-                    :before-close="handleClose">
-                    <MyClosure :info="info" v-if="myproblem === 1" @closeDialog="closeDialog"></MyClosure>
-                    <MyIllClosure :info="info" v-else @closeDialog="closeDialog"></MyIllClosure>
-                </el-dialog>
-                <!-- 璇︽儏椤甸潰 -->
-                <el-dialog :visible.sync="dialogView" width="60%" title="鍩虹淇℃伅(浜哄伐)" v-if="dialogView"
-                    :before-close="handleNoClose">
-                    <MyDetail :info=info v-if="myproblem === 1" :mycode = 'code'></MyDetail>
-                    <MyIllDetail :info=info v-else :mycode="code"></MyIllDetail>
-                </el-dialog>
-                <!-- tools -->
-                <!-- <div class="tools">
+  <div class="userList">
+    <header>
+      <div class="problem">
+        <div class="problem-title">闂绫诲瀷</div>
+        <el-radio-group v-model="myproblem" @change="changeMyProblem">
+          <el-radio :label="1">杩濊</el-radio>
+          <el-radio :label="2">杩濆缓</el-radio>
+        </el-radio-group>
+      </div>
+      <div class="status">
+        <div class="status-title">瀹℃牳鐘舵��</div>
+        <el-radio-group v-model="instatus" @change="changeInStatus">
+          <el-radio :label="7">寰呭鏍�</el-radio>
+          <el-radio :label="8">宸插鏍�</el-radio>
+          <el-radio :label="9">宸茬粨妗�</el-radio>
+        </el-radio-group>
+      </div>
+    </header>
+    <main>
+      <div class="mainContent">
+        <!-- 鏁版嵁灞曠ず -->
+        <el-table
+          border
+          stripe
+          ref="multipleTable"
+          :header-cell-style="{
+            background: '#F5F5F5',
+            'font-weight': '650',
+            'line-height': '45px',
+          }"
+          :data="tableData"
+          style="width: 100%"
+          :row-class-name="tableRowClassName"
+          @selection-change="tableChange"
+        >
+          <el-table-column type="selection" min-width="5"> </el-table-column>
+          <el-table-column prop="code" label="浜嬩欢缂栧彿" min-width="18">
+            <template slot-scope="scope">
+              <el-link @click="JumpView(scope.row)">{{
+                scope.row.code
+              }}</el-link>
+            </template>
+          </el-table-column>
+          <el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="8">
+            <template slot-scope="scope">
+              <span>{{
+                scope.row.eventSource === 2 ? "浜哄伐涓婃姤" : "瑙嗛宸℃煡"
+              }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column
+            :prop="myproblem === 1 ? 'category' : 'category'"
+            :label="myproblem === 1 ? '澶х被鍚嶇О' : '杩濆缓绫诲埆'"
+            :min-width="myproblem === 1 ? '10' : '20'"
+          >
+          </el-table-column>
+          <el-table-column
+            :prop="myproblem === 1 ? 'type' : 'site'"
+            :label="myproblem === 1 ? '灏忕被鍚嶇О' : '杩濆缓鍦扮偣'"
+            min-width="10"
+          >
+          </el-table-column>
+          <el-table-column
+            :prop="myproblem === 1 ? 'actionCause' : 'communityId'"
+            :label="myproblem === 1 ? '妗堢敱' : '鎵�灞炵ぞ鍖�'"
+            min-width="10"
+          >
+          </el-table-column>
+          <el-table-column
+            :prop="myproblem === 1 ? 'site' : ''"
+            :label="myproblem === 1 ? '鎶ヨ鐐逛綅' : '杩濇硶寤虹瓚闀裤�佸銆侀珮'"
+            :min-width="myproblem === 1 ? '10' : '20'"
+          >
+            <template slot-scope="scope">
+              <div v-if="myproblem === 2">
+                <span>{{
+                  scope.row.buildingLength +
+                  "绫�" +
+                  "銆�" +
+                  scope.row.buildingWidth +
+                  "绫�" +
+                  "銆�" +
+                  scope.row.buildingHigh +
+                  "绫�"
+                }}</span>
+              </div>
+              <div v-else>{{ scope.row.site }}</div>
+            </template>
+          </el-table-column>
+          <el-table-column
+            :prop="myproblem === 1 ? 'street' : 'buildingArea'"
+            :label="myproblem === 1 ? '鎵�灞炲尯鍩�' : '杩濇硶寤虹瓚闈㈢Н'"
+            min-width="10"
+          >
+          </el-table-column>
+          <el-table-column
+            prop="alarmTime"
+            label="鎶ヨ鏃堕棿"
+            min-width="15"
+            v-if="myproblem === 1"
+          >
+            <template slot-scope="scope">
+              <span>{{ filterTime(scope.row.alarmTime) }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column
+            :prop="myproblem === 1 ? 'continueTime' : 'materials'"
+            :label="myproblem === 1 ? '鎸佺画鏃堕棿' : '杩濇硶寤虹瓚鏉愭枡'"
+            min-width="15"
+          >
+          </el-table-column>
+          <el-table-column prop="operation" label="鎿嶄綔" min-width="15">
+            <template slot-scope="scope">
+              <div class="btn">
+                <!-- v-if="instatus===7 ? true : false" -->
+                <span @click="handleExamine(scope.row)" v-if="instatus === 7"
+                  >瀹℃牳</span
+                >
+                <span @click="handleClosure(scope.row)" v-if="instatus === 8"
+                  >缁撴</span
+                >
+                <span class="line" v-if="instatus !== 9">|</span>
+                <span @click="JumpView(scope.row)">鏌ョ湅</span>
+              </div>
+            </template>
+          </el-table-column>
+        </el-table>
+        <!-- 瀹℃牳椤甸潰 -->
+        <el-dialog
+          :visible.sync="dialogExamine"
+          width="60%"
+          title="鍩虹淇℃伅(浜哄伐)"
+          v-if="dialogExamine"
+          :before-close="handleClose"
+        >
+          <MyExamine
+            :info="info"
+            v-if="myproblem === 1"
+            @closeDialog="closeDialog"
+          ></MyExamine>
+          <MyIllExamine
+            :info="info"
+            v-else
+            @closeDialog="closeDialog"
+          ></MyIllExamine>
+        </el-dialog>
+        <!-- 缁撴椤甸潰 -->
+        <el-dialog
+          :visible.sync="dialogClosure"
+          width="60%"
+          title="鍩虹淇℃伅(浜哄伐)"
+          v-if="dialogClosure"
+          :before-close="handleClose"
+        >
+          <MyClosure
+            :info="info"
+            v-if="myproblem === 1"
+            @closeDialog="closeDialog"
+          ></MyClosure>
+          <MyIllClosure
+            :info="info"
+            v-else
+            @closeDialog="closeDialog"
+          ></MyIllClosure>
+        </el-dialog>
+        <!-- 璇︽儏椤甸潰 -->
+        <el-dialog
+          :visible.sync="dialogView"
+          width="60%"
+          title="鍩虹淇℃伅(浜哄伐)"
+          v-if="dialogView"
+          :before-close="handleNoClose"
+        >
+          <MyDetail
+            :info="info"
+            v-if="myproblem === 1"
+            :mycode="code"
+          ></MyDetail>
+          <MyIllDetail :info="info" v-else :mycode="code"></MyIllDetail>
+        </el-dialog>
+        <!-- tools -->
+        <!-- <div class="tools">
                     <div class="funs">
                         <div class="funsItem funs-sp">
                             <el-checkbox v-model="all" @change="selectAll()">鍏ㄩ��</el-checkbox>
@@ -114,459 +203,458 @@
                         </el-pagination>
                     </div>
                 </div> -->
-            </div>
-        </main>
-    </div>
+      </div>
+    </main>
+  </div>
 </template>
 <script>
-import MyExamine from './components/examine'
-import MyClosure from './components/closure'
-import MyIllExamine from './components/illExamine'
-import MyIllClosure from './components/illclosure'
-import MyDetail from '@/components/detail'
-import MyIllDetail from '@/components/illdetail'
-import helper from '@/utils/mydate'
+import MyExamine from "./components/examine";
+import MyClosure from "./components/closure";
+import MyIllExamine from "./components/illExamine";
+import MyIllClosure from "./components/illclosure";
+import MyDetail from "@/components/detail";
+import MyIllDetail from "@/components/illdetail";
+import helper from "@/utils/mydate";
 export default {
-    components: {
-        MyExamine,MyClosure,MyDetail,MyIllDetail,MyIllExamine,MyIllClosure
-    },
-    data() {
-        return {
-            tableData: [],
-            dialogExamine:false,
-            dialogClosure:false,
-            dialogView:false,
-            info: {},
-            totalNum: null,
-            pageSize: 10,
-            currentPage: 1,
-            all: false,
-            unsame: false,
-            myIdx: 0,
-            preMyIdx: 0,
-            options: [
-                {
-                    value: 0,
-                    label: '鎵归噺鎿嶄綔',
-                    disabled: true,
-                },
-                {
-                    value: 1,
-                    label: '鎵归噺鍚敤',
-                },
-                {
-                    value: 2,
-                    label: '鎵归噺绂佺敤',
-                },
-                {
-                    value: 3,
-                    label: '鎵归噺鍒犻櫎',
-                }
-            ],
-            tempList: [],
-            typeList: [
-                {
-                    name: '杩濊',
-                    value: 1,
-                    checked: true
-                },
-                {
-                    name: '杩濆缓',
-                    value: 2,
-                    checked: false,
-                },
-            ],
-            caseId: '',
-            myproblem: 1,
-            instatus: 7,
-            code:''
-        }
-    },
-    created() {
+  components: {
+    MyExamine,
+    MyClosure,
+    MyDetail,
+    MyIllDetail,
+    MyIllExamine,
+    MyIllClosure,
+  },
+  data() {
+    return {
+      tableData: [],
+      dialogExamine: false,
+      dialogClosure: false,
+      dialogView: false,
+      info: {},
+      totalNum: null,
+      pageSize: 10,
+      currentPage: 1,
+      all: false,
+      unsame: false,
+      myIdx: 0,
+      preMyIdx: 0,
+      options: [
+        {
+          value: 0,
+          label: "鎵归噺鎿嶄綔",
+          disabled: true,
+        },
+        {
+          value: 1,
+          label: "鎵归噺鍚敤",
+        },
+        {
+          value: 2,
+          label: "鎵归噺绂佺敤",
+        },
+        {
+          value: 3,
+          label: "鎵归噺鍒犻櫎",
+        },
+      ],
+      tempList: [],
+      typeList: [
+        {
+          name: "杩濊",
+          value: 1,
+          checked: true,
+        },
+        {
+          name: "杩濆缓",
+          value: 2,
+          checked: false,
+        },
+      ],
+      caseId: "",
+      myproblem: 1,
+      instatus: 7,
+      code: "",
+    };
+  },
+  created() {
+    this.getUserList();
+  },
+  methods: {
+    // 鎵归噺鍒犻櫎
+    mulDelete(idArr) {
+      this.$axios({
+        method: "delete",
+        url: "sccg/violations/batch_delete?ids=" + idArr,
+      }).then((res) => {
         this.getUserList();
+        this.$message({
+          message: res.message,
+          type: res.code === 200 ? "success" : "warning",
+        });
+      });
     },
-    methods: {
-        // 鎵归噺鍒犻櫎
-        mulDelete(idArr) {
-            this.$axios({
-                method: 'delete',
-                url: 'sccg/violations/batch_delete?ids=' + idArr,
-            }).then(res => {
-                this.getUserList();
-                this.$message({
-                    message: res.message,
-                    type: res.code === 200 ? 'success' : 'warning'
-                })
-            })
-        },
-        // 鎵ц涓嬫媺妗嗘搷浣�
-        selectChange(list) {
-            if (this.tempList.length !== 0) {
-                if (list === 3) {
-                    this.preMyIdx = list;
-                    this.mulDelete(this.tempList);
-                }
-            } else {
-                this.myIdx = this.preMyIdx;
-                this.$message({
-                    type: 'warning',
-                    message: '鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁',
-                })
-            }
-        },
-        // 鐩戝惉琛ㄦ牸
-        tableChange(list) {
-            this.tempList = [];
-            list.forEach(item => {
-                this.tempList.push(item.code);
-            })
-            this.all = list.length === this.tableData.length;
-        },
-        // 鍏ㄩ��
-        selectAll() {
-            this.$refs.multipleTable.toggleAllSelection();
-        },
-        // 鍙嶉��
-        disSame(list) {
-            list.forEach(row => {
-                this.$refs.multipleTable.toggleRowSelection(row)
-            })
-        },
-        // 鍒犻櫎鍗曟潯鏁版嵁
-        handleDelete({ number }) {
-            this.$confirm('纭鍒犻櫎锛�')
-                .then(_ => {
-                    this.$axios({
-                        method: 'delete',
-                        url: `sccg/violations/delete?id=${number}`,
-                    })
-                        .then(res => {
-                            this.$message({
-                                type: res.code === 200 ? 'success' : 'warning',
-                                message: res.message
-                            })
-
-                            this.getUserList();
-                        })
-                })
-                .catch(_ => {  });
-        },
-        // 鑾峰彇鐢ㄦ埛鍒楄〃
-        getUserList() {
-            const { currentPage, pageSize, instatus, myproblem } = this;
-            this.$axios({
-                method: 'get',
-                url: `sccg/base_case/query?state=${instatus}&current=${currentPage}&size=${pageSize}&type=${myproblem}`
-            }).then(res => {
-                this.totalNum = res.data.total;
-                this.tableData = res.data.records;
-            })
-        },
-        // 璁剧疆琛ㄦ牸鏂戦┈绾�
-        tableRowClassName({ row, rowIndex }) {
-            if ((rowIndex + 1) % 2 === 0) {
-                return 'warning-row';
-            } else {
-                return 'success-row';
-            }
-        },
-        // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
-        changeCurrentPage(page) {
-            this.currentPage = page;
-            this.getUserList();
-        },
-        // 涓婁竴椤电偣鍑讳簨浠�
-        handlePrev(page) {
-            this.currentPage = page;
-            this.getUserList();
-        },
-        // 涓嬩竴椤电偣鍑讳簨浠�
-        handleNext(page) {
-            this.currentPage = page;
-            this.getUserList();
-        },
-        handleClose(done) {
-            this.$confirm('纭鍏抽棴锛�')
-                .then(_ => {
-                    this.dialogExamine = false;
-                    done();
-                })
-                .catch(_ => { });
-        },
-        handleNoClose(done) {
-            done();
-        },
-        async JumpView(data) {
-            this.code = data.code
-            await this.getEventInfo(data.code);
-        },
-        // 鑾峰彇妗堜欢淇℃伅
-        getEventInfo(code) {
-            this.$axios({
-                method: 'get',
-                url: `sccg/base_case/baseCaseDetail/${code}`
-            })
-                .then(res => {
-                    this.info = res.data;
-                    this.dialogView = true;
-                })
-        },
-        // 鑾峰彇妗堜欢淇℃伅
-        getEventInfo3(code) {
-            this.$axios({
-                method: 'get',
-                url: `sccg/base_case/baseCaseDetail/${code}`
-            })
-                .then(res => {
-                    this.info = res.data;
-                    this.dialogExamine = true;
-                })
-        },
-        // 鑾峰彇妗堜欢淇℃伅
-        getEventInfo2(code) {
-            this.$axios({
-                method: 'get',
-                url: `sccg/base_case/baseCaseDetail/${code}`
-            })
-                .then(res => {
-                    this.info = res.data;
-                    this.dialogClosure = true;
-                })
-        },
-        // 鍘诲鏍�
-        handleExamine({code}) {
-            this.getEventInfo3(code);
-        },
-        // 鍘荤粨妗�
-        handleClosure({code}){
-            this.getEventInfo2(code);
-        },
-        // 鍏抽棴dialog
-        closeDialog({flag}){
-            this.dialogExamine = flag;
-            this.dialogClosure = flag;
-            this.getUserList();
-        },
-        // 闂绫诲瀷
-        changeMyProblem(val){
-            this.getUserList();
-        },
-        // 瀹℃牳鐘舵��
-        changeInStatus(val){
-            this.getUserList();
-        },
-        filterTime(time){
-            return helper(time);
+    // 鎵ц涓嬫媺妗嗘搷浣�
+    selectChange(list) {
+      if (this.tempList.length !== 0) {
+        if (list === 3) {
+          this.preMyIdx = list;
+          this.mulDelete(this.tempList);
         }
-    }
-}
+      } else {
+        this.myIdx = this.preMyIdx;
+        this.$message({
+          type: "warning",
+          message: "鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁",
+        });
+      }
+    },
+    // 鐩戝惉琛ㄦ牸
+    tableChange(list) {
+      this.tempList = [];
+      list.forEach((item) => {
+        this.tempList.push(item.code);
+      });
+      this.all = list.length === this.tableData.length;
+    },
+    // 鍏ㄩ��
+    selectAll() {
+      this.$refs.multipleTable.toggleAllSelection();
+    },
+    // 鍙嶉��
+    disSame(list) {
+      list.forEach((row) => {
+        this.$refs.multipleTable.toggleRowSelection(row);
+      });
+    },
+    // 鍒犻櫎鍗曟潯鏁版嵁
+    handleDelete({ number }) {
+      this.$confirm("纭鍒犻櫎锛�")
+        .then((_) => {
+          this.$axios({
+            method: "delete",
+            url: `sccg/violations/delete?id=${number}`,
+          }).then((res) => {
+            this.$message({
+              type: res.code === 200 ? "success" : "warning",
+              message: res.message,
+            });
+
+            this.getUserList();
+          });
+        })
+        .catch((_) => {});
+    },
+    // 鑾峰彇鐢ㄦ埛鍒楄〃
+    getUserList() {
+      const { currentPage, pageSize, instatus, myproblem } = this;
+      this.$axios({
+        method: "get",
+        url: `sccg/base_case/query?state=${instatus}&current=${currentPage}&size=${pageSize}&type=${myproblem}`,
+      }).then((res) => {
+        this.totalNum = res.data.total;
+        this.tableData = res.data.records;
+      });
+    },
+    // 璁剧疆琛ㄦ牸鏂戦┈绾�
+    tableRowClassName({ row, rowIndex }) {
+      if ((rowIndex + 1) % 2 === 0) {
+        return "warning-row";
+      } else {
+        return "success-row";
+      }
+    },
+    // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
+    changeCurrentPage(page) {
+      this.currentPage = page;
+      this.getUserList();
+    },
+    // 涓婁竴椤电偣鍑讳簨浠�
+    handlePrev(page) {
+      this.currentPage = page;
+      this.getUserList();
+    },
+    // 涓嬩竴椤电偣鍑讳簨浠�
+    handleNext(page) {
+      this.currentPage = page;
+      this.getUserList();
+    },
+    handleClose(done) {
+      this.$confirm("纭鍏抽棴锛�")
+        .then((_) => {
+          this.dialogExamine = false;
+          done();
+        })
+        .catch((_) => {});
+    },
+    handleNoClose(done) {
+      done();
+    },
+    async JumpView(data) {
+      this.code = data.code;
+      await this.getEventInfo(data.code);
+    },
+    // 鑾峰彇妗堜欢淇℃伅
+    getEventInfo(code) {
+      this.$axios({
+        method: "get",
+        url: `sccg/base_case/baseCaseDetail/${code}`,
+      }).then((res) => {
+        this.info = res.data;
+        this.dialogView = true;
+      });
+    },
+    // 鑾峰彇妗堜欢淇℃伅
+    getEventInfo3(code) {
+      this.$axios({
+        method: "get",
+        url: `sccg/base_case/baseCaseDetail/${code}`,
+      }).then((res) => {
+        this.info = res.data;
+        this.dialogExamine = true;
+      });
+    },
+    // 鑾峰彇妗堜欢淇℃伅
+    getEventInfo2(code) {
+      this.$axios({
+        method: "get",
+        url: `sccg/base_case/baseCaseDetail/${code}`,
+      }).then((res) => {
+        this.info = res.data;
+        this.dialogClosure = true;
+      });
+    },
+    // 鍘诲鏍�
+    handleExamine({ code }) {
+      this.getEventInfo3(code);
+    },
+    // 鍘荤粨妗�
+    handleClosure({ code }) {
+      this.getEventInfo2(code);
+    },
+    // 鍏抽棴dialog
+    closeDialog({ flag }) {
+      this.dialogExamine = flag;
+      this.dialogClosure = flag;
+      this.getUserList();
+    },
+    // 闂绫诲瀷
+    changeMyProblem(val) {
+      this.getUserList();
+    },
+    // 瀹℃牳鐘舵��
+    changeInStatus(val) {
+      this.getUserList();
+    },
+    filterTime(time) {
+      return helper(time);
+    },
+  },
+};
 </script>
 <style lang="scss" scoped>
 .userList {
-    text-align: left;
-    padding: 10px 20px;
-    color: #4b9bb7;
+  text-align: left;
+  padding: 10px 20px;
+  color: #4b9bb7;
   border: 1px solid #ccc;
-    header {
-        // background-color: #09152f;
-        //padding: 10px 20px;
+  header {
+    // background-color: #09152f;
+    //padding: 10px 20px;
 
-        .problem,
-        .status {
-            display: flex;
-            align-items: center;
-            line-height: 40px;
-        }
-
-        .problem-title,
-        .status-title {
-            margin-right: 20px;
-        }
+    .problem,
+    .status {
+      display: flex;
+      align-items: center;
+      line-height: 40px;
     }
 
-    &::v-deep .el-input__inner {
-        // background-color: #09152f;
-        border: 1px solid #17324c;
+    .problem-title,
+    .status-title {
+      margin-right: 20px;
     }
+  }
 
-    main {
-        // background-color: #09152f;
-        margin-top: 20px;
-        padding-bottom: 50px;
-        .btn span:hover{
-            cursor: pointer;
+  &::v-deep .el-input__inner {
+    // background-color: #09152f;
+    border: 1px solid #17324c;
+  }
+
+  main {
+    // background-color: #09152f;
+    margin-top: 20px;
+    padding-bottom: 50px;
+    .btn span:hover {
+      cursor: pointer;
+    }
+    .tools {
+      display: flex;
+      justify-content: space-between;
+      align-items: center;
+      //padding: 0 20px;
+
+      .funs {
+        display: flex;
+        .funs-first {
+          margin-left: 0 !important;
         }
-        .tools {
-            display: flex;
-            justify-content: space-between;
-            align-items: center;
-            //padding: 0 20px;
-
-            .funs {
-                display: flex;
-              .funs-first{
-                margin-left: 0!important;
-              }
-                .funs-sp{
-                  border: 1px solid #DCDFE6;
-                }
-                .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;
-                    }
-                }
-            }
+        .funs-sp {
+          border: 1px solid #dcdfe6;
         }
+        .funsItem {
+          line-height: 28px;
+          display: flex;
+          align-items: center;
+          border-radius: 4px;
+          font-size: 12px;
+          margin-left: 10px;
 
-        .el-table {
-            // color: #4b9bb7;
-            // font-size: 10px;
+          .el-checkbox {
+            width: 80px;
+            padding: 0 10px;
+          }
 
-            &::v-deep .cell {
-                text-overflow: ellipsis;
-                white-space: nowrap;
-                overflow: hidden;
-                .el-checkbox {
-                    display: none;
-                }
-            }
+          .el-select {
+            width: 120px;
+          }
 
-            // &::v-deep .el-table__empty-block {
-            //     background-color: #09152f;
-            // }
+          &::v-deep .el-input__inner {
+            border: none;
+            // background-color: #09152f;
+          }
 
-            &::v-deep .el-table__empty-block {
-                color: #4b9bb7;
-            }
+          &:hover {
+            border: 1px solid #4b9bb7;
+          }
 
-            .operation {
-                display: flex;
-
-                .line {
-                    padding: 0 5px;
-                }
-
-                span:hover {
-                    cursor: pointer;
-                }
-            }
+          &:hover .el-checkbox {
+            color: #4b9bb7;
+          }
         }
+      }
 
-        // .el-table::v-deep .warning-row {
-            // background: #06122c;
-        // }
+      .pagination {
+        margin-top: 50px;
+        display: flex;
+        line-height: 50px;
+        justify-content: center;
 
-        .el-table::v-deep .success-row {
-            background: #071f39;
-        }
+        .el-pagination {
+          &::v-deep li,
+          &::v-deep .btn-prev,
+          &::v-deep .btn-next {
+            background-color: #071f39;
+            color: #4b9bb7;
+          }
 
-        &::v-deep .switchStyle .el-switch__label {
-            position: absolute;
-            display: none;
+          &::v-deep .active {
+            background-color: #409eff;
             color: #fff;
+          }
         }
-
-        &::v-deep .el-switch__core {
-            background-color: rgba(166, 166, 166, 1);
-        }
-
-        &::v-deep .switchStyle .el-switch__label--left {
-            z-index: 9;
-            left: 20px;
-        }
-
-        &::v-deep .switchStyle .el-switch__label--right {
-            z-index: 9;
-            left: 4px;
-        }
-
-        &::v-deep .switchStyle .el-switch__label.is-active {
-            display: block;
-        }
-
-        &::v-deep .switchStyle.el-switch .el-switch__core,
-        &::v-deep .el-switch .el-switch__label {
-            width: 50px !important;
-        }
+      }
     }
 
-    .line {
-        padding: 0 5px;
+    .el-table {
+      // color: #4b9bb7;
+      // font-size: 10px;
+
+      &::v-deep .cell {
+        text-overflow: ellipsis;
+        white-space: nowrap;
+        overflow: hidden;
+        .el-checkbox {
+          display: none;
+        }
+      }
+
+      // &::v-deep .el-table__empty-block {
+      //     background-color: #09152f;
+      // }
+
+      &::v-deep .el-table__empty-block {
+        color: #4b9bb7;
+      }
+
+      .operation {
+        display: flex;
+
+        .line {
+          padding: 0 5px;
+        }
+        color: var(--operation-color);
+        span:hover {
+          cursor: pointer;
+        }
+      }
     }
 
-    &::v-deep .el-dialog__header,
+    // .el-table::v-deep .warning-row {
+    // background: #06122c;
+    // }
+
+    .el-table::v-deep .success-row {
+      background: #071f39;
+    }
+
+    &::v-deep .switchStyle .el-switch__label {
+      position: absolute;
+      display: none;
+      color: #fff;
+    }
+
+    &::v-deep .el-switch__core {
+      background-color: rgba(166, 166, 166, 1);
+    }
+
+    &::v-deep .switchStyle .el-switch__label--left {
+      z-index: 9;
+      left: 20px;
+    }
+
+    &::v-deep .switchStyle .el-switch__label--right {
+      z-index: 9;
+      left: 4px;
+    }
+
+    &::v-deep .switchStyle .el-switch__label.is-active {
+      display: block;
+    }
+
+    &::v-deep .switchStyle.el-switch .el-switch__core,
+    &::v-deep .el-switch .el-switch__label {
+      width: 50px !important;
+    }
+  }
+
+  .line {
+    padding: 0 5px;
+  }
+
+  &::v-deep .el-dialog__header,
     // &::v-deep .el-dialog__body {
     //     background-color: #06122c;
     // }
 
     &::v-deep .el-dialog__header {
-        display: flex;
-        align-items: center;
-        background-color: #fff;
-        padding: 20px;
-        line-height: 60px;
-    }
+    display: flex;
+    align-items: center;
+    background-color: #fff;
+    padding: 20px;
+    line-height: 60px;
+  }
 
-    &::v-deep .el-dialog__title {
-        color: #4b9bb7;
-    }
+  &::v-deep .el-dialog__title {
+    color: #4b9bb7;
+  }
 
-    &::v-deep .el-dialog__close {
-        width: 20px;
-        height: 20px;
-        // color: #fff;
-    }
+  &::v-deep .el-dialog__close {
+    width: 20px;
+    height: 20px;
+    // color: #fff;
+  }
 
-    &::v-deep .el-dialog__body {
-        padding: 0;
-    }
+  &::v-deep .el-dialog__body {
+    padding: 0;
+  }
 }
 </style>

--
Gitblit v1.8.0