From d68b036a3b3c67273b8effa3c9925ef3869a91ba Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 07 二月 2024 13:56:50 +0800 Subject: [PATCH] wms项目 wms系统参数设置的页面开发+路由+是否显示表头配置 --- src/views/warehouseManage/warehouse/index.vue | 32 +++++++++++++++++++++++++------- 1 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/views/warehouseManage/warehouse/index.vue b/src/views/warehouseManage/warehouse/index.vue index ced4d42..03e589f 100644 --- a/src/views/warehouseManage/warehouse/index.vue +++ b/src/views/warehouseManage/warehouse/index.vue @@ -15,8 +15,26 @@ ref="tableListRef" :table-list="tableList" :show-checkcol="false" - @tableRowClick="tableRowClick" - ></TableCommonView> + > + <template slot="tableButton"> + <el-table-column label="鎿嶄綔" width="120" fixed="right"> + <template slot-scope="scope"> + <el-button + @click="tableRowClick(scope.row,'edit')" + type="text" + size="small" + >缂栬緫</el-button + > + <el-button + type="text" + size="small" + @click="tableRowClick(scope.row,'look')" + >鏌ョ湅</el-button + > + </template> + </el-table-column> + </template> + </TableCommonView> </div> <div class="btn-pager"> <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" /> @@ -107,10 +125,10 @@ page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize }).then((res) => { - if (res.data.code == 200) { - const list = res.data.data?res.data.data:[] + if (res.code == 200) { + const list = res.data?res.data:[] this.tableList.tableInfomation = list - this.pagerOptions.totalCount = res.data.total + this.pagerOptions.totalCount = res.total } }) }, @@ -125,8 +143,8 @@ this.getData() }, // 琛岀偣鍑� - tableRowClick(row) { - this.editConfig.title = "缂栬緫" + tableRowClick(row,val) { + this.editConfig.title = val=='look'?'鏌ョ湅':"缂栬緫" this.editConfig.infomation = { ...row } this.editConfig.visible = true }, -- Gitblit v1.8.0