From 075d31b8b62af612d2fa164b7190a0c2a54ee16c Mon Sep 17 00:00:00 2001 From: 728 Date: Wed, 8 Mar 2023 23:55:38 +0800 Subject: [PATCH] sec --- ismism.ts/ui/bind/section.ts | 12 ++++++------ ismism.ts/ui/index/template.html | 18 +++++++++--------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/ismism.ts/ui/bind/section.ts b/ismism.ts/ui/bind/section.ts index 7f67252..ab84d18 100644 --- a/ismism.ts/ui/bind/section.ts +++ b/ismism.ts/ui/bind/section.ts @@ -120,9 +120,9 @@ export function rolref( t: HTMLParagraphElement, u: Usr, ) { - if (u.aut) ida(t, [[`${u._id}`, `主义主义书记 (${u.ref.length}推荐)`]], "isec") - ida(t, u.aref.sec.map(([a, r]) => [`a${a}`, `${u.anam.get(a)}书记 (${r}推荐)`]), "sec") - ida(t, u.sref.sec.map(([a, r]) => [`s${a}`, `${u.snam.get(a)}书记 (${r}推荐)`]), "sec") + if (u.aut) ida(t, [[`${u._id}`, `主义主义管理员 (${u.ref.length}推荐)`]], "isec") + ida(t, u.aref.sec.map(([a, r]) => [`a${a}`, `${u.anam.get(a)}管理员 (${r}推荐)`]), "sec") + ida(t, u.sref.sec.map(([a, r]) => [`s${a}`, `${u.snam.get(a)}管理员 (${r}推荐)`]), "sec") ida(t, u.aref.uid.map(([a, r]) => [`a${a}`, `${u.anam.get(a)}志愿者 (${r}推荐)`]), "uid") ida(t, u.sref.uid.map(([a, r]) => [`s${a}`, `${u.snam.get(a)}志愿者 (${r}推荐)`]), "uid") ida(t, u.aref.res.map(([a, r]) => [`a${a}`, `${u.anam.get(a)}申请人 (${r}推荐)`]), "res") @@ -143,7 +143,7 @@ export function rel( t: Section["rel"], d: Soc | Agd, ) { - label(t.sec, `书记:(${d.sec.length}/${lim_sec})`) + label(t.sec, `管理员:(${d.sec.length}/${lim_sec})`) ida(t.sec, d.sec.map(r => [`${r}`, d.unam.get(r)!])) label(t.uid, `志愿者:(${d.uid.length}/${d.uidlim})`) ida(t.uid, d.uid.map(r => [`${r}`, d.unam.get(r)!])) @@ -260,13 +260,13 @@ export function putrel( if (!nav.pas) { t.putrel.remove(); return } const namid = new Map([...d.unam.entries()].map(([u, nam]) => [nam, u])) if (d.ref.includes(nav.pas.uid)) btn(t.putsec, t.putsec.innerText, { - prompt1: "输入要增加或删除的书记名", + prompt1: "输入要增加或删除的管理员名", pos: p1 => { const uid = namid.get(p1 ?? "") if (!uid) return null return pos("put", { [id]: d._id, rol: "sec", uid, add: !d.sec.includes(uid) }) }, - alert: `无效书记名或书记已满\n增删的书记需先作为申请人或其它出现在${id === "sid" ? "社团" : "活动"}名单`, + alert: `无效管理员名或管理员已满\n增删的管理员需先作为申请人或其它出现在${id === "sid" ? "社团" : "活动"}名单`, refresh: async () => { await navpas(); refresh() }, }); else t.putsec.remove() // deno-lint-ignore no-explicit-any if (is_sec(nav.pas, { [id]: d._id } as any)) btn(t.putuid, t.putuid.innerText, { diff --git a/ismism.ts/ui/index/template.html b/ismism.ts/ui/index/template.html index 67c163e..cceda7c 100644 --- a/ismism.ts/ui/index/template.html +++ b/ismism.ts/ui/index/template.html @@ -49,7 +49,7 @@
反对者达两名时,信息不公示
推荐人达两名前,权限不可用
- 仅书记有权限反对或推荐用户 + 仅管理员有权限反对或推荐用户
@@ -118,11 +118,11 @@
反对者达两名时,信息不公示
推荐人达两名前,权限不可用
- 仅主义主义书记有权限反对或推荐社团 + 仅主义主义管理员有权限反对或推荐社团

- +


@@ -157,7 +157,7 @@
- +
@@ -185,7 +185,7 @@
反对者达两名时,信息不公示
推荐人达两名前,权限不可用
- 仅主义主义书记有权限反对或推荐活动 + 仅主义主义管理员有权限反对或推荐活动
@@ -221,7 +221,7 @@

- +


@@ -255,7 +255,7 @@
- +
@@ -350,8 +350,8 @@
- 以上基础信息仅主义主义书记可编辑
- 以下内容信息仅社团活动书记可编辑 + 以上基础信息仅主义主义管理员可编辑
+ 以下内容信息仅社团活动管理员可编辑