This commit is contained in:
shijingjing
2022-08-17 19:52:30 +08:00
parent 13a56c373c
commit c153846191
2 changed files with 10 additions and 6 deletions

View File

@@ -334,8 +334,8 @@ export default {
this.dialog = false; this.dialog = false;
this.getList(); this.getList();
this.closed(); this.closed();
this.girdInfoList = [] this.girdInfoList = []
this.girdNameList = []
} }
}); });
} else { } else {

View File

@@ -86,8 +86,9 @@
</el-table-column> </el-table-column>
<el-table-column slot="changeIntegral" label="积分变动" align="center"> <el-table-column slot="changeIntegral" label="积分变动" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<!-- {{ row.changeIntegral > 0 ? '+' : '-' }}{{ row.changeIntegral }} --> <!-- <span></span> -->
<span>{{ row.changeIntegral | format }}</span> <span v-if="row.integralType == 3">{{ row.changeIntegral | format }}</span>
<span v-if="row.integralType == 0">{{ row.changeIntegral > 0 ? '-' : '+' }}{{ row.changeIntegral }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column slot="options" label="操作" align="center"> <el-table-column slot="options" label="操作" align="center">
@@ -413,7 +414,7 @@ export default {
// 所有网格 // 所有网格
getGridList() { getGridList() {
this.instance.post(`/app/appgirdinfo/listAll3`).then((res) => { this.instance.post(`/app/appgirdinfo/listAll3`).then((res) => {
if (res.code == 0) { if (res?.code == 0) {
this.girdOptions = this.toTree(res.data) this.girdOptions = this.toTree(res.data)
} }
}) })
@@ -490,8 +491,11 @@ export default {
filters: { filters: {
formatTime(num) { formatTime(num) {
let numType = Number(num) if(num > 0) {
console.log(numType); return '+' + num
} else {
return num
}
} }
}, },