* [perf story #49799] Bind change for checkLibPriv event.

This commit is contained in:
wangyidong
2024-08-12 12:36:00 +08:00
committed by 孙广明
parent 7910f45108
commit 03d9568ac4
7 changed files with 14 additions and 3 deletions
+1
View File
@@ -409,3 +409,4 @@ $lang->doc->showDocList[0] = 'No';
$lang->doc->whitelistDeny['product'] = "<i class='icon pr-1 text-important icon-exclamation'></i>Whitelist user <span class='px-1 text-important'>%s</span> currently has no product access permission, therefore cannot access the document. To access, please maintain product access control permissions.";
$lang->doc->whitelistDeny['project'] = "<i class='icon pr-1 text-important icon-exclamation'></i>Whitelist user <span class='px-1 text-important'>%s</span> currently has no project access permission, therefore cannot access the document. To access, please maintain project access control permissions.";
$lang->doc->whitelistDeny['execution'] = "<i class='icon pr-1 text-important icon-exclamation'></i>Whitelist user <span class='px-1 text-important'>%s</span> currently has no execution access permission, therefore cannot access the document. To access, please maintain execution access control permissions.";
$lang->doc->whitelistDeny['doc'] = "<i class='icon pr-1 text-important icon-exclamation'></i>Whitelist user <span class='px-1 text-important'>%s</span> currently has no library access permission, therefore cannot access the document. To access, please maintain library access control permissions.";
+1
View File
@@ -409,3 +409,4 @@ $lang->doc->showDocList[0] = 'No';
$lang->doc->whitelistDeny['product'] = "<i class='icon pr-1 text-important icon-exclamation'></i>Whitelist user <span class='px-1 text-important'>%s</span> currently has no product access permission, therefore cannot access the document. To access, please maintain product access control permissions.";
$lang->doc->whitelistDeny['project'] = "<i class='icon pr-1 text-important icon-exclamation'></i>Whitelist user <span class='px-1 text-important'>%s</span> currently has no project access permission, therefore cannot access the document. To access, please maintain project access control permissions.";
$lang->doc->whitelistDeny['execution'] = "<i class='icon pr-1 text-important icon-exclamation'></i>Whitelist user <span class='px-1 text-important'>%s</span> currently has no execution access permission, therefore cannot access the document. To access, please maintain execution access control permissions.";
$lang->doc->whitelistDeny['doc'] = "<i class='icon pr-1 text-important icon-exclamation'></i>Whitelist user <span class='px-1 text-important'>%s</span> currently has no library access permission, therefore cannot access the document. To access, please maintain library access control permissions.";
+1
View File
@@ -409,3 +409,4 @@ $lang->doc->showDocList[0] = 'No';
$lang->doc->whitelistDeny['product'] = "<i class='icon pr-1 text-important icon-exclamation'></i>Whitelist user <span class='px-1 text-important'>%s</span> currently has no product access permission, therefore cannot access the document. To access, please maintain product access control permissions.";
$lang->doc->whitelistDeny['project'] = "<i class='icon pr-1 text-important icon-exclamation'></i>Whitelist user <span class='px-1 text-important'>%s</span> currently has no project access permission, therefore cannot access the document. To access, please maintain project access control permissions.";
$lang->doc->whitelistDeny['execution'] = "<i class='icon pr-1 text-important icon-exclamation'></i>Whitelist user <span class='px-1 text-important'>%s</span> currently has no execution access permission, therefore cannot access the document. To access, please maintain execution access control permissions.";
$lang->doc->whitelistDeny['doc'] = "<i class='icon pr-1 text-important icon-exclamation'></i>Whitelist user <span class='px-1 text-important'>%s</span> currently has no library access permission, therefore cannot access the document. To access, please maintain library access control permissions.";
+1
View File
@@ -409,3 +409,4 @@ $lang->doc->showDocList[0] = '否';
$lang->doc->whitelistDeny['product'] = "<i class='icon pr-1 text-important icon-exclamation'></i>白名单用户<span class='px-1 text-important'>%s</span>暂无产品访问权限,因此无法访问文档。如需访问,请维护产品访问控制权限。";
$lang->doc->whitelistDeny['project'] = "<i class='icon pr-1 text-important icon-exclamation'></i>白名单用户<span class='px-1 text-important'>%s</span>暂无项目访问权限,因此无法访问文档。如需访问,请维护项目访问控制权限。";
$lang->doc->whitelistDeny['execution'] = "<i class='icon pr-1 text-important icon-exclamation'></i>白名单用户<span class='px-1 text-important'>%s</span>暂无执行访问权限,因此无法访问文档。如需访问,请维护执行访问控制权限。";
$lang->doc->whitelistDeny['doc'] = "<i class='icon pr-1 text-important icon-exclamation'></i>白名单用户<span class='px-1 text-important'>%s</span>暂无所在库访问权限,因此无法访问文档。如需访问,请维护所在库的访问控制权限。";
+3 -1
View File
@@ -24,6 +24,8 @@ $basicInfoModal = modal
on::change('[name=space],[name=product],[name=execution]')->call('loadObjectModules', jsRaw('event')),
on::change('[name=lib]')->call('loadLibModules', jsRaw('event')),
on::change('[name=project]')->call('loadExecutions', jsRaw('event')),
on::change('[name=lib]', 'checkLibPriv'),
on::change('[name^=users]', 'checkLibPriv'),
formGroup
(
setClass('flex items-center'),
@@ -108,9 +110,9 @@ $basicInfoModal = modal
),
formGroup
(
setID('whiteListBox'),
setClass('hidden'),
set::label($lang->doc->whiteList),
set::id('whitelistBox'),
div
(
setClass('w-full check-list'),
+3 -1
View File
@@ -14,6 +14,8 @@ formPanel
modalHeader(),
on::change('[name=product],[name=project],[name=execution],[name=space]', "loadObjectModules"),
on::change('[name=lib]', "loadLibModules"),
on::change('[name=lib]', 'checkLibPriv'),
on::change('[name^=users]', 'checkLibPriv'),
(strpos('product|project|execution', $type) !== false) ? formGroup
(
set::width('1/2'),
@@ -81,7 +83,7 @@ formPanel
(
$doc->acl == 'open' ? setClass('hidden') : null,
set::label($lang->doc->whiteList),
set::id('whitelistBox'),
set::id('whiteListBox'),
div
(
setClass('w-full check-list'),
+4 -1
View File
@@ -25,6 +25,9 @@ $basicInfoModal = modal
set::title($lang->doc->release . $lang->doc->common),
on::change('[name="space"],[name="product"],[name="project"],[name="execution"]')->call('loadObjectModules', jsRaw('event')),
on::change('[name="lib"]')->call('loadLibModules', jsRaw('event')),
on::change('[name=lib]', 'checkLibPriv'),
on::change('[name^=users]', 'checkLibPriv'),
$type == 'execution' ? formHidden('project', $doc->project) : null,
(strpos('product|project|execution', $type) !== false) ? formGroup
(
@@ -81,7 +84,7 @@ $basicInfoModal = modal
(
$doc->acl == 'open' ? setClass('hidden') : null,
set::label($lang->doc->whiteList),
set::id('whitelistBox'),
set::id('whiteListBox'),
div
(
setClass('w-full check-list'),