From f6f8bd8f8885500233f0c0e64a21348b1017a610 Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期三, 31 一月 2024 14:11:16 +0800 Subject: [PATCH] 设备管理页面查询区域按照车间名称查询方式由输入改为树选择 --- src/views/mdc/base/EquipmentList.vue | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/views/mdc/base/EquipmentList.vue b/src/views/mdc/base/EquipmentList.vue index 279cd11..cee4b26 100644 --- a/src/views/mdc/base/EquipmentList.vue +++ b/src/views/mdc/base/EquipmentList.vue @@ -22,8 +22,8 @@ <a-col :md="6" :sm="8"> <a-form-item label="杞﹂棿鍚嶇О"> - <!--<a-input placeholder="璇疯緭鍏ヨ处鍙锋煡璇�" v-model="queryParam.username"></a-input>--> - <a-input placeholder="璇疯緭鍏ヨ溅闂村悕绉�" v-model="queryParam.productionName"></a-input> + <!--<a-input placeholder="璇疯緭鍏ヨ溅闂村悕绉�" v-model="queryParam.productionName"></a-input>--> + <a-tree-select v-model="queryParam.productionName" :treeData="workshopTreeData" placeholder="璇烽�夋嫨杞﹂棿" tree-default-expand-all></a-tree-select> </a-form-item> </a-col> @@ -148,6 +148,7 @@ import UserRecycleBinModal from './modules/EquipmentList/UserRecycleBinModal' import JSuperQuery from '@/components/jeecg/JSuperQuery' import JThirdAppButton from '@/components/jeecgbiz/thirdApp/JThirdAppButton' + import { queryProductionTreeList } from '@/api/api' import {mapActions} from 'vuex' export default { @@ -260,7 +261,8 @@ exportXlsUrl: "/mdc/mdcEquipment/exportXls", // importExcelUrl: "sys/user/importExcel", }, - isDepartType:'' + isDepartType:'', + workshopTreeData:[] } }, computed: { @@ -270,6 +272,7 @@ }, created() { this.queryTreeData() + this.getWorkshopListByApi() }, methods: { ...mapActions(['QueryDepartTree']), @@ -555,6 +558,12 @@ this.loadData() } }, + + getWorkshopListByApi(){ + queryProductionTreeList().then(res=>{ + if(res.success) this.workshopTreeData=res.result + }) + } } } -- Gitblit v1.9.3