This commit is contained in:
宋文超
2022-11-17 10:06:32 +08:00
25 changed files with 2459 additions and 1841 deletions

View File

@@ -323,6 +323,13 @@
>
<!-- <img class="im" :src="item.source" /> -->
</div>
<div
@click="showImgMore"
v-if="imgData.length >= 5"
class="learnBgItem"
>
<!-- <img class="im" :src="item.source" /> -->
</div>
</div>
</div>
<div class="info">
@@ -430,10 +437,10 @@
<span>您确定要复制此路径吗</span>
</div>
<div class="del_btnbox">
<div class="del_btn btn1" @click="delete_exit">
<div class="del_btn btn1" @click="closeCopyModal">
<div class="btnText">取消</div>
</div>
<div class="del_btn btn2" @click="delete_exit">
<div class="del_btn btn2" @click="copyLearnPath">
<div class="btnText">确定</div>
</div>
</div>
@@ -724,6 +731,7 @@ export default {
routeStudentsNum: 0,
recallPathId: null, //撤回路径id
stopPathId: null, //停用路径id
copyPathId: null, //复制路径iid
lpLoading: false,
});
@@ -816,12 +824,34 @@ export default {
const closePub = () => {
state.pub = false;
};
//显示复制窗口
const showCopyModal = () => {
state.copyModal = true;
};
//关闭复制窗口
const closeCopyModal = () => {
state.copyModal = false;
};
//确认复制
const copyLearnPath = () => {
let obj = {
routerId: state.copyPathId,
type: 2,
};
api
.handleLearnPath(obj)
.then((res) => {
console.log("复制成功", res);
message.destroy();
message.success("复制成功");
state.copyModal = false;
getLearnPath();
})
.catch((err) => {
console.log("复制失败", err);
});
};
//显示结束窗口
const showStopModal = () => {
state.stopModal = true;
@@ -1137,6 +1167,7 @@ export default {
>
<div
onClick={() => {
state.copyPathId = text.record.id;
showCopyModal();
}}
>
@@ -1177,6 +1208,7 @@ export default {
>
<div
onClick={() => {
state.copyPathId = text.record.id;
showCopyModal();
}}
>
@@ -1230,6 +1262,7 @@ export default {
>
<div
onClick={() => {
state.copyPathId = text.record.id;
showCopyModal();
}}
>
@@ -1491,6 +1524,7 @@ export default {
closeCopyModal,
showStopModal,
closeStopModal,
copyLearnPath,
stopLearnPath,
showDeleteModal,
closeDeleteModal,