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.getList();
this.closed();
this.girdInfoList = []
this.girdNameList = []
}
});
} else {

View File

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