From 1675a5af316d0a2503ad2f7885a42b4a04b0dc86 Mon Sep 17 00:00:00 2001
From: caozehui <2427765068@qq.com>
Date: Mon, 17 Mar 2025 14:33:19 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../testScript/components/testScriptPopup.vue | 39 ++++++++++++++-----
1 file changed, 30 insertions(+), 9 deletions(-)
diff --git a/frontend/src/views/machine/testScript/components/testScriptPopup.vue b/frontend/src/views/machine/testScript/components/testScriptPopup.vue
index 0480299..6827808 100644
--- a/frontend/src/views/machine/testScript/components/testScriptPopup.vue
+++ b/frontend/src/views/machine/testScript/components/testScriptPopup.vue
@@ -13,17 +13,23 @@
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
@@ -100,6 +106,8 @@ const modeId = ref()
const show = ref(false)
const height = ref('125px')
const router = useRouter()
+const standardNameList = reactive<{id:string,label: string, value: string}[]>([])
+const standardTimeList = reactive>([])
const secondLevelOptions: any[] = []
// 定义弹出组件元信息
@@ -166,6 +174,15 @@ const close = () => {
// 关闭信息弹框
const closeInformation = () => {}
+const setStandardTimeList = ()=>{
+ let checkStandard = standardNameList.find(item => item.label === formContent.value.standardName)
+ if (checkStandard) {
+ standardTimeList.push(...checkStandard.value.split(','))
+ } else {
+ standardTimeList.push('2016', '2017', '2018', '2019', '2020', '2021', '2022', '2023', '2024', '2025')
+ }
+}
+
// 保存数据
const save = () => {
// dialogFormRef
@@ -197,6 +214,10 @@ const save = () => {
// 打开弹窗,可能是新增,也可能是编辑
const open = async (title: string, row: any) => {
+ dictStore.getDictData("Script_Standard_Name").forEach(item => {
+ standardNameList.push({id: item.id, label: item.name, value: item.value})
+ })
+
titleType.value = title
if (title == '新增检测脚本') {
show.value = false