@das-fed/ui 6.4.0-dev.55.13 → 6.4.0-dev.55.14
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 +5 -5
- package/packages/business-components/change-enterprises/index.js +8 -8
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/index.js +37 -37
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/index.js +16 -16
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/index.js +53 -53
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/export-button/index.js +30 -30
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/index.js +56 -56
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/index.js +1 -1
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +58 -58
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +209 -214
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +25 -25
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/upload-file/index.js +13 -13
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +245 -245
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +67 -67
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +61 -61
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +7 -7
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +57 -57
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/live-player/index.js +142 -142
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +3 -3
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4 -4
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/table/index.js +458 -458
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tree/index.js +1 -1
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/upload/index.js +7 -7
- package/packages/components/upload/index.js.gz +0 -0
|
Binary file
|
|
@@ -52795,9 +52795,9 @@ const Cte = ai.get("/emergency-event/process-track"), Tte = ["", "待核实", "
|
|
|
52795
52795
|
消防栓箱柜: { "zh-CN": "消防栓箱柜", en: "Fire Hydrant Cabinet", _appCode: "framework" },
|
|
52796
52796
|
检查项内容: { "zh-CN": "检查项内容", en: "Inspection Item Content", _appCode: "framework" },
|
|
52797
52797
|
全部: { "zh-CN": "全部", en: "All", _appCode: "framework" },
|
|
52798
|
-
超出正常范围值: { "zh-CN": "超出正常范围值", en: "Exceeds
|
|
52799
|
-
不能大于: { "zh-CN": "不能大于", en: "Cannot be
|
|
52800
|
-
不能小于: { "zh-CN": "不能小于", en: "Cannot be
|
|
52798
|
+
超出正常范围值: { "zh-CN": "超出正常范围值", en: "Exceeds normal range value", _appCode: "framework" },
|
|
52799
|
+
不能大于: { "zh-CN": "不能大于", en: "Cannot be greater than", _appCode: "framework" },
|
|
52800
|
+
不能小于: { "zh-CN": "不能小于", en: "Cannot be less than", _appCode: "framework" },
|
|
52801
52801
|
加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
|
|
52802
52802
|
正在实时预览: { "zh-CN": "正在实时预览", en: "Live Preview", _appCode: "framework" },
|
|
52803
52803
|
正在告警回放: { "zh-CN": "正在告警回放", en: "Alarm Playback", _appCode: "framework" },
|
|
@@ -52838,24 +52838,24 @@ const Cte = ai.get("/emergency-event/process-track"), Tte = ["", "待核实", "
|
|
|
52838
52838
|
处理时间: { "zh-CN": "处理时间", en: "Processing Time", _appCode: "framework" },
|
|
52839
52839
|
工单编码: { "zh-CN": "工单编码", en: "Work Order Code", _appCode: "framework" },
|
|
52840
52840
|
事件编码: { "zh-CN": "事件编码", en: "Event Code", _appCode: "framework" },
|
|
52841
|
-
生成工单: { "zh-CN": "生成工单", en: "Generate
|
|
52842
|
-
生成应急事件: { "zh-CN": "生成应急事件", en: "Generate
|
|
52841
|
+
生成工单: { "zh-CN": "生成工单", en: "Generate work order", _appCode: "framework" },
|
|
52842
|
+
生成应急事件: { "zh-CN": "生成应急事件", en: "Generate emergency event", _appCode: "framework" },
|
|
52843
52843
|
收起: { "zh-CN": "收起", en: "Collapse", _appCode: "framework" },
|
|
52844
52844
|
展开: { "zh-CN": "展开", en: "Expand", _appCode: "framework" },
|
|
52845
52845
|
应急详情: { "zh-CN": "应急详情", en: "Emergency Details", _appCode: "framework" },
|
|
52846
52846
|
告警已进入历史库不可处理: {
|
|
52847
52847
|
"zh-CN": "告警已进入历史库不可处理",
|
|
52848
|
-
en: "Alarm
|
|
52848
|
+
en: "Alarm has been archived and cannot be processed",
|
|
52849
52849
|
_appCode: "framework"
|
|
52850
52850
|
},
|
|
52851
52851
|
处理: { "zh-CN": "处理", en: "Process", _appCode: "framework" },
|
|
52852
52852
|
历史告警: { "zh-CN": "历史告警", en: "Historical Alarms", _appCode: "framework" },
|
|
52853
52853
|
全状态: { "zh-CN": "全状态", en: "All Statuses", _appCode: "framework" },
|
|
52854
52854
|
全等级: { "zh-CN": "全等级", en: "All Levels", _appCode: "framework" },
|
|
52855
|
-
实时告警: { "zh-CN": "实时告警", en: "Real-
|
|
52855
|
+
实时告警: { "zh-CN": "实时告警", en: "Real-time alarms", _appCode: "framework" },
|
|
52856
52856
|
时间跨度不能超过一年: {
|
|
52857
52857
|
"zh-CN": "时间跨度不能超过一年",
|
|
52858
|
-
en: "Time
|
|
52858
|
+
en: "Time span cannot exceed one year",
|
|
52859
52859
|
_appCode: "framework"
|
|
52860
52860
|
},
|
|
52861
52861
|
处理类型: { "zh-CN": "处理类型", en: "Processing Type", _appCode: "framework" },
|
|
@@ -52869,7 +52869,7 @@ const Cte = ai.get("/emergency-event/process-track"), Tte = ["", "待核实", "
|
|
|
52869
52869
|
工单规则: { "zh-CN": "工单规则", en: "Work Order Rules", _appCode: "framework" },
|
|
52870
52870
|
事件类型: { "zh-CN": "事件类型", en: "Event Type", _appCode: "framework" },
|
|
52871
52871
|
事件等级: { "zh-CN": "事件等级", en: "Event Level", _appCode: "framework" },
|
|
52872
|
-
处置时限: { "zh-CN": "处置时限", en: "Processing
|
|
52872
|
+
处置时限: { "zh-CN": "处置时限", en: "Processing time limit", _appCode: "framework" },
|
|
52873
52873
|
结束处理: { "zh-CN": "结束处理", en: "End Processing", _appCode: "framework" },
|
|
52874
52874
|
继续处理: { "zh-CN": "继续处理", en: "Continue Processing", _appCode: "framework" },
|
|
52875
52875
|
时: { "zh-CN": "时", en: "Hours", _appCode: "framework" },
|
|
@@ -52889,21 +52889,21 @@ const Cte = ai.get("/emergency-event/process-track"), Tte = ["", "待核实", "
|
|
|
52889
52889
|
二级: { "zh-CN": "二级", en: "Level 2", _appCode: "framework" },
|
|
52890
52890
|
三级: { "zh-CN": "三级", en: "Level 3", _appCode: "framework" },
|
|
52891
52891
|
四级: { "zh-CN": "四级", en: "Level 4", _appCode: "framework" },
|
|
52892
|
-
告警处理失败: { "zh-CN": "告警处理失败", en: "Alarm
|
|
52892
|
+
告警处理失败: { "zh-CN": "告警处理失败", en: "Alarm processing failed", _appCode: "framework" },
|
|
52893
52893
|
告警已入历史库不可处理: {
|
|
52894
52894
|
"zh-CN": "告警已入历史库不可处理",
|
|
52895
|
-
en: "All
|
|
52895
|
+
en: "All alarms have entered the historical database",
|
|
52896
52896
|
_appCode: "framework"
|
|
52897
52897
|
},
|
|
52898
52898
|
部分告警已入历史库: {
|
|
52899
52899
|
"zh-CN": "部分告警已入历史库",
|
|
52900
|
-
en: "Some
|
|
52900
|
+
en: "Some alarms have entered the historical database",
|
|
52901
52901
|
_appCode: "framework"
|
|
52902
52902
|
},
|
|
52903
52903
|
不做处理: { "zh-CN": "不做处理", en: "No Processing", _appCode: "framework" },
|
|
52904
52904
|
告警均已入历史库: {
|
|
52905
52905
|
"zh-CN": "告警均已入历史库",
|
|
52906
|
-
en: "All
|
|
52906
|
+
en: "All alarms have entered the historical database",
|
|
52907
52907
|
_appCode: "framework"
|
|
52908
52908
|
},
|
|
52909
52909
|
不作处理: { "zh-CN": "不作处理", en: "No Processing", _appCode: "framework" },
|
|
@@ -52937,10 +52937,10 @@ const Cte = ai.get("/emergency-event/process-track"), Tte = ["", "待核实", "
|
|
|
52937
52937
|
升: { "zh-CN": "升", en: "Rise", _appCode: "framework" },
|
|
52938
52938
|
停: { "zh-CN": "停", en: "Stop", _appCode: "framework" },
|
|
52939
52939
|
降: { "zh-CN": "降", en: "Lower", _appCode: "framework" },
|
|
52940
|
-
可设置的最大值为: { "zh-CN": "可设置的最大值为", en: "The
|
|
52941
|
-
可设置的最小值为: { "zh-CN": "可设置的最小值为", en: "The
|
|
52940
|
+
可设置的最大值为: { "zh-CN": "可设置的最大值为", en: "The maximum value can be set to", _appCode: "framework" },
|
|
52941
|
+
可设置的最小值为: { "zh-CN": "可设置的最小值为", en: "The minimum value can be set to", _appCode: "framework" },
|
|
52942
52942
|
逾期: { "zh-CN": "逾期", en: "Overdue", _appCode: "framework" },
|
|
52943
|
-
计划开始时间: { "zh-CN": "计划开始时间", en: "Planned
|
|
52943
|
+
计划开始时间: { "zh-CN": "计划开始时间", en: "Planned start time", _appCode: "framework" },
|
|
52944
52944
|
计划结束时间: { "zh-CN": "计划结束时间", en: "Planned End Time", _appCode: "framework" },
|
|
52945
52945
|
检查结果: { "zh-CN": "检查结果", en: "Inspection Results", _appCode: "framework" },
|
|
52946
52946
|
详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
|
|
@@ -52969,10 +52969,10 @@ const Cte = ai.get("/emergency-event/process-track"), Tte = ["", "待核实", "
|
|
|
52969
52969
|
图纸: { "zh-CN": "图纸", en: "Blueprints", _appCode: "framework" },
|
|
52970
52970
|
各业务绑定设备后: {
|
|
52971
52971
|
"zh-CN": "各业务绑定设备后",
|
|
52972
|
-
en: "After
|
|
52972
|
+
en: "After binding devices to each business",
|
|
52973
52973
|
_appCode: "framework"
|
|
52974
52974
|
},
|
|
52975
|
-
才能展示内容: { "zh-CN": "才能展示内容", en: "Content
|
|
52975
|
+
才能展示内容: { "zh-CN": "才能展示内容", en: "Content can be displayed", _appCode: "framework" },
|
|
52976
52976
|
暂无权限: { "zh-CN": "暂无权限", en: "No Permission", _appCode: "framework" },
|
|
52977
52977
|
暂无数据: { "zh-CN": "暂无数据", en: "No Data", _appCode: "framework" },
|
|
52978
52978
|
设备详情: { "zh-CN": "设备详情", en: "Device Details", _appCode: "framework" },
|
|
@@ -52991,83 +52991,83 @@ const Cte = ai.get("/emergency-event/process-track"), Tte = ["", "待核实", "
|
|
|
52991
52991
|
},
|
|
52992
52992
|
"各业务绑定设备后,才能展示内容": {
|
|
52993
52993
|
"zh-CN": "各业务绑定设备后,才能展示内容",
|
|
52994
|
-
en: "Content
|
|
52994
|
+
en: "Content can be displayed only after each business is bound to a device",
|
|
52995
52995
|
_appCode: "framework"
|
|
52996
52996
|
},
|
|
52997
52997
|
批量处理: { "zh-CN": "批量处理", en: "Batch Processing", _appCode: "framework" },
|
|
52998
52998
|
"必填,最多50个字符/汉字": {
|
|
52999
52999
|
"zh-CN": "必填,最多50个字符/汉字",
|
|
53000
|
-
en: "Required,
|
|
53000
|
+
en: "Required, up to 50 characters/chinese characters",
|
|
53001
53001
|
_appCode: "framework"
|
|
53002
53002
|
},
|
|
53003
53003
|
"必填,最多20个汉字/字符": {
|
|
53004
53004
|
"zh-CN": "必填,最多20个汉字/字符",
|
|
53005
|
-
en: "Required,
|
|
53005
|
+
en: "Required, up to 20 chinese characters/characters",
|
|
53006
53006
|
_appCode: "framework"
|
|
53007
53007
|
},
|
|
53008
53008
|
"必填,请输入1~999之间的正整数": {
|
|
53009
53009
|
"zh-CN": "必填,请输入1~999之间的正整数",
|
|
53010
|
-
en: "Required,
|
|
53010
|
+
en: "Required, please enter a positive integer between 1 and 999",
|
|
53011
53011
|
_appCode: "framework"
|
|
53012
53012
|
},
|
|
53013
53013
|
"告警处理失败,告警已入历史库不可处理": {
|
|
53014
53014
|
"zh-CN": "告警处理失败,告警已入历史库不可处理",
|
|
53015
|
-
en: "Alarm
|
|
53015
|
+
en: "Alarm processing failed, alarm has been archived and cannot be processed",
|
|
53016
53016
|
_appCode: "framework"
|
|
53017
53017
|
},
|
|
53018
53018
|
"部分告警已入历史库,不做处理": {
|
|
53019
53019
|
"zh-CN": "部分告警已入历史库,不做处理",
|
|
53020
|
-
en: "Some
|
|
53020
|
+
en: "Some alarms have been archived, no processing",
|
|
53021
53021
|
_appCode: "framework"
|
|
53022
53022
|
},
|
|
53023
53023
|
"告警均已入历史库,不作处理": {
|
|
53024
53024
|
"zh-CN": "告警均已入历史库,不作处理",
|
|
53025
|
-
en: "All
|
|
53025
|
+
en: "All alarms have been archived, no processing",
|
|
53026
53026
|
_appCode: "framework"
|
|
53027
53027
|
},
|
|
53028
|
-
"告警内容:": { "zh-CN": "告警内容:", en: "Alarm
|
|
53029
|
-
"告警时间:": { "zh-CN": "告警时间:", en: "Alarm
|
|
53030
|
-
"告警值:": { "zh-CN": "告警值:", en: "Alarm
|
|
53031
|
-
"告警对象:": { "zh-CN": "告警对象:", en: "Alarm
|
|
53032
|
-
"告警等级:": { "zh-CN": "告警等级:", en: "Alarm
|
|
53033
|
-
"告警状态:": { "zh-CN": "告警状态:", en: "Alarm
|
|
53034
|
-
"恢复值:": { "zh-CN": "恢复值:", en: "Recovered
|
|
53035
|
-
"处理状态:": { "zh-CN": "处理状态:", en: "Processing
|
|
53036
|
-
"恢复时间:": { "zh-CN": "恢复时间:", en: "Recovery
|
|
53037
|
-
"告警规则:": { "zh-CN": "告警规则:", en: "Alarm
|
|
53038
|
-
"所属应用:": { "zh-CN": "所属应用:", en: "Associated
|
|
53028
|
+
"告警内容:": { "zh-CN": "告警内容:", en: "Alarm content:", _appCode: "framework" },
|
|
53029
|
+
"告警时间:": { "zh-CN": "告警时间:", en: "Alarm time:", _appCode: "framework" },
|
|
53030
|
+
"告警值:": { "zh-CN": "告警值:", en: "Alarm value:", _appCode: "framework" },
|
|
53031
|
+
"告警对象:": { "zh-CN": "告警对象:", en: "Alarm object:", _appCode: "framework" },
|
|
53032
|
+
"告警等级:": { "zh-CN": "告警等级:", en: "Alarm level:", _appCode: "framework" },
|
|
53033
|
+
"告警状态:": { "zh-CN": "告警状态:", en: "Alarm status:", _appCode: "framework" },
|
|
53034
|
+
"恢复值:": { "zh-CN": "恢复值:", en: "Recovered value:", _appCode: "framework" },
|
|
53035
|
+
"处理状态:": { "zh-CN": "处理状态:", en: "Processing status:", _appCode: "framework" },
|
|
53036
|
+
"恢复时间:": { "zh-CN": "恢复时间:", en: "Recovery time:", _appCode: "framework" },
|
|
53037
|
+
"告警规则:": { "zh-CN": "告警规则:", en: "Alarm rules:", _appCode: "framework" },
|
|
53038
|
+
"所属应用:": { "zh-CN": "所属应用:", en: "Associated application:", _appCode: "framework" },
|
|
53039
53039
|
处理信息: { "zh-CN": "处理信息", en: "Processing Information", _appCode: "framework" },
|
|
53040
53040
|
"处理人:": { "zh-CN": "处理人:", en: "Processor:", _appCode: "framework" },
|
|
53041
|
-
"处理时间:": { "zh-CN": "处理时间:", en: "Processing
|
|
53042
|
-
"处理类型:": { "zh-CN": "处理类型:", en: "Processing
|
|
53043
|
-
"告警原因:": { "zh-CN": "告警原因:", en: "Alarm
|
|
53041
|
+
"处理时间:": { "zh-CN": "处理时间:", en: "Processing time:", _appCode: "framework" },
|
|
53042
|
+
"处理类型:": { "zh-CN": "处理类型:", en: "Processing type:", _appCode: "framework" },
|
|
53043
|
+
"告警原因:": { "zh-CN": "告警原因:", en: "Alarm reason:", _appCode: "framework" },
|
|
53044
53044
|
"处理方案:": { "zh-CN": "处理方案:", en: "Solution:", _appCode: "framework" },
|
|
53045
|
-
"工单编码:": { "zh-CN": "工单编码:", en: "Work
|
|
53046
|
-
"事件编码:": { "zh-CN": "事件编码:", en: "Event
|
|
53045
|
+
"工单编码:": { "zh-CN": "工单编码:", en: "Work order code:", _appCode: "framework" },
|
|
53046
|
+
"事件编码:": { "zh-CN": "事件编码:", en: "Event code:", _appCode: "framework" },
|
|
53047
53047
|
"备注:": { "zh-CN": "备注:", en: "Remarks:", _appCode: "framework" },
|
|
53048
|
-
"操作时间:": { "zh-CN": "操作时间:", en: "Operation
|
|
53049
|
-
"操作内容:": { "zh-CN": "操作内容:", en: "Operation
|
|
53050
|
-
"操作来源:": { "zh-CN": "操作来源:", en: "Operation
|
|
53051
|
-
"操作用户:": { "zh-CN": "操作用户:", en: "Operation
|
|
53052
|
-
"操作IP:": { "zh-CN": "操作IP:", en: "Operation
|
|
53053
|
-
"失败原因:": { "zh-CN": "失败原因:", en: "Failure
|
|
53048
|
+
"操作时间:": { "zh-CN": "操作时间:", en: "Operation time:", _appCode: "framework" },
|
|
53049
|
+
"操作内容:": { "zh-CN": "操作内容:", en: "Operation content:", _appCode: "framework" },
|
|
53050
|
+
"操作来源:": { "zh-CN": "操作来源:", en: "Operation source:", _appCode: "framework" },
|
|
53051
|
+
"操作用户:": { "zh-CN": "操作用户:", en: "Operation user:", _appCode: "framework" },
|
|
53052
|
+
"操作IP:": { "zh-CN": "操作IP:", en: "Operation ip:", _appCode: "framework" },
|
|
53053
|
+
"失败原因:": { "zh-CN": "失败原因:", en: "Failure reason:", _appCode: "framework" },
|
|
53054
53054
|
"超出正常范围值: 不能大于": {
|
|
53055
53055
|
"zh-CN": "超出正常范围值: 不能大于",
|
|
53056
|
-
en: "Exceeds
|
|
53056
|
+
en: "Exceeds normal range: cannot be greater than",
|
|
53057
53057
|
_appCode: "framework"
|
|
53058
53058
|
},
|
|
53059
53059
|
"超出正常范围值: 不能小于": {
|
|
53060
53060
|
"zh-CN": "超出正常范围值: 不能小于",
|
|
53061
|
-
en: "Exceeds
|
|
53061
|
+
en: "Exceeds normal range: cannot be less than",
|
|
53062
53062
|
_appCode: "framework"
|
|
53063
53063
|
},
|
|
53064
|
-
"超出正常范围值:": { "zh-CN": "超出正常范围值:", en: "Exceeds
|
|
53065
|
-
"执行时刻:": { "zh-CN": "执行时刻:", en: "Execution
|
|
53066
|
-
"所属策略:": { "zh-CN": "所属策略:", en: "Associated
|
|
53064
|
+
"超出正常范围值:": { "zh-CN": "超出正常范围值:", en: "Exceeds normal range:", _appCode: "framework" },
|
|
53065
|
+
"执行时刻:": { "zh-CN": "执行时刻:", en: "Execution time:", _appCode: "framework" },
|
|
53066
|
+
"所属策略:": { "zh-CN": "所属策略:", en: "Associated strategy:", _appCode: "framework" },
|
|
53067
53067
|
"加载中...": { "zh-CN": "加载中...", en: "Loading...", _appCode: "framework" },
|
|
53068
53068
|
"聚焦-": { "zh-CN": "聚焦-", en: "Focus-", _appCode: "framework" },
|
|
53069
53069
|
"聚焦+": { "zh-CN": "聚焦+", en: "Focus+", _appCode: "framework" },
|
|
53070
|
-
"必填,最多10个字符": { "zh-CN": "必填,最多10个字符", en: "Required,
|
|
53070
|
+
"必填,最多10个字符": { "zh-CN": "必填,最多10个字符", en: "Required, up to 10 characters", _appCode: "framework" }
|
|
53071
53071
|
}, xoe = ["onMousedown", "onTouchstart"], Coe = {
|
|
53072
53072
|
name: "DragResize"
|
|
53073
53073
|
}, Toe = /* @__PURE__ */ Ze({
|
|
Binary file
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/export-button/style.css';
|
|
2
2
|
import { withInstall as X } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { ref as p, defineComponent as G, computed as J, watch as
|
|
4
|
-
import { t as g, i18n as
|
|
3
|
+
import { ref as p, defineComponent as G, computed as J, watch as I, openBlock as K, createElementBlock as Q, createVNode as T, unref as h, withCtx as B, renderSlot as W, createTextVNode as Z, toDisplayString as ee, createCommentVNode as te, isRef as S } from "vue";
|
|
4
|
+
import { t as g, i18n as $, setI18nRule as se } from "@das-fed/web/packages/i18n/index";
|
|
5
5
|
import { DasDialog as ae } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
6
|
import { DasProgress as oe } from "@das-fed/ui/packages/components/progress/index";
|
|
7
7
|
import { DasButton as re } from "@das-fed/ui/packages/components/button/index";
|
|
8
8
|
import { iotProgress as le } from "@das-fed/utils/api-services/modules/iot";
|
|
9
|
-
import
|
|
9
|
+
import z from "dayjs";
|
|
10
10
|
import { DasMessage as P } from "@das-fed/ui/packages/components/message/index";
|
|
11
11
|
import { getConfig as L } from "@das-fed/utils/config";
|
|
12
12
|
let H = (a = 21) => {
|
|
@@ -21,7 +21,7 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
21
21
|
let l = p(!1), e = p(!1), s = p(""), i = p(0), o = p("normal"), m = p(!1), c, x = p(""), n = p(""), d = p(""), f = p(""), v = p(!1), k = p(""), w;
|
|
22
22
|
const Y = () => {
|
|
23
23
|
n.value = "", d.value = "", f.value = "", v.value = !1, k.value = "";
|
|
24
|
-
},
|
|
24
|
+
}, O = async (t, u = "", y = "") => {
|
|
25
25
|
o.value = "normal", i.value = 0, s.value = y || g("导出进度"), e.value = !0;
|
|
26
26
|
const b = await (t == null ? void 0 : t());
|
|
27
27
|
if (!b.status) {
|
|
@@ -29,21 +29,21 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
_(b.taskId, "action", "");
|
|
32
|
-
},
|
|
32
|
+
}, F = async (t, u = "", y = "") => {
|
|
33
33
|
o.value = "normal", i.value = 0, s.value = g("导出进度"), e.value = !0;
|
|
34
34
|
const b = await (t == null ? void 0 : t());
|
|
35
35
|
if (!b.status) {
|
|
36
36
|
e.value = !1, o.value = "error";
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
z().format("YYYYMMDDHHmmss") + "", _(b.taskId, "export", u || "", y);
|
|
40
40
|
}, _ = async (t, u, y, b = "") => {
|
|
41
|
-
m.value = !0,
|
|
41
|
+
m.value = !0, V(t, u, y, b), c = setTimeout(() => {
|
|
42
42
|
}, 50);
|
|
43
|
-
},
|
|
43
|
+
}, D = () => {
|
|
44
44
|
clearTimeout(c), c = null, e.value = !1;
|
|
45
|
-
},
|
|
46
|
-
var
|
|
45
|
+
}, V = async (t, u = "export", y, b = "") => {
|
|
46
|
+
var R, U, E;
|
|
47
47
|
const [j, r] = await ne("", {
|
|
48
48
|
url: `progress/${t}`
|
|
49
49
|
}).run();
|
|
@@ -52,29 +52,29 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
54
|
i.value = r.percentage;
|
|
55
|
-
const
|
|
55
|
+
const C = u == "export" ? g("导出") : g("导入");
|
|
56
56
|
if (i.value == 100)
|
|
57
|
-
if (x.value = r, m.value = !1,
|
|
58
|
-
r.status == 1 ? (o.value = "success", M(`${L().baseURL}/oss${r.filePath}`, y, b), m.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${
|
|
59
|
-
message: r.message || `${
|
|
57
|
+
if (x.value = r, m.value = !1, D(), u == "export")
|
|
58
|
+
r.status == 1 ? (o.value = "success", M(`${L().baseURL}/oss${r.filePath}`, y, b), m.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${C}${g("失败")}`, P.error({
|
|
59
|
+
message: r.message || `${C}${g("失败")}`,
|
|
60
60
|
grouping: !0,
|
|
61
61
|
repeatNum: 1
|
|
62
62
|
}));
|
|
63
63
|
else if (u == "import") {
|
|
64
64
|
if (r.filePath) {
|
|
65
65
|
o.value = "error";
|
|
66
|
-
const q = (
|
|
67
|
-
(
|
|
68
|
-
const A = (
|
|
66
|
+
const q = (R = w.name) == null ? void 0 : R.substr(w.name.indexOf("."));
|
|
67
|
+
(U = w.name) == null || U.replace(/(.*\/)*([^.]+).*/gi, "$2"), v.value = !0;
|
|
68
|
+
const A = (E = r.filePath) == null ? void 0 : E.replace(/(.*\/)*([^.]+).*/gi, "$2");
|
|
69
69
|
n.value = `${A}${q}`, d.value = w.sizeText, f.value = g("部分数据校验不通过,请下载附件并修改,重新导入!"), k.value = `${L().baseURL}/oss${r.filePath}`;
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
N(r.status, C), r.status == 1 && (l.value = !1), a("success");
|
|
72
72
|
} else u == "action" && (o.value = "success");
|
|
73
73
|
else
|
|
74
74
|
c && r.status != 2 ? c = setTimeout(() => {
|
|
75
|
-
|
|
76
|
-
}, 50) : (x.value = r, m.value = !1,
|
|
77
|
-
},
|
|
75
|
+
V(t, u, y, b);
|
|
76
|
+
}, 50) : (x.value = r, m.value = !1, N(r.status, C), D(), v.value = !0, f.value = (r == null ? void 0 : r.message) || "");
|
|
77
|
+
}, N = (t, u) => {
|
|
78
78
|
t == 1 ? (o.value = "success", P.success({
|
|
79
79
|
message: g("business-components_export-success-tip", u),
|
|
80
80
|
grouping: !0,
|
|
@@ -102,8 +102,8 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
102
102
|
errorMessage: f,
|
|
103
103
|
errorImport: v,
|
|
104
104
|
errorFilePath: k,
|
|
105
|
-
fileExport:
|
|
106
|
-
fileAction:
|
|
105
|
+
fileExport: F,
|
|
106
|
+
fileAction: O,
|
|
107
107
|
generateUniqueName: (t) => {
|
|
108
108
|
const u = t == null ? void 0 : t.substr(t.indexOf("."));
|
|
109
109
|
return `${t == null ? void 0 : t.replace(/(.*\/)*([^.]+).*/gi, "$2")}${H()}${u}`;
|
|
@@ -132,7 +132,7 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
132
132
|
}, n.value = {
|
|
133
133
|
...k
|
|
134
134
|
};
|
|
135
|
-
const w = `${a.exportFileName}${
|
|
135
|
+
const w = `${a.exportFileName}${z().format("YYYYMMDD")}-${z().format("HHmmss")}.${a.fileType}`;
|
|
136
136
|
c(f, w, a.fileType);
|
|
137
137
|
}, f = async () => {
|
|
138
138
|
let v = H();
|
|
@@ -165,12 +165,12 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
165
165
|
emits: ["update:modelValue", "update:bodyParams", "success"],
|
|
166
166
|
setup(a, { emit: l }) {
|
|
167
167
|
const e = a, s = l;
|
|
168
|
-
J(() => e.exportFileName || g("导出表")),
|
|
168
|
+
J(() => e.exportFileName || g("导出表")), I(e.modelValue, (n) => {
|
|
169
169
|
s("update:modelValue", n);
|
|
170
|
-
}),
|
|
170
|
+
}), I(e.bodyParams, (n) => {
|
|
171
171
|
s("update:bodyParams", n);
|
|
172
172
|
});
|
|
173
|
-
const { showProgressDialog: i, percent: o, progressStatus: m, exportList: c } = ie(e, s), x = [
|
|
173
|
+
const { showProgressDialog: i, percent: o, progressStatus: m, exportList: c } = ie(e, s), x = [$("正在导出中...").value, $("导出失败").value, $("导出成功").value];
|
|
174
174
|
return (n, d) => (K(), Q("div", pe, [
|
|
175
175
|
T(h(re), {
|
|
176
176
|
block: n.block,
|
|
@@ -183,7 +183,7 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
183
183
|
default: B(() => [
|
|
184
184
|
W(n.$slots, "default", {}, () => [
|
|
185
185
|
Z(
|
|
186
|
-
ee(h(
|
|
186
|
+
ee(h($)("导出").value),
|
|
187
187
|
1
|
|
188
188
|
/* TEXT */
|
|
189
189
|
)
|
|
@@ -195,7 +195,7 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
195
195
|
te(" 进度弹窗 "),
|
|
196
196
|
T(h(ae), {
|
|
197
197
|
size: "mini",
|
|
198
|
-
title: h(
|
|
198
|
+
title: h($)("导出进度").value,
|
|
199
199
|
"is-feedback-img": !1,
|
|
200
200
|
modelValue: h(i),
|
|
201
201
|
"onUpdate:modelValue": d[2] || (d[2] = (f) => S(i) ? i.value = f : null),
|
|
@@ -231,7 +231,7 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
231
231
|
导入: { "zh-CN": "导入", en: "Import", _appCode: "framework" },
|
|
232
232
|
"部分数据校验不通过,请下载附件并修改,重新导入!": {
|
|
233
233
|
"zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
|
|
234
|
-
en: "Some
|
|
234
|
+
en: "Some data failed validation, please download the attachment, make corrections, and re-import!",
|
|
235
235
|
_appCode: "framework"
|
|
236
236
|
},
|
|
237
237
|
"正在导出中...": { "zh-CN": "正在导出中...", en: "Exporting...", _appCode: "framework" },
|
|
Binary file
|