update: 更新经营概况

This commit is contained in:
admin 2024-06-07 15:56:39 +08:00
parent 447d9ab591
commit 7f89c108cf
2 changed files with 11 additions and 7 deletions

View File

@ -21,7 +21,7 @@
<view class="box">
<view v-for="(item, index) in gridList1" :key="index">
<text v-if="item.name">{{ item.name }}</text
><text
><text v-if="item.name"
>{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num) }}
{{ item.isBefore ? "" : item.unit }}
</text>
@ -31,7 +31,8 @@
<view class="box">
<view v-for="(item, index) in gridList2" :key="index">
<text v-if="item.name">{{ item.name }}</text
><text :class="item.isHighLight ? 'highLight' : ''"
>
<text :class="{'highLight': item.isHighLight || false}" v-if="item.name"
>{{ item.isBefore ? item.unit : "" }} {{ formatMoney(item.num) }}
{{ item.isBefore ? "" : item.unit }}
</text>

View File

@ -84,11 +84,14 @@ const pageList: PageResult<StockCard> = reactive({
pageSize: 10,
});
const resetPageList = () => {
pageList.noMoreData = false;
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
pageList.pageSize = 10;
const obj = {
noMoreData: false,
total: 0,
list: [],
pageNum: 1,
pageSize: 10
}
Object.assign(pageList, obj)
};
const add = () => {
uni.navigateTo({