|
@ -7,14 +7,31 @@ |
|
|
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> |
|
|
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> |
|
|
<div v-show="isSearchShow" class="search"> |
|
|
<div v-show="isSearchShow" class="search"> |
|
|
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="110px" class="tab-header"> |
|
|
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="110px" class="tab-header"> |
|
|
<el-form-item label="设备类型"> |
|
|
<el-form-item label="设备名称"> |
|
|
<el-input v-model="listQuery.params.manufacturerName" clearable placeholder="" class="addinputw"></el-input> |
|
|
<el-input v-model="listQuery.params.manufacturerName" clearable placeholder="" |
|
|
|
|
|
class="addinputw"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="选择楼层"> |
|
|
<el-form-item label="设备类型"> |
|
|
<el-select v-model="listQuery.params.supplierType" filterable clearable placeholder="请选择楼层"> |
|
|
<el-select v-model="listQuery.params.supplierType" filterable clearable placeholder="请选择设备类型"> |
|
|
<el-option v-for="item in supplierType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
<el-option v-for="item in supplierType_list" :key="item.id" :label="item.title" :value="item.id" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="开始时间"> |
|
|
|
|
|
<el-date-picker v-model="listQuery.params.time1" type="date" placeholder="选择日期" |
|
|
|
|
|
maxlength="20"></el-date-picker> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-select v-model="listQuery.params.time1" filterable clearable placeholder="请选择设备类型"> |
|
|
|
|
|
<el-option v-for="item in supplierType_list" :key="item.id" :label="item.title" :value="item.id" /> |
|
|
|
|
|
</el-select> --> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="结束时间"> |
|
|
|
|
|
<el-date-picker v-model="listQuery.params.time2" type="date" placeholder="选择日期" |
|
|
|
|
|
maxlength="20"></el-date-picker> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-select v-model="listQuery.params.time2" filterable clearable placeholder="请选择设备类型"> |
|
|
|
|
|
<el-option v-for="item in supplierType_list" :key="item.id" :label="item.title" :value="item.id" /> |
|
|
|
|
|
</el-select> --> |
|
|
|
|
|
</el-form-item> |
|
|
<!-- <el-form-item label="厂商办公电话"> |
|
|
<!-- <el-form-item label="厂商办公电话"> |
|
|
<el-input v-model="listQuery.params.manufacturerTelePhone" maxlength="130" placeholder="" class="addinputw" clearable/> |
|
|
<el-input v-model="listQuery.params.manufacturerTelePhone" maxlength="130" placeholder="" class="addinputw" clearable/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -31,10 +48,12 @@ |
|
|
<div class="listtop"> |
|
|
<div class="listtop"> |
|
|
<div class="tit">报警查询信息列表</div> |
|
|
<div class="tit">报警查询信息列表</div> |
|
|
<!-- 翻页分页 --> |
|
|
<!-- 翻页分页 --> |
|
|
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|
|
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" |
|
|
|
|
|
:limit.sync="listQuery.size" class="pagination" @pagination="getList" /> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" |
|
|
|
|
|
@selection-change="handleSelectionChange"> |
|
|
<el-table-column type="selection" align="center" width="50" /> |
|
|
<el-table-column type="selection" align="center" width="50" /> |
|
|
<el-table-column label="序号" fixed type="index" width="80" :index="indexMethod" align="center" /> |
|
|
<el-table-column label="序号" fixed type="index" width="80" :index="indexMethod" align="center" /> |
|
|
<!-- <el-table-column label="操作" fixed align="center" width="160px" class-name="small-padding fixed-width"> |
|
|
<!-- <el-table-column label="操作" fixed align="center" width="160px" class-name="small-padding fixed-width"> |
|
@ -48,14 +67,24 @@ |
|
|
<span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.bianma }}</span> |
|
|
<span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.bianma }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> --> |
|
|
</el-table-column> --> |
|
|
<el-table-column prop="jc" label="设备编码" header-align="center" align="center"> |
|
|
<!-- <el-table-column prop="jc" label="设备编码" header-align="center" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span>{{ scope.row.bianma }}</span> |
|
|
<span>{{ scope.row.bianma }}</span> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
</el-table-column> --> |
|
|
|
|
|
<!-- <el-table-column label="设备类型" width="110" align="center"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span>{{ getSupplierType(scope.row.supplierTypeValue) }}</span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> --> |
|
|
|
|
|
<el-table-column label="报警时间" align="center"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span>{{ scope.row.policeTime }}</span> |
|
|
|
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="设备类型" width="110" align="center"> |
|
|
<el-table-column label="设备名称" width="" header-align="center" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span>{{ scope.row.supplierTypeValue }}</span> |
|
|
<span>{{ scope.row.name }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="设备位置" width="" header-align="center" align="center"> |
|
|
<el-table-column label="设备位置" width="" header-align="center" align="center"> |
|
@ -63,7 +92,7 @@ |
|
|
<span>{{ scope.row.weizhi }}</span> |
|
|
<span>{{ scope.row.weizhi }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="出厂时间" align="center"> |
|
|
<!-- <el-table-column label="出厂时间" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span>{{ scope.row.time }}</span> |
|
|
<span>{{ scope.row.time }}</span> |
|
|
</template> |
|
|
</template> |
|
@ -80,24 +109,20 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="生产厂家" align="center"> |
|
|
<el-table-column label="生产厂家" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span>{{ scope.row.gonghuashang }}</span> |
|
|
<span>{{ scope.row.owner }}</span> |
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column label="保修截止日期" align="center"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span>{{ scope.row.gonghuashang }}</span> |
|
|
|
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> --> |
|
|
<el-table-column label="状态" align="center"> |
|
|
<el-table-column label="状态" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span>{{ scope.row.gonghuashang }}</span> |
|
|
<span>{{ getSupplierType(scope.row.supplierTypeValue) }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</div> |
|
|
</div> |
|
|
<div class="pages"> |
|
|
<div class="pages"> |
|
|
<!-- 翻页 --> |
|
|
<!-- 翻页 --> |
|
|
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|
|
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" |
|
|
|
|
|
:limit.sync="listQuery.size" class="pagination" @pagination="getList" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -178,8 +203,17 @@ export default { |
|
|
sids: [], |
|
|
sids: [], |
|
|
// 查询 ----------- |
|
|
// 查询 ----------- |
|
|
tableKey: 0, |
|
|
tableKey: 0, |
|
|
list: [{bianma:'212233433',supplierTypeValue:'222',weizhi:'212233433',time:'2023-02-26',anzhuangtime:'2023-02-26',gonghuashang:'222' |
|
|
list: [ |
|
|
,supplierTypeValue:'222',zhuangtai:'222'} |
|
|
{ bianma: 'ZYR2060801', supplierTypeValue: '1', name: '电梯系统', weizhi: '库房', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-18 06:00:00', isElse: '待处理' }, |
|
|
|
|
|
{ bianma: 'ZYR2060802', supplierTypeValue: '1', name: '电梯系统', weizhi: '观察', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-19 06:00:00', isElse: '已处理' }, |
|
|
|
|
|
{ bianma: 'ZYR2060803', supplierTypeValue: '2', name: '电梯系统', weizhi: '后院', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-19 06:00:00', isElse: '待处理' }, |
|
|
|
|
|
{ bianma: 'ZYR2060804', supplierTypeValue: '2', name: '电梯系统', weizhi: '铁皮', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-20 06:00:00', isElse: '已处理' }, |
|
|
|
|
|
{ bianma: 'ZYR2060805', supplierTypeValue: '2', name: '电梯系统', weizhi: '盲点', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-20 06:00:00', isElse: '待处理' }, |
|
|
|
|
|
{ bianma: 'ZYR2060806', supplierTypeValue: '3', name: '电梯系统', weizhi: '凉亭', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-21 06:00:00', isElse: '待处理' }, |
|
|
|
|
|
{ bianma: 'ZYR2060807', supplierTypeValue: '3', name: '电梯系统', weizhi: '书房', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-23 06:00:00', isElse: '已处理' }, |
|
|
|
|
|
{ bianma: 'ZYR2060808', supplierTypeValue: '4', name: '电梯系统', weizhi: '藏经阁', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-23 06:00:00', isElse: '待处理' }, |
|
|
|
|
|
{ bianma: 'ZYR2060809', supplierTypeValue: '4', name: '电梯系统', weizhi: '车库', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-23 06:00:00', isElse: '已处理' }, |
|
|
|
|
|
{ bianma: 'ZYR2060810', supplierTypeValue: '5', name: '电梯系统', weizhi: '斜坡', time: '2023-02-26', anzhuangtime: '2023-02-26', gonghuashang: 'Pepsi Cola', owner: 'Owner Peer', policeTime: '2023-05-23 06:00:00', isElse: '待处理' }, |
|
|
], |
|
|
], |
|
|
listLoading: false, |
|
|
listLoading: false, |
|
|
listQuery: { |
|
|
listQuery: { |
|
@ -193,9 +227,15 @@ export default { |
|
|
}, |
|
|
}, |
|
|
current: 1, |
|
|
current: 1, |
|
|
size: 5, |
|
|
size: 5, |
|
|
total: 0 |
|
|
total: 10 |
|
|
}, |
|
|
}, |
|
|
supplierType_list: [], |
|
|
supplierType_list: [ |
|
|
|
|
|
{ title: '入侵报警', id: '1' }, |
|
|
|
|
|
{ title: '电子围栏', id: '2' }, |
|
|
|
|
|
{ title: '门禁报警', id: '3' }, |
|
|
|
|
|
{ title: '监控报警', id: '4' }, |
|
|
|
|
|
{ title: '设备离线', id: '5' }, |
|
|
|
|
|
], |
|
|
rules: {} |
|
|
rules: {} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -207,6 +247,13 @@ export default { |
|
|
// this.init() |
|
|
// this.init() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getSupplierType(item) { |
|
|
|
|
|
for (var i = 0; i < this.supplierType_list.length; i++) { |
|
|
|
|
|
if (this.supplierType_list[i].id == item) { |
|
|
|
|
|
return this.supplierType_list[i].title |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
resetState() { |
|
|
resetState() { |
|
|
this.viewState = 1 |
|
|
this.viewState = 1 |
|
|
}, |
|
|
}, |
|
|