This commit is contained in:
caozc
2023-03-02 15:34:07 +08:00
11 changed files with 144 additions and 230 deletions

View File

@@ -220,15 +220,6 @@
></span> ></span>
<router-link to="/ReadingClubManage">业务支援读书会管理</router-link> <router-link to="/ReadingClubManage">业务支援读书会管理</router-link>
</a-menu-item> </a-menu-item>
<a-menu-item key="sub6-3">
<span
:class="{
circleActive: selectedKeys[0] === 'sub6-3',
circle: selectedKeys[0]!=='sub6-3',
}"
></span>
<router-link to="/AudienceManage">受众管理</router-link>
</a-menu-item>
<a-menu-item key="sub6-4"> <a-menu-item key="sub6-4">
<span <span
:class="{ :class="{
@@ -240,6 +231,27 @@
</a-menu-item> </a-menu-item>
</a-sub-menu> </a-sub-menu>
<a-sub-menu key="sub7">
<template #icon>
<div class="imgBox">
<img
style="width: 22px; height: 22px"
src="../assets/images/navleft/review.png"
/>
</div>
</template>
<template #title>受众管理</template>
<a-menu-item key="sub7-1">
<span
:class="{
circleActive: selectedKeys[0] === 'sub6-7',
circle: selectedKeys[0]!=='sub6-7',
}"
></span>
<router-link to="/AudienceManage">受众管理</router-link>
</a-menu-item>
</a-sub-menu>
<a-menu-item key="sub5" v-if="checkMenu('systemManage')"> <a-menu-item key="sub5" v-if="checkMenu('systemManage')">
<div class="imgBox"> <div class="imgBox">
<img style="width: 16px; height: 16px" src="../assets/images/navleft/system.png"/> <img style="width: 16px; height: 16px" src="../assets/images/navleft/system.png"/>

View File

@@ -219,7 +219,7 @@
</div> </div>
</div> </div>
<div class="btnn"> <div class="btnn">
<button class="btn1" @click="closeDrawer">取消</button> <button class="btn2" @click="closeDrawer" style="margin-right: 32px;">取消</button>
<button class="btn2" @click="subMit">确定</button> <button class="btn2" @click="subMit">确定</button>
</div> </div>
</div> </div>

View File

@@ -14,7 +14,7 @@
<div style="display: flex; overflow-x: auto; overflow-y: auto"> <div style="display: flex; overflow-x: auto; overflow-y: auto">
<div class="tabs" style="min-width: 800px"> <div class="tabs" style="min-width: 800px">
<a-tabs v-model:activeKey="activeKey"> <a-tabs v-model:activeKey="activeKey">
<a-tab-pane v-if="isGroup" :key="4" tab="项目内学员"> <a-tab-pane v-if="isGroup" :key="4" tab="项目内学员1">
<div :style="{ height: screenHeight - 235 + 'px' }"> <div :style="{ height: screenHeight - 235 + 'px' }">
<div> <div>
<a-form-item label="姓名:"> <a-form-item label="姓名:">
@@ -400,7 +400,7 @@ const getStu = () => {
let array = []; let array = [];
arr.map((value) => { arr.map((value) => {
let obj = { let obj = {
id: value.id, id: value.studentId,
studentId: value.studentId, studentId: value.studentId,
realName: value.studentName, realName: value.studentName,
userNo: value.studentUserNo, userNo: value.studentUserNo,

View File

@@ -104,7 +104,7 @@
@expand="expandTable" :pagination="false" /> @expand="expandTable" :pagination="false" />
</div> </div>
<div class="del_btnbox"> <div class="del_btnbox">
<div class="del_btn btn1" @click="closeProjAuditModal"> <div class="del_btn btn2" @click="closeProjAuditModal" style="margin-right: 32px;">
<div class="btnText">取消</div> <div class="btnText">取消</div>
</div> </div>
<div class="del_btn btn2" @click="closeProjAuditModal"> <div class="del_btn btn2" @click="closeProjAuditModal">
@@ -665,7 +665,7 @@ export default {
} }
.btnText2 { .btnText2 {
color: rgba(64, 158, 255, 1); color: rgb(255, 255, 255);
} }
} }
@@ -680,39 +680,14 @@ export default {
} }
.btn2 { .btn2 {
background: #ffffff; background: #4ea6ff;
border: 1px solid #4ea6ff; border: 1px solid #4ea6ff;
.search { .search {
width: 16px; width: 16px;
height: 18px; height: 18px;
background-image: url("../../assets/images/courseManage/reset1.png");
}
}
.btn1:hover {
background: rgb(255, 255, 255);
border: 1px solid #4ea6ff;
.search {
background-image: url("../../assets/images/courseManage/search1.png");
}
.btnText {
color: rgba(64, 158, 255, 1);
}
}
.btn2:hover {
background: rgba(64, 158, 255, 1);
.search {
background-image: url("../../assets/images/courseManage/reset0.png"); background-image: url("../../assets/images/courseManage/reset0.png");
} }
.btnText {
color: #ffffff;
}
} }
} }
} }

