From e23a1db0b60437f17d09d65c65f8fd0c8a5d88c7 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 26 八月 2024 18:11:07 +0800
Subject: [PATCH] 最新版本
---
admin/src/views/business/deviceEvent.vue | 66 +++++++++++++++++----------------
1 files changed, 34 insertions(+), 32 deletions(-)
diff --git a/admin/src/views/business/deviceEvent.vue b/admin/src/views/business/deviceEvent.vue
index f055fb4..d9b3d60 100644
--- a/admin/src/views/business/deviceEvent.vue
+++ b/admin/src/views/business/deviceEvent.vue
@@ -5,13 +5,12 @@
<el-form-item label="濮撳悕/鎵嬫満鍙�" prop="keyWords">
<el-input v-model="searchForm.keyWords" placeholder="璇疯緭鍏ュ鍚�/鎵嬫満鍙�" @keypress.enter.native="search"></el-input>
</el-form-item>
- <el-form-item label="鍏徃/缁勭粐鍚嶇О" prop="personCompanyName">
- <el-input v-model="searchForm.personCompanyName" placeholder="璇疯緭鍏ュ叕鍙�/缁勭粐鍚嶇О" @keypress.enter.native="search"></el-input>
+ <el-form-item label="缁勭粐" prop="companyName">
+ <el-input v-model="searchForm.companyName" placeholder="璇疯緭鍏ョ粍缁囧悕绉�" @keypress.enter.native="search"></el-input>
</el-form-item>
<el-form-item label="浜哄憳绫诲瀷" prop="personType">
<el-select v-model="searchForm.personType" placeholder="璇烽�夋嫨">
- <el-option label="鍔冲姟璁垮" value="0"></el-option>
- <el-option label="鏅�氳瀹�" value="1"></el-option>
+ <el-option label="澶栨潵璁垮" value="1"></el-option>
<el-option label="鍐呴儴浜哄憳" value="2"></el-option>
</el-select>
</el-form-item>
@@ -21,7 +20,7 @@
<el-option label="浜鸿劯璁よ瘉閫氳繃" value="196893"></el-option>
</el-select>
</el-form-item>
- <el-form-item label="璧峰鏃堕棿" prop="eventType">
+ <el-form-item label="璧锋鏃堕棿" prop="eventType">
<el-date-picker
@change="seleTime"
v-model="time"
@@ -29,8 +28,8 @@
format="yyyy-MM-dd HH:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
range-separator="鑷�"
- start-placeholder="寮�濮嬫棩鏈�"
- end-placeholder="缁撴潫鏃ユ湡">
+ start-placeholder="寮�濮嬫椂闂�"
+ end-placeholder="缁撴潫鏃堕棿">
</el-date-picker>
</el-form-item>
<el-radio-group v-model="searchForm.radio" size="small" @input="changeRadio">
@@ -46,7 +45,9 @@
<!-- 琛ㄦ牸鍜屽垎椤� -->
<template v-slot:table-wrap>
<ul class="toolbar" v-permissions="['business:deviceevent:exportExcel']">
+<!--
<li><el-button type="primary" :loading="isWorking.export" v-permissions="['business:deviceevent:exportExcel']" @click="exportExcel">瀵煎嚭</el-button></li>
+-->
</ul>
<el-table
v-loading="isWorking.search"
@@ -55,23 +56,20 @@
>
<el-table-column prop="userType" label="浜哄憳绫诲瀷" min-width="100px">
<template slot-scope="{row}">
- <span v-if="row.userType === 0">鍔冲姟璁垮</span>
- <span v-if="row.userType === 1">鏅�氳瀹�</span>
- <span v-if="row.userType === 2">鍐呴儴浜哄憳</span>
+ <span v-if="row.personType == 0">鍔冲姟璁垮</span>
+ <span v-if="row.personType == 1">鏅�氳瀹�</span>
+ <span v-if="row.personType == 2">鍐呴儴浜哄憳</span>
+ <span v-if="row.personType == null">澶栨潵璁垮</span>
</template>
</el-table-column>
- <el-table-column prop="name" label="濮撳悕" min-width="100px"></el-table-column>
- <el-table-column prop="phone" label="鎵嬫満鍙�" min-width="100px"></el-table-column>
- <el-table-column prop="idcard" label="韬唤璇佸彿鐮�" min-width="100px"></el-table-column>
- <el-table-column prop="personCompanyName" label="鍏徃/缁勭粐" min-width="100px"></el-table-column>
+ <el-table-column prop="happenTime" label="浜嬩欢鏃堕棿" min-width="100px"></el-table-column>
<el-table-column prop="devName" label="闂ㄧ鍚嶇О" min-width="100px"></el-table-column>
<el-table-column prop="srcName" label="闂ㄧ鐐�" min-width="100px"></el-table-column>
<el-table-column prop="eventTypeName" label="浜嬩欢绫诲瀷" min-width="100px"></el-table-column>
<el-table-column label="鍑哄叆绫诲瀷" min-width="100px">
<template slot-scope="{row}">
<span v-if="row.extEventInOut === 1">杩�</span>
- <span v-if="row.extEventInOut === 0">鍑�</span>
- <span v-if="row.extEventInOut === -1">鏈煡</span>
+ <span v-if="row.extEventInOut != 1">鍑�</span>
</template>
</el-table-column>
<el-table-column label="鎶撴媿鐓х墖" min-width="100px">
@@ -83,7 +81,12 @@
</el-image>
</template>
</el-table-column>
- <el-table-column prop="happenTime" label="浜嬩欢鏃堕棿" min-width="100px"></el-table-column>
+
+ <el-table-column prop="personName" label="濮撳悕" min-width="100px"></el-table-column>
+ <el-table-column prop="personPhone" label="鎵嬫満鍙�" min-width="100px"></el-table-column>
+ <el-table-column prop="personIdcardDecode" label="璇佷欢鍙�" min-width="100px"></el-table-column>
+ <el-table-column prop="personCompanyName" label="缁勭粐" min-width="100px"></el-table-column>
+
</el-table>
<pagination
@size-change="handleSizeChange"
@@ -109,12 +112,12 @@
// 鎼滅储
searchForm: {
keyWords: '',
- personCompanyName: '',
+ companyName: '',
personType: '',
eventType: '',
startTime: '',
endTime: '',
- radio: null
+ radio: 0
},
time: []
}
@@ -126,22 +129,22 @@
'field.id': 'id',
'field.main': 'id'
})
- this.search()
+ this.changeRadio('0')
},
methods: {
changeRadio (e) {
if (e === '0') {
- this.searchForm.startTime = timeForMat(1)[0]
- this.searchForm.endTime = timeForMat(1)[1]
- this.time = timeForMat(1)
+ this.searchForm.startTime = timeForMat(0)[0]
+ this.searchForm.endTime = timeForMat(0)[1]
+ this.time = timeForMat(0)
} else if (e === '1') {
- this.searchForm.startTime = timeForMat(7)[0]
- this.searchForm.endTime = timeForMat(7)[1]
- this.time = timeForMat(7)
+ this.searchForm.startTime = timeForMat(6)[0]
+ this.searchForm.endTime = timeForMat(6)[1]
+ this.time = timeForMat(6)
} else if (e === '2') {
- this.searchForm.startTime = timeForMat(30)[0]
- this.searchForm.endTime = timeForMat(30)[1]
- this.time = timeForMat(30)
+ this.searchForm.startTime = timeForMat(29)[0]
+ this.searchForm.endTime = timeForMat(29)[1]
+ this.time = timeForMat(29)
}
this.search()
},
@@ -153,10 +156,9 @@
},
reset () {
this.$refs.searchForm.resetFields()
- this.searchForm.startTime = ''
- this.searchForm.endTime = ''
this.time = []
- this.searchForm.radio = null
+ this.searchForm.radio = '0'
+ this.changeRadio('0')
this.search()
}
}
--
Gitblit v1.9.3