Browse Source

bug修复

bug修复
master
j1ack 2 years ago
parent
commit
23a9e18ab1
  1. 8
      src/main.js
  2. 2
      src/views/monitor/job/index.vue
  3. 2
      src/views/monitor/job/log.vue
  4. 2
      src/views/monitor/logininfor/index.vue
  5. 2
      src/views/monitor/online/index.vue
  6. 2
      src/views/monitor/operlog/index.vue
  7. 2
      src/views/otc/otcAppealConfig/index.vue
  8. 2
      src/views/otc/otcAppealOrder/index.vue
  9. 2
      src/views/otc/otcCoin/index.vue
  10. 2
      src/views/otc/otcOrder/index.vue
  11. 2
      src/views/otc/otcPaymentLegalCurrency/index.vue
  12. 2
      src/views/otc/otcPaymentTemplate/index.vue
  13. 2
      src/views/otc/otcPaymentType/index.vue
  14. 2
      src/views/otc/otcStoreOrder/index.vue
  15. 2
      src/views/otc/otcStorePledge/index.vue
  16. 2
      src/views/otc/otcSysDict/index.vue
  17. 2
      src/views/system/config/index.vue
  18. 2
      src/views/system/dict/data.vue
  19. 2
      src/views/system/dict/index.vue
  20. 2
      src/views/system/notice/index.vue
  21. 2
      src/views/system/post/index.vue
  22. 2
      src/views/system/role/authUser.vue
  23. 2
      src/views/system/role/index.vue
  24. 2
      src/views/system/user/index.vue
  25. 2
      src/views/tool/gen/index.vue
  26. 4
      src/views/user/UserCertification/index.vue
  27. 2
      src/views/user/record/index.vue
  28. 115
      src/views/user/userCustomer/index.vue
  29. 2
      src/views/user/wallet/index.vue
  30. 2
      vue.config.js

8
src/main.js

@ -48,7 +48,13 @@ Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.download = download Vue.prototype.download = download
Vue.prototype.handleTree = handleTree Vue.prototype.handleTree = handleTree
Vue.prototype.msgSuccess = function (msg) {
this.$message({
showClose: true,
message: msg,
type: "success"
});
}
// 全局组件挂载 // 全局组件挂载
Vue.component('DictTag', DictTag) Vue.component('DictTag', DictTag)
Vue.component('Pagination', Pagination) Vue.component('Pagination', Pagination)

2
src/views/monitor/job/index.vue

