Showing
2 changed files
with
15 additions
and
8 deletions
| ... | @@ -2,17 +2,17 @@ | ... | @@ -2,17 +2,17 @@ |
| 2 | * @Author: hookehuyr hookehuyr@gmail.com | 2 | * @Author: hookehuyr hookehuyr@gmail.com |
| 3 | * @Date: 2022-05-26 23:52:36 | 3 | * @Date: 2022-05-26 23:52:36 |
| 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 5 | - * @LastEditTime: 2024-07-27 15:57:16 | 5 | + * @LastEditTime: 2024-07-29 17:10:25 |
| 6 | * @FilePath: /data-table/src/App.vue | 6 | * @FilePath: /data-table/src/App.vue |
| 7 | * @Description: | 7 | * @Description: |
| 8 | --> | 8 | --> |
| 9 | <template> | 9 | <template> |
| 10 | - <van-row v-if="is_pc"> | 10 | + <!-- <van-row v-if="is_pc"> |
| 11 | - <van-col span="22" offset="1"> | 11 | + <van-col span="24"> |
| 12 | <router-view></router-view> | 12 | <router-view></router-view> |
| 13 | </van-col> | 13 | </van-col> |
| 14 | - </van-row> | 14 | + </van-row> --> |
| 15 | - <router-view v-else></router-view> | 15 | + <router-view></router-view> |
| 16 | </template> | 16 | </template> |
| 17 | 17 | ||
| 18 | <script setup> | 18 | <script setup> |
| ... | @@ -259,7 +259,7 @@ body { | ... | @@ -259,7 +259,7 @@ body { |
| 259 | 259 | ||
| 260 | #app { | 260 | #app { |
| 261 | min-height: calc(100vh); | 261 | min-height: calc(100vh); |
| 262 | - max-width: 800px; | 262 | + // max-width: 800px; |
| 263 | position: relative; | 263 | position: relative; |
| 264 | } | 264 | } |
| 265 | 265 | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-07-18 10:22:22 | 2 | * @Date: 2022-07-18 10:22:22 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-07-28 18:58:31 | 4 | + * @LastEditTime: 2024-07-29 17:11:14 |
| 5 | * @FilePath: /data-table/src/views/index.vue | 5 | * @FilePath: /data-table/src/views/index.vue |
| 6 | * @Description: 首页 | 6 | * @Description: 首页 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | <van-notice-bar v-if="formSetting.sjsj_is_count_down" left-icon="volume-o" :text="notice_text" scrollable | 9 | <van-notice-bar v-if="formSetting.sjsj_is_count_down" left-icon="volume-o" :text="notice_text" scrollable |
| 10 | mode="closeable" /> | 10 | mode="closeable" /> |
| 11 | - <div class="table-box" :style="{ margin: is_pc ? '1rem 0' : '1rem', overflow: 'auto', minWidth: (is_pc && model !== 'preview') ? '40rem' : '' }"> | 11 | + <!-- <div class="table-box" :style="{ margin: is_pc ? '1rem 0' : '1rem' }"> --> |
| 12 | + <div class="table-box"> | ||
| 12 | <template v-if="PHeader.visible && page_type === 'add'"> | 13 | <template v-if="PHeader.visible && page_type === 'add'"> |
| 13 | <van-image v-if="PHeader.type === 'image' && PHeader.cover" width="100%" :src="PHeader.cover + '?imageView2/0/w/2000'" fit="cover" /> | 14 | <van-image v-if="PHeader.type === 'image' && PHeader.cover" width="100%" :src="PHeader.cover + '?imageView2/0/w/2000'" fit="cover" /> |
| 14 | <template v-if="PHeader.type === 'carousel'"> | 15 | <template v-if="PHeader.type === 'carousel'"> |
| ... | @@ -743,6 +744,10 @@ onMounted(async () => { | ... | @@ -743,6 +744,10 @@ onMounted(async () => { |
| 743 | // 审核操作列表数据 | 744 | // 审核操作列表数据 |
| 744 | approval_actions.value = formSetting.value.flow_node_action_list?.map((item) => { return { name: item.btnText, id: item.id, parent_nodes: item.parent_nodes } }); | 745 | approval_actions.value = formSetting.value.flow_node_action_list?.map((item) => { return { name: item.btnText, id: item.id, parent_nodes: item.parent_nodes } }); |
| 745 | }, 1000); | 746 | }, 1000); |
| 747 | + | ||
| 748 | + const width = $('body').width(); | ||
| 749 | + // 固定表单宽度 | ||
| 750 | + $('.table-box').css('width', (width - 30) + 'px'); | ||
| 746 | }); | 751 | }); |
| 747 | 752 | ||
| 748 | // 打开轮询用户是否关注 | 753 | // 打开轮询用户是否关注 |
| ... | @@ -1225,6 +1230,8 @@ const onSubmit = async (values) => { | ... | @@ -1225,6 +1230,8 @@ const onSubmit = async (values) => { |
| 1225 | .table-box { | 1230 | .table-box { |
| 1226 | background-color: #ffffff; | 1231 | background-color: #ffffff; |
| 1227 | padding-bottom: 1rem; | 1232 | padding-bottom: 1rem; |
| 1233 | + overflow: auto; | ||
| 1234 | + margin: 1rem 0; | ||
| 1228 | } | 1235 | } |
| 1229 | 1236 | ||
| 1230 | .wrapper { | 1237 | .wrapper { | ... | ... |
-
Please register or login to post a comment