mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
feat:合并
This commit is contained in:
@@ -43,7 +43,7 @@ export default defineComponent({
|
|||||||
const store = useStore();
|
const store = useStore();
|
||||||
const isLogin = ref(false);
|
const isLogin = ref(false);
|
||||||
// console.log("router", router.getRoutes(), route);
|
// console.log("router", router.getRoutes(), route);
|
||||||
console.log("版本0.15------------");
|
console.log("版本0.17------------");
|
||||||
const routes = computed(() => {
|
const routes = computed(() => {
|
||||||
return router.getRoutes().filter((e) => e.meta?.isLink);
|
return router.getRoutes().filter((e) => e.meta?.isLink);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2022-11-21 14:32:52
|
* @Date: 2022-11-21 14:32:52
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2022-12-04 23:51:45
|
* @LastEditTime: 2022-12-05 00:00:40
|
||||||
* @FilePath: /fe-manage/src/api/config.js
|
* @FilePath: /fe-manage/src/api/config.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
@@ -56,8 +56,8 @@ http.interceptors.response.use(
|
|||||||
return response;
|
return response;
|
||||||
} else {
|
} else {
|
||||||
if (code === 1000) {
|
if (code === 1000) {
|
||||||
// window.open("https://u-pre.boe.com/web/", '_self');
|
window.open("https://u-pre.boe.com/web/", '_self');
|
||||||
window.open("http://111.231.196.214:12013/manage/login", '_self');
|
// window.open("http://111.231.196.214:12013/manage/login", '_self');
|
||||||
}
|
}
|
||||||
console.log("api %o", msg);
|
console.log("api %o", msg);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,3 +12,7 @@ export const RouterEditTask = (obj) => http.post('/admin/router/editTask',obj)
|
|||||||
export const RouterDeleteTask = (obj) => http.post('/admin/router/deleteTask',obj);
|
export const RouterDeleteTask = (obj) => http.post('/admin/router/deleteTask',obj);
|
||||||
// 删除项目任务
|
// 删除项目任务
|
||||||
export const ProjectDeleteTask = (obj) => http.delete('/admin/project/deleteTask',obj);
|
export const ProjectDeleteTask = (obj) => http.delete('/admin/project/deleteTask',obj);
|
||||||
|
// 判断当前在线课是否已经添加到该路径图下
|
||||||
|
export const IsExistence = (obj) => http.post('/admin/router/queryTaskDoesItExist',obj);
|
||||||
|
// 判断当前在线课是否已经添加到该项目下
|
||||||
|
export const IsExistenceProject = (obj) => http.post('/admin/project/queryTaskDoesItExistForProject',obj);
|
||||||
|
|||||||
@@ -408,6 +408,7 @@ export default {
|
|||||||
ctx.emit("update:addfaceteachVisible", false);
|
ctx.emit("update:addfaceteachVisible", false);
|
||||||
localStorage.setItem("stageId", props.chooseStageId);
|
localStorage.setItem("stageId", props.chooseStageId);
|
||||||
localStorage.setItem("chapterId", props.isactive);
|
localStorage.setItem("chapterId", props.isactive);
|
||||||
|
state.fileList = []
|
||||||
clear();
|
clear();
|
||||||
};
|
};
|
||||||
const afterVisibleChange = (bool) => {
|
const afterVisibleChange = (bool) => {
|
||||||
|
|||||||
@@ -291,6 +291,7 @@ export default {
|
|||||||
resetForm();
|
resetForm();
|
||||||
};
|
};
|
||||||
const closeDrawer2 = () => {
|
const closeDrawer2 = () => {
|
||||||
|
ctx.emit("update:edit", false);
|
||||||
ctx.emit("update:addhomeworkVisible", false);
|
ctx.emit("update:addhomeworkVisible", false);
|
||||||
resetForm();
|
resetForm();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ import * as api from "../../api/indexOnline.js";
|
|||||||
import * as apiTask from "../../api/indexTaskadd";
|
import * as apiTask from "../../api/indexTaskadd";
|
||||||
// import { setCookie } from "../../api/method"
|
// import { setCookie } from "../../api/method"
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import { RouterEditTask } from "@/api/indexTask";
|
import { RouterEditTask, IsExistence, IsExistenceProject } from "@/api/indexTask";
|
||||||
import { addTempTask } from "../../api/indexTaskadd";
|
import { addTempTask } from "../../api/indexTaskadd";
|
||||||
export default {
|
export default {
|
||||||
name: "AddOnline",
|
name: "AddOnline",
|
||||||
@@ -272,6 +272,7 @@ export default {
|
|||||||
const onSelectChange = (selectedRowKeys,selectedRows) => {
|
const onSelectChange = (selectedRowKeys,selectedRows) => {
|
||||||
state.selectedRowKeys = selectedRowKeys;
|
state.selectedRowKeys = selectedRowKeys;
|
||||||
state.addOnlineList = selectedRows;
|
state.addOnlineList = selectedRows;
|
||||||
|
console.log(selectedRowKeys,selectedRows)
|
||||||
if( props.edit && selectedRows.length > 0 ){
|
if( props.edit && selectedRows.length > 0 ){
|
||||||
selectedRows.map((value)=>{
|
selectedRows.map((value)=>{
|
||||||
if(value.courseId == props.EditOnlineId){
|
if(value.courseId == props.EditOnlineId){
|
||||||
@@ -311,7 +312,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
state.tableData = array;
|
state.tableData = array;
|
||||||
state.tableDataTotal = state.tableData.length
|
|
||||||
};
|
};
|
||||||
//获取全部在线信息接口
|
//获取全部在线信息接口
|
||||||
const getAllOnlineText = () => {
|
const getAllOnlineText = () => {
|
||||||
@@ -330,17 +330,80 @@ export default {
|
|||||||
"sysType3": "",
|
"sysType3": "",
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
let arr = res.data.data;
|
let arr = res.data.data.list;
|
||||||
|
state.tableDataTotal = res.data.data.count
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
|
console.log('获取在线课列表数据', res)
|
||||||
getTableDate(arr);
|
getTableDate(arr);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err,'请求失败在线');});
|
console.log(err,'请求失败在线');});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 校验当前在线课是否已经添加进来了
|
||||||
|
const isExistence = (id) => {
|
||||||
|
|
||||||
|
console.log({
|
||||||
|
"chapterId": Number(props.isactive),
|
||||||
|
"courseTaskId": Number(id),
|
||||||
|
"routerId": props.routerId,
|
||||||
|
"type": 1
|
||||||
|
})
|
||||||
|
|
||||||
|
IsExistence({
|
||||||
|
"chapterId": Number(props.isactive),
|
||||||
|
"courseTaskId": Number(id),
|
||||||
|
"routerId": props.routerId,
|
||||||
|
"type": 1
|
||||||
|
}).then(res=>{
|
||||||
|
console.log('我是不是已经添加了',res)
|
||||||
|
}).catch(err=>{
|
||||||
|
console.log(err)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 判断项目中是否添加当前在线课
|
||||||
|
const IsExistenceProjects = () => {
|
||||||
|
IsExistenceProject({
|
||||||
|
"courseTaskId": props.projectTaskId || 0,
|
||||||
|
"projectId": props.projectId,
|
||||||
|
"stageId": props.chooseStageId || 0,
|
||||||
|
"type": 1
|
||||||
|
}).then(res=>{
|
||||||
|
console.log(res)
|
||||||
|
}).catch(err=>{
|
||||||
|
console.log(err)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
const updateTask = () => {
|
const updateTask = () => {
|
||||||
|
|
||||||
|
|
||||||
|
if(props.isLevel == 1){
|
||||||
|
// isExistence(23)
|
||||||
|
// return
|
||||||
|
// let routerarr = []
|
||||||
|
// console.log('我是要便利的数据1', state.addOnlineList)
|
||||||
|
// state.addOnlineList.map((value) => {
|
||||||
|
// routerarr.push(isExistence(value.courseId))
|
||||||
|
// })
|
||||||
|
// console.log('当前是否已经添加了',routerarr)
|
||||||
|
}
|
||||||
|
|
||||||
|
if(props.isLevel == 2){
|
||||||
|
console.log('我是要便利的数据2', state.addOnlineList)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if(props.isLevel == 3){
|
||||||
|
console.log('我是要便利的数据3', state.addOnlineList)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (props.isLevel == 1) {
|
if (props.isLevel == 1) {
|
||||||
state.addOnlineList.map((value) => {
|
state.addOnlineList.map((value) => {
|
||||||
|
console.log(value)
|
||||||
RouterEditTask({
|
RouterEditTask({
|
||||||
chapterId: Number(props.isactive),
|
chapterId: Number(props.isactive),
|
||||||
courseId: value.num,
|
courseId: value.num,
|
||||||
@@ -445,6 +508,8 @@ export default {
|
|||||||
updateTask,
|
updateTask,
|
||||||
searchList,
|
searchList,
|
||||||
resetOnline,
|
resetOnline,
|
||||||
|
isExistence,
|
||||||
|
IsExistenceProjects
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2970,6 +2970,7 @@
|
|||||||
v-model:addAuthList="addAuthList"
|
v-model:addAuthList="addAuthList"
|
||||||
:authClassify="authClassify"
|
:authClassify="authClassify"
|
||||||
classify="course"
|
classify="course"
|
||||||
|
:type="shipType"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -3160,7 +3161,7 @@ const columns1 = [
|
|||||||
key: "9",
|
key: "9",
|
||||||
align: "center",
|
align: "center",
|
||||||
customRender: ({ text }) => {
|
customRender: ({ text }) => {
|
||||||
return text ? getdateToTime(text * 1000) : "-";
|
return text ? text : "-";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -3501,6 +3502,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
|
shipType: 1,
|
||||||
addLoading: false,
|
addLoading: false,
|
||||||
currentPlanItem: {},
|
currentPlanItem: {},
|
||||||
teacherId: null,
|
teacherId: null,
|
||||||
@@ -3752,6 +3754,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const showStuAdd = () => {
|
const showStuAdd = () => {
|
||||||
state.viewpowervisible = true;
|
state.viewpowervisible = true;
|
||||||
|
state.shipType = 2;
|
||||||
state.authClassify = 3;
|
state.authClassify = 3;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3913,6 +3916,7 @@ export default defineComponent({
|
|||||||
beginTime: startTime,
|
beginTime: startTime,
|
||||||
});
|
});
|
||||||
const { rows, total } = res.data.data;
|
const { rows, total } = res.data.data;
|
||||||
|
console.log(res.data.data);
|
||||||
state.tableDataTotal1 = total;
|
state.tableDataTotal1 = total;
|
||||||
const datas = traverseArr(
|
const datas = traverseArr(
|
||||||
rows,
|
rows,
|
||||||
@@ -5326,6 +5330,7 @@ export default defineComponent({
|
|||||||
// console.log("record", record);
|
// console.log("record", record);
|
||||||
state.viewpowervisible = true;
|
state.viewpowervisible = true;
|
||||||
state.selectCourseId = record.offcourseId;
|
state.selectCourseId = record.offcourseId;
|
||||||
|
state.shipType = 1;
|
||||||
state.authClassify = 2;
|
state.authClassify = 2;
|
||||||
};
|
};
|
||||||
//添加权限
|
//添加权限
|
||||||
@@ -5369,7 +5374,7 @@ export default defineComponent({
|
|||||||
watch(
|
watch(
|
||||||
() => state.addAuthList,
|
() => state.addAuthList,
|
||||||
(res) => {
|
(res) => {
|
||||||
console.log("res 添加学员", res, state.addStudentList);
|
console.log("res", res, state.addStudentList);
|
||||||
if (state.authClassify === 3) {
|
if (state.authClassify === 3) {
|
||||||
let obj = {
|
let obj = {
|
||||||
deptList: res[1],
|
deptList: res[1],
|
||||||
|
|||||||
@@ -65,7 +65,6 @@
|
|||||||
import { reactive, toRefs, onMounted } from "vue";
|
import { reactive, toRefs, onMounted } from "vue";
|
||||||
import { courseListView } from "../../api/indexAudit";
|
import { courseListView } from "../../api/indexAudit";
|
||||||
import * as api1 from "@/api/index1";
|
import * as api1 from "@/api/index1";
|
||||||
import { toDate } from "../../api/method";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "CoursereViewed",
|
name: "CoursereViewed",
|
||||||
@@ -123,7 +122,7 @@ export default {
|
|||||||
key: "time",
|
key: "time",
|
||||||
align: "center",
|
align: "center",
|
||||||
customRender: (time) => {
|
customRender: (time) => {
|
||||||
return <div style="color:#387DF7">{toDate(time.record.time, "Y-M-D h:m")}</div>;
|
return <div style="color:#387DF7">{time.record.time}</div>;
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -318,7 +318,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { reactive, toRefs, onMounted, ref } from "vue";
|
import { reactive, toRefs, onMounted, ref } from "vue";
|
||||||
import { list, courseAuditView, courseDetail } from "../../api/indexAudit";
|
import { list, courseAuditView, courseDetail } from "../../api/indexAudit";
|
||||||
import { toDate } from "../../api/method";
|
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import { Editor } from "@wangeditor/editor-for-vue";
|
import { Editor } from "@wangeditor/editor-for-vue";
|
||||||
import { iframeUrl } from "../../api/method";
|
import { iframeUrl } from "../../api/method";
|
||||||
@@ -585,7 +584,7 @@ export default {
|
|||||||
: "-",
|
: "-",
|
||||||
change: "-",
|
change: "-",
|
||||||
creater: item.createName,
|
creater: item.createName,
|
||||||
time: toDate(item.createTime, "Y-M-D h:m"),
|
time: item.createTime,
|
||||||
createrId: item.createId,
|
createrId: item.createId,
|
||||||
offId: item.offcourseId,
|
offId: item.offcourseId,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1471,7 +1471,7 @@ export default {
|
|||||||
path: "/projectadd",
|
path: "/projectadd",
|
||||||
query: {
|
query: {
|
||||||
parentId: value.record.projectId,
|
parentId: value.record.projectId,
|
||||||
parentName: value.record.name,
|
parentName: value.record.parentName + '——' + value.record.name,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
@@ -1573,7 +1573,7 @@ export default {
|
|||||||
data.forEach((e) => {
|
data.forEach((e) => {
|
||||||
e.parentName = parentName;
|
e.parentName = parentName;
|
||||||
e.key = e.projectId;
|
e.key = e.projectId;
|
||||||
initDataSublist(e.name, e.subList);
|
initDataSublist((parentName ? (parentName + '——') : '') + e.name, e.subList);
|
||||||
e.subList && e.subList.length && (e.children = e.subList);
|
e.subList && e.subList.length && (e.children = e.subList);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,11 +4,12 @@
|
|||||||
<div class="left clearfix">
|
<div class="left clearfix">
|
||||||
<div class="leftmain">
|
<div class="leftmain">
|
||||||
<div class="tit">
|
<div class="tit">
|
||||||
阶段<img
|
阶段
|
||||||
src="../../assets/images/projectadd/right.png"
|
<!-- <img-->
|
||||||
style="margin-left: 10px; cursor: pointer"
|
<!-- src="../../assets/images/projectadd/right.png"-->
|
||||||
@click="showCancel"
|
<!-- style="margin-left: 10px; cursor: pointer"-->
|
||||||
/>
|
<!-- @click="showCancel"-->
|
||||||
|
<!-- />-->
|
||||||
</div>
|
</div>
|
||||||
<div class="btn btn3" @click="showModal()" style="margin-left: 19px">
|
<div class="btn btn3" @click="showModal()" style="margin-left: 19px">
|
||||||
<div class="search"></div>
|
<div class="search"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user