一公司人员定位 报警列表3

20240528Test
limingyu 2024-04-13 16:48:21 +08:00
parent ffc9dcf5fe
commit 830e2d2f48
1 changed files with 28 additions and 7 deletions

View File

@ -2,18 +2,18 @@
<div class="app-container">
<el-form ref="searchForm" :model="searchForm" label-width="80px">
<el-row>
<el-col :span="6">
<el-col :span="4">
<el-form-item label="报警状态" prop="status">
<el-select v-model="searchForm.status" style="width: 100%;">
<el-option v-for="item in statusList" :key="item.DICTIONARIES_ID" :value="item.BIANMA" :label="item.NAME"/>
<el-option v-for="item in alarmStatusList" :key="item.value" :value="item.value" :label="item.name"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="4" label-width="10px" style="margin-left: 20px">
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getList">
搜索
</el-button>
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="chongzhi">
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="resetSearchForm">
重置
</el-button>
</el-col>
@ -116,13 +116,14 @@ export default {
searchForm: {
status: ''
},
statusList: []
alarmStatusList: []
}
},
created() {
this.getList()
this.getEditMyInfo()
this.getDictTreeData()
this.getDictionary()
},
methods: {
getRowKey(row) {
@ -141,15 +142,22 @@ export default {
).then((data) => {
this.loginUserID = data.pd.USER_ID // ID
}).catch((e) => {
})
},
resetSearchForm() {
this.searchForm = {
status: ''
}
this.getList()
},
//
getList() {
this.listLoading = true
requestFN(
'/dingWei/getAlarmList?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page,
{}
{
status: this.searchForm.status
}
).then((data) => {
this.listLoading = false
this.varList = data.list
@ -158,6 +166,19 @@ export default {
this.listLoading = false
})
},
getDictionary() {
requestFN(
'/dingWei/getDictionary',
{}
).then((data) => {
if (data.code === 200) {
var alarmStatusList = JSON.parse(data.AlarmStatus)
this.alarmStatusList = alarmStatusList
}
}).catch((e) => {
})
},
goInfo(id, type) {
this.dialogManageAlarm = true
this.dialogType = type