eservices-core 1.0.328 → 1.0.331
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/classes/Table.d.ts +1 -0
- package/dist/index.js +5 -2
- package/package.json +6 -5
package/dist/classes/Table.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export default class Table extends List {
|
|
|
51
51
|
selectedArray: number[];
|
|
52
52
|
VueComponentForm?: any;
|
|
53
53
|
name?: string;
|
|
54
|
+
modifierDataCreate: any;
|
|
54
55
|
constructor(props: TableParams);
|
|
55
56
|
static getCell(cellConfig: ListCell, rowValues: ListRowValues, cellName: string | null, cellValue: Values, table: Table): VNode[];
|
|
56
57
|
static getRow(config: ListCell[], rowValues: ListRowValues, table: Table): VNode;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* eservices-core v1.0.
|
|
2
|
+
* eservices-core v1.0.331
|
|
3
3
|
* (c) 2022 ESERVICES
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -3395,6 +3395,9 @@ class Table extends List {
|
|
|
3395
3395
|
* */
|
|
3396
3396
|
this.activeFormIndex = vue.ref(null);
|
|
3397
3397
|
this.selectedArray = vue.reactive([]);
|
|
3398
|
+
this.modifierDataCreate = (data) => {
|
|
3399
|
+
return data;
|
|
3400
|
+
};
|
|
3398
3401
|
/**
|
|
3399
3402
|
* ПРИ ИЗМЕНЕНИИ МАССИВА - МЫ ДОБАВЛЯЕМ К КАЖДОМУ ОБЪЕКТУ СВОЙСВО:
|
|
3400
3403
|
* УНИКАЛЬНЫЙ ИДЕНТИФИКАТОР ТАБЛИЦЫ(ЕСЛИ ЕГО ЕЩЁ В НЁМ НЕТ)
|
|
@@ -3432,7 +3435,7 @@ class Table extends List {
|
|
|
3432
3435
|
let v = copyArrayNew_1_1.value;
|
|
3433
3436
|
let data = createCopy(v);
|
|
3434
3437
|
delete data[Table.INDEX_FIELD_NAME];
|
|
3435
|
-
yield dataService.create(this.name, data);
|
|
3438
|
+
yield dataService.create(this.name, this.modifierDataCreate(data));
|
|
3436
3439
|
// ПОСЛЕ УСПЕШНОГО ДОБАВЛЕНИЯ ЭЛЕМЕНТА В БД
|
|
3437
3440
|
// - УДАЛЯЕМ ИЗ ИЗМЕНЕНИЙ
|
|
3438
3441
|
this.changes.new.splice(this.changes.new.findIndex(ptr => ptr[Table.INDEX_FIELD_NAME] === v[Table.INDEX_FIELD_NAME]), 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eservices-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.331",
|
|
4
4
|
"description": "----",
|
|
5
5
|
"author": "",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
"rollup-plugin-typescript2": "^0.31.1",
|
|
23
23
|
"socket.io": "^4.4.1",
|
|
24
24
|
"socket.io-client": "^4.4.1",
|
|
25
|
-
"tslib": "^2.3.1"
|
|
25
|
+
"tslib": "^2.3.1",
|
|
26
|
+
"vue-router": "^4.0.0",
|
|
27
|
+
"jenesius-vue-form": "^2.0.22"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|
|
28
30
|
"@babel/preset-env": "^7.16.5",
|
|
@@ -52,9 +54,8 @@
|
|
|
52
54
|
"vue-jest": "^5.0.0-alpha.10"
|
|
53
55
|
},
|
|
54
56
|
"peerDependencies": {
|
|
55
|
-
"vue": "^3.0.0"
|
|
56
|
-
|
|
57
|
-
"jenesius-vue-form": "2.0.19"
|
|
57
|
+
"vue": "^3.0.0"
|
|
58
|
+
|
|
58
59
|
},
|
|
59
60
|
"license": "ISC",
|
|
60
61
|
"repository": {
|