af-mobile-client-vue3 1.0.57 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +7 -7
- package/.env.development +4 -4
- package/.env.envoiceShow +6 -6
- package/.husky/commit-msg +1 -1
- package/.husky/pre-commit +1 -1
- package/.vscode/settings.json +61 -61
- package/build/vite/index.ts +91 -91
- package/mock/modules/user.mock.ts +152 -152
- package/package.json +107 -107
- package/public/favicon.svg +4 -4
- package/public/safari-pinned-tab.svg +32 -32
- package/scripts/verifyCommit.js +19 -19
- package/src/App.vue +43 -43
- package/src/api/user/index.ts +40 -40
- package/src/bootstrap.ts +32 -32
- package/src/components/core/Tabbar/index.vue +38 -38
- package/src/components/core/Uploader/index.vue +104 -104
- package/src/components/core/XMultiSelect/index.vue +194 -196
- package/src/components/core/XSelect/index.vue +129 -129
- package/src/components/data/XBadge/index.vue +85 -85
- package/src/components/data/XCellDetail/index.vue +106 -106
- package/src/components/data/XCellList/index.vue +358 -358
- package/src/components/data/XForm/index.vue +126 -126
- package/src/components/data/XFormItem/index.vue +471 -471
- package/src/components/data/XReportForm/XReportFormJsonRender.vue +220 -220
- package/src/components/data/XReportForm/index.vue +1058 -1058
- package/src/components/layout/NormalDataLayout/index.vue +70 -70
- package/src/components/layout/TabBarLayout/index.vue +40 -40
- package/src/components.d.ts +53 -53
- package/src/env.d.ts +16 -16
- package/src/font-style/font.css +3 -3
- package/src/hooks/useCommon.ts +8 -8
- package/src/layout/PageLayout.vue +51 -51
- package/src/layout/SingleLayout.vue +35 -35
- package/src/locales/en-US.json +25 -25
- package/src/locales/zh-CN.json +25 -25
- package/src/main.ts +48 -48
- package/src/plugins/AppData.ts +38 -38
- package/src/router/guards.ts +60 -60
- package/src/router/index.ts +60 -60
- package/src/router/invoiceRoutes.ts +33 -33
- package/src/router/routes.ts +84 -84
- package/src/services/api/common.ts +98 -98
- package/src/services/api/manage.ts +8 -8
- package/src/services/restTools.ts +37 -37
- package/src/stores/modules/user.ts +180 -180
- package/src/stores/mutation-type.ts +7 -7
- package/src/utils/crypto.ts +39 -39
- package/src/utils/dictUtil.ts +51 -51
- package/src/utils/http/index.ts +158 -158
- package/src/utils/i18n.ts +41 -41
- package/src/utils/indexedDB.ts +180 -180
- package/src/utils/mobileUtil.ts +26 -26
- package/src/utils/routerUtil.ts +271 -271
- package/src/utils/wechatUtil.ts +87 -0
- package/src/views/common/LoadError.vue +64 -64
- package/src/views/common/NotFound.vue +68 -68
- package/src/views/component/EvaluateRecordView/index.vue +40 -40
- package/src/views/component/XCellDetailView/index.vue +216 -216
- package/src/views/component/XCellListView/index.vue +36 -36
- package/src/views/component/XFormView/index.vue +477 -477
- package/src/views/component/XReportFormIframeView/index.vue +45 -45
- package/src/views/component/XReportFormView/index.vue +295 -295
- package/src/views/component/index.vue +111 -111
- package/src/views/component/menu.vue +117 -117
- package/src/views/component/notice.vue +46 -46
- package/src/views/component/topNav.vue +36 -36
- package/src/views/invoiceShow/index.vue +62 -62
- package/src/views/user/login/ForgetPasswordForm.vue +93 -93
- package/src/views/user/login/LoginForm.vue +148 -145
- package/src/views/user/login/LoginTitle.vue +68 -68
- package/src/views/user/login/index.vue +22 -22
- package/src/views/user/my/index.vue +230 -230
- package/src/vue-router.d.ts +9 -9
- package/tsconfig.json +43 -43
- package/vite.config.ts +110 -102
- package/src/icons/svg/appDome.svg +0 -1
package/.env
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
VITE_APP_PUBLIC_PATH=/example-web
|
|
2
|
-
VITE_APP_PREVIEW=true
|
|
3
|
-
VITE_APP_API_BASE_URL=/api
|
|
4
|
-
VITE_APP_WEB_CONFIG_KEY=admin.webconfig
|
|
5
|
-
VITE_APP_SYSTEM_NAME=af-system
|
|
6
|
-
# 最低兼容性 V4(最新产品)V3(V3产品) OA(公司OA)
|
|
7
|
-
VITE_APP_COMPATIBLE=
|
|
1
|
+
VITE_APP_PUBLIC_PATH=/example-web
|
|
2
|
+
VITE_APP_PREVIEW=true
|
|
3
|
+
VITE_APP_API_BASE_URL=/api
|
|
4
|
+
VITE_APP_WEB_CONFIG_KEY=admin.webconfig
|
|
5
|
+
VITE_APP_SYSTEM_NAME=af-system
|
|
6
|
+
# 最低兼容性 V4(最新产品)V3(V3产品) OA(公司OA)
|
|
7
|
+
VITE_APP_COMPATIBLE=OA
|
package/.env.development
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
NODE_ENV=development
|
|
2
|
-
VITE_APP_PUBLIC_PATH=/
|
|
3
|
-
VITE_APP_PREVIEW=true
|
|
4
|
-
VITE_APP_API_BASE_URL=/api
|
|
1
|
+
NODE_ENV=development
|
|
2
|
+
VITE_APP_PUBLIC_PATH=/
|
|
3
|
+
VITE_APP_PREVIEW=true
|
|
4
|
+
VITE_APP_API_BASE_URL=/api
|
package/.env.envoiceShow
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
VITE_APP_PUBLIC_PATH=/invoiceShow
|
|
2
|
-
VITE_APP_PREVIEW=true
|
|
3
|
-
VITE_APP_API_BASE_URL=/api
|
|
4
|
-
VITE_APP_WEB_CONFIG_KEY=admin.webconfig
|
|
5
|
-
VITE_APP_SYSTEM_NAME=af-system
|
|
6
|
-
# 最低兼容性 V4(最新产品)V3(V3产品) OA(公司OA)
|
|
1
|
+
VITE_APP_PUBLIC_PATH=/invoiceShow
|
|
2
|
+
VITE_APP_PREVIEW=true
|
|
3
|
+
VITE_APP_API_BASE_URL=/api
|
|
4
|
+
VITE_APP_WEB_CONFIG_KEY=admin.webconfig
|
|
5
|
+
VITE_APP_SYSTEM_NAME=af-system
|
|
6
|
+
# 最低兼容性 V4(最新产品)V3(V3产品) OA(公司OA)
|
|
7
7
|
VITE_APP_COMPATIBLE=V4
|
package/.husky/commit-msg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
node scripts/verifyCommit.js
|
|
1
|
+
node scripts/verifyCommit.js
|
package/.husky/pre-commit
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
pnpm lint
|
|
1
|
+
pnpm lint
|
package/.vscode/settings.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Enable the ESlint flat config support
|
|
3
|
-
"eslint.experimental.useFlatConfig": true,
|
|
4
|
-
|
|
5
|
-
// Disable the default formatter, use eslint instead
|
|
6
|
-
"prettier.enable": false,
|
|
7
|
-
"editor.formatOnSave": false,
|
|
8
|
-
|
|
9
|
-
// Auto fix
|
|
10
|
-
"editor.codeActionsOnSave": {
|
|
11
|
-
"source.fixAll": "explicit",
|
|
12
|
-
"source.organizeImports": "never"
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
// Disable the MD033 rule
|
|
16
|
-
"markdownlint.config": {
|
|
17
|
-
"default": true,
|
|
18
|
-
"MD033": false
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
// Silent the stylistic rules in you IDE, but still auto fix them
|
|
22
|
-
"eslint.rules.customizations": [
|
|
23
|
-
{ "rule": "style/*", "severity": "off" },
|
|
24
|
-
{ "rule": "*-indent", "severity": "off" },
|
|
25
|
-
{ "rule": "*-spacing", "severity": "off" },
|
|
26
|
-
{ "rule": "*-spaces", "severity": "off" },
|
|
27
|
-
{ "rule": "*-order", "severity": "off" },
|
|
28
|
-
{ "rule": "*-dangle", "severity": "off" },
|
|
29
|
-
{ "rule": "*-newline", "severity": "off" },
|
|
30
|
-
{ "rule": "*quotes", "severity": "off" },
|
|
31
|
-
{ "rule": "*semi", "severity": "off" }
|
|
32
|
-
],
|
|
33
|
-
|
|
34
|
-
// Enable eslint for all supported languages
|
|
35
|
-
"eslint.validate": [
|
|
36
|
-
"javascript",
|
|
37
|
-
"javascriptreact",
|
|
38
|
-
"typescript",
|
|
39
|
-
"typescriptreact",
|
|
40
|
-
"vue",
|
|
41
|
-
"html",
|
|
42
|
-
"markdown",
|
|
43
|
-
"json",
|
|
44
|
-
"jsonc",
|
|
45
|
-
"yaml"
|
|
46
|
-
],
|
|
47
|
-
|
|
48
|
-
// Specify the UI library you need to prompt
|
|
49
|
-
"common-intellisense.showSlots": false,
|
|
50
|
-
"common-intellisense.ui": [
|
|
51
|
-
"vant4"
|
|
52
|
-
],
|
|
53
|
-
|
|
54
|
-
// Configuration of i18n i18n-ally
|
|
55
|
-
"i18n-ally.enabledParsers": ["json"],
|
|
56
|
-
"i18n-ally.displayLanguage": "zh-CN",
|
|
57
|
-
"i18n-ally.localesPaths": [
|
|
58
|
-
"src/locales"
|
|
59
|
-
],
|
|
60
|
-
"i18n-ally.keystyle": "nested"
|
|
61
|
-
}
|
|
1
|
+
{
|
|
2
|
+
// Enable the ESlint flat config support
|
|
3
|
+
"eslint.experimental.useFlatConfig": true,
|
|
4
|
+
|
|
5
|
+
// Disable the default formatter, use eslint instead
|
|
6
|
+
"prettier.enable": false,
|
|
7
|
+
"editor.formatOnSave": false,
|
|
8
|
+
|
|
9
|
+
// Auto fix
|
|
10
|
+
"editor.codeActionsOnSave": {
|
|
11
|
+
"source.fixAll": "explicit",
|
|
12
|
+
"source.organizeImports": "never"
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
// Disable the MD033 rule
|
|
16
|
+
"markdownlint.config": {
|
|
17
|
+
"default": true,
|
|
18
|
+
"MD033": false
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
// Silent the stylistic rules in you IDE, but still auto fix them
|
|
22
|
+
"eslint.rules.customizations": [
|
|
23
|
+
{ "rule": "style/*", "severity": "off" },
|
|
24
|
+
{ "rule": "*-indent", "severity": "off" },
|
|
25
|
+
{ "rule": "*-spacing", "severity": "off" },
|
|
26
|
+
{ "rule": "*-spaces", "severity": "off" },
|
|
27
|
+
{ "rule": "*-order", "severity": "off" },
|
|
28
|
+
{ "rule": "*-dangle", "severity": "off" },
|
|
29
|
+
{ "rule": "*-newline", "severity": "off" },
|
|
30
|
+
{ "rule": "*quotes", "severity": "off" },
|
|
31
|
+
{ "rule": "*semi", "severity": "off" }
|
|
32
|
+
],
|
|
33
|
+
|
|
34
|
+
// Enable eslint for all supported languages
|
|
35
|
+
"eslint.validate": [
|
|
36
|
+
"javascript",
|
|
37
|
+
"javascriptreact",
|
|
38
|
+
"typescript",
|
|
39
|
+
"typescriptreact",
|
|
40
|
+
"vue",
|
|
41
|
+
"html",
|
|
42
|
+
"markdown",
|
|
43
|
+
"json",
|
|
44
|
+
"jsonc",
|
|
45
|
+
"yaml"
|
|
46
|
+
],
|
|
47
|
+
|
|
48
|
+
// Specify the UI library you need to prompt
|
|
49
|
+
"common-intellisense.showSlots": false,
|
|
50
|
+
"common-intellisense.ui": [
|
|
51
|
+
"vant4"
|
|
52
|
+
],
|
|
53
|
+
|
|
54
|
+
// Configuration of i18n i18n-ally
|
|
55
|
+
"i18n-ally.enabledParsers": ["json"],
|
|
56
|
+
"i18n-ally.displayLanguage": "zh-CN",
|
|
57
|
+
"i18n-ally.localesPaths": [
|
|
58
|
+
"src/locales"
|
|
59
|
+
],
|
|
60
|
+
"i18n-ally.keystyle": "nested"
|
|
61
|
+
}
|
package/build/vite/index.ts
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import process from 'node:process'
|
|
3
|
-
import vue from '@vitejs/plugin-vue'
|
|
4
|
-
import legacy from '@vitejs/plugin-legacy'
|
|
5
|
-
import UnoCSS from 'unocss/vite'
|
|
6
|
-
import viteCompression from 'vite-plugin-compression'
|
|
7
|
-
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
|
|
8
|
-
import { VitePWA } from 'vite-plugin-pwa'
|
|
9
|
-
import Sitemap from 'vite-plugin-sitemap'
|
|
10
|
-
import mockDevServerPlugin from 'vite-plugin-mock-dev-server'
|
|
11
|
-
import { createViteVConsole } from './vconsole'
|
|
12
|
-
|
|
13
|
-
export function createVitePlugins() {
|
|
14
|
-
const root = process.cwd()
|
|
15
|
-
|
|
16
|
-
return [
|
|
17
|
-
vue({
|
|
18
|
-
template: {
|
|
19
|
-
compilerOptions: {
|
|
20
|
-
// 注册自定义组件micro-app 防止控制台警告
|
|
21
|
-
isCustomElement: tag => tag.startsWith('micro-app'),
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
}),
|
|
25
|
-
|
|
26
|
-
// https://github.com/jbaubree/vite-plugin-sitemap
|
|
27
|
-
Sitemap(),
|
|
28
|
-
|
|
29
|
-
// https://github.com/pengzhanbo/vite-plugin-mock-dev-server
|
|
30
|
-
mockDevServerPlugin(),
|
|
31
|
-
|
|
32
|
-
// svg icon
|
|
33
|
-
createSvgIconsPlugin({
|
|
34
|
-
// 指定图标文件夹
|
|
35
|
-
iconDirs: [path.resolve(root, 'src/icons/svg')],
|
|
36
|
-
// 指定 symbolId 格式
|
|
37
|
-
symbolId: 'icon-[dir]-[name]',
|
|
38
|
-
}),
|
|
39
|
-
|
|
40
|
-
// 生产环境 gzip 压缩资源
|
|
41
|
-
viteCompression({
|
|
42
|
-
algorithm: 'gzip',
|
|
43
|
-
// 文件大于10240b(10kb)时才压缩文件
|
|
44
|
-
threshold: 10240,
|
|
45
|
-
// 禁止在控制台输出压缩结果
|
|
46
|
-
verbose: false,
|
|
47
|
-
// 压缩完文件后删除源文件
|
|
48
|
-
deleteOriginFile: false,
|
|
49
|
-
}),
|
|
50
|
-
|
|
51
|
-
legacy({
|
|
52
|
-
targets: ['defaults', 'not IE 11'],
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
// https://github.com/antfu/unocss
|
|
56
|
-
// see uno.config.ts for config
|
|
57
|
-
UnoCSS(),
|
|
58
|
-
|
|
59
|
-
// https://github.com/vadxq/vite-plugin-vconsole
|
|
60
|
-
createViteVConsole(),
|
|
61
|
-
|
|
62
|
-
// https://github.com/antfu/vite-plugin-pwa
|
|
63
|
-
VitePWA({
|
|
64
|
-
registerType: 'autoUpdate',
|
|
65
|
-
includeAssets: ['favicon.svg', 'safari-pinned-tab.svg'],
|
|
66
|
-
manifest: {
|
|
67
|
-
name: 'af-mobile-client-vue3',
|
|
68
|
-
short_name: 'af-mobile-client-vue3',
|
|
69
|
-
theme_color: '#ffffff',
|
|
70
|
-
icons: [
|
|
71
|
-
{
|
|
72
|
-
src: '/pwa-192x192.png',
|
|
73
|
-
sizes: '192x192',
|
|
74
|
-
type: 'image/png',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
src: '/pwa-512x512.png',
|
|
78
|
-
sizes: '512x512',
|
|
79
|
-
type: 'image/png',
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
src: '/pwa-512x512.png',
|
|
83
|
-
sizes: '512x512',
|
|
84
|
-
type: 'image/png',
|
|
85
|
-
purpose: 'any maskable',
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
}),
|
|
90
|
-
]
|
|
91
|
-
}
|
|
1
|
+
import path from 'node:path'
|
|
2
|
+
import process from 'node:process'
|
|
3
|
+
import vue from '@vitejs/plugin-vue'
|
|
4
|
+
import legacy from '@vitejs/plugin-legacy'
|
|
5
|
+
import UnoCSS from 'unocss/vite'
|
|
6
|
+
import viteCompression from 'vite-plugin-compression'
|
|
7
|
+
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
|
|
8
|
+
import { VitePWA } from 'vite-plugin-pwa'
|
|
9
|
+
import Sitemap from 'vite-plugin-sitemap'
|
|
10
|
+
import mockDevServerPlugin from 'vite-plugin-mock-dev-server'
|
|
11
|
+
import { createViteVConsole } from './vconsole'
|
|
12
|
+
|
|
13
|
+
export function createVitePlugins() {
|
|
14
|
+
const root = process.cwd()
|
|
15
|
+
|
|
16
|
+
return [
|
|
17
|
+
vue({
|
|
18
|
+
template: {
|
|
19
|
+
compilerOptions: {
|
|
20
|
+
// 注册自定义组件micro-app 防止控制台警告
|
|
21
|
+
isCustomElement: tag => tag.startsWith('micro-app'),
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
}),
|
|
25
|
+
|
|
26
|
+
// https://github.com/jbaubree/vite-plugin-sitemap
|
|
27
|
+
Sitemap(),
|
|
28
|
+
|
|
29
|
+
// https://github.com/pengzhanbo/vite-plugin-mock-dev-server
|
|
30
|
+
mockDevServerPlugin(),
|
|
31
|
+
|
|
32
|
+
// svg icon
|
|
33
|
+
createSvgIconsPlugin({
|
|
34
|
+
// 指定图标文件夹
|
|
35
|
+
iconDirs: [path.resolve(root, 'src/icons/svg')],
|
|
36
|
+
// 指定 symbolId 格式
|
|
37
|
+
symbolId: 'icon-[dir]-[name]',
|
|
38
|
+
}),
|
|
39
|
+
|
|
40
|
+
// 生产环境 gzip 压缩资源
|
|
41
|
+
viteCompression({
|
|
42
|
+
algorithm: 'gzip',
|
|
43
|
+
// 文件大于10240b(10kb)时才压缩文件
|
|
44
|
+
threshold: 10240,
|
|
45
|
+
// 禁止在控制台输出压缩结果
|
|
46
|
+
verbose: false,
|
|
47
|
+
// 压缩完文件后删除源文件
|
|
48
|
+
deleteOriginFile: false,
|
|
49
|
+
}),
|
|
50
|
+
|
|
51
|
+
legacy({
|
|
52
|
+
targets: ['defaults', 'not IE 11'],
|
|
53
|
+
}),
|
|
54
|
+
|
|
55
|
+
// https://github.com/antfu/unocss
|
|
56
|
+
// see uno.config.ts for config
|
|
57
|
+
UnoCSS(),
|
|
58
|
+
|
|
59
|
+
// https://github.com/vadxq/vite-plugin-vconsole
|
|
60
|
+
createViteVConsole(),
|
|
61
|
+
|
|
62
|
+
// https://github.com/antfu/vite-plugin-pwa
|
|
63
|
+
VitePWA({
|
|
64
|
+
registerType: 'autoUpdate',
|
|
65
|
+
includeAssets: ['favicon.svg', 'safari-pinned-tab.svg'],
|
|
66
|
+
manifest: {
|
|
67
|
+
name: 'af-mobile-client-vue3',
|
|
68
|
+
short_name: 'af-mobile-client-vue3',
|
|
69
|
+
theme_color: '#ffffff',
|
|
70
|
+
icons: [
|
|
71
|
+
{
|
|
72
|
+
src: '/pwa-192x192.png',
|
|
73
|
+
sizes: '192x192',
|
|
74
|
+
type: 'image/png',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
src: '/pwa-512x512.png',
|
|
78
|
+
sizes: '512x512',
|
|
79
|
+
type: 'image/png',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
src: '/pwa-512x512.png',
|
|
83
|
+
sizes: '512x512',
|
|
84
|
+
type: 'image/png',
|
|
85
|
+
purpose: 'any maskable',
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
}),
|
|
90
|
+
]
|
|
91
|
+
}
|
|
@@ -1,152 +1,152 @@
|
|
|
1
|
-
// https://github.com/pengzhanbo/vite-plugin-mock-dev-server
|
|
2
|
-
import { defineMock } from 'vite-plugin-mock-dev-server'
|
|
3
|
-
|
|
4
|
-
export default defineMock([{
|
|
5
|
-
url: '/rs/logic/getLogin',
|
|
6
|
-
delay: 300,
|
|
7
|
-
body: () => {
|
|
8
|
-
return {
|
|
9
|
-
jwt: '60436',
|
|
10
|
-
states: '登陆成功',
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
}, {
|
|
14
|
-
url: '/af-auth/login',
|
|
15
|
-
delay: 300,
|
|
16
|
-
body: () => {
|
|
17
|
-
return {
|
|
18
|
-
code: 200,
|
|
19
|
-
error: false,
|
|
20
|
-
success: true,
|
|
21
|
-
msg: null,
|
|
22
|
-
data: {
|
|
23
|
-
access_token: 'eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2tleSI6IjFjZWQ4YTFmLWQ0NTctNDkxYi1iNDUzLTZiNTkyZWVlMWEyNSIsImZfdXNlcm5hbWUiOiJhZG1pbjIiLCJpZCI6MTIyMTM4fQ.AvIlpXKyf2wJ1acjpiorSHsSaKoCwx4bgPFkVk-qN7iZFFxldEC2qi9IKhu-5Xgz_WAf8VjFdaUWZlvVtefIDA',
|
|
24
|
-
expires_in: 720,
|
|
25
|
-
resources: {
|
|
26
|
-
code: 200,
|
|
27
|
-
data: {
|
|
28
|
-
accesstime: '1706695089844',
|
|
29
|
-
deleted: 'false',
|
|
30
|
-
depids: '45500',
|
|
31
|
-
deps: '滨河营业厅',
|
|
32
|
-
deptype: '营业厅',
|
|
33
|
-
dir: 'standard_windows',
|
|
34
|
-
ename: 'admin2',
|
|
35
|
-
entitytype: 't_user',
|
|
36
|
-
f_age: '',
|
|
37
|
-
f_create_date: '2022-11-22 11:50:52',
|
|
38
|
-
f_department_name: '滨河营业厅',
|
|
39
|
-
f_description: '',
|
|
40
|
-
f_dir: 'standard_windows',
|
|
41
|
-
f_extend1: 'null',
|
|
42
|
-
f_extend2: 'null',
|
|
43
|
-
f_icon: 'tree_user',
|
|
44
|
-
f_idnumber: '',
|
|
45
|
-
f_last_modification_time: '2023-07-03 11:39:40',
|
|
46
|
-
f_ldap_version: 5154,
|
|
47
|
-
f_mac_adress: 'null',
|
|
48
|
-
f_old_userid: 'null',
|
|
49
|
-
f_role_name: '安检员 客服中心管理员 营业员 收费员 客服中心管理员(气价设置) 呼叫员 乌达区派单员 测试营业员 海勃湾区派单员 安检管理员 维修员 系统管理 管理员 ',
|
|
50
|
-
f_sex: '男',
|
|
51
|
-
f_show_department_name: 'null',
|
|
52
|
-
f_show_rolestr: 'null',
|
|
53
|
-
f_update_date: '2024-01-16 15:00:11',
|
|
54
|
-
f_user_macip: 'null',
|
|
55
|
-
f_user_telephone: '',
|
|
56
|
-
forceoutstate: '1',
|
|
57
|
-
fullids: '37710.45500.122138.',
|
|
58
|
-
fullnames: ' 安康逸华天然气有限公司.滨河营业厅.管理员',
|
|
59
|
-
haslicense: 'false',
|
|
60
|
-
id: '122138',
|
|
61
|
-
imgid: 'null',
|
|
62
|
-
initpassword: '000000',
|
|
63
|
-
login_address: 'XX XX',
|
|
64
|
-
logindate: '2024-02-01 10:41:22',
|
|
65
|
-
loginid: '15',
|
|
66
|
-
loginip: '61.150.12.251',
|
|
67
|
-
loginnum: 1,
|
|
68
|
-
loginnumber: 'null',
|
|
69
|
-
name: '管理员',
|
|
70
|
-
number: '',
|
|
71
|
-
orgid: '37710',
|
|
72
|
-
orgs: ' 安康逸华天然气有限公司',
|
|
73
|
-
parentid: '45500',
|
|
74
|
-
parentname: '滨河营业厅',
|
|
75
|
-
position: '18',
|
|
76
|
-
qrcode: '/rs/user/getQRcode?QRCODE=1d91-1669088967031-19905',
|
|
77
|
-
resourcetype: 'user',
|
|
78
|
-
roles: '63342,202099,185540,190376,201979,226308,244916,63336,276279,169595,63132,63192,278593,278597',
|
|
79
|
-
rolesnames: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
|
|
80
|
-
rolestr: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
|
|
81
|
-
selfid: '122139',
|
|
82
|
-
state: '在职',
|
|
83
|
-
tablename: 't_user',
|
|
84
|
-
templatename: 'useredit',
|
|
85
|
-
token: '122138',
|
|
86
|
-
ticket: null,
|
|
87
|
-
url: null,
|
|
88
|
-
userid: '31f7-1631780331801-89562',
|
|
89
|
-
function: [],
|
|
90
|
-
},
|
|
91
|
-
msg: '操作成功',
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
}, {
|
|
97
|
-
url: '/rs/logic/getLogin/智慧燃气',
|
|
98
|
-
delay: 300,
|
|
99
|
-
body: () => {
|
|
100
|
-
return {
|
|
101
|
-
accesstime: '1706694963867',
|
|
102
|
-
deleted: 'false',
|
|
103
|
-
depids: '108646',
|
|
104
|
-
deps: '客户服务热线班组',
|
|
105
|
-
deptype: '部门',
|
|
106
|
-
dir: 'tctrq',
|
|
107
|
-
ename: 'cs',
|
|
108
|
-
entitytype: 't_user',
|
|
109
|
-
f_create_date: null,
|
|
110
|
-
f_department_name: '客户服务热线班组',
|
|
111
|
-
f_icon: 'tree_user',
|
|
112
|
-
f_mac_adress: null,
|
|
113
|
-
f_old_userid: null,
|
|
114
|
-
f_role_name: '系统管理员 维修员 派单员 维修员 派单员 管理员 需要定位人员 用户管理员 班组长 安检员 安检员 抄表员 维修员 派单员 ',
|
|
115
|
-
f_sex: '男',
|
|
116
|
-
f_update_date: '2023-05-31 14:12:16',
|
|
117
|
-
f_user_macip: null,
|
|
118
|
-
forceoutstate: '0',
|
|
119
|
-
fullids: '46997.108646.60436.',
|
|
120
|
-
fullnames: '铜川市天然气.客户服务热线班组.测试',
|
|
121
|
-
haslicense: 'true',
|
|
122
|
-
id: '60436',
|
|
123
|
-
imgid: null,
|
|
124
|
-
initpassword: '1',
|
|
125
|
-
logindate: '09 27 2022 10:11AM',
|
|
126
|
-
loginid: '15',
|
|
127
|
-
loginip: '192.168.17.106',
|
|
128
|
-
loginnum: '0',
|
|
129
|
-
loginnumber: null,
|
|
130
|
-
name: '测试',
|
|
131
|
-
number: '1007',
|
|
132
|
-
orgid: '46997',
|
|
133
|
-
orgs: '铜川市天然气',
|
|
134
|
-
parentid: '108646',
|
|
135
|
-
parentname: '客户服务热线班组',
|
|
136
|
-
position: '2',
|
|
137
|
-
qrcode: '/rs/user/getQRcode?QRCODE=31f7-1631780331801-89562',
|
|
138
|
-
resourcetype: 'user',
|
|
139
|
-
roles: '63342,202099,185540,190376,201979,226308,244916,63336,276279,169595,63132,63192,278593,278597',
|
|
140
|
-
rolesnames: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
|
|
141
|
-
rolestr: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
|
|
142
|
-
selfid: '60437',
|
|
143
|
-
state: '在职',
|
|
144
|
-
tablename: 't_user',
|
|
145
|
-
templatename: 'useredit',
|
|
146
|
-
ticket: null,
|
|
147
|
-
url: null,
|
|
148
|
-
userid: '31f7-1631780331801-89562',
|
|
149
|
-
functions: [],
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
}])
|
|
1
|
+
// https://github.com/pengzhanbo/vite-plugin-mock-dev-server
|
|
2
|
+
import { defineMock } from 'vite-plugin-mock-dev-server'
|
|
3
|
+
|
|
4
|
+
export default defineMock([{
|
|
5
|
+
url: '/rs/logic/getLogin',
|
|
6
|
+
delay: 300,
|
|
7
|
+
body: () => {
|
|
8
|
+
return {
|
|
9
|
+
jwt: '60436',
|
|
10
|
+
states: '登陆成功',
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
}, {
|
|
14
|
+
url: '/af-auth/login',
|
|
15
|
+
delay: 300,
|
|
16
|
+
body: () => {
|
|
17
|
+
return {
|
|
18
|
+
code: 200,
|
|
19
|
+
error: false,
|
|
20
|
+
success: true,
|
|
21
|
+
msg: null,
|
|
22
|
+
data: {
|
|
23
|
+
access_token: 'eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2tleSI6IjFjZWQ4YTFmLWQ0NTctNDkxYi1iNDUzLTZiNTkyZWVlMWEyNSIsImZfdXNlcm5hbWUiOiJhZG1pbjIiLCJpZCI6MTIyMTM4fQ.AvIlpXKyf2wJ1acjpiorSHsSaKoCwx4bgPFkVk-qN7iZFFxldEC2qi9IKhu-5Xgz_WAf8VjFdaUWZlvVtefIDA',
|
|
24
|
+
expires_in: 720,
|
|
25
|
+
resources: {
|
|
26
|
+
code: 200,
|
|
27
|
+
data: {
|
|
28
|
+
accesstime: '1706695089844',
|
|
29
|
+
deleted: 'false',
|
|
30
|
+
depids: '45500',
|
|
31
|
+
deps: '滨河营业厅',
|
|
32
|
+
deptype: '营业厅',
|
|
33
|
+
dir: 'standard_windows',
|
|
34
|
+
ename: 'admin2',
|
|
35
|
+
entitytype: 't_user',
|
|
36
|
+
f_age: '',
|
|
37
|
+
f_create_date: '2022-11-22 11:50:52',
|
|
38
|
+
f_department_name: '滨河营业厅',
|
|
39
|
+
f_description: '',
|
|
40
|
+
f_dir: 'standard_windows',
|
|
41
|
+
f_extend1: 'null',
|
|
42
|
+
f_extend2: 'null',
|
|
43
|
+
f_icon: 'tree_user',
|
|
44
|
+
f_idnumber: '',
|
|
45
|
+
f_last_modification_time: '2023-07-03 11:39:40',
|
|
46
|
+
f_ldap_version: 5154,
|
|
47
|
+
f_mac_adress: 'null',
|
|
48
|
+
f_old_userid: 'null',
|
|
49
|
+
f_role_name: '安检员 客服中心管理员 营业员 收费员 客服中心管理员(气价设置) 呼叫员 乌达区派单员 测试营业员 海勃湾区派单员 安检管理员 维修员 系统管理 管理员 ',
|
|
50
|
+
f_sex: '男',
|
|
51
|
+
f_show_department_name: 'null',
|
|
52
|
+
f_show_rolestr: 'null',
|
|
53
|
+
f_update_date: '2024-01-16 15:00:11',
|
|
54
|
+
f_user_macip: 'null',
|
|
55
|
+
f_user_telephone: '',
|
|
56
|
+
forceoutstate: '1',
|
|
57
|
+
fullids: '37710.45500.122138.',
|
|
58
|
+
fullnames: ' 安康逸华天然气有限公司.滨河营业厅.管理员',
|
|
59
|
+
haslicense: 'false',
|
|
60
|
+
id: '122138',
|
|
61
|
+
imgid: 'null',
|
|
62
|
+
initpassword: '000000',
|
|
63
|
+
login_address: 'XX XX',
|
|
64
|
+
logindate: '2024-02-01 10:41:22',
|
|
65
|
+
loginid: '15',
|
|
66
|
+
loginip: '61.150.12.251',
|
|
67
|
+
loginnum: 1,
|
|
68
|
+
loginnumber: 'null',
|
|
69
|
+
name: '管理员',
|
|
70
|
+
number: '',
|
|
71
|
+
orgid: '37710',
|
|
72
|
+
orgs: ' 安康逸华天然气有限公司',
|
|
73
|
+
parentid: '45500',
|
|
74
|
+
parentname: '滨河营业厅',
|
|
75
|
+
position: '18',
|
|
76
|
+
qrcode: '/rs/user/getQRcode?QRCODE=1d91-1669088967031-19905',
|
|
77
|
+
resourcetype: 'user',
|
|
78
|
+
roles: '63342,202099,185540,190376,201979,226308,244916,63336,276279,169595,63132,63192,278593,278597',
|
|
79
|
+
rolesnames: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
|
|
80
|
+
rolestr: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
|
|
81
|
+
selfid: '122139',
|
|
82
|
+
state: '在职',
|
|
83
|
+
tablename: 't_user',
|
|
84
|
+
templatename: 'useredit',
|
|
85
|
+
token: '122138',
|
|
86
|
+
ticket: null,
|
|
87
|
+
url: null,
|
|
88
|
+
userid: '31f7-1631780331801-89562',
|
|
89
|
+
function: [],
|
|
90
|
+
},
|
|
91
|
+
msg: '操作成功',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
}, {
|
|
97
|
+
url: '/rs/logic/getLogin/智慧燃气',
|
|
98
|
+
delay: 300,
|
|
99
|
+
body: () => {
|
|
100
|
+
return {
|
|
101
|
+
accesstime: '1706694963867',
|
|
102
|
+
deleted: 'false',
|
|
103
|
+
depids: '108646',
|
|
104
|
+
deps: '客户服务热线班组',
|
|
105
|
+
deptype: '部门',
|
|
106
|
+
dir: 'tctrq',
|
|
107
|
+
ename: 'cs',
|
|
108
|
+
entitytype: 't_user',
|
|
109
|
+
f_create_date: null,
|
|
110
|
+
f_department_name: '客户服务热线班组',
|
|
111
|
+
f_icon: 'tree_user',
|
|
112
|
+
f_mac_adress: null,
|
|
113
|
+
f_old_userid: null,
|
|
114
|
+
f_role_name: '系统管理员 维修员 派单员 维修员 派单员 管理员 需要定位人员 用户管理员 班组长 安检员 安检员 抄表员 维修员 派单员 ',
|
|
115
|
+
f_sex: '男',
|
|
116
|
+
f_update_date: '2023-05-31 14:12:16',
|
|
117
|
+
f_user_macip: null,
|
|
118
|
+
forceoutstate: '0',
|
|
119
|
+
fullids: '46997.108646.60436.',
|
|
120
|
+
fullnames: '铜川市天然气.客户服务热线班组.测试',
|
|
121
|
+
haslicense: 'true',
|
|
122
|
+
id: '60436',
|
|
123
|
+
imgid: null,
|
|
124
|
+
initpassword: '1',
|
|
125
|
+
logindate: '09 27 2022 10:11AM',
|
|
126
|
+
loginid: '15',
|
|
127
|
+
loginip: '192.168.17.106',
|
|
128
|
+
loginnum: '0',
|
|
129
|
+
loginnumber: null,
|
|
130
|
+
name: '测试',
|
|
131
|
+
number: '1007',
|
|
132
|
+
orgid: '46997',
|
|
133
|
+
orgs: '铜川市天然气',
|
|
134
|
+
parentid: '108646',
|
|
135
|
+
parentname: '客户服务热线班组',
|
|
136
|
+
position: '2',
|
|
137
|
+
qrcode: '/rs/user/getQRcode?QRCODE=31f7-1631780331801-89562',
|
|
138
|
+
resourcetype: 'user',
|
|
139
|
+
roles: '63342,202099,185540,190376,201979,226308,244916,63336,276279,169595,63132,63192,278593,278597',
|
|
140
|
+
rolesnames: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
|
|
141
|
+
rolestr: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
|
|
142
|
+
selfid: '60437',
|
|
143
|
+
state: '在职',
|
|
144
|
+
tablename: 't_user',
|
|
145
|
+
templatename: 'useredit',
|
|
146
|
+
ticket: null,
|
|
147
|
+
url: null,
|
|
148
|
+
userid: '31f7-1631780331801-89562',
|
|
149
|
+
functions: [],
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
}])
|