1231233
This commit is contained in:
@@ -22,4 +22,4 @@ VUE_APP_XXL_JOB_ADMIN = 'http://localhost:9100/xxl-job-admin'
|
|||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||||
|
|
||||||
VUE_APP_LOGO_PRE = 'huahe'
|
VUE_APP_LOGO_PRE = 'zhiyu'
|
||||||
|
|||||||
@@ -65,6 +65,16 @@
|
|||||||
></el-switch>
|
></el-switch>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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="type" />
|
||||||
<el-table-column label="轮训比重" align="center" prop="forNum" />
|
<el-table-column label="轮训比重" align="center" prop="forNum" />
|
||||||
<!-- <el-table-column label="最小金额" align="center" prop="minAmount" />-->
|
<!-- <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="gatewayUrl" show-overflow-tooltip />
|
||||||
<el-table-column label="回调域名" align="center" prop="notifyUrl" 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" 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">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@@ -234,6 +244,21 @@ export default {
|
|||||||
row.enableWxStatus = row.enableWxStatus === 1 ? 0 : 1
|
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>
|
</script>
|
||||||
|
|||||||
@@ -2,14 +2,12 @@
|
|||||||
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="700px" append-to-body>
|
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="700px" append-to-body>
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||||
<el-form-item label="支付类型" prop="type">
|
<el-form-item label="支付类型" prop="type">
|
||||||
<el-select v-model="form.type" placeholder="支付类型" size="small">
|
<el-select v-model="form.type" placeholder="支付类型" size="small" >
|
||||||
<el-option key="V1" label="V1" value="V1" />
|
<el-option
|
||||||
<el-option key="V2" label="V2" value="V2" />
|
v-for="dict in selectOps"
|
||||||
<el-option key="V3" label="V3" value="V3" />
|
:key="dict.value"
|
||||||
<el-option key="V4" label="V4" value="V4" />
|
:label="dict.value"
|
||||||
<el-option key="V5" label="V5" value="V5" />
|
:value="dict.value" />
|
||||||
<el-option key="V6" label="V6" value="V6" />
|
|
||||||
<el-option key="V7" label="V7" value="V7" />
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="轮训比重" prop="forNum">
|
<el-form-item label="轮训比重" prop="forNum">
|
||||||
@@ -78,6 +76,7 @@ export default {
|
|||||||
sign: undefined,
|
sign: undefined,
|
||||||
forNum: 1,
|
forNum: 1,
|
||||||
},
|
},
|
||||||
|
selectOps:[],
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
minAmount: [
|
minAmount: [
|
||||||
@@ -112,6 +111,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
for (let i = 0; i < 20; i++) {
|
||||||
|
this.selectOps.push({"value": "V"+i})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init (id) {
|
init (id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user