mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 11:26:45 +08:00
feat: 新增编辑路径图设置方法,共享文档 style修改
This commit is contained in:
@@ -59,7 +59,8 @@ export const getChapter = (obj) => http.post('/admin/router/detail', { params: o
|
||||
|
||||
//新建或编辑关卡
|
||||
export const editChapter = (obj) => http.post('/admin/router/editChapter', obj);
|
||||
|
||||
// 编辑路径图设置
|
||||
export const setConfig = (obj) => http.post('/admin/router/setConfig', obj);
|
||||
//获取学员列表
|
||||
export const getStudent = (obj) => http.post('/admin/router/studentList', obj);
|
||||
//获取路径图详情-包含关卡及任务列表
|
||||
|
||||
BIN
src/assets/images/doc.png
Normal file
BIN
src/assets/images/doc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 477 B |
@@ -763,19 +763,20 @@
|
||||
<div
|
||||
v-for="item in docList"
|
||||
:key="item.src"
|
||||
style="margin-top: 20px;"
|
||||
class="docListStyle"
|
||||
>
|
||||
<img
|
||||
src="@/assets/images/basicinfo/download.png"
|
||||
src="@/assets/images/doc.png"
|
||||
style="
|
||||
cursor: pointer;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin-right: 40px;
|
||||
width: 30px;
|
||||
height: 25px;
|
||||
margin-right: 10px;
|
||||
"
|
||||
alt=""
|
||||
/>
|
||||
<span style="font: oblique 16px Sans-serif">{{
|
||||
<span style="font: oblique bolder 16px 宋体">{{
|
||||
item.name
|
||||
}}</span>
|
||||
<span style="color: #4ea6ff; float: right">删除</span>
|
||||
@@ -1927,6 +1928,28 @@ export default {
|
||||
state.currentPage = value;
|
||||
getStudent();
|
||||
}
|
||||
const setconfig = () => {
|
||||
let obj = {
|
||||
"autoJoinFlag": 0,
|
||||
"deptBoList": [
|
||||
{
|
||||
"deptId": 0,
|
||||
"deptName": ""
|
||||
}
|
||||
],
|
||||
"preLearnFlag": 0,
|
||||
"previewFlag": 0,
|
||||
"routerId": 0,
|
||||
"showFlag": 0
|
||||
}
|
||||
api.setConfig(obj).then((res) => {
|
||||
message.success("编辑成功")
|
||||
console.log(res);
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
message.error("编辑失败")
|
||||
})
|
||||
}
|
||||
return {
|
||||
...toRefs(state),
|
||||
...toRefs(levelList),
|
||||
@@ -1975,6 +1998,7 @@ export default {
|
||||
reget,
|
||||
stageChange,
|
||||
pageChange,
|
||||
setconfig,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user