From 3fde6efd0326e547d9d5cfdc6e534813cccb52ff Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 17 十月 2022 22:58:52 +0800
Subject: [PATCH] 部门bug修改

---
 src/views/operate/management/myIndex/index.vue |   50 ++++++++++++++++++++++++++++++++------------------
 1 files changed, 32 insertions(+), 18 deletions(-)

diff --git a/src/views/operate/management/myIndex/index.vue b/src/views/operate/management/myIndex/index.vue
index 29122f9..ee0a296 100644
--- a/src/views/operate/management/myIndex/index.vue
+++ b/src/views/operate/management/myIndex/index.vue
@@ -26,36 +26,45 @@
                     @selection-change="tableChange">
                     <el-table-column type="selection" min-width="5">
                     </el-table-column>
-                    <el-table-column prop="code" label="浜嬩欢缂栧彿" min-width="10">
+                    <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="10">
+                    <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="category" label="澶х被鍚嶇О" min-width="10">
+                    <el-table-column :prop="myproblem === 1 ? 'category' :'category'" :label="myproblem===1 ? '澶х被鍚嶇О' : '杩濆缓绫诲埆'" :min-width="myproblem===1?'10':'20'">
                     </el-table-column>
-                    <el-table-column prop="type" label="灏忕被鍚嶇О" min-width="10">
+                    <el-table-column :prop="myproblem === 1 ? 'type' :'site'" :label="myproblem===1 ? '灏忕被鍚嶇О' : '杩濆缓鍦扮偣'" min-width="10">
                     </el-table-column>
-                    <el-table-column prop="actionCause" label="妗堢敱" min-width="10">
+                    <el-table-column :prop="myproblem === 1 ? 'actionCause' :'communityId'" :label="myproblem===1 ? '妗堢敱' : '鎵�灞炵ぞ鍖�'" min-width="10">
                     </el-table-column>
-                    <el-table-column prop="site" label="鎶ヨ鐐逛綅" min-width="10">
+                    <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="streetId" label="鎵�灞炲尯鍩�" min-width="10">
+                    <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">
+                    <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="continueTime" label="鎸佺画鏃堕棿" min-width="10">
+                    <el-table-column :prop="myproblem === 1 ? 'continueTime' :'materials'" :label="myproblem===1 ? '鎸佺画鏃堕棿' : '杩濇硶寤虹瓚鏉愭枡'" min-width="10">
                     </el-table-column>
                     <el-table-column prop="operation" label="鎿嶄綔" min-width="20">
                         <template slot-scope="scope">
                             <div class="btn">
-                                <span @click="handleExamine(scope.row)" v-if="instatus===7 ? true : false">瀹℃牳</span>
-                                <!-- <span class="line" v-if="instatus===7 ? true : false">|</span> -->
+                                <!-- 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>
@@ -63,12 +72,14 @@
                 <!-- 瀹℃牳椤甸潰 -->
                 <el-dialog :visible.sync="dialogExamine" width="80%" title="鍩虹淇℃伅(浜哄伐)" v-if="dialogExamine"
                     :before-close="handleClose">
-                    <MyExamine :info="info" @closeDialog="closeDialog"></MyExamine>
+                    <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="80%" title="鍩虹淇℃伅(浜哄伐)" v-if="dialogClosure"
                     :before-close="handleClose">
-                    <MyClosure :info="info" @closeDialog="closeDialog"></MyClosure>
+                    <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="80%" title="鍩虹淇℃伅(浜哄伐)" v-if="dialogView"
@@ -79,10 +90,10 @@
                 <!-- tools -->
                 <div class="tools">
                     <div class="funs">
-                        <div class="funsItem">
+                        <div class="funsItem funs-sp">
                             <el-checkbox v-model="all" @change="selectAll()">鍏ㄩ��</el-checkbox>
                         </div>
-                        <div class="funsItem">
+                        <div class="funsItem funs-sp">
                             <el-checkbox v-model="unsame" @change="disSame(tableData)">鍙嶉��</el-checkbox>
                         </div>
                         <div class="funsItem">
@@ -107,12 +118,14 @@
 <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'
 export default {
     components: {
-        MyExamine,MyClosure,MyDetail,MyIllDetail
+        MyExamine,MyClosure,MyDetail,MyIllDetail,MyIllExamine,MyIllClosure
     },
     data() {
         return {
@@ -397,12 +410,13 @@
 
             .funs {
                 display: flex;
-
+                .funs-sp{
+                    border: 1px solid #17324c;
+                }
                 .funsItem {
                     line-height: 28px;
                     display: flex;
                     align-items: center;
-                    border: 1px solid #17324c;
                     border-radius: 4px;
                     font-size: 12px;
                     margin-left: 10px;

--
Gitblit v1.8.0