update 更改所有业务excel导出

This commit is contained in:
疯狂的狮子li
2021-08-04 19:03:25 +08:00
parent ffed5a09cb
commit 08db4a5f53
20 changed files with 189 additions and 1131 deletions

View File

@ -52,11 +52,3 @@ export function delDemo(id) {
})
}
// 导出测试单表
export function exportDemo(query) {
return request({
url: '/demo/demo/export',
method: 'get',
params: query
})
}

View File

@ -42,12 +42,3 @@ export function delTree(id) {
method: 'delete'
})
}
// 导出测试树表
export function exportTree(query) {
return request({
url: '/demo/tree/export',
method: 'get',
params: query
})
}

View File

@ -169,7 +169,8 @@
</template>
<script>
import { listDemo, pageDemo, getDemo, delDemo, addDemo, updateDemo, exportDemo } from "@/api/demo/demo";
import { listDemo, pageDemo, getDemo, delDemo, addDemo, updateDemo } from "@/api/demo/demo";
import { downLoadExcel } from "@/utils/download";
export default {
name: "Demo",
@ -360,18 +361,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有测试单表数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.exportLoading = true;
return exportDemo(queryParams);
}).then(response => {
this.download(response.msg);
this.exportLoading = false;
})
downLoadExcel('/demo/demo/export', this.queryParams);
}
}
};

View File

@ -110,7 +110,7 @@
</template>
<script>
import { listTree, getTree, delTree, addTree, updateTree, exportTree } from "@/api/demo/tree";
import { listTree, getTree, delTree, addTree, updateTree } from "@/api/demo/tree";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";