|
@@ -63,6 +63,7 @@
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
+ <el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport">导出明细</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
@@ -151,7 +152,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { getList } from "@/api/tool/reportDetail";
|
|
|
|
|
|
+import { getList,exportReportDetail } from "@/api/tool/reportDetail";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "reportDetail",
|
|
name: "reportDetail",
|
|
@@ -336,12 +337,12 @@ export default {
|
|
/** 导出按钮操作 */
|
|
/** 导出按钮操作 */
|
|
handleExport() {
|
|
handleExport() {
|
|
const queryParams = this.queryParams;
|
|
const queryParams = this.queryParams;
|
|
- this.$confirm('是否确认导出所有错题数据项?', "警告", {
|
|
|
|
|
|
+ this.$confirm('是否确认导出数据项?', "警告", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning"
|
|
type: "warning"
|
|
}).then(function () {
|
|
}).then(function () {
|
|
- return exportError(queryParams);
|
|
|
|
|
|
+ return exportReportDetail(queryParams);
|
|
}).then(response => {
|
|
}).then(response => {
|
|
this.download(response.data);
|
|
this.download(response.data);
|
|
})
|
|
})
|