From 62da7cf7895b41663a0b1c2184291c9324ef7a29 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 08 五月 2025 15:42:46 +0800
Subject: [PATCH] 客户档案页面开发
---
src/views/basicData/customerFile/index.vue | 3 ++-
src/components/PIMTable/PIMTable.vue | 17 +++++++++++++----
2 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/src/components/PIMTable/PIMTable.vue b/src/components/PIMTable/PIMTable.vue
index c76cf45..429e26a 100644
--- a/src/components/PIMTable/PIMTable.vue
+++ b/src/components/PIMTable/PIMTable.vue
@@ -2,7 +2,7 @@
<el-table ref="multipleTable" v-loading="tableLoading" :border="border" :data="tableData"
:header-cell-style="{ background: '#F0F1F5', color: '#333333' }" height="calc(100vh - 18.5em)"
:highlight-current-row="highlightCurrentRow" :row-class-name="rowClassName" :row-style="rowStyle"
- :row-key="rowKey" stripe style="width: 100%" tooltip-effect="dark" @row-click="rowClick"
+ :row-key="rowKey" style="width: 100%" tooltip-effect="dark" @row-click="rowClick"
@current-change="currentChange" @selection-change="handleSelectionChange" class="lims-table">
<el-table-column align="center" type="selection" width="55" />
<el-table-column align="center" label="搴忓彿" type="index" width="60" />
@@ -10,9 +10,8 @@
<el-table-column v-for="(item, index) in column" :key="index" :column-key="item.columnKey"
:filter-method="item.filterHandler" :filter-multiple="item.filterMultiple" :filtered-value="item.filteredValue"
:filters="item.filters" :fixed="item.fixed" :label="item.label" :prop="item.prop"
- :show-overflow-tooltip="!(item.dataType === 'action' || item.dataType === 'slot')"
- :min-width="item.dataType == 'action' ? btnWidth : item.width"
- :sortable="!!item.sortable" :type="item.type" :width="item.dataType == 'action' ? btnWidth : item.width" align="center">
+ show-overflow-tooltip :align="item.align"
+ :sortable="!!item.sortable" :type="item.type" :width="item.width">
<template v-if="item.hasOwnProperty('colunmTemplate')" #[item.colunmTemplate]="scope">
<slot v-if="item.theadSlot" :name="item.theadSlot" :index="scope.$index" :row="scope.row" />
</template>
@@ -275,4 +274,14 @@
</script>
<style scoped lang="scss">
+>>>.cell {
+ padding: 0 !important;
+}
+.cell {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ padding-right: 0 !important;
+ padding-left: 0 !important;
+}
</style>
\ No newline at end of file
diff --git a/src/views/basicData/customerFile/index.vue b/src/views/basicData/customerFile/index.vue
index 1a2b476..6bfd099 100644
--- a/src/views/basicData/customerFile/index.vue
+++ b/src/views/basicData/customerFile/index.vue
@@ -105,7 +105,7 @@
const tableColumn = ref([
{
label: '瀹㈡埛鍚嶇О',
- prop: 'customerName'
+ prop: 'customerName',
},
{
label: '绾崇◣浜鸿瘑鍒爜',
@@ -134,6 +134,7 @@
{
dataType: "action",
label: "鎿嶄綔",
+ align: 'center',
operation: [
{
name: "缂栬緫",
--
Gitblit v1.9.3