mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 21:36:44 +08:00
feat:增加项目授权以及修改新建项目
This commit is contained in:
@@ -541,6 +541,7 @@ import {
|
||||
onMounted,
|
||||
onUnmounted,
|
||||
// watch
|
||||
computed,
|
||||
} from "vue";
|
||||
import elementResizeDetectorMaker from "element-resize-detector";
|
||||
import { message } from "ant-design-vue";
|
||||
@@ -556,7 +557,7 @@ import {
|
||||
// deepClone,
|
||||
batchLoadList,
|
||||
} from "../../utils/utils";
|
||||
|
||||
import { useStore } from "vuex";
|
||||
export default {
|
||||
name: "StuAdd",
|
||||
props: {
|
||||
@@ -566,6 +567,7 @@ export default {
|
||||
},
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const store = useStore();
|
||||
const state = reactive({
|
||||
screenHeight: document.body.clientHeight, // 屏幕高度
|
||||
pageSize: 10,
|
||||
@@ -1171,24 +1173,27 @@ export default {
|
||||
// state.copyTreeData = deepClone(arr);
|
||||
// };
|
||||
//获取组织树
|
||||
const getTree = () => {
|
||||
let obj = {
|
||||
keyWord: "",
|
||||
id: -1,
|
||||
pageNo: 1,
|
||||
pageSize: 20,
|
||||
};
|
||||
getOrgInfoApi(obj)
|
||||
.then((res) => {
|
||||
console.log("组织树获取成功", res);
|
||||
if (res.data.code === 200) {
|
||||
state.treeData = res.data.data;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("组织树获取失败", err);
|
||||
});
|
||||
};
|
||||
// const getTree = () => {
|
||||
// let obj = {
|
||||
// keyWord: "",
|
||||
// id: -1,
|
||||
// pageNo: 1,
|
||||
// pageSize: 20,
|
||||
// };
|
||||
// getOrgInfoApi(obj)
|
||||
// .then((res) => {
|
||||
// console.log("组织树获取成功", res);
|
||||
// if (res.data.code === 200) {
|
||||
// state.treeData = res.data.data;
|
||||
// }
|
||||
// })
|
||||
// .catch((err) => {
|
||||
// console.log("组织树获取失败", err);
|
||||
// });
|
||||
// };
|
||||
state.treeData = computed(() => {
|
||||
return store.state.orgtreeList ? store.state.orgtreeList : [];
|
||||
});
|
||||
//获取学员
|
||||
const getMember = async (org) => {
|
||||
if (!state.nameSearch && !org) {
|
||||
@@ -1270,7 +1275,7 @@ export default {
|
||||
console.log("state", bool);
|
||||
if (bool) {
|
||||
// getComOnce();
|
||||
getTree();
|
||||
// getTree();
|
||||
}
|
||||
};
|
||||
const getClientHeight = () => {
|
||||
|
||||
Reference in New Issue
Block a user