From 29445c7db9ae9df15d08646aebd5818edf5ec49b Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期三, 18 十月 2023 09:51:00 +0800 Subject: [PATCH] style: 去除所有表格复选框;添加序号列 --- src/views/reportForm/locationReport/index.vue | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/views/reportForm/locationReport/index.vue b/src/views/reportForm/locationReport/index.vue index 5e7bdd5..8ec2a0d 100644 --- a/src/views/reportForm/locationReport/index.vue +++ b/src/views/reportForm/locationReport/index.vue @@ -21,6 +21,7 @@ :table-list="tableList" @selTableCol="selTableCol" @tableRowClick="tableRowClick" + :showSummary="true" > <template slot="tableButton"> <el-table-column label="鎿嶄綔" width="210" align="center"> @@ -106,7 +107,8 @@ infomation: {} }, productId: this.$route.params.id, - productName: this.$route.params.name + productName: this.$route.params.name, + metaTitle: this.$route.meta.title } }, created() { @@ -117,7 +119,8 @@ setTable() { this.tableList = { tableInfomation: [], - selectBox: true, + selectBox: false, + selectIndex: true, showcol: this.showcol, countcol: this.countcol, allcol: [], @@ -178,7 +181,7 @@ prop: "unit", width: 120, default: false, - isShowColumn: showcol.includes("浠峰��") + isShowColumn: showcol.includes("鍗曚綅") }, { label: "浠峰��", @@ -202,7 +205,6 @@ pageSize: this.pagerOptions.pageSize }).then((res) => { if (res.code === 200) { - console.log(res.data, "鎺ュ彛璇锋眰鎴愬姛") const list = res.data this.tableList.tableInfomation = list || [] this.pagerOptions.totalCount = res.total @@ -232,7 +234,15 @@ return val === 1 ? "鑽夌" : val === 3 ? "灏辩华" : "瀹屾垚" }, // 鍘嗗彶 - handleHistoryClick() {}, + handleHistoryClick(row) { + this.$router.push({ + name: "inboundOutboundDetail", + params: { + id: row.produceId, + name: "鎶ヨ〃" + } + }) + }, // 琛ヨ揣 handleAddGoods() {} } -- Gitblit v1.8.0