mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
编辑讨论获取信息
This commit is contained in:
@@ -168,14 +168,21 @@ export default {
|
|||||||
};
|
};
|
||||||
if(props.edit){
|
if(props.edit){
|
||||||
//console.log("编辑");
|
//console.log("编辑");
|
||||||
|
console.log("props.editDiscussId",props.editDiscussId)
|
||||||
|
|
||||||
|
let obj = {
|
||||||
|
discussId: props.editDiscussId,
|
||||||
|
}
|
||||||
|
console.log(obj)
|
||||||
api
|
api
|
||||||
.updateDiscuss(obj)
|
.getDiscussDetail(obj)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log("编辑成功", res);
|
console.log("获取成功",res.data);
|
||||||
message.success("编辑成功");
|
|
||||||
closeDrawer();
|
|
||||||
})
|
})
|
||||||
.catch((err) => console.log(err));
|
.catch((err) => {
|
||||||
|
console.log("获取失败",err.data);
|
||||||
|
})
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
api
|
api
|
||||||
.createDiscuss(obj)
|
.createDiscuss(obj)
|
||||||
|
|||||||
@@ -852,6 +852,7 @@ export default {
|
|||||||
isLiveEdit: 1, //直播编辑
|
isLiveEdit: 1, //直播编辑
|
||||||
EditRefId: null, //要编辑的外链的id
|
EditRefId: null, //要编辑的外链的id
|
||||||
EditLiveId: null, //要编辑的直播的id
|
EditLiveId: null, //要编辑的直播的id
|
||||||
|
editDiscussId:null,//要编辑的讨论的id
|
||||||
projectNameList: [
|
projectNameList: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
@@ -1776,6 +1777,11 @@ export default {
|
|||||||
const showDrawerAddDiscuss = () => {
|
const showDrawerAddDiscuss = () => {
|
||||||
state.adddiscussvisible = true;
|
state.adddiscussvisible = true;
|
||||||
};
|
};
|
||||||
|
//打开编辑讨论的弹窗
|
||||||
|
const showEditAddDiscuss = (id)=>{
|
||||||
|
state.editDiscussId = id
|
||||||
|
state.adddiscussvisible = true;
|
||||||
|
}
|
||||||
const showDrawerAddActive = () => {
|
const showDrawerAddActive = () => {
|
||||||
state.addactivevisible = true;
|
state.addactivevisible = true;
|
||||||
};
|
};
|
||||||
@@ -1899,7 +1905,9 @@ export default {
|
|||||||
} else if (type == "投票") {
|
} else if (type == "投票") {
|
||||||
showDrawerAddVote(id);
|
showDrawerAddVote(id);
|
||||||
} else if (type == "讨论") {
|
} else if (type == "讨论") {
|
||||||
showDrawerAddDiscuss(id);
|
showEditAddDiscuss(id);
|
||||||
|
} else if (type == "活动") {
|
||||||
|
showDrawerAddActive(id);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user