diff --git a/src/views/oneCompany/alarmList/components/list.vue b/src/views/oneCompany/alarmList/components/list.vue
index 892e8fa..64997eb 100644
--- a/src/views/oneCompany/alarmList/components/list.vue
+++ b/src/views/oneCompany/alarmList/components/list.vue
@@ -2,18 +2,18 @@
-
+
-
+
-
+
搜索
-
+
重置
@@ -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 + '¤tPage=' + 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