一公司人员定位 报警列表3
parent
ffc9dcf5fe
commit
830e2d2f48
|
@ -2,18 +2,18 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-form ref="searchForm" :model="searchForm" label-width="80px">
|
<el-form ref="searchForm" :model="searchForm" label-width="80px">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="6">
|
<el-col :span="4">
|
||||||
<el-form-item label="报警状态" prop="status">
|
<el-form-item label="报警状态" prop="status">
|
||||||
<el-select v-model="searchForm.status" style="width: 100%;">
|
<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-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</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 v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getList">
|
||||||
搜索
|
搜索
|
||||||
</el-button>
|
</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-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -116,13 +116,14 @@ export default {
|
||||||
searchForm: {
|
searchForm: {
|
||||||
status: ''
|
status: ''
|
||||||
},
|
},
|
||||||
statusList: []
|
alarmStatusList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getEditMyInfo()
|
this.getEditMyInfo()
|
||||||
this.getDictTreeData()
|
this.getDictTreeData()
|
||||||
|
this.getDictionary()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getRowKey(row) {
|
getRowKey(row) {
|
||||||
|
@ -141,15 +142,22 @@ export default {
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.loginUserID = data.pd.USER_ID // 主职角色ID
|
this.loginUserID = data.pd.USER_ID // 主职角色ID
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
resetSearchForm() {
|
||||||
|
this.searchForm = {
|
||||||
|
status: ''
|
||||||
|
}
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
// 获取列表
|
// 获取列表
|
||||||
getList() {
|
getList() {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
requestFN(
|
requestFN(
|
||||||
'/dingWei/getAlarmList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
'/dingWei/getAlarmList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
{}
|
{
|
||||||
|
status: this.searchForm.status
|
||||||
|
}
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
this.varList = data.list
|
this.varList = data.list
|
||||||
|
@ -158,6 +166,19 @@ export default {
|
||||||
this.listLoading = false
|
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) {
|
goInfo(id, type) {
|
||||||
this.dialogManageAlarm = true
|
this.dialogManageAlarm = true
|
||||||
this.dialogType = type
|
this.dialogType = type
|
||||||
|
|
Loading…
Reference in New Issue