View File

@@ -135,7 +135,7 @@
</div> </div>
</div> </div>
<div class="del_btnbox"> <div class="del_btnbox">
<div class="del_btn btn1" @click="closeCourAuditModal"> <div class="del_btn btn2" @click="closeCourAuditModal" style="margin-right: 32px;">
<div class="btnText">取消</div> <div class="btnText">取消</div>
</div> </div>
<div class="del_btn btn2" @click="sureCourAuditModal"> <div class="del_btn btn2" @click="sureCourAuditModal">
@@ -179,7 +179,7 @@
</div> </div>
</div> </div>
<div class="del_btnbox"> <div class="del_btnbox">
<div class="del_btn btn1" @click="closeInvitationCourAuditModal"> <div class="del_btn btn2" @click="closeInvitationCourAuditModal" style="margin-right: 32px;">
<div class="btnText">取消</div> <div class="btnText">取消</div>
</div> </div>
<div class="del_btn btn2" @click="sureInvitationCourAuditModal"> <div class="del_btn btn2" @click="sureInvitationCourAuditModal">
@@ -231,7 +231,7 @@
</div> </div>
</div> </div>
<div class="del_btnbox"> <div class="del_btnbox">
<div class="del_btn btn1" @click="closeTransferInvitationCourAuditModal"> <div class="del_btn btn2" @click="closeTransferInvitationCourAuditModal">
<div class="btnText">关闭</div> <div class="btnText">关闭</div>
</div> </div>
</div> </div>
@@ -1600,7 +1600,7 @@ export default {
} }
.btnText2 { .btnText2 {
color: rgba(64, 158, 255, 1); color: rgb(255, 255, 255);
} }
} }
@@ -1615,39 +1615,14 @@ export default {
} }
.btn2 { .btn2 {
background: #ffffff; background: #4ea6ff;
border: 1px solid #4ea6ff; border: 1px solid #4ea6ff;
.search { .search {
width: 16px; width: 16px;
height: 18px; height: 18px;
background-image: url("../../assets/images/courseManage/reset1.png");
}
}
.btn1:hover {
background: rgb(255, 255, 255);
border: 1px solid #4ea6ff;
.search {
background-image: url("../../assets/images/courseManage/search1.png");
}
.btnText {
color: rgba(64, 158, 255, 1);
}
}
.btn2:hover {
background: rgba(64, 158, 255, 1);
.search {
background-image: url("../../assets/images/courseManage/reset0.png"); background-image: url("../../assets/images/courseManage/reset0.png");
} }
.btnText {
color: #ffffff;
}
} }
} }
} }

View File

