From a83b4746f922e23521fcda46664cfaac3ad6314d Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Fri, 21 Oct 2022 15:20:09 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E6=9D=9F=E6=8A=95=E7=A5=A8&bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/electionAdd.vue | 15 ++++++++-------
.../components/electionList.vue | 17 ++++++++++++++++-
2 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/project/pingchang/apps/AppGeneralElection/components/electionAdd.vue b/project/pingchang/apps/AppGeneralElection/components/electionAdd.vue
index 3cbe1124..b6109b6b 100644
--- a/project/pingchang/apps/AppGeneralElection/components/electionAdd.vue
+++ b/project/pingchang/apps/AppGeneralElection/components/electionAdd.vue
@@ -1,13 +1,13 @@
-
+
- 修改
+ 修改
@@ -45,7 +45,7 @@
-
+
@@ -120,7 +120,7 @@
-
+
@@ -183,12 +183,9 @@ export default {
chooseVoteList: [],
}
},
- computed: {
- },
created() {
if(this.params && this.params.id) {
this.id = this.params.id
- this.isEdit = this.params.isEdit
this.getDetail()
}
},
@@ -199,6 +196,10 @@ export default {
isRefresh: !!isRefresh
})
},
+ update() {
+ this.isEdit = true
+ this.getDetail()
+ },
getDetail() {
this.instance.post(`/app/appgeneralelectioninfo/queryDetailById`,null, {
params: {id:this.id}
diff --git a/project/pingchang/apps/AppGeneralElection/components/electionList.vue b/project/pingchang/apps/AppGeneralElection/components/electionList.vue
index 8f1a7d8e..c14fa5df 100644
--- a/project/pingchang/apps/AppGeneralElection/components/electionList.vue
+++ b/project/pingchang/apps/AppGeneralElection/components/electionList.vue
@@ -17,8 +17,10 @@
- 编辑
+
详情
+ 结束
+ 统计
删除
@@ -106,6 +108,19 @@ export default {
}
this.getList()
},
+ // 开始结束
+ startEnd(id, status) {
+ this.$confirm('投票正在进行中,确定要提前结束吗?').then(() => {
+ this.instance.post(`/app/appgeneralelectioninfo/start-end?id=${id}&start=${status}`).then(res=>{
+ if(res.code == 0) {
+ this.$message.success('结束成功')
+ this.getList()
+ }
+ })
+ })
+ },
+ // 统计
+ toStatistics() {},
}
}