From ec4fde8ec0f6e14a1393398df91922626a2a0829 Mon Sep 17 00:00:00 2001 From: qingzhengli <1204552371@qq.com> Date: Tue, 20 Feb 2024 11:46:35 +0800 Subject: [PATCH] =?UTF-8?q?add=20=20=E8=AE=BE=E5=A4=87=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E4=B8=8B=E6=8B=89=E6=A1=86(=E9=9D=99?= =?UTF-8?q?=E6=80=81=20=E6=9A=82=E6=97=A0=E5=80=9F=E5=8F=A3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/README.md | 5 ++++ .../Home/components/HomeFilter/index.vue | 27 +++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/ruoyi-ui/README.md b/ruoyi-ui/README.md index 43915e09..8f09f38e 100644 --- a/ruoyi-ui/README.md +++ b/ruoyi-ui/README.md @@ -177,4 +177,9 @@ export const additionalNotes = { autosize: { minRows: 6, maxRows: 6 }, showWordLimit: true, }, + visible: data => { //现隐控制 + if (data.searchType == 1) { + return true + } + }, }; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFilter/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFilter/index.vue index 760e2c83..d2dc382d 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFilter/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFilter/index.vue @@ -30,6 +30,7 @@ import Button from '@screen/components/Buttons/Button.vue'; import Form from '@screen/components/FormConfig'; import * as PresetFormItems from "@screen/pages/control/event/event/FormEvent/PresetFormItems.js"; import { merge, cloneDeep } from "lodash" +import request from "@/utils/request"; export default { name: 'HomeFilter', @@ -109,6 +110,19 @@ export default { ], }, }), + { + label: "设备类型:", + key: "deviceType", + type: "select", + options: { + options: [] + }, + // visible: data => { + // if (data.searchType == 1) { + // return true + // } + // }, + }, ] } }, @@ -132,7 +146,20 @@ export default { if (!data.endStakeMark[0] || !data.endStakeMark[1]) delete data.endStakeMark; this.filterEnd(data) + }, + async getDeviceTypeOptions() { + // try { + // await request({ + // url: `/business/employees/organization`, + // method: "POST", + // data: {}, + // }); + // } catch (e) { console.error(e); } + // return ; } + }, + async created() { + // await this.getDeviceTypeOptions(); } }