@@ -49,13 +49,13 @@
</div> </div>
</div> </div>
<div class="tmplh_btn" style="margin-top:50px;"> <div class="tmplh_btn" style="margin-top:50px;">
<div class="btn btn1" @click="getProjList"> <div class="btn btn11" @click="getProjList">
<div class="search"></div> <div class="search"></div>
<div class="btnText btnText1">搜索</div> <div class="btnText btnText1">搜索</div>
</div> </div>
<div class="btn btn2" @click="reset"> <div class="btn btn22" @click="reset">
<div class="search"></div> <div class="search"></div>
<div class="btnText btnText2">重置</div> <div class="btnText btnText2" style="color: #fff;">重置</div>
</div> </div>
</div> </div>
</div> </div>
@@ -89,10 +89,10 @@
@expand="expandTable" :pagination="false" /> @expand="expandTable" :pagination="false" />
</div> </div>
<div class="del_btnbox"> <div class="del_btnbox">
<div class="del_btn btn1" @click="closeProjAuditModal"> <div class="del_btn btn22" @click="closeProjAuditModal" style="margin-right: 32px;">
<div class="btnText">取消</div> <div class="btnText">取消</div>
</div> </div>
<div class="del_btn btn2" @click="closeProjAuditModal"> <div class="del_btn btn22" @click="closeProjAuditModal">
<div class="btnText">确定</div> <div class="btnText">确定</div>
</div> </div>
</div> </div>
@@ -482,16 +482,7 @@ export default {
} }
} }
.btn1 {
border: 1px solid rgba(64, 158, 255, 1);
color: #4ea6ff;
margin-right: 14px;
}
.btn2 {
background-color: #4ea6ff;
color: #ffffff;
}
} }
} }
} }
@@ -595,11 +586,11 @@ export default {
} }
.btnText2 { .btnText2 {
color: rgba(64, 158, 255, 1); color: rgb(255, 255, 255);
} }
} }
.btn1 { .btn11 {
background: #4ea6ff; background: #4ea6ff;
.search { .search {
@@ -609,39 +600,15 @@ export default {
} }
} }
.btn2 { .btn22 {
background: #ffffff; background: #4ea6ff;
border: 1px solid #4ea6ff; border: 1px solid #4ea6ff;
color: #ffffff;
.search { .search {
width: 16px; width: 16px;
height: 18px; height: 18px;
background-image: url("../../assets/images/courseManage/reset1.png");
}
}
.btn1:hover {
background: rgb(255, 255, 255);
border: 1px solid #4ea6ff;
.search {
background-image: url("../../assets/images/courseManage/search1.png");
}
.btnText {
color: rgba(64, 158, 255, 1);
}
}
.btn2:hover {
background: rgba(64, 158, 255, 1);
.search {
background-image: url("../../assets/images/courseManage/reset0.png");
}
.btnText {
color: #ffffff; color: #ffffff;
background-image: url("../../assets/images/courseManage/reset0.png");
} }
} }
} }

View File

@@ -370,7 +370,7 @@ export default {
} }
.btnText2 { .btnText2 {
color: rgba(64, 158, 255, 1); color: rgb(255, 255, 255);
} }
} }
@@ -385,39 +385,14 @@ export default {
} }
.btn2 { .btn2 {
background: #ffffff; background: #4ea6ff;
border: 1px solid #4ea6ff; border: 1px solid #4ea6ff;
.search { .search {
width: 16px; width: 16px;
height: 18px; height: 18px;
background-image: url("../../assets/images/courseManage/reset1.png");
}
}
.btn1:hover {
background: rgb(255, 255, 255);
border: 1px solid #4ea6ff;
.search {
background-image: url("../../assets/images/courseManage/search1.png");
}
.btnText {
color: rgba(64, 158, 255, 1);
}
}
.btn2:hover {
background: rgba(64, 158, 255, 1);
.search {
background-image: url("../../assets/images/courseManage/reset0.png"); background-image: url("../../assets/images/courseManage/reset0.png");
} }
.btnText {
color: #ffffff;
}
} }
} }
} }

View File

