art.dialog.open("groupListAdd.cshtml", { ... });
彈出層顯示空白,無內容。
`art.dialog.open` 參數是 **URL 路徑**,相對於**當前頁面**解析。`.cshtml` 是 Razor 視圖文件,**不能直接通過 URL 訪問**,必須通過 Controller Action 返回。
public ActionResult GroupListAdd() {
return PartialView("_GroupListAdd"); // 返回 _GroupListAdd.cshtml
}
art.dialog.open('@Url.Action("GroupListAdd")', {
lock: true,
title: '團隊添加',
width: '900px',
height: '500px',
close: function() { window.location.reload(); }
});