From 830e2d2f48652db4431dc891d08128daee469ed3 Mon Sep 17 00:00:00 2001 From: limingyu Date: Sat, 13 Apr 2024 16:48:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E5=85=AC=E5=8F=B8=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=20=E6=8A=A5=E8=AD=A6=E5=88=97=E8=A1=A83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oneCompany/alarmList/components/list.vue | 35 +++++++++++++++---- 1 file changed, 28 insertions(+), 7 deletions(-) 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