three-trees-ui 1.1.7 → 1.1.8
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 +183 -175
- package/lib/three-trees-ui.css +1 -1
- package/lib/three-trees-ui.umd.js +183 -175
- 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 +1 -1
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,7 @@ export default {
|
|
|
2390
2390
|
.then(() => {
|
|
2391
2391
|
let s = []
|
|
2392
2392
|
for (let i = 0; i < this.tableData.selectRows.length; i++) {
|
|
2393
|
-
s.push(this.tableData.selectRows[i][this.templateInfo.pkField])
|
|
2393
|
+
s.push(this.tableData.selectRows[i][this.templateInfo.pkField ? this.templateInfo.pkField : 'id_'])
|
|
2394
2394
|
}
|
|
2395
2395
|
let data = {
|
|
2396
2396
|
ids: s.join(','),
|