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() {},
}
}