This commit is contained in:
shijingjing
2022-10-14 14:47:48 +08:00
parent cfb0177a45
commit 046715d4b6
4 changed files with 153 additions and 90 deletions

View File

@@ -39,24 +39,25 @@ export default {
data () {
return {
search: {
status: '',
status: '', // 0、未开始1、进行中2、已结束
title: '',
tableData: [],
},
page: {
current: 1,
size: 10,
total: '',
total: 0,
},
tableData: [],
}
},
created () {
this.dict.load('yesOrNo', 'partyFourLinkageStatus')
this.getList()
},
computed: {
colConfigs() {
return [
{prop: "", label: "标题", align: "left"},
{prop: "", label: "标题", align: "left", showOverflowTooltip: true},
{prop: "", label: "所属支部", align: "center"},
{prop: "", label: "选举方式", align: "center"},
{prop: "", label: "应选人数", align: "center"},
@@ -66,7 +67,18 @@ export default {
}
},
methods: {
getList () {},
getList() {
this.instance.post(`/app/appgeneralelectioninfo/list`,null,{
params: {
...this.page,
...this.search,
}
}).then(res=> {
if(res?.data) {
console.log(res);
}
})
},
toAdd(id) {
this.$emit('change', {
type: 'electionAdd',