解决流程分类,表单配置导出错误的问题

This commit is contained in:
BMJ
2022-11-23 00:37:48 +08:00
parent 040c2efb3c
commit 74f5dc3444
4 changed files with 7 additions and 16 deletions

View File

@@ -50,12 +50,3 @@ export function delForm(formId) {
method: 'delete'
})
}
// 导出流程表单
export function exportForm(query) {
return request({
url: '/workflow/form/export',
method: 'get',
params: query
})
}

View File

@@ -287,7 +287,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
this.download('system/category/export', {
this.download('workflow/category/export', {
...this.queryParams
}, `category_${new Date().getTime()}.xlsx`)
}

View File

@@ -130,7 +130,7 @@
</template>
<script>
import { listForm, getForm, delForm, addForm, updateForm, exportForm } from "@/api/workflow/form";
import { listForm, getForm, delForm, addForm, updateForm } from "@/api/workflow/form";
import Editor from '@/components/Editor';
import Parser from '@/utils/generator/parser'
export default {
@@ -287,15 +287,15 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
let _this = this
this.$confirm('是否确认导出所有流程表单数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
return exportForm(queryParams);
}).then(response => {
this.download(response.msg);
_this.download('/workflow/form/export', {
..._this.queryParams
}, `form_${new Date().getTime()}.xlsx`)
})
}
}