From d1c6668f595d249a5956eef0fa1abcc7097d8827 Mon Sep 17 00:00:00 2001 From: zhangkaiios <499473442@qq.com> Date: Tue, 4 Nov 2025 15:15:46 +0800 Subject: [PATCH] =?UTF-8?q?UI=E5=8F=8Abug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/layout.less | 4 +- src/component/lib/ATableEllipsisDefault.js | 23 ++++++++++ src/component/query/src/index.vue | 2 +- src/component/table/src/index.vue | 44 +++++++++++++++---- src/main.js | 3 ++ src/view/config/index.vue | 4 +- src/view/inbox/index.vue | 2 +- src/view/job/index.vue | 2 +- src/view/oss/index.vue | 2 +- src/view/wms/baseInfo/customer/index.vue | 4 +- src/view/wms/baseInfo/deliverType/index.vue | 4 +- src/view/wms/baseInfo/request/index.vue | 4 +- src/view/wms/baseInfo/sku/index.vue | 4 +- src/view/wms/baseInfo/skuCategory/index.vue | 4 +- .../check/addCheckDetail/addCheckDetail.vue | 2 +- .../wms/billsInfo/check/checkPlt/checkPlt.vue | 4 +- src/view/wms/billsInfo/check/index.vue | 4 +- .../wms/billsInfo/check/modal/checkDetail.vue | 4 +- .../addInBillDetail/addInBillDetail.vue | 4 +- src/view/wms/billsInfo/inBill/index.vue | 4 +- .../billsInfo/inBill/modal/inBillDetail.vue | 4 +- .../addOutBillDetail/addOutBillDetail.vue | 2 +- src/view/wms/billsInfo/outBill/index.vue | 4 +- .../billsInfo/outBill/modal/outBillDetail.vue | 4 +- src/view/wms/billsInfo/outBill/pick/pick.vue | 6 +-- .../locView/modal/palletInfoModel.vue | 2 +- src/view/wms/realTimeMonitor/task/index.vue | 4 +- .../wms/realTimeMonitor/taskLog/index.vue | 4 +- src/view/wms/report/base/index.vue | 4 +- src/view/wms/report/compoents/table.vue | 4 +- src/view/wms/statistics/inventory/index.vue | 2 +- .../wms/stockInfo/getTallyPallet/index.vue | 4 +- .../wms/stockInfo/inventoryView/index.vue | 4 +- src/view/wms/stockInfo/pallet/index.vue | 2 +- .../stockInfo/pallet/modal/palletDetail.vue | 4 +- src/view/wms/stockInfo/palletLog/index.vue | 4 +- src/view/wms/warehouse/channel/index.vue | 4 +- src/view/wms/warehouse/list/index.vue | 4 +- src/view/wms/warehouse/loc/index.vue | 2 +- src/view/wms/warehouse/locExit/index.vue | 4 +- src/view/wms/warehouse/outbound/index.vue | 4 +- src/view/wms/warehouse/plan/index.vue | 4 +- src/view/wms/warehouse/seqNum/index.vue | 4 +- src/view/wms/warehouse/sn/index.vue | 4 +- src/view/wms/warehouse/snHis/index.vue | 4 +- src/view/wms/warehouse/snNoPlan/index.vue | 4 +- .../warehouse/statistics/inventory/index.vue | 14 +++--- .../warehouse/statistics/skuNeed/index.vue | 12 ++--- src/view/wms/warehouse/track/index.vue | 4 +- 49 files changed, 152 insertions(+), 102 deletions(-) create mode 100644 src/component/lib/ATableEllipsisDefault.js diff --git a/src/assets/css/layout.less b/src/assets/css/layout.less index de87522..57f831f 100644 --- a/src/assets/css/layout.less +++ b/src/assets/css/layout.less @@ -341,7 +341,7 @@ html { .fixedHeader.muiltTab { z-index: 600; #content { - height: calc(~"(100% - 51px)"); + height: calc(~"(100% - 38px)"); -ms-overflow-style: none; overflow: -moz-scrollbars-none; } @@ -433,4 +433,4 @@ html { overflow: hidden; display: flex; flex-direction: column; -} \ No newline at end of file +} diff --git a/src/component/lib/ATableEllipsisDefault.js b/src/component/lib/ATableEllipsisDefault.js new file mode 100644 index 0000000..f34e43f --- /dev/null +++ b/src/component/lib/ATableEllipsisDefault.js @@ -0,0 +1,23 @@ +import { h, defineComponent } from 'vue'; +import { Table } from '@hwork/ant-design-vue'; + +function patchColumns(cols) { + if (!Array.isArray(cols)) return cols; + return cols.map((col) => { + if (!col) return col; + const next = { ...col }; + if (next.ellipsis === undefined) next.ellipsis = true; + if (Array.isArray(next.children)) next.children = patchColumns(next.children); + return next; + }); +} + +export default defineComponent({ + name: 'ATable', + inheritAttrs: false, + setup(_, { attrs, slots }) { + const patchedColumns = patchColumns(attrs.columns); + return () => h(Table, { ...attrs, columns: patchedColumns }, slots); + }, +}); + diff --git a/src/component/query/src/index.vue b/src/component/query/src/index.vue index 3eb905f..8105ba8 100644 --- a/src/component/query/src/index.vue +++ b/src/component/query/src/index.vue @@ -71,7 +71,7 @@ export default defineComponent({ const generateFormState = array => { array.length > 0 && array.forEach(it => { const {key, rules = [], value,defaultValue} = it - formState[key] = defaultValue || (value === undefined ? "" : value); + formState[key] = defaultValue || (it.type !== 'select' && value === undefined ? "" : value); formRules[key] = rules }) } diff --git a/src/component/table/src/index.vue b/src/component/table/src/index.vue index 5e5ba1e..6e88bae 100644 --- a/src/component/table/src/index.vue +++ b/src/component/table/src/index.vue @@ -95,7 +95,7 @@ @@ -155,12 +155,12 @@ - + - +