From b2cc0b207328ab1058f955b2e61789ba821b1704 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期六, 04 一月 2025 18:09:01 +0800 Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peisweb --- src/components/jianceResult/index.vue | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/jianceResult/index.vue b/src/components/jianceResult/index.vue index 24e0585..07bec52 100644 --- a/src/components/jianceResult/index.vue +++ b/src/components/jianceResult/index.vue @@ -45,30 +45,32 @@ }, methods: { handleOk() { - this.open = false + if(this.list.length == 0) { + this.$modal.msgError("璇烽�夋嫨鑷冲皯涓�椤癸紒"); + return + } else{ + this.open = false this.$emit('add', this.list); + } + }, handleQuery() { this.getList(); }, handleSelectionChange(selection) { - if (selection.length > 1) { - // 濡傛灉閫夋嫨浜嗗琛岋紝淇濈暀鏈�鍚庝竴琛� - this.$refs.elTable.clearSelection(); // 娓呯┖鎵�鏈夐�夋嫨 - this.$refs.elTable.toggleRowSelection(selection[selection.length - 1]); // 閲嶆柊閫夋嫨鏈�鍚庝竴椤� - } - - // 鑾峰彇鏈�鍚庨�夋嫨鐨勮 - this.list = [selection[selection.length - 1]]; + this.list = selection }, getList() { this.loading = true; selectZT({ proId: this.proId }).then((res) => { - if (res.data) { + if (res.data.length>0) { + this.open = true this.dataList = res.data; this.loading = false; + } else { + this.open = false } }); }, -- Gitblit v1.8.0