hookehuyr

fix 细节整理

...@@ -44,40 +44,6 @@ declare module '@vue/runtime-core' { ...@@ -44,40 +44,6 @@ declare module '@vue/runtime-core' {
44 TextareaField: typeof import('./src/components/TextareaField/index.vue')['default'] 44 TextareaField: typeof import('./src/components/TextareaField/index.vue')['default']
45 TextField: typeof import('./src/components/TextField/index.vue')['default'] 45 TextField: typeof import('./src/components/TextField/index.vue')['default']
46 TimePickerField: typeof import('./src/components/TimePickerField/index.vue')['default'] 46 TimePickerField: typeof import('./src/components/TimePickerField/index.vue')['default']
47 - VanActionSheet: typeof import('vant/es')['ActionSheet']
48 - VanArea: typeof import('vant/es')['Area']
49 - VanButton: typeof import('vant/es')['Button']
50 - VanCalendar: typeof import('vant/es')['Calendar']
51 - VanCellGroup: typeof import('vant/es')['CellGroup']
52 - VanCheckbox: typeof import('vant/es')['Checkbox']
53 - VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup']
54 - VanCol: typeof import('vant/es')['Col']
55 - VanConfigProvider: typeof import('vant/es')['ConfigProvider']
56 - VanDatePicker: typeof import('vant/es')['DatePicker']
57 - VanDivider: typeof import('vant/es')['Divider']
58 - VanField: typeof import('vant/es')['Field']
59 - VanForm: typeof import('vant/es')['Form']
60 - VanIcon: typeof import('vant/es')['Icon']
61 - VanImage: typeof import('vant/es')['Image']
62 - VanImagePreview: typeof import('vant/es')['ImagePreview']
63 - VanLoading: typeof import('vant/es')['Loading']
64 - VanNoticeBar: typeof import('vant/es')['NoticeBar']
65 - VanNumberKeyboard: typeof import('vant/es')['NumberKeyboard']
66 - VanOverlay: typeof import('vant/es')['Overlay']
67 - VanPicker: typeof import('vant/es')['Picker']
68 - VanPickerGroup: typeof import('vant/es')['PickerGroup']
69 - VanPopover: typeof import('vant/es')['Popover']
70 - VanPopup: typeof import('vant/es')['Popup']
71 - VanRadio: typeof import('vant/es')['Radio']
72 - VanRadioGroup: typeof import('vant/es')['RadioGroup']
73 - VanRate: typeof import('vant/es')['Rate']
74 - VanRow: typeof import('vant/es')['Row']
75 - VanSwipe: typeof import('vant/es')['Swipe']
76 - VanSwipeItem: typeof import('vant/es')['SwipeItem']
77 - VanTab: typeof import('vant/es')['Tab']
78 - VanTabs: typeof import('vant/es')['Tabs']
79 - VanTimePicker: typeof import('vant/es')['TimePicker']
80 - VanUploader: typeof import('vant/es')['Uploader']
81 VideoField: typeof import('./src/components/VideoField/index.vue')['default'] 47 VideoField: typeof import('./src/components/VideoField/index.vue')['default']
82 VolunteerGroupField: typeof import('./src/components/VolunteerGroupField/index.vue')['default'] 48 VolunteerGroupField: typeof import('./src/components/VolunteerGroupField/index.vue')['default']
83 } 49 }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
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-06-25 11:25:17 5 + * @LastEditTime: 2024-06-26 09:38:31
6 * @FilePath: /data-table/src/App.vue 6 * @FilePath: /data-table/src/App.vue
7 * @Description: 7 * @Description:
8 --> 8 -->
...@@ -73,7 +73,13 @@ onMounted(async () => { ...@@ -73,7 +73,13 @@ onMounted(async () => {
73 const model = getUrlParams(location.href) ? getUrlParams(location.href).model : ''; 73 const model = getUrlParams(location.href) ? getUrlParams(location.href).model : '';
74 const data_id = getUrlParams(location.href) ? getUrlParams(location.href).data_id : ''; 74 const data_id = getUrlParams(location.href) ? getUrlParams(location.href).data_id : '';
75 // 权限控制新增参数 75 // 权限控制新增参数
76 - const page_type = getUrlParams(location.href) ? getUrlParams(location.href).page_type : ''; // add 新增页 info 详情页 edit 编辑页 flow 流程页 76 + /**
77 + * add 新增页
78 + * info 详情页
79 + * edit 编辑页
80 + * flow 流程页
81 + */
82 + const page_type = getUrlParams(location.href) ? getUrlParams(location.href).page_type : '';
77 const raw_url = encodeURIComponent(location.pathname + location.hash); 83 const raw_url = encodeURIComponent(location.pathname + location.hash);
78 // 数据收集设置 84 // 数据收集设置
79 const { data } = await getFormSettingAPI({ form_code: code }); 85 const { data } = await getFormSettingAPI({ form_code: code });
......
1 <!-- 1 <!--
2 * @Date: 2022-06-29 18:18:02 2 * @Date: 2022-06-29 18:18:02
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-06-25 10:01:42 4 + * @LastEditTime: 2024-06-25 13:45:27
5 * @FilePath: /data-table/src/views/no_auth.vue 5 * @FilePath: /data-table/src/views/no_auth.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
8 <template> 8 <template>
9 - <div class="table-box" :style="{ margin: is_pc ? '1rem 0' : '1rem', overflow: 'auto' }"> 9 + <div class="table-box" :style="{ margin: is_pc ? '1rem 0' : '1rem', overflow: 'auto' }">
10 - <div style="display: flex; align-items: center; justify-content: center; margin: 1rem auto; color: red;"><van-icon name="warning" color="red" size="1.25rem" />&nbsp;您暂无权限访问该页面</div> 10 + <div class="text-box">
11 + <van-icon name="warning" color="red" size="1.25rem" />&nbsp;您暂无权限访问该页面
12 + </div>
11 <div>{{ formSetting }}</div> 13 <div>{{ formSetting }}</div>
12 </div> 14 </div>
13 </template> 15 </template>
...@@ -47,5 +49,12 @@ onMounted(() => { ...@@ -47,5 +49,12 @@ onMounted(() => {
47 background-color: #ffffff; 49 background-color: #ffffff;
48 padding-bottom: 1rem; 50 padding-bottom: 1rem;
49 border-radius: 5px; 51 border-radius: 5px;
52 + .text-box {
53 + display: flex;
54 + align-items: center;
55 + justify-content: center;
56 + margin: 1rem auto;
57 + color: red;
58 + }
50 } 59 }
51 </style> 60 </style>
......