|
@@ -27,6 +27,16 @@
|
|
<el-button plain size="mini" @click="resetQuery">重置</el-button>
|
|
<el-button plain size="mini" @click="resetQuery">重置</el-button>
|
|
<el-button type="primary" size="mini" @click="handleQuery">搜索</el-button>
|
|
<el-button type="primary" size="mini" @click="handleQuery">搜索</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <br>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button
|
|
|
|
+ plain
|
|
|
|
+ size="mini"
|
|
|
|
+ :loading="exportLoading"
|
|
|
|
+ @click="handleExport"
|
|
|
|
+ v-hasPermi="['consumption:role:export']"
|
|
|
|
+ >导出</el-button>
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-table v-loading="loading" :data="adminList" border>
|
|
<el-table v-loading="loading" :data="adminList" border>
|
|
<el-table-column label="序号" align="left" prop="" show-overflow-tooltip >
|
|
<el-table-column label="序号" align="left" prop="" show-overflow-tooltip >
|
|
@@ -81,7 +91,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { listDetal, exportDetail, updataChannel } from "@/api/recharge/consumption";
|
|
|
|
|
|
+import { listDetal, exportDetail, updataChannel, } from "@/api/recharge/consumption";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "admin",
|
|
name: "admin",
|
|
@@ -176,7 +186,7 @@ export default {
|
|
delete queryParams.current
|
|
delete queryParams.current
|
|
delete queryParams.size
|
|
delete queryParams.size
|
|
this.exportLoading = true;
|
|
this.exportLoading = true;
|
|
- exportDetail(queryParams).then(response =>{
|
|
|
|
|
|
+ exportDetail(this.addDateRange(queryParams,this.dateRange,'section')).then(response =>{
|
|
this.exportLoading = false;
|
|
this.exportLoading = false;
|
|
localStorage.setItem('fileExportId', response.data)
|
|
localStorage.setItem('fileExportId', response.data)
|
|
this.$router.push({path:'/recharge/fileExport'})
|
|
this.$router.push({path:'/recharge/fileExport'})
|