fix(工作流): 修复获取部门树列表获取失败问题。

This commit is contained in:
konbai
2022-09-20 23:39:05 +08:00
parent 13216dcb84
commit 150094ddac
2 changed files with 4 additions and 6 deletions

View File

@@ -120,9 +120,8 @@
</template> </template>
<script> <script>
import { listUser } from "@/api/system/user"; import { listUser, deptTreeSelect } from "@/api/system/user";
import { listRole } from "@/api/system/role"; import { listRole } from "@/api/system/role";
import { treeselect } from '@/api/system/dept'
import TreeSelect from "@/components/TreeSelect"; import TreeSelect from "@/components/TreeSelect";
const userTaskForm = { const userTaskForm = {
@@ -248,7 +247,7 @@ export default {
getDeptOptions() { getDeptOptions() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (!this.deptOptions || this.deptOptions.length <= 0) { if (!this.deptOptions || this.deptOptions.length <= 0) {
treeselect().then(response => { deptTreeSelect().then(response => {
this.deptTempOptions = response.data; this.deptTempOptions = response.data;
this.deptOptions = response.data; this.deptOptions = response.data;
resolve() resolve()

View File

@@ -192,11 +192,10 @@ import { detailProcess } from '@/api/workflow/process'
import Parser from '@/utils/generator/parser' import Parser from '@/utils/generator/parser'
import { definitionStart, getFlowViewer, readXml } from '@/api/workflow/definition' import { definitionStart, getFlowViewer, readXml } from '@/api/workflow/definition'
import { complete, delegate, transfer, getNextFlowNode, rejectTask, returnList, returnTask } from '@/api/workflow/todo' import { complete, delegate, transfer, getNextFlowNode, rejectTask, returnList, returnTask } from '@/api/workflow/todo'
import { treeselect } from '@/api/system/dept' import { selectUser, deptTreeSelect } from '@/api/system/user'
import ProcessViewer from '@/components/ProcessViewer' import ProcessViewer from '@/components/ProcessViewer'
import '@riophae/vue-treeselect/dist/vue-treeselect.css' import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import Treeselect from '@riophae/vue-treeselect' import Treeselect from '@riophae/vue-treeselect'
import { selectUser } from '@/api/system/user'
export default { export default {
name: "Detail", name: "Detail",
@@ -315,7 +314,7 @@ export default {
methods: { methods: {
/** 查询部门下拉树结构 */ /** 查询部门下拉树结构 */
getTreeSelect() { getTreeSelect() {
treeselect().then(response => { deptTreeSelect().then(response => {
this.deptOptions = response.data; this.deptOptions = response.data;
}); });
}, },