isobit-ui 0.0.443 → 0.0.446
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 +9 -9
- 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.446
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -5865,12 +5865,12 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
5865
5865
|
instance.get(_$1.currentPath = (action + '/create').replace(/([^:]\/)\/+/g, "$1") + '?modal').then(_$1.open)["catch"](me.error);
|
|
5866
5866
|
}
|
|
5867
5867
|
},
|
|
5868
|
-
edit: function edit() {
|
|
5868
|
+
edit: function edit(e) {
|
|
5869
5869
|
var me = this;
|
|
5870
5870
|
var f = me.$children[0];
|
|
5871
5871
|
var action = f.action;
|
|
5872
5872
|
if (!action) action = window.location.pathname;
|
|
5873
|
-
var t = me.$children[0].$children[0];
|
|
5873
|
+
var t = e.$vnode ? e : me.$children[0].$children[0];
|
|
5874
5874
|
var selected = me.getSelected()[0];
|
|
5875
5875
|
var id = selected[t.rowKey];
|
|
5876
5876
|
if (selected.tmpId) id = -selected.tmpId;
|
|
@@ -6141,11 +6141,11 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6141
6141
|
//se recupra
|
|
6142
6142
|
var item = t.data[sel[i]];
|
|
6143
6143
|
|
|
6144
|
-
if (item.tmpId && !item
|
|
6144
|
+
if (item.tmpId && !item["synchronized"]) {
|
|
6145
6145
|
for (var j = 0; j < dats.length; j++) {
|
|
6146
6146
|
if (dats[j].tmpId == item.tmpId) {
|
|
6147
6147
|
var o = JSON.clone(dats[j]);
|
|
6148
|
-
delete o
|
|
6148
|
+
delete o["synchronized"];
|
|
6149
6149
|
sel3.push(o);
|
|
6150
6150
|
sel2.push(j);
|
|
6151
6151
|
}
|
|
@@ -6176,7 +6176,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6176
6176
|
|
|
6177
6177
|
if (d[k].id) dats[j].id = d[k].id; //aqui deberia revisarsee los registro anidados
|
|
6178
6178
|
|
|
6179
|
-
dats[j]
|
|
6179
|
+
dats[j]["synchronized"] = 1;
|
|
6180
6180
|
me.$emit('sync', d[k], dats[j]);
|
|
6181
6181
|
}
|
|
6182
6182
|
}
|
|
@@ -6184,7 +6184,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6184
6184
|
|
|
6185
6185
|
me.setStoredList(t.storage, dats); //dat.id=r.data.id;
|
|
6186
6186
|
//t.$emit('synchronized',{data:dat,result:r.data,index:kk,count:tr});
|
|
6187
|
-
//dat.
|
|
6187
|
+
//dat.synchronized=1;
|
|
6188
6188
|
//dats[kk]=dat;
|
|
6189
6189
|
//sendf(dats,k0+1,te+1);
|
|
6190
6190
|
|
|
@@ -6249,7 +6249,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6249
6249
|
if (o.id) {
|
|
6250
6250
|
for (var k = 0; k < storedList.length; k++) {
|
|
6251
6251
|
if (storedList[k].tmpId == o.tmpId) {
|
|
6252
|
-
delete o
|
|
6252
|
+
delete o["synchronized"];
|
|
6253
6253
|
storedList[k] = o;
|
|
6254
6254
|
}
|
|
6255
6255
|
}
|
|
@@ -6315,7 +6315,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6315
6315
|
o0.id = o.id;
|
|
6316
6316
|
}
|
|
6317
6317
|
|
|
6318
|
-
o0
|
|
6318
|
+
o0["synchronized"] = 1;
|
|
6319
6319
|
console.log(o0);
|
|
6320
6320
|
|
|
6321
6321
|
item.onsuccess = function () {
|