用户管理,等级配置,任务审核

This commit is contained in:
liuye
2022-11-01 18:27:03 +08:00
parent 4098093a1c
commit 7b085f916b
3 changed files with 65 additions and 255 deletions

View File

@@ -5,7 +5,7 @@
<template #content>
<ai-search-bar>
<template #right>
<el-input v-model="search.title" class="search-input" size="small" v-throttle="() => {(page.current = 1), getList()} " placeholder="请输入手机号" clearable @change="getList" @clear="page.current = 1, (search.title = ''), getList()" suffix-icon="iconfont iconSearch">
<el-input v-model="search.realName" class="search-input" size="small" placeholder="请输入姓名" clearable @change="getList" @clear="page.current = 1, (search.realName = ''), getList()" suffix-icon="iconfont iconSearch">
</el-input>
</template>
</ai-search-bar>
@@ -51,7 +51,7 @@ export default {
data () {
return {
search: {
title: '',
realName: '',
},
page: {
current: 1,
@@ -78,7 +78,7 @@ export default {
{prop: "organizationName", label: "手机号", align: "center"},
{prop: "electionMethod", label: "等级", align: "center",dict:"electionMethod"},
{prop: "chooseNumber", label: "积分数量", align: "center", sortable: "custom"},
{slot: "options", },
{slot: "options"},
]
},
rules() {
@@ -133,7 +133,7 @@ export default {
},
getList() {
this.instance.post(`/app/appgeneralelectioninfo/list`,null,{
this.instance.post(`/appwechatuser/list`,null,{
params: {
...this.page,
...this.search,
@@ -145,63 +145,6 @@ export default {
}
})
},
toAdd(id) {
this.$emit('change', {
type: 'electionAdd',
params: {
id: id || '',
}
})
},
handleDelete(id) {
this.$confirm('确定删除该数据?').then(() => {
this.instance.post(`/app/appgeneralelectioninfo/delete?ids=${id}`).then(res=>{
if(res.code == 0) {
this.$message.success('删除成功!')
this.getList()
}
})
})
},
reset() {
this.search = {
status: '',
title: '',
}
this.getList()
},
// 开启、结束
startEnd(id, status) {
let title = ''
let bool = null
let tips = ''
if(status == 0) {
title = '未到投票开始时间,确定要提前开始吗?'
bool = true
tips = '开启成功'
} else if(status == 1) {
title = '投票正在进行中,确定要提前结束吗?'
bool = false
tips = '结束成功'
}
this.$confirm(title).then(() => {
this.instance.post(`/app/appgeneralelectioninfo/start-end?id=${id}&start=${bool}`).then(res=>{
if(res.code == 0) {
this.$message.success(tips)
this.getList()
}
})
})
},
// 统计
toStatistics(id) {
this.$emit('change', {
type: 'Statistics',
params: {
id: id || '',
}
})
},
}
}
</script>