vue2server7 7.0.118 → 7.0.119
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/package.json +1 -1
- package/test/mini2.0-main/.editorconfig +8 -0
- package/test/mini2.0-main/.env.development +3 -0
- package/test/mini2.0-main/.env.production +3 -0
- package/test/mini2.0-main/.env.test +3 -0
- package/test/mini2.0-main/.gitattributes +1 -0
- package/test/mini2.0-main/.oxlintrc.json +10 -0
- package/test/mini2.0-main/.prettierrc.json +6 -0
- package/test/mini2.0-main/README.md +179 -0
- package/test/mini2.0-main/auto-imports.d.ts +629 -0
- package/test/mini2.0-main/components.d.ts +21 -0
- package/test/mini2.0-main/docs/MX_API.md +244 -0
- package/test/mini2.0-main/docs/REQUEST.md +217 -0
- package/test/mini2.0-main/docs/package-json-guide.md +132 -0
- package/test/mini2.0-main/env.d.ts +12 -0
- package/test/mini2.0-main/eslint.config.ts +26 -0
- package/test/mini2.0-main/index.html +16 -0
- package/test/mini2.0-main/package-lock.json +6421 -0
- package/test/mini2.0-main/package.json +64 -0
- package/test/mini2.0-main/plugins/bump-version.ts +50 -0
- package/test/mini2.0-main/postcss.config.ts +15 -0
- package/test/mini2.0-main/public/favicon.ico +0 -0
- package/test/mini2.0-main/public/images/12a73787-86a9-4891-a65f-66104746f6a8.png +0 -0
- package/test/mini2.0-main/public/images/5798d7aa-ba8b-4605-8079-58b35495ac55.png +0 -0
- package/test/mini2.0-main/public/images/73fef1e4-0fd0-4a1a-9b8b-a70a5b6acbbc.png +0 -0
- package/test/mini2.0-main/public/images/bc685b4c-0cca-4a79-924c-a8ee10e6f8eb.png +0 -0
- package/test/mini2.0-main/public/images/c3dbbd9d-be56-490e-b9f4-6ee17ebefffc.png +0 -0
- package/test/mini2.0-main/public/images/ea745a10-42aa-4f44-8d7f-3ab02cc0adcd.png +0 -0
- package/test/mini2.0-main/public/images/f5876785-b927-4347-ba19-999114240649.png +0 -0
- package/test/mini2.0-main/public/images/img.png +0 -0
- package/test/mini2.0-main/src/App.vue +11 -0
- package/test/mini2.0-main/src/api/user.ts +23 -0
- package/test/mini2.0-main/src/auto-imports.d.ts +639 -0
- package/test/mini2.0-main/src/components.d.ts +23 -0
- package/test/mini2.0-main/src/config/config.properties +3 -0
- package/test/mini2.0-main/src/config/env.ts +6 -0
- package/test/mini2.0-main/src/config/plugin.properties.pro +6 -0
- package/test/mini2.0-main/src/config/plugin.properties.test +6 -0
- package/test/mini2.0-main/src/core/mxApi/index.ts +237 -0
- package/test/mini2.0-main/src/core/request/index.ts +129 -0
- package/test/mini2.0-main/src/main.ts +21 -0
- package/test/mini2.0-main/src/router/index.ts +70 -0
- package/test/mini2.0-main/src/stores/counter.ts +12 -0
- package/test/mini2.0-main/src/stores/user.ts +48 -0
- package/test/mini2.0-main/src/types/api.d.ts +14 -0
- package/test/mini2.0-main/src/types/nprogress.d.ts +8 -0
- package/test/mini2.0-main/src/utils/request.ts +159 -0
- package/test/mini2.0-main/src/views/clearing-detail/index.vue +49 -0
- package/test/mini2.0-main/src/views/foreign-position/index.vue +49 -0
- package/test/mini2.0-main/src/views/home/index.vue +201 -0
- package/test/mini2.0-main/src/views/login/index.vue +166 -0
- package/test/mini2.0-main/src/views/net-debit/index.vue +49 -0
- package/test/mini2.0-main/src/views/pbc-position/index.vue +49 -0
- package/test/mini2.0-main/src/views/position-estimate/index.vue +49 -0
- package/test/mini2.0-main/src/views/rmb-position/index.vue +49 -0
- package/test/mini2.0-main/src/views/warning/index.vue +49 -0
- package/test/mini2.0-main/tsconfig.app.json +18 -0
- package/test/mini2.0-main/tsconfig.json +11 -0
- package/test/mini2.0-main/tsconfig.node.json +28 -0
- package/test/mini2.0-main/vite.config.ts +68 -0
- package/test/b137a0ec17d13d2093a89a18eb819e89.png +0 -0
- package/test/mini2.0-main (2).zip +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script setup lang="ts"></script>
|
|
2
|
+
|
|
3
|
+
<template>
|
|
4
|
+
<main class="page">
|
|
5
|
+
<header class="page-header">
|
|
6
|
+
<button class="back-btn" type="button" @click="$router.back()">←</button>
|
|
7
|
+
<h1>人行头寸余额查询</h1>
|
|
8
|
+
</header>
|
|
9
|
+
<section class="page-body">
|
|
10
|
+
<p class="placeholder">页面建设中…</p>
|
|
11
|
+
</section>
|
|
12
|
+
</main>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<style scoped>
|
|
16
|
+
.page {
|
|
17
|
+
max-width: 750px;
|
|
18
|
+
min-height: 100vh;
|
|
19
|
+
margin: 0 auto;
|
|
20
|
+
padding: 0 11px;
|
|
21
|
+
background: #f7f8fa;
|
|
22
|
+
}
|
|
23
|
+
.page-header {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
height: 48px;
|
|
28
|
+
}
|
|
29
|
+
.back-btn {
|
|
30
|
+
border: 0;
|
|
31
|
+
background: transparent;
|
|
32
|
+
font-size: 20px;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
.page-header h1 {
|
|
36
|
+
margin: 0;
|
|
37
|
+
font-size: 17px;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
}
|
|
40
|
+
.page-body {
|
|
41
|
+
padding: 24px 0;
|
|
42
|
+
}
|
|
43
|
+
.placeholder {
|
|
44
|
+
text-align: center;
|
|
45
|
+
color: #969799;
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
padding-top: 120px;
|
|
48
|
+
}
|
|
49
|
+
</style>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script setup lang="ts"></script>
|
|
2
|
+
|
|
3
|
+
<template>
|
|
4
|
+
<main class="page">
|
|
5
|
+
<header class="page-header">
|
|
6
|
+
<button class="back-btn" type="button" @click="$router.back()">←</button>
|
|
7
|
+
<h1>头寸匡算</h1>
|
|
8
|
+
</header>
|
|
9
|
+
<section class="page-body">
|
|
10
|
+
<p class="placeholder">页面建设中…</p>
|
|
11
|
+
</section>
|
|
12
|
+
</main>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<style scoped>
|
|
16
|
+
.page {
|
|
17
|
+
max-width: 750px;
|
|
18
|
+
min-height: 100vh;
|
|
19
|
+
margin: 0 auto;
|
|
20
|
+
padding: 0 11px;
|
|
21
|
+
background: #f7f8fa;
|
|
22
|
+
}
|
|
23
|
+
.page-header {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
height: 48px;
|
|
28
|
+
}
|
|
29
|
+
.back-btn {
|
|
30
|
+
border: 0;
|
|
31
|
+
background: transparent;
|
|
32
|
+
font-size: 20px;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
.page-header h1 {
|
|
36
|
+
margin: 0;
|
|
37
|
+
font-size: 17px;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
}
|
|
40
|
+
.page-body {
|
|
41
|
+
padding: 24px 0;
|
|
42
|
+
}
|
|
43
|
+
.placeholder {
|
|
44
|
+
text-align: center;
|
|
45
|
+
color: #969799;
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
padding-top: 120px;
|
|
48
|
+
}
|
|
49
|
+
</style>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script setup lang="ts"></script>
|
|
2
|
+
|
|
3
|
+
<template>
|
|
4
|
+
<main class="page">
|
|
5
|
+
<header class="page-header">
|
|
6
|
+
<button class="back-btn" type="button" @click="$router.back()">←</button>
|
|
7
|
+
<h1>人民币头寸预报及查询</h1>
|
|
8
|
+
</header>
|
|
9
|
+
<section class="page-body">
|
|
10
|
+
<p class="placeholder">页面建设中…</p>
|
|
11
|
+
</section>
|
|
12
|
+
</main>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<style scoped>
|
|
16
|
+
.page {
|
|
17
|
+
max-width: 750px;
|
|
18
|
+
min-height: 100vh;
|
|
19
|
+
margin: 0 auto;
|
|
20
|
+
padding: 0 11px;
|
|
21
|
+
background: #f7f8fa;
|
|
22
|
+
}
|
|
23
|
+
.page-header {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
height: 48px;
|
|
28
|
+
}
|
|
29
|
+
.back-btn {
|
|
30
|
+
border: 0;
|
|
31
|
+
background: transparent;
|
|
32
|
+
font-size: 20px;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
.page-header h1 {
|
|
36
|
+
margin: 0;
|
|
37
|
+
font-size: 17px;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
}
|
|
40
|
+
.page-body {
|
|
41
|
+
padding: 24px 0;
|
|
42
|
+
}
|
|
43
|
+
.placeholder {
|
|
44
|
+
text-align: center;
|
|
45
|
+
color: #969799;
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
padding-top: 120px;
|
|
48
|
+
}
|
|
49
|
+
</style>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script setup lang="ts"></script>
|
|
2
|
+
|
|
3
|
+
<template>
|
|
4
|
+
<main class="page">
|
|
5
|
+
<header class="page-header">
|
|
6
|
+
<button class="back-btn" type="button" @click="$router.back()">←</button>
|
|
7
|
+
<h1>预警信息</h1>
|
|
8
|
+
</header>
|
|
9
|
+
<section class="page-body">
|
|
10
|
+
<p class="placeholder">页面建设中…</p>
|
|
11
|
+
</section>
|
|
12
|
+
</main>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<style scoped>
|
|
16
|
+
.page {
|
|
17
|
+
max-width: 750px;
|
|
18
|
+
min-height: 100vh;
|
|
19
|
+
margin: 0 auto;
|
|
20
|
+
padding: 0 11px;
|
|
21
|
+
background: #f7f8fa;
|
|
22
|
+
}
|
|
23
|
+
.page-header {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
height: 48px;
|
|
28
|
+
}
|
|
29
|
+
.back-btn {
|
|
30
|
+
border: 0;
|
|
31
|
+
background: transparent;
|
|
32
|
+
font-size: 20px;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
.page-header h1 {
|
|
36
|
+
margin: 0;
|
|
37
|
+
font-size: 17px;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
}
|
|
40
|
+
.page-body {
|
|
41
|
+
padding: 24px 0;
|
|
42
|
+
}
|
|
43
|
+
.placeholder {
|
|
44
|
+
text-align: center;
|
|
45
|
+
color: #969799;
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
padding-top: 120px;
|
|
48
|
+
}
|
|
49
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
|
3
|
+
"include": ["env.d.ts", "auto-imports.d.ts", "components.d.ts", "src/**/*", "src/**/*.vue"],
|
|
4
|
+
"exclude": ["src/**/__tests__/*"],
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
// Extra safety for array and object lookups, but may have false positives.
|
|
7
|
+
"noUncheckedIndexedAccess": true,
|
|
8
|
+
|
|
9
|
+
// Path mapping for cleaner imports.
|
|
10
|
+
"paths": {
|
|
11
|
+
"@/*": ["./src/*"]
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
// `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
|
|
15
|
+
// Specified here to keep it out of the root directory.
|
|
16
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// TSConfig for modules that run in Node.js environment via either transpilation or type-stripping.
|
|
2
|
+
{
|
|
3
|
+
"extends": "@tsconfig/node24/tsconfig.json",
|
|
4
|
+
"include": [
|
|
5
|
+
"vite.config.*",
|
|
6
|
+
"plugins/*.ts",
|
|
7
|
+
"vitest.config.*",
|
|
8
|
+
"cypress.config.*",
|
|
9
|
+
"playwright.config.*",
|
|
10
|
+
"eslint.config.*"
|
|
11
|
+
],
|
|
12
|
+
"compilerOptions": {
|
|
13
|
+
// Most tools use transpilation instead of Node.js's native type-stripping.
|
|
14
|
+
// Bundler mode provides a smoother developer experience.
|
|
15
|
+
"module": "preserve",
|
|
16
|
+
"moduleResolution": "bundler",
|
|
17
|
+
|
|
18
|
+
// Include Node.js types and avoid accidentally including other `@types/*` packages.
|
|
19
|
+
"types": ["node"],
|
|
20
|
+
|
|
21
|
+
// Disable emitting output during `vue-tsc --build`, which is used for type-checking only.
|
|
22
|
+
"noEmit": true,
|
|
23
|
+
|
|
24
|
+
// `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
|
|
25
|
+
// Specified here to keep it out of the root directory.
|
|
26
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
2
|
+
|
|
3
|
+
import { defineConfig, loadEnv } from 'vite'
|
|
4
|
+
import vue from '@vitejs/plugin-vue'
|
|
5
|
+
import vueDevTools from 'vite-plugin-vue-devtools'
|
|
6
|
+
import AutoImport from 'unplugin-auto-import/vite'
|
|
7
|
+
import Components from 'unplugin-vue-components/vite'
|
|
8
|
+
import { VantResolver } from 'unplugin-vue-components/resolvers'
|
|
9
|
+
import { bumpVersion } from './plugins/bump-version'
|
|
10
|
+
|
|
11
|
+
// https://vite.dev/config/
|
|
12
|
+
export default defineConfig(({ mode }) => {
|
|
13
|
+
const env = loadEnv(mode, process.cwd(), '')
|
|
14
|
+
const apiBaseUrl = env.VITE_API_BASE_URL || '/api'
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
plugins: [
|
|
18
|
+
vue(),
|
|
19
|
+
vueDevTools(),
|
|
20
|
+
|
|
21
|
+
// 自动导入 Vue / Vue Router / Pinia / VueUse / Vant 的 API,省去手动 import
|
|
22
|
+
AutoImport({
|
|
23
|
+
imports: [
|
|
24
|
+
'vue',
|
|
25
|
+
'vue-router',
|
|
26
|
+
'pinia',
|
|
27
|
+
'@vueuse/core',
|
|
28
|
+
{ vant: ['showToast', 'showDialog', 'showConfirmDialog', 'showLoadingToast', 'closeToast'] },
|
|
29
|
+
],
|
|
30
|
+
dts: 'src/auto-imports.d.ts',
|
|
31
|
+
vueTemplate: true,
|
|
32
|
+
}),
|
|
33
|
+
|
|
34
|
+
// 自动导入组件(Vant 按需加载)
|
|
35
|
+
Components({
|
|
36
|
+
resolvers: [VantResolver()],
|
|
37
|
+
dts: 'src/components.d.ts',
|
|
38
|
+
}),
|
|
39
|
+
|
|
40
|
+
// 打包时自增版本号,并将 plugin.properties 输出到 dist/
|
|
41
|
+
bumpVersion(mode),
|
|
42
|
+
],
|
|
43
|
+
|
|
44
|
+
server: {
|
|
45
|
+
host: '0.0.0.0',
|
|
46
|
+
port: 8080,
|
|
47
|
+
strictPort: true,
|
|
48
|
+
open: true,
|
|
49
|
+
|
|
50
|
+
proxy: {
|
|
51
|
+
'/oms': {
|
|
52
|
+
target: 'http://10.56.183.104:8090',
|
|
53
|
+
changeOrigin: true,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
resolve: {
|
|
59
|
+
alias: {
|
|
60
|
+
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
build: {
|
|
65
|
+
outDir: 'dist/www',
|
|
66
|
+
},
|
|
67
|
+
}
|
|
68
|
+
})
|
|
Binary file
|
|
Binary file
|