From 44823ee4f73793fa2d67a60aaf2f424866922b95 Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期二, 29 十一月 2022 14:39:37 +0800
Subject: [PATCH] 146
---
src/views/operate/viewEvent/index.vue | 45 ++++++++++++++++-----------------------------
1 files changed, 16 insertions(+), 29 deletions(-)
diff --git a/src/views/operate/viewEvent/index.vue b/src/views/operate/viewEvent/index.vue
index 162b08a..03e5da3 100644
--- a/src/views/operate/viewEvent/index.vue
+++ b/src/views/operate/viewEvent/index.vue
@@ -55,9 +55,14 @@
@selection-change="tableChange">
<el-table-column categories="selection" min-width="5">
</el-table-column>
- <el-table-column prop="id" label="浜嬩欢缂栧彿" min-width="18">
+ <el-table-column prop="code" label="浜嬩欢缂栧彿" min-width="18">
<template slot-scope="scope">
- <el-link @click="JumpView(scope.row)">{{ scope.row.id }}</el-link>
+ <el-link @click="JumpView(scope.row)">{{ scope.row.code }}</el-link>
+ </template>
+ </el-table-column>
+ <el-table-column prop="category" label="闂绫诲埆" min-width="8">
+ <template slot-scope="scope">
+ <span>{{ scope.row.category == 1 ? '杩濊' : '杩濆缓' }}</span>
</template>
</el-table-column>
<el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="8">
@@ -65,34 +70,12 @@
<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 ? 'categories' : '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 prop="communityText" label="绀惧尯" min-width="8">
</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>
<!-- 瀹℃牳椤甸潰 -->
@@ -117,7 +100,8 @@
<div class="tools">
<div class="funs">
<div class="funsItem funs-sp">
- <el-checkbox v-model="all" @change="selectAll()">鍏ㄩ��</el-checkbox>
+ <el-checkbox v-model="all" @change="selectAll()"
+ :disabled="tableData.length === 0">鍏ㄩ��</el-checkbox>
</div>
<div class="funsItem funs-sp">
<el-checkbox v-model="unsame" @change="disSame(tableData)">鍙嶉��</el-checkbox>
@@ -148,7 +132,7 @@
import MyDetail from '@/components/detail'
import MyIllDetail from '@/components/illdetail'
import helper from '@/utils/mydate'
-import casequery from "@/api/operate/casequery";
+import casequery from "@/api/operate/basecase";
export default {
components: {
@@ -288,9 +272,12 @@
getList() {
casequery.baseCaseQuery({ current: this.currentPage, pageSize: this.pageSize, ...this.searchData })
.then((res) => {
- this.tableData = res;
+ this.tableData = res.records;
+ this.totalNum=res.total;
})
- .catch(err => this.$message({ type: 'error', message: err }))
+ .catch(err => {
+ this.tableData = [];
+ })
},
// 璁剧疆琛ㄦ牸鏂戦┈绾�
tableRowClassName({ row, rowIndex }) {
--
Gitblit v1.8.0