From 5ef05323eeaee6840ee92adb27eed2836d70dadd Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Tue, 2 Nov 2021 10:45:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home.vue | 73 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 66 insertions(+), 7 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 046cf56..dcd1582 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -16,8 +16,9 @@
@@ -29,7 +30,12 @@ :header-cell-style="headClass" :stripe="true" header-align="center" + @selection-change="handleSelectionChange" > + + @@ -93,6 +99,7 @@ export default { currentPage: 1, systemId: this.$route.query.systemId, systemName: this.$route.query.systemName, + multipleSelection:[], }; }, components: {quill}, @@ -152,6 +159,56 @@ export default { console.log(err); }); }, + // + handleSelectionChange(val){ + console.log(val) + this.multipleSelection = val; + }, + //批量删除 + deletes(){ + let bcIdList = []; + let nameList =[]; + let lcIdList = []; + for(var i=0;i { + if (this.systemId == 11) { + // 交易类 + this.$post(`${this.api.deleteJudgmentPoint}?ids=${lcIdList}`).then(res => { + if (res.status === 200) { + this.$message.success("删除成功"); + this.initData(); + } else { + this.$message.error(res.message); + } + }).catch(err => { + console.log(err); + }); + } else { + // 编程类 + this.$post(`${this.api.bcDeleteJudgmentPoint}?ids=${bcIdList}`).then(res => { + if (res.status === 200) { + this.$message.success("删除成功"); + this.initData(); + } else { + this.$message.error(res.message); + } + }).catch(err => { + console.log(err); + }); + } + }).catch(() => { + this.$message.info("已取消删除"); + }); + }, getProgrammingClassData(params) { // 获取编程类判分点列表数据 this.$post(this.api.getBcJudgmentPoint, params).then(res => { this.tableData = res.message.records; @@ -381,14 +438,15 @@ export default { .button { height: 30px; - width: 80px; - margin-top: 7px; + //width: 80px; + margin: 7px; border: none; background-color: #9278ff; color: #ffffff; border-radius: 20px; - position: absolute; - right: 30px; + float: right; + //position: absolute; + //right: 30px; } .button:focus { @@ -402,6 +460,7 @@ export default { } .header { + display: flex; background-color: #ffffff; height: 50px; font-size: 12px; @@ -422,12 +481,12 @@ export default { } .flex { - display: flex; + //display: flex; justify-content: flex-start; } .flex-end { - display: flex; + //display: flex; justify-content: flex-end; }