qa-regulatory-gwj-app/pages/information/index/detail.vue

63 lines
1.2 KiB
Vue
Raw Normal View History

2023-11-07 10:08:37 +08:00
<template>
<view class="content">
<view class="card">
2024-10-10 10:14:31 +08:00
<view class="title">{{ form.SYNOPSIS }}</view>
2023-11-07 10:08:37 +08:00
<view class="data mt-10">
2024-10-10 10:14:31 +08:00
<text>{{ form.CREATTIME }}</text>
2023-11-07 10:08:37 +08:00
</view>
<view class="mt-10">
2024-10-10 10:14:31 +08:00
<view class="mt-10">
<rich-text :nodes="form.CONTENT"></rich-text>
</view>
2023-11-07 10:08:37 +08:00
</view>
</view>
</view>
</template>
<script>
import {getAnnouncementNoticeDetail, getPlatformReminderDetail} from "../../../api";
export default {
data() {
return {
ID: '',
TYPE: '',
2024-10-10 10:14:31 +08:00
form: {}
2023-11-07 10:08:37 +08:00
}
},
computed: {
userInfo() {
return this.$store.getters.getUserInfo
}
},
onLoad(event) {
this.ID = event.ID;
this.TYPE = event.TYPE;
this.getData();
},
methods: {
async getData() {
let resData = this.TYPE === '1' ? await getAnnouncementNoticeDetail({
loginUserId: this.userInfo.USER_ID,
NOTICEREGULATORY_ID: this.ID
}) : await getPlatformReminderDetail({
ISALL: 'yes',
NOTICE_ID: this.ID
})
this.form = resData.pd;
}
},
}
</script>
<style scoped lang="scss">
2024-10-10 10:14:31 +08:00
.title {
2023-11-07 10:08:37 +08:00
text-align: center;
}
2024-10-10 10:14:31 +08:00
.data {
2024-07-27 15:13:42 +08:00
font-size: 24rpx;
2023-11-07 10:08:37 +08:00
text-align: center;
}
</style>