From cd09bed74c2b40d46f4391b4fe3fcd0c43c725f7 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 10 十二月 2024 11:10:03 +0800 Subject: [PATCH] pointList2 --- src/views/data/point/DaPointForm.vue | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/src/views/data/point/DaPointForm.vue b/src/views/data/point/DaPointForm.vue index 12536e0..5f502a6 100644 --- a/src/views/data/point/DaPointForm.vue +++ b/src/views/data/point/DaPointForm.vue @@ -292,7 +292,7 @@ filterable placeholder="请选择"> <el-option - v-for="(item, index) in pointList" + v-for="(item, index) in pointList2" :key="index" :label="item.pointName" :value="item.pointNo"/> @@ -343,6 +343,13 @@ }]) const queryParams = reactive({ pointTypes: "MEASURE,CONSTANT", +}) +const pointList2 = ref([{ + pointName: '', + pointNo: '' +}]) +const queryParams2 = reactive({ + pointTypes: "MEASURE,CONSTANT,CALCULATE", }) const operatorList = ref(['+', '-', '*', '/', '&', '|', '!', '>', '<']) const formData = ref({ @@ -405,6 +412,7 @@ resetForm() getSourceOption() getPointList() + getPointList2() // 修改时,设置数据 if (id) { formLoading.value = true @@ -577,6 +585,10 @@ pointList.value = await DaPoint.getPointList(queryParams) } +const getPointList2 = async () => { + pointList2.value = await DaPoint.getPointList(queryParams2) +} + const getInfo = async (id) => { formData.value = await DaPoint.getDaPoint(id) expressionList.value = [] -- Gitblit v1.9.3