diff --git a/.env.dev b/.env.dev
index 843ea018..9200ece2 100644
--- a/.env.dev
+++ b/.env.dev
@@ -28,4 +28,4 @@ VITE_DROP_CONSOLE=false
VITE_SOURCEMAP=false
# 输出路径
-VITE_OUT_DIR=dist-dev
+VITE_OUT_DIR=dist
diff --git a/.env.test b/.env.test
deleted file mode 100644
index 0793af25..00000000
--- a/.env.test
+++ /dev/null
@@ -1,31 +0,0 @@
-# 测试环境
-NODE_ENV=production
-
-VITE_DEV=false
-
-# 请求路径
-VITE_BASE_URL='http://localhost:48080'
-
-# 上传路径
-VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
-
-# 接口前缀
-VITE_API_BASEPATH=
-
-# 接口地址
-VITE_API_URL=/admin-api
-
-# 是否删除debugger
-VITE_DROP_DEBUGGER=false
-
-# 是否删除console.log
-VITE_DROP_CONSOLE=false
-
-# 是否sourcemap
-VITE_SOURCEMAP=true
-
-# 打包路径
-VITE_BASE_PATH=/
-
-# 输出路径
-VITE_OUT_DIR=dist-test
diff --git a/.eslintrc.js b/.eslintrc.js
index 5a7245ac..31c239b6 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,4 +1,6 @@
-module.exports = {
+// @ts-check
+const { defineConfig } = require('eslint-define-config')
+module.exports = defineConfig({
root: true,
env: {
browser: true,
@@ -16,9 +18,16 @@ module.exports = {
jsx: true
}
},
- extends: ['plugin:vue/vue3-recommended', 'prettier', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
+ extends: [
+ 'plugin:vue/vue3-recommended',
+ 'plugin:@typescript-eslint/recommended',
+ 'prettier',
+ 'plugin:prettier/recommended'
+ ],
rules: {
'vue/script-setup-uses-vars': 'error',
+ 'vue/no-reserved-component-names': 'off',
+ 'vue/no-setup-props-destructure': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
@@ -31,20 +40,8 @@ module.exports = {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
- '@typescript-eslint/no-unused-vars': [
- 'error',
- {
- argsIgnorePattern: '^_',
- varsIgnorePattern: '^_'
- }
- ],
- 'no-unused-vars': [
- 'error',
- {
- argsIgnorePattern: '^_',
- varsIgnorePattern: '^_'
- }
- ],
+ '@typescript-eslint/no-unused-vars': 'off',
+ 'no-unused-vars': 'off',
'space-before-function-paren': 'off',
'vue/attributes-order': 'off',
@@ -68,6 +65,7 @@ module.exports = {
math: 'always'
}
],
- 'vue/multi-word-component-names': 'off'
+ 'vue/multi-word-component-names': 'off',
+ 'vue/no-v-html': 'off'
}
-}
+})
diff --git a/README.md b/README.md
index eb93ac38..c9b9f71a 100644
--- a/README.md
+++ b/README.md
@@ -39,14 +39,14 @@
| 框架 | 说明 | 版本 |
|----------------------------------------------------------------------|------------------|--------|
| [Vue](https://staging-cn.vuejs.org/) | Vue 框架 | 3.3.4 |
-| [Vite](https://cn.vitejs.dev//) | 开发与构建工具 | 4.4.7 |
-| [Element Plus](https://element-plus.org/zh-CN/) | Element Plus | 2.3.8 |
+| [Vite](https://cn.vitejs.dev//) | 开发与构建工具 | 4.4.8 |
+| [Element Plus](https://element-plus.org/zh-CN/) | Element Plus | 2.3.9 |
| [TypeScript](https://www.typescriptlang.org/docs/) | JavaScript 的超集 | 5.1.6 |
| [pinia](https://pinia.vuejs.org/) | Vue 存储库 替代 vuex5 | 2.1.6 |
-| [vueuse](https://vueuse.org/) | 常用工具集 | 10.2.1 |
+| [vueuse](https://vueuse.org/) | 常用工具集 | 10.3.0 |
| [vue-i18n](https://kazupon.github.io/vue-i18n/zh/introduction.html/) | 国际化 | 9.2.2 |
| [vue-router](https://router.vuejs.org/) | Vue 路由 | 4.2.4 |
-| [unocss](https://uno.antfu.me/) | 原子 css | 0.54.0 |
+| [unocss](https://uno.antfu.me/) | 原子 css | 0.54.1 |
| [iconify](https://icon-sets.iconify.design/) | 在线图标库 | 3.1.1 |
| [wangeditor](https://www.wangeditor.com/) | 富文本编辑器 | 5.1.23 |
diff --git a/package.json b/package.json
index abfbf701..a04c2520 100644
--- a/package.json
+++ b/package.json
@@ -11,22 +11,19 @@
"ts:check": "vue-tsc --noEmit",
"build:pro": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode pro",
"build:dev": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode dev",
+ "build:base": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode base",
"build:stage": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode stage",
- "build:test": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode test",
"build:static": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode static",
"build:front": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode front",
"serve:pro": "vite preview --mode pro",
"serve:dev": "vite preview --mode dev",
- "serve:test": "vite preview --mode test",
- "preview": "pnpm build && vite preview",
- "npm:check": "npx npm-check-updates",
+ "preview": "pnpm build:base && vite preview",
"clean": "npx rimraf node_modules",
"clean:cache": "npx rimraf node_modules/.cache",
"lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src",
"lint:format": "prettier --write --loglevel warn \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
"lint:style": "stylelint --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
- "lint:lint-staged": "lint-staged -c ",
- "lint:pretty": "pretty-quick --staged"
+ "lint:lint-staged": "lint-staged -c "
},
"dependencies": {
"@element-plus/icons-vue": "^2.1.0",
@@ -34,7 +31,7 @@
"@form-create/element-ui": "^3.1.17",
"@iconify/iconify": "^3.1.1",
"@videojs-player/vue": "^1.0.0",
- "@vueuse/core": "^10.2.1",
+ "@vueuse/core": "^10.3.0",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.10",
"@zxcvbn-ts/core": "^3.0.3",
@@ -49,8 +46,8 @@
"diagram-js": "^11.6.0",
"echarts": "^5.4.3",
"echarts-wordcloud": "^2.1.0",
- "element-plus": "2.3.8",
- "fast-xml-parser": "^4.2.6",
+ "element-plus": "2.3.9",
+ "fast-xml-parser": "^4.2.7",
"highlight.js": "^11.8.0",
"intro.js": "^7.0.1",
"jsencrypt": "^3.3.2",
@@ -76,7 +73,7 @@
"devDependencies": {
"@commitlint/cli": "^17.6.7",
"@commitlint/config-conventional": "^17.6.7",
- "@iconify/json": "^2.2.95",
+ "@iconify/json": "^2.2.98",
"@intlify/unplugin-vue-i18n": "^0.12.2",
"@purge-icons/generated": "^0.9.0",
"@types/intro.js": "^5.1.1",
@@ -85,42 +82,42 @@
"@types/nprogress": "^0.2.0",
"@types/qrcode": "^1.5.1",
"@types/qs": "^6.9.7",
- "@typescript-eslint/eslint-plugin": "^6.2.0",
- "@typescript-eslint/parser": "^6.2.0",
- "@unocss/transformer-variant-group": "^0.51.4",
+ "@typescript-eslint/eslint-plugin": "^6.2.1",
+ "@typescript-eslint/parser": "^6.2.1",
+ "@unocss/transformer-variant-group": "^0.54.1",
"@vitejs/plugin-legacy": "^4.1.1",
"@vitejs/plugin-vue": "^4.2.3",
"@vitejs/plugin-vue-jsx": "^3.0.1",
- "@vue-macros/volar": "^0.12.3",
+ "@vue-macros/volar": "^0.13.2",
"autoprefixer": "^10.4.14",
"bpmn-js": "^8.9.0",
"bpmn-js-properties-panel": "^0.46.0",
"consola": "^3.2.3",
"eslint": "^8.46.0",
- "eslint-config-prettier": "^8.9.0",
- "eslint-define-config": "^1.21.0",
+ "eslint-config-prettier": "^8.10.0",
+ "eslint-define-config": "^1.22.0",
"eslint-plugin-prettier": "^5.0.0",
- "eslint-plugin-vue": "^9.15.1",
+ "eslint-plugin-vue": "^9.16.1",
"lint-staged": "^13.2.3",
"postcss": "^8.4.27",
"postcss-html": "^1.5.0",
"postcss-scss": "^4.0.6",
- "prettier": "^3.0.0",
+ "prettier": "^3.0.1",
"rimraf": "^5.0.1",
- "rollup": "^3.27.0",
- "sass": "^1.64.1",
+ "rollup": "^3.27.2",
+ "sass": "^1.64.2",
"stylelint": "^15.10.2",
+ "stylelint-config-html": "^1.1.0",
"stylelint-config-recommended": "^13.0.0",
- "stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard": "^34.0.0",
"stylelint-order": "^6.0.3",
"terser": "^5.19.2",
"typescript": "5.1.6",
- "unocss": "^0.54.0",
+ "unocss": "^0.54.1",
"unplugin-auto-import": "^0.16.6",
- "unplugin-element-plus": "^0.7.2",
+ "unplugin-element-plus": "^0.8.0",
"unplugin-vue-components": "^0.25.1",
- "vite": "4.4.7",
+ "vite": "4.4.8",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-ejs": "^1.6.4",
"vite-plugin-eslint": "^1.8.1",
diff --git a/src/api/pay/channel/index.ts b/src/api/pay/channel/index.ts
index b030357e..0f4ff424 100644
--- a/src/api/pay/channel/index.ts
+++ b/src/api/pay/channel/index.ts
@@ -7,7 +7,6 @@ export interface ChannelVO {
status: number
remark: string
feeRate: number
- merchantId: number
appId: number
createTime: Date
}
@@ -18,13 +17,12 @@ export const getChannelPage = (params: PageParam) => {
}
// 查询详情支付渠道
-export const getChannel = (merchantId: number, appId: string, code: string) => {
+export const getChannel = (appId: string, code: string) => {
const params = {
- merchantId: merchantId,
appId: appId,
code: code
}
- return request.get({ url: '/pay/channel/get-channel', params: params })
+ return request.get({ url: '/pay/channel/get', params: params })
}
// 新增支付渠道
diff --git a/src/components/Dialog/src/Dialog.vue b/src/components/Dialog/src/Dialog.vue
index 5fd298bb..ea9caf92 100644
--- a/src/components/Dialog/src/Dialog.vue
+++ b/src/components/Dialog/src/Dialog.vue
@@ -1,8 +1,6 @@
diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue
index b2a0f64f..c8a3b972 100644
--- a/src/components/UploadFile/src/UploadFile.vue
+++ b/src/components/UploadFile/src/UploadFile.vue
@@ -147,10 +147,10 @@ const listToString = (list: UploadUserFile[], separator?: string) => {
}
:deep(.upload-file-list .el-upload-list__item) {
- border: 1px solid #e4e7ed;
- line-height: 2;
- margin-bottom: 10px;
position: relative;
+ margin-bottom: 10px;
+ line-height: 2;
+ border: 1px solid #e4e7ed;
}
:deep(.el-upload-list__item-file-name) {
diff --git a/src/components/UploadFile/src/UploadImg.vue b/src/components/UploadFile/src/UploadImg.vue
index 5feb2610..3cfc0a73 100644
--- a/src/components/UploadFile/src/UploadImg.vue
+++ b/src/components/UploadFile/src/UploadImg.vue
@@ -229,16 +229,16 @@ const uploadError = () => {
position: absolute;
top: 0;
right: 0;
- box-sizing: border-box;
display: flex;
- align-items: center;
- justify-content: center;
width: 100%;
height: 100%;
cursor: pointer;
background: rgb(0 0 0 / 60%);
opacity: 0;
+ box-sizing: border-box;
transition: var(--el-transition-duration-fast);
+ align-items: center;
+ justify-content: center;
.handle-icon {
display: flex;
diff --git a/src/components/UploadFile/src/UploadImgs.vue b/src/components/UploadFile/src/UploadImgs.vue
index bfa75372..91bb5e31 100644
--- a/src/components/UploadFile/src/UploadImgs.vue
+++ b/src/components/UploadFile/src/UploadImgs.vue
@@ -248,16 +248,16 @@ const handlePictureCardPreview: UploadProps['onPreview'] = (uploadFile) => {
position: absolute;
top: 0;
right: 0;
- box-sizing: border-box;
display: flex;
- align-items: center;
- justify-content: center;
width: 100%;
height: 100%;
cursor: pointer;
background: rgb(0 0 0 / 60%);
opacity: 0;
+ box-sizing: border-box;
transition: var(--el-transition-duration-fast);
+ align-items: center;
+ justify-content: center;
.handle-icon {
display: flex;
diff --git a/src/components/Verifition/src/Verify.vue b/src/components/Verifition/src/Verify.vue
index 02bcf86f..b7b50486 100644
--- a/src/components/Verifition/src/Verify.vue
+++ b/src/components/Verifition/src/Verify.vue
@@ -145,23 +145,23 @@ export default {
diff --git a/src/components/Verifition/src/Verify/VerifyPoints.vue b/src/components/Verifition/src/Verify/VerifyPoints.vue
index 2516b881..9d04f291 100644
--- a/src/components/Verifition/src/Verify/VerifyPoints.vue
+++ b/src/components/Verifition/src/Verify/VerifyPoints.vue
@@ -17,7 +17,7 @@
ref="canvas"
:src="'data:image/png;base64,' + pointBackImgBase"
alt=""
- style="width: 100%; height: 100%; display: block"
+ style="display: block; width: 100%; height: 100%"
@click="bindingClick ? canvasClick($event) : undefined"
/>
diff --git a/src/components/Verifition/src/Verify/VerifySlide.vue b/src/components/Verifition/src/Verify/VerifySlide.vue
index 46928028..8b448b0d 100644
--- a/src/components/Verifition/src/Verify/VerifySlide.vue
+++ b/src/components/Verifition/src/Verify/VerifySlide.vue
@@ -9,7 +9,7 @@
任务:{{ item.name }}