fix: 问题修复
This commit is contained in:
parent
4d7de97445
commit
93898e03a9
@ -137,7 +137,11 @@ function addArchive() {
|
|||||||
function getTempRows(type, data) {
|
function getTempRows(type, data) {
|
||||||
if (config[type] && tempShowField.value && tempShowField.value[type]) {
|
if (config[type] && tempShowField.value && tempShowField.value[type]) {
|
||||||
const list = [];
|
const list = [];
|
||||||
config[type].forEach(i => {
|
let titles = config[type];
|
||||||
|
if (data.corp === '其他') {
|
||||||
|
titles = ['corpName', 'diagnosisName', 'files']
|
||||||
|
}
|
||||||
|
titles.forEach(i => {
|
||||||
if (tempShowField.value[type][i]) {
|
if (tempShowField.value[type][i]) {
|
||||||
list.push({ title: i, label: tempShowField.value[type][i], value: data[i], key: `${i}_${data._id}` })
|
list.push({ title: i, label: tempShowField.value[type][i], value: data[i], key: `${i}_${data._id}` })
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,6 +40,7 @@ import pageLoading from "./loading.vue";
|
|||||||
|
|
||||||
// const { useLoad, useShow } = useGuard();
|
// const { useLoad, useShow } = useGuard();
|
||||||
const { account } = storeToRefs(useAccount());
|
const { account } = storeToRefs(useAccount());
|
||||||
|
const { login } = useAccount();
|
||||||
|
|
||||||
const team = ref(null);
|
const team = ref(null);
|
||||||
const teams = ref([]);
|
const teams = ref([]);
|
||||||
@ -90,7 +91,12 @@ async function getTeams() {
|
|||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
|
|
||||||
onShow(() => {
|
onLoad(() => {
|
||||||
|
if (!account.value) login();
|
||||||
|
})
|
||||||
|
|
||||||
|
onShow(async () => {
|
||||||
|
if (!account.value) await login();
|
||||||
if (account.value && account.value.openid) {
|
if (account.value && account.value.openid) {
|
||||||
getTeams();
|
getTeams();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="message-page">
|
<view class="message-page">
|
||||||
<!-- 标题栏 -->
|
<!-- 标题栏 -->
|
||||||
<view class="message-header">
|
<!-- <view class="message-header">
|
||||||
<text class="header-title">咨询</text>
|
<text class="header-title">咨询</text>
|
||||||
</view>
|
</view> -->
|
||||||
|
|
||||||
<!-- 消息列表 -->
|
<!-- 消息列表 -->
|
||||||
<scroll-view
|
<scroll-view
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user