Skip to content

Commit a9ca980

Browse files
committed
2 parents a0ecfed + 922b9ed commit a9ca980

File tree

12 files changed

+82
-170
lines changed

12 files changed

+82
-170
lines changed

.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ VITE_APP_DOCALERT_ENABLE=true
1818

1919
# 百度统计
2020
VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc
21+
22+
# 默认账户密码
23+
VITE_APP_DEFAULT_LOGIN_TENANT = 芋道源码
24+
VITE_APP_DEFAULT_LOGIN_USERNAME = admin
25+
VITE_APP_DEFAULT_LOGIN_PASSWORD = admin123

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656

5757
| 插件名 | 功能 |
5858
|-------------------------------|--------------------------|
59-
| TypeScript Vue Plugin (Volar) | 用于 TypeScript 的 Vue 插件 |
60-
| Vue Language Features (Volar) | Vue3.0 语法支持 |
59+
| Vue - Official | Vue与TypeScript支持 |
6160
| unocss | unocss for vscode |
6261
| Iconify IntelliSense | Iconify 预览和搜索 |
6362
| i18n Ally | 国际化智能提示 |

src/utils/constants.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ export const PayChannelEnum = {
109109
code: 'wx_app',
110110
name: '微信 APP 支付'
111111
},
112+
WX_NATIVE: {
113+
code: 'wx_native',
114+
name: '微信 Native 支付'
115+
},
116+
WX_WAP: {
117+
code: 'wx_wap',
118+
name: '微信 WAP 网站支付'
119+
},
112120
WX_BAR: {
113121
code: 'wx_bar',
114122
name: '微信条码支付'

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ export const fenToYuan = (price: string | number): string => {
313313
*/
314314
export const calculateRelativeRate = (value?: number, reference?: number) => {
315315
// 防止除0
316-
if (!reference) return 0
316+
if (!reference || reference == 0) return 0
317317

318318
return ((100 * ((value || 0) - reference)) / reference).toFixed(0)
319319
}

src/views/Login/components/LoginForm.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ const loginData = reactive({
184184
captchaEnable: import.meta.env.VITE_APP_CAPTCHA_ENABLE,
185185
tenantEnable: import.meta.env.VITE_APP_TENANT_ENABLE,
186186
loginForm: {
187-
tenantName: '芋道源码',
188-
username: 'admin',
189-
password: 'admin123',
187+
tenantName: import.meta.env.VITE_APP_DEFAULT_LOGIN_TENANT || '',
188+
username: import.meta.env.VITE_APP_DEFAULT_LOGIN_USERNAME || '',
189+
password: import.meta.env.VITE_APP_DEFAULT_LOGIN_PASSWORD || '',
190190
captchaVerification: '',
191191
rememberMe: true // 默认记录我。如果不需要,可手动修改
192192
}

src/views/bpm/oa/leave/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
value-format="YYYY-MM-DD HH:mm:ss"
3737
/>
3838
</el-form-item>
39-
<el-form-item label="审批结果" prop="result">
39+
<el-form-item label="审批结果" prop="status">
4040
<el-select
41-
v-model="queryParams.result"
41+
v-model="queryParams.status"
4242
class="!w-240px"
4343
clearable
4444
placeholder="请选择审批结果"
@@ -81,7 +81,7 @@
8181
<ContentWrap>
8282
<el-table v-loading="loading" :data="list">
8383
<el-table-column align="center" label="申请编号" prop="id" />
84-
<el-table-column align="center" label="状态" prop="result">
84+
<el-table-column align="center" label="状态" prop="status">
8585
<template #default="scope">
8686
<dict-tag :type="DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS" :value="scope.row.status" />
8787
</template>

src/views/mall/home/components/TradeTrendCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const getOrderCountTrendComparison = async (
186186
dates.push(item.value.date)
187187
if (series.length === 2) {
188188
series[0].data.push(fenToYuan(item?.value?.orderPayPrice || 0)) // 当前金额
189-
series[1].data.push(fenToYuan(item?.value?.orderPayCount || 0)) // 当前数量
189+
series[1].data.push(item?.value?.orderPayCount || 0) // 当前数量
190190
} else {
191191
series[0].data.push(fenToYuan(item?.reference?.orderPayPrice || 0)) // 对照金额
192192
series[1].data.push(fenToYuan(item?.value?.orderPayPrice || 0)) // 当前金额

src/views/mall/product/spu/form/ProductPropertyAddForm.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:model="formData"
88
:rules="formRules"
99
label-width="80px"
10+
@keydown.enter.prevent="submitForm"
1011
>
1112
<el-form-item label="属性名称" prop="name">
1213
<el-input v-model="formData.name" placeholder="请输入名称" />

src/views/pay/app/components/channel/WeixinChannelForm.vue

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@
8080
:http-request="keyContentUpload"
8181
>
8282
<el-button type="primary">
83-
<Icon icon="ep:upload" class="mr-5px" /> 点击上传
83+
<Icon icon="ep:upload" class="mr-5px" />
84+
点击上传
8485
</el-button>
8586
</el-upload>
8687
</el-form-item>
@@ -120,7 +121,8 @@
120121
:http-request="privateKeyContentUpload"
121122
>
122123
<el-button type="primary">
123-
<Icon icon="ep:upload" class="mr-5px" /> 点击上传
124+
<Icon icon="ep:upload" class="mr-5px" />
125+
点击上传
124126
</el-button>
125127
</el-upload>
126128
</el-form-item>
@@ -148,7 +150,8 @@
148150
:http-request="privateCertContentUpload"
149151
>
150152
<el-button type="primary">
151-
<Icon icon="ep:upload" class="mr-5px" /> 点击上传
153+
<Icon icon="ep:upload" class="mr-5px" />
154+
点击上传
152155
</el-button>
153156
</el-upload>
154157
</el-form-item>
@@ -310,7 +313,7 @@ const pemFileBeforeUpload = (file) => {
310313
/**
311314
* 读取 apiclient_key.pem 到 privateKeyContent 字段
312315
*/
313-
const privateKeyContentUpload = (event) => {
316+
const privateKeyContentUpload = async (event) => {
314317
const readFile = new FileReader()
315318
readFile.onload = (e: any) => {
316319
formData.value.config.privateKeyContent = e.target.result
@@ -321,7 +324,7 @@ const privateKeyContentUpload = (event) => {
321324
/**
322325
* 读取 apiclient_cert.pem 到 privateCertContent 字段
323326
*/
324-
const privateCertContentUpload = (event) => {
327+
const privateCertContentUpload = async (event) => {
325328
const readFile = new FileReader()
326329
readFile.onload = (e: any) => {
327330
formData.value.config.privateCertContent = e.target.result
@@ -332,7 +335,7 @@ const privateCertContentUpload = (event) => {
332335
/**
333336
* 读取 apiclient_cert.p12 到 keyContent 字段
334337
*/
335-
const keyContentUpload = (event) => {
338+
const keyContentUpload = async (event) => {
336339
const readFile = new FileReader()
337340
readFile.onload = (e: any) => {
338341
formData.value.config.keyContent = e.target.result.split(',')[1]

0 commit comments

Comments
 (0)