From 12c5dbe8306f02c7f697380dd9e7e3f303ec915e Mon Sep 17 00:00:00 2001 From: fangyuan <527392886@qq.com> Date: 星期二, 29 十一月 2022 18:35:31 +0800 Subject: [PATCH] 案卷查询页面修改 --- src/views/operate/viewEvent/index.vue | 46 ++++++++++++++-------------------------------- 1 files changed, 14 insertions(+), 32 deletions(-) diff --git a/src/views/operate/viewEvent/index.vue b/src/views/operate/viewEvent/index.vue index e2ac2c1..b98d707 100644 --- a/src/views/operate/viewEvent/index.vue +++ b/src/views/operate/viewEvent/index.vue @@ -4,25 +4,25 @@ <div class="headerTitle">杩愯惀绠$悊 >> 妗堝嵎鏌ヨ</div> <div class="headerContent"> <div class="contentItem"> - <span>鎸夌紪鍙�: </span> + <div style="width: 80px;">鎸夌紪鍙�: </div> <div> <el-input placeholder=" 璇疯緭鍏ョ紪鍙�" v-model="searchData.number"></el-input> </div> </div> <div class="contentItem"> - <span>鎸夌被鍨�: </span> + <div style="width: 80px;">鎸夌被鍨�: </div> <div class="search"> <el-input placeholder=" 璇疯緭鍏ョ被鍨�" v-model="searchData.categories"></el-input> </div> </div> <div class="contentItem"> - <span>鎸夌ぞ鍖�: </span> + <div style="width: 80px;">鎸夌ぞ鍖�: </div> <div class="search"> <el-input placeholder=" 璇疯緭鍏ョぞ鍖�" v-model="searchData.communityId"></el-input> </div> </div> <div class="contentItem"> - <span>鎸変簨鍙戝湴鐐�: </span> + <div style="width: 150px;">鎸変簨鍙戝湴鐐�: </div> <div class="search"> <el-input placeholder=" 璇疯緭鍏ヤ簨鍙戝湴鐐�" v-model="searchData.site"></el-input> </div> @@ -34,7 +34,7 @@ </div> </div> <div class="headerContent"> - <span>鏃堕棿: </span> + <div style="width: 60px;">鏃堕棿: </div> <el-date-picker v-model="datepick" type="daterange" @@ -70,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> <!-- 瀹℃牳椤甸潰 --> @@ -122,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> @@ -153,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: { @@ -293,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