Files
app-govern/pages/message/run.vue

55 lines
1.7 KiB
Vue
Raw Normal View History

2023-02-09 08:50:01 +08:00
<template>
<Cn-page :loading='loading'>
<view slot='body'>
<view class='index'>
<uni-list>
<uni-list-item title="登录成功" rightText="9-18" />
<uni-list-item title="登录成功" rightText="9-18" />
<uni-list-item title="登录成功" note="新用户" rightText="9-18" />
</uni-list>
<uni-load-more status="nomore"></uni-load-more>
</view>
</view>
</Cn-page>
</template>
<script>
2023-09-18 15:55:34 +08:00
import list from "@/common/js/list";
2023-02-09 08:50:01 +08:00
export default {
2023-09-18 15:55:34 +08:00
mixins: [list],
data() {
2023-02-09 08:50:01 +08:00
return {
2023-09-18 15:55:34 +08:00
loading: true,
2023-02-09 08:50:01 +08:00
}
},
2023-09-18 15:55:34 +08:00
onShow() {
this.init()
},
2023-02-09 08:50:01 +08:00
methods: {
2023-09-18 19:23:27 +08:00
async init() {
let dictData = await this.$util.getDictData('app_event')
2023-09-18 15:55:34 +08:00
console.log(dictData)
this.store = this.DataSource('/cs-harmonic-boot/event/queryEventList')
this.store.params.type = 2
this.store.firstCallBack = (res) => {
this.store.data.forEach(item => {
item.title = item.equipmentName + dictData.find(item2 => item2.code === item.tag).name
})
console.log(this.store.data)
this.loading = false
}
this.store.reload()
},
jump(item) {
let str = JSON.stringify(item).replace(/%/g,'百分比')
uni.navigateTo({url: '/pages/message/transientDetail?detail=' + encodeURIComponent(str)})
},
2023-02-09 08:50:01 +08:00
}
}
</script>
<style lang='scss'>
.index {}
/deep/ .uni-list-item {
background-color: $uni-theme-white !important;
}
</style>