hookehuyr

fix 头部没有图片显示修复

......@@ -2,17 +2,17 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-27 15:57:16
* @LastEditTime: 2024-07-29 17:10:25
* @FilePath: /data-table/src/App.vue
* @Description:
-->
<template>
<van-row v-if="is_pc">
<van-col span="22" offset="1">
<!-- <van-row v-if="is_pc">
<van-col span="24">
<router-view></router-view>
</van-col>
</van-row>
<router-view v-else></router-view>
</van-row> -->
<router-view></router-view>
</template>
<script setup>
......@@ -259,7 +259,7 @@ body {
#app {
min-height: calc(100vh);
max-width: 800px;
// max-width: 800px;
position: relative;
}
......
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-28 18:58:31
* @LastEditTime: 2024-07-29 17:11:14
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
<template>
<van-notice-bar v-if="formSetting.sjsj_is_count_down" left-icon="volume-o" :text="notice_text" scrollable
mode="closeable" />
<div class="table-box" :style="{ margin: is_pc ? '1rem 0' : '1rem', overflow: 'auto', minWidth: (is_pc && model !== 'preview') ? '40rem' : '' }">
<!-- <div class="table-box" :style="{ margin: is_pc ? '1rem 0' : '1rem' }"> -->
<div class="table-box">
<template v-if="PHeader.visible && page_type === 'add'">
<van-image v-if="PHeader.type === 'image' && PHeader.cover" width="100%" :src="PHeader.cover + '?imageView2/0/w/2000'" fit="cover" />
<template v-if="PHeader.type === 'carousel'">
......@@ -743,6 +744,10 @@ onMounted(async () => {
// 审核操作列表数据
approval_actions.value = formSetting.value.flow_node_action_list?.map((item) => { return { name: item.btnText, id: item.id, parent_nodes: item.parent_nodes } });
}, 1000);
const width = $('body').width();
// 固定表单宽度
$('.table-box').css('width', (width - 30) + 'px');
});
// 打开轮询用户是否关注
......@@ -1225,6 +1230,8 @@ const onSubmit = async (values) => {
.table-box {
background-color: #ffffff;
padding-bottom: 1rem;
overflow: auto;
margin: 1rem 0;
}
.wrapper {
......