Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
synergy-components
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
synergy-components
Commits
f9ef354b
Commit
f9ef354b
authored
Nov 21, 2023
by
Samir Sadyhov
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Канбан-доска - добавлена проверка прав на фильтры
parent
e15f649b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
constructor/components/Канбан-доска/Канбан-доска.js
constructor/components/Канбан-доска/Канбан-доска.js
+23
-7
No files found.
constructor/components/Канбан-доска/Канбан-доска.js
View file @
f9ef354b
...
@@ -642,6 +642,19 @@ const KanbanBoard = {
...
@@ -642,6 +642,19 @@ const KanbanBoard = {
},
},
updateRigths: function(){
if(this.filterCode) {
const selectFilter = this.registryFilters.find(x => x.code == this.filterCode);
if(selectFilter) {
this.allRights = [...selectFilter.rights];
} else {
this.allRights = [...this.registryRights];
}
} else {
this.allRights = [...this.registryRights];
}
},
reset: function(){
reset: function(){
this.selectedItems = [];
this.selectedItems = [];
this.columns.forEach(column => column.currentPage = 0);
this.columns.forEach(column => column.currentPage = 0);
...
@@ -671,9 +684,17 @@ const KanbanBoard = {
...
@@ -671,9 +684,17 @@ const KanbanBoard = {
const registry = registryList.find(x => x.registryCode == registryCode);
const registry = registryList.find(x => x.registryCode == registryCode);
if(registry) {
if(registry) {
if(!registry.rights.includes("rr_list")) throw new Error(`
Нет
прав
на
просмотр
данного
реестра
`);
const info = await appAPI.getRegistryInfo(registryCode);
const info = await appAPI.getRegistryInfo(registryCode);
this.registryFilters = await appAPI.getRegistryFilters(registryCode);
this.registryCode = registryCode;
this.filterCode = filterCode;
this.registryID = info.registryID;
this.registryName = registry.registryName;
this.registryRights = registry.rights;
this.updateRigths();
if(!this.allRights.includes("rr_list")) throw new Error(`
Нет
прав
на
просмотр
данного
реестра
`);
this.heads = info.columns.filter(item => item.visible != '0')
this.heads = info.columns.filter(item => item.visible != '0')
.sort((a, b) => {
.sort((a, b) => {
...
@@ -684,11 +705,6 @@ const KanbanBoard = {
...
@@ -684,11 +705,6 @@ const KanbanBoard = {
return {label: item.label, columnID: item.columnID}
return {label: item.label, columnID: item.columnID}
});
});
this.registryCode = registryCode;
this.filterCode = filterCode;
this.registryID = info.registryID;
this.registryName = registry.registryName;
this.rights = registry.rights;
this.formCode = info.formCode;
this.formCode = info.formCode;
this.formId = info.formId;
this.formId = info.formId;
this.formName = info.name;
this.formName = info.name;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment