|
@@ -263,7 +263,7 @@ import {listCase, getCase, getCaseLog, updateCase,getRenByDeptId} from "@/api/la
|
|
|
import register from "@/views/lawenforcement/register/index.vue";
|
|
|
import form from "element-ui/packages/form";
|
|
|
import fileUpload from '@/views/components/FileUpload/index.vue';
|
|
|
-import {treeselect} from "@/api/system/dept";
|
|
|
+import {getChildren, getChildrenByDeptId} from "@/api/system/dept";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
|
@@ -340,7 +340,8 @@ export default {
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
rules: {},
|
|
|
- selected: null
|
|
|
+ selected: null,
|
|
|
+ defaultDeptId: 100
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -351,7 +352,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getTreeselect() {
|
|
|
- treeselect().then(response => {
|
|
|
+ getChildrenByDeptId(this.defaultDeptId).then(response => {
|
|
|
this.deptOptions = response.data
|
|
|
})
|
|
|
},
|