|
@ -29,7 +29,7 @@ |
|
|
<!-- :active-value="1" :inactive-value="0"(关闭) 加冒号表示数字格式 --> |
|
|
<!-- :active-value="1" :inactive-value="0"(关闭) 加冒号表示数字格式 --> |
|
|
<!-- active-value="1" inactive-value="0"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- active-value="1" inactive-value="0"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- 传入的modelvalue 为数字 0 或者 1 --> |
|
|
<!-- 传入的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> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="status" fixed="right" label="启用状态" min-width="30px"> |
|
|
<el-table-column prop="status" fixed="right" label="启用状态" min-width="30px"> |
|
@ -38,7 +38,7 @@ |
|
|
<!-- active-value="1" inactive-value="0"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- active-value="1" inactive-value="0"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- 传入的modelvalue 为数字 0 或者 1 --> |
|
|
<!-- 传入的modelvalue 为数字 0 或者 1 --> |
|
|
<div class="flex"> |
|
|
<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"> |
|
|
<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"> |
|
|
<div class="flex"> |
|
|
<img src="@/assets/site/tip.svg" alt=""> <span class="ml-8 bind-sites-title">启用站点</span> |
|
|
<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"(关闭) 加冒号表示数字格式 --> |
|
|
<!-- active-value="1" inactive-value="0"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- active-value="1" inactive-value="0"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- 传入的modelvalue 为数字 0 或者 1 --> |
|
|
<!-- 传入的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> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="status" fixed="right" label="启用状态" min-width="30px"> |
|
|
<el-table-column prop="status" fixed="right" label="启用状态" min-width="30px"> |
|
@ -93,7 +93,7 @@ |
|
|
<!-- active-value="1" inactive-value="0"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- active-value="1" inactive-value="0"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- 传入的modelvalue 为数字 0 或者 1 --> |
|
|
<!-- 传入的modelvalue 为数字 0 或者 1 --> |
|
|
<div class="flex"> |
|
|
<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"> |
|
|
<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"> |
|
|
<div class="flex"> |
|
|
<img src="@/assets/site/tip.svg" alt=""> <span class="ml-8 bind-sites-title">启用站点</span> |
|
|
<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"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- active-value="1" inactive-value="0"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- 传入的modelvalue 为数字 0 或者 1 --> |
|
|
<!-- 传入的modelvalue 为数字 0 或者 1 --> |
|
|
<div class="flex"> |
|
|
<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"> |
|
|
<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"> |
|
|
<div class="flex"> |
|
|
<img src="@/assets/site/tip.svg" alt=""> <span class="ml-8 bind-sites-title">启用站点</span> |
|
|
<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"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- active-value="1" inactive-value="0"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- 传入的modelvalue 为数字 0 或者 1 --> |
|
|
<!-- 传入的modelvalue 为数字 0 或者 1 --> |
|
|
<div class="flex"> |
|
|
<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"> |
|
|
<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"> |
|
|
<div class="flex"> |
|
|
<img src="@/assets/site/tip.svg" alt=""> <span class="ml-8 bind-sites-title">启用站点</span> |
|
|
<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"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- active-value="1" inactive-value="0"(关闭) 不加冒号表示字符串 --> |
|
|
<!-- 传入的modelvalue 为数字 0 或者 1 --> |
|
|
<!-- 传入的modelvalue 为数字 0 或者 1 --> |
|
|
<div class="flex"> |
|
|
<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"> |
|
|
<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"> |
|
|
<div class="flex"> |
|
|
<img src="@/assets/site/tip.svg" alt=""> <span class="ml-8 bind-sites-title">启用站点</span> |
|
|
<img src="@/assets/site/tip.svg" alt=""> <span class="ml-8 bind-sites-title">启用站点</span> |
|
@ -577,7 +577,7 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
this.$http('POST', '/agentnew/ajax_update_pay_status', { |
|
|
this.$http('POST', '/agentnew/ajax_update_pay_status', { |
|
|
payid: row.payid, |
|
|
payid: row.payid, |
|
|
status: row.status==1 ? 0 : 1, |
|
|
status: row.status, |
|
|
}, { |
|
|
}, { |
|
|
headers: { |
|
|
headers: { |
|
|
'Auth': this.token |
|
|
'Auth': this.token |
|
@ -599,10 +599,10 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
updateAutoRefund(row) { |
|
|
updateAutoRefund(row) { |
|
|
this.$http('POST', '/agentnew/ajax_setting_auto_refund', { |
|
|
this.$http('POST', '/agentnew/ajax_setting_auto_refund', { |
|
|
payid: row.payid, |
|
|
payid: row.payid, |
|
|
status: row.status==1 ? 0 : 1, |
|
|
status: row.is_auto_refund, |
|
|
}, { |
|
|
}, { |
|
|
headers: { |
|
|
headers: { |
|
|
'Auth': this.token |
|
|
'Auth': this.token |
|
|