mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
合并
This commit is contained in:
@@ -853,6 +853,7 @@ export default {
|
||||
EditRefId: null, //要编辑的外链的id
|
||||
EditLiveId: null, //要编辑的直播的id
|
||||
editDiscussId:null,//要编辑的讨论的id
|
||||
EditEvalId:null,
|
||||
projectNameList: [
|
||||
{
|
||||
id: 1,
|
||||
@@ -1520,38 +1521,6 @@ export default {
|
||||
});
|
||||
};
|
||||
|
||||
//编辑测评信息
|
||||
const editEvalPath = () => {
|
||||
let obj = {
|
||||
createTime: "",
|
||||
createUser: 0,
|
||||
evaluationEndTime: "",
|
||||
evaluationFlag: "",
|
||||
evaluationId: "",
|
||||
evaluationName: "",
|
||||
evaluationPictureAddress: "",
|
||||
evaluationStartTime: "",
|
||||
evaluationTag: "",
|
||||
evaluationTypeId: 0,
|
||||
evaluationTypeName: "",
|
||||
updateTime: "",
|
||||
updateUser: 0,
|
||||
};
|
||||
apieval
|
||||
.updateEvaluation(obj)
|
||||
.then((res) => {
|
||||
setTimeout(() => {
|
||||
console.log("修改成功", res);
|
||||
message.success("修改成功");
|
||||
}, 1000);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("修改失败", err);
|
||||
// state.createLoading = false;
|
||||
//重新获取列表
|
||||
getTask();
|
||||
});
|
||||
};
|
||||
|
||||
//删除评估测试
|
||||
const deleteInvistText = () => {
|
||||
@@ -1890,13 +1859,20 @@ export default {
|
||||
state.isLiveEdit = 2;
|
||||
state.EditLiveId = id;
|
||||
};
|
||||
//打开测评外链的弹窗
|
||||
const showEditEvalDrawer = (id) => {
|
||||
console.log('222222222222222222222',id);
|
||||
state.addevalvisible = true;
|
||||
state.EditRefId = id;
|
||||
};
|
||||
//编辑的按钮
|
||||
const decideType = (type, id) => {
|
||||
state.edit = true;
|
||||
console.log(type, id);
|
||||
if (type == "外链") {
|
||||
showEditRefDrawer(id);
|
||||
} else if (type == "直播") {
|
||||
}
|
||||
else if (type == "直播") {
|
||||
showEditLiveDrawer(id);
|
||||
} else if (type == "测评") {
|
||||
showDrawerAddEval(id);
|
||||
@@ -1909,7 +1885,7 @@ export default {
|
||||
} else if (type == "活动") {
|
||||
showDrawerAddActive(id);
|
||||
}
|
||||
};
|
||||
}
|
||||
return {
|
||||
...toRefs(state),
|
||||
selectProjectName,
|
||||
@@ -1931,6 +1907,7 @@ export default {
|
||||
showDrawerAddDiscuss,
|
||||
showDrawerAddActive,
|
||||
showDrawerAddEval,
|
||||
showEditEvalDrawer,
|
||||
showDrawerAddInvist,
|
||||
showDrawerAddVote,
|
||||
showConfirm,
|
||||
@@ -1950,7 +1927,6 @@ export default {
|
||||
deleteActivity,
|
||||
deleteVoteText,
|
||||
editActivity,
|
||||
editEvalPath,
|
||||
deleteInvistText,
|
||||
editInvistPath,
|
||||
editVotePath,
|
||||
|
||||
Reference in New Issue
Block a user