@banch0u/core-project-test-repository 1.12.8 → 2.0.0
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.
|
@@ -33,22 +33,19 @@ export var entryData = [{
|
|
|
33
33
|
}, {
|
|
34
34
|
id: 5,
|
|
35
35
|
value: "Arxiv",
|
|
36
|
-
pathname: "".concat(rootUrl, "/archive"),
|
|
36
|
+
pathname: "".concat(rootUrl, "/archive/search"),
|
|
37
37
|
icon: /*#__PURE__*/React.createElement(ArchiveIcon, null),
|
|
38
|
-
scopes: "archive"
|
|
39
|
-
construction: true
|
|
38
|
+
scopes: "archive"
|
|
40
39
|
}, {
|
|
41
40
|
id: 6,
|
|
42
41
|
value: "Nəqliyyat",
|
|
43
42
|
pathname: "".concat(rootUrl, "/transport/personnel"),
|
|
44
43
|
icon: /*#__PURE__*/React.createElement(TransportIcon, null),
|
|
45
|
-
scopes: "transport"
|
|
46
|
-
construction: true
|
|
44
|
+
scopes: "transport"
|
|
47
45
|
}, {
|
|
48
46
|
id: 7,
|
|
49
47
|
value: "Laboratoriya",
|
|
50
|
-
pathname: "".concat(rootUrl, "/lab"),
|
|
48
|
+
pathname: "".concat(rootUrl, "/lab/flasks"),
|
|
51
49
|
icon: /*#__PURE__*/React.createElement(LabIcon, null),
|
|
52
|
-
scopes: "lab"
|
|
53
|
-
construction: true
|
|
50
|
+
scopes: "lab"
|
|
54
51
|
}];
|
|
@@ -26,9 +26,7 @@ import Button from "../../../components/Button";
|
|
|
26
26
|
import Loading from "../../../components/Loading";
|
|
27
27
|
import Table from "../../../components/Table";
|
|
28
28
|
import Filter from "../../../components/Filter";
|
|
29
|
-
import { addEmployeeConfigurations,
|
|
30
|
-
// addEmployeeConfigurations,
|
|
31
|
-
deleteEmployeeConfigurations, editEmployeeConfigurations, employeeConfigurationsVisibility, getEmployeeConfigurations, getGeneralStructuresAll, getPositionsAll } from "../../../store/slices/questionnaire";
|
|
29
|
+
import { addEmployeeConfigurations, deleteEmployeeConfigurations, editEmployeeConfigurations, employeeConfigurationsVisibility, getEmployeeConfigurations, getGeneralStructuresAll, getPositionsAll } from "../../../store/slices/questionnaire";
|
|
32
30
|
import { getTransportEmployeesAll } from "../../../store/slices/employees";
|
|
33
31
|
import Select from "../../../components/Select";
|
|
34
32
|
var Option = AntdSelect.Option;
|
|
@@ -49,7 +47,7 @@ var QuestionnairesEmployeeConfigurations = function QuestionnairesEmployeeConfig
|
|
|
49
47
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
50
48
|
page = _useState6[0],
|
|
51
49
|
setPage = _useState6[1];
|
|
52
|
-
var _useState7 = useState(Cookies.get("pagination-size-questionnaire-
|
|
50
|
+
var _useState7 = useState(Cookies.get("pagination-size-questionnaire-employee-configurations") ? JSON.parse(Cookies.get("pagination-size-questionnaire-employee-configurations")) : 20),
|
|
53
51
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
54
52
|
size = _useState8[0],
|
|
55
53
|
setSize = _useState8[1];
|
|
@@ -326,30 +324,11 @@ var QuestionnairesEmployeeConfigurations = function QuestionnairesEmployeeConfig
|
|
|
326
324
|
dispatch(getGeneralStructuresAll());
|
|
327
325
|
}, [dispatch]);
|
|
328
326
|
var updateSize = function updateSize(newSize) {
|
|
329
|
-
setSize(newSize);
|
|
330
|
-
Cookies.set("pagination-size-questionnaire-
|
|
327
|
+
setSize(newSize);
|
|
328
|
+
Cookies.set("pagination-size-questionnaire-employee-configurations", JSON.stringify(newSize), {
|
|
331
329
|
expires: 7
|
|
332
|
-
});
|
|
330
|
+
});
|
|
333
331
|
};
|
|
334
|
-
// const processDataRecursively = (items) => {
|
|
335
|
-
// return items?.map((item) => ({
|
|
336
|
-
// title: item.name,
|
|
337
|
-
// key: item.id,
|
|
338
|
-
// value: item.id,
|
|
339
|
-
// children: item.children ? processDataRecursively(item.children) : [],
|
|
340
|
-
// }));
|
|
341
|
-
// };
|
|
342
|
-
// const uniqueData = useMemo(() => {
|
|
343
|
-
// return allGeneralStructures?.reduce((acc, current) => {
|
|
344
|
-
// const x = acc.find((item) => item.id === current.id);
|
|
345
|
-
// if (!x) {
|
|
346
|
-
// acc.push(current);
|
|
347
|
-
// }
|
|
348
|
-
// return acc;
|
|
349
|
-
// }, []);
|
|
350
|
-
// }, [allGeneralStructures]);
|
|
351
|
-
// const generalStructureOption = processDataRecursively(uniqueData);
|
|
352
|
-
|
|
353
332
|
return /*#__PURE__*/React.createElement(React.Fragment, null, loading ? /*#__PURE__*/React.createElement(Loading, null) : null, /*#__PURE__*/React.createElement(Layout, {
|
|
354
333
|
className: style.layout
|
|
355
334
|
}, /*#__PURE__*/React.createElement(Content, {
|
|
@@ -412,8 +391,7 @@ var QuestionnairesEmployeeConfigurations = function QuestionnairesEmployeeConfig
|
|
|
412
391
|
name: "EmployeeIds",
|
|
413
392
|
label: "Heyyət üzvü"
|
|
414
393
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
415
|
-
mode: "multiple"
|
|
416
|
-
labelInValue: true
|
|
394
|
+
mode: "multiple"
|
|
417
395
|
}, transportEmployeesAll === null || transportEmployeesAll === void 0 ? void 0 : transportEmployeesAll.map(function (item) {
|
|
418
396
|
return /*#__PURE__*/React.createElement(Option, {
|
|
419
397
|
key: item.id,
|