commit
This commit is contained in:
@@ -391,11 +391,11 @@ public class SysMenuController {
|
|||||||
@At
|
@At
|
||||||
@Ok("json")
|
@Ok("json")
|
||||||
@SaCheckPermission("sys.manager.menu.edit")
|
@SaCheckPermission("sys.manager.menu.edit")
|
||||||
public Object sortDo(@Param("ids") String ids, HttpServletRequest req) {
|
public Object sortDo(@Param("ids") String ids, @Param("platform") String platform, HttpServletRequest req) {
|
||||||
try {
|
try {
|
||||||
String[] menuIds = StringUtils.split(ids, ",");
|
String[] menuIds = StringUtils.split(ids, ",");
|
||||||
int i = 0;
|
int i = 0;
|
||||||
sysMenuService.execute(Sqls.create("update sys_menu set location=0"));
|
sysMenuService.execute(Sqls.create("update sys_menu set location=0 where platform = '%s'".formatted(platform)));
|
||||||
for (String s : menuIds) {
|
for (String s : menuIds) {
|
||||||
if (!Strings.isBlank(s)) {
|
if (!Strings.isBlank(s)) {
|
||||||
sysMenuService.update(org.nutz.dao.Chain.make("location", i), Cnd.where("id", "=", s));
|
sysMenuService.update(org.nutz.dao.Chain.make("location", i), Cnd.where("id", "=", s));
|
||||||
|
|||||||
+3
-2
@@ -79,8 +79,8 @@ public class SysClubInfoManageServiceImpl extends BaseServiceImpl<ClubCommonPage
|
|||||||
WHERE
|
WHERE
|
||||||
scu.clubId = c.id
|
scu.clubId = c.id
|
||||||
) currentNum,
|
) currentNum,
|
||||||
presidentUser.username AS clubLeader,
|
GROUP_CONCAT(DISTINCT presidentUser.username) AS clubLeader,
|
||||||
secretaryUser.username AS clubSecretary
|
GROUP_CONCAT(secretaryUser.username) AS clubSecretary
|
||||||
FROM
|
FROM
|
||||||
sys_club c
|
sys_club c
|
||||||
LEFT JOIN club_user presidentCu on presidentCu.clubId = c.id AND JSON_CONTAINS(presidentCu.roleCode, '"CLUB_PRESIDENT"')
|
LEFT JOIN club_user presidentCu on presidentCu.clubId = c.id AND JSON_CONTAINS(presidentCu.roleCode, '"CLUB_PRESIDENT"')
|
||||||
@@ -105,6 +105,7 @@ public class SysClubInfoManageServiceImpl extends BaseServiceImpl<ClubCommonPage
|
|||||||
|
|
||||||
cnd.and("c.id", "in", clubIdList);
|
cnd.and("c.id", "in", clubIdList);
|
||||||
}
|
}
|
||||||
|
cnd.groupBy("c.id");
|
||||||
cnd.asc("c.clubCode");
|
cnd.asc("c.clubCode");
|
||||||
sql.setCondition(cnd);
|
sql.setCondition(cnd);
|
||||||
return listPageVO(pageForm, sql, ClubCommonPageVo.class);
|
return listPageVO(pageForm, sql, ClubCommonPageVo.class);
|
||||||
|
|||||||
@@ -20,11 +20,13 @@ const SYS_MENU_SORT_COMPONENT = {
|
|||||||
defaultProps: {
|
defaultProps: {
|
||||||
children: "children",
|
children: "children",
|
||||||
label: "label"
|
label: "label"
|
||||||
}
|
},
|
||||||
|
platform: 'PC'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onOpen(platform) {
|
onOpen(platform) {
|
||||||
|
this.platform = platform
|
||||||
this.sortDialogVisible = true
|
this.sortDialogVisible = true
|
||||||
this.$axios.post("/platform/sys/menu/menuAll", { platform }).then((res) => {
|
this.$axios.post("/platform/sys/menu/menuAll", { platform }).then((res) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
@@ -48,7 +50,7 @@ const SYS_MENU_SORT_COMPONENT = {
|
|||||||
})
|
})
|
||||||
this.getTreeIds(ids, this.sortMenuData)
|
this.getTreeIds(ids, this.sortMenuData)
|
||||||
this.$axios
|
this.$axios
|
||||||
.post("/platform/sys/menu/sortDo", { ids: ids.toString() })
|
.post("/platform/sys/menu/sortDo", { ids: ids.toString(), platform: this.platform })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.$message.success(res.msg)
|
this.$message.success(res.msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user