isobit-ui 0.0.457 → 0.0.460
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/index.js +13 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.0.
|
|
2
|
+
* isobit-ui v0.0.460
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1447,7 +1447,9 @@ var script$d = {
|
|
|
1447
1447
|
emptyMessage: {
|
|
1448
1448
|
"default": 'No existen registros'
|
|
1449
1449
|
},
|
|
1450
|
-
rowKey:
|
|
1450
|
+
rowKey: {
|
|
1451
|
+
"default": 'id'
|
|
1452
|
+
},
|
|
1451
1453
|
rowStyleClass: String,
|
|
1452
1454
|
pagination: null,
|
|
1453
1455
|
selectable: {
|
|
@@ -2049,10 +2051,10 @@ var script$d = {
|
|
|
2049
2051
|
me.pages = Math.ceil(r.data.size / pagination);
|
|
2050
2052
|
if (me.page > me.pages) me.page = 1;
|
|
2051
2053
|
me.size = r.data.size;
|
|
2052
|
-
}
|
|
2054
|
+
} //console.log('======');
|
|
2055
|
+
//console.log(me.data);
|
|
2056
|
+
|
|
2053
2057
|
|
|
2054
|
-
console.log('======');
|
|
2055
|
-
console.log(me.data);
|
|
2056
2058
|
me.loadStore();
|
|
2057
2059
|
me.$emit('loaded', {
|
|
2058
2060
|
target: me
|
|
@@ -2067,9 +2069,9 @@ var script$d = {
|
|
|
2067
2069
|
me.data = [];
|
|
2068
2070
|
me.loadStore().then(function (result) {
|
|
2069
2071
|
console.log(me.data = result);
|
|
2070
|
-
});
|
|
2071
|
-
console.log(
|
|
2072
|
-
|
|
2072
|
+
}); //console.log('me.data');
|
|
2073
|
+
//console.log(me.data);
|
|
2074
|
+
|
|
2073
2075
|
me.$emit('row-select', {
|
|
2074
2076
|
target: me
|
|
2075
2077
|
});
|
|
@@ -5941,7 +5943,8 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
5941
5943
|
var id = dat[key];
|
|
5942
5944
|
me.MsgBox('Esta seguro que desea eliminar el registro seleccionado?', function (r) {
|
|
5943
5945
|
if (r == 0) {
|
|
5944
|
-
|
|
5946
|
+
var src = t.src.replace('/0/0', '').replace('/api', '');
|
|
5947
|
+
axios$1["delete"](src + '/' + id).then(function () {
|
|
5945
5948
|
me.MsgBox('Registro eliminado');
|
|
5946
5949
|
var id = dat.id;
|
|
5947
5950
|
|
|
@@ -6320,10 +6323,6 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6320
6323
|
item.onsuccess = function () {
|
|
6321
6324
|
o0["synchronized"] = 1;
|
|
6322
6325
|
o["synchronized"] = 1;
|
|
6323
|
-
console.log(o);
|
|
6324
|
-
console.log(o);
|
|
6325
|
-
console.log('result');
|
|
6326
|
-
console.log(result);
|
|
6327
6326
|
var re;
|
|
6328
6327
|
|
|
6329
6328
|
if (item.result) {
|
|
@@ -6333,7 +6332,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6333
6332
|
}
|
|
6334
6333
|
|
|
6335
6334
|
re.onerror = function (e) {
|
|
6336
|
-
console.
|
|
6335
|
+
console.error(e);
|
|
6337
6336
|
};
|
|
6338
6337
|
|
|
6339
6338
|
me.$emit('sync', data, o);
|