公开退款导出

This commit is contained in:
“wanyongkang”
2021-01-27 19:14:06 +08:00
parent 034286a876
commit f5ad75f98d
2 changed files with 8 additions and 9 deletions

View File

@@ -89,7 +89,7 @@ export default {
})
},
dataExport () {
this.$api.getDownloadFile('/course/v1/order/OpenExportRefundOrders', this.searchModel)
this.$api.getDownloadFile(this.$api.phpURL + 'order/OpenRefund/export', this.searchModel, '退款.csv')
}
}
}

View File

@@ -2,7 +2,6 @@
<div v-loading="loading">
<div class="heior_box">
<el-button size="small" type="primary" icon="el-icon-plus" @click="add">添加会员</el-button>
<el-button size="small" type="primary" icon="el-icon-sold-out" @click="dataExport" v-if="$local.isRoot()">导出</el-button>
<div class="search-box">
<el-input v-model="searchModel.keyWord" placeholder="请输入会员号/名称" clearable size="small">
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
@@ -32,7 +31,7 @@
<el-table-column prop="ManagerName" label="客户经理"></el-table-column>
<el-table-column prop="Name" label="姓名"></el-table-column>
<el-table-column prop="id_code" label="身份证号"></el-table-column>
<el-table-column prop="Remark" label="实名状态"></el-table-column>
<el-table-column prop="is_verify" label="实名状态"></el-table-column>
<el-table-column label="操作" width="400px">
<template slot-scope="scope">
<span class="handel cursor edit" @click="showUpdateTest(scope.row)">设置测试</span>
@@ -199,11 +198,11 @@ export default {
detailAmountData: [],
formatterCreateType(row, column, cellValue, index) {
switch (cellValue) {
case 1:
case '1':
return "管理员添加";
case 2:
case '2':
return "用户注册";
case 3:
case '3':
return "淘宝注册";
}
return "";
@@ -230,7 +229,7 @@ export default {
this.get();
},
get() {
this.$api.get("baseinfo/v1/user/page", this.searchModel).then(res => {
this.$api.get(this.$api.phpURL + "user/user/getList", this.searchModel).then(res => {
this.retData = res;
});
},
@@ -266,7 +265,7 @@ export default {
this.$refs[formName].validate(valid => {
if (!valid) return;
if (this.optype == 1) {
this.$api.post("baseinfo/v1/user/post", this.userModel).then(res => {
this.$api.post(this.$api.phpURL + "user/user/addUser", this.userModel).then(res => {
this.resetForm("inputUserForm");
this.get();
});
@@ -302,7 +301,7 @@ export default {
},
updateTestLimit() {
this.$api
.post("baseinfo/v1/user/UpdateTestCount", this.testLimitModel)
.post(this.$api.phpURL + "user/user/testCount", this.testLimitModel)
.then(res => {
this.resetForm("inputTestForm");
this.get();