Vanessa 2024-03-04 21:51:43 +08:00
parent 344a7ca950
commit 220e0b137f
7 changed files with 23 additions and 9 deletions

View file

@ -55,6 +55,7 @@ export const openMenuPanel = (options: {
fetchPost("/api/av/renderAttributeView", {
id: avID,
pageSize: parseInt(options.blockElement.getAttribute("data-page-size")) || undefined,
viewID: options.blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW)
}, (response) => {
const isCustomAttr = !options.blockElement.classList.contains("av");
const data = response.data as IAV;
@ -714,7 +715,7 @@ export const openMenuPanel = (options: {
id,
blockID
}]);
options.blockElement.setAttribute("custom-sy-av-view", id)
options.blockElement.setAttribute(Constants.CUSTOM_SY_AV_VIEW, id)
avPanelElement.remove();
event.preventDefault();
event.stopPropagation();
@ -995,7 +996,8 @@ export const openMenuPanel = (options: {
avID,
colId,
icon: colData.icon,
newValue: colData.name
newValue: colData.name,
viewID: data.viewID,
});
avPanelElement.remove();
event.preventDefault();