mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-11 11:56:48 +08:00
feat:增加讨论是否允许评论限制
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="restore">
|
<div class="restore">
|
||||||
<div class="reshead">
|
<div v-if="discussSettings=='true'" class="reshead">
|
||||||
<div class="headn">
|
<div class="headn">
|
||||||
<div class="pl">评论</div>
|
<div class="pl">评论</div>
|
||||||
<div class="ts">{{ hfPage?.total }}条</div>
|
<div class="ts">{{ hfPage?.total }}条</div>
|
||||||
|
|||||||
@@ -169,6 +169,7 @@ const closeLoading = () => {
|
|||||||
loading.value.close();
|
loading.value.close();
|
||||||
};
|
};
|
||||||
//获取讨论详情
|
//获取讨论详情
|
||||||
|
const discussSettings = ref("");
|
||||||
const {
|
const {
|
||||||
query: { id, type, infoId, chapterOrStageId, id: taskId },
|
query: { id, type, infoId, chapterOrStageId, id: taskId },
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
@@ -197,6 +198,7 @@ request(DISCUSS_LIST, {
|
|||||||
path: "/notpath",
|
path: "/notpath",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
discussSettings.value = e.data.discussDtoList[0].discussSettings;
|
||||||
state.info = e.data;
|
state.info = e.data;
|
||||||
console.log("讨论详情", state.info);
|
console.log("讨论详情", state.info);
|
||||||
state.discussId = e.data.discussDtoList[0].id;
|
state.discussId = e.data.discussDtoList[0].id;
|
||||||
@@ -278,7 +280,7 @@ const goDetails = (item) => {
|
|||||||
type,
|
type,
|
||||||
postID: item.id,
|
postID: item.id,
|
||||||
postName: state.info.discussDtoList[0].discussName,
|
postName: state.info.discussDtoList[0].discussName,
|
||||||
discussSettings: state.info.discussDtoList[0].discussSettings,
|
discussSettings: discussSettings.value
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user