1231233
This commit is contained in:
@@ -65,6 +65,16 @@
|
||||
></el-switch>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="启用IOS" align="center" prop="enableIos" >
|
||||
<template v-slot="scope">
|
||||
<el-switch
|
||||
v-model="scope.row.enableIos"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
@change="handleOpenIosChange(scope.row)"
|
||||
></el-switch>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="支付类型" align="center" prop="type" />
|
||||
<el-table-column label="轮训比重" align="center" prop="forNum" />
|
||||
<!-- <el-table-column label="最小金额" align="center" prop="minAmount" />-->
|
||||
@@ -77,7 +87,7 @@
|
||||
<el-table-column label="请求域名" align="center" prop="gatewayUrl" show-overflow-tooltip />
|
||||
<el-table-column label="回调域名" align="center" prop="notifyUrl" show-overflow-tooltip />
|
||||
<el-table-column label="秘钥" align="center" prop="sign" show-overflow-tooltip />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="120">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
@@ -234,6 +244,21 @@ export default {
|
||||
row.enableWxStatus = row.enableWxStatus === 1 ? 0 : 1
|
||||
})
|
||||
},
|
||||
handleOpenIosChange(row){
|
||||
let text = row.enableIos === 0 ? '关闭' : '启用'
|
||||
this.$confirm('确认要' + text + '该配置吗?', '警告', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
return updatePayTrdConfig({ id: row.id, enableIos: row.enableIos })
|
||||
}).then(() => {
|
||||
this.$modal.msgSuccess(text + '成功')
|
||||
this.getList()
|
||||
}).catch(function() {
|
||||
row.enableIos = row.enableIos === 1 ? 0 : 1
|
||||
})
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user