@opengis/admin 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/add-page-D6D_vCdT.js +94 -0
- package/dist/{admin-interface-vPkHXzQK.js → admin-interface-BpAoXL6Y.js} +236 -208
- package/dist/{admin-view-BYF4ITZY.js → admin-view-Ctnb3YHc.js} +10 -10
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +618 -25
- package/dist/card-page-CDUWky8v.js +133 -0
- package/dist/{card-view-CjZRvfqy.js → card-view-BdtKFM_Q.js} +1 -1
- package/dist/edit-page-Bl7TSfk5.js +104 -0
- package/dist/import-file-bAV0TNST.js +29762 -0
- package/dist/style.css +1 -1
- package/package.json +18 -5
- package/plugin.js +1 -1
- package/server/plugins/vite.js +13 -8
- package/server/routes/data/controllers/cardData.js +1 -1
- package/server/routes/data/controllers/funcs/getFilterSQL/index.js +82 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +142 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +67 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -0
- package/server/routes/data/controllers/tableData.js +12 -31
- package/server/routes/data/controllers/tableFilter.js +1 -1
- package/server/routes/data/controllers/utils/assignTokens.js +31 -0
- package/server/routes/data/index.mjs +1 -1
- package/server/routes/templates/controllers/getTemplate.js +2 -4
- package/server/templates/cls/itree.recrzone_category.json +74 -0
- package/dist/add-page-C-msiPrU.js +0 -64
- package/dist/card-page-HOwuHNjV.js +0 -49
- package/dist/edit-page-7yrRusn4.js +0 -58
- package/dist/form-TrZSpRSC.js +0 -38
- package/dist/import-file-DPHo57R5.js +0 -3726
- package/server/routes/data/controllers/metaFormat/getSelectVal.js +0 -19
- package/server/routes/data/controllers/metaFormat/index.js +0 -29
- package/server/routes/templates/funcs/addTempateFolder.js +0 -47
- package/server/routes/templates/funcs/getTemplate.js +0 -70
- package/server/routes/templates/funcs/getTemplatePath.js +0 -39
- package/server/routes/templates/funcs/loadTemplate.js +0 -1
- package/server/routes/templates/funcs/loadTemplateDir.js +0 -1
- package/server/routes/templates/funcs/loadTemplatePath.js +0 -1
- package/server/templates/interface/management.user_group.html +0 -1
- package/server/templates/interface/management.user_group.json +0 -10
- package/server/templates/interface/management.users.html +0 -1
- package/server/templates/interface/management.users.json +0 -10
- package/server/templates/map/dgm_level_line.xml +0 -52
- package/server/templates/pt/admin-menu-pt.html +0 -108
- package/server/templates/pt/management.user_group.table.pt.html +0 -127
- package/server/templates/pt/management.users.table.pt.html +0 -130
- package/server/templates/pt/table-standard-pt.html +0 -202
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
<style>
|
|
2
|
-
.table {
|
|
3
|
-
table-layout: fixed;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.label {
|
|
7
|
-
display: inline-block;
|
|
8
|
-
}
|
|
9
|
-
</style>
|
|
10
|
-
|
|
11
|
-
<div class="content m-t-md">
|
|
12
|
-
<div class="col-md-3">
|
|
13
|
-
<div class="ibox">
|
|
14
|
-
<div class="ibox-title">
|
|
15
|
-
<h5>Загальна інформація</h5>
|
|
16
|
-
<div class="ibox-tools">
|
|
17
|
-
<a edit="admin.users/{{@root.uid}}" form="form-users" class="btn btn-primary btn-sm">Редагувати</a>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="ibox-content">
|
|
21
|
-
<table class="table">
|
|
22
|
-
<tbody>
|
|
23
|
-
<tr>
|
|
24
|
-
<td><b>ПІБ</b></td>
|
|
25
|
-
<td>{{sur_name}} {{user_name}} {{father_name}}</td>
|
|
26
|
-
</tr>
|
|
27
|
-
<tr>
|
|
28
|
-
<td><b>Електронна пошта</b></td>
|
|
29
|
-
<td>{{email}}</td>
|
|
30
|
-
</tr>
|
|
31
|
-
<tr>
|
|
32
|
-
<td><b>Телефон</b></td>
|
|
33
|
-
<td>{{phone}}</td>
|
|
34
|
-
</tr>
|
|
35
|
-
<tr>
|
|
36
|
-
<td><b>РНОКПП</b></td>
|
|
37
|
-
<td>{{user_rnokpp}}</td>
|
|
38
|
-
</tr>
|
|
39
|
-
<tr>
|
|
40
|
-
<td><b>ЄДРПОУ</b></td>
|
|
41
|
-
<td>{{organ_edrpou}}</td>
|
|
42
|
-
</tr>
|
|
43
|
-
|
|
44
|
-
</tbody>
|
|
45
|
-
</table>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="ibox">
|
|
49
|
-
<div class="ibox-title d-flex align-items-center justify-content-between">
|
|
50
|
-
<h3>Перелік логів</h3>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="ibox-content">
|
|
53
|
-
{{#contentList table="log.table_log" fields="*,_table as table_name" query="uid='{{uid}}'" order="cdate
|
|
54
|
-
desc" sql1=1}}
|
|
55
|
-
{{#if rows}}
|
|
56
|
-
<table class="table table-striped">
|
|
57
|
-
<thead>
|
|
58
|
-
<th width="25%">Дата</th>
|
|
59
|
-
<th width="25%">Тип</th>
|
|
60
|
-
<th width="50%">Таблиця</th>
|
|
61
|
-
</thead>
|
|
62
|
-
<tbody>
|
|
63
|
-
{{#each rows}}
|
|
64
|
-
<tr>
|
|
65
|
-
<td>{{formatDate cdate format="dd.MM.yy hh:mm"}}</td>
|
|
66
|
-
<td>{{_type}}</td>
|
|
67
|
-
<td>{{{table_name}}}</td>
|
|
68
|
-
</tr>
|
|
69
|
-
{{/each}}
|
|
70
|
-
</tbody>
|
|
71
|
-
</table>
|
|
72
|
-
{{^}}
|
|
73
|
-
{{mls ua='Поки що не зафіксовано активності'}}
|
|
74
|
-
{{/if}}
|
|
75
|
-
{{/contentList}}
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
|
|
81
|
-
<div class="content m-t-md">
|
|
82
|
-
<div class="col-md-9">
|
|
83
|
-
<div class="ibox">
|
|
84
|
-
<div class="ibox-title">
|
|
85
|
-
<h3>Перелік груп</h3>
|
|
86
|
-
<div class="ibox-tools">
|
|
87
|
-
<a add="admin.user_group_rel" form="admin.user_group_rel_2.form" reload=1
|
|
88
|
-
obj="user_uid={{uid}}#access_granted={{@root.user.uid}}" class="btn btn-primary btn-sm"><i
|
|
89
|
-
class="fa fa-pensil"></i>Додати групу</a>
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
92
|
-
<div class="ibox-content">
|
|
93
|
-
|
|
94
|
-
{{#contentList table="admin.user_group_rel" limit=500 query="user_uid='{{uid}}'" order="cdate desc"
|
|
95
|
-
sql1=1}}
|
|
96
|
-
<table class="table table-bordered">
|
|
97
|
-
<thead>
|
|
98
|
-
<th>Група</th>
|
|
99
|
-
<th>Права</th>
|
|
100
|
-
<th>Користувач який надав доступ</th>
|
|
101
|
-
<th>Час долучення</th>
|
|
102
|
-
<th>Закінчення доступу</th>
|
|
103
|
-
<th>Дії</th>
|
|
104
|
-
</thead>
|
|
105
|
-
{{#each rows}}
|
|
106
|
-
<tbody>
|
|
107
|
-
<td><a href="/management.user_group/mode=card/view={{user_group_id}}">{{select user_group_id
|
|
108
|
-
data="user_group"}}</a>
|
|
109
|
-
</td>
|
|
110
|
-
<td>{{select user_access data="user_access" return="Згідно налаштувань інтерфейсів"}}
|
|
111
|
-
</td>
|
|
112
|
-
<td>{{select access_granted data="user_id"}}</td>
|
|
113
|
-
<td>{{formatDate cdate format="dd.mm.yy/hh:sec"}}</td>
|
|
114
|
-
<td>{{formatDate expiration}}</td>
|
|
115
|
-
<td>
|
|
116
|
-
<a class="btn btn-default btn-xs" edit="admin.user_group_rel/{{ugr_id}}" reload=1
|
|
117
|
-
title="Редагувати" form='admin.user_group_rel_3.form'>
|
|
118
|
-
<i class="fa fa-pencil"></i></a>
|
|
119
|
-
<a class="btn btn-default btn-xs" reload=1 del="admin.user_group_rel/{{ugr_id}}"
|
|
120
|
-
title="Видалити"><i class="fa fa-trash text-danger" aria-hidden="true"></i></a>
|
|
121
|
-
</td>
|
|
122
|
-
</tbody>
|
|
123
|
-
{{/each}}
|
|
124
|
-
</table>
|
|
125
|
-
{{/contentList}}
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
|
|
130
|
-
</div>
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
{{#unless opt.simple}} <div class="el-card__header">
|
|
2
|
-
<div class="row wrapper white-bg ">
|
|
3
|
-
<div class="col-xs-8 card_title_row">
|
|
4
|
-
<h2 class="card_title">
|
|
5
|
-
<span class='pull-left'> {{{coalesce (lookup grid.title_full @root._lang) (lookup grid @root._lang)}}}
|
|
6
|
-
</span>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
</h2>
|
|
10
|
-
|
|
11
|
-
<ol class="breadcrumb pull-left">
|
|
12
|
-
<li class='system'><a _href="/">Home</a></li>
|
|
13
|
-
{{#unless @root.opt.breadcrumb}}
|
|
14
|
-
|
|
15
|
-
<li class='system'><a filter-user='{{#if grid.key_parent_id}}filter=#{{/if}}mode={{{coalesce opt.mode 'table'}}}#view='tag='{{{_code}}}'
|
|
16
|
-
title="{{{coalesce (lookup grid.title_full @root._lang) grid.title_full}}}">{{{coalesce (lookup
|
|
17
|
-
grid.title_full @root._lang) (lookup grid @root._lang) }}}</a></li>
|
|
18
|
-
|
|
19
|
-
{{/unless}}
|
|
20
|
-
</ol>
|
|
21
|
-
|
|
22
|
-
</div>
|
|
23
|
-
<div class="col-xs-4 title-action-row">
|
|
24
|
-
|
|
25
|
-
<div class="title-action">
|
|
26
|
-
{{#if grid.help}}
|
|
27
|
-
<a class="btn btn-white btn-sm m-r-md" target="_blank" href='{{grid.help}}'><i class="fa fa-question"></i></a>
|
|
28
|
-
{{/if}}
|
|
29
|
-
{{#if @root.setting.core.help_btn}}
|
|
30
|
-
<button type='button' class='btn btn-primary' vs-load="help"><i class="fa fa-question"></i></button>
|
|
31
|
-
{{/if}}
|
|
32
|
-
{{#ifCond 'stat' 'in' grid.table_mode}}
|
|
33
|
-
<a class="btn btn-white" tag='{{{_code}}}' filter-user='mode=stat'><i class="fa fa-bar-chart"></i></a>
|
|
34
|
-
{{/ifCond}}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<a class="btn btn-white returnlist" tag='{{{_code}}}' filter-user='mode=table#view='>
|
|
38
|
-
{{{mls 'return_back' ua='Повернутись до реєстру' ru= 'Вернуться в реестр' en='Return to list' de='Zurück zur Liste'}}}
|
|
39
|
-
</a>
|
|
40
|
-
|
|
41
|
-
<!--a class="btn btn-white" tag='{{{_code}}}' filter-user='mode=card'><i class="fa fa-address-card-o"></i></a-->
|
|
42
|
-
|
|
43
|
-
{{{grid.add_actions}}}
|
|
44
|
-
{{#if grid.add_form}}
|
|
45
|
-
<a add="{{{coalesce grid.table model}}}" tag="{{{_code}}}" form="{{{grid.add_form}}}" modal1=1
|
|
46
|
-
class="btn btn-primary btn-sm" title="{{{mls 'add'}}}"> {{{mls 'add' ua='Додати'
|
|
47
|
-
en='Add' ru='Добавить' de='Hinzufügen'}}}</a>
|
|
48
|
-
|
|
49
|
-
{{/if}}
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
{{/unless}}
|
|
57
|
-
|
|
58
|
-
<div class="el-card__body">
|
|
59
|
-
<!---spinner -->
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
{{{set '_q' opt.query_text}}}
|
|
63
|
-
|
|
64
|
-
<div class='row table-standart__content'>
|
|
65
|
-
<div class='{{#ifCond ' filter' 'in' panel}}{{#if
|
|
66
|
-
@root.grid.filter_list.length}}col-md-9{{^}}col-md-12{{/if}}{{^}}col-md-12{{/ifCond}} content'>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
{{{contentList timing=opt.timing empty=opt.empty add_button_view=opt.add_button_view
|
|
70
|
-
search_column=(coalesce opt.search_column grid.search_column)
|
|
71
|
-
name=opt.name
|
|
72
|
-
breadcrumb=opt.breadcrumb
|
|
73
|
-
obj=opt.obj
|
|
74
|
-
nocache=opt.nocache
|
|
75
|
-
table_mode=grid.table_mode
|
|
76
|
-
simple=opt.simple
|
|
77
|
-
olap=opt.olap
|
|
78
|
-
agg=grid.agg_column
|
|
79
|
-
sql_count=opt.sql_count
|
|
80
|
-
limit=opt.limit
|
|
81
|
-
order=(coalesce opt.order grid.orderby)
|
|
82
|
-
hash=(coalesce opt.hash req.query.data req.query)
|
|
83
|
-
tag=(coalesce hash.tag opt.tag _code)
|
|
84
|
-
table=(coalesce opt.table opt.name model)
|
|
85
|
-
pk=grid.key
|
|
86
|
-
count=1
|
|
87
|
-
mode=opt.mode
|
|
88
|
-
model=grid.table model1=grid.model
|
|
89
|
-
group_list=opt.group_list
|
|
90
|
-
card=opt.card
|
|
91
|
-
filter_list=grid.filter_list
|
|
92
|
-
data=opt.data _name=(coalesce @root._name opt.name) _col=@root._col colModel=grid.colModel
|
|
93
|
-
col_def=grid.col_def action1=@root.grid.action
|
|
94
|
-
q=(coalesce @root._q grid.query '1=1')
|
|
95
|
-
query="{{{_hb_sync template=(coalesce @root._q grid.query opt.q '1=1')}}} {{#ifCond 'card' 'in'
|
|
96
|
-
hash.mode}} and {{#if @root.hash.view}} {{{coalesce grid.key opt.pk}}} = '{{{escapeQuotes
|
|
97
|
-
@root.hash.view}}}'{{^}}true{{/if}}{{/ifCond}} "
|
|
98
|
-
sql=(coalesce opt.sqlTable req.query.sqlTable) sqlFilter=opt.sqlFilter
|
|
99
|
-
title_column=grid.title_column
|
|
100
|
-
parent_key=grid.key_parent_id
|
|
101
|
-
|
|
102
|
-
add_form=grid.add_form
|
|
103
|
-
panel=panel
|
|
104
|
-
html_panel_right=grid.html_panel_right
|
|
105
|
-
order_list=grid.order_list
|
|
106
|
-
template_all="table-standard-pt-inline"
|
|
107
|
-
}}}
|
|
108
|
-
</div>
|
|
109
|
-
<div class='col-md-3 filter table-standart__content--filter' style='border-left:1px solid #f3f3f3'>
|
|
110
|
-
|
|
111
|
-
{{#ifCond 'filter' 'in' panel}}
|
|
112
|
-
{{#if grid.filter_list.length}}
|
|
113
|
-
{{#ifCond @root.req.query.vue '==' '0'}}
|
|
114
|
-
{{{filterList tag=(coalesce hash.tag opt.tag _code) filter=grid.filter_list table=(coalesce opt.table
|
|
115
|
-
opt.name) template="core.filter_simple.pt" sql=@root.opt.sqlFilter query=(coalesce @root._q grid.query
|
|
116
|
-
opt.q opt.query '1=1')}}}
|
|
117
|
-
{{^}}
|
|
118
|
-
|
|
119
|
-
{{{filterListVue tag=(coalesce hash.tag opt.tag _code) tags=false filter=grid.filter_list
|
|
120
|
-
table=(coalesce opt.table
|
|
121
|
-
opt.name opt.model) template="core.filter_simple.pt" sql=@root.opt.sqlFilter query=(coalesce @root._q
|
|
122
|
-
grid.query opt.q opt.query '1=1')}}}
|
|
123
|
-
{{/ifCond}}
|
|
124
|
-
{{/if}}
|
|
125
|
-
{{/ifCond}}
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
<style>
|
|
130
|
-
.breadcrumb>li:last-child {
|
|
131
|
-
font-weight: 600;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.tooltip-inner {
|
|
135
|
-
max-width: 400px;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
td.filter:hover {
|
|
139
|
-
background: lightgreen;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.checkbox input[type="checkbox"].minus:checked+label::after,
|
|
143
|
-
.checkbox input[type="radio"].minus:checked+label::after {
|
|
144
|
-
font-family: "FontAwesome";
|
|
145
|
-
content: "\f05e";
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.ellipsis {
|
|
149
|
-
overflow: hidden;
|
|
150
|
-
white-space: nowrap;
|
|
151
|
-
text-overflow: ellipsis;
|
|
152
|
-
word-break: break-all;
|
|
153
|
-
word-wrap: break-word;
|
|
154
|
-
}
|
|
155
|
-
.doubleScroll-scroll-wrapper{
|
|
156
|
-
overflow-x:auto !important;
|
|
157
|
-
}
|
|
158
|
-
h2.card_title{
|
|
159
|
-
font-size:24px;
|
|
160
|
-
font-weight: 100;
|
|
161
|
-
margin-bottom: 10px;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.btn.btn-white.returnlist {
|
|
165
|
-
text-wrap: wrap;
|
|
166
|
-
text-align: start;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
@media(max-width: 500px) {
|
|
170
|
-
& {
|
|
171
|
-
margin-bottom: 5px;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
@media(max-width: 500px) {
|
|
177
|
-
.card_title_row {
|
|
178
|
-
width: 55%;
|
|
179
|
-
}
|
|
180
|
-
.title-action-row {
|
|
181
|
-
width: 45%;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
@media (max-width: 480px) {
|
|
186
|
-
.row.table-standart__content {
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
.table-standart__content {
|
|
190
|
-
display: flex;
|
|
191
|
-
flex-direction: column;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.table-standart__content {
|
|
196
|
-
.pull-right {
|
|
197
|
-
a.btn.btn-link {
|
|
198
|
-
padding: 0;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
</style>
|