From bb944df3b736b983c6a26be8bcc50dac079b9c7e Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期日, 28 四月 2024 14:36:58 +0800 Subject: [PATCH] 产品报表 前端增加庄口的筛选+获取庄口数据的接口联调 --- src/views/reportManage/productionReport/index.vue | 36 ++++++++++++++++++++++++++++++++---- 1 files changed, 32 insertions(+), 4 deletions(-) diff --git a/src/views/reportManage/productionReport/index.vue b/src/views/reportManage/productionReport/index.vue index 4b7aa28..8ee0aa1 100644 --- a/src/views/reportManage/productionReport/index.vue +++ b/src/views/reportManage/productionReport/index.vue @@ -8,9 +8,9 @@ @searchClick="onFilterSearch" > <template slot="leftButton"> - <el-select + <!-- <el-select v-model="marketId" - placeholder="璇烽�夋嫨" + placeholder="璇烽�夋嫨搴勫彛" class="select-width margin_right_10px" multiple collapse-tags @@ -22,7 +22,21 @@ :value="item.ID" > </el-option> - </el-select> + </el-select> --> + <el-cascader + v-model="marketId" + placeholder="璇烽�夋嫨" + class="select-width margin_right_10px" + :options="marketList" + :show-all-levels="false" + collapse-tags + :props="{ + multiple:true, + value:'ID', + label:'name' + }" + > + </el-cascader> <el-button size="small" type="primary" @click="exportBtnClick" >瀵煎嚭</el-button > @@ -108,7 +122,21 @@ dictType: 0, }).then((res) => { if (res.code == 200) { - this.marketList = res.data || []; + if(res.data&&res.data.length>0){ + this.marketList = [ + { + ID:0, + name:'鍏ㄩ儴', + children:res.data||[] + } + ] + this.marketId=[]; + for(let i in res.data){ + this.marketId.push([0,res.data[i].ID]) + } + + } + } }); }, -- Gitblit v1.8.0