Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
You need to sign in or sign up before continuing.
Authored by
hookehuyr
2024-06-26 10:05:13 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9f457343264e1d5feca77f95cafdbbbcf4f16b86
9f457343
1 parent
ab5239ff
fix 细节整理
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
38 deletions
components.d.ts
src/App.vue
src/views/no_auth.vue
components.d.ts
View file @
9f45734
...
...
@@ -44,40 +44,6 @@ declare module '@vue/runtime-core' {
TextareaField
:
typeof
import
(
'./src/components/TextareaField/index.vue'
)[
'default'
]
TextField
:
typeof
import
(
'./src/components/TextField/index.vue'
)[
'default'
]
TimePickerField
:
typeof
import
(
'./src/components/TimePickerField/index.vue'
)[
'default'
]
VanActionSheet
:
typeof
import
(
'vant/es'
)[
'ActionSheet'
]
VanArea
:
typeof
import
(
'vant/es'
)[
'Area'
]
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
VanCalendar
:
typeof
import
(
'vant/es'
)[
'Calendar'
]
VanCellGroup
:
typeof
import
(
'vant/es'
)[
'CellGroup'
]
VanCheckbox
:
typeof
import
(
'vant/es'
)[
'Checkbox'
]
VanCheckboxGroup
:
typeof
import
(
'vant/es'
)[
'CheckboxGroup'
]
VanCol
:
typeof
import
(
'vant/es'
)[
'Col'
]
VanConfigProvider
:
typeof
import
(
'vant/es'
)[
'ConfigProvider'
]
VanDatePicker
:
typeof
import
(
'vant/es'
)[
'DatePicker'
]
VanDivider
:
typeof
import
(
'vant/es'
)[
'Divider'
]
VanField
:
typeof
import
(
'vant/es'
)[
'Field'
]
VanForm
:
typeof
import
(
'vant/es'
)[
'Form'
]
VanIcon
:
typeof
import
(
'vant/es'
)[
'Icon'
]
VanImage
:
typeof
import
(
'vant/es'
)[
'Image'
]
VanImagePreview
:
typeof
import
(
'vant/es'
)[
'ImagePreview'
]
VanLoading
:
typeof
import
(
'vant/es'
)[
'Loading'
]
VanNoticeBar
:
typeof
import
(
'vant/es'
)[
'NoticeBar'
]
VanNumberKeyboard
:
typeof
import
(
'vant/es'
)[
'NumberKeyboard'
]
VanOverlay
:
typeof
import
(
'vant/es'
)[
'Overlay'
]
VanPicker
:
typeof
import
(
'vant/es'
)[
'Picker'
]
VanPickerGroup
:
typeof
import
(
'vant/es'
)[
'PickerGroup'
]
VanPopover
:
typeof
import
(
'vant/es'
)[
'Popover'
]
VanPopup
:
typeof
import
(
'vant/es'
)[
'Popup'
]
VanRadio
:
typeof
import
(
'vant/es'
)[
'Radio'
]
VanRadioGroup
:
typeof
import
(
'vant/es'
)[
'RadioGroup'
]
VanRate
:
typeof
import
(
'vant/es'
)[
'Rate'
]
VanRow
:
typeof
import
(
'vant/es'
)[
'Row'
]
VanSwipe
:
typeof
import
(
'vant/es'
)[
'Swipe'
]
VanSwipeItem
:
typeof
import
(
'vant/es'
)[
'SwipeItem'
]
VanTab
:
typeof
import
(
'vant/es'
)[
'Tab'
]
VanTabs
:
typeof
import
(
'vant/es'
)[
'Tabs'
]
VanTimePicker
:
typeof
import
(
'vant/es'
)[
'TimePicker'
]
VanUploader
:
typeof
import
(
'vant/es'
)[
'Uploader'
]
VideoField
:
typeof
import
(
'./src/components/VideoField/index.vue'
)[
'default'
]
VolunteerGroupField
:
typeof
import
(
'./src/components/VolunteerGroupField/index.vue'
)[
'default'
]
}
...
...
src/App.vue
View file @
9f45734
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-2
5 11:25:17
* @LastEditTime: 2024-06-2
6 09:38:31
* @FilePath: /data-table/src/App.vue
* @Description:
-->
...
...
@@ -73,7 +73,13 @@ onMounted(async () => {
const model = getUrlParams(location.href) ? getUrlParams(location.href).model : '';
const data_id = getUrlParams(location.href) ? getUrlParams(location.href).data_id : '';
// 权限控制新增参数
const page_type = getUrlParams(location.href) ? getUrlParams(location.href).page_type : ''; // add 新增页 info 详情页 edit 编辑页 flow 流程页
/**
* add 新增页
* info 详情页
* edit 编辑页
* flow 流程页
*/
const page_type = getUrlParams(location.href) ? getUrlParams(location.href).page_type : '';
const raw_url = encodeURIComponent(location.pathname + location.hash);
// 数据收集设置
const { data } = await getFormSettingAPI({ form_code: code });
...
...
src/views/no_auth.vue
View file @
9f45734
<!--
* @Date: 2022-06-29 18:18:02
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-25 1
0:01:42
* @LastEditTime: 2024-06-25 1
3:45:27
* @FilePath: /data-table/src/views/no_auth.vue
* @Description: 文件描述
-->
<template>
<div class="table-box" :style="{ margin: is_pc ? '1rem 0' : '1rem', overflow: 'auto' }">
<div style="display: flex; align-items: center; justify-content: center; margin: 1rem auto; color: red;"><van-icon name="warning" color="red" size="1.25rem" /> 您暂无权限访问该页面</div>
<div class="text-box">
<van-icon name="warning" color="red" size="1.25rem" /> 您暂无权限访问该页面
</div>
<div>{{ formSetting }}</div>
</div>
</template>
...
...
@@ -47,5 +49,12 @@ onMounted(() => {
background-color: #ffffff;
padding-bottom: 1rem;
border-radius: 5px;
.text-box {
display: flex;
align-items: center;
justify-content: center;
margin: 1rem auto;
color: red;
}
}
</style>
...
...
Please
register
or
login
to post a comment