From 1cf286b057555201674b1afd0638bda627f494bd Mon Sep 17 00:00:00 2001
From: JJBoy <291077997@qq.com>
Date: Wed, 8 May 2024 21:12:24 +0800
Subject: [PATCH 1/9] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91?=
=?UTF-8?q?=E5=95=86=E5=9F=8E=E7=AE=A1=E7=90=86=E9=A6=96=E9=A1=B5=E7=BB=9F?=
=?UTF-8?q?=E8=AE=A1=E6=95=B0=E6=8D=AE=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
(cherry picked from commit 78dd2fa38a2d040c1c97d70cababc4f9265ac705)
---
src/utils/index.ts | 2 +-
src/views/mall/home/components/TradeTrendCard.vue | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/utils/index.ts b/src/utils/index.ts
index 2590bce8..2c2fbbd0 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -313,7 +313,7 @@ export const fenToYuan = (price: string | number): string => {
*/
export const calculateRelativeRate = (value?: number, reference?: number) => {
// 防止除0
- if (!reference) return 0
+ if (!reference || reference == 0) return 0
return ((100 * ((value || 0) - reference)) / reference).toFixed(0)
}
diff --git a/src/views/mall/home/components/TradeTrendCard.vue b/src/views/mall/home/components/TradeTrendCard.vue
index a8cab828..7930e212 100644
--- a/src/views/mall/home/components/TradeTrendCard.vue
+++ b/src/views/mall/home/components/TradeTrendCard.vue
@@ -186,7 +186,7 @@ const getOrderCountTrendComparison = async (
dates.push(item.value.date)
if (series.length === 2) {
series[0].data.push(fenToYuan(item?.value?.orderPayPrice || 0)) // 当前金额
- series[1].data.push(fenToYuan(item?.value?.orderPayCount || 0)) // 当前数量
+ series[1].data.push(item?.value?.orderPayCount || 0) // 当前数量
} else {
series[0].data.push(fenToYuan(item?.reference?.orderPayPrice || 0)) // 对照金额
series[1].data.push(fenToYuan(item?.value?.orderPayPrice || 0)) // 当前金额
From 1ce3343578a1a164e240605bca3ac2a7d3db55e3 Mon Sep 17 00:00:00 2001
From: DevDengChao <2325690622@qq.com>
Date: Thu, 9 May 2024 15:02:45 +0800
Subject: [PATCH 2/9] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=A1=AB=E5=86=99?=
=?UTF-8?q?=E5=95=86=E5=93=81=E5=B1=9E=E6=80=A7=E5=90=8E=E6=8C=89=E5=9B=9E?=
=?UTF-8?q?=E8=BD=A6=E9=94=AE=E5=AF=BC=E8=87=B4=E9=A1=B5=E9=9D=A2=E5=88=B7?=
=?UTF-8?q?=E6=96=B0=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/mall/product/spu/form/ProductPropertyAddForm.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/mall/product/spu/form/ProductPropertyAddForm.vue b/src/views/mall/product/spu/form/ProductPropertyAddForm.vue
index 9a8eee00..15c5a8d5 100644
--- a/src/views/mall/product/spu/form/ProductPropertyAddForm.vue
+++ b/src/views/mall/product/spu/form/ProductPropertyAddForm.vue
@@ -7,6 +7,7 @@
:model="formData"
:rules="formRules"
label-width="80px"
+ @keydown.enter.prevent="submitForm"
>
From 79f011fe172f9692307857d65f91df79c57291aa Mon Sep 17 00:00:00 2001
From: DevDengChao <2325690622@qq.com>
Date: Fri, 10 May 2024 10:24:57 +0800
Subject: [PATCH 3/9] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=9E=E4=BE=8B?=
=?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=AE=8C=E6=88=90=E6=94=AF=E4=BB=98=E5=90=8E?=
=?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=88=B0=20404=20=E9=A1=B5=E9=9D=A2=E7=9A=84?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/pay/demo/order/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/pay/demo/order/index.vue b/src/views/pay/demo/order/index.vue
index 374464eb..32f0de13 100644
--- a/src/views/pay/demo/order/index.vue
+++ b/src/views/pay/demo/order/index.vue
@@ -147,7 +147,7 @@ const handlePay = (row: any) => {
name: 'PayCashier',
query: {
id: row.payOrderId,
- returnUrl: encodeURIComponent('/pay/demo-order?id=' + row.id)
+ returnUrl: encodeURIComponent('/pay/demo/order?id=' + row.id)
}
})
}
From e1d2305ddde681cafde4a0ca27fd9db2159d4854 Mon Sep 17 00:00:00 2001
From: DevDengChao <2325690622@qq.com>
Date: Sat, 11 May 2024 10:35:27 +0800
Subject: [PATCH 4/9] =?UTF-8?q?fix:=20=E8=A1=A5=E5=85=85=E7=BC=BA=E5=A4=B1?=
=?UTF-8?q?=E7=9A=84=E5=BE=AE=E4=BF=A1=20Native=20=E6=94=AF=E4=BB=98?=
=?UTF-8?q?=E4=B8=8E=20WAP=20=E6=94=AF=E4=BB=98=E6=9E=9A=E4=B8=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/constants.ts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/utils/constants.ts b/src/utils/constants.ts
index f4d67b4e..cfa785b0 100644
--- a/src/utils/constants.ts
+++ b/src/utils/constants.ts
@@ -109,6 +109,14 @@ export const PayChannelEnum = {
code: 'wx_app',
name: '微信 APP 支付'
},
+ WX_NATIVE: {
+ code: 'wx_native',
+ name: '微信 Native 支付'
+ },
+ WX_WAP: {
+ code: 'wx_wap',
+ name: '微信 WAP 网站支付'
+ },
WX_BAR: {
code: 'wx_bar',
name: '微信条码支付'
From 0275cb6dd754b08995f624dbb9af7e8870255d08 Mon Sep 17 00:00:00 2001
From: DevDengChao <2325690622@qq.com>
Date: Sat, 11 May 2024 10:39:18 +0800
Subject: [PATCH 5/9] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20el-upload=20?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=8F=90=E7=A4=BA=20http-request=20=E5=B1=9E?=
=?UTF-8?q?=E6=80=A7=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../app/components/channel/WeixinChannelForm.vue | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/views/pay/app/components/channel/WeixinChannelForm.vue b/src/views/pay/app/components/channel/WeixinChannelForm.vue
index 34e92c69..cfd46bc0 100644
--- a/src/views/pay/app/components/channel/WeixinChannelForm.vue
+++ b/src/views/pay/app/components/channel/WeixinChannelForm.vue
@@ -80,7 +80,8 @@
:http-request="keyContentUpload"
>
- 点击上传
+
+ 点击上传
@@ -120,7 +121,8 @@
:http-request="privateKeyContentUpload"
>
- 点击上传
+
+ 点击上传
@@ -148,7 +150,8 @@
:http-request="privateCertContentUpload"
>
- 点击上传
+
+ 点击上传
@@ -310,7 +313,7 @@ const pemFileBeforeUpload = (file) => {
/**
* 读取 apiclient_key.pem 到 privateKeyContent 字段
*/
-const privateKeyContentUpload = (event) => {
+const privateKeyContentUpload = async (event) => {
const readFile = new FileReader()
readFile.onload = (e: any) => {
formData.value.config.privateKeyContent = e.target.result
@@ -321,7 +324,7 @@ const privateKeyContentUpload = (event) => {
/**
* 读取 apiclient_cert.pem 到 privateCertContent 字段
*/
-const privateCertContentUpload = (event) => {
+const privateCertContentUpload = async (event) => {
const readFile = new FileReader()
readFile.onload = (e: any) => {
formData.value.config.privateCertContent = e.target.result
@@ -332,7 +335,7 @@ const privateCertContentUpload = (event) => {
/**
* 读取 apiclient_cert.p12 到 keyContent 字段
*/
-const keyContentUpload = (event) => {
+const keyContentUpload = async (event) => {
const readFile = new FileReader()
readFile.onload = (e: any) => {
formData.value.config.keyContent = e.target.result.split(',')[1]
From 7883e3161d01b6dad8c7901941088ebeb2e7a927 Mon Sep 17 00:00:00 2001
From: DevDengChao <2325690622@qq.com>
Date: Sat, 11 May 2024 10:59:26 +0800
Subject: [PATCH 6/9] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1?=
=?UTF-8?q?=E5=8E=9F=E7=94=9F=E6=94=AF=E4=BB=98=E4=B8=8E=E7=BD=91=E7=AB=99?=
=?UTF-8?q?=E6=94=AF=E4=BB=98=E6=97=A0=E6=B3=95=E9=85=8D=E7=BD=AE=E7=9A=84?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/pay/app/index.vue | 199 +++++++++---------------------------
1 file changed, 46 insertions(+), 153 deletions(-)
diff --git a/src/views/pay/app/index.vue b/src/views/pay/app/index.vue
index 2f4a9c1e..6b60d9b1 100644
--- a/src/views/pay/app/index.vue
+++ b/src/views/pay/app/index.vue
@@ -45,10 +45,17 @@
/>
- 搜索
- 重置
+
+
+ 搜索
+
+
+
+ 重置
+
- 新增
+
+ 新增
@@ -70,12 +77,17 @@
-
+
@@ -84,87 +96,7 @@
v-else
type="danger"
circle
- @click="openChannelForm(scope.row, PayChannelEnum.ALIPAY_APP.code)"
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -172,13 +104,18 @@
-
+
@@ -186,67 +123,7 @@
v-else
type="danger"
circle
- @click="openChannelForm(scope.row, PayChannelEnum.WX_LITE.code)"
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -338,12 +215,11 @@
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import * as AppApi from '@/api/pay/app'
import AppForm from './components/AppForm.vue'
-import { PayChannelEnum } from '@/utils/constants'
+import { CommonStatusEnum, PayChannelEnum } from '@/utils/constants'
import AlipayChannelForm from './components/channel/AlipayChannelForm.vue'
import WeixinChannelForm from './components/channel/WeixinChannelForm.vue'
import MockChannelForm from './components/channel/MockChannelForm.vue'
import WalletChannelForm from './components/channel/WalletChannelForm.vue'
-import { CommonStatusEnum } from '@/utils/constants'
defineOptions({ name: 'PayApp' })
@@ -365,6 +241,23 @@ const queryParams = reactive({
})
const queryFormRef = ref() // 搜索的表单
+const alipayChannels = [
+ PayChannelEnum.ALIPAY_APP,
+ PayChannelEnum.ALIPAY_PC,
+ PayChannelEnum.ALIPAY_WAP,
+ PayChannelEnum.ALIPAY_QR,
+ PayChannelEnum.ALIPAY_BAR
+]
+
+const wxChannels = [
+ PayChannelEnum.WX_LITE,
+ PayChannelEnum.WX_PUB,
+ PayChannelEnum.WX_APP,
+ PayChannelEnum.WX_NATIVE,
+ PayChannelEnum.WX_WAP,
+ PayChannelEnum.WX_BAR,
+]
+
/** 查询列表 */
const getList = async () => {
loading.value = true
From d883b860acfe01da575fa1b4662c15d2180ea7b9 Mon Sep 17 00:00:00 2001
From: DevDengChao <2325690622@qq.com>
Date: Tue, 21 May 2024 17:43:49 +0800
Subject: [PATCH 7/9] =?UTF-8?q?refactor:=20=E6=8F=90=E5=8F=96=E9=BB=98?=
=?UTF-8?q?=E8=AE=A4=E7=99=BB=E5=BD=95=E4=BD=BF=E7=94=A8=E7=9A=84=E7=A7=9F?=
=?UTF-8?q?=E6=88=B7=E4=B8=8E=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81,=20?=
=?UTF-8?q?=E8=A7=84=E9=81=BF=E6=BD=9C=E5=9C=A8=E7=9A=84=E8=B4=A6=E6=88=B7?=
=?UTF-8?q?=E6=B3=84=E9=9C=B2=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env | 5 +++++
src/views/Login/components/LoginForm.vue | 6 +++---
types/env.d.ts | 3 +++
3 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/.env b/.env
index 424b022b..4b0f5bf6 100644
--- a/.env
+++ b/.env
@@ -18,3 +18,8 @@ VITE_APP_DOCALERT_ENABLE=true
# 百度统计
VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc
+
+# 默认账户密码
+VITE_APP_DEFAULT_LOGIN_TENANT = 芋道源码
+VITE_APP_DEFAULT_LOGIN_USERNAME = admin
+VITE_APP_DEFAULT_LOGIN_PASSWORD = admin123
diff --git a/src/views/Login/components/LoginForm.vue b/src/views/Login/components/LoginForm.vue
index e61ccbe9..3dbaff3f 100644
--- a/src/views/Login/components/LoginForm.vue
+++ b/src/views/Login/components/LoginForm.vue
@@ -184,9 +184,9 @@ const loginData = reactive({
captchaEnable: import.meta.env.VITE_APP_CAPTCHA_ENABLE,
tenantEnable: import.meta.env.VITE_APP_TENANT_ENABLE,
loginForm: {
- tenantName: '芋道源码',
- username: 'admin',
- password: 'admin123',
+ tenantName: import.meta.env.VITE_APP_DEFAULT_LOGIN_TENANT || '',
+ username: import.meta.env.VITE_APP_DEFAULT_LOGIN_USERNAME || '',
+ password: import.meta.env.VITE_APP_DEFAULT_LOGIN_PASSWORD || '',
captchaVerification: '',
rememberMe: true // 默认记录我。如果不需要,可手动修改
}
diff --git a/types/env.d.ts b/types/env.d.ts
index 057b5268..1326e3b4 100644
--- a/types/env.d.ts
+++ b/types/env.d.ts
@@ -14,6 +14,9 @@ interface ImportMetaEnv {
readonly VITE_DEV: string
readonly VITE_APP_CAPTCHA_ENABLE: string
readonly VITE_APP_TENANT_ENABLE: string
+ readonly VITE_APP_DEFAULT_LOGIN_TENANT: string
+ readonly VITE_APP_DEFAULT_LOGIN_USERNAME: string
+ readonly VITE_APP_DEFAULT_LOGIN_PASSWORD: string
readonly VITE_APP_DOCALERT_ENABLE: string
readonly VITE_BASE_URL: string
readonly VITE_UPLOAD_URL: string
From e83df376169f56d8ffdb4c166e1e32de7d189215 Mon Sep 17 00:00:00 2001
From: ZhouWei <1244620067@qq.com>
Date: Wed, 5 Jun 2024 12:44:50 +0800
Subject: [PATCH 8/9] docs: update README
---
README.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 55d1abf8..738fc6d1 100644
--- a/README.md
+++ b/README.md
@@ -56,8 +56,7 @@
| 插件名 | 功能 |
|-------------------------------|--------------------------|
-| TypeScript Vue Plugin (Volar) | 用于 TypeScript 的 Vue 插件 |
-| Vue Language Features (Volar) | Vue3.0 语法支持 |
+| Vue - Official | Vue与TypeScript支持 |
| unocss | unocss for vscode |
| Iconify IntelliSense | Iconify 预览和搜索 |
| i18n Ally | 国际化智能提示 |
From db3b8285d17806694f8e4e5ad7e2352ec9a88b54 Mon Sep 17 00:00:00 2001
From: geekymv
Date: Fri, 5 Jul 2024 17:54:05 +0800
Subject: [PATCH 9/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9OA=E8=AF=B7=E5=81=87?=
=?UTF-8?q?=E5=AE=A1=E6=89=B9=E7=BB=93=E6=9E=9C=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/bpm/oa/leave/index.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/views/bpm/oa/leave/index.vue b/src/views/bpm/oa/leave/index.vue
index bd41104a..27dbc19e 100644
--- a/src/views/bpm/oa/leave/index.vue
+++ b/src/views/bpm/oa/leave/index.vue
@@ -36,9 +36,9 @@
value-format="YYYY-MM-DD HH:mm:ss"
/>
-
+
-
+
-
+