three-trees-ui 1.1.7 → 1.1.9
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/LICENSE +21 -21
- package/lib/three-trees-ui.common.js +200 -182
- package/lib/three-trees-ui.css +1 -1
- package/lib/three-trees-ui.umd.js +200 -182
- package/lib/three-trees-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/OnlineForm/src/Form.vue +3 -0
- package/src/directive/formulas.js +13 -3
- package/src/mixins/templatePreview.js +20 -6
package/package.json
CHANGED
|
@@ -233,7 +233,7 @@ const Formulas = {
|
|
|
233
233
|
},
|
|
234
234
|
LARGE: (array, index) => {
|
|
235
235
|
index = Formulas.parseNumber(index)
|
|
236
|
-
return array.sort(function(a, b) {
|
|
236
|
+
return array.sort(function (a, b) {
|
|
237
237
|
return b - a
|
|
238
238
|
})[index - 1]
|
|
239
239
|
},
|
|
@@ -300,7 +300,7 @@ const Formulas = {
|
|
|
300
300
|
},
|
|
301
301
|
SMALL: (array, index) => {
|
|
302
302
|
array = Formulas.parseNumberArray(array)
|
|
303
|
-
return array.sort(function(a, b) {
|
|
303
|
+
return array.sort(function (a, b) {
|
|
304
304
|
return a - b
|
|
305
305
|
})[index - 1]
|
|
306
306
|
},
|
|
@@ -479,7 +479,17 @@ const Formulas = {
|
|
|
479
479
|
DATEDELTA: (string, days) => {
|
|
480
480
|
let timestamp = new Date(string).getTime()
|
|
481
481
|
timestamp += days * 86400000
|
|
482
|
-
|
|
482
|
+
let date = Formulas.parseDate(timestamp)
|
|
483
|
+
if (date == 'Invalid Date') {
|
|
484
|
+
Notification.error({
|
|
485
|
+
title: '错误',
|
|
486
|
+
message: '无效日期',
|
|
487
|
+
})
|
|
488
|
+
return
|
|
489
|
+
}
|
|
490
|
+
return date.format(
|
|
491
|
+
utils.isMobile() ? 'yyyy/MM/dd HH:mm:ss' : 'yyyy-MM-dd HH:mm:ss'
|
|
492
|
+
)
|
|
483
493
|
},
|
|
484
494
|
HALFDAY: (startDate, endDate) => {
|
|
485
495
|
let half = 0.5
|
|
@@ -2390,7 +2390,11 @@ export default {
|
|
|
2390
2390
|
.then(() => {
|
|
2391
2391
|
let s = []
|
|
2392
2392
|
for (let i = 0; i < this.tableData.selectRows.length; i++) {
|
|
2393
|
-
s.push(
|
|
2393
|
+
s.push(
|
|
2394
|
+
this.tableData.selectRows[i][
|
|
2395
|
+
this.templateInfo.pkField ? this.templateInfo.pkField : 'id_'
|
|
2396
|
+
]
|
|
2397
|
+
)
|
|
2394
2398
|
}
|
|
2395
2399
|
let data = {
|
|
2396
2400
|
ids: s.join(','),
|
|
@@ -2566,16 +2570,26 @@ export default {
|
|
|
2566
2570
|
}
|
|
2567
2571
|
//TODO 如果是模块开发 全部已新窗口打开
|
|
2568
2572
|
if (openType == 'new' || this.isJoinFlow) {
|
|
2569
|
-
|
|
2570
|
-
this.$router.
|
|
2573
|
+
if (this.$tabs) {
|
|
2574
|
+
this.$router.push({
|
|
2571
2575
|
path: path + '&isNewPage=true',
|
|
2572
2576
|
query: {
|
|
2573
2577
|
quitAfterSaving,
|
|
2574
2578
|
customTitleName,
|
|
2575
2579
|
},
|
|
2576
|
-
})
|
|
2577
|
-
|
|
2578
|
-
|
|
2580
|
+
})
|
|
2581
|
+
} else {
|
|
2582
|
+
window.open(
|
|
2583
|
+
this.$router.resolve({
|
|
2584
|
+
path: path + '&isNewPage=true',
|
|
2585
|
+
query: {
|
|
2586
|
+
quitAfterSaving,
|
|
2587
|
+
customTitleName,
|
|
2588
|
+
},
|
|
2589
|
+
}).href,
|
|
2590
|
+
'_blank'
|
|
2591
|
+
)
|
|
2592
|
+
}
|
|
2579
2593
|
} else if (openType === 'dialog' || isDataView) {
|
|
2580
2594
|
this.$refs.templateFormDialog.showDialog({
|
|
2581
2595
|
templateKey: this.templateInfo.alias,
|