From 563ff89947b0841712d93a81ed82afdb60c50d13 Mon Sep 17 00:00:00 2001
From: jiangzhe <244140623@qq.com>
Date: Mon, 29 Apr 2024 16:03:37 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/archive/information/index.vue | 51 +++++++++++++++++++--
src/views/archive/interveneRecord/index.vue | 20 +++++++-
src/views/archive/warnRecord/index.vue | 19 ++++++++
src/views/scale/SysScalePublish/index.vue | 19 ++++----
4 files changed, 94 insertions(+), 15 deletions(-)
diff --git a/src/views/archive/information/index.vue b/src/views/archive/information/index.vue
index d55c459..234f61b 100644
--- a/src/views/archive/information/index.vue
+++ b/src/views/archive/information/index.vue
@@ -4,12 +4,12 @@
:leave-active-class="proxy?.animate.searchAnimate.leave">
-
-
+
-
-
+
@@ -134,7 +134,19 @@
-
+
+
+ {{ handleSituation(scope.row.situation) }}
+
+
+
+
+
+ 导出
+
+
+
@@ -188,6 +200,7 @@ const dialog = reactive({
});
const activeName = ref('static')
+const current = ref({ userId: '', nickName: '' })
const tableData = [
{
@@ -212,6 +225,20 @@ const tableData = [
},
]
+function handleSituation(situation: any) {
+ if (situation == 1) {
+ return '未见异常'
+ } else if (situation == 2) {
+ return '低风险'
+ } else if (situation == 3) {
+ return '中风险'
+ } else if (situation == 4) {
+ return '高风险'
+ } else {
+ return '重大风险'
+ }
+}
+
const initFormData: any = {
}
@@ -281,6 +308,11 @@ const staticList = ref([])
const handleUpdate = async (row?: any) => {
reset();
staticQuery.value.userId = row.userId;
+
+ current.value.userId = row.userId
+ current.value.nickName = row.nickName
+
+
getStaticList()
// const _warnId = row?.warnId || ids.value[0]
@@ -314,6 +346,15 @@ const submitForm = () => {
});
}
+function handleExport(row: any) {
+ proxy?.download('scale/evaluation/record/export', {
+ scaleId: row.scaleId,
+ scaleName: row.scaleName,
+ recordId: row.recordId,
+ userId: current.value.userId,
+ nickName: current.value.nickName
+ }, `${current.value.nickName}.docx`)
+}
onMounted(() => {
getList();
diff --git a/src/views/archive/interveneRecord/index.vue b/src/views/archive/interveneRecord/index.vue
index 6fdda32..a5094f8 100644
--- a/src/views/archive/interveneRecord/index.vue
+++ b/src/views/archive/interveneRecord/index.vue
@@ -35,7 +35,11 @@
-
+
+
+ {{ handleSituation(scope.row.situation) }}
+
+
@@ -161,6 +165,20 @@ const data = reactive>({
const { queryParams, form, rules } = toRefs(data);
+function handleSituation(situation: any) {
+ if (situation == 1) {
+ return '未见异常'
+ } else if (situation == 2) {
+ return '低风险'
+ } else if (situation == 3) {
+ return '中风险'
+ } else if (situation == 4) {
+ return '高风险'
+ } else {
+ return '重大风险'
+ }
+}
+
/** 查询预警记录列表 */
const getList = async () => {
loading.value = true;
diff --git a/src/views/archive/warnRecord/index.vue b/src/views/archive/warnRecord/index.vue
index 582b031..ae23441 100644
--- a/src/views/archive/warnRecord/index.vue
+++ b/src/views/archive/warnRecord/index.vue
@@ -37,6 +37,11 @@
+
+
+ {{ handleSituation(scope.row.situation) }}
+
+
@@ -205,6 +210,20 @@ const resetQuery = () => {
const resultList = ref([])
const currentResult = ref([])
+function handleSituation(situation: any) {
+ if (situation == 1) {
+ return '未见异常'
+ } else if (situation == 2) {
+ return '低风险'
+ } else if (situation == 3) {
+ return '中风险'
+ } else if (situation == 4) {
+ return '高风险'
+ } else {
+ return '重大风险'
+ }
+}
+
const activeTab = ref('')
/** 修改按钮操作 */
const handleUpdate = async (row?: WarnRecordVO) => {
diff --git a/src/views/scale/SysScalePublish/index.vue b/src/views/scale/SysScalePublish/index.vue
index 4b2839c..2674e2a 100644
--- a/src/views/scale/SysScalePublish/index.vue
+++ b/src/views/scale/SysScalePublish/index.vue
@@ -4,16 +4,16 @@
:leave-active-class="proxy?.animate.searchAnimate.leave">
-
-
-
-
+
-
-
+
+
+
+
@@ -35,7 +35,7 @@
-
+
{{ parseTime(scope.row.expireTime, '{y}-{m}-{d}') }}
@@ -60,7 +60,8 @@
-
+
查看测评结果