@@ -2717,7 +2717,7 @@ export default {
codeUrl = codeUrl =
window.location.protocol + window.location.protocol +
process.env.VUE_APP_H5 + process.env.VUE_APP_H5 +
"/investigatage?courseId=" + "/investigatpage?courseId=" +
item.courseId + item.courseId +
"&type=2&id=" + "&type=2&id=" +
item.id + item.id +
@@ -2745,7 +2745,7 @@ export default {
codeUrl = codeUrl =
window.location.protocol + window.location.protocol +
process.env.VUE_APP_H5 + process.env.VUE_APP_H5 +
"/projectdetails?courseId=" + "/projectdetails?projectId=" +
item.courseId; item.courseId;
} }
state.codevisible = true; state.codevisible = true;

View File

@@ -120,7 +120,7 @@
<span <span
style="border: 1px solid rgba(0, 0, 0, 0.25);width: 120px;height: 38px; border-radius: 10px;text-align: center;line-height: 38px;"> style="border: 1px solid rgba(0, 0, 0, 0.25);width: 120px;height: 38px; border-radius: 10px;text-align: center;line-height: 38px;">
{{ {{
routerInfo.routerInfo.unlockMode == 1 ? '自由学习模式' : routerInfo.routerInfo.unlockMode == 2 || routerInfo.routerInfo.unlockMode == 3 ? '闯关模式' : '' routerInfo.routerInfo.unlockMode == 1 ? "自由学习模式" : routerInfo.routerInfo.unlockMode == 2 || routerInfo.routerInfo.unlockMode == 3 ? "闯关模式" : ""
}} }}
</span> </span>
<unlock-mode :routerInfo="routerInfo.routerInfo" :types="types"> <unlock-mode :routerInfo="routerInfo.routerInfo" :types="types">
@@ -241,7 +241,7 @@
left: -25px;"></div> left: -25px;"></div>
<a-checkbox :id="element.id" v-model:checked="element.checked"></a-checkbox> <a-checkbox :id="element.id" v-model:checked="element.checked"></a-checkbox>
<div style="margin-top: 2px; margin-left: 8px"> <div style="margin-top: 2px; margin-left: 8px">
{{ TASK_TYPE[element.type]?.name || '' }} {{ TASK_TYPE[element.type]?.name || "" }}
</div> </div>
</div> </div>
</div> </div>
@@ -375,44 +375,43 @@ import {request} from "@/api/request";
import dialog from "@/utils/dialog"; import dialog from "@/utils/dialog";
const { query: { routerId } } = useRoute(); const { query: { routerId } } = useRoute();
const modal = ref(false) const modal = ref(false);
const ischapterEdit = ref(false) const ischapterEdit = ref(false);
const visiblene = ref(false) const visiblene = ref(false);
const cancleLoading = ref(false) const cancleLoading = ref(false);
const confirmLoading = ref(false) const confirmLoading = ref(false);
const moveChapterIndex = ref('') const moveChapterIndex = ref("");
const activeIndex = ref(0) const activeIndex = ref(0);
const types = 1 // 1 路径图 2 项目 const types = 1; // 1 路径图 2 项目
const courseRef = ref({})
const formValue = ref({draftTaskList: []})
const routerInfo = ref({chapterList: [{name: '关卡一', draftTaskList: []}], routerInfo: {}})
const courseRef = ref({});
const formValue = ref({ draftTaskList: [] });
const routerInfo = ref({ chapterList: [{ name: "关卡一", draftTaskList: [] }], routerInfo: {} });
const selectAll = computed(() => { const selectAll = computed(() => {
const selectedNum = routerInfo.value.chapterList[activeIndex.value].draftTaskList.filter(t => t.checked).length const selectedNum = routerInfo.value.chapterList[activeIndex.value].draftTaskList.filter(t => t.checked).length;
if (!selectedNum) { if (!selectedNum) {
return 0 return 0;
} }
if (selectedNum === routerInfo.value.chapterList[activeIndex.value].draftTaskList.length) { if (selectedNum === routerInfo.value.chapterList[activeIndex.value].draftTaskList.length) {
return 1 return 1;
} }
return 2 return 2;
}) });
watch(() => routerInfo.value.chapterList, () => { watch(() => routerInfo.value.chapterList, () => {
routerInfo.value.chapterList.forEach((t, i) => { routerInfo.value.chapterList.forEach((t, i) => {
t.sort = i; t.sort = i;
t.draftTaskList?.forEach((s, j) => { t.draftTaskList?.forEach((s, j) => {
s.sort = j s.sort = j;
}) });
}) });
}, {deep: true}) }, { deep: true });
const showModal = (e, type) => { const showModal = (e, type) => {
ischapterEdit.value = (type === "edit"); ischapterEdit.value = (type === "edit");
console.log(ischapterEdit.value) console.log(ischapterEdit.value);
if(type == 'edit'){ if (type == "edit") {
console.log("关卡信息:" + e.name); console.log("关卡信息:" + e.name);
formValue.value = e;//回传修改的信息 formValue.value = e;//回传修改的信息
} else { } else {
@@ -432,24 +431,28 @@ const editChapter = () => {
} }
if (ischapterEdit.value) { if (ischapterEdit.value) {
routerInfo.value.chapterList = [{ ...formValue.value, draftTaskList: [] }]; routerInfo.value.chapterList = [{ ...formValue.value, draftTaskList: [] }];
} else {
routerInfo.value.chapterList.push({ ...formValue.value, draftTaskList: [] });
} }
else{ formValue.value = { draftTaskList: [] };
routerInfo.value.chapterList.push({...formValue.value, draftTaskList: []}) closeModal();
}
formValue.value = {draftTaskList: []}
closeModal()
}; };
//删除关卡 //删除关卡
const deleteChapter = () => { const deleteChapter = () => {
dialog({ dialog({
content: '确定要删除关卡吗?', content: "确定要删除关卡吗?",
ok: () => { ok: () => {
if (routerInfo.value.chapterList.length === 1) { if (routerInfo.value.chapterList.length === 1) {
message.warning("至少保留一个关卡"); message.warning("至少保留一个关卡");
return return;
}
if (routerInfo.value.chapterList[activeIndex.value].id) {
routerInfo.value.chapterList[activeIndex.value].deleted = true;
routerInfo.value.chapterList[activeIndex.value].draftTaskList?.forEach((t, i) => t.id ? (t.deleted = true) : routerInfo.value.chapterList[activeIndex.value].draftTaskList.splice(i, 1));
} else {
routerInfo.value.chapterList.splice(activeIndex.value, 1);
} }
routerInfo.value.chapterList[activeIndex.value].id ? (routerInfo.value.chapterList[activeIndex.value].deleted = true) : routerInfo.value.chapterList.splice(activeIndex.value, 1);
activeIndex.value && (activeIndex.value = activeIndex.value - 1); activeIndex.value && (activeIndex.value = activeIndex.value - 1);
message.info("删除关卡成功"); message.info("删除关卡成功");
}, },
@@ -458,8 +461,8 @@ const deleteChapter = () => {
const getDetail = async () => { const getDetail = async () => {
await GetRouterDraftDetail(routerId).then((res) => { await GetRouterDraftDetail(routerId).then((res) => {
routerInfo.value = res.data.data routerInfo.value = res.data.data;
}) });
}; };
onMounted(() => { onMounted(() => {
@@ -467,19 +470,19 @@ onMounted(() => {
}); });
const changebgc = (index) => { const changebgc = (index) => {
activeIndex.value = index activeIndex.value = index;
}; };
const subdeleteAll = () => { const subdeleteAll = () => {
if (!routerInfo.value?.chapterList[activeIndex.value]?.draftTaskList?.filter(t => t.checked)?.length) { if (!routerInfo.value?.chapterList[activeIndex.value]?.draftTaskList?.filter(t => t.checked)?.length) {
message.warning("请选择要删除的任务!"); message.warning("请选择要删除的任务!");
return return;
} }
dialog({ dialog({
content: '确定要删除所选任务吗?', content: "确定要删除所选任务吗?",
ok: () => { ok: () => {
for (let i = 0; i < routerInfo.value.chapterList[activeIndex.value].draftTaskList.length; i++) { for (let i = 0; i < routerInfo.value.chapterList[activeIndex.value].draftTaskList.length; i++) {
const t = routerInfo.value.chapterList[activeIndex.value].draftTaskList[i] const t = routerInfo.value.chapterList[activeIndex.value].draftTaskList[i];
if (t.checked) { if (t.checked) {
if (t.id) { if (t.id) {
t.checked = false; t.checked = false;
@@ -497,10 +500,10 @@ const subdeleteAll = () => {
//全选任务或全不选任务 //全选任务或全不选任务
const selectRowAll = () => { const selectRowAll = () => {
if (selectAll.value === 1) { if (selectAll.value === 1) {
routerInfo.value.chapterList[activeIndex.value].draftTaskList.forEach(t => t.checked = false) routerInfo.value.chapterList[activeIndex.value].draftTaskList.forEach(t => t.checked = false);
return return;
} }
routerInfo.value.chapterList[activeIndex.value].draftTaskList.forEach(t => t.checked = true) routerInfo.value.chapterList[activeIndex.value].draftTaskList.forEach(t => t.checked = true);
}; };
//移动任务到关卡 //移动任务到关卡
const moveTask = () => { const moveTask = () => {
@@ -513,15 +516,15 @@ const moveTask = () => {
}; };
//编辑的按钮 //编辑的按钮
const editTaskForType = (ele, index) => { const editTaskForType = (ele, index) => {
courseRef.value['el' + ele.type].openDrawer(index, ele) courseRef.value["el" + ele.type].openDrawer(index, ele);
}; };
function deleteTask(element, index) { function deleteTask(element, index) {
dialog({ dialog({
content: '确定要删除此任务吗?', content: "确定要删除此任务吗?",
ok: () => { ok: () => {
message.success("删除成功"); message.success("删除成功");
routerInfo.value.chapterList[activeIndex.value].draftTaskList[index].id ? (element.deleted = true) : routerInfo.value.chapterList[activeIndex.value].draftTaskList.splice(index, 1) routerInfo.value.chapterList[activeIndex.value].draftTaskList[index].id ? (element.deleted = true) : routerInfo.value.chapterList[activeIndex.value].draftTaskList.splice(index, 1);
}, },
}); });
} }
@@ -529,51 +532,51 @@ function deleteTask(element, index) {
const showChangeModal = () => { const showChangeModal = () => {
if (routerInfo.value?.chapterList?.length <= 1) { if (routerInfo.value?.chapterList?.length <= 1) {
message.warning("请添加关卡!"); message.warning("请添加关卡!");
return return;
} }
if (!routerInfo.value?.chapterList[activeIndex.value]?.draftTaskList?.filter(t => t.checked)?.length) { if (!routerInfo.value?.chapterList[activeIndex.value]?.draftTaskList?.filter(t => t.checked)?.length) {
message.warning("请选择要移动的任务!"); message.warning("请选择要移动的任务!");
return return;
} }
visiblene.value = true visiblene.value = true;
}; };
const closeChangeModal = () => { const closeChangeModal = () => {
visiblene.value = false visiblene.value = false;
}; };
//暂存 //暂存
const temporaryStorage = async () => { const temporaryStorage = async () => {
confirmLoading.value = true confirmLoading.value = true;
await request(ROUTER_DETAIL_MODIFY, routerInfo.value) await request(ROUTER_DETAIL_MODIFY, routerInfo.value);
await getDetail() await getDetail();
message.success("暂存成功"); message.success("暂存成功");
confirmLoading.value = false confirmLoading.value = false;
}; };
const submitStorage = async () => { const submitStorage = async () => {
if (routerInfo.value.routerInfo.status === 1) { if (routerInfo.value.routerInfo.status === 1) {
dialog({ dialog({
content: '该路径图已经发布,修改后如未点击暂存当前操作未保存数据将丢失,确认保存?', content: "该路径图已经发布,修改后如未点击暂存当前操作未保存数据将丢失,确认保存?",
ok: async () => { ok: async () => {
confirmLoading.value = true confirmLoading.value = true;
await releaseRouter(routerId) await releaseRouter(routerId);
message.success("关卡和任务数据已保存"); message.success("关卡和任务数据已保存");
confirmLoading.value = false confirmLoading.value = false;
}, },
}) });
return return;
} }
confirmLoading.value = true confirmLoading.value = true;
await request(ROUTER_DETAIL_MODIFY, routerInfo.value) await request(ROUTER_DETAIL_MODIFY, routerInfo.value);
message.success("关卡和任务数据已保存") message.success("关卡和任务数据已保存");
confirmLoading.value = false confirmLoading.value = false;
}; };
//取消 //取消
const cancelStorage = async () => { const cancelStorage = async () => {
cancleLoading.value = true cancleLoading.value = true;
await getDetail() await getDetail();
message.success("取消成功"); message.success("取消成功");
cancleLoading.value = false cancleLoading.value = false;
}; };
</script> </script>

View File

@@ -541,7 +541,12 @@ const deleteStage = () => {
content: projectInfo.value.stageList.length === 1 ? "当前为最后一个阶段,删除后任务将被移出,为无阶段模式,确认删除阶段吗?" : '确认删除此阶段吗?', content: projectInfo.value.stageList.length === 1 ? "当前为最后一个阶段,删除后任务将被移出,为无阶段模式,确认删除阶段吗?" : '确认删除此阶段吗?',
ok: () => { ok: () => {
message.success("删除成功"); message.success("删除成功");
projectInfo.value.stageList[activeIndex.value].id ? (projectInfo.value.stageList[activeIndex.value].deleted = true) : projectInfo.value.stageList.splice(activeIndex.value, 1) if (projectInfo.value.stageList[activeIndex.value].id) {
projectInfo.value.stageList[activeIndex.value].deleted = true
projectInfo.value.stageList[activeIndex.value].taskDraftDtoList?.forEach((t, i) => t.id ? (t.deleted = true) : projectInfo.value.stageList[activeIndex.value].taskDraftDtoList.splice(i, 1));
} else {
projectInfo.value.stageList.splice(activeIndex.value, 1)
}
activeIndex.value && (activeIndex.value = activeIndex.value - 1); activeIndex.value && (activeIndex.value = activeIndex.value - 1);
}, },
}); });

View File

@@ -3925,6 +3925,7 @@ export default {
}; };
//创建小组 //创建小组
const createGroup = async () => { const createGroup = async () => {
debugger
console.log("state.groupPageList" + state.groupPageList); console.log("state.groupPageList" + state.groupPageList);
const id = state.groupInfo.id; const id = state.groupInfo.id;
const d = state.groupPageList const d = state.groupPageList
@@ -4620,7 +4621,7 @@ export default {
codeUrl = codeUrl =
window.location.protocol + window.location.protocol +
process.env.VUE_APP_H5 + process.env.VUE_APP_H5 +
"/investigatage?courseId=" + "/investigatpage?courseId=" +
item.courseId + item.courseId +
"&type=1&id=" + "&type=1&id=" +
item.id + item.id +
@@ -4631,6 +4632,7 @@ export default {
} }
// 投票 // 投票
if (item.type == 12) { if (item.type == 12) {
// console.log('item',item)
codeUrl = codeUrl =
window.location.protocol + window.location.protocol +
process.env.VUE_APP_H5 + process.env.VUE_APP_H5 +
@@ -4639,7 +4641,7 @@ export default {
"&btype=2&id=" + "&btype=2&id=" +
item.id + item.id +
"&chapterOrStageId=" + "&chapterOrStageId=" +
item.chapterId + item.stageId +
"&infoId=" + "&infoId=" +
state.projectId; state.projectId;
} }