@neutron.co.id/operasional-modules 1.4.5 → 1.4.6
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.
|
@@ -23,7 +23,7 @@ export const StaffCollectionOperasionalView = ResourceUtil.createCollection({
|
|
|
23
23
|
query: () => {
|
|
24
24
|
const permit = usePermit();
|
|
25
25
|
const { staff } = useOperasional();
|
|
26
|
-
if (permit.
|
|
26
|
+
if (permit.isAny(["neu:cabangOperasional", "neu:sdmCabang"])) {
|
|
27
27
|
return Query.define({
|
|
28
28
|
filter: {
|
|
29
29
|
handle: "branchIds",
|
|
@@ -43,7 +43,21 @@ export const TaskCollectionPlanView = ResourceUtil.createCollection({
|
|
|
43
43
|
"estimatedHourCommunicationAssignment",
|
|
44
44
|
"estimatedHourCognitiveAssignment",
|
|
45
45
|
"estimatedHourCreativeAssignment"
|
|
46
|
-
]
|
|
46
|
+
],
|
|
47
|
+
query: () => {
|
|
48
|
+
const permit = usePermit();
|
|
49
|
+
const { staff } = useOperasional();
|
|
50
|
+
if (permit.isAny(["neu:cabangOperasional", "neu:managerCabang"])) {
|
|
51
|
+
return Query.define({
|
|
52
|
+
filter: {
|
|
53
|
+
handle: "branchIds",
|
|
54
|
+
operator: "in",
|
|
55
|
+
value: staff.value?.branchIds
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
} else
|
|
59
|
+
return Query.define({});
|
|
60
|
+
}
|
|
47
61
|
});
|
|
48
62
|
export const TaskSinglePlanView = ResourceUtil.createSingle({
|
|
49
63
|
name: "plan",
|
|
@@ -82,7 +96,7 @@ export const TaskCollectionWorkView = ResourceUtil.createCollection({
|
|
|
82
96
|
query: () => {
|
|
83
97
|
const permit = usePermit();
|
|
84
98
|
const { staff } = useOperasional();
|
|
85
|
-
if (permit.
|
|
99
|
+
if (permit.isAny(["neu:cabangOperasional", "neu:managerCabang"])) {
|
|
86
100
|
return Query.define({
|
|
87
101
|
filter: {
|
|
88
102
|
handle: "branchIds",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-modules",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6",
|
|
4
4
|
"description": "Modules of Neutron.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@neon.id/context": "0.40.0",
|
|
44
44
|
"@neon.id/office": "0.26.0",
|
|
45
|
-
"@neutron.co.id/operasional-interfaces": "1.4.
|
|
45
|
+
"@neutron.co.id/operasional-interfaces": "1.4.5",
|
|
46
46
|
"@neutron.co.id/personalia-models": "1.4.1",
|
|
47
47
|
"@nuxt/kit": "3.3.1"
|
|
48
48
|
},
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@neon.id/context": "^0.40.0",
|
|
66
66
|
"@neon.id/office": "^0.26.0",
|
|
67
|
-
"@neutron.co.id/operasional-interfaces": "^1.4.
|
|
67
|
+
"@neutron.co.id/operasional-interfaces": "^1.4.5",
|
|
68
68
|
"@neutron.co.id/personalia-models": "^1.4.1",
|
|
69
69
|
"@nuxt/kit": "^3.3.1"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"build":
|
|
74
|
+
"build": 41
|
|
75
75
|
}
|