mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +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 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);
|
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
|
<div
|
||||||
v-for="item in docList"
|
v-for="item in docList"
|
||||||
:key="item.src"
|
:key="item.src"
|
||||||
|
style="margin-top: 20px;"
|
||||||
class="docListStyle"
|
class="docListStyle"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src="@/assets/images/basicinfo/download.png"
|
src="@/assets/images/doc.png"
|
||||||
style="
|
style="
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 40px;
|
width: 30px;
|
||||||
height: 40px;
|
height: 25px;
|
||||||
margin-right: 40px;
|
margin-right: 10px;
|
||||||
"
|
"
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
<span style="font: oblique 16px Sans-serif">{{
|
<span style="font: oblique bolder 16px 宋体">{{
|
||||||
item.name
|
item.name
|
||||||
}}</span>
|
}}</span>
|
||||||
<span style="color: #4ea6ff; float: right">删除</span>
|
<span style="color: #4ea6ff; float: right">删除</span>
|
||||||
@@ -1927,6 +1928,28 @@ export default {
|
|||||||
state.currentPage = value;
|
state.currentPage = value;
|
||||||
getStudent();
|
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 {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
...toRefs(levelList),
|
...toRefs(levelList),
|
||||||
@@ -1975,6 +1998,7 @@ export default {
|
|||||||
reget,
|
reget,
|
||||||
stageChange,
|
stageChange,
|
||||||
pageChange,
|
pageChange,
|
||||||
|
setconfig,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user