禅道bug

This commit is contained in:
liuye
2022-05-25 16:19:22 +08:00
parent 8424a06217
commit 75d1f34b5d
5 changed files with 20 additions and 8 deletions

View File

@@ -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

View File

@@ -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>

View File

@@ -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
})
}
})

View File

@@ -316,5 +316,9 @@ export default {
}
}
}
::v-deep .is-current>.el-tree-node__content{
width: 100%!important;
padding-right: 16px!important;
}
}
</style>

View File

@@ -10,7 +10,7 @@
</el-button>
</template>
<template #right>
<el-input size="small" placeholder="搜索户主姓名" v-model="search.name" clearable
<el-input size="small" placeholder="搜索户主姓名" v-model="search.residentName" clearable
@change="page.current=1,getTableData()" suffix-icon="iconfont iconSearch"/>
</template>
</ai-search-bar>
@@ -92,7 +92,7 @@ export default {
},
data() {
return {
search: {name: "", ids: ""},
search: {residentName: "", ids: ""},
page: {current: 1, size: 10, total: 0},
tableData: [],
dialog: false,