|
@@ -157,6 +157,19 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="模拟支付配置" align="center">
|
|
|
|
+ <el-table-column :label="payChannelEnum.MOCK.name" align="center">
|
|
|
|
+ <template v-slot="scope">
|
|
|
|
+ <el-button type="success" icon="el-icon-check" circle
|
|
|
|
+ v-if="isChannelExists(scope.row.channelCodes, payChannelEnum.MOCK.code)"
|
|
|
|
+ @click="handleChannel(scope.row, payChannelEnum.MOCK.code)">
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button v-else type="danger" icon="el-icon-close" circle
|
|
|
|
+ @click="handleChannel(scope.row, payChannelEnum.MOCK.code)">
|
|
|
|
+ </el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<template v-slot="scope">
|
|
<template v-slot="scope">
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
@@ -206,6 +219,7 @@
|
|
<!-- 对话框(支付应用的配置) -->
|
|
<!-- 对话框(支付应用的配置) -->
|
|
<weixin-channel-form ref="weixinChannelFormRef" @success="getList" />
|
|
<weixin-channel-form ref="weixinChannelFormRef" @success="getList" />
|
|
<alipay-channel-form ref="alipayChannelFormRef" @success="getList" />
|
|
<alipay-channel-form ref="alipayChannelFormRef" @success="getList" />
|
|
|
|
+ <mock-channel-form ref="mockChannelFormRef" @success="getList" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -214,12 +228,14 @@ import { createApp, updateApp, changeAppStatus, deleteApp, getApp, getAppPage }
|
|
import { PayChannelEnum, CommonStatusEnum } from "@/utils/constants";
|
|
import { PayChannelEnum, CommonStatusEnum } from "@/utils/constants";
|
|
import weixinChannelForm from "@/views/pay/app/components/weixinChannelForm";
|
|
import weixinChannelForm from "@/views/pay/app/components/weixinChannelForm";
|
|
import alipayChannelForm from "@/views/pay/app/components/alipayChannelForm";
|
|
import alipayChannelForm from "@/views/pay/app/components/alipayChannelForm";
|
|
|
|
+import mockChannelForm from '@/views/pay/app/components/mockChannelForm';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "PayApp",
|
|
name: "PayApp",
|
|
components: {
|
|
components: {
|
|
weixinChannelForm,
|
|
weixinChannelForm,
|
|
- alipayChannelForm
|
|
|
|
|
|
+ alipayChannelForm,
|
|
|
|
+ mockChannelForm
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -374,6 +390,10 @@ export default {
|
|
this.$refs['weixinChannelFormRef'].open(row.id, code);
|
|
this.$refs['weixinChannelFormRef'].open(row.id, code);
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (code === 'mock') {
|
|
|
|
+ this.$refs['mockChannelFormRef'].open(row.id, code);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
* 根据渠道编码判断渠道列表中是否存在
|
|
* 根据渠道编码判断渠道列表中是否存在
|