af-mobile-client-vue3 1.0.91 → 1.0.93
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.development +4 -4
- package/build/vite/index.ts +91 -91
- package/index.html +17 -17
- package/package.json +120 -108
- package/src/api/user/index.ts +40 -40
- package/src/components/data/XBadge/index.vue +1 -1
- package/src/components/data/XCellList/index.vue +13 -10
- package/src/components/data/XCellListFilter/QrScanner/index.vue +207 -0
- package/src/components/data/XCellListFilter/QrScanner/startScanAnimation.ts +53 -0
- package/src/components/data/XCellListFilter/VpnRecognition/index.vue +119 -0
- package/src/components/data/XCellListFilter/index.vue +253 -63
- package/src/components/data/XForm/index.vue +153 -153
- package/src/components/data/XFormItem/index.vue +997 -997
- package/src/components.d.ts +53 -53
- package/src/main.ts +5 -5
- package/src/router/index.ts +60 -60
- package/src/router/routes.ts +145 -145
- package/src/services/api/Login.ts +6 -6
- package/src/views/component/EvaluateRecordView/index.vue +40 -40
- package/src/views/component/XFormAppraiseView/index.vue +174 -169
- package/src/views/component/index.vue +127 -127
- package/certs/127.0.0.1+2-key.pem +0 -28
- package/certs/127.0.0.1+2.pem +0 -27
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/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
|
+
}
|
package/index.html
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="theme-color" content="#ffffff" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=no"/>
|
|
7
|
-
<link rel="icon" href="/favicon.ico" />
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="system-app"></div>
|
|
11
|
-
<script type="module" src="/src/main.ts"></script>
|
|
12
|
-
<noscript>
|
|
13
|
-
This website requires JavaScript to function properly.
|
|
14
|
-
Please enable JavaScript to continue.
|
|
15
|
-
</noscript>
|
|
16
|
-
</body>
|
|
17
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="theme-color" content="#ffffff" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=no"/>
|
|
7
|
+
<link rel="icon" href="/favicon.ico" />
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="system-app"></div>
|
|
11
|
+
<script type="module" src="/src/main.ts"></script>
|
|
12
|
+
<noscript>
|
|
13
|
+
This website requires JavaScript to function properly.
|
|
14
|
+
Please enable JavaScript to continue.
|
|
15
|
+
</noscript>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,108 +1,120 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "af-mobile-client-vue3",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"@
|
|
26
|
-
"@vant/
|
|
27
|
-
"@
|
|
28
|
-
"
|
|
29
|
-
"axios": "^1.
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"pinia": "^2.
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "af-mobile-client-vue3",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.0.93",
|
|
5
|
+
"packageManager": "pnpm@10.7.0",
|
|
6
|
+
"description": "Vue + Vite component lib",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "cross-env MOCK_SERVER_PORT=8086 vite",
|
|
10
|
+
"build": "vue-tsc --noEmit && vite build",
|
|
11
|
+
"build:dev": "vue-tsc --noEmit && vite build --mode=development",
|
|
12
|
+
"preview": "vite preview",
|
|
13
|
+
"lint": "eslint . && vue-tsc --noEmit",
|
|
14
|
+
"lint:fix": "eslint . --fix",
|
|
15
|
+
"test": "vitest",
|
|
16
|
+
"release": "bumpp --commit --push --tag"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@micro-zoe/micro-app": "1.0.0-rc.24",
|
|
20
|
+
"@vant/area-data": "^2.0.0",
|
|
21
|
+
"animate.css": "^4.1.1",
|
|
22
|
+
"crypto-js": "^4.2.0",
|
|
23
|
+
"qs": "^6.14.0",
|
|
24
|
+
"store": "^2.0.12",
|
|
25
|
+
"@unhead/vue": "^2.0.5",
|
|
26
|
+
"@vant/touch-emulator": "^1.4.0",
|
|
27
|
+
"@vant/use": "^1.6.0",
|
|
28
|
+
"@vueuse/core": "^13.1.0",
|
|
29
|
+
"axios": "^1.8.4",
|
|
30
|
+
"echarts": "^5.6.0",
|
|
31
|
+
"lodash-es": "^4.17.21",
|
|
32
|
+
"nprogress": "^0.2.0",
|
|
33
|
+
"pinia": "^3.0.2",
|
|
34
|
+
"pinia-plugin-persistedstate": "^4.2.0",
|
|
35
|
+
"resize-detector": "^0.3.0",
|
|
36
|
+
"vant": "^4.9.18",
|
|
37
|
+
"vconsole": "^3.15.1",
|
|
38
|
+
"vue": "^3.5.13",
|
|
39
|
+
"vue-i18n": "^11.1.3",
|
|
40
|
+
"vue-router": "^4.5.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/crypto-js": "^4.2.2",
|
|
44
|
+
"@types/store": "^2.0.5",
|
|
45
|
+
"commitizen": "^4.3.1",
|
|
46
|
+
"cz-emoji-chinese": "^0.3.1",
|
|
47
|
+
"eslint-ts-patch": "^8.57.0-0",
|
|
48
|
+
"husky": "^9.1.7",
|
|
49
|
+
"vite-plugin-compression": "^0.5.1",
|
|
50
|
+
"vite-plugin-svg-icons": "^2.0.1",
|
|
51
|
+
"vite-plugin-vue-layouts": "^0.11.0",
|
|
52
|
+
"@antfu/eslint-config": "^4.12.0",
|
|
53
|
+
"@commitlint/cli": "^19.8.0",
|
|
54
|
+
"@commitlint/config-conventional": "^19.8.0",
|
|
55
|
+
"@commitlint/types": "^19.8.0",
|
|
56
|
+
"@iconify-json/carbon": "^1.2.8",
|
|
57
|
+
"@intlify/unplugin-vue-i18n": "^6.0.5",
|
|
58
|
+
"@types/lodash-es": "^4.17.12",
|
|
59
|
+
"@types/node": "^22.14.1",
|
|
60
|
+
"@types/nprogress": "^0.2.3",
|
|
61
|
+
"@unocss/eslint-plugin": "^66.1.0-beta.11",
|
|
62
|
+
"@unocss/preset-rem-to-px": "66.1.0-beta.11",
|
|
63
|
+
"@vant/auto-import-resolver": "^1.3.0",
|
|
64
|
+
"@vitejs/plugin-legacy": "^6.0.2",
|
|
65
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
66
|
+
"autoprefixer": "^10.4.21",
|
|
67
|
+
"bumpp": "^10.1.0",
|
|
68
|
+
"consola": "^3.4.2",
|
|
69
|
+
"cross-env": "^7.0.3",
|
|
70
|
+
"eslint": "^9.24.0",
|
|
71
|
+
"eslint-plugin-format": "^1.0.1",
|
|
72
|
+
"less": "^4.3.0",
|
|
73
|
+
"lint-staged": "^15.5.1",
|
|
74
|
+
"mockjs": "^1.1.0",
|
|
75
|
+
"postcss-mobile-forever": "^5.0.0",
|
|
76
|
+
"rollup": "^4.40.0",
|
|
77
|
+
"simple-git-hooks": "^2.12.1",
|
|
78
|
+
"terser": "^5.39.0",
|
|
79
|
+
"typescript": "^5.8.3",
|
|
80
|
+
"unocss": "^66.1.0-beta.11",
|
|
81
|
+
"unplugin-auto-import": "^19.1.2",
|
|
82
|
+
"unplugin-vue-components": "^28.4.1",
|
|
83
|
+
"unplugin-vue-router": "^0.12.0",
|
|
84
|
+
"vite": "^6.2.6",
|
|
85
|
+
"vite-plugin-mock-dev-server": "^1.8.5",
|
|
86
|
+
"vite-plugin-pwa": "^1.0.0",
|
|
87
|
+
"vite-plugin-sitemap": "^0.7.1",
|
|
88
|
+
"vite-plugin-vconsole": "^2.1.1",
|
|
89
|
+
"vite-plugin-vue-devtools": "^7.7.2",
|
|
90
|
+
"vitest": "^3.1.1",
|
|
91
|
+
"vue-tsc": "^2.2.8"
|
|
92
|
+
},
|
|
93
|
+
"pnpm": {
|
|
94
|
+
"allowedDeprecatedVersions": {
|
|
95
|
+
"glob": "7.2.3",
|
|
96
|
+
"inflight": "1.0.6",
|
|
97
|
+
"sourcemap-codec": "1.4.8"
|
|
98
|
+
},
|
|
99
|
+
"peerDependencyRules": {
|
|
100
|
+
"allowedVersions": {
|
|
101
|
+
"typescript": "5.8.2"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"onlyBuiltDependencies": [
|
|
105
|
+
"core-js",
|
|
106
|
+
"esbuild",
|
|
107
|
+
"simple-git-hooks"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"resolutions": {
|
|
111
|
+
"vite": "^6.2.4"
|
|
112
|
+
},
|
|
113
|
+
"simple-git-hooks": {
|
|
114
|
+
"pre-commit": "pnpm lint-staged",
|
|
115
|
+
"commit-msg": "pnpm commitlint $1"
|
|
116
|
+
},
|
|
117
|
+
"lint-staged": {
|
|
118
|
+
"*": "eslint --fix"
|
|
119
|
+
}
|
|
120
|
+
}
|
package/src/api/user/index.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { http } from '@af-mobile-client-vue3/utils/http'
|
|
2
|
-
|
|
3
|
-
import { loginApi } from '@af-mobile-client-vue3/services/api/Login'
|
|
4
|
-
import { get, post } from '@af-mobile-client-vue3/services/restTools'
|
|
5
|
-
|
|
6
|
-
export interface BasicResponseModel<T = any> {
|
|
7
|
-
code: number
|
|
8
|
-
msg: string
|
|
9
|
-
data: T
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function login(data: any) {
|
|
13
|
-
return post(
|
|
14
|
-
loginApi.Login,
|
|
15
|
-
data,
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function OALogin(data: any) {
|
|
20
|
-
return get(`/af-system/user/${data.username}/${data.password}/智慧OA`)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @description: 获取用户信息
|
|
25
|
-
*/
|
|
26
|
-
export function getUserInfo() {
|
|
27
|
-
return get(
|
|
28
|
-
'/getUserInfo',
|
|
29
|
-
)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @description: 用户登出
|
|
34
|
-
*/
|
|
35
|
-
export function doLogout() {
|
|
36
|
-
return http.request({
|
|
37
|
-
url: loginApi.Logout,
|
|
38
|
-
method: 'DELETE',
|
|
39
|
-
})
|
|
40
|
-
}
|
|
1
|
+
import { http } from '@af-mobile-client-vue3/utils/http'
|
|
2
|
+
|
|
3
|
+
import { loginApi } from '@af-mobile-client-vue3/services/api/Login'
|
|
4
|
+
import { get, post } from '@af-mobile-client-vue3/services/restTools'
|
|
5
|
+
|
|
6
|
+
export interface BasicResponseModel<T = any> {
|
|
7
|
+
code: number
|
|
8
|
+
msg: string
|
|
9
|
+
data: T
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function login(data: any) {
|
|
13
|
+
return post(
|
|
14
|
+
loginApi.Login,
|
|
15
|
+
data,
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function OALogin(data: any) {
|
|
20
|
+
return get(`/af-system/user/${data.username}/${data.password}/智慧OA`)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @description: 获取用户信息
|
|
25
|
+
*/
|
|
26
|
+
export function getUserInfo() {
|
|
27
|
+
return get(
|
|
28
|
+
'/getUserInfo',
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @description: 用户登出
|
|
34
|
+
*/
|
|
35
|
+
export function doLogout() {
|
|
36
|
+
return http.request({
|
|
37
|
+
url: loginApi.Logout,
|
|
38
|
+
method: 'DELETE',
|
|
39
|
+
})
|
|
40
|
+
}
|
|
@@ -32,7 +32,7 @@ const { configName, serviceName, fixQueryForm } = withDefaults(defineProps<{
|
|
|
32
32
|
serviceName: undefined,
|
|
33
33
|
})
|
|
34
34
|
|
|
35
|
-
const emit = defineEmits([
|
|
35
|
+
const emit = defineEmits([])
|
|
36
36
|
|
|
37
37
|
const router = useRouter()
|
|
38
38
|
|
|
@@ -93,7 +93,7 @@ const pageSize = 20
|
|
|
93
93
|
|
|
94
94
|
const searchValue = ref('')
|
|
95
95
|
|
|
96
|
-
const inputSpan = ref(
|
|
96
|
+
const inputSpan = ref(16)
|
|
97
97
|
|
|
98
98
|
// 数据加载状态
|
|
99
99
|
const loading = ref(false)
|
|
@@ -313,9 +313,9 @@ function addOption() {
|
|
|
313
313
|
// emit('addOption', totalCount.value)
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
//
|
|
317
|
-
function
|
|
318
|
-
emit(
|
|
316
|
+
// 处理按钮点击
|
|
317
|
+
function handleButtonClick(btn, item) {
|
|
318
|
+
emit(`${btn.btnIcon}`, item)
|
|
319
319
|
}
|
|
320
320
|
</script>
|
|
321
321
|
|
|
@@ -332,7 +332,7 @@ function handleCall(item: any) {
|
|
|
332
332
|
@search="onRefresh"
|
|
333
333
|
/>
|
|
334
334
|
</VanCol>
|
|
335
|
-
<VanCol span="
|
|
335
|
+
<VanCol span="8" class="search-icon">
|
|
336
336
|
<XCellListFilter
|
|
337
337
|
v-model:sortord-val="sortordVal"
|
|
338
338
|
v-model:order-val="orderVal"
|
|
@@ -384,10 +384,12 @@ function handleCall(item: any) {
|
|
|
384
384
|
</div>
|
|
385
385
|
<div class="action-buttons">
|
|
386
386
|
<VanButton
|
|
387
|
+
v-for="btn in btnList"
|
|
388
|
+
:key="btn.dataIndex"
|
|
387
389
|
class="action-button"
|
|
388
|
-
icon="
|
|
390
|
+
:icon="btn.btnIcon"
|
|
389
391
|
size="small"
|
|
390
|
-
@click.stop="
|
|
392
|
+
@click.stop="handleButtonClick(btn, item)"
|
|
391
393
|
/>
|
|
392
394
|
</div>
|
|
393
395
|
</div>
|
|
@@ -680,9 +682,10 @@ function handleCall(item: any) {
|
|
|
680
682
|
.search-icon {
|
|
681
683
|
display: flex;
|
|
682
684
|
align-items: center;
|
|
683
|
-
justify-content:
|
|
685
|
+
justify-content: flex-end;
|
|
684
686
|
height: 100%;
|
|
685
|
-
padding:
|
|
687
|
+
padding: 0;
|
|
688
|
+
flex-shrink: 0;
|
|
686
689
|
}
|
|
687
690
|
}
|
|
688
691
|
|