From a40d8462edbf25418207d2ec212e15d3d15ce9dd Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期一, 31 三月 2025 17:36:58 +0800 Subject: [PATCH] art: 设备管理-保养标准-明细项展示 --- src/views/dnc/base/modules/DeviceStructure/Document/HasSentDocumentTableList.vue | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/dnc/base/modules/DeviceStructure/Document/HasSentDocumentTableList.vue b/src/views/dnc/base/modules/DeviceStructure/Document/HasSentDocumentTableList.vue index c517cac..c1d74bd 100644 --- a/src/views/dnc/base/modules/DeviceStructure/Document/HasSentDocumentTableList.vue +++ b/src/views/dnc/base/modules/DeviceStructure/Document/HasSentDocumentTableList.vue @@ -1,7 +1,7 @@ <template> <div> - <a-table :columns="columns" :data-source="dataSource" bordered :pagination="ipagination" - :scroll="{y:189}" :customRow="customRow" :size="size" rowKey="docId" @change="handleTableChange"> + <a-table :columns="columns" :data-source="dataSource" bordered :pagination="ipagination" :loading="loading" + :scroll="{y:265}" :customRow="customRow" :size="size" rowKey="docId" @change="handleTableChange"> </a-table> @@ -21,6 +21,9 @@ props: { currentTreeNodeInfo: { type: Object + }, + currentTypeOfDevice:{ + type:Number }, size: { type: String @@ -119,7 +122,7 @@ var params = this.getQueryParams()//鏌ヨ鏉′欢 console.log('currentTreeNodeInfo', this.currentTreeNodeInfo) params.attributionId = this.currentTreeNodeInfo.key - params.attributionType = 4 + params.attributionType = this.currentTypeOfDevice params.docClassCode = 'SEND' if (!params) return false this.dataSource = [] @@ -142,6 +145,9 @@ customRow(record) { return { + style: { + backgroundColor: this.currentClickedDocumentInfo.docId === record.docId ? '#BAE7FF' : 'transparent' + }, on: { contextmenu: event => { event.preventDefault() @@ -179,6 +185,7 @@ }, handleDocumentEdit(record, modalTitle) { + if (!this.$refs.modalForm) return this.$refs.modalForm.edit(record) this.$refs.modalForm.title = modalTitle }, -- Gitblit v1.9.3