mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 00:06:47 +08:00
feat:合并
This commit is contained in:
@@ -4,7 +4,9 @@ export const USER_LIST_PAGE = '/userbasic/user/list post'
|
|||||||
export const USER_LIST = '/userbasic/user/searchList post'
|
export const USER_LIST = '/userbasic/user/searchList post'
|
||||||
export const ORG_LIST = '/userbasic/org/list post'
|
export const ORG_LIST = '/userbasic/org/list post'
|
||||||
export const ORG_CHILD_LIST = '/userbasic/org/info post'
|
export const ORG_CHILD_LIST = '/userbasic/org/info post'
|
||||||
export const AUDIENCE_LIST = '/userbasic/audience/list post'
|
// export const AUDIENCE_LIST = '/userbasic/audience/list post'
|
||||||
|
//当前用户可以查看的受众接口
|
||||||
|
export const AUDIENCE_LIST = '/userbasic/audience/userAudiencesFilter post'
|
||||||
export const USER_PERMISSION = '/userbasic/permission/listByUser post'
|
export const USER_PERMISSION = '/userbasic/permission/listByUser post'
|
||||||
export const CASE_PAGE = '/systemapi/xboe/m/boe/cases/pagelist post formData'
|
export const CASE_PAGE = '/systemapi/xboe/m/boe/cases/pagelist post formData'
|
||||||
export const EXAM_PAPER_PAGE = '/systemapi/xboe/m/exam/paper/querylist post formData'
|
export const EXAM_PAPER_PAGE = '/systemapi/xboe/m/exam/paper/querylist post formData'
|
||||||
|
|||||||
@@ -258,6 +258,7 @@ const formData = ref({
|
|||||||
assessmentId: "",
|
assessmentId: "",
|
||||||
assessmentName: "",
|
assessmentName: "",
|
||||||
livePlayback: "",
|
livePlayback: "",
|
||||||
|
liveExplain: ""
|
||||||
});
|
});
|
||||||
const emit = defineEmits({});
|
const emit = defineEmits({});
|
||||||
const taskIndex = ref(-1);
|
const taskIndex = ref(-1);
|
||||||
@@ -375,9 +376,9 @@ async function confirm() {
|
|||||||
} else {
|
} else {
|
||||||
const data = props.taskList[taskIndex.value];
|
const data = props.taskList[taskIndex.value];
|
||||||
data.name = formData.value.liveName;
|
data.name = formData.value.liveName;
|
||||||
data.info = formData.value;
|
data.info = {...formData.value};
|
||||||
data.duration = dayjs(formData.value.liveEndTime).diff(formData.value.liveStartTime, 'minutes')
|
data.duration = dayjs(formData.value.liveEndTime).diff(formData.value.liveStartTime, 'minutes')
|
||||||
|
console.log(data)
|
||||||
}
|
}
|
||||||
emit("update:taskList", [...props.taskList]);
|
emit("update:taskList", [...props.taskList]);
|
||||||
closeDrawer();
|
closeDrawer();
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ export default {
|
|||||||
console.log('我是传递过来的参数2', props.basicdata)
|
console.log('我是传递过来的参数2', props.basicdata)
|
||||||
api.QueryAssessmentDetail({
|
api.QueryAssessmentDetail({
|
||||||
"assessmentSubmitId": props.datasource.assessmentSubmitId?props.datasource.assessmentSubmitId:props.datasource.assessmentResultIds,
|
"assessmentSubmitId": props.datasource.assessmentSubmitId?props.datasource.assessmentSubmitId:props.datasource.assessmentResultIds,
|
||||||
"courseId": props.basicdata.id,
|
"courseId": props.datasource.courseId,
|
||||||
"studentId": props.datasource.studentId
|
"studentId": props.datasource.studentId
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
|
|||||||
@@ -169,13 +169,13 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
value: "10",
|
value: "9",
|
||||||
label: "未通过",
|
label: "已完成",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
value: "1",
|
value: "1",
|
||||||
label: "已通过",
|
label: "进行中",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
@@ -305,7 +305,7 @@ export default {
|
|||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
className: "h",
|
className: "h",
|
||||||
customRender: ({record:{finishStatus}}) => ({1:'通过',2:'未通过'}[finishStatus] || '未开始'),
|
customRender: ({record:{finishStatus}}) => ({1:'进行中',0:'未开始',9:'已完成'}[finishStatus] || '未开始'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
|
|||||||
@@ -360,7 +360,7 @@
|
|||||||
"studentName": state.name,
|
"studentName": state.name,
|
||||||
"targetId":props.datasource.projectId,
|
"targetId":props.datasource.projectId,
|
||||||
"taskId": props.datasource.courseId,
|
"taskId": props.datasource.courseId,
|
||||||
"type": 2
|
"type": 1
|
||||||
});
|
});
|
||||||
api.QueryVoteManagementDetail({
|
api.QueryVoteManagementDetail({
|
||||||
"pageNo": state.currentPage,
|
"pageNo": state.currentPage,
|
||||||
@@ -370,7 +370,7 @@
|
|||||||
"studentName": state.name,
|
"studentName": state.name,
|
||||||
"targetId":props.datasource.routerId,
|
"targetId":props.datasource.routerId,
|
||||||
"taskId": props.datasource.courseId,
|
"taskId": props.datasource.courseId,
|
||||||
"type": 2
|
"type": 1
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
console.log('投票数据获取', res)
|
console.log('投票数据获取', res)
|
||||||
if(res.data.code==200){
|
if(res.data.code==200){
|
||||||
|
|||||||
@@ -128,16 +128,19 @@
|
|||||||
</div>-->
|
</div>-->
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
|
<view-assess v-model:Assessvisible="Assessvisible" :datasource="evalDataSource" :evalName="datasource.info?.assessmentName"
|
||||||
|
:basicdata="datasource.info" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { toRefs, reactive, onMounted, onUnmounted } from "vue";
|
import { toRefs, reactive, onMounted, onUnmounted } from "vue";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
|
import ViewAssess from "../ViewAssess";
|
||||||
// import * as api from "../../../api/index";
|
// import * as api from "../../../api/index";
|
||||||
import * as api from "../../../api/indexTaskManage";
|
import * as api from "../../../api/indexTaskManage";
|
||||||
export default {
|
export default {
|
||||||
name: "RouterCommonManage",
|
name: "RouterCommonManage",
|
||||||
|
components: { ViewAssess },
|
||||||
props: {
|
props: {
|
||||||
CommonModelVisible: {
|
CommonModelVisible: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -200,6 +203,8 @@ export default {
|
|||||||
],
|
],
|
||||||
tabledata: [],
|
tabledata: [],
|
||||||
tableDataTotalLoading: true, // 表格loading加载配置
|
tableDataTotalLoading: true, // 表格loading加载配置
|
||||||
|
evalDataSource: "",
|
||||||
|
Assessvisible: false
|
||||||
});
|
});
|
||||||
const tableDataFunc = () => {
|
const tableDataFunc = () => {
|
||||||
const columns = [
|
const columns = [
|
||||||
@@ -317,9 +322,42 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
let obj = {
|
||||||
|
title: "操作",
|
||||||
|
dataIndex: "finishStatus",
|
||||||
|
key: "finishStatus",
|
||||||
|
width: 60,
|
||||||
|
align: "center",
|
||||||
|
ellipsis: true,
|
||||||
|
className: "h",
|
||||||
|
customRender: (text) => {
|
||||||
|
return (
|
||||||
|
<div class="racona">
|
||||||
|
<a
|
||||||
|
onClick={()=>{
|
||||||
|
console.log('iyiy', text.record)
|
||||||
|
showassess(text.record);
|
||||||
|
}}>查看</a>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
{/* 评估查看操作 */}
|
||||||
|
if(props.datasource.type==11){
|
||||||
|
columns.push(obj)
|
||||||
|
}
|
||||||
|
|
||||||
return columns;
|
return columns;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
{/* 查看评估弹框 */}
|
||||||
|
const showassess = (data) => {
|
||||||
|
state.evalDataSource = data;
|
||||||
|
state.Assessvisible = true;
|
||||||
|
};
|
||||||
|
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
ctx.emit("update:CommonModelVisible", false);
|
ctx.emit("update:CommonModelVisible", false);
|
||||||
state.currentPage = 1;
|
state.currentPage = 1;
|
||||||
@@ -477,6 +515,7 @@ export default {
|
|||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
selectProjectName,
|
selectProjectName,
|
||||||
closeDrawer,
|
closeDrawer,
|
||||||
|
showassess,
|
||||||
afterVisibleChange,
|
afterVisibleChange,
|
||||||
tableDataFunc,
|
tableDataFunc,
|
||||||
godie,
|
godie,
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ export default {
|
|||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
className: "h",
|
className: "h",
|
||||||
customRender: ({ record: { finishStatus } }) => ({ 1: '通过', 2: '未通过' }[finishStatus] || '未开始'),
|
customRender: ({record:{finishStatus}}) => ({1:'进行中',0:'未开始',9:'已完成'}[finishStatus] || '未开始'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
@@ -299,7 +299,7 @@ export default {
|
|||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
{/* debugger */ }
|
{/* debugger */ }
|
||||||
console.log("text" + text.record)
|
console.log("text" + text.record)
|
||||||
if (text.record.finishStatus === 1 || text.record.finishStatus === 2) {
|
if (text.record.finishStatus === 1 || text.record.finishStatus === 9) {
|
||||||
return (
|
return (
|
||||||
<div class="racona">
|
<div class="racona">
|
||||||
<a-button
|
<a-button
|
||||||
|
|||||||
@@ -391,7 +391,6 @@ const getStu = () => {
|
|||||||
console.log("获取项目学员", obj);
|
console.log("获取项目学员", obj);
|
||||||
getStuPage(obj).then((res) => {
|
getStuPage(obj).then((res) => {
|
||||||
console.log("获取项目学员", res);
|
console.log("获取项目学员", res);
|
||||||
if (res.data.code === 200) {
|
|
||||||
let arr = res.data.data.records;
|
let arr = res.data.data.records;
|
||||||
let array = [];
|
let array = [];
|
||||||
arr.map((value) => {
|
arr.map((value) => {
|
||||||
@@ -408,7 +407,6 @@ const getStu = () => {
|
|||||||
});
|
});
|
||||||
projectList.value = array;
|
projectList.value = array;
|
||||||
projectListTotal.value = res.data.data.total;
|
projectListTotal.value = res.data.data.total;
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
getStu();
|
getStu();
|
||||||
|
|||||||
@@ -318,7 +318,7 @@ export default {
|
|||||||
key: "name",
|
key: "name",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: "20%",
|
width: "22%",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "类型",
|
title: "类型",
|
||||||
@@ -366,7 +366,9 @@ export default {
|
|||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
style="cursor:pointer;"
|
style="cursor:pointer;"
|
||||||
color="green">转审完成</a-tag>:""
|
color="green">转审完成</a-tag>:
|
||||||
|
value.record.inviteAuditStatus==3?
|
||||||
|
value.record.invitedMsg:""
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -388,7 +390,6 @@ export default {
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: "10%",
|
width: "10%",
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
dataIndex: "opt",
|
dataIndex: "opt",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<div class="left clearfix">
|
<div class="left clearfix">
|
||||||
<div class="leftmain">
|
<div class="leftmain">
|
||||||
<div class="tit" style="margin-left: 18px">关卡</div>
|
<div class="tit" style="margin-left: 18px">关卡</div>
|
||||||
<div class="btn btn3" @click="showModal()" style="margin-left: 19px">
|
<div class="btn btn3" @click="showModal({},'add')" style="margin-left: 19px">
|
||||||
<div class="search"></div>
|
<div class="search"></div>
|
||||||
<div class="btnText">添加关卡</div>
|
<div class="btnText">添加关卡</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-popover>
|
</a-popover>
|
||||||
<div class="imgIcon" @click="showModal(element)"></div>
|
<div class="imgIcon" @click="showModal(element,'edit')"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="boxs_right">
|
<div class="boxs_right">
|
||||||
<div class="imgIcon" @click="deleteChapter"></div>
|
<div class="imgIcon" @click="deleteChapter"></div>
|
||||||
@@ -376,6 +376,7 @@ 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 visiblene = ref(false)
|
const visiblene = ref(false)
|
||||||
const cancleLoading = ref(false)
|
const cancleLoading = ref(false)
|
||||||
const confirmLoading = ref(false)
|
const confirmLoading = ref(false)
|
||||||
@@ -408,7 +409,16 @@ watch(() => routerInfo.value.chapterList, () => {
|
|||||||
})
|
})
|
||||||
}, {deep: true})
|
}, {deep: true})
|
||||||
|
|
||||||
const showModal = () => {
|
const showModal = (e,type) => {
|
||||||
|
ischapterEdit.value = (type === "edit");
|
||||||
|
console.log(ischapterEdit.value)
|
||||||
|
if(type == 'edit'){
|
||||||
|
console.log("关卡信息:" + e.name);
|
||||||
|
formValue.value = e;//回传修改的信息
|
||||||
|
}else{
|
||||||
|
//关卡信息初始化
|
||||||
|
formValue.value = {};
|
||||||
|
}
|
||||||
modal.value = true;
|
modal.value = true;
|
||||||
};
|
};
|
||||||
const closeModal = () => {
|
const closeModal = () => {
|
||||||
@@ -420,10 +430,16 @@ const editChapter = () => {
|
|||||||
if (!formValue.value.name) {
|
if (!formValue.value.name) {
|
||||||
return message.warning("请输入关卡名称");
|
return message.warning("请输入关卡名称");
|
||||||
}
|
}
|
||||||
routerInfo.value.chapterList.push({...formValue.value, draftTaskList: []})
|
if(ischapterEdit.value){
|
||||||
|
routerInfo.value.chapterList = [{...formValue.value, draftTaskList: []}];
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
routerInfo.value.chapterList.push({...formValue.value, draftTaskList: []})
|
||||||
|
}
|
||||||
formValue.value = {draftTaskList: []}
|
formValue.value = {draftTaskList: []}
|
||||||
closeModal()
|
closeModal()
|
||||||
};
|
};
|
||||||
|
|
||||||
//删除关卡
|
//删除关卡
|
||||||
const deleteChapter = () => {
|
const deleteChapter = () => {
|
||||||
dialog({
|
dialog({
|
||||||
|
|||||||
@@ -1679,5 +1679,6 @@ const cancelStorage = async () => {
|
|||||||
.footBox {
|
.footBox {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
z-index: 99999;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -262,7 +262,6 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 概览(无数据) -->
|
|
||||||
<!-- 概览(有数据) -->
|
<!-- 概览(有数据) -->
|
||||||
<div v-if="hasTask">
|
<div v-if="hasTask">
|
||||||
<div class="onerow">
|
<div class="onerow">
|
||||||
@@ -2909,10 +2908,7 @@ export default {
|
|||||||
let objtl = {
|
let objtl = {
|
||||||
projectId: state.projectId,
|
projectId: state.projectId,
|
||||||
};
|
};
|
||||||
apitl
|
apitl.getProjectDetail(objtl).then((res) => {
|
||||||
.getProjectDetail(objtl)
|
|
||||||
.then((res) => {
|
|
||||||
if (res.status == 200) {
|
|
||||||
console.log("阶段列表", res);
|
console.log("阶段列表", res);
|
||||||
for (let i = 0; i < res.data.data.stageList.length; i++) {
|
for (let i = 0; i < res.data.data.stageList.length; i++) {
|
||||||
for (
|
for (
|
||||||
@@ -2927,7 +2923,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
levelList.stageList = res.data.data.stageList;
|
levelList.stageList = res.data.data.stageList;
|
||||||
if (levelList.stageList.length == 1) {
|
if (levelList.stageList.length === 1) {
|
||||||
// 无解段任务
|
// 无解段任务
|
||||||
state.rankjieduan = [{ value: 0, label: "无阶段" }];
|
state.rankjieduan = [{ value: 0, label: "无阶段" }];
|
||||||
state.valuestu2 = 0;
|
state.valuestu2 = 0;
|
||||||
@@ -2948,10 +2944,6 @@ export default {
|
|||||||
state.valuestu2 = arrStage[0].value;
|
state.valuestu2 = arrStage[0].value;
|
||||||
state.choosedStageName = levelList.stageList[0].name;
|
state.choosedStageName = levelList.stageList[0].name;
|
||||||
}
|
}
|
||||||
console.log(
|
|
||||||
"----------------------------------->",
|
|
||||||
res.data.data.stageList
|
|
||||||
);
|
|
||||||
//暂时传个固定的id用 到时候看数据里面是否有在更换
|
//暂时传个固定的id用 到时候看数据里面是否有在更换
|
||||||
// state.projectTaskId = res.data.data.stageList[0].taskList[0].projectTaskId
|
// state.projectTaskId = res.data.data.stageList[0].taskList[0].projectTaskId
|
||||||
let leng = res.data.data.stageList.length;
|
let leng = res.data.data.stageList.length;
|
||||||
@@ -2959,17 +2951,13 @@ export default {
|
|||||||
let taskarr = res.data.data.stageList;
|
let taskarr = res.data.data.stageList;
|
||||||
console.log("11-22-33", taskarr);
|
console.log("11-22-33", taskarr);
|
||||||
if (taskarr.length == 1) {
|
if (taskarr.length == 1) {
|
||||||
if (taskarr[0].stageId == "0") {
|
if (taskarr[0].id == "0") {
|
||||||
taskarr[0].name = "无阶段任务";
|
taskarr[0].name = "无阶段任务";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
state.taskSyllabus = taskarr;
|
state.taskSyllabus = taskarr;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
|
||||||
console.log("获取任务列表失败", err);
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
//学员学员管理渲染
|
//学员学员管理渲染
|
||||||
// const getTableDate = () => {
|
// const getTableDate = () => {
|
||||||
@@ -3728,7 +3716,7 @@ export default {
|
|||||||
gangw: value.userInfoBo.jobName, //岗位
|
gangw: value.userInfoBo.jobName, //岗位
|
||||||
completeStageCnt: value.completeStageCnt, //当前完成阶段数
|
completeStageCnt: value.completeStageCnt, //当前完成阶段数
|
||||||
totalStageCnt: value.totalStageCnt, //总阶段数
|
totalStageCnt: value.totalStageCnt, //总阶段数
|
||||||
excellent: value.topFlag == 1 ? true : false, //是否优秀学员
|
excellent: value.topFlag == 1, //是否优秀学员
|
||||||
progress: value.completeStageCnt + "/" + value.totalStageCnt,
|
progress: value.completeStageCnt + "/" + value.totalStageCnt,
|
||||||
putin:
|
putin:
|
||||||
value.source == 0
|
value.source == 0
|
||||||
@@ -3910,6 +3898,8 @@ export default {
|
|||||||
state.hasTask = !!res.data.data?.stageList.some(
|
state.hasTask = !!res.data.data?.stageList.some(
|
||||||
({ taskList }) => taskList.length
|
({ taskList }) => taskList.length
|
||||||
);
|
);
|
||||||
|
console.log(111111111111);
|
||||||
|
console.log(state.hasTask);
|
||||||
// state.attach = info.attach;
|
// state.attach = info.attach;
|
||||||
// state.templateId = info.templateId;
|
// state.templateId = info.templateId;
|
||||||
state.sourceBelong =
|
state.sourceBelong =
|
||||||
|
|||||||
@@ -281,7 +281,7 @@
|
|||||||
|
|
||||||
<div class="footbtn">
|
<div class="footbtn">
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<a-button class="btn btn2" @click="submitStorage" :loading="templateLoading">确定11</a-button>
|
<a-button class="btn btn2" @click="submitStorage" :loading="templateLoading">确定</a-button>
|
||||||
<a-button class="btn btn1" @click="cancelStorage" :loading="cancleLoading">取消</a-button>
|
<a-button class="btn btn1" @click="cancelStorage" :loading="cancleLoading">取消</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -615,10 +615,14 @@ const closeChangeModal = () => {
|
|||||||
};
|
};
|
||||||
//移动任务到阶段
|
//移动任务到阶段
|
||||||
const moveTask = () => {
|
const moveTask = () => {
|
||||||
projectInfo.value.stageList[moveChapterIndex.value].taskTemplateList.push(...projectInfo.value.projectTemplateInfo.value.stageList[activeIndex.value].taskTemplateList.filter(t => t.checked).map((t) => ({
|
console.log("移动到阶段:" + JSON.stringify(projectInfo.value));
|
||||||
|
alert(projectInfo.value.stageList.length);
|
||||||
|
alert(moveChapterIndex.value);
|
||||||
|
projectInfo.value.stageList[moveChapterIndex.value].taskTemplateList.push(...projectInfo.value.stageList[activeIndex.value].taskTemplateList.filter(t => t.checked).map((t) => ({
|
||||||
...t,
|
...t,
|
||||||
checked: false
|
checked: false
|
||||||
})));
|
})));
|
||||||
|
alert(projectInfo.value.stageList.length);
|
||||||
projectInfo.value.stageList[activeIndex.value].taskTemplateList = projectInfo.value.stageList[activeIndex.value].taskTemplateList.filter(t => !t.checked);
|
projectInfo.value.stageList[activeIndex.value].taskTemplateList = projectInfo.value.stageList[activeIndex.value].taskTemplateList.filter(t => !t.checked);
|
||||||
visiblene.value = false;
|
visiblene.value = false;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user