From 50f4c4fefc397cbc0816c11d45315f1bca33226a Mon Sep 17 00:00:00 2001
From: luobisheng <727299681@qq.com>
Date: 星期三, 30 十一月 2022 11:50:49 +0800
Subject: [PATCH] 上传组件样式修改
---
src/views/operate/viewEvent/index.vue | 55 +++++++++++++++++++++----------------------------------
1 files changed, 21 insertions(+), 34 deletions(-)
diff --git a/src/views/operate/viewEvent/index.vue b/src/views/operate/viewEvent/index.vue
index f07ee50..39171b6 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"
@@ -53,11 +53,16 @@
:header-cell-style="{ background: '#06122c', 'font-size': '12px', color: '#4b9bb7', 'font-weight': '650', 'line-height': '45px' }"
:data="tableData" style="width: 100%" :row-class-name="tableRowClassName"
@selection-change="tableChange">
- <el-table-column categories="selection" min-width="5">
+ <el-table-column type="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>
@@ -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