@steedos-widgets/amis-lib 6.10.1-beta.47 → 6.10.1-beta.49
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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +1047 -55
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1047 -57
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +230 -200
- package/dist/index.umd.js.map +1 -1
- package/dist/types/i18n.d.ts +2 -1
- package/dist/types/i18n_amis.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/workflow/approve.d.ts +2 -2
- package/dist/types/workflow/attachment.d.ts +4 -4
- package/dist/types/workflow/flow.d.ts +50 -7
- package/dist/types/workflow/history.d.ts +1 -1
- package/dist/types/workflow/related.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import i18next from 'i18next';
|
|
|
4
4
|
export { default as i18next } from 'i18next';
|
|
5
5
|
import { initReactI18next } from 'react-i18next';
|
|
6
6
|
import isPlainObject from 'lodash/isPlainObject';
|
|
7
|
-
import { Router as Router$1, getSteedosAuth as getSteedosAuth$1, lookupToAmis as lookupToAmis$1, fetchAPI as fetchAPI$1 } from '@steedos-widgets/amis-lib';
|
|
7
|
+
import { Router as Router$1, i18next as i18next$1, getSteedosAuth as getSteedosAuth$1, lookupToAmis as lookupToAmis$1, fetchAPI as fetchAPI$1 } from '@steedos-widgets/amis-lib';
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
* @Author: baozhoutao@steedos.com
|
|
@@ -1572,7 +1572,22 @@ var frontend_app_launcher_dialog_new_app_title$1 = "New App";
|
|
|
1572
1572
|
var frontend_app_launcher_dialog_new_app_code_label$1 = "App ID";
|
|
1573
1573
|
var frontend_app_launcher_dialog_new_app_name_label$1 = "Label";
|
|
1574
1574
|
var frontend_app_launcher_dialog_new_app_icon_label$1 = "Icon";
|
|
1575
|
-
var
|
|
1575
|
+
var frontend_crud_toolbar_quick_search_placeholder$1 = "Quick Search";
|
|
1576
|
+
var frontend_crud_toolbar_quick_search_tooltip_prefix$1 = "Searchable fields:";
|
|
1577
|
+
var frontend_workflow_instances_applicant_name_prefix$1 = "Applicant name:";
|
|
1578
|
+
var frontend_workflow_instance_submit_date_prefix$1 = "Submission date:";
|
|
1579
|
+
var frontend_workflow_instance_button_sign$1 = "Sign";
|
|
1580
|
+
var frontend_workflow_approval_history$1 = "Approval History";
|
|
1581
|
+
var frontend_workflow_approval_history_read$1 = "Read";
|
|
1582
|
+
var frontend_workflow_approval_history_unprocessed$1 = "Unprocessed";
|
|
1583
|
+
var frontend_workflow_attachment$1 = "Attachment";
|
|
1584
|
+
var frontend_workflow_attachment_upload$1 = "Upload";
|
|
1585
|
+
var frontend_workflow_related_file$1 = "Related File";
|
|
1586
|
+
var frontend_workflow_judge_option_approved$1 = "Approved";
|
|
1587
|
+
var frontend_workflow_judge_option_rejected$1 = "Rejected";
|
|
1588
|
+
var frontend_workflow_judge_option_readed$1 = "Readed";
|
|
1589
|
+
var frontend_workflow_next_step$1 = "Next Step";
|
|
1590
|
+
var en_us$1 = {
|
|
1576
1591
|
frontend_field_group_generalization: frontend_field_group_generalization$1,
|
|
1577
1592
|
frontend_download: frontend_download$1,
|
|
1578
1593
|
frontend_form_save: frontend_form_save$1,
|
|
@@ -1688,7 +1703,22 @@ var en_us = {
|
|
|
1688
1703
|
frontend_app_launcher_dialog_new_app_title: frontend_app_launcher_dialog_new_app_title$1,
|
|
1689
1704
|
frontend_app_launcher_dialog_new_app_code_label: frontend_app_launcher_dialog_new_app_code_label$1,
|
|
1690
1705
|
frontend_app_launcher_dialog_new_app_name_label: frontend_app_launcher_dialog_new_app_name_label$1,
|
|
1691
|
-
frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label$1
|
|
1706
|
+
frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label$1,
|
|
1707
|
+
frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder$1,
|
|
1708
|
+
frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix$1,
|
|
1709
|
+
frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix$1,
|
|
1710
|
+
frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix$1,
|
|
1711
|
+
frontend_workflow_instance_button_sign: frontend_workflow_instance_button_sign$1,
|
|
1712
|
+
frontend_workflow_approval_history: frontend_workflow_approval_history$1,
|
|
1713
|
+
frontend_workflow_approval_history_read: frontend_workflow_approval_history_read$1,
|
|
1714
|
+
frontend_workflow_approval_history_unprocessed: frontend_workflow_approval_history_unprocessed$1,
|
|
1715
|
+
frontend_workflow_attachment: frontend_workflow_attachment$1,
|
|
1716
|
+
frontend_workflow_attachment_upload: frontend_workflow_attachment_upload$1,
|
|
1717
|
+
frontend_workflow_related_file: frontend_workflow_related_file$1,
|
|
1718
|
+
frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved$1,
|
|
1719
|
+
frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected$1,
|
|
1720
|
+
frontend_workflow_judge_option_readed: frontend_workflow_judge_option_readed$1,
|
|
1721
|
+
frontend_workflow_next_step: frontend_workflow_next_step$1
|
|
1692
1722
|
};
|
|
1693
1723
|
|
|
1694
1724
|
var frontend_field_group_generalization = "通用";
|
|
@@ -1808,7 +1838,32 @@ var frontend_app_launcher_dialog_new_app_title = "新建应用";
|
|
|
1808
1838
|
var frontend_app_launcher_dialog_new_app_code_label = "应用唯一标识";
|
|
1809
1839
|
var frontend_app_launcher_dialog_new_app_name_label = "显示名称";
|
|
1810
1840
|
var frontend_app_launcher_dialog_new_app_icon_label = "图标";
|
|
1811
|
-
var
|
|
1841
|
+
var frontend_crud_toolbar_quick_search_placeholder = "快捷搜索";
|
|
1842
|
+
var frontend_crud_toolbar_quick_search_tooltip_prefix = "可搜索字段:";
|
|
1843
|
+
var frontend_workflow_instances_applicant_name_prefix = "提交人:";
|
|
1844
|
+
var frontend_workflow_instance_submit_date_prefix = "提交日期:";
|
|
1845
|
+
var frontend_workflow_approval_judge_returned = "已退回";
|
|
1846
|
+
var frontend_workflow_approval_judge_terminated = "被取回";
|
|
1847
|
+
var frontend_workflow_approval_judge_pending = "审核中";
|
|
1848
|
+
var frontend_workflow_approval_judge_approved = "已核准";
|
|
1849
|
+
var frontend_workflow_approval_judge_rejected = "已驳回";
|
|
1850
|
+
var frontend_workflow_approval_judge_finished = "已完成";
|
|
1851
|
+
var frontend_workflow_approval_judge_reassigned = "转签核";
|
|
1852
|
+
var frontend_workflow_approval_judge_inhand = "处理中";
|
|
1853
|
+
var frontend_workflow_approval_judge_relocated = "重定位";
|
|
1854
|
+
var frontend_workflow_approval_judge_readed = "已阅";
|
|
1855
|
+
var frontend_workflow_instance_button_sign = "签批";
|
|
1856
|
+
var frontend_workflow_approval_history = "签批历程";
|
|
1857
|
+
var frontend_workflow_approval_history_read = "已读";
|
|
1858
|
+
var frontend_workflow_approval_history_unprocessed = "未处理";
|
|
1859
|
+
var frontend_workflow_attachment = "附件";
|
|
1860
|
+
var frontend_workflow_attachment_upload = "上传";
|
|
1861
|
+
var frontend_workflow_related_file = "相关文件";
|
|
1862
|
+
var frontend_workflow_judge_option_approved = "核准";
|
|
1863
|
+
var frontend_workflow_judge_option_rejected = "驳回";
|
|
1864
|
+
var frontend_workflow_judge_option_readed = "已阅";
|
|
1865
|
+
var frontend_workflow_next_step = "下一步";
|
|
1866
|
+
var zh_cn$1 = {
|
|
1812
1867
|
frontend_field_group_generalization: frontend_field_group_generalization,
|
|
1813
1868
|
frontend_download: frontend_download,
|
|
1814
1869
|
frontend_form_save: frontend_form_save,
|
|
@@ -1925,31 +1980,69 @@ var zh_cn = {
|
|
|
1925
1980
|
frontend_app_launcher_dialog_new_app_title: frontend_app_launcher_dialog_new_app_title,
|
|
1926
1981
|
frontend_app_launcher_dialog_new_app_code_label: frontend_app_launcher_dialog_new_app_code_label,
|
|
1927
1982
|
frontend_app_launcher_dialog_new_app_name_label: frontend_app_launcher_dialog_new_app_name_label,
|
|
1928
|
-
frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label
|
|
1983
|
+
frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label,
|
|
1984
|
+
frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder,
|
|
1985
|
+
frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix,
|
|
1986
|
+
frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix,
|
|
1987
|
+
frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix,
|
|
1988
|
+
frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned,
|
|
1989
|
+
frontend_workflow_approval_judge_terminated: frontend_workflow_approval_judge_terminated,
|
|
1990
|
+
frontend_workflow_approval_judge_pending: frontend_workflow_approval_judge_pending,
|
|
1991
|
+
frontend_workflow_approval_judge_approved: frontend_workflow_approval_judge_approved,
|
|
1992
|
+
frontend_workflow_approval_judge_rejected: frontend_workflow_approval_judge_rejected,
|
|
1993
|
+
frontend_workflow_approval_judge_finished: frontend_workflow_approval_judge_finished,
|
|
1994
|
+
frontend_workflow_approval_judge_reassigned: frontend_workflow_approval_judge_reassigned,
|
|
1995
|
+
frontend_workflow_approval_judge_inhand: frontend_workflow_approval_judge_inhand,
|
|
1996
|
+
frontend_workflow_approval_judge_relocated: frontend_workflow_approval_judge_relocated,
|
|
1997
|
+
frontend_workflow_approval_judge_readed: frontend_workflow_approval_judge_readed,
|
|
1998
|
+
frontend_workflow_instance_button_sign: frontend_workflow_instance_button_sign,
|
|
1999
|
+
frontend_workflow_approval_history: frontend_workflow_approval_history,
|
|
2000
|
+
frontend_workflow_approval_history_read: frontend_workflow_approval_history_read,
|
|
2001
|
+
frontend_workflow_approval_history_unprocessed: frontend_workflow_approval_history_unprocessed,
|
|
2002
|
+
frontend_workflow_attachment: frontend_workflow_attachment,
|
|
2003
|
+
frontend_workflow_attachment_upload: frontend_workflow_attachment_upload,
|
|
2004
|
+
frontend_workflow_related_file: frontend_workflow_related_file,
|
|
2005
|
+
frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved,
|
|
2006
|
+
frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected,
|
|
2007
|
+
frontend_workflow_judge_option_readed: frontend_workflow_judge_option_readed,
|
|
2008
|
+
frontend_workflow_next_step: frontend_workflow_next_step
|
|
1929
2009
|
};
|
|
1930
2010
|
|
|
2011
|
+
/*
|
|
2012
|
+
* @Author: 殷亮辉 yinlianghui@hotoa.com
|
|
2013
|
+
* @Date: 2025-08-25 21:06:56
|
|
2014
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
2015
|
+
* @LastEditTime: 2025-08-26 10:17:05
|
|
2016
|
+
*/
|
|
2017
|
+
|
|
1931
2018
|
const resources = {
|
|
1932
2019
|
"en": {
|
|
1933
|
-
translation: en_us
|
|
2020
|
+
translation: en_us$1
|
|
1934
2021
|
},
|
|
1935
2022
|
"zh-CN": {
|
|
1936
|
-
translation: zh_cn
|
|
2023
|
+
translation: zh_cn$1
|
|
1937
2024
|
}
|
|
1938
2025
|
};
|
|
1939
2026
|
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
locale = 'en';
|
|
2027
|
+
const getUserLanguage$1 = () => {
|
|
2028
|
+
var lan = Builder.settings.context?.user?.language || window.navigator.language;
|
|
2029
|
+
if(lan === 'en' || lan.startsWith('en-')){
|
|
2030
|
+
lan = 'en';
|
|
1945
2031
|
}
|
|
2032
|
+
return lan;
|
|
2033
|
+
};
|
|
2034
|
+
|
|
2035
|
+
var locale$1 = "zh-CN";
|
|
2036
|
+
if (typeof window != 'undefined') {
|
|
2037
|
+
window.steedosI18next = i18next;
|
|
2038
|
+
locale$1 = getUserLanguage$1();
|
|
1946
2039
|
}
|
|
1947
2040
|
|
|
1948
2041
|
i18next
|
|
1949
2042
|
.use(initReactI18next)
|
|
1950
2043
|
.init({
|
|
1951
2044
|
resources,
|
|
1952
|
-
lng: locale,
|
|
2045
|
+
lng: locale$1,
|
|
1953
2046
|
interpolation: {
|
|
1954
2047
|
escapeValue: false
|
|
1955
2048
|
}
|
|
@@ -9230,7 +9323,7 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
|
|
|
9230
9323
|
"id": "steedos_crud_toolbar_quick_search",
|
|
9231
9324
|
"align": "right",
|
|
9232
9325
|
"title": "",
|
|
9233
|
-
"content":
|
|
9326
|
+
"content": i18next.t('frontend_crud_toolbar_quick_search_tooltip_prefix') + searchableFieldsLabel.join(","),
|
|
9234
9327
|
"placement": "bottom",
|
|
9235
9328
|
"tooltipTheme": "dark",
|
|
9236
9329
|
"trigger": "click",
|
|
@@ -9240,7 +9333,7 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
|
|
|
9240
9333
|
{
|
|
9241
9334
|
"type": "search-box",
|
|
9242
9335
|
"name": keywordsSearchBoxName,
|
|
9243
|
-
"placeholder": "快捷搜索",
|
|
9336
|
+
"placeholder": i18next.t('frontend_crud_toolbar_quick_search_placeholder'),//"快捷搜索",
|
|
9244
9337
|
"value": crudKeywords,
|
|
9245
9338
|
"mini": true,
|
|
9246
9339
|
"clearable": true,//因为清除并不会触发失去焦点事件,只有禁用,但是它会触发change事件,所以等升级到amis 3.4+后可以重新放开
|
|
@@ -16887,11 +16980,11 @@ const getJudgeOptions = async (instance) => {
|
|
|
16887
16980
|
const options = [];
|
|
16888
16981
|
if (step.step_type === "sign") {
|
|
16889
16982
|
options.push({
|
|
16890
|
-
label: "核准",
|
|
16983
|
+
label: i18next$1.t('frontend_workflow_judge_option_approved'),//"核准",
|
|
16891
16984
|
value: "approved",
|
|
16892
16985
|
});
|
|
16893
16986
|
options.push({
|
|
16894
|
-
label: "驳回",
|
|
16987
|
+
label: i18next$1.t('frontend_workflow_judge_option_rejected'),//"驳回",
|
|
16895
16988
|
value: "rejected",
|
|
16896
16989
|
});
|
|
16897
16990
|
} else if (
|
|
@@ -16899,15 +16992,15 @@ const getJudgeOptions = async (instance) => {
|
|
|
16899
16992
|
HIDE_COUNTER_SIGN_JUDGE_OPTIONS != true
|
|
16900
16993
|
) {
|
|
16901
16994
|
options.push({
|
|
16902
|
-
label: "核准",
|
|
16995
|
+
label: i18next$1.t('frontend_workflow_judge_option_approved'),//"核准",
|
|
16903
16996
|
value: "approved",
|
|
16904
16997
|
});
|
|
16905
16998
|
options.push({
|
|
16906
|
-
label: "驳回",
|
|
16999
|
+
label: i18next$1.t('frontend_workflow_judge_option_rejected'),//"驳回",
|
|
16907
17000
|
value: "rejected",
|
|
16908
17001
|
});
|
|
16909
17002
|
options.push({
|
|
16910
|
-
label: "已阅",
|
|
17003
|
+
label: i18next$1.t('frontend_workflow_judge_option_readed'),//"已阅",
|
|
16911
17004
|
value: "readed",
|
|
16912
17005
|
});
|
|
16913
17006
|
}
|
|
@@ -16968,7 +17061,7 @@ const getNextStepInput = async (instance) => {
|
|
|
16968
17061
|
body: [
|
|
16969
17062
|
{
|
|
16970
17063
|
type: "tpl",
|
|
16971
|
-
tpl: "下一步",
|
|
17064
|
+
tpl: i18next$1.t('frontend_workflow_next_step'),//"下一步",
|
|
16972
17065
|
inline: true,
|
|
16973
17066
|
wrapperComponent: "",
|
|
16974
17067
|
id: "u:0a85de51480f",
|
|
@@ -17446,7 +17539,7 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
17446
17539
|
actions: [
|
|
17447
17540
|
{
|
|
17448
17541
|
type: "button",
|
|
17449
|
-
label: "
|
|
17542
|
+
label: "${'Submit' | t}",
|
|
17450
17543
|
onEvent: {
|
|
17451
17544
|
click: {
|
|
17452
17545
|
actions: await getSubmitActions(instance),
|
|
@@ -17457,7 +17550,7 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
17457
17550
|
},
|
|
17458
17551
|
{
|
|
17459
17552
|
type: "button",
|
|
17460
|
-
label: "
|
|
17553
|
+
label: "${'Cancel' | t}",
|
|
17461
17554
|
onEvent: {
|
|
17462
17555
|
click: {
|
|
17463
17556
|
actions: [
|
|
@@ -17478,8 +17571,8 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
17478
17571
|
/*
|
|
17479
17572
|
* @Author: baozhoutao@steedos.com
|
|
17480
17573
|
* @Date: 2022-09-16 17:27:24
|
|
17481
|
-
* @LastEditors:
|
|
17482
|
-
* @LastEditTime:
|
|
17574
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
17575
|
+
* @LastEditTime: 2025-08-28 01:24:26
|
|
17483
17576
|
* @Description:
|
|
17484
17577
|
*/
|
|
17485
17578
|
// TODO attachments
|
|
@@ -17551,11 +17644,11 @@ const getAttachmentUploadInput = async (instance)=>{
|
|
|
17551
17644
|
"type": "input-file",
|
|
17552
17645
|
labelClassName: "antd-List-heading",
|
|
17553
17646
|
className: "flex items-center",
|
|
17554
|
-
"label":
|
|
17647
|
+
"label": i18next$1.t('frontend_workflow_attachment'),
|
|
17555
17648
|
mode:"inline",
|
|
17556
17649
|
"name": "file",
|
|
17557
17650
|
"id": "u:a58d02614e04",
|
|
17558
|
-
"btnLabel":
|
|
17651
|
+
"btnLabel": i18next$1.t('frontend_workflow_attachment_upload'),
|
|
17559
17652
|
"btnClassName": "m-0",
|
|
17560
17653
|
"multiple": true,
|
|
17561
17654
|
"maxLength": 10,
|
|
@@ -17623,8 +17716,8 @@ const getAttachmentUploadInput = async (instance)=>{
|
|
|
17623
17716
|
/*
|
|
17624
17717
|
* @Author: baozhoutao@steedos.com
|
|
17625
17718
|
* @Date: 2022-09-16 17:26:12
|
|
17626
|
-
* @LastEditors:
|
|
17627
|
-
* @LastEditTime:
|
|
17719
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
17720
|
+
* @LastEditTime: 2025-08-28 01:23:32
|
|
17628
17721
|
* @Description:
|
|
17629
17722
|
*/
|
|
17630
17723
|
const getRelatedRecords = async (instance)=>{
|
|
@@ -17650,7 +17743,7 @@ const getRelatedInstances = async (instance)=>{
|
|
|
17650
17743
|
"type": "list",
|
|
17651
17744
|
"name": "relatedInstances",
|
|
17652
17745
|
"source": "${related_instances}",
|
|
17653
|
-
title:
|
|
17746
|
+
title: i18next$1.t('frontend_workflow_related_file'),
|
|
17654
17747
|
"listItem": {
|
|
17655
17748
|
"body": [
|
|
17656
17749
|
{
|
|
@@ -17670,8 +17763,8 @@ const getRelatedInstances = async (instance)=>{
|
|
|
17670
17763
|
/*
|
|
17671
17764
|
* @Author: baozhoutao@steedos.com
|
|
17672
17765
|
* @Date: 2022-09-24 16:48:28
|
|
17673
|
-
* @LastEditors:
|
|
17674
|
-
* @LastEditTime:
|
|
17766
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
17767
|
+
* @LastEditTime: 2025-08-28 01:38:39
|
|
17675
17768
|
* @Description:
|
|
17676
17769
|
*/
|
|
17677
17770
|
|
|
@@ -17679,7 +17772,7 @@ const getInstanceApprovalHistory = async ()=>{
|
|
|
17679
17772
|
return {
|
|
17680
17773
|
"type": "table",
|
|
17681
17774
|
"headerClassName": "hidden",
|
|
17682
|
-
"title":
|
|
17775
|
+
"title": i18next$1.t('frontend_workflow_approval_history'),
|
|
17683
17776
|
"source": "${historyApproves}",
|
|
17684
17777
|
"className": "m-b-none instance-approve-history",
|
|
17685
17778
|
"columnsTogglable": false,
|
|
@@ -17700,14 +17793,14 @@ const getInstanceApprovalHistory = async ()=>{
|
|
|
17700
17793
|
{
|
|
17701
17794
|
"name": "finish_date",
|
|
17702
17795
|
"label": "finish_date",
|
|
17703
|
-
"classNameExpr": "<%= data.finish_date == '
|
|
17796
|
+
"classNameExpr": "<%= data.finish_date == i18next.t('frontend_workflow_approval_history_read') ? 'text-[blue]' : (data.finish_date == i18next.t('frontend_workflow_approval_history_unprocessed') ? 'text-[red]' : '') %>"
|
|
17704
17797
|
// "type": "datetime",
|
|
17705
17798
|
// "format": "YYYY-MM-DD HH:mm"
|
|
17706
17799
|
},
|
|
17707
17800
|
{
|
|
17708
17801
|
"name": "judge",
|
|
17709
17802
|
"label": "judge",
|
|
17710
|
-
"classNameExpr": "<%= data.judge == '
|
|
17803
|
+
"classNameExpr": "<%= data.judge == i18next.t('frontend_workflow_approval_judge_approved') ? 'text-green-600' : (data.judge == i18next.t('frontend_workflow_approval_judge_rejected') ? 'text-[red]' : '') %>"
|
|
17711
17804
|
}
|
|
17712
17805
|
]
|
|
17713
17806
|
}
|
|
@@ -17716,8 +17809,8 @@ const getInstanceApprovalHistory = async ()=>{
|
|
|
17716
17809
|
/*
|
|
17717
17810
|
* @Author: baozhoutao@steedos.com
|
|
17718
17811
|
* @Date: 2022-09-07 16:20:45
|
|
17719
|
-
* @LastEditors:
|
|
17720
|
-
* @LastEditTime:
|
|
17812
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
17813
|
+
* @LastEditTime: 2025-08-28 02:36:59
|
|
17721
17814
|
* @Description:
|
|
17722
17815
|
*/
|
|
17723
17816
|
|
|
@@ -18320,6 +18413,95 @@ const getFormTableView = async (instance) => {
|
|
|
18320
18413
|
return formSchema;
|
|
18321
18414
|
};
|
|
18322
18415
|
|
|
18416
|
+
const getFormSteps = async (instance) => {
|
|
18417
|
+
const stepsSchema = [];
|
|
18418
|
+
let stepFields = [];
|
|
18419
|
+
let fields = [];
|
|
18420
|
+
let unGroupFields = [];
|
|
18421
|
+
each(instance.fields, (field) => {
|
|
18422
|
+
if (field.type === "section") {
|
|
18423
|
+
fields.push(field);
|
|
18424
|
+
}
|
|
18425
|
+
else {
|
|
18426
|
+
unGroupFields.push(field);
|
|
18427
|
+
}
|
|
18428
|
+
});
|
|
18429
|
+
if (unGroupFields.length > 0) {
|
|
18430
|
+
fields = [{
|
|
18431
|
+
type: "section",
|
|
18432
|
+
name: "General",
|
|
18433
|
+
code: "General",
|
|
18434
|
+
fields: unGroupFields
|
|
18435
|
+
}].concat(fields);
|
|
18436
|
+
}
|
|
18437
|
+
|
|
18438
|
+
for (const field of fields) {
|
|
18439
|
+
if (field.type === "section" && field.fields) {
|
|
18440
|
+
stepFields = [];
|
|
18441
|
+
let fieldSchema;
|
|
18442
|
+
for (const childField of field.fields) {
|
|
18443
|
+
fieldSchema = await getTdInputTpl(childField, true);
|
|
18444
|
+
stepFields.push(fieldSchema);
|
|
18445
|
+
}
|
|
18446
|
+
stepsSchema.push({
|
|
18447
|
+
"title": field.name,
|
|
18448
|
+
"mode": "horizontal",
|
|
18449
|
+
"body": stepFields
|
|
18450
|
+
});
|
|
18451
|
+
}
|
|
18452
|
+
}
|
|
18453
|
+
var isReadonlyBox = instance.box !== 'inbox' && instance.box !== 'draft';
|
|
18454
|
+
if (isReadonlyBox) {
|
|
18455
|
+
// 只读的审批箱中最后一步的保存按钮要隐藏
|
|
18456
|
+
if (stepsSchema.length == 1) {
|
|
18457
|
+
stepsSchema[stepsSchema.length - 1].actions = [];
|
|
18458
|
+
}
|
|
18459
|
+
else if (stepsSchema.length > 1) {
|
|
18460
|
+
stepsSchema[stepsSchema.length - 1].actions = [
|
|
18461
|
+
{
|
|
18462
|
+
"label": "Prev",
|
|
18463
|
+
"type": "button",
|
|
18464
|
+
"actionType": "prev"
|
|
18465
|
+
}
|
|
18466
|
+
];
|
|
18467
|
+
}
|
|
18468
|
+
}
|
|
18469
|
+
return stepsSchema;
|
|
18470
|
+
};
|
|
18471
|
+
|
|
18472
|
+
const getFormWizardView = async (instance) => {
|
|
18473
|
+
const formSchema = {
|
|
18474
|
+
type: "wizard",
|
|
18475
|
+
className: "instance-form-view-wizard pt-4",
|
|
18476
|
+
steps: await getFormSteps(instance),
|
|
18477
|
+
actionFinishLabel: "${'CustomAction.instances.instance_save' | t}",//"保存",
|
|
18478
|
+
id: "u:instance_wizard",
|
|
18479
|
+
target: "instance_form",
|
|
18480
|
+
"onEvent": {
|
|
18481
|
+
"change": {
|
|
18482
|
+
"actions": [
|
|
18483
|
+
{
|
|
18484
|
+
"actionType": "setValue",
|
|
18485
|
+
"componentId": "instance_form",
|
|
18486
|
+
"args": {
|
|
18487
|
+
"value": "${event.data}"
|
|
18488
|
+
}
|
|
18489
|
+
}
|
|
18490
|
+
]
|
|
18491
|
+
},
|
|
18492
|
+
"finished": { //点最后一步完成按钮触发暂存按钮事件保存数据
|
|
18493
|
+
"actions": [
|
|
18494
|
+
{
|
|
18495
|
+
"actionType": "click",
|
|
18496
|
+
"componentId": "u:instance_save"
|
|
18497
|
+
}
|
|
18498
|
+
]
|
|
18499
|
+
}
|
|
18500
|
+
},
|
|
18501
|
+
};
|
|
18502
|
+
return formSchema;
|
|
18503
|
+
};
|
|
18504
|
+
|
|
18323
18505
|
const getApplicantTableView = async (instance) => {
|
|
18324
18506
|
let applicantInput = null;
|
|
18325
18507
|
if(instance.state === 'draft'){
|
|
@@ -18370,7 +18552,7 @@ const getApplicantTableView = async (instance) => {
|
|
|
18370
18552
|
body: [
|
|
18371
18553
|
{
|
|
18372
18554
|
type: "tpl",
|
|
18373
|
-
tpl: "<div class='inline-left'
|
|
18555
|
+
tpl: "<div class='inline-left'>" + i18next$1.t('frontend_workflow_instances_applicant_name_prefix') + "</div>",
|
|
18374
18556
|
id: "u:ee62634201bf",
|
|
18375
18557
|
},
|
|
18376
18558
|
applicantInput
|
|
@@ -18389,7 +18571,7 @@ const getApplicantTableView = async (instance) => {
|
|
|
18389
18571
|
body: [
|
|
18390
18572
|
{
|
|
18391
18573
|
type: "tpl",
|
|
18392
|
-
tpl: "<div class='inline-left'
|
|
18574
|
+
tpl: "<div class='inline-left'>" + i18next$1.t('frontend_workflow_instance_submit_date_prefix') + "</div>",
|
|
18393
18575
|
id: "u:6d0a7763d527",
|
|
18394
18576
|
},
|
|
18395
18577
|
{
|
|
@@ -18428,7 +18610,7 @@ const getApproveButton = async (instance)=>{
|
|
|
18428
18610
|
}
|
|
18429
18611
|
return {
|
|
18430
18612
|
type: "button",
|
|
18431
|
-
label:
|
|
18613
|
+
label: i18next$1.t('frontend_workflow_instance_button_sign'),
|
|
18432
18614
|
onEvent: {
|
|
18433
18615
|
click: {
|
|
18434
18616
|
actions: [
|
|
@@ -18449,6 +18631,14 @@ const getApproveButton = async (instance)=>{
|
|
|
18449
18631
|
};
|
|
18450
18632
|
|
|
18451
18633
|
const getFlowFormSchema = async (instance, box) => {
|
|
18634
|
+
const formStyle = instance.form.current.style || "table";
|
|
18635
|
+
let formContentSchema;
|
|
18636
|
+
if (formStyle === "wizard") {
|
|
18637
|
+
formContentSchema = await getFormWizardView(instance);
|
|
18638
|
+
}
|
|
18639
|
+
else {
|
|
18640
|
+
formContentSchema = await getFormTableView(instance);
|
|
18641
|
+
}
|
|
18452
18642
|
return {
|
|
18453
18643
|
type: "page",
|
|
18454
18644
|
name: "instancePage",
|
|
@@ -18525,7 +18715,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
18525
18715
|
textAlign: "center",
|
|
18526
18716
|
},
|
|
18527
18717
|
},
|
|
18528
|
-
|
|
18718
|
+
formContentSchema,
|
|
18529
18719
|
await getApplicantTableView(instance),
|
|
18530
18720
|
|
|
18531
18721
|
],
|
|
@@ -18578,7 +18768,19 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
18578
18768
|
actionType: "reload"
|
|
18579
18769
|
}
|
|
18580
18770
|
]
|
|
18581
|
-
}
|
|
18771
|
+
},
|
|
18772
|
+
"inited": {
|
|
18773
|
+
"actions": [
|
|
18774
|
+
{
|
|
18775
|
+
"actionType": "setValue",
|
|
18776
|
+
"componentId": "instance_form",
|
|
18777
|
+
"args": {
|
|
18778
|
+
"value": "${event.data.context.approveValues}"
|
|
18779
|
+
},
|
|
18780
|
+
"expression": "${event.data.context.form.current.style === 'wizard'}"// 表单为 wizard 样式时需要初始同步表单数据,否则直接点击暂存按钮会清空数据
|
|
18781
|
+
}
|
|
18782
|
+
]
|
|
18783
|
+
},
|
|
18582
18784
|
// inited: {
|
|
18583
18785
|
// weight: 0,
|
|
18584
18786
|
// actions: [
|
|
@@ -18706,8 +18908,8 @@ const getOpinionFieldStepsName = (field, top_keywords) => {
|
|
|
18706
18908
|
/*
|
|
18707
18909
|
* @Author: baozhoutao@steedos.com
|
|
18708
18910
|
* @Date: 2022-09-09 17:47:37
|
|
18709
|
-
* @LastEditors:
|
|
18710
|
-
* @LastEditTime:
|
|
18911
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
18912
|
+
* @LastEditTime: 2025-08-28 01:47:42
|
|
18711
18913
|
* @Description:
|
|
18712
18914
|
*/
|
|
18713
18915
|
|
|
@@ -18882,7 +19084,8 @@ const getInstanceInfo = async (props) => {
|
|
|
18882
19084
|
form_version,
|
|
18883
19085
|
form:form__expand{
|
|
18884
19086
|
_id,
|
|
18885
|
-
name
|
|
19087
|
+
name,
|
|
19088
|
+
style,
|
|
18886
19089
|
current,
|
|
18887
19090
|
historys
|
|
18888
19091
|
},
|
|
@@ -18996,7 +19199,7 @@ const getInstanceInfo = async (props) => {
|
|
|
18996
19199
|
opinion = approve.cc_description;
|
|
18997
19200
|
}
|
|
18998
19201
|
if (!finishDate) {
|
|
18999
|
-
finishDate = approve.is_read ?
|
|
19202
|
+
finishDate = approve.is_read ? i18next$1.t('frontend_workflow_approval_history_read') : i18next$1.t('frontend_workflow_approval_history_unprocessed');
|
|
19000
19203
|
judge = null;
|
|
19001
19204
|
} else {
|
|
19002
19205
|
finishDate = moment && moment(finishDate).format("YYYY-MM-DD HH:mm");
|
|
@@ -19007,34 +19210,34 @@ const getInstanceInfo = async (props) => {
|
|
|
19007
19210
|
judge = "";
|
|
19008
19211
|
break;
|
|
19009
19212
|
case "returned":
|
|
19010
|
-
judge = "已退回"
|
|
19213
|
+
judge = i18next$1.t('frontend_workflow_approval_judge_returned');//"已退回"
|
|
19011
19214
|
break;
|
|
19012
19215
|
case "terminated":
|
|
19013
|
-
judge = "被取回";
|
|
19216
|
+
judge = i18next$1.t('frontend_workflow_approval_judge_terminated');//"被取回";
|
|
19014
19217
|
break;
|
|
19015
19218
|
case "pending":
|
|
19016
|
-
judge = "审核中";
|
|
19219
|
+
judge = i18next$1.t('frontend_workflow_approval_judge_pending');//"审核中";
|
|
19017
19220
|
break;
|
|
19018
19221
|
case "approved":
|
|
19019
|
-
judge = "已核准";
|
|
19222
|
+
judge = i18next$1.t('frontend_workflow_approval_judge_approved');//"已核准";
|
|
19020
19223
|
break;
|
|
19021
19224
|
case "rejected":
|
|
19022
|
-
judge = "已驳回";
|
|
19225
|
+
judge = i18next$1.t('frontend_workflow_approval_judge_rejected');//"已驳回";
|
|
19023
19226
|
break;
|
|
19024
19227
|
case "finished":
|
|
19025
|
-
judge = "已完成";
|
|
19228
|
+
judge = i18next$1.t('frontend_workflow_approval_judge_finished');//"已完成";
|
|
19026
19229
|
break;
|
|
19027
19230
|
case "reassigned":
|
|
19028
|
-
judge = "转签核";
|
|
19231
|
+
judge = i18next$1.t('frontend_workflow_approval_judge_reassigned');//"转签核";
|
|
19029
19232
|
break;
|
|
19030
19233
|
case "inhand":
|
|
19031
|
-
judge = "处理中";
|
|
19234
|
+
judge = i18next$1.t('frontend_workflow_approval_judge_inhand');//"处理中";
|
|
19032
19235
|
break;
|
|
19033
19236
|
case "relocated":
|
|
19034
|
-
judge = "重定位";
|
|
19237
|
+
judge = i18next$1.t('frontend_workflow_approval_judge_relocated');//"重定位";
|
|
19035
19238
|
break;
|
|
19036
19239
|
case "readed":
|
|
19037
|
-
judge = "已阅";
|
|
19240
|
+
judge = i18next$1.t('frontend_workflow_approval_judge_readed');//"已阅";
|
|
19038
19241
|
break;
|
|
19039
19242
|
}
|
|
19040
19243
|
return {
|
|
@@ -19052,5 +19255,792 @@ const getInstanceInfo = async (props) => {
|
|
|
19052
19255
|
};
|
|
19053
19256
|
};
|
|
19054
19257
|
|
|
19055
|
-
|
|
19258
|
+
var asc$1 = "Asc";
|
|
19259
|
+
var cancel$1 = "Cancel";
|
|
19260
|
+
var clear$1 = "Clear";
|
|
19261
|
+
var add$1 = "New";
|
|
19262
|
+
var confirm$1 = "Confirm";
|
|
19263
|
+
var deleteConfirm$1 = "Are your sure to delete?";
|
|
19264
|
+
var deleteFailed$1 = "Delete failed";
|
|
19265
|
+
var desc$1 = "Desc";
|
|
19266
|
+
var fetchFailed$1 = "Fetch api failed";
|
|
19267
|
+
var link$1 = "Link";
|
|
19268
|
+
var loading$1 = "Loading";
|
|
19269
|
+
var networkError$1 = "Network error or missing CORS configuration";
|
|
19270
|
+
var noResult$1 = "No Result";
|
|
19271
|
+
var reset$1 = "Reset";
|
|
19272
|
+
var saveFailed$1 = "Save failed";
|
|
19273
|
+
var saveSuccess$1 = "Saved successfully";
|
|
19274
|
+
var search$1 = "Search";
|
|
19275
|
+
var searchHistory$1 = "Search History";
|
|
19276
|
+
var searchResult$1 = "Search result";
|
|
19277
|
+
var sort$1 = "Sort";
|
|
19278
|
+
var stop$1 = "Stop";
|
|
19279
|
+
var validateFailed$1 = "Validate failed";
|
|
19280
|
+
var reload$1 = "Reload";
|
|
19281
|
+
var rotate$1 = "Rotate";
|
|
19282
|
+
var TimeNow$1 = "Now";
|
|
19283
|
+
var en_us = {
|
|
19284
|
+
"Action.countDown": "Wait for ${timeLeft}s",
|
|
19285
|
+
"Alert.info": "System Info",
|
|
19286
|
+
"App.home": "Home",
|
|
19287
|
+
"App.navigation": "Navigation",
|
|
19288
|
+
asc: asc$1,
|
|
19289
|
+
"Calendar.datepicker": "Date Picker",
|
|
19290
|
+
"Calendar.yearmonth": "YYYY MM",
|
|
19291
|
+
"Calendar.year": "YYYY",
|
|
19292
|
+
"Calendar.begin": "begin",
|
|
19293
|
+
"Calendar.end": "end",
|
|
19294
|
+
"Calendar.beginAndEnd": "b/e",
|
|
19295
|
+
"Calendar.toast": "Out of date range",
|
|
19296
|
+
"Calendar.startPick": "Select start time",
|
|
19297
|
+
"Calendar.endPick": "Select end time",
|
|
19298
|
+
cancel: cancel$1,
|
|
19299
|
+
"Card.dragTip": "Drag top button to sort",
|
|
19300
|
+
"Card.toggleDrag": "Toggle drag to sort",
|
|
19301
|
+
"City.street": "Enter street info",
|
|
19302
|
+
clear: clear$1,
|
|
19303
|
+
"ColorPicker.placeholder": "Select color",
|
|
19304
|
+
"SubForm.add": "New",
|
|
19305
|
+
add: add$1,
|
|
19306
|
+
"Combo.dragDropSort": "Drag to sort",
|
|
19307
|
+
"Combo.invalidData": "invalid data, please remove",
|
|
19308
|
+
"Combo.maxLength": "Maximum item ia {{MaxLength}}}. Please delete some",
|
|
19309
|
+
"Combo.minLength": "A least {{minLength}} item. Please add more",
|
|
19310
|
+
"Combo.type": "Type",
|
|
19311
|
+
confirm: confirm$1,
|
|
19312
|
+
"Copyable.tip": "Copy",
|
|
19313
|
+
"CRUD.exportCSV": "Export CSV",
|
|
19314
|
+
"CRUD.exportExcel": "Export Excel",
|
|
19315
|
+
"CRUD.fetchFailed": "Fetch failed",
|
|
19316
|
+
"CRUD.filter": "Filter",
|
|
19317
|
+
"CRUD.selected": "selected {{total}} items",
|
|
19318
|
+
"CRUD.invalidArray": "data.items must be an array",
|
|
19319
|
+
"CRUD.invalidData": "data is empty",
|
|
19320
|
+
"CRUD.loadMore": "Load more",
|
|
19321
|
+
"CRUD.perPage": "Per page",
|
|
19322
|
+
"CRUD.stat": "{{page}} of {{lastPage}} total: {{total}}.",
|
|
19323
|
+
"CRUD.paginationGoText": "Go to",
|
|
19324
|
+
"CRUD.paginationPageText": "page",
|
|
19325
|
+
"PaginationWrapper.placeholder": "please config body",
|
|
19326
|
+
"Pagination.select": "{{count}} items/page",
|
|
19327
|
+
"Pagination.goto": "goto",
|
|
19328
|
+
"Pagination.go": "GO",
|
|
19329
|
+
"Pagination.totalPage": "total {{lastPage}} pages",
|
|
19330
|
+
"Pagination.totalCount": "total {{total}} items",
|
|
19331
|
+
"Date.titleYear": "select year",
|
|
19332
|
+
"Date.titleMonth": "select month and year",
|
|
19333
|
+
"Date.titleDate": "select month, year and day",
|
|
19334
|
+
"Date.titleTime": "select time",
|
|
19335
|
+
"Date.daysago": "{{days}} day(s) ago",
|
|
19336
|
+
"Date.dayslater": "{{days}} day(s) later",
|
|
19337
|
+
"Date.endOfMonth": "last day of the month",
|
|
19338
|
+
"Date.endOfLastMonth": "last day of last month",
|
|
19339
|
+
"Date.endOfWeek": "Saturday",
|
|
19340
|
+
"Date.hoursago": "{{hours}} hour(s) ago",
|
|
19341
|
+
"Date.hourslater": "{{hours}} hour(s) later",
|
|
19342
|
+
"Date.invalid": "Invalid date",
|
|
19343
|
+
"Date.monday": "Monday",
|
|
19344
|
+
"Date.monthsago": "{{months}} month(s) ago",
|
|
19345
|
+
"Date.monthslater": "{{months}} month(s) later",
|
|
19346
|
+
"Date.now": "Now",
|
|
19347
|
+
"Date.placeholder": "Select Date",
|
|
19348
|
+
"Date.quartersago": "{{quarters}} quarter(s) ago",
|
|
19349
|
+
"Date.quarterslater": "{{quarters}} quarter(s) later",
|
|
19350
|
+
"Date.startOfLastMonth": "First day of the last month",
|
|
19351
|
+
"Date.startOfLastQuarter": "First day of the last quarter",
|
|
19352
|
+
"Date.startOfMonth": "First day of the month",
|
|
19353
|
+
"Date.startOfQuarter": "First day of the quarter",
|
|
19354
|
+
"Date.today": "Today",
|
|
19355
|
+
"Date.tomorrow": "Tomorrow",
|
|
19356
|
+
"Date.weeksago": "{{weeks}} week(s) ago",
|
|
19357
|
+
"Date.weekslater": "{{weeks}} week(s) later",
|
|
19358
|
+
"Date.yesterday": "Yesterday",
|
|
19359
|
+
"dateformat.year": "YYYY",
|
|
19360
|
+
"DateRange.daysago": "Last {{days}} day(s)",
|
|
19361
|
+
"DateRange.dayslater": "Within {{days}} day(s)",
|
|
19362
|
+
"DateRange.weeksago": "Last {{weeks}} week(s)",
|
|
19363
|
+
"DateRange.weekslater": "Within {{weeks}} week(s)",
|
|
19364
|
+
"DateRange.monthsago": "Last {{months}} month(s)",
|
|
19365
|
+
"DateRange.monthslater": "Within {{months}} month(s)",
|
|
19366
|
+
"DateRange.quartersago": "Last {{quarters}} quarter(s)",
|
|
19367
|
+
"DateRange.quarterslater": "Within {{quarters}} quarter(s)",
|
|
19368
|
+
"DateRange.yearsago": "Last {{years}} year(s)",
|
|
19369
|
+
"DateRange.yearslater": "Within {{years}} year(s)",
|
|
19370
|
+
"DateRange.hoursago": "Last {{hours}} hour(s)",
|
|
19371
|
+
"DateRange.hourslater": "Within {{hours}} hour(s)",
|
|
19372
|
+
"DateRange.1dayago": "1 day ago",
|
|
19373
|
+
"DateRange.1daysago": "1 day ago",
|
|
19374
|
+
"DateRange.7daysago": "7 days ago",
|
|
19375
|
+
"DateRange.30daysago": "30 days ago",
|
|
19376
|
+
"DateRange.90daysago": "90 days ago",
|
|
19377
|
+
"DateRange.lastMonth": "Last month",
|
|
19378
|
+
"DateRange.lastWeek": "Last week",
|
|
19379
|
+
"DateRange.lastQuarter": "Last quarter",
|
|
19380
|
+
"DateRange.placeholder": "Select a Date range",
|
|
19381
|
+
"YearRange.placeholder": "Select a Year range",
|
|
19382
|
+
"DateRange.thisWeek": "This Week",
|
|
19383
|
+
"DateRange.thisMonth": "This month",
|
|
19384
|
+
"DateRange.thisQuarter": "This quarter",
|
|
19385
|
+
"DateRange.thisYear": "This year",
|
|
19386
|
+
"DateRange.lastYear": "Last year",
|
|
19387
|
+
"DateRange.valueConcat": " to ",
|
|
19388
|
+
"DateTime.placeholder": "Select Datetime",
|
|
19389
|
+
"delete": "Delete",
|
|
19390
|
+
deleteConfirm: deleteConfirm$1,
|
|
19391
|
+
deleteFailed: deleteFailed$1,
|
|
19392
|
+
desc: desc$1,
|
|
19393
|
+
"Dialog.close": "Close",
|
|
19394
|
+
"Dialog.title": "Title",
|
|
19395
|
+
"Embed.invalidRoot": "Invalid root selector",
|
|
19396
|
+
"Embed.downloading": "Start downloading",
|
|
19397
|
+
"Excel.placeholder": "Drag 'n' drop excel here, or click to select",
|
|
19398
|
+
"Excel.parsed": "{{filename}} Parsed",
|
|
19399
|
+
fetchFailed: fetchFailed$1,
|
|
19400
|
+
"File.continueAdd": "Continue add",
|
|
19401
|
+
"File.downloadTpl": "Download template",
|
|
19402
|
+
"File.dragDrop": "Drag 'n' drop some files here or",
|
|
19403
|
+
"File.clickUpload": "click here to upload",
|
|
19404
|
+
"File.helpText": "Help documentation",
|
|
19405
|
+
"File.errorRetry": "File upload failed, please try again",
|
|
19406
|
+
"File.failed": "Failed files.",
|
|
19407
|
+
"File.invalidType": "{{files}} does not match type `{{accept}}`",
|
|
19408
|
+
"File.maxLength": "The maximum limit is {{maxLength}}",
|
|
19409
|
+
"File.maxSize": "{{filename}} you selected exceeds the maximum limit of {{maxsize}} (in bytes)",
|
|
19410
|
+
"File.pause": "Pause uplaod",
|
|
19411
|
+
"File.repick": "Repick",
|
|
19412
|
+
"File.result": "Successfully uploaded {{uploaded}} files, failed to upload {{failed}} files",
|
|
19413
|
+
"File.retry": "Retry",
|
|
19414
|
+
"File.sizeLimit": "The maximum file size is {{maxSize}}",
|
|
19415
|
+
"File.start": "Start upload",
|
|
19416
|
+
"File.upload": "Upload",
|
|
19417
|
+
"Image.upload": "Upload image",
|
|
19418
|
+
"File.uploadFailed": "return data of udpload api is empty",
|
|
19419
|
+
"File.uploading": "Uploading",
|
|
19420
|
+
"FormItem.autoFillLoadFailed": "return data of autoUpdate api is error",
|
|
19421
|
+
"FormItem.autoFillSuggest": "Reference data entry",
|
|
19422
|
+
"Form.loadOptionsFailed": "Failed to load options because: {{reason}}",
|
|
19423
|
+
"Form.submit": "Submit",
|
|
19424
|
+
"Form.title": "Form",
|
|
19425
|
+
"Form.unique": "Current value is not unique",
|
|
19426
|
+
"Form.validateFailed": "Form input validation failed",
|
|
19427
|
+
"Form.nestedError": "Form cannot appear as a descendant of form",
|
|
19428
|
+
"Image.configError": "Can only set one of crop or multiple",
|
|
19429
|
+
"Image.crop": "Crop image",
|
|
19430
|
+
"Image.dragDrop": "Drag 'n' drop some photos here",
|
|
19431
|
+
"Image.height": "height: {{height}}px",
|
|
19432
|
+
"Image.limitMax": "Minimum image size is {{info}}",
|
|
19433
|
+
"Image.limitMin": "Maximum image size is {{info}}",
|
|
19434
|
+
"Image.limitRatio": "Please upload image with the size ratio of {{ration}}",
|
|
19435
|
+
"Image.pasteTip": "You can paste image from the clipboard",
|
|
19436
|
+
"Image.placeholder": "Click to select image or drag into this area",
|
|
19437
|
+
"Image.size": "size: ({{width}}px x {{height}}px)",
|
|
19438
|
+
"Image.sizeNotEqual": "The image you selected does not meet the size requirements {{info}}",
|
|
19439
|
+
"Image.width": "width: {{width}}px",
|
|
19440
|
+
"Image.zoomIn": "Zoom In",
|
|
19441
|
+
"Log.mustHaveSource": "Must have source in config",
|
|
19442
|
+
"Log.showLineNumber": "Display line number",
|
|
19443
|
+
"Log.notShowLineNumber": "Hide line number",
|
|
19444
|
+
"Log.expand": "Expand Operation",
|
|
19445
|
+
"Log.collapse": "Collapse Operation",
|
|
19446
|
+
link: link$1,
|
|
19447
|
+
loading: loading$1,
|
|
19448
|
+
"LocationPicker.placeholder": "Pick location",
|
|
19449
|
+
"Month.placeholder": "Select a month",
|
|
19450
|
+
"Nav.sourceError": "Fetch link error",
|
|
19451
|
+
networkError: networkError$1,
|
|
19452
|
+
noResult: noResult$1,
|
|
19453
|
+
"NumberInput.placeholder": "Please enter a number",
|
|
19454
|
+
"Options.addPlaceholder": "Please enter a name",
|
|
19455
|
+
"Options.deleteAPI": "Must have deleteAPI",
|
|
19456
|
+
"Options.editLabel": "Edit {{label}}",
|
|
19457
|
+
"Options.label": "option",
|
|
19458
|
+
"Options.createFailed": "create failed, please check",
|
|
19459
|
+
"placeholder.empty": "<Empty>",
|
|
19460
|
+
"placeholder.enter": "Enter",
|
|
19461
|
+
"placeholder.noData": "No data",
|
|
19462
|
+
"placeholder.noOption": "No option",
|
|
19463
|
+
"placeholder.selectData": "Select data",
|
|
19464
|
+
"Quarter.placeholder": "Select a quarter",
|
|
19465
|
+
"Repeat.pre": "Per",
|
|
19466
|
+
reset: reset$1,
|
|
19467
|
+
saveFailed: saveFailed$1,
|
|
19468
|
+
saveSuccess: saveSuccess$1,
|
|
19469
|
+
search: search$1,
|
|
19470
|
+
searchHistory: searchHistory$1,
|
|
19471
|
+
searchResult: searchResult$1,
|
|
19472
|
+
"Checkboxes.selectAll": "Select/Deselect All",
|
|
19473
|
+
"Select.checkAll": "Check all",
|
|
19474
|
+
"Select.clear": "Clear",
|
|
19475
|
+
"Select.upload": "Re upload",
|
|
19476
|
+
"Select.clearAll": "Clear all",
|
|
19477
|
+
"Select.createLabel": "New option",
|
|
19478
|
+
"Select.placeholder": "Select",
|
|
19479
|
+
"Select.searchPromptText": "Input to search",
|
|
19480
|
+
sort: sort$1,
|
|
19481
|
+
stop: stop$1,
|
|
19482
|
+
"SubForm.button": "Config",
|
|
19483
|
+
"SubForm.editDetail": "Edit Detail",
|
|
19484
|
+
"System.error": "System error",
|
|
19485
|
+
"System.notify": "System notify",
|
|
19486
|
+
"System.copy": "Content copied",
|
|
19487
|
+
"System.requestError": "Request error: ",
|
|
19488
|
+
"System.requestErrorStatus": "Request error, status code: ",
|
|
19489
|
+
"Table.addRow": "Add row",
|
|
19490
|
+
"Table.copyRow": "Copy row",
|
|
19491
|
+
"Table.columnsVisibility": "Click to control columns visibility",
|
|
19492
|
+
"Table.deleteRow": "Delete current row",
|
|
19493
|
+
"Table.discard": "Discard",
|
|
19494
|
+
"Table.dragTip": "Drag the button on the left to sort",
|
|
19495
|
+
"Table.editing": "You should finished editing",
|
|
19496
|
+
"Table.editRow": "Edit current row",
|
|
19497
|
+
"Table.modified": "There are {{modified}} records have been modified, you can:",
|
|
19498
|
+
"Table.moved": "There are {{moved}} records changed the order, you can:",
|
|
19499
|
+
"Table.operation": "Operation",
|
|
19500
|
+
"Table.playload": "Must have playload",
|
|
19501
|
+
"Table.startSort": "Click to start sorting",
|
|
19502
|
+
"Table.valueField": "Must have valueField",
|
|
19503
|
+
"Table.index": "Index",
|
|
19504
|
+
"Table.toggleColumn": "Display columns",
|
|
19505
|
+
"Table.searchFields": "Set query fields",
|
|
19506
|
+
"Tag.placeholder": "No tag yet",
|
|
19507
|
+
"Tag.tip": "Recently used tag",
|
|
19508
|
+
"Text.add": "New {{label}}",
|
|
19509
|
+
"Time.placeholder": "Select Time",
|
|
19510
|
+
"Transfer.configError": "Config error",
|
|
19511
|
+
"Transfer.refreshIcon": "Click to refresh",
|
|
19512
|
+
"Transfer.searchKeyword": "Enter keywords",
|
|
19513
|
+
"Transfer.available": "Available",
|
|
19514
|
+
"Transfer.selectd": "Selected",
|
|
19515
|
+
"Transfer.selectFromLeft": "Select from the left",
|
|
19516
|
+
"Tree.addChild": "Add child",
|
|
19517
|
+
"Tree.addRoot": "Add root node",
|
|
19518
|
+
"Tree.editNode": "Edit this node",
|
|
19519
|
+
"Tree.removeNode": "Remove this node",
|
|
19520
|
+
"Tree.root": "Root",
|
|
19521
|
+
"validate.equals": "value must be $1",
|
|
19522
|
+
"validate.equalsField": "value must be $1",
|
|
19523
|
+
"validate.gt": "Please enter a value greater than $1",
|
|
19524
|
+
"validate.isAlpha": "Please enter letters",
|
|
19525
|
+
"validate.isAlphanumeric": "Please enter letters or numbers",
|
|
19526
|
+
"validate.isEmail": "Email format is incorrect",
|
|
19527
|
+
"validate.isFloat": "Please enter a floating point value",
|
|
19528
|
+
"validate.isId": "invalid ID Card number",
|
|
19529
|
+
"validate.isInt": "Please enter an integer number",
|
|
19530
|
+
"validate.isJson": "invalid JSON format.",
|
|
19531
|
+
"validate.isLength": "Please make sure the length of contents is $1",
|
|
19532
|
+
"validate.isNumeric": "Please enter a number",
|
|
19533
|
+
"validate.isPhoneNumber": "invalid phone number",
|
|
19534
|
+
"validate.isRequired": "This is required",
|
|
19535
|
+
"validate.isTelNumber": "invalid telephone number",
|
|
19536
|
+
"validate.isUrl": "Incorrect URL format",
|
|
19537
|
+
"validate.isUrlPath": "You can only enter letters, numbers, `-` and`_` .",
|
|
19538
|
+
"validate.isWords": "Please enter word",
|
|
19539
|
+
"validate.isZipcode": "invalid postal address",
|
|
19540
|
+
"validate.lt": "Please enter a value less than $1",
|
|
19541
|
+
"validate.matchRegexp": "The format is not correct. Please enter the content with the rule `${1| raw}`.",
|
|
19542
|
+
"validate.maximum": "The input value exceeds the maximum value of $1",
|
|
19543
|
+
"validate.maxLength": "Please control the content length, do not enter more than $1 letters",
|
|
19544
|
+
"validate.minimum": "The input value is lower than the minimum value of $1",
|
|
19545
|
+
"validate.minLength": "Please enter more, at least $1 characters.",
|
|
19546
|
+
"validate.notEmptyString": "Please do not enter all blank characters",
|
|
19547
|
+
validateFailed: validateFailed$1,
|
|
19548
|
+
"Wizard.configError": "Config error",
|
|
19549
|
+
"Wizard.finish": "Finish",
|
|
19550
|
+
"Wizard.next": "Next",
|
|
19551
|
+
"Wizard.prev": "Prev",
|
|
19552
|
+
"Wizard.saveAndNext": "Save & Next",
|
|
19553
|
+
"year-to-year": "{{from}} - {{to}}",
|
|
19554
|
+
"Year.placeholder": "Select a Year",
|
|
19555
|
+
reload: reload$1,
|
|
19556
|
+
rotate: rotate$1,
|
|
19557
|
+
"Editor.fullscreen": "full screen",
|
|
19558
|
+
"Editor.exitFullscreen": "exit fullscreen mode",
|
|
19559
|
+
"Condition.not": "not",
|
|
19560
|
+
"Condition.and": "and",
|
|
19561
|
+
"Condition.or": "or",
|
|
19562
|
+
"Condition.add_cond": "add condition",
|
|
19563
|
+
"Condition.add_cond_group": "add condition group",
|
|
19564
|
+
"Condition.delete_cond_group": "delete condition group",
|
|
19565
|
+
"Condition.equal": "equal",
|
|
19566
|
+
"Condition.not_equal": "not equal",
|
|
19567
|
+
"Condition.less": "less",
|
|
19568
|
+
"Condition.less_or_equal": "less or equal",
|
|
19569
|
+
"Condition.greater": "greater",
|
|
19570
|
+
"Condition.greater_or_equal": "greater or equal",
|
|
19571
|
+
"Condition.between": "between",
|
|
19572
|
+
"Condition.not_between": "not between",
|
|
19573
|
+
"Condition.is_empty": "empty",
|
|
19574
|
+
"Condition.is_not_empty": "not empty",
|
|
19575
|
+
"Condition.like": "contains",
|
|
19576
|
+
"Condition.not_like": "not contains",
|
|
19577
|
+
"Condition.starts_with": "starts with",
|
|
19578
|
+
"Condition.ends_with": "ends with",
|
|
19579
|
+
"Condition.select_equals": "equals",
|
|
19580
|
+
"Condition.select_not_equals": "not equal",
|
|
19581
|
+
"Condition.select_any_in": "contains",
|
|
19582
|
+
"Condition.select_not_any_in": "not contains",
|
|
19583
|
+
"Condition.placeholder": "Please enter text",
|
|
19584
|
+
"Condition.cond_placeholder": "select condition",
|
|
19585
|
+
"Condition.field_placeholder": "select field",
|
|
19586
|
+
"Condition.blank": "blank",
|
|
19587
|
+
"Condition.expression": "expression",
|
|
19588
|
+
"Condition.formula_placeholder": "Please enter a formula",
|
|
19589
|
+
"Condition.fun_error": "Function is undefined",
|
|
19590
|
+
"InputTable.uniqueError": "Column `{{label}}` unique validate failed",
|
|
19591
|
+
"Timeline.collapseText": "Unfold",
|
|
19592
|
+
"Timeline.expandText": "Fold",
|
|
19593
|
+
"FormulaEditor.btnLabel": "Formula Edit",
|
|
19594
|
+
"FormulaEditor.title": "Formula Editor",
|
|
19595
|
+
"FormulaEditor.variable": "Variable",
|
|
19596
|
+
"FormulaEditor.function": "Function",
|
|
19597
|
+
"FormulaEditor.invalidData": "invalid data, position or reason is {{err}}",
|
|
19598
|
+
"pullRefresh.pullingText": "Pull down to refresh...",
|
|
19599
|
+
"pullRefresh.loosingText": "Release to refresh...",
|
|
19600
|
+
"pullRefresh.loadingText": "Loading...",
|
|
19601
|
+
"pullRefresh.successText": "Loading success",
|
|
19602
|
+
"Picker.placeholder": "Click icon on the right",
|
|
19603
|
+
"UserSelect.edit": "edit",
|
|
19604
|
+
"UserSelect.save": "preservation",
|
|
19605
|
+
"UserSelect.resultSort": "Select result sort",
|
|
19606
|
+
"UserSelect.selected": "Selected",
|
|
19607
|
+
"UserSelect.clear": "empty",
|
|
19608
|
+
"SchemaType.string": "String",
|
|
19609
|
+
"SchemaType.number": "Number",
|
|
19610
|
+
"SchemaType.integer": "integer",
|
|
19611
|
+
"SchemaType.object": "Object",
|
|
19612
|
+
"SchemaType.array": "Array",
|
|
19613
|
+
"SchemaType.boolean": "Boolean",
|
|
19614
|
+
"SchemaType.any": "Any",
|
|
19615
|
+
"SchemaType.null": "Null",
|
|
19616
|
+
"JSONSchema.title": "Title",
|
|
19617
|
+
"JSONSchema.default": "Default",
|
|
19618
|
+
"JSONSchema.description": "Description",
|
|
19619
|
+
"JSONSchema.key": "Key",
|
|
19620
|
+
"JSONSchema.array_items": "Items",
|
|
19621
|
+
TimeNow: TimeNow$1
|
|
19622
|
+
};
|
|
19623
|
+
|
|
19624
|
+
var asc = "正序";
|
|
19625
|
+
var Schedule = "日程";
|
|
19626
|
+
var Time = "时间";
|
|
19627
|
+
var Content = "内容";
|
|
19628
|
+
var cancel = "取消";
|
|
19629
|
+
var clear = "清空";
|
|
19630
|
+
var add = "新增";
|
|
19631
|
+
var confirm = "确认";
|
|
19632
|
+
var deleteConfirm = "确认要删除?";
|
|
19633
|
+
var deleteFailed = "删除失败";
|
|
19634
|
+
var desc = "降序";
|
|
19635
|
+
var fetchFailed = "初始化失败";
|
|
19636
|
+
var link = "链接";
|
|
19637
|
+
var loading = "加载中";
|
|
19638
|
+
var networkError = "网络错误,可能是未配置跨域 CORS";
|
|
19639
|
+
var noResult = "未找到任何结果";
|
|
19640
|
+
var reset = "重置";
|
|
19641
|
+
var saveFailed = "保存失败";
|
|
19642
|
+
var saveSuccess = "保存成功";
|
|
19643
|
+
var search = "搜索";
|
|
19644
|
+
var searchHistory = "搜索历史";
|
|
19645
|
+
var searchResult = "搜索结果";
|
|
19646
|
+
var stop = "停止";
|
|
19647
|
+
var sort = "排序";
|
|
19648
|
+
var validateFailed = "表单验证失败";
|
|
19649
|
+
var reload = "刷新";
|
|
19650
|
+
var rotate = "旋转";
|
|
19651
|
+
var collapse = "展开";
|
|
19652
|
+
var expand = "折叠";
|
|
19653
|
+
var Required = "必填";
|
|
19654
|
+
var TimeNow = "此刻";
|
|
19655
|
+
var zh_cn = {
|
|
19656
|
+
"Action.countDown": "请等待 ${timeLeft} 秒",
|
|
19657
|
+
"Alert.info": "系统消息",
|
|
19658
|
+
"App.home": "首页",
|
|
19659
|
+
"App.navigation": "导航",
|
|
19660
|
+
asc: asc,
|
|
19661
|
+
"Calendar.datepicker": "日期选择",
|
|
19662
|
+
"Calendar.yearmonth": "YYYY年MM月",
|
|
19663
|
+
"Calendar.year": "YYYY年",
|
|
19664
|
+
"Calendar.begin": "开始",
|
|
19665
|
+
"Calendar.end": "结束",
|
|
19666
|
+
"Calendar.beginAndEnd": "始/终",
|
|
19667
|
+
"Calendar.toast": "超出日期范围",
|
|
19668
|
+
"Calendar.startPick": "开始时间",
|
|
19669
|
+
"Calendar.endPick": "结束时间",
|
|
19670
|
+
Schedule: Schedule,
|
|
19671
|
+
Time: Time,
|
|
19672
|
+
Content: Content,
|
|
19673
|
+
cancel: cancel,
|
|
19674
|
+
"Card.dragTip": "请拖动顶部的按钮进行排序",
|
|
19675
|
+
"Card.toggleDrag": "对卡片进行排序操作",
|
|
19676
|
+
"City.street": "请输入街道信息",
|
|
19677
|
+
clear: clear,
|
|
19678
|
+
"ColorPicker.placeholder": "请选择颜色",
|
|
19679
|
+
"SubForm.add": "新增一项",
|
|
19680
|
+
add: add,
|
|
19681
|
+
"Combo.dragDropSort": "拖拽排序",
|
|
19682
|
+
"Combo.invalidData": "数值格式不正确",
|
|
19683
|
+
"Combo.maxLength": "组合表单超出{{maxLength}}个,请删除",
|
|
19684
|
+
"Combo.minLength": "组合表单数量不足{{minLength}}个,请添加更多",
|
|
19685
|
+
"Combo.type": "类型",
|
|
19686
|
+
confirm: confirm,
|
|
19687
|
+
"Copyable.tip": "点击复制",
|
|
19688
|
+
"CRUD.exportCSV": "导出 CSV",
|
|
19689
|
+
"CRUD.exportExcel": "导出 Excel",
|
|
19690
|
+
"CRUD.fetchFailed": "获取失败",
|
|
19691
|
+
"CRUD.filter": "筛选",
|
|
19692
|
+
"CRUD.selected": "已选{{total}}条:",
|
|
19693
|
+
"CRUD.invalidArray": "data.items 必须是数组",
|
|
19694
|
+
"CRUD.invalidData": "返回数据格式不正确,data 没有数据",
|
|
19695
|
+
"CRUD.loadMore": "加载更多",
|
|
19696
|
+
"CRUD.perPage": "每页显示",
|
|
19697
|
+
"CRUD.stat": "{{page}}/{{lastPage}} 总共:{{total}} 项",
|
|
19698
|
+
"CRUD.paginationGoText": "前往",
|
|
19699
|
+
"CRUD.paginationPageText": "页",
|
|
19700
|
+
"PaginationWrapper.placeholder": "请配置内容",
|
|
19701
|
+
"Pagination.select": "{{count}} 条/页",
|
|
19702
|
+
"Pagination.goto": "跳转至",
|
|
19703
|
+
"Pagination.go": "跳转",
|
|
19704
|
+
"Pagination.totalPage": "共 {{lastPage}} 页",
|
|
19705
|
+
"Pagination.totalCount": "共 {{total}} 条",
|
|
19706
|
+
"Date.titleYear": "选择年",
|
|
19707
|
+
"Date.titleMonth": "选择年月",
|
|
19708
|
+
"Date.titleDate": "选择年月日",
|
|
19709
|
+
"Date.titleTime": "选择时间",
|
|
19710
|
+
"Date.daysago": "{{days}}天前",
|
|
19711
|
+
"Date.dayslater": "{{days}}天后",
|
|
19712
|
+
"Date.endOfMonth": "本月最后一天",
|
|
19713
|
+
"Date.endOfWeek": "周日",
|
|
19714
|
+
"Date.endOfLastMonth": "上月最后一天",
|
|
19715
|
+
"Date.hoursago": "{{hours}}小时前",
|
|
19716
|
+
"Date.hourslater": "{{hours}}小时后",
|
|
19717
|
+
"Date.invalid": "日期无效",
|
|
19718
|
+
"Date.monday": "本周一",
|
|
19719
|
+
"Date.monthsago": "{{months}}月前",
|
|
19720
|
+
"Date.monthslater": "{{months}}月后",
|
|
19721
|
+
"Date.now": "现在",
|
|
19722
|
+
"Date.placeholder": "请选择日期",
|
|
19723
|
+
"Date.quartersago": "{{quarters}}季度前",
|
|
19724
|
+
"Date.quarterslater": "{{quarters}}季度后",
|
|
19725
|
+
"Date.startOfLastMonth": "上个月第一天",
|
|
19726
|
+
"Date.startOfLastQuarter": "上个季度第一天",
|
|
19727
|
+
"Date.startOfMonth": "本月第一天",
|
|
19728
|
+
"Date.startOfQuarter": "本季度第一天",
|
|
19729
|
+
"Date.today": "今天",
|
|
19730
|
+
"Date.tomorrow": "明天",
|
|
19731
|
+
"Date.weeksago": "{{weeks}}周前",
|
|
19732
|
+
"Date.weekslater": "{{weeks}}周后",
|
|
19733
|
+
"Date.yesterday": "昨天",
|
|
19734
|
+
"dateformat.year": "YYYY年",
|
|
19735
|
+
"DateRange.daysago": "最近{{days}}天",
|
|
19736
|
+
"DateRange.dayslater": "{{days}}天以内",
|
|
19737
|
+
"DateRange.weeksago": "最近{{weeks}}周",
|
|
19738
|
+
"DateRange.weekslater": "{{weeks}}周以内",
|
|
19739
|
+
"DateRange.monthsago": "最近{{months}}月",
|
|
19740
|
+
"DateRange.monthslater": "{{months}}月以内",
|
|
19741
|
+
"DateRange.quartersago": "最近{{quarters}}季度",
|
|
19742
|
+
"DateRange.quarterslater": "{{quarters}}季度以内",
|
|
19743
|
+
"DateRange.yearsago": "最近{{years}}年",
|
|
19744
|
+
"DateRange.yearslater": "{{years}}年以内",
|
|
19745
|
+
"DateRange.hoursago": "最近{{hours}}小时",
|
|
19746
|
+
"DateRange.hourslater": "{{hours}}小时以内",
|
|
19747
|
+
"DateRange.1daysago": "最近1天",
|
|
19748
|
+
"DateRange.1dayago": "最近1天",
|
|
19749
|
+
"DateRange.7daysago": "最近7天",
|
|
19750
|
+
"DateRange.30daysago": "最近30天",
|
|
19751
|
+
"DateRange.90daysago": "最近90天",
|
|
19752
|
+
"DateRange.lastWeek": "上周",
|
|
19753
|
+
"DateRange.lastMonth": "上个月",
|
|
19754
|
+
"DateRange.lastQuarter": "上个季度",
|
|
19755
|
+
"DateRange.placeholder": "请选择日期范围",
|
|
19756
|
+
"DateRange.thisWeek": "这个周",
|
|
19757
|
+
"DateRange.thisMonth": "这个月",
|
|
19758
|
+
"DateRange.thisQuarter": "这个季度",
|
|
19759
|
+
"DateRange.valueConcat": " 至 ",
|
|
19760
|
+
"DateTime.placeholder": "请选择日期以及时间",
|
|
19761
|
+
"MonthRange.placeholder": "请选择月份范围",
|
|
19762
|
+
"QuarterRange.placeholder": "请选择季度范围",
|
|
19763
|
+
"YearRange.placeholder": "请选择年份范围",
|
|
19764
|
+
"DateRange.thisYear": "今年",
|
|
19765
|
+
"DateRange.lastYear": "去年",
|
|
19766
|
+
"delete": "删除",
|
|
19767
|
+
deleteConfirm: deleteConfirm,
|
|
19768
|
+
deleteFailed: deleteFailed,
|
|
19769
|
+
desc: desc,
|
|
19770
|
+
"Dialog.close": "关闭",
|
|
19771
|
+
"Dialog.title": "弹框",
|
|
19772
|
+
"Embed.invalidRoot": "选择器不对,页面上没有此元素",
|
|
19773
|
+
"Embed.downloading": "文件即将开始下载",
|
|
19774
|
+
"Excel.placeholder": "拖拽 Excel 到这,或点击上传",
|
|
19775
|
+
"Excel.parsed": "已解析 {{filename}}",
|
|
19776
|
+
fetchFailed: fetchFailed,
|
|
19777
|
+
"File.continueAdd": "继续添加",
|
|
19778
|
+
"File.downloadTpl": "下载模板",
|
|
19779
|
+
"File.dragDrop": "将文件拖到此处,或",
|
|
19780
|
+
"File.clickUpload": "点击上传",
|
|
19781
|
+
"File.helpText": "帮助文档",
|
|
19782
|
+
"File.errorRetry": "文件上传失败请重试",
|
|
19783
|
+
"File.failed": "失败文件",
|
|
19784
|
+
"File.invalidType": "{{files}} 不符合类型的 {{accept}} 的设定,请仔细检查",
|
|
19785
|
+
"File.maxLength": "最多上传 {{maxLength}} 个文件",
|
|
19786
|
+
"File.maxSize": "{{filename}} 大小为 {{actualSize}} 超出了最大为 {{maxSize}} (字节)的限制",
|
|
19787
|
+
"File.pause": "暂停上传",
|
|
19788
|
+
"File.repick": "重新选择",
|
|
19789
|
+
"File.result": "已成功上传 {{uploaded}} 个文件,{{failed}} 个文件上传失败,",
|
|
19790
|
+
"File.retry": "重试上传",
|
|
19791
|
+
"File.sizeLimit": "文件大小不超过 {{maxSize}}",
|
|
19792
|
+
"File.start": "开始上传",
|
|
19793
|
+
"File.upload": "文件上传",
|
|
19794
|
+
"Image.upload": "图片上传",
|
|
19795
|
+
"File.uploadFailed": "接口返回错误,请仔细检查",
|
|
19796
|
+
"File.uploading": "上传中...",
|
|
19797
|
+
"FormItem.autoFillLoadFailed": "接口返回错误,请仔细检查",
|
|
19798
|
+
"FormItem.autoFillSuggest": "参照录入数据",
|
|
19799
|
+
"Form.loadOptionsFailed": "加载选项失败,原因:{{reason}}",
|
|
19800
|
+
"Form.submit": "提交",
|
|
19801
|
+
"Form.title": "表单",
|
|
19802
|
+
"Form.unique": "当前值不唯一",
|
|
19803
|
+
"Form.validateFailed": "依赖的部分字段没有通过验证",
|
|
19804
|
+
"Form.nestedError": "表单不要直接嵌套在表单下面",
|
|
19805
|
+
"Image.configError": "图片多选配置和裁剪配置只能设置一个",
|
|
19806
|
+
"Image.crop": "裁剪图片",
|
|
19807
|
+
"Image.dragDrop": "将图片拖拽到此处",
|
|
19808
|
+
"Image.height": "高度 {{height}}px",
|
|
19809
|
+
"Image.limitRatio": "请上传尺寸比率为 {{ratio}} 的图片",
|
|
19810
|
+
"Image.pasteTip": "可以粘贴剪切板中的图片",
|
|
19811
|
+
"Image.placeholder": "点击选择图片或拖拽图片到这里",
|
|
19812
|
+
"Image.size": "尺寸({{width}} x {{height}})",
|
|
19813
|
+
"Image.sizeMax": "请上传不要大于{{info}}的图片",
|
|
19814
|
+
"Image.sizeMin": "请上传不要小于{{info}}的图片",
|
|
19815
|
+
"Image.sizeNotEqual": "请上传{{info}}的图片",
|
|
19816
|
+
"Image.width": "宽度 {{width}}px",
|
|
19817
|
+
"Image.zoomIn": "查看大图",
|
|
19818
|
+
"Image.limitMax": "上传图片大于{{info}},请检查图片尺寸",
|
|
19819
|
+
"Image.limitMin": "上传图片小于{{info}},请检查图片尺寸",
|
|
19820
|
+
"Log.mustHaveSource": "需要配置 Source",
|
|
19821
|
+
"Log.showLineNumber": "显示行数",
|
|
19822
|
+
"Log.notShowLineNumber": "不现实行数",
|
|
19823
|
+
"Log.expand": "展开工具栏",
|
|
19824
|
+
"Log.collapse": "收起工具栏",
|
|
19825
|
+
link: link,
|
|
19826
|
+
loading: loading,
|
|
19827
|
+
"LocationPicker.placeholder": "请选择位置",
|
|
19828
|
+
"Month.placeholder": "请选择月份",
|
|
19829
|
+
"Nav.sourceError": "获取链接错误",
|
|
19830
|
+
networkError: networkError,
|
|
19831
|
+
noResult: noResult,
|
|
19832
|
+
"NumberInput.placeholder": "请输入数字",
|
|
19833
|
+
"Options.addPlaceholder": "请输入名称",
|
|
19834
|
+
"Options.deleteAPI": "必须设置 deleteAPI",
|
|
19835
|
+
"Options.editLabel": "编辑{{label}}",
|
|
19836
|
+
"Options.label": "选项",
|
|
19837
|
+
"Options.createFailed": "新增失败,请仔细检查",
|
|
19838
|
+
"placeholder.empty": "<空>",
|
|
19839
|
+
"placeholder.enter": "请输入",
|
|
19840
|
+
"placeholder.noData": "暂无数据",
|
|
19841
|
+
"placeholder.noOption": "暂无选项",
|
|
19842
|
+
"placeholder.selectData": "请先选择数据",
|
|
19843
|
+
"Quarter.placeholder": "请选择季度",
|
|
19844
|
+
"Repeat.pre": "每",
|
|
19845
|
+
reset: reset,
|
|
19846
|
+
saveFailed: saveFailed,
|
|
19847
|
+
saveSuccess: saveSuccess,
|
|
19848
|
+
search: search,
|
|
19849
|
+
searchHistory: searchHistory,
|
|
19850
|
+
searchResult: searchResult,
|
|
19851
|
+
stop: stop,
|
|
19852
|
+
"Checkboxes.selectAll": "全选/不选",
|
|
19853
|
+
"Select.checkAll": "全选",
|
|
19854
|
+
"Select.clear": "移除",
|
|
19855
|
+
"Select.upload": "重新上传",
|
|
19856
|
+
"Select.clearAll": "移除所有",
|
|
19857
|
+
"Select.createLabel": "新增选项",
|
|
19858
|
+
"Select.placeholder": "请选择",
|
|
19859
|
+
"Select.searchPromptText": "搜索",
|
|
19860
|
+
sort: sort,
|
|
19861
|
+
"SubForm.button": "设置",
|
|
19862
|
+
"SubForm.editDetail": "编辑详情",
|
|
19863
|
+
"System.error": "系统错误",
|
|
19864
|
+
"System.notify": "系统消息",
|
|
19865
|
+
"System.copy": "内容已复制到粘贴板",
|
|
19866
|
+
"System.requestError": "接口报错:",
|
|
19867
|
+
"System.requestErrorStatus": "接口出错,状态码是:",
|
|
19868
|
+
"Table.addRow": "新增一行",
|
|
19869
|
+
"Table.copyRow": "复制一行",
|
|
19870
|
+
"Table.columnsVisibility": "点击选择显示列",
|
|
19871
|
+
"Table.deleteRow": "删除当前行",
|
|
19872
|
+
"Table.discard": "放弃",
|
|
19873
|
+
"Table.dragTip": "请拖动左边的按钮进行排序",
|
|
19874
|
+
"Table.editing": "请先处理表格编辑项",
|
|
19875
|
+
"Table.editRow": "编辑当前行",
|
|
19876
|
+
"Table.modified": "当前有 {{modified}} 条记录修改但没有提交,你可以:",
|
|
19877
|
+
"Table.moved": "当前有 {{moved}} 条记录修改了顺序但没有提交,你可以:",
|
|
19878
|
+
"Table.operation": "操作",
|
|
19879
|
+
"Table.playload": "action 上请配置 payload, 否则不清楚要删除哪个",
|
|
19880
|
+
"Table.startSort": "点击开始排序",
|
|
19881
|
+
"Table.valueField": "请配置 valueField",
|
|
19882
|
+
"Table.index": "序号",
|
|
19883
|
+
"Table.toggleColumn": "显示列",
|
|
19884
|
+
"Table.searchFields": "设置查询字段",
|
|
19885
|
+
"Tag.placeholder": "请输入/选择标签",
|
|
19886
|
+
"Tag.tip": "最近使用的标签",
|
|
19887
|
+
"Text.add": "新增:{{label}}",
|
|
19888
|
+
"Time.placeholder": "请选择时间",
|
|
19889
|
+
"Transfer.configError": "配置错误,选项无法与左侧选项对应",
|
|
19890
|
+
"Transfer.refreshIcon": "点击刷新重新加载",
|
|
19891
|
+
"Transfer.searchKeyword": "请输入关键字",
|
|
19892
|
+
"Transfer.available": "可选项",
|
|
19893
|
+
"Transfer.selectd": "已选项",
|
|
19894
|
+
"Transfer.selectFromLeft": "请选择左侧数据",
|
|
19895
|
+
"Tree.addChild": "添加子节点",
|
|
19896
|
+
"Tree.addRoot": "添加一级节点",
|
|
19897
|
+
"Tree.editNode": "编辑该节点",
|
|
19898
|
+
"Tree.removeNode": "移除该节点",
|
|
19899
|
+
"Tree.root": "顶级",
|
|
19900
|
+
"validate.equals": "输入的数据与 $1 不一致",
|
|
19901
|
+
"validate.equalsField": "输入的数据与 $1 值不一致",
|
|
19902
|
+
"validate.gt": "请输入大于 $1 的值",
|
|
19903
|
+
"validate.isAlpha": "请输入字母",
|
|
19904
|
+
"validate.isAlphanumeric": "请输入字母或者数字",
|
|
19905
|
+
"validate.isEmail": "Email 格式不正确",
|
|
19906
|
+
"validate.isFloat": "请输入浮点型数值",
|
|
19907
|
+
"validate.isId": "请输入合法的身份证号",
|
|
19908
|
+
"validate.isInt": "请输入整型数字",
|
|
19909
|
+
"validate.isJson": "JSON 格式不正确",
|
|
19910
|
+
"validate.isLength": "请输入长度为 $1 的内容",
|
|
19911
|
+
"validate.isNumeric": "请输入数字",
|
|
19912
|
+
"validate.isPhoneNumber": "请输入合法的手机号码",
|
|
19913
|
+
"validate.isRequired": "这是必填项",
|
|
19914
|
+
"validate.isTelNumber": "请输入合法的电话号码",
|
|
19915
|
+
"validate.isUrl": "URL 格式不正确",
|
|
19916
|
+
"validate.isUrlPath": "只能输入字母、数字、`-` 和 `_`.",
|
|
19917
|
+
"validate.isWords": "请输入单词",
|
|
19918
|
+
"validate.isZipcode": "请输入合法的邮编地址",
|
|
19919
|
+
"validate.lt": "请输入小于 $1 的值",
|
|
19920
|
+
"validate.matchRegexp": "格式不正确, 请输入符合规则为 `${1|raw}` 的内容。",
|
|
19921
|
+
"validate.maximum": "当前输入值超出最大值 $1",
|
|
19922
|
+
"validate.maxLength": "请控制内容长度, 不要输入 $1 个以上字符",
|
|
19923
|
+
"validate.minimum": "当前输入值低于最小值 $1",
|
|
19924
|
+
"validate.minLength": "请输入更多的内容,至少输入 $1 个字符。",
|
|
19925
|
+
"validate.notEmptyString": "请不要全输入空白字符",
|
|
19926
|
+
validateFailed: validateFailed,
|
|
19927
|
+
"Wizard.configError": "配置错误",
|
|
19928
|
+
"Wizard.finish": "完成",
|
|
19929
|
+
"Wizard.next": "下一步",
|
|
19930
|
+
"Wizard.prev": "上一步",
|
|
19931
|
+
"Wizard.saveAndNext": "保存并下一步",
|
|
19932
|
+
"year-to-year": "{{from}} 年 - {{to}} 年",
|
|
19933
|
+
"Year.placeholder": "请选择年",
|
|
19934
|
+
reload: reload,
|
|
19935
|
+
rotate: rotate,
|
|
19936
|
+
"Editor.fullscreen": "全屏",
|
|
19937
|
+
"Editor.exitFullscreen": "退出全屏",
|
|
19938
|
+
"Condition.not": "非",
|
|
19939
|
+
"Condition.and": "并",
|
|
19940
|
+
"Condition.or": "或",
|
|
19941
|
+
"Condition.add_cond": "添加条件",
|
|
19942
|
+
"Condition.add_cond_group": "添加条件组",
|
|
19943
|
+
"Condition.delete_cond_group": "删除组",
|
|
19944
|
+
"Condition.equal": "等于",
|
|
19945
|
+
"Condition.not_equal": "不等于",
|
|
19946
|
+
"Condition.less": "小于",
|
|
19947
|
+
"Condition.less_or_equal": "小于或等于",
|
|
19948
|
+
"Condition.greater": "大于",
|
|
19949
|
+
"Condition.greater_or_equal": "大于或等于",
|
|
19950
|
+
"Condition.between": "属于范围",
|
|
19951
|
+
"Condition.not_between": "不属于范围",
|
|
19952
|
+
"Condition.is_empty": "为空",
|
|
19953
|
+
"Condition.is_not_empty": "不为空",
|
|
19954
|
+
"Condition.like": "模糊匹配",
|
|
19955
|
+
"Condition.not_like": "不匹配",
|
|
19956
|
+
"Condition.starts_with": "匹配开头",
|
|
19957
|
+
"Condition.ends_with": "匹配结尾",
|
|
19958
|
+
"Condition.select_equals": "等于",
|
|
19959
|
+
"Condition.select_not_equals": "不等于",
|
|
19960
|
+
"Condition.select_any_in": "包含",
|
|
19961
|
+
"Condition.select_not_any_in": "不包含",
|
|
19962
|
+
"Condition.placeholder": "请输入文本",
|
|
19963
|
+
"Condition.cond_placeholder": "请选择操作",
|
|
19964
|
+
"Condition.field_placeholder": "请选择字段",
|
|
19965
|
+
"Condition.blank": "空",
|
|
19966
|
+
"Condition.expression": "表达式",
|
|
19967
|
+
"Condition.formula_placeholder": "请输入公式",
|
|
19968
|
+
"Condition.fun_error": "方法未定义",
|
|
19969
|
+
"InputTable.uniqueError": "列`{{label}}`没有通过唯一验证",
|
|
19970
|
+
"Timeline.collapseText": "展开",
|
|
19971
|
+
"Timeline.expandText": "折叠",
|
|
19972
|
+
collapse: collapse,
|
|
19973
|
+
expand: expand,
|
|
19974
|
+
"FormulaEditor.btnLabel": "公式编辑",
|
|
19975
|
+
"FormulaEditor.title": "公式编辑器",
|
|
19976
|
+
"FormulaEditor.variable": "变量",
|
|
19977
|
+
"FormulaEditor.function": "函数",
|
|
19978
|
+
"FormulaEditor.invalidData": "公式值校验错误,错误的位置/原因是 {{err}}",
|
|
19979
|
+
"pullRefresh.pullingText": "下拉即可刷新...",
|
|
19980
|
+
"pullRefresh.loosingText": "释放即可刷新...",
|
|
19981
|
+
"pullRefresh.loadingText": "加载中...",
|
|
19982
|
+
"pullRefresh.successText": "加载成功",
|
|
19983
|
+
"Picker.placeholder": "请点击右侧的图标",
|
|
19984
|
+
"UserSelect.edit": "编辑",
|
|
19985
|
+
"UserSelect.save": "保存",
|
|
19986
|
+
"UserSelect.resultSort": "选择结果排序",
|
|
19987
|
+
"UserSelect.selected": "已选",
|
|
19988
|
+
"UserSelect.clear": "清空",
|
|
19989
|
+
"SchemaType.string": "文本",
|
|
19990
|
+
"SchemaType.number": "数字",
|
|
19991
|
+
"SchemaType.integer": "整数",
|
|
19992
|
+
"SchemaType.object": "对象",
|
|
19993
|
+
"SchemaType.array": "数组",
|
|
19994
|
+
"SchemaType.boolean": "布尔",
|
|
19995
|
+
"SchemaType.null": "Null",
|
|
19996
|
+
"SchemaType.any": "任意",
|
|
19997
|
+
"JSONSchema.title": "名称",
|
|
19998
|
+
"JSONSchema.default": "默认值",
|
|
19999
|
+
"JSONSchema.key": "字段名",
|
|
20000
|
+
"JSONSchema.description": "描述",
|
|
20001
|
+
"JSONSchema.add_prop": "添加属性",
|
|
20002
|
+
"JSONSchema.array_items": "成员类型",
|
|
20003
|
+
Required: Required,
|
|
20004
|
+
TimeNow: TimeNow
|
|
20005
|
+
};
|
|
20006
|
+
|
|
20007
|
+
/*
|
|
20008
|
+
* @Author: 殷亮辉 yinlianghui@hotoa.com
|
|
20009
|
+
* @Date: 2025-08-23 21:36:26
|
|
20010
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
20011
|
+
* @LastEditTime: 2025-08-26 11:49:26
|
|
20012
|
+
*/
|
|
20013
|
+
|
|
20014
|
+
const resourcesMap = {
|
|
20015
|
+
"en-US": en_us,
|
|
20016
|
+
"zh-CN": zh_cn,
|
|
20017
|
+
};
|
|
20018
|
+
|
|
20019
|
+
const getUserLanguage = () => {
|
|
20020
|
+
var lan = Builder.settings.context?.user?.language || window.navigator.language;
|
|
20021
|
+
if (lan === 'en') {
|
|
20022
|
+
lan = 'en-US';
|
|
20023
|
+
}
|
|
20024
|
+
return lan;
|
|
20025
|
+
};
|
|
20026
|
+
|
|
20027
|
+
var locale = "zh-CN";
|
|
20028
|
+
if (typeof window != 'undefined') {
|
|
20029
|
+
locale = getUserLanguage();
|
|
20030
|
+
}
|
|
20031
|
+
|
|
20032
|
+
function getAmisLocaleResource() {
|
|
20033
|
+
var rs = resourcesMap[locale];
|
|
20034
|
+
if (rs) {
|
|
20035
|
+
return rs;
|
|
20036
|
+
}
|
|
20037
|
+
return resourcesMap["zh-CN"];
|
|
20038
|
+
}
|
|
20039
|
+
|
|
20040
|
+
if (typeof window != 'undefined') {
|
|
20041
|
+
var currentAmis = (window.amisRequire && window.amisRequire('amis')) || Amis;
|
|
20042
|
+
currentAmis && currentAmis.registerLocale(locale, getAmisLocaleResource());
|
|
20043
|
+
}
|
|
20044
|
+
|
|
20045
|
+
export { index as Field, Router, absoluteUrl, amisRender, amisRootClick, cloneObject, conditionsToFilters, createObject, defaultsDeep, deleteVariable, execute, executeButton, extendObject, fetchAPI, filtersToConditions, getAmisInputTableSchema, getAmisLocaleResource, getApp, getApps, getAuthToken, getAuthorization, getButton, getButtonVisible, getButtonVisibleOn, getButtons, getCalendarSchema, getCreatedInfoTpl, getDateTimeTpl, getDateTpl, getDefaultRenderData, getEnv, getEnvs, getEvn, getField, getFieldTpl, getFileSrc, getFlowFormSchema, getFormPageInitSchema, getFormSchema, getGlobalNowData, getIdsPickerSchema, getImageSrc, getInstanceInfo, getListPageInitSchema, getListSchema, getListViewButtons, getListViewColumns, getListViewFilter, getListViewItemButtons, getListViewSort, getListviewInitSchema, getLocationTpl, getLookupSapceUserTreeSchema, getLookupTpl, getModifiedInfoTpl, getNameTpl, getNameTplUrl, getNotifications, getNumberTpl, getObjectDetailButtons, getObjectDetailButtonsSchemas, getObjectDetailMoreButtons, getObjectFieldsFilterBarSchema, getObjectFieldsFilterButtonSchema, getObjectFieldsFilterFormSchema, getObjectListHeader, getObjectListHeaderFieldsFilterBar, getObjectListHeaderFirstLine, getObjectListHeaderSecordLine, getObjectListViewButtonsSchemas, getObjectRecordDetailHeader, getObjectRecordDetailRelatedListButtonsSchemas, getObjectRecordDetailRelatedListHeader, getObjectRelated, getObjectRelatedList, getObjectRelatedListButtons, getObjectRelatedListHeader, getObjectRelatedListsMiniSchema, getPage, getPasswordTpl, getRecord, getRecordDetailHeaderSchema, getRecordDetailMiniSchema, getRecordDetailRelatedListSchema, getRecordDetailSchema, getRecordPageInitSchema, getRecordPermissions, getRecordServiceSchema, getRefObjectNameFieldName, getReferenceTo, getReferenceToFieldSchema, getReferenceToSync, getRelatedFieldTpl, getRelatedFieldValue, getRelatedListSchema, getRelatedsCount, getRootUrl, getSelectMap, getSelectTpl, getSelectUserSchema, getSpaceUsersPickerAmisSchema, getSpaceUsersPickerSchema, getSteedosAuth, getSwitchTpl, getTableSchema, getTenantId, getTimeTpl, getUISchema, getUISchemaSync$1 as getUISchemaSync, getUiFieldTpl, getUiFileSizeTpl, getUserId, getUserLanguage$1 as getUserLanguage, getViewSchema, isExpression, isObject, lookupToAmis, lookupToAmisIdsPicker, lookupToAmisPicker, lookupToAmisSelect, lookupToAmisSelectUser, markReadAll, parseSingleExpression, registerRemoteAssets, registerRenders, setEnv, setEnvs, setRootUrl, setSteedosAuth, setUISchemaFunction, setVariable, standardButtonsTodo, uuidv4 };
|
|
19056
20046
|
//# sourceMappingURL=index.esm.js.map
|