|
@@ -43,7 +43,9 @@ export default {
|
|
|
computed: {
|
|
|
tableData2() {
|
|
|
const arr = [...this.tableData]
|
|
|
- arr.map(item => {})
|
|
|
+ arr.map(item => {
|
|
|
+ if (item.is_handle == 1) item.isEd = true
|
|
|
+ })
|
|
|
return arr
|
|
|
}
|
|
|
},
|
|
@@ -51,15 +53,31 @@ export default {
|
|
|
mounted() {
|
|
|
this.listConfig = {
|
|
|
rows: [
|
|
|
- { label: '用户id', prop: 'user_id' },
|
|
|
{ label: '手机号', prop: 'phone' },
|
|
|
- { label: 'openid', prop: 'openid' },
|
|
|
+ { label: '已核销', prop: 'is_handle', type: 'tag', tags: arrToObj(this.$dictData.sys_yesno) },
|
|
|
{ label: '奖品', prop: 'prize' },
|
|
|
+ { label: 'openid', prop: 'openid' },
|
|
|
+ { label: '用户id', prop: 'user_id' },
|
|
|
{ label: '创建时间', prop: 'create_at' },
|
|
|
+ { label: '操作', width: 80, type: 'handle2', operations:
|
|
|
+ [
|
|
|
+ { label: '核销', func: this.dealHandle, btnType: 'primary', hide: 'isEd' },
|
|
|
+ ]
|
|
|
+ }
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ dealHandle (row) {
|
|
|
+ this.$msg(`确定核销${row.phone}吗?`, 'confirm', () => {
|
|
|
+ this.$api.other.admlotteryprixchange({
|
|
|
+ id: row.id
|
|
|
+ }).then(data => {
|
|
|
+ this.$msgs(`已核销!`)
|
|
|
+ this.fetchData()
|
|
|
+ })
|
|
|
+ }, null, true)
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|