123
This commit is contained in:
@@ -35,6 +35,14 @@ export function updatePayConfig(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function updatePayConfigStatus(data) {
|
||||||
|
return request({
|
||||||
|
url: '/cai/payConfig/status',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 删除支付配置
|
// 删除支付配置
|
||||||
export function delPayConfig(id) {
|
export function delPayConfig(id) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {delPayConfig, listPayConfig, updatePayConfig} from "@/api/cai/payConfig";
|
import {delPayConfig, listPayConfig, updatePayConfig, updatePayConfigStatus} from "@/api/cai/payConfig";
|
||||||
import {payConfigTypeList} from "@/constant/statusMap";
|
import {payConfigTypeList} from "@/constant/statusMap";
|
||||||
import PayConfigAddOrUpdateDialog from "@/views/cai/payConfig/pay-config-add-or-update-dialog";
|
import PayConfigAddOrUpdateDialog from "@/views/cai/payConfig/pay-config-add-or-update-dialog";
|
||||||
|
|
||||||
@@ -170,7 +170,7 @@ export default {
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
return updatePayConfig({ id: row.id, enableStatus: row.enableStatus })
|
return updatePayConfigStatus({ id: row.id, enableStatus: row.enableStatus })
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$modal.msgSuccess(text + '成功')
|
this.$modal.msgSuccess(text + '成功')
|
||||||
}).catch(function() {
|
}).catch(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user