diff --git a/src/App.vue b/src/App.vue
index f3620e3e..63fa31ce 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -42,18 +42,50 @@ export default defineComponent({
});
const currentRouteName = computed(() => route.name);
+
//获取组织树
const orgTree = () => {
+ let obj = {
+ id: 0,
+ keyWord: "",
+ pageNo: 0,
+ pageSize: 20,
+ };
api
- .orgtree()
+ .getOrgInfo(obj)
.then((res) => {
- console.log("获取集团组织成功", res);
if (res.status === 200) {
- store.commit("getOrgtreeList", res.data.data);
+ // console.log("获取组织树成功", res.data.data);
+ // state.orgtreeList = res.data.data;
+ if (res.status === 200) {
+ let arr = res.data.data.rows;
+ for (let i = 0; i < arr.length; i++) {
+ let object = {
+ keyWord: "",
+ id: arr[i].id,
+ pageNo: 1,
+ pageSize: 20,
+ };
+ api
+ .getOrgInfo(object)
+ .then((res) => {
+ // console.log("获取子元素", res);
+ if (res.status === 200) {
+ arr[i].treeChildList = res.data.data.rows;
+ if (i === arr.length - 1) {
+ store.commit("getOrgtreeList", arr);
+ }
+ }
+ })
+ .catch((err) => {
+ console.log("获取子元素失败", err);
+ });
+ }
+ }
}
})
.catch((err) => {
- console.log("获取集团组织失败", err);
+ console.log("获取组织树失败", err);
});
};
orgTree();
diff --git a/src/api/index1.js b/src/api/index1.js
index 720203bd..be062ef2 100644
--- a/src/api/index1.js
+++ b/src/api/index1.js
@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-11-04 22:45:31
* @LastEditors: lixg lixg@dongwu-inc.com
- * @LastEditTime: 2022-11-22 18:04:47
+ * @LastEditTime: 2022-11-24 15:11:25
* @FilePath: /fe-manage/src/api/index1.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
@@ -44,7 +44,7 @@ import qs from "qs";
//上传文件
export const uploadFile = (obj) =>
- http.post("/test/testRequest", qs.stringify({ obj }));
+ http.post("/test/testRequest", qs.stringify({ obj }));
// 接口-请求
@@ -56,7 +56,7 @@ export const getLearnPath = (obj) => http.post("/admin/router/list", obj);
export const handleLearnPath = (obj) => http.post("/admin/router/handle", obj);
//获取路径图统计数据
export const getLearnCount = (routerId) =>
- http.get("/admin/router/getCount", { params: { routerId: routerId } });
+ http.get("/admin/router/getCount", { params: { routerId: routerId } });
//新建或编辑关卡
export const editChapter = (obj) => http.post("/admin/router/editChapter", obj);
@@ -66,19 +66,19 @@ export const setConfig = (obj) => http.post("/admin/router/setConfig", obj);
export const getStudent = (obj) => http.post("/admin/router/studentList", obj);
//获取路径图详情-包含关卡及任务列表
export const getRouterDetail = (routerId) =>
- http.get("/admin/router/detail", {
- params: {
- routerId: routerId,
- },
- });
+ http.get("/admin/router/detail", {
+ params: {
+ routerId: routerId,
+ },
+ });
//添加学员
export const addStudent = (obj) => http.post("/admin/router/addStudent", obj);
//删除学员
export const delStudent = (obj) =>
- http.post("/admin/router/deleteStudent", obj);
+ http.post("/admin/router/deleteStudent", obj);
// 获取学员路径图进度明细
export const stuProgress = (obj) =>
- http.post("/admin/router/studentProcess", obj);
+ http.post("/admin/router/studentProcess", obj);
//项目基础信息-----------------------------------
//项目积分榜单
@@ -88,20 +88,35 @@ export const billboard = (obj) => http.post("/admin/project/billboard", obj);
//项目基础信息-----------------------------------
//获取字典信息
-export const getDict = (obj) => http.post("/dict/getList", obj);
-//获取组织树
-export const getOrgTree = (obj) => http.post("/admin/router/orgList", obj);
+export const getDict = (obj) => http.post('/dict/getList', obj)
+//获取组织树一级列表
+export const getOrgTree = (obj) => http.post('/admin/router/orgList', obj)
+//根据id获取组织树一级元素下所有子元素
+export const orgTreeList = (obj) => http.post('/admin/router/orgTreeList', obj)
+//根据id获取部门下学员
+export const searchUsersByOrgId = (obj) => http.post('/admin/router/searchUsersByOrgId', obj)
+
+//获取组织信息(修改版)
+export const getOrgInfo = (obj) => http.post('/admin/orgStruct/getOrgInfo', obj)
+//获取员工(修改版)
+export const getMemberInfo = (obj) => http.post('/admin/orgStruct/getMemberInfo', obj)
+//获取受众(修改版)
+export const getAudienceInfo = (obj) => http.post('/admin/orgStruct/getAudienceInfo', obj)
+//获取授权(修改版)
+export const optionAuthPerm = (obj) => http.post('/admin/AuthPerm/optionAuthPerm', obj)
+
+
// 获取组织结构树
export const orgtree = () => http.get("/org/tree");
//获取积分列表
export const noticeList = (projectId) =>
- http.post(
- `http://localhost:8080/api/admin/project/noticeList?projectId=` +
- projectId +
- ``
- );
+ http.post(
+ `http://localhost:8080/api/admin/project/noticeList?projectId=` +
+ projectId +
+ ``
+ );
// 测试方法
// import * as api from '../../api/index'
diff --git a/src/api/method.js b/src/api/method.js
index 07bba27f..ef5ccc81 100644
--- a/src/api/method.js
+++ b/src/api/method.js
@@ -162,6 +162,7 @@ function autoComma(number) {
return 0;
}
}
+//新建延迟
const commonData = {
timeout: 50
}
@@ -368,6 +369,8 @@ const commonData = {
//组织树
const organizationalTree = []
+
+const iframeUrl = "https://u-pre.boe.com/pc/iframe"
export {
toDate,
getWeek,
@@ -375,4 +378,5 @@ export {
formatNumber,
commonData,
organizationalTree,
+ iframeUrl,
}
\ No newline at end of file
diff --git a/src/components/Modals/addOnlineCourse.vue b/src/components/Modals/addOnlineCourse.vue
new file mode 100644
index 00000000..69d053fa
--- /dev/null
+++ b/src/components/Modals/addOnlineCourse.vue
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/drawers/ProjCheckPower.vue b/src/components/drawers/ProjCheckPower.vue
index 40c3f78d..db4e9b53 100644
--- a/src/components/drawers/ProjCheckPower.vue
+++ b/src/components/drawers/ProjCheckPower.vue
@@ -493,7 +493,7 @@
-
+
+ if (state.name !== "" || state.projectName !== "") {
+ api
+ .taskStudentList(objser)
+ .then((res) => {
+ state.pageNo = res.data.data.pageNo;
+ state.pageSize = res.data.data.pageSize;
+ state.pageSize = res.data.data.pageSize;
+ let newArr = [];
+ for (let i = 0; i < res.data.data.rows.length; i++) {
+ if (res.data.data.rows[i].userInfoBo.userName == state.name)
+ newArr.push(res.data.data.rows[i].userInfoBo);
+ }
+ state.tabledata = newArr;
+ })
+ .catch(() => {});
+ }
+ };
+
+ //重置任务列表
+ const resetTaskList = () => {
+ state.inputPname = "";
+ state.inputCname = "";
+ state.tableData = [];
+ state.selectedRowKeys = [];
+ state.SelectTestData = [];
+ state.currentPage = 1;
+ getManageList();
+ };
+ return {
+ ...toRefs(state),
+ closeDrawer,
+ afterVisibleChange,
+ getTableDate,
+ onSelectChange,
+ CreatSTText,
+ newTest,
+ tableDataFunc,
+ onChange,
+ getManageList,
+ searchTaskList,
+ resetTaskList,
+ };
+ },
+};
+
+}
+
+.addExamModal {
+ .ant-modal {
+ width: 80% !important;
+ }
+}
+
\ No newline at end of file
diff --git a/src/store/index.js b/src/store/index.js
index 9b93baab..038e0ec4 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -2,12 +2,12 @@
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-11-09 09:26:26
* @LastEditors: lixg lixg@dongwu-inc.com
- * @LastEditTime: 2022-11-21 17:43:07
+ * @LastEditTime: 2022-11-23 17:25:31
* @FilePath: /fe-manage/src/store/index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { createStore } from "vuex";
-
+// import * as api from '../api/index1'
export default createStore({
state: {
openpages: localStorage.getItem("openpages")
@@ -22,7 +22,7 @@ export default createStore({
assessmentName: "",
routerId: null,
- projectTemplateId:null,
+ projectTemplateId: null,
orgtreeList: [],
},
getters: {},
@@ -41,12 +41,15 @@ export default createStore({
console.log("state.assessmentName");
console.log(state.assessmentName);
},
- getOrgtreeList(state, orgtreeList) {
- state.orgtreeList = orgtreeList;
+ //获取组织树
+ getOrgtreeList(state, data) {
+ state.orgtreeList = data
},
- SET_projectTemplateId (state,projectTemplateId) {
+ SET_projectTemplateId(state, projectTemplateId) {
state.projectTemplateId = projectTemplateId;
}
+
+
},
actions: {},
modules: {},
diff --git a/src/views/courselibrary/CourseManage.vue b/src/views/courselibrary/CourseManage.vue
index c128f5d5..b0db9bb5 100644
--- a/src/views/courselibrary/CourseManage.vue
+++ b/src/views/courselibrary/CourseManage.vue
@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-11-09 09:26:26
* @LastEditors: lixg lixg@dongwu-inc.com
- * @LastEditTime: 2022-11-22 20:13:01
+ * @LastEditTime: 2022-11-24 16:16:10
* @FilePath: /fe-manage/src/views/courselibrary/CourseManage.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -11,8 +11,8 @@
@@ -20,12 +20,14 @@