mooho-base-admin-plus 0.4.61 → 0.4.63
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/package.json
CHANGED
|
@@ -1063,6 +1063,8 @@
|
|
|
1063
1063
|
this.staticData = this.copy(staticData);
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
|
+
console.log('bbb', this.staticData);
|
|
1067
|
+
|
|
1066
1068
|
if (this.static) {
|
|
1067
1069
|
// 筛选和排序
|
|
1068
1070
|
let data = this.getFilterResult();
|
|
@@ -2353,22 +2355,30 @@
|
|
|
2353
2355
|
},
|
|
2354
2356
|
// 上移
|
|
2355
2357
|
up(row, index) {
|
|
2356
|
-
let data = this
|
|
2358
|
+
let data = this.staticData;
|
|
2357
2359
|
if (index > 0) {
|
|
2358
2360
|
data.splice(index, 1);
|
|
2359
2361
|
data.splice(index - 1, 0, row);
|
|
2360
2362
|
|
|
2361
|
-
|
|
2363
|
+
for (let item of data) {
|
|
2364
|
+
delete item.id;
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
this.loadData(data);
|
|
2362
2368
|
}
|
|
2363
2369
|
},
|
|
2364
2370
|
// 下移
|
|
2365
2371
|
down(row, index) {
|
|
2366
|
-
let data = this
|
|
2372
|
+
let data = this.staticData;
|
|
2367
2373
|
if (index < data.length - 1) {
|
|
2368
2374
|
data.splice(index, 1);
|
|
2369
2375
|
data.splice(index + 1, 0, row);
|
|
2370
2376
|
|
|
2371
|
-
|
|
2377
|
+
for (let item of data) {
|
|
2378
|
+
delete item.id;
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
this.loadData(data);
|
|
2372
2382
|
}
|
|
2373
2383
|
}
|
|
2374
2384
|
}
|