From d7557c1681b2da87df6509b3faf5dc4cefac1da2 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期四, 19 十月 2023 13:45:30 +0800 Subject: [PATCH] Merge branch 'dev' into songshankun/adjust-style --- src/views/warehouseManage/warehouse/index.vue | 26 ++++++++++++++++++++++---- 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/views/warehouseManage/warehouse/index.vue b/src/views/warehouseManage/warehouse/index.vue index ced4d42..3cacba9 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" /> @@ -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