update: 修复部分页面显示不全

This commit is contained in:
admin 2024-07-19 15:52:24 +08:00
parent 07097b173d
commit 37e2c5a641
7 changed files with 18 additions and 16 deletions

View File

@ -1,5 +1,5 @@
<template>
<view class="c-card">
<view class="c-card app-container">
<u-form
labelPosition="left"
:model="model1"

View File

@ -1,5 +1,5 @@
<template>
<view class="c-card">
<view class="c-card app-container">
<view class="collapse-box box">
<view v-for="(item, index) in pageList.list" :key="index">
<view class="item">

View File

@ -250,9 +250,4 @@ const selectClick = (v: any) => {
border-radius: 5px;
margin: 0rpx 16rpx;
}
.app-container {
height: calc(100vh - 70px);
overflow: scroll;
position: relative;
}
</style>

View File

@ -140,7 +140,7 @@ const getCode = () => {
(res: any) => {
if (res.code === 200) {
if (res.data.length > 0) {
store.setMechanismCode(res.data[0].mechanismCode);
store.setMechanism({mechanismCode: res.data[0].mechanismCode, mechanismName: res.data[0].mechanismName});
sendMsg();
} else {
uni.showToast({

View File

@ -38,7 +38,11 @@ body {
max-height: 600rpx;
overflow-y: auto;
}
.app-container {
height: calc(100vh - 70px);
overflow: scroll;
position: relative;
}
.btn-box-fix-btn {
margin-top: 60rpx;
display: flex;

View File

@ -24,7 +24,6 @@ export const useMemberStore = defineStore(
profile.value.menusNameList = _.pluck(val.menusList, "name");
};
const setErr = (v: any) => {
profile.value.err = v;
};
@ -42,9 +41,12 @@ export const useMemberStore = defineStore(
};
};
const mechanismCode = ref<string>();
const setMechanismCode = (v:string) => {
mechanismCode.value = v
const mechanism = ref<any>({
mechanismCode: "",
mechanismName: "",
});
const setMechanism = (v: { mechanismCode: ""; mechanismName: "" }) => {
mechanism.value = v;
};
// 记得 return
@ -53,8 +55,8 @@ export const useMemberStore = defineStore(
setProfile,
setErr,
clearProfile,
mechanismCode,
setMechanismCode
mechanism,
setMechanism,
};
},
{

View File

@ -30,7 +30,8 @@ const obj = {
options.header["x-userToken"] = token;
}
if (options.url.indexOf("/api/db/getCommonDbPhone") === -1) {
options.header["mechanismCode"] = store.mechanismCode;
options.header["mechanismCode"] = store.mechanism.mechanismCode;
options.header["mechanismName"] = store.mechanism.mechanismName;
}
},
};