|
@@ -82,11 +82,28 @@ export default {
|
|
|
value: item[0],
|
|
|
resource: resource
|
|
|
}))
|
|
|
+ this.funPayment(encodeURIComponent(api))
|
|
|
}
|
|
|
this.dataListLoading = false
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ // 扣费接口
|
|
|
+ funPayment (api = '') {
|
|
|
+ this.$http({
|
|
|
+ url: this.$http.adornUrl('/user/apicut'),
|
|
|
+ method: 'get',
|
|
|
+ params: this.$http.adornParams({
|
|
|
+ path: api
|
|
|
+ })
|
|
|
+ }).then(({ data }) => {
|
|
|
+ if (data.status) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$message.error(data.msg)
|
|
|
+ }).catch(() => {
|
|
|
+ })
|
|
|
+ },
|
|
|
// 导出表格所用
|
|
|
exportExcel (id) {
|
|
|
var wb = XLSX.utils.table_to_book(document.querySelector('#' + id))
|