From 0fbdc38690218b2e9af906c2ef080fa53444ae19 Mon Sep 17 00:00:00 2001 From: renpy Date: Fri, 8 Sep 2023 14:48:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4Load=20Data=20From=20File?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E4=B8=AD=EF=BC=8C=E6=A0=B9=E6=8D=AE=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=9A=84=E6=95=B0=E6=8D=AE=E7=8A=B6=E6=80=81=EF=BC=8C?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=AF=B9=E5=BA=94=E6=96=87=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E5=90=8D=E5=AD=97=E9=A2=9C=E8=89=B2=20=E5=A4=84=E7=90=86?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=A1=8C=EF=BC=8CfileName=E5=80=BC=E6=B2=A1?= =?UTF-8?q?=E7=A9=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Modals/LoadFromFileModal.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/views/spectrumAnalysis/components/Modals/LoadFromFileModal.vue b/src/views/spectrumAnalysis/components/Modals/LoadFromFileModal.vue index c6718e7..cb63499 100644 --- a/src/views/spectrumAnalysis/components/Modals/LoadFromFileModal.vue +++ b/src/views/spectrumAnalysis/components/Modals/LoadFromFileModal.vue @@ -17,17 +17,17 @@ --> @@ -232,11 +232,10 @@ export default { customRow(record, index) { const that = this; return { - // class: that.selectedRowKeys==record.id ? 'ant-table-row-selected' : '', on: { click: () => { - console.log("选中行",record.id); - that.selectedRowKeys.push( record.id) + that.selectedRowKeys.push(record.id) + this.selectedFiles.push(record.name) } } } @@ -381,7 +380,6 @@ export default { handleLoad() { this.visible = false this.$emit('loadFormFile', this.list) - // console.log('%c [ handleLoad ]-123', 'font-size:13px; background:pink; color:#bf2c9f;', this.list) }, handleCancel() { @@ -476,6 +474,9 @@ export default { height: 42px; line-height: 42px; } +.file-name-color{ + color: red; +} .file-ellipsis{ overflow: hidden; text-overflow: ellipsis;