From 0d27c826c71c323ff605cd27a53bbc5a0c96f752 Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期四, 05 六月 2025 15:18:37 +0800 Subject: [PATCH] 修改文件名称展示效果 修改文件对应页签展示 --- src/views/dnc/base/modules/ProductStructure/Document/NcDocumentSearchModal.vue | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/views/dnc/base/modules/ProductStructure/Document/NcDocumentSearchModal.vue b/src/views/dnc/base/modules/ProductStructure/Document/NcDocumentSearchModal.vue index e1acbe1..721a35f 100644 --- a/src/views/dnc/base/modules/ProductStructure/Document/NcDocumentSearchModal.vue +++ b/src/views/dnc/base/modules/ProductStructure/Document/NcDocumentSearchModal.vue @@ -1,3 +1,8 @@ +<!-- + Description: 妫�绱㈢數瀛愭牱鏉縇ist + Author: 浣滆�� liuyh + Date: 2025-02-27 +--> <template> <a-modal width="75%" :title="title" :visible="visible" @cancel="visible=false" :maskClosable="false" centered @ok="handleAssignDocumentToDevice"> @@ -39,7 +44,7 @@ </a-form-item> </a-col> - <a-col :md="4" :sm="4"> + <a-col :md="2" :sm="2"> <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button> </a-col> </a-row> @@ -52,6 +57,10 @@ @change="handleTableChange" :scroll="{y:456}" :size="size" rowKey="docId"> + <!-- 瀛楃涓茶秴闀挎埅鍙栫渷鐣ュ彿鏄剧ず--> + <span slot="docName" slot-scope="text"> + <j-ellipsis :value="text"/> + </span> </a-table> </a-tab-pane> </a-tabs> @@ -153,6 +162,7 @@ dataIndex: 'docName', key: 'docName', align: 'center', + scopedSlots: { customRender: 'docName' }, width: 200, sorter: true }, @@ -168,11 +178,11 @@ ] }, { - title: '鐘� 鎬�', + title: '鐘� 鎬�', dataIndex: 'docDispatchStatus_dictText', key: 'docDispatchStatus', align: 'center', - width: 60, + width: 80, filters: [ { text: '缂栧埗', value: 1 }, { text: '鏍″', value: 2 }, @@ -476,6 +486,11 @@ this.filters = {} this.isorter = Object.assign({}, this.defaultSorter) }, + + handleDelete() { + // 姝ゅ鍑芥暟涓哄睆钄絤ixins涓殑鍚屽悕鍑芥暟锛岄�氱敤鍑芥暟鍐欏湪鐖剁骇涓� + }, + triggerCorrespondingMethod({ methodName, modalTitle }) { if (this[methodName]) { this[methodName]() @@ -488,6 +503,10 @@ <style scoped lang="less"> /deep/ .ant-modal { + .ant-modal-body{ + padding: 0 24px 12px; + } + .tabs-container { display: flex; justify-content: space-between; -- Gitblit v1.9.3