cloud-web-corejs 1.0.54-dev.200 → 1.0.54-dev.202
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 +4 -2
- package/src/components/jsonImport/index.js +171 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +59 -47
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +630 -478
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -1
- package/src/components/xform/lang/zh-CN.js +1 -1
- package/src/components/xform/utils/format.js +21 -30
- package/src/components/xform/utils/formula-util.js +649 -0
- package/src/components/xform/utils/util.js +1 -1
- package/src/layout/components/watermark/index.vue +7 -1
- package/src/views/bd/setting/bd_attach_setting/edit.vue +2 -2
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +2 -2
- package/src/views/bd/setting/form_import_log/edit.vue +2 -2
- package/src/views/bd/setting/form_script/edit.vue +2 -2
- package/src/views/bd/setting/form_script/edit1.vue +2 -2
- package/src/views/bd/setting/form_script/mixins/form_list.js +2 -2
- package/src/views/bd/setting/form_script/mixins/list.js +3 -2
- package/src/views/bd/setting/form_script/mixins/list1.js +3 -2
- package/src/views/bd/setting/form_template/edit.vue +2 -2
- package/src/views/bd/setting/form_template/mixins/list.js +3 -2
- package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
- package/src/views/bd/setting/table_model/mixins/list.js +3 -2
@@ -103,7 +103,7 @@ export default {
|
|
103
103
|
"create_by-text": "创建人",
|
104
104
|
"modify_by-text": "更新人",
|
105
105
|
"create_date-text": "创建时间",
|
106
|
-
"
|
106
|
+
"modify_date-text": "更新时间",
|
107
107
|
"user-vabsearch": "用户(单选)",
|
108
108
|
"saleOrg-vabsearch": "机构(单选)",
|
109
109
|
"user-project-tag": "用户(多选)",
|
@@ -1,57 +1,48 @@
|
|
1
|
+
import dayjs from 'dayjs'
|
2
|
+
|
3
|
+
function validateDate(dateStr) {
|
4
|
+
let date = new Date( Date.parse(dateStr) )
|
5
|
+
return (date instanceof Date) && !isNaN(date.getTime())
|
6
|
+
}
|
1
7
|
|
2
8
|
export function formatDate1(date) {
|
3
|
-
if (
|
9
|
+
if (!validateDate(date)) {
|
4
10
|
return date;
|
5
11
|
}
|
6
|
-
|
7
|
-
|
8
|
-
let m = date.getMonth() + 1;
|
9
|
-
m = m < 10 ? '0' + m : m;
|
10
|
-
let d = date.getDate();
|
11
|
-
d = d < 10 ? ('0' + d) : d;
|
12
|
-
return y + '-' + m + '-' + d;
|
12
|
+
|
13
|
+
return dayjs(date).format('YYYY-MM-DD')
|
13
14
|
}
|
14
15
|
|
15
16
|
export function formatDate2(date) {
|
16
|
-
if (
|
17
|
+
if (!validateDate(date)) {
|
17
18
|
return date;
|
18
19
|
}
|
19
|
-
|
20
|
-
|
21
|
-
let m = date.getMonth() + 1;
|
22
|
-
m = m < 10 ? '0' + m : m;
|
23
|
-
let d = date.getDate();
|
24
|
-
d = d < 10 ? ('0' + d) : d;
|
25
|
-
return y + '/' + m + '/' + d;
|
20
|
+
|
21
|
+
return dayjs(date).format('YYYY/MM/DD')
|
26
22
|
}
|
27
23
|
|
28
24
|
export function formatDate3(date) {
|
29
|
-
if (
|
25
|
+
if (!validateDate(date)) {
|
30
26
|
return date;
|
31
27
|
}
|
32
|
-
|
33
|
-
|
34
|
-
let m = date.getMonth() + 1;
|
35
|
-
m = m < 10 ? '0' + m : m;
|
36
|
-
let d = date.getDate();
|
37
|
-
d = d < 10 ? ('0' + d) : d;
|
38
|
-
return y + '年' + m + '月' + d +'日';
|
28
|
+
|
29
|
+
return dayjs(date).format('YYYY年MM月DD日')
|
39
30
|
}
|
40
31
|
|
41
32
|
export function formatDate4(date) {
|
42
|
-
if (
|
33
|
+
if (!validateDate(date)) {
|
43
34
|
return date;
|
44
35
|
}
|
45
|
-
|
46
|
-
return date.
|
36
|
+
|
37
|
+
return dayjs(date).format('YYYY-MM-DD HH:mm:ss')
|
47
38
|
}
|
48
39
|
|
49
40
|
export function formatDate5(date) {
|
50
|
-
if (
|
41
|
+
if (!validateDate(date)) {
|
51
42
|
return date;
|
52
43
|
}
|
53
|
-
|
54
|
-
return date.
|
44
|
+
|
45
|
+
return dayjs(date).format('YYYY-MM-DD hh:mm:ss')
|
55
46
|
}
|
56
47
|
|
57
48
|
// ###,###,###,##0.######
|