数据概览功导出+优化功能提交
This commit is contained in:
parent
1b8deaa3aa
commit
393987d292
|
@ -27,51 +27,63 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<!-- <el-row :gutter="10" class="mb8">-->
|
<el-row :gutter="10" class="mb8">
|
||||||
<!-- <el-col :span="1.5">-->
|
<!-- <el-col :span="1.5">-->
|
||||||
<!-- <el-button-->
|
<!-- <el-button-->
|
||||||
<!-- type="primary"-->
|
<!-- type="primary"-->
|
||||||
<!-- plain-->
|
<!-- plain-->
|
||||||
<!-- icon="el-icon-plus"-->
|
<!-- icon="el-icon-plus"-->
|
||||||
<!-- size="mini"-->
|
<!-- size="mini"-->
|
||||||
<!-- @click="handleAdd"-->
|
<!-- @click="handleAdd"-->
|
||||||
<!-- v-hasPermi="['system:info:add']"-->
|
<!-- v-hasPermi="['system:info:add']"-->
|
||||||
<!-- >新增</el-button>-->
|
<!-- >新增</el-button>-->
|
||||||
<!-- </el-col>-->
|
<!-- </el-col>-->
|
||||||
<!-- <el-col :span="1.5">-->
|
<!-- <el-col :span="1.5">-->
|
||||||
<!-- <el-button-->
|
<!-- <el-button-->
|
||||||
<!-- type="success"-->
|
<!-- type="success"-->
|
||||||
<!-- plain-->
|
<!-- plain-->
|
||||||
<!-- icon="el-icon-edit"-->
|
<!-- icon="el-icon-edit"-->
|
||||||
<!-- size="mini"-->
|
<!-- size="mini"-->
|
||||||
<!-- :disabled="single"-->
|
<!-- :disabled="single"-->
|
||||||
<!-- @click="handleUpdate"-->
|
<!-- @click="handleUpdate"-->
|
||||||
<!-- v-hasPermi="['system:info:edit']"-->
|
<!-- v-hasPermi="['system:info:edit']"-->
|
||||||
<!-- >修改</el-button>-->
|
<!-- >修改</el-button>-->
|
||||||
<!-- </el-col>-->
|
<!-- </el-col>-->
|
||||||
<!-- <el-col :span="1.5">-->
|
<!-- <el-col :span="1.5">-->
|
||||||
<!-- <el-button-->
|
<!-- <el-button-->
|
||||||
<!-- type="danger"-->
|
<!-- type="danger"-->
|
||||||
<!-- plain-->
|
<!-- plain-->
|
||||||
<!-- icon="el-icon-delete"-->
|
<!-- icon="el-icon-delete"-->
|
||||||
<!-- size="mini"-->
|
<!-- size="mini"-->
|
||||||
<!-- :disabled="multiple"-->
|
<!-- :disabled="multiple"-->
|
||||||
<!-- @click="handleDelete"-->
|
<!-- @click="handleDelete"-->
|
||||||
<!-- v-hasPermi="['system:info:remove']"-->
|
<!-- v-hasPermi="['system:info:remove']"-->
|
||||||
<!-- >删除</el-button>-->
|
<!-- >删除</el-button>-->
|
||||||
<!-- </el-col>-->
|
<!-- </el-col>-->
|
||||||
<!-- <el-col :span="1.5">-->
|
<!-- <el-col :span="1.5">-->
|
||||||
<!-- <el-button-->
|
<!-- <el-button-->
|
||||||
<!-- type="warning"-->
|
<!-- type="warning"-->
|
||||||
<!-- plain-->
|
<!-- plain-->
|
||||||
<!-- icon="el-icon-download"-->
|
<!-- icon="el-icon-download"-->
|
||||||
<!-- size="mini"-->
|
<!-- size="mini"-->
|
||||||
<!-- @click="handleExport"-->
|
<!-- @click="handleExport"-->
|
||||||
<!-- v-hasPermi="['system:info:export']"-->
|
<!-- v-hasPermi="['system:info:export']"-->
|
||||||
<!-- >导出</el-button>-->
|
<!-- >导出</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-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleOverviewExport"
|
||||||
|
v-hasPermi="['system:info:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
@ -93,16 +105,16 @@
|
||||||
<el-table-column label="消耗数量" align="center" prop="minusTotal" />
|
<el-table-column label="消耗数量" align="center" prop="minusTotal" />
|
||||||
<el-table-column label="营销比(%)" align="center" prop="rate" />
|
<el-table-column label="营销比(%)" align="center" prop="rate" />
|
||||||
<el-table-column label="结算时间" align="center" prop="time" />
|
<el-table-column label="结算时间" align="center" prop="time" />
|
||||||
<!-- <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-->
|
<!-- <el-button-->
|
||||||
<!-- size="mini"-->
|
<!-- size="mini"-->
|
||||||
<!-- type="text"-->
|
<!-- type="text"-->
|
||||||
<!-- icon="el-icon-mouse"-->
|
<!-- icon="el-icon-mouse"-->
|
||||||
<!-- @click="export1(scope.row)"-->
|
<!-- @click="export1(scope.row)"-->
|
||||||
<!-- >导出</el-button>-->
|
<!-- >导出</el-button>-->
|
||||||
<!-- </template>-->
|
<!-- </template>-->
|
||||||
<!-- </el-table-column>-->
|
<!-- </el-table-column>-->
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
|
@ -392,6 +404,13 @@ export default {
|
||||||
this.download('excel/info/export', {
|
this.download('excel/info/export', {
|
||||||
...this.queryParams1
|
...this.queryParams1
|
||||||
}, data.storeName+`_${new Date().getTime()}.xlsx`)
|
}, data.storeName+`_${new Date().getTime()}.xlsx`)
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
handleOverviewExport(){
|
||||||
|
this.download('excel/info/exportDataOverview', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `sale_${new Date().getTime()}.xlsx`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue