结束投票&bug
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<section class="electionAdd">
|
||||
<ai-detail class="add" v-if="id && !isEdit">
|
||||
<ai-detail class="add" v-show="id && !isEdit">
|
||||
<template slot="title">
|
||||
<ai-title title="换届选举详情" isShowBack isShowBottomBorder @onBackClick="cancel(false)"></ai-title>
|
||||
</template>
|
||||
<template slot="content">
|
||||
<ai-card :title="info.title">
|
||||
<template #right>
|
||||
<span style="color:#2266FF;cursor: pointer;font-size: 12px;" class="iconfont iconEdit" v-if="isEdit==false" @click="isEdit = true">修改</span>
|
||||
<span style="color:#2266FF;cursor: pointer;font-size: 12px;" class="iconfont iconEdit" v-if="isEdit==false && info.status==0" @click="update">修改</span>
|
||||
</template>
|
||||
<template #content v-if="isEdit == false">
|
||||
<ai-wrapper>
|
||||
@@ -45,7 +45,7 @@
|
||||
</ai-card>
|
||||
</template>
|
||||
</ai-detail>
|
||||
<ai-detail v-if="!id || isEdit">
|
||||
<ai-detail v-show="!id || isEdit==true">
|
||||
<ai-title slot="title" :title="id? '编辑换届选举':'添加换届选举'" isShowBottomBorder isShowBack @onBackClick="cancel(true)"/>
|
||||
<template slot="content">
|
||||
<ai-card title="基本信息">
|
||||
@@ -120,7 +120,7 @@
|
||||
</template>
|
||||
</ai-card>
|
||||
</template>
|
||||
<template slot="footer">
|
||||
<template #footer>
|
||||
<el-button class="delete-btn footer-btn" @click="cancel(false)">取消</el-button>
|
||||
<el-button class="footer-btn" type="primary" @click="confirm()">保存</el-button>
|
||||
</template>
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user