|
|
@@ -25,8 +25,8 @@
|
|
|
<el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
|
|
|
<el-button class="filter-item" v-waves icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
<el-button class="filter-item" type="primary" @click="handleCreate" icon="el-icon-plus">添加</el-button>
|
|
|
- <!-- <el-button class="filter-item" :loading="downloadLoading" v-waves icon="el-icon-download"
|
|
|
- @click="handleDownload">导出</el-button> -->
|
|
|
+ <el-button class="filter-item" v-waves icon="el-icon-download"
|
|
|
+ @click="handleDownload">导出</el-button>
|
|
|
<!-- <el-button class="filter-item" type="success" icon="el-icon-takeaway-box" @click="executeAll">批量拆卸</el-button> -->
|
|
|
<el-button class="filter-item" type="warning" icon="el-icon-delete" @click="delAll">批量删除</el-button>
|
|
|
</div>
|
|
|
@@ -88,7 +88,6 @@ export default {
|
|
|
directives: { waves },
|
|
|
data() {
|
|
|
return {
|
|
|
- downloadLoading: false,
|
|
|
warehouseList: [],
|
|
|
userSelsctList:[],
|
|
|
typeList: [
|
|
|
@@ -153,13 +152,7 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
handleDownload() {
|
|
|
- this.downloadLoading = true
|
|
|
- import('@/vendor/Export2Excel').then(excel => {
|
|
|
- const tHeader = ['用户ID', '用户名称', '用户昵称', '用户头像']
|
|
|
- const filterVal = ['id', 'username', 'nickname', 'avatar']
|
|
|
- excel.export_json_to_excel2(tHeader, this.list, filterVal, '用户信息')
|
|
|
- this.downloadLoading = false
|
|
|
- })
|
|
|
+ window.location.href = process.env.BASE_API + '/warehouse-disassembly/export';
|
|
|
},
|
|
|
handleCreate() {
|
|
|
this.$router.push({
|