解决流程分类,表单配置导出错误的问题
This commit is contained in:
@@ -53,7 +53,7 @@ public class WfFormController extends BaseController {
|
||||
*/
|
||||
@SaCheckPermission("workflow:form:export")
|
||||
@Log(title = "流程表单", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
@PostMapping("/export")
|
||||
public void export(@Validated WfFormBo bo, HttpServletResponse response) {
|
||||
List<WfFormVo> list = formService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "流程表单", WfFormVo.class, response);
|
||||
|
||||
@@ -50,12 +50,3 @@ export function delForm(formId) {
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程表单
|
||||
export function exportForm(query) {
|
||||
return request({
|
||||
url: '/workflow/form/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
@@ -287,7 +287,7 @@ export default {
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('system/category/export', {
|
||||
this.download('workflow/category/export', {
|
||||
...this.queryParams
|
||||
}, `category_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
@@ -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`)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user