|
@@ -131,7 +131,7 @@
|
|
|
</div>
|
|
|
<div class="input-section">
|
|
|
<div class="input-title input-slider">
|
|
|
- <span>设置为置顶</span>
|
|
|
+ <span>设为置顶</span>
|
|
|
|
|
|
<Slider :open="topFlag" @change="onTopFlag" />
|
|
|
</div>
|
|
@@ -251,13 +251,22 @@ const ManageNotification = defineComponent({
|
|
|
});
|
|
|
data.page = 1;
|
|
|
data.groupList = [];
|
|
|
- getNotification();
|
|
|
+ TUIMessage({
|
|
|
+ message: item.topFlag ? '取消置顶成功' : '设为置顶成功',
|
|
|
+ isH5: false,
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
} else if (type === "delete") {
|
|
|
await imGroupNoticeRemove({
|
|
|
id: item.id,
|
|
|
});
|
|
|
data.page = 1;
|
|
|
data.groupList = [];
|
|
|
+ TUIMessage({
|
|
|
+ message: '删除成功',
|
|
|
+ isH5: false,
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
getNotification();
|
|
|
} else if (type === "add") {
|
|
|
data.isEdit = true;
|
|
@@ -292,6 +301,7 @@ const ManageNotification = defineComponent({
|
|
|
content: data.input,
|
|
|
id: data.id,
|
|
|
});
|
|
|
+
|
|
|
} else {
|
|
|
await imGroupNoticeSave({
|
|
|
groupId: data.groupProfile.groupID,
|
|
@@ -301,6 +311,12 @@ const ManageNotification = defineComponent({
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ TUIMessage({
|
|
|
+ message: '发布成功',
|
|
|
+ isH5: false,
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+
|
|
|
data.isEdit = false;
|
|
|
ctx.emit("changeStatus", "submit");
|
|
|
data.page = 1;
|