Browse Source

Merge remote-tracking branch 'origin/master'

pull/97/head
pengda 1 month ago
parent
commit
1a7193f151
  1. 20
      src/views/agent/payList.vue

20
src/views/agent/payList.vue

@ -29,7 +29,7 @@
<!-- :active-value="1" :inactive-value="0"关闭 加冒号表示数字格式 -->
<!-- active-value="1" inactive-value="0"关闭 不加冒号表示字符串 -->
<!-- 传入的modelvalue 为数字 0 或者 1 -->
<GuipSwitch v-if="scope.row.is_pay_public == 0" :modelValue="scope.row.is_auto_refund" active-value="1" inactive-value="0" @change="updateAutoRefund(scope.row)"></GuipSwitch>
<GuipSwitch v-if="scope.row.is_pay_public == 0" v-model="scope.row.is_auto_refund" active-value="1" inactive-value="0" @change="updateAutoRefund(scope.row)"></GuipSwitch>
</template>
</el-table-column>
<el-table-column prop="status" fixed="right" label="启用状态" min-width="30px">
@ -38,7 +38,7 @@
<!-- active-value="1" inactive-value="0"关闭 不加冒号表示字符串 -->
<!-- 传入的modelvalue 为数字 0 或者 1 -->
<div class="flex">
<GuipSwitch :modelValue="scope.row.status" active-value="1" inactive-value="0" @change="updatePayStatus(scope.row)"></GuipSwitch>
<GuipSwitch v-model="scope.row.status" active-value="1" inactive-value="0" @change="updatePayStatus(scope.row)"></GuipSwitch>
<el-popover placement="bottom" width="150" trigger="click" v-if="scope.row.status == 1 && payBindSites[scope.row.payid] && payBindSites[scope.row.payid].length>0">
<div class="flex">
<img src="@/assets/site/tip.svg" alt=""> <span class="ml-8 bind-sites-title">启用站点</span>
@ -84,7 +84,7 @@
<!-- :active-value="1" :inactive-value="0"关闭 加冒号表示数字格式 -->
<!-- active-value="1" inactive-value="0"关闭 不加冒号表示字符串 -->
<!-- 传入的modelvalue 为数字 0 或者 1 -->
<GuipSwitch v-if="scope.row.is_pay_public == 0" :modelValue="scope.row.is_auto_refund" active-value="1" inactive-value="0" @change="updateAutoRefund(scope.row)"></GuipSwitch>
<GuipSwitch v-if="scope.row.is_pay_public == 0" v-model="scope.row.is_auto_refund" active-value="1" inactive-value="0" @change="updateAutoRefund(scope.row)"></GuipSwitch>
</template>
</el-table-column>
<el-table-column prop="status" fixed="right" label="启用状态" min-width="30px">
@ -93,7 +93,7 @@
<!-- active-value="1" inactive-value="0"关闭 不加冒号表示字符串 -->
<!-- 传入的modelvalue 为数字 0 或者 1 -->
<div class="flex">
<GuipSwitch :modelValue="scope.row.status" active-value="1" inactive-value="0" @change="updatePayStatus(scope.row)"></GuipSwitch>
<GuipSwitch v-model="scope.row.status" active-value="1" inactive-value="0" @change="updatePayStatus(scope.row)"></GuipSwitch>
<el-popover placement="bottom" width="150" trigger="click" v-if="scope.row.status == 1 && payBindSites[scope.row.payid] && payBindSites[scope.row.payid].length>0">
<div class="flex">
<img src="@/assets/site/tip.svg" alt=""> <span class="ml-8 bind-sites-title">启用站点</span>
@ -145,7 +145,7 @@
<!-- active-value="1" inactive-value="0"关闭 不加冒号表示字符串 -->
<!-- 传入的modelvalue 为数字 0 或者 1 -->
<div class="flex">
<GuipSwitch :modelValue="scope.row.status" active-value="1" inactive-value="0" @change="updatePayStatus(scope.row)"></GuipSwitch>
<GuipSwitch v-model="scope.row.status" active-value="1" inactive-value="0" @change="updatePayStatus(scope.row)"></GuipSwitch>
<el-popover placement="bottom" width="150" trigger="click" v-if="scope.row.status == 1 && payBindSites[scope.row.payid] && payBindSites[scope.row.payid].length>0">
<div class="flex">
<img src="@/assets/site/tip.svg" alt=""> <span class="ml-8 bind-sites-title">启用站点</span>
@ -198,7 +198,7 @@
<!-- active-value="1" inactive-value="0"关闭 不加冒号表示字符串 -->
<!-- 传入的modelvalue 为数字 0 或者 1 -->
<div class="flex">
<GuipSwitch :modelValue="scope.row.status" active-value="1" inactive-value="0" @change="updatePayStatus(scope.row)"></GuipSwitch>
<GuipSwitch v-model="scope.row.status" active-value="1" inactive-value="0" @change="updatePayStatus(scope.row)"></GuipSwitch>
<el-popover placement="bottom" width="150" trigger="click" v-if="scope.row.status == 1 && payBindSites[scope.row.payid] && payBindSites[scope.row.payid].length>0">
<div class="flex">
<img src="@/assets/site/tip.svg" alt=""> <span class="ml-8 bind-sites-title">启用站点</span>
@ -250,7 +250,7 @@
<!-- active-value="1" inactive-value="0"关闭 不加冒号表示字符串 -->
<!-- 传入的modelvalue 为数字 0 或者 1 -->
<div class="flex">
<GuipSwitch :modelValue="scope.row.status" active-value="1" inactive-value="0" @change="updatePayStatus(scope.row)"></GuipSwitch>
<GuipSwitch v-model="scope.row.status" active-value="1" inactive-value="0" @change="updatePayStatus(scope.row)"></GuipSwitch>
<el-popover placement="bottom" width="150" trigger="click" v-if="scope.row.status == 1 && payBindSites[scope.row.payid] && payBindSites[scope.row.payid].length>0">
<div class="flex">
<img src="@/assets/site/tip.svg" alt=""> <span class="ml-8 bind-sites-title">启用站点</span>
@ -577,7 +577,7 @@ export default {
} else {
this.$http('POST', '/agentnew/ajax_update_pay_status', {
payid: row.payid,
status: row.status==1 ? 0 : 1,
status: row.status,
}, {
headers: {
'Auth': this.token
@ -599,10 +599,10 @@ export default {
},
updateAutoRefund(row) {
updateAutoRefund(row) {
this.$http('POST', '/agentnew/ajax_setting_auto_refund', {
payid: row.payid,
status: row.status==1 ? 0 : 1,
status: row.is_auto_refund,
}, {
headers: {
'Auth': this.token

Loading…
Cancel
Save