@ -357,7 +357,7 @@ export default {
this.loading = true; this.loading = true;
listJob(this.queryParams).then(response => { listJob(this.queryParams).then(response => {
this.jobList = response.rows; this.jobList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/monitor/job/log.vue

@ -234,7 +234,7 @@ export default {
this.loading = true; this.loading = true;
listJobLog(this.addDateRange(this.queryParams, this.dateRange)).then(response => { listJobLog(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
this.jobLogList = response.rows; this.jobLogList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
} }
); );

2
src/views/monitor/logininfor/index.vue

@ -176,7 +176,7 @@ export default {
this.loading = true; this.loading = true;
list(this.addDateRange(this.queryParams, this.dateRange)).then(response => { list(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
this.list = response.rows; this.list = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
} }
); );

2
src/views/monitor/online/index.vue

@ -93,7 +93,7 @@ export default {
this.loading = true; this.loading = true;
list(this.queryParams).then(response => { list(this.queryParams).then(response => {
this.list = response.rows; this.list = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/monitor/operlog/index.vue

@ -245,7 +245,7 @@ export default {
this.loading = true; this.loading = true;
list(this.addDateRange(this.queryParams, this.dateRange)).then( response => { list(this.addDateRange(this.queryParams, this.dateRange)).then( response => {
this.list = response.rows; this.list = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
} }
); );

2
src/views/otc/otcAppealConfig/index.vue

@ -183,7 +183,7 @@ export default {
this.loading = true; this.loading = true;
listOtcAppealConfig(this.queryParams).then(response => { listOtcAppealConfig(this.queryParams).then(response => {
this.otcAppealConfigList = response.rows; this.otcAppealConfigList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/otc/otcAppealOrder/index.vue

@ -241,7 +241,7 @@ export default {
this.loading = true; this.loading = true;
listOtcAppealOrder(this.queryParams).then(response => { listOtcAppealOrder(this.queryParams).then(response => {
this.otcAppealOrderList = response.rows; this.otcAppealOrderList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/otc/otcCoin/index.vue

@ -246,7 +246,7 @@ export default {
this.loading = true; this.loading = true;
listOtcCoin(this.queryParams).then(response => { listOtcCoin(this.queryParams).then(response => {
this.otcCoinList = response.rows; this.otcCoinList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/otc/otcOrder/index.vue

@ -397,7 +397,7 @@ export default {
this.loading = true; this.loading = true;
listOtcOrder(this.queryParams).then(response => { listOtcOrder(this.queryParams).then(response => {
this.otcOrderList = response.rows; this.otcOrderList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/otc/otcPaymentLegalCurrency/index.vue

@ -180,7 +180,7 @@ export default {
this.loading = true; this.loading = true;
listOtcPaymentLegalCurrency(this.queryParams).then(response => { listOtcPaymentLegalCurrency(this.queryParams).then(response => {
this.otcPaymentLegalCurrencyList = response.rows; this.otcPaymentLegalCurrencyList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/otc/otcPaymentTemplate/index.vue

@ -253,7 +253,7 @@ export default {
this.loading = true; this.loading = true;
listOtcPaymentTemplate(this.queryParams).then(response => { listOtcPaymentTemplate(this.queryParams).then(response => {
this.otcPaymentTemplateList = response.rows; this.otcPaymentTemplateList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/otc/otcPaymentType/index.vue

@ -181,7 +181,7 @@ export default {
this.loading = true; this.loading = true;
listOtcPaymentType(this.queryParams).then(response => { listOtcPaymentType(this.queryParams).then(response => {
this.otcPaymentTypeList = response.rows; this.otcPaymentTypeList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/otc/otcStoreOrder/index.vue

@ -349,7 +349,7 @@ export default {
this.loading = true; this.loading = true;
listOtcStoreOrder(this.queryParams).then(response => { listOtcStoreOrder(this.queryParams).then(response => {
this.otcStoreOrderList = response.rows; this.otcStoreOrderList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/otc/otcStorePledge/index.vue

@ -223,7 +223,7 @@ export default {
this.loading = true; this.loading = true;
listOtcStorePledge(this.queryParams).then(response => { listOtcStorePledge(this.queryParams).then(response => {
this.otcStorePledgeList = response.rows; this.otcStorePledgeList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/otc/otcSysDict/index.vue

@ -214,7 +214,7 @@ export default {
this.loading = true; this.loading = true;
listOtcSysDict(this.queryParams).then(response => { listOtcSysDict(this.queryParams).then(response => {
this.otcSysDictList = response.rows; this.otcSysDictList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/system/config/index.vue

@ -241,7 +241,7 @@ export default {
this.loading = true; this.loading = true;
listConfig(this.addDateRange(this.queryParams, this.dateRange)).then(response => { listConfig(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
this.configList = response.rows; this.configList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
} }
); );

2
src/views/system/dict/data.vue

@ -296,7 +296,7 @@ export default {
this.loading = true; this.loading = true;
listData(this.queryParams).then(response => { listData(this.queryParams).then(response => {
this.dataList = response.rows; this.dataList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/system/dict/index.vue

@ -245,7 +245,7 @@ export default {
this.loading = true; this.loading = true;
listType(this.addDateRange(this.queryParams, this.dateRange)).then(response => { listType(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
this.typeList = response.rows; this.typeList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
} }
); );

2
src/views/system/notice/index.vue

@ -225,7 +225,7 @@ export default {
this.loading = true; this.loading = true;
listNotice(this.queryParams).then(response => { listNotice(this.queryParams).then(response => {
this.noticeList = response.rows; this.noticeList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/system/post/index.vue

@ -215,7 +215,7 @@ export default {
this.loading = true; this.loading = true;
listPost(this.queryParams).then(response => { listPost(this.queryParams).then(response => {
this.postList = response.rows; this.postList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/system/role/authUser.vue

@ -144,7 +144,7 @@ export default {
this.loading = true; this.loading = true;
allocatedUserList(this.queryParams).then(response => { allocatedUserList(this.queryParams).then(response => {
this.userList = response.rows; this.userList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
} }
); );

2
src/views/system/role/index.vue

@ -350,7 +350,7 @@ export default {
this.loading = true; this.loading = true;
listRole(this.addDateRange(this.queryParams, this.dateRange)).then(response => { listRole(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
this.roleList = response.rows; this.roleList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
} }
); );

2
src/views/system/user/index.vue

@ -471,7 +471,7 @@ export default {
this.loading = true; this.loading = true;
listUser(this.addDateRange(this.queryParams, this.dateRange)).then(response => { listUser(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
this.userList = response.rows; this.userList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
} }
); );

2
src/views/tool/gen/index.vue

@ -245,7 +245,7 @@ export default {
this.loading = true; this.loading = true;
listTable(this.addDateRange(this.queryParams, this.dateRange)).then(response => { listTable(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
this.tableList = response.rows; this.tableList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
} }
); );

4
src/views/user/UserCertification/index.vue

@ -217,7 +217,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="审核状态"> <el-form-item label="审核状态">
<el-radio-group v-model="form.auditStatus"> <el-radio-group v-model="form.auditStatus">
<el-radio label="agree" >审核通过</el-radio> <el-radio label="agree">审核通过</el-radio>
<el-radio label="reject" >驳回</el-radio> <el-radio label="reject" >驳回</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -311,7 +311,7 @@ export default {
this.loading = true; this.loading = true;
listUserCertification(this.queryParams).then(response => { listUserCertification(this.queryParams).then(response => {
this.UserCertificationList = response.rows; this.UserCertificationList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
src/views/user/record/index.vue

@ -263,7 +263,7 @@ export default {
this.loading = true; this.loading = true;
listRecord(this.queryParams).then(response => { listRecord(this.queryParams).then(response => {
this.recordList = response.rows; this.recordList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

115
src/views/user/userCustomer/index.vue

@ -2,43 +2,29 @@
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="姓名" prop="name"> <el-form-item label="姓名" prop="name">
<el-input <el-input v-model="queryParams.name" placeholder="请输入姓名" clearable size="small"
v-model="queryParams.name" @keyup.enter.native="handleQuery" />
placeholder="请输入姓名"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="邮箱" prop="email"> <el-form-item label="邮箱" prop="email">
<el-input <el-input v-model="queryParams.email" placeholder="请输入邮箱" clearable size="small"
v-model="queryParams.email" @keyup.enter.native="handleQuery" />
placeholder="请输入邮箱"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="状态" prop="status"> <el-form-item label="状态" prop="status">
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable size="small"> <el-select v-model="queryParams.status" placeholder="请选择状态" clearable size="small">
<el-option <el-option v-for="dict in statusOptions" :key="dict.dictValue" :label="dict.dictLabel"
v-for="dict in statusOptions" :value="dict.dictValue" />
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="来源" prop="source"> <!-- <el-form-item label="来源" prop="source">
<el-select v-model="queryParams.source" placeholder="请选择来源" clearable size="small"> <el-select v-model="queryParams.source" placeholder="请选择来源" clearable size="small">
<el-option <el-option
v-for="dict in sourceOptions" v-for="dict in sourceOptions"
@ -50,22 +36,14 @@
</el-form-item> --> </el-form-item> -->
<el-form-item label="会员角色" prop="userRole"> <el-form-item label="会员角色" prop="userRole">
<el-select v-model="queryParams.userRole" placeholder="请选择会员角色" clearable size="small"> <el-select v-model="queryParams.userRole" placeholder="请选择会员角色" clearable size="small">
<el-option <el-option v-for="dict in userRoleOptions" :key="dict.dictValue" :label="dict.dictLabel"
v-for="dict in userRoleOptions" :value="dict.dictValue" />
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="认证级别" prop="authLevel"> <el-form-item label="认证级别" prop="authLevel">
<el-select v-model="queryParams.authLevel" placeholder="请选择用户认证级别" clearable size="small"> <el-select v-model="queryParams.authLevel" placeholder="请选择用户认证级别" clearable size="small">
<el-option <el-option v-for="dict in authLevelOptions" :key="dict.dictValue" :label="dict.dictLabel"
v-for="dict in authLevelOptions" :value="dict.dictValue" />
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -108,14 +86,8 @@
>删除</el-button> >删除</el-button>
</el-col> --> </el-col> -->
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
type="warning" v-hasPermi="['user:userCustomer:export']">导出</el-button>
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['user:userCustomer:export']"
>导出</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
@ -124,14 +96,10 @@
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="用户id" align="center" prop="userId" /> <el-table-column label="用户id" align="center" prop="userId" />
<el-table-column label="姓名" align="center" prop="name" /> <el-table-column label="姓名" align="center" prop="name" />
<el-table-column label="头像路径" align="center" prop="headImgPath" > <el-table-column label="头像路径" align="center" prop="headImgPath">
<template width="90" slot-scope="scope"> <template width="90" slot-scope="scope">
<el-image <el-image style="width: 80px; height: 80px" :src="scope.row.headImgPath"
style="width: 80px; height: 80px" @click="previewImage(scope.row.headImgPath)" :preview-src-list="srcList"></el-image>
:src="scope.row.headImgPath"
@click="previewImage(scope.row.headImgPath)"
:preview-src-list="srcList"
></el-image>
<!-- <img style="width:80px;height:80px;border:none;" :src="scope.row.chainIconUrl"> --> <!-- <img style="width:80px;height:80px;border:none;" :src="scope.row.chainIconUrl"> -->
</template> </template>
@ -144,42 +112,28 @@
<span>{{ parseTime(scope.row.addTime, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.addTime, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="会员角色" align="center" prop="userRole" :formatter="userRoleFormat"/> <el-table-column label="会员角色" align="center" prop="userRole" :formatter="userRoleFormat" />
<el-table-column label="用户认证级别" align="center" prop="authLevel" :formatter="authLevelFormat" /> <el-table-column label="用户认证级别" align="center" prop="authLevel" :formatter="authLevelFormat" />
<el-table-column label="状态" align="center" key="status" > <el-table-column label="状态" align="center" key="status">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch v-model="scope.row.status" active-value="normal" inactive-value="frozen"
v-model="scope.row.status" @change="handleStatusChange(scope.row)"></el-switch>
active-value="normal"
inactive-value="frozen"
@change="handleStatusChange(scope.row)"
></el-switch>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope" > <template slot-scope="scope">
<el-button v-if="scope.row.authLevel=='1'||scope.row.authLevel=='2'" <el-button v-if="scope.row.authLevel == '1' || scope.row.authLevel == '2'" size="mini" type="text"
size="mini" @click="handleUpdate(scope.row)" v-hasPermi="['user:userCustomer:edit']">修改认证级别
type="text"
@click="handleUpdate(scope.row)"
v-hasPermi="['user:userCustomer:edit']"
>修改认证级别
</el-button> </el-button>
</template> </template>
</el-table-column> --> </el-table-column> -->
</el-table> </el-table>
<pagination <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
v-show="total>0" @pagination="getList" />
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改个人用户对话框 --> <!-- 添加或修改个人用户对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
@ -187,8 +141,8 @@
<el-form-item label="认证级别"> <el-form-item label="认证级别">
<el-radio-group v-model="form.authLevel"> <el-radio-group v-model="form.authLevel">
<el-radio label="2" >初级认证</el-radio> <el-radio :label="2">初级认证</el-radio>
<el-radio label="3" >高级认证</el-radio> <el-radio :label="3">高级认证</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -202,7 +156,7 @@
</template> </template>
<script> <script>
import { listUserCustomer, getUserCustomer, delUserCustomer, addUserCustomer, updateUserCustomer, exportUserCustomer,changeUserStatus } from "@/api/user/userCustomer"; import { listUserCustomer, getUserCustomer, delUserCustomer, addUserCustomer, updateUserCustomer, exportUserCustomer, changeUserStatus } from "@/api/user/userCustomer";
export default { export default {
name: "UserCustomer", name: "UserCustomer",
@ -302,7 +256,7 @@ export default {
this.loading = true; this.loading = true;
listUserCustomer(this.queryParams).then(response => { listUserCustomer(this.queryParams).then(response => {
this.userCustomerList = response.rows; this.userCustomerList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },
@ -330,11 +284,11 @@ export default {
// //
handleStatusChange(row) { handleStatusChange(row) {
let text = row.status === "0" ? "启用" : "停用"; let text = row.status === "0" ? "启用" : "停用";
this.$modal.confirm('确认要"' + text + '""' + row.name + '"用户吗?').then(function() { this.$modal.confirm('确认要"' + text + '""' + row.name + '"用户吗?').then(function () {
return changeUserStatus(row.userId, row.status); return changeUserStatus(row.userId, row.status);
}).then(() => { }).then(() => {
this.$modal.msgSuccess(text + "成功"); this.$modal.msgSuccess(text + "成功");
}).catch(function() { }).catch(function () {
row.status = row.status === "0" ? "1" : "0"; row.status = row.status === "0" ? "1" : "0";
}); });
}, },
@ -385,7 +339,7 @@ export default {
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map(item => item.userId) this.ids = selection.map(item => item.userId)
this.single = selection.length!==1 this.single = selection.length !== 1
this.multiple = !selection.length this.multiple = !selection.length
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
@ -421,6 +375,7 @@ export default {
this.getList(); this.getList();
}); });
} }
console.log(this.open)
} }
}); });
}, },
@ -431,7 +386,7 @@ export default {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(function() { }).then(function () {
return delUserCustomer(userIds); return delUserCustomer(userIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();
@ -445,7 +400,7 @@ export default {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(function() { }).then(function () {
return exportUserCustomer(queryParams); return exportUserCustomer(queryParams);
}).then(response => { }).then(response => {
this.download(response.msg); this.download(response.msg);

2
src/views/user/wallet/index.vue

@ -196,7 +196,7 @@ export default {
this.loading = true; this.loading = true;
listWallet(this.queryParams).then(response => { listWallet(this.queryParams).then(response => {
this.walletList = response.rows; this.walletList = response.rows;
this.total = response.total; this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
}, },

2
vue.config.js

@ -35,7 +35,7 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://localhost:5500`, target: `http://192.168.31.236:5500`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''

Loading…
Cancel
Save