From 032d3b01a1d3592f22b051aac8b5ef29c3802cb2 Mon Sep 17 00:00:00 2001
From: jiangzhe <244140623@qq.com>
Date: Tue, 4 Jun 2024 09:44:58 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=AD=A6=E5=B9=B2=E9=A2=84=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/archive/warnRecord/types.ts | 10 +++--
src/views/archive/interveneRecord/index.vue | 43 ++++++++++++++++++---
2 files changed, 43 insertions(+), 10 deletions(-)
diff --git a/src/api/archive/warnRecord/types.ts b/src/api/archive/warnRecord/types.ts
index 9319757..7d8f014 100644
--- a/src/api/archive/warnRecord/types.ts
+++ b/src/api/archive/warnRecord/types.ts
@@ -90,11 +90,13 @@ export interface WarnRecordQuery extends PageQuery {
* 预警时间
*/
warnTime?: string;
+ warnTimeStart?: string;
+ warnTimeEnd?: string;
- /**
- * 日期范围参数
- */
- params?: any;
+ /**
+ * 日期范围参数
+ */
+ params?: any;
}
diff --git a/src/views/archive/interveneRecord/index.vue b/src/views/archive/interveneRecord/index.vue
index 4ab8600..f0be2b5 100644
--- a/src/views/archive/interveneRecord/index.vue
+++ b/src/views/archive/interveneRecord/index.vue
@@ -14,8 +14,8 @@
-
+
搜索
@@ -146,15 +146,26 @@
-
-
+
+
+
+
+ {{ des.score }}
+ {{ des.factorName }}
+ {{ des.evalDesc }}
+
+
+
+
+
+
@@ -188,7 +199,13 @@ const recordDialog = reactive({
const listDialog = ref(false)
const activeName = ref('static')
-const statusOptions: any[] = []
+//状态 0 未处理,1 分配咨询师,2 咨询师拒绝干预,3 干预中 4 干预结束
+const statusOptions = [
+ { label: '无须干预', value: 0 },
+ { label: '干预中', value: 1 }
+]
+
+const activeFactory = ref('')
const initFormData: WarnRecordForm = {
warnId: undefined,
@@ -208,6 +225,8 @@ const data = reactive>({
status: undefined,
note: undefined,
warnTime: undefined,
+ warnTimeStart: undefined,
+ warnTimeEnd: undefined,
params: {
}
},
@@ -252,6 +271,11 @@ function handleSituation(situation: any) {
/** 查询预警记录列表 */
const getList = async () => {
loading.value = true;
+ const warnArr = queryParams.value.warnTime
+ if (warnArr && warnArr.length > 0) {
+ queryParams.value.warnTimeStart = warnArr[0]
+ queryParams.value.warnTimeEnd = warnArr[1]
+ }
const res = await listWarnRecord(queryParams.value);
warnRecordList.value = res.rows;
total.value = res.total;
@@ -345,6 +369,13 @@ async function handleResult(row: any) {
dialogResult.value = true
const result = await getEvaluationList({ recordId: row.recordId, status: 1 })
currentResult.value = result.data
+
+ activeFactory.value = result.data[0].id
+}
+
+function handleResultClose() {
+ currentResult.value = []
+ activeFactory.value = ''
}
function handleExport(row: any) {