@opengis/admin 0.2.97 → 0.2.98
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.
@@ -11,6 +11,10 @@
|
|
11
11
|
"del"
|
12
12
|
],
|
13
13
|
"meta": {
|
14
|
+
"status": "user_type",
|
15
|
+
"cls": {
|
16
|
+
"user_type": "users.user_type"
|
17
|
+
},
|
14
18
|
"title": "user_name",
|
15
19
|
"search": "sur_name,user_name,uid,father_name,email,phone,login"
|
16
20
|
},
|
@@ -44,6 +48,7 @@
|
|
44
48
|
"ua": "Права",
|
45
49
|
"name": "user_type",
|
46
50
|
"data": "users.user_type",
|
51
|
+
"meta": "status",
|
47
52
|
"format": "select"
|
48
53
|
},
|
49
54
|
{
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opengis/admin",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.98",
|
4
4
|
"description": "This project Softpro Admin",
|
5
5
|
"main": "dist/admin.js",
|
6
6
|
"type": "module",
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"@fullcalendar/vue3": "^6.1.15",
|
49
49
|
"@opengis/fastify-auth": "^1.0.66",
|
50
50
|
"@opengis/fastify-file": "^1.0.40",
|
51
|
-
"@opengis/fastify-table": "^1.1
|
51
|
+
"@opengis/fastify-table": "^1.2.1",
|
52
52
|
"@opengis/v3-core": "^0.3.33",
|
53
53
|
"@opengis/v3-filter": "^0.0.62",
|
54
54
|
"@tabler/icons-vue": "^3.28.1",
|
@@ -13,10 +13,14 @@ export default async function tableFilter(req) {
|
|
13
13
|
const loadTable = await getTemplate('table', params.name);
|
14
14
|
|
15
15
|
if (!loadTable) {
|
16
|
-
return { message: '
|
16
|
+
return { message: 'template not found', status: 404 };
|
17
17
|
}
|
18
18
|
|
19
|
-
const { columns = [] } = await getMeta({ table: loadTable.table });
|
19
|
+
const { pk, view, columns = [] } = await getMeta({ pg, table: loadTable.table });
|
20
|
+
|
21
|
+
if (!pk && !view) {
|
22
|
+
return { message: 'table not found', status: 404 };
|
23
|
+
}
|
20
24
|
|
21
25
|
const filters = loadTable?.filter_list || loadTable?.filters || loadTable?.filterList || [];
|
22
26
|
filters.forEach(el => {
|