From 6cfff55d44314e88fefd6e3adb290ec16b303f89 Mon Sep 17 00:00:00 2001 From: 黎星凯 <13949086503@163.com> Date: 星期五, 05 一月 2024 10:42:53 +0800 Subject: [PATCH] 1、供产品导数据临时用(用户,机构,部门,仓库,库管员 可删) 2、选择库管员增加过滤参数 --- admin-web/src/components/myTable/myTableV2.vue | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/admin-web/src/components/myTable/myTableV2.vue b/admin-web/src/components/myTable/myTableV2.vue index 47b61b2..fe8f738 100644 --- a/admin-web/src/components/myTable/myTableV2.vue +++ b/admin-web/src/components/myTable/myTableV2.vue @@ -33,7 +33,7 @@ <el-button size="mini" type="default" @click="visible = false">鍙栨秷</el-button> <el-button type="primary" size="mini" @click="_export_">纭畾</el-button> </div> - <my-button v-if="myTable.tools.generalExport.show" slot="reference" site="tools" name="瀵煎嚭" /> + <my-button v-if="myTable.tools.generalExport.show" slot="reference" site="tools" name="瀵煎嚭" style="margin-bottom: 15px"/> </el-popover> <!--鍒楁帶鍒�--> @@ -97,6 +97,7 @@ :label="column.title" :type="column.type" :width="column.width" + :fixed="column.fixed" :min-width="column.minWidth" :align="column.align" :header-align="column.align" @@ -197,6 +198,7 @@ import mySwitch from '@/components/mySwitch/mySwitch' import request from '@/utils/request' import * as valid from '@/utils/validate' + export default { components: { myButton, mySwitch }, props: { @@ -250,6 +252,7 @@ myTable: { url: '', params: {}, + autoLoad: true, border: false, showIndex: true, // 鏄惁鏄剧ず搴忓彿 expand: true, // 鏄惁鏄剧ず璇︽儏鏁版嵁 @@ -346,9 +349,11 @@ total: 0 }) } - this.$nextTick(() => { - this.search({ pageNum: 1 }) - }) + if (this.myTable.autoLoad) { + this.$nextTick(() => { + this.search({pageNum: 1}) + }) + } this.myTable.columns.forEach((column, idx) => { if (!column.hidden) { this.checkColumns.push(idx) @@ -627,6 +632,8 @@ color: #303133; font-weight: 700; margin-top: 10px; + display: flex; + justify-content: flex-end; } .el-radio { margin-right: 10px; -- Gitblit v1.9.1