From 9feea2f82cb21abf58643dcffd875b1ed6f1162b Mon Sep 17 00:00:00 2001 From: maven <2163098428@qq.com> Date: 星期二, 08 七月 2025 11:06:41 +0800 Subject: [PATCH] yys 1.新增入库查询 2.新增入库 3.入库分页查询 4.编辑 --- src/views/basicData/product/index.vue | 26 +++++++++++++++++++++----- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/src/views/basicData/product/index.vue b/src/views/basicData/product/index.vue index 506c1db..b17be1f 100644 --- a/src/views/basicData/product/index.vue +++ b/src/views/basicData/product/index.vue @@ -40,7 +40,13 @@ > <template #default="{ node, data }"> <div class="custom-tree-node"> - <span>{{ node.label }}</span> + <span class="tree-node-content"> + <el-icon class="orange-icon"> + <component :is="data.children && data.children.length > 0 + ? node.expanded ? 'FolderOpened' : 'Folder' : 'Tickets'" /> + </el-icon> + {{ data.label }} + </span> <div> <el-button type="primary" @@ -83,14 +89,14 @@ </el-button> </div> <PIMTable + rowKey="id" :column="tableColumn" :tableData="tableData" :page="page" :isSelection="true" - :handleSelectionChange="handleSelectionChange" + @selection-change="handleSelectionChange" :tableLoading="tableLoading" @pagination="pagination" - :total="total" ></PIMTable> </div> <el-dialog v-model="productDia" title="浜у搧" width="400px"> @@ -220,11 +226,11 @@ const tableData = ref([]); const tableLoading = ref(false); const isShowButton = ref(false); -const total = ref(0); const selectedRows = ref([]); const page = reactive({ current: 1, size: 10, + total: 0, }); const data = reactive({ form: { @@ -381,7 +387,7 @@ }).then((res) => { console.log("res", res); tableData.value = res.records; - total.value = res.total; + page.total = res.total; tableLoading.value = false; }); }; @@ -476,4 +482,14 @@ font-size: 14px; padding-right: 8px; } +.tree-node-content { + display: flex; + align-items: center; /* 鍨傜洿灞呬腑 */ + height: 100%; +} +.orange-icon { + color: orange; + font-size: 18px; + margin-right: 8px; /* 鍥炬爣涓庢枃瀛椾箣闂村姞鐐归棿璺� */ +} </style> -- Gitblit v1.9.3