BUG 28974

This commit is contained in:
aixianling
2022-04-08 19:16:48 +08:00
parent f8b0290497
commit c4b6b382ad
2 changed files with 15 additions and 29 deletions

View File

@@ -26,18 +26,13 @@
:total="total" :total="total"
ref="aitableex" ref="aitableex"
:current.sync="search.current" :current.sync="search.current"
:size.sync="search.size" :size.sync="search.size" :dict="dict"
@getList="getList"> @getList="getList">
<el-table-column slot="changeIntegral" label="积分" align="center"> <el-table-column slot="changeIntegral" label="积分" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span>{{ row.changeIntegral > 0 ? '+' : '' }}{{ row.changeIntegral }}</span> <span>{{ row.changeIntegral > 0 ? '+' : '' }}{{ row.changeIntegral }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column slot="doType" label="类型" align="center">
<template slot-scope="{ row }">
<span>{{ dict.getLabel('integralDetailType', row.bizType) }}</span>
</template>
</el-table-column>
<el-table-column slot="options" label="操作" align="center" fixed="right" width="120"> <el-table-column slot="options" label="操作" align="center" fixed="right" width="120">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-button <el-button
@@ -76,7 +71,7 @@
</div> </div>
<!-- <div> <!-- <div>
<span class="form_label">途径</span> <span class="form_label">途径</span>
<span class="form_value">{{$dict.getLabel("integralDetailBizType", dialogInfo.bizType)}}</span> <span class="form_value">{{dict.getLabel("integralDetailBizType", dialogInfo.bizType)}}</span>
</div> --> </div> -->
</div> </div>
<!-- <div class="form_info"> <!-- <div class="form_info">
@@ -123,17 +118,8 @@ export default {
total: 10, total: 10,
colConfigs: [ colConfigs: [
{prop: "portalUserPhone", label: "用户账号", align: "center", width: 160}, {prop: "portalUserPhone", label: "用户账号", align: "center", width: 160},
{ {prop: "bizType", label: "积分来源", dict: "integralDetailType", width: 420},
prop: "ruleName", {prop: "doTime", label: "时间", width: 200},
label: "事件类型",
"show-overflow-tooltip": true,
width: 420
},
{
prop: "doTime",
label: "时间",
width: 200
},
// { // {
// prop: "doType", // prop: "doType",
// label: "类型", // label: "类型",
@@ -145,11 +131,11 @@ export default {
// { // {
// class: "status-" + params.row.doType, // class: "status-" + params.row.doType,
// }, // },
// this.$dict.getLabel("integralIntegralType", params.row.doType) // this.dict.getLabel("integralIntegralType", params.row.doType)
// ); // );
// }, // },
// }, // },
{slot: "doType", label: "类型", width: 100}, {prop: "doType", label: "类型", dict: "integralDoType", width: 100},
{slot: "changeIntegral", label: "积分", width: 100}, {slot: "changeIntegral", label: "积分", width: 100},
// { // {
// prop: "bizType", // prop: "bizType",
@@ -157,7 +143,7 @@ export default {
// align: "center", // align: "center",
// width: 100, // width: 100,
// formart: (bizType) => // formart: (bizType) =>
// this.$dict.getLabel("integralDetailBizType", bizType) || '-', // this.dict.getLabel("integralDetailBizType", bizType) || '-',
// }, // },
{slot: "options", label: "操作", align: "center"}, {slot: "options", label: "操作", align: "center"},
], ],
@@ -169,14 +155,13 @@ export default {
}; };
}, },
mounted() { created() {
this.$dict this.dict.load(
.load([ "integralDoType",
"integralDeclareDoType", "integralDeclareDoType",
"integralDetailType", "integralDetailType",
"integralDetailBizType" "integralDetailBizType",
]) ).then(() => {
.then(() => {
this.getList(); this.getList();
}); });
}, },

View File

@@ -41,6 +41,7 @@
ref="aitableex" ref="aitableex"
:current.sync="search.current" :current.sync="search.current"
:size.sync="search.size" :size.sync="search.size"
:dict="dict"
@getList="getList"> @getList="getList">
<el-table-column slot="integral" label="分值" align="center"> <el-table-column slot="integral" label="分值" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">