禅道bug
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<template slot="right">
|
||||
<ai-download
|
||||
:instance="instance"
|
||||
url="/app/appvillagerintegraldetail/export"
|
||||
url="/app/appvillagerintegraldetail/sysUserExport"
|
||||
:disabled="!Boolean(tableData.length)"
|
||||
:params="{familyId:detailInfo.id,type}"
|
||||
fileName="余额变动明细">
|
||||
@@ -89,7 +89,7 @@ export default {
|
||||
methods: {
|
||||
getList() {
|
||||
this.instance.post('/app/appvillagerintegraldetail/list', null, {
|
||||
params: {...this.page, familyId: this.detailInfo.id}
|
||||
params: {...this.page, familyId: this.detailInfo.id, type: this.type}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.tableData = res.data.records
|
||||
|
||||
@@ -198,9 +198,9 @@
|
||||
<el-button v-if="row.orderCode" type="text" @click="goDetail(row)" title="详情"
|
||||
:disabled="!$permissions('app_appvillagerintegralshoporder_detail')">详情
|
||||
</el-button>
|
||||
<template v-if="row.orderStatus==0">
|
||||
<el-button type="text" @click="handlePendingOrder(row.id,1)">确认兑换</el-button>
|
||||
<el-button type="text" @click="handlePendingOrder(row.id,0)">取消订单</el-button>
|
||||
<template v-if="row.orderStatus==0 || row.orderStatus==3">
|
||||
<el-button type="text" v-if="row.orderStatus==0" @click="handlePendingOrder(row.id,1)">确认兑换</el-button>
|
||||
<el-button type="text" v-if="row.orderStatus==0 || row.orderStatus==3" @click="handlePendingOrder(row.id,0)">取消订单</el-button>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -89,7 +89,8 @@ export default {
|
||||
integral: {required: true, message: "请输入赠送分值,最多保留一位小数", pattern: /^\d*[.\d]\d?$/},
|
||||
objectType: {required: true, message: "请选择对象"},
|
||||
userId: {required: true, message: "请选择人员"},
|
||||
}
|
||||
},
|
||||
flag: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -121,12 +122,15 @@ export default {
|
||||
this.detail = res.data
|
||||
this.tableData = res.data.details?.records || []
|
||||
this.page.total = res.data.details?.total || 0
|
||||
this.flag = false
|
||||
}
|
||||
})
|
||||
},
|
||||
handleGiveScore() {
|
||||
if(this.flag) return
|
||||
this.$refs.DialogForm.validate(v => {
|
||||
if (v) {
|
||||
this.flag = true
|
||||
this.instance.post("/admin/user/giveIntegral", null, {
|
||||
params: {...this.form}
|
||||
}).then(res => {
|
||||
@@ -134,7 +138,11 @@ export default {
|
||||
this.$message.success("提交成功!")
|
||||
this.dialog = false
|
||||
this.getDetail()
|
||||
}else{
|
||||
this.flag = false
|
||||
}
|
||||
}).catch(() => {
|
||||
this.flag = false
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user