Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7883e316
authored
May 11, 2024
by
DevDengChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复微信原生支付与网站支付无法配置的问题
parent
0275cb6d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
151 deletions
+44
-151
src/views/pay/app/index.vue
+44
-151
No files found.
src/views/pay/app/index.vue
View file @
7883e316
...
@@ -45,10 +45,17 @@
...
@@ -45,10 +45,17 @@
/>
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
@
click=
"handleQuery"
>
<Icon
icon=
"ep:search"
class=
"mr-5px"
/>
搜索
</el-button>
<el-button
@
click=
"handleQuery"
>
<el-button
@
click=
"resetQuery"
>
<Icon
icon=
"ep:refresh"
class=
"mr-5px"
/>
重置
</el-button>
<Icon
icon=
"ep:search"
class=
"mr-5px"
/>
搜索
</el-button>
<el-button
@
click=
"resetQuery"
>
<Icon
icon=
"ep:refresh"
class=
"mr-5px"
/>
重置
</el-button>
<el-button
type=
"primary"
plain
@
click=
"openForm('create')"
v-hasPermi=
"['pay:app:create']"
>
<el-button
type=
"primary"
plain
@
click=
"openForm('create')"
v-hasPermi=
"['pay:app:create']"
>
<Icon
icon=
"ep:plus"
class=
"mr-5px"
/>
新增
<Icon
icon=
"ep:plus"
class=
"mr-5px"
/>
新增
</el-button>
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -70,93 +77,18 @@
...
@@ -70,93 +77,18 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"支付宝配置"
align=
"center"
>
<el-table-column
label=
"支付宝配置"
align=
"center"
>
<el-table-column
:label=
"PayChannelEnum.ALIPAY_APP.name"
align=
"center"
>
<el-table-column
<
template
#
default=
"scope"
>
:label=
"channel.name"
<el-button
align=
"center"
type=
"success"
v-for=
"channel in alipayChannels"
v-if=
"isChannelExists(scope.row.channelCodes, PayChannelEnum.ALIPAY_APP.code)"
:key=
"channel.code"
@
click=
"openChannelForm(scope.row, PayChannelEnum.ALIPAY_APP.code)"
circle
>
<Icon
icon=
"ep:check"
/>
</el-button>
<el-button
v-else
type=
"danger"
circle
@
click=
"openChannelForm(scope.row, PayChannelEnum.ALIPAY_APP.code)"
>
<Icon
icon=
"ep:close"
/>
</el-button>
</
template
>
</el-table-column>
<el-table-column
:label=
"PayChannelEnum.ALIPAY_PC.name"
align=
"center"
>
<
template
#
default=
"scope"
>
<el-button
type=
"success"
circle
v-if=
"isChannelExists(scope.row.channelCodes, PayChannelEnum.ALIPAY_PC.code)"
@
click=
"openChannelForm(scope.row, PayChannelEnum.ALIPAY_PC.code)"
>
<Icon
icon=
"ep:check"
/>
</el-button>
<el-button
v-else
type=
"danger"
circle
@
click=
"openChannelForm(scope.row, PayChannelEnum.ALIPAY_PC.code)"
>
<Icon
icon=
"ep:close"
/>
</el-button>
</
template
>
</el-table-column>
<el-table-column
:label=
"PayChannelEnum.ALIPAY_WAP.name"
align=
"center"
>
<
template
#
default=
"scope"
>
<el-button
type=
"success"
circle
v-if=
"isChannelExists(scope.row.channelCodes, PayChannelEnum.ALIPAY_WAP.code)"
@
click=
"openChannelForm(scope.row, PayChannelEnum.ALIPAY_WAP.code)"
>
<Icon
icon=
"ep:check"
/>
</el-button>
<el-button
v-else
type=
"danger"
circle
@
click=
"openChannelForm(scope.row, PayChannelEnum.ALIPAY_WAP.code)"
>
<Icon
icon=
"ep:close"
/>
</el-button>
</
template
>
</el-table-column>
<el-table-column
:label=
"PayChannelEnum.ALIPAY_QR.name"
align=
"center"
>
<
template
#
default=
"scope"
>
<el-button
type=
"success"
circle
v-if=
"isChannelExists(scope.row.channelCodes, PayChannelEnum.ALIPAY_QR.code)"
@
click=
"openChannelForm(scope.row, PayChannelEnum.ALIPAY_QR.code)"
>
<Icon
icon=
"ep:check"
/>
</el-button>
<el-button
v-else
type=
"danger"
circle
@
click=
"openChannelForm(scope.row, PayChannelEnum.ALIPAY_QR.code)"
>
>
<Icon
icon=
"ep:close"
/>
</el-button>
</
template
>
</el-table-column>
<el-table-column
:label=
"PayChannelEnum.ALIPAY_BAR.name"
align=
"center"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-button
<el-button
type=
"success"
type=
"success"
v-if=
"isChannelExists(scope.row.channelCodes, channel.code)"
@
click=
"openChannelForm(scope.row, channel.code)"
circle
circle
v-if=
"isChannelExists(scope.row.channelCodes, PayChannelEnum.ALIPAY_BAR.code)"
@
click=
"openChannelForm(scope.row, PayChannelEnum.ALIPAY_BAR.code)"
>
>
<Icon
icon=
"ep:check"
/>
<Icon
icon=
"ep:check"
/>
</el-button>
</el-button>
...
@@ -164,7 +96,7 @@
...
@@ -164,7 +96,7 @@
v-else
v-else
type=
"danger"
type=
"danger"
circle
circle
@
click=
"openChannelForm(scope.row,
PayChannelEnum.ALIPAY_BAR
.code)"
@
click=
"openChannelForm(scope.row,
channel
.code)"
>
>
<Icon
icon=
"ep:close"
/>
<Icon
icon=
"ep:close"
/>
</el-button>
</el-button>
...
@@ -172,33 +104,18 @@
...
@@ -172,33 +104,18 @@
</el-table-column>
</el-table-column>
</el-table-column>
</el-table-column>
<el-table-column
label=
"微信配置"
align=
"center"
>
<el-table-column
label=
"微信配置"
align=
"center"
>
<el-table-column
:label=
"PayChannelEnum.WX_LITE.name"
align=
"center"
>
<el-table-column
<
template
#
default=
"scope"
>
:label=
"channel.name"
<el-button
align=
"center"
type=
"success"
v-for=
"channel in wxChannels"
circle
:key=
"channel.code"
v-if=
"isChannelExists(scope.row.channelCodes, PayChannelEnum.WX_LITE.code)"
@
click=
"openChannelForm(scope.row, PayChannelEnum.WX_LITE.code)"
>
>
<Icon
icon=
"ep:check"
/>
</el-button>
<el-button
v-else
type=
"danger"
circle
@
click=
"openChannelForm(scope.row, PayChannelEnum.WX_LITE.code)"
>
<Icon
icon=
"ep:close"
/>
</el-button>
</
template
>
</el-table-column>
<el-table-column
:label=
"PayChannelEnum.WX_PUB.name"
align=
"center"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-button
<el-button
type=
"success"
type=
"success"
v-if=
"isChannelExists(scope.row.channelCodes, channel.code)"
@
click=
"openChannelForm(scope.row, channel.code)"
circle
circle
v-if=
"isChannelExists(scope.row.channelCodes, PayChannelEnum.WX_PUB.code)"
@
click=
"openChannelForm(scope.row, PayChannelEnum.WX_PUB.code)"
>
>
<Icon
icon=
"ep:check"
/>
<Icon
icon=
"ep:check"
/>
</el-button>
</el-button>
...
@@ -206,47 +123,7 @@
...
@@ -206,47 +123,7 @@
v-else
v-else
type=
"danger"
type=
"danger"
circle
circle
@
click=
"openChannelForm(scope.row, PayChannelEnum.WX_PUB.code)"
@
click=
"openChannelForm(scope.row, channel.code)"
>
<Icon
icon=
"ep:close"
/>
</el-button>
</
template
>
</el-table-column>
<el-table-column
:label=
"PayChannelEnum.WX_APP.name"
align=
"center"
>
<
template
#
default=
"scope"
>
<el-button
type=
"success"
circle
v-if=
"isChannelExists(scope.row.channelCodes, PayChannelEnum.WX_APP.code)"
@
click=
"openChannelForm(scope.row, PayChannelEnum.WX_APP.code)"
>
<Icon
icon=
"ep:check"
/>
</el-button>
<el-button
v-else
type=
"danger"
circle
@
click=
"openChannelForm(scope.row, PayChannelEnum.WX_APP.code)"
>
<Icon
icon=
"ep:close"
/>
</el-button>
</
template
>
</el-table-column>
<el-table-column
:label=
"PayChannelEnum.WX_BAR.name"
align=
"center"
>
<
template
#
default=
"scope"
>
<el-button
type=
"success"
circle
v-if=
"isChannelExists(scope.row.channelCodes, PayChannelEnum.WX_BAR.code)"
@
click=
"openChannelForm(scope.row, PayChannelEnum.WX_BAR.code)"
>
<Icon
icon=
"ep:check"
/>
</el-button>
<el-button
v-else
type=
"danger"
circle
@
click=
"openChannelForm(scope.row, PayChannelEnum.WX_BAR.code)"
>
>
<Icon
icon=
"ep:close"
/>
<Icon
icon=
"ep:close"
/>
</el-button>
</el-button>
...
@@ -338,12 +215,11 @@
...
@@ -338,12 +215,11 @@
import
{
DICT_TYPE
,
getIntDictOptions
}
from
'@/utils/dict'
import
{
DICT_TYPE
,
getIntDictOptions
}
from
'@/utils/dict'
import
*
as
AppApi
from
'@/api/pay/app'
import
*
as
AppApi
from
'@/api/pay/app'
import
AppForm
from
'./components/AppForm.vue'
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
AlipayChannelForm
from
'./components/channel/AlipayChannelForm.vue'
import
WeixinChannelForm
from
'./components/channel/WeixinChannelForm.vue'
import
WeixinChannelForm
from
'./components/channel/WeixinChannelForm.vue'
import
MockChannelForm
from
'./components/channel/MockChannelForm.vue'
import
MockChannelForm
from
'./components/channel/MockChannelForm.vue'
import
WalletChannelForm
from
'./components/channel/WalletChannelForm.vue'
import
WalletChannelForm
from
'./components/channel/WalletChannelForm.vue'
import
{
CommonStatusEnum
}
from
'@/utils/constants'
defineOptions
({
name
:
'PayApp'
})
defineOptions
({
name
:
'PayApp'
})
...
@@ -365,6 +241,23 @@ const queryParams = reactive({
...
@@ -365,6 +241,23 @@ const queryParams = reactive({
})
})
const
queryFormRef
=
ref
()
// 搜索的表单
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
()
=>
{
const
getList
=
async
()
=>
{
loading
.
value
=
true
loading
.
value
=
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment