cloud-web-corejs 1.0.281 → 1.1.0-dev.10
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 +6 -2
- package/src/components/VabUpload/image-viewer.vue +442 -442
- package/src/components/VabUpload/index.vue +45 -3
- package/src/components/VabUpload/mixins.js +126 -19
- package/src/components/VabUpload/view.vue +248 -209
- package/src/components/baseTabs/mixins.js +181 -181
- package/src/components/bizTab/BizBillActions.vue +129 -0
- package/src/components/bizTab/BizTabListPage.vue +391 -0
- package/src/components/bizTab/README.md +378 -0
- package/src/components/bizTab/billTableUtil.js +48 -0
- package/src/components/bizTab/billValidators.js +136 -0
- package/src/components/bizTab/bizBillDetailMixin.js +705 -0
- package/src/components/bizTab/index.js +24 -0
- package/src/components/excelExport/exportFieldDialog.vue +23 -12
- package/src/components/excelExport/exportItemConfigUtil.js +30 -0
- package/src/components/excelExport/mixins.js +3 -3
- package/src/components/excelImport/index.vue +156 -156
- package/src/components/jsonImport/index.vue +1 -1
- package/src/components/langImport/index.vue +1 -1
- package/src/components/mobile/statusTag/mixins.js +1 -61
- package/src/components/mobile/wf/addTaskUserdialog.vue +23 -3
- package/src/components/mobile/wf/content.vue +1705 -1556
- package/src/components/mobile/wf/deleteTaskUserDialog.vue +22 -3
- package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +8 -6
- package/src/components/mobile/wf/selectUserDialog.vue +122 -0
- package/src/components/mobile/wf/setCandidateDialog.vue +25 -4
- package/src/components/mobile/wf/urgingDialog.vue +26 -3
- package/src/components/mobile/wf/wfModifyDialog.vue +4 -0
- package/src/components/obsUpload/index.vue +1 -1
- package/src/components/table/config.js +78 -78
- package/src/components/table/index.js +1276 -1276
- package/src/components/table/plugins/cell-area/index.js +1055 -0
- package/src/components/table/plugins/cell-area/index.scss +77 -0
- package/src/components/table/plugins/cell-area/util.js +224 -0
- package/src/components/table/tableForm.vue +330 -330
- package/src/components/table/tableFormMixin.js +318 -318
- package/src/components/table/vxeFilter/index.js +163 -163
- package/src/components/table/vxeFilter/mixin.js +316 -316
- package/src/components/wf/content.vue +1188 -1188
- package/src/components/wf/wf.js +40 -20
- package/src/components/wf/wfActionDropdown.vue +1 -1
- package/src/components/wf/wfActionItems.js +1 -1
- package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +528 -0
- package/src/components/xform/docs/2026-08 xform H5 P1 /345/256/236/347/216/260/350/247/204/346/240/274.md" +412 -0
- package/src/components/xform/docs/2026-08 xform H5 P2 /345/256/236/347/216/260/350/247/204/346/240/274.md" +287 -0
- package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +400 -0
- package/src/components/xform/form-designer/designer.js +51 -52
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +269 -269
- package/src/components/xform/form-designer/form-widget/container-widget/detail-h5-widget.vue +18 -2
- package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +132 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +250 -250
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-pane-widget.vue +23 -2
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-widget.vue +30 -1
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +319 -320
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +365 -365
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +185 -185
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +554 -555
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +409 -409
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +150 -132
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +114 -114
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +154 -154
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +47 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +178 -178
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +77 -77
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +139 -139
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +106 -106
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +134 -134
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +3 -2
- package/src/components/xform/form-designer/indexMixin.js +35 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +39 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +10 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +438 -432
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +2103 -2103
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-temp-edito.vue +90 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +82 -82
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +833 -846
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +8 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +137 -137
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -96
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +42 -42
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +158 -158
- package/src/components/xform/form-designer/setting-panel/property-editor/h5Span-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/itemStyle-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +188 -188
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTempClass-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +347 -347
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +12 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +884 -874
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +14 -0
- package/src/components/xform/form-designer/widget-panel/index.vue +11 -7
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +30 -6
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +112 -4
- package/src/components/xform/form-render/container-item/data-table-mixin.js +151 -93
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +204 -34
- package/src/components/xform/form-render/container-item/detail-temp-item.vue +110 -0
- package/src/components/xform/form-render/container-item/h5-card-pane-item.vue +160 -140
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1913 -1699
- package/src/components/xform/form-render/index.vue +153 -147
- package/src/components/xform/form-render/indexMixin.js +35 -3
- package/src/components/xform/lang/en-US.js +14 -0
- package/src/components/xform/lang/zh-CN.js +17 -0
- package/src/components/xform/mixins/defaultHandle.js +707 -707
- package/src/components/xform/styles/h5.scss +2238 -0
- package/src/components/xform/utils/textMaskUtil.js +182 -179
- package/src/components/xform/utils/treeTableUtil.js +1292 -1265
- package/src/components/xform/utils/util.js +56 -11
- package/src/directive/append-to-body/index.js +48 -0
- package/src/index.js +13 -4
- package/src/layout/components/Sidebar/default.vue +1655 -1655
- package/src/layout/components/extractedCode/viewDialog.vue +7 -7
- package/src/router/index.js +48 -27
- package/src/router/modules/customer.js +71 -14
- package/src/store/modules/permission.js +17 -18
- package/src/utils/assetUrl.js +19 -0
- package/src/utils/pdfUtil.js +429 -429
- package/src/utils/resolveViewComponent.js +142 -16
- package/src/utils/vab.js +1283 -1279
- package/src/views/bd/project/branch/bd_branch/edit.vue +145 -0
- package/src/views/bd/project/branch/bd_branch/list.vue +72 -0
- package/src/views/bd/project/branch/bd_branch/menuKindDialog.vue +106 -0
- package/src/views/bd/project/branch/bd_branch/mixins/edit.js +189 -0
- package/src/views/bd/project/branch/bd_branch/mixins/list.js +124 -0
- package/src/views/bd/project/branch/bd_branch/mixins/menuKindDialog.js +85 -0
- package/src/views/bd/project/branch/form_script/list.vue +31 -0
- package/src/views/bd/project/branch/form_template/list.vue +30 -0
- package/src/views/bd/project/branch/menu_kind/list.vue +31 -0
- package/src/views/bd/project/common/form_script/list.vue +16 -0
- package/src/views/bd/project/common/form_template/list.vue +15 -0
- package/src/views/bd/project/common/menu_kind/list.vue +15 -0
- package/src/views/bd/project/core/branchContext.js +100 -0
- package/src/views/bd/project/core/branchPage.js +78 -0
- package/src/views/bd/project/core/branchPageWrap.vue +225 -0
- package/src/views/bd/project/core/branchScope.js +44 -0
- package/src/views/bd/project/core/branchSearchPage.js +285 -0
- package/src/views/bd/project/core/branchSelect.vue +85 -0
- package/src/views/bd/project/core/branchTreeBar.vue +81 -0
- package/src/views/bd/project/core/httpBranchPatch.js +58 -0
- package/src/views/bd/project/datatable/menu_kind/list.vue +15 -0
- package/src/views/bd/project/datatable/table_model/list.vue +15 -0
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/form_template/edit.vue +378 -356
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +6 -0
- package/src/views/bd/setting/form_template/formTemplateType.js +43 -0
- package/src/views/bd/setting/form_template/list.vue +304 -303
- package/src/views/bd/setting/form_template/mixins/edit.js +344 -280
- package/src/views/bd/setting/form_template/mixins/list.js +748 -721
- package/src/views/bd/setting/table_model/edit.vue +1066 -1066
- package/src/views/bd/setting/table_model/mixins/edit.js +1455 -1455
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +148 -148
- package/src/views/demo/bizTab/bill/billConfig.js +41 -0
- package/src/views/demo/bizTab/bill/detail.vue +436 -0
- package/src/views/demo/bizTab/bill/list.vue +288 -0
- package/src/views/demo/bizTab/bill/productDialog.vue +176 -0
- package/src/views/demo/bizTab/simple/billApi.js +123 -0
- package/src/views/demo/bizTab/simple/detail.vue +407 -0
- package/src/views/demo/bizTab/simple/list.vue +217 -0
- package/src/views/demo/bizTab/standalone/index.vue +121 -0
- package/src/views/demo/bizTab/wf/billConfig.js +44 -0
- package/src/views/demo/bizTab/wf/detail.vue +661 -0
- package/src/views/demo/bizTab/wf/list.vue +242 -0
- package/src/views/support/form-dialog-demo/demoPickerDialog.vue +72 -0
- package/src/views/support/form-dialog-demo/index.vue +537 -0
- package/src/views/user/file_view_ins/list.vue +970 -970
- package/src/views/user/form/vform/designer.vue +823 -821
- package/src/views/user/home/default.vue +1117 -1117
- package/src/views/user/home/default2.vue +1 -1
- package/src/views/user/home/index.vue +103 -101
- package/src/views/user/home/wjl/content.vue +1569 -0
- package/src/views/user/notify_message/dialog.vue +139 -137
- package/src/views/user/outLink/cc_form_view.vue +188 -0
- package/src/views/user/outLink/form_view.vue +202 -202
- package/src/views/user/outLink/index.vue +110 -110
- package/src/views/user/outLink/view.vue +3 -3
- package/src/views/user/role/edit.vue +632 -632
- package/src/views/user/role/list.vue +260 -260
- package/src/views/user/wf/iframe/index.vue +51 -51
- package/src/views/user/wf/iframe/index2.vue +64 -64
- package/src/views/user/wf/wf_manage/list.vue +1112 -1116
- package/src/views/user/wf/wf_manage/list2.vue +871 -875
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +134 -131
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +0 -106
- package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +0 -99
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +0 -1340
- package/src/utils/wf.js +0 -766
|
@@ -1,185 +1,185 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div v-if="showContent">
|
|
3
|
-
<el-dialog
|
|
4
|
-
:title="$t2('导入', 'components.excelImport.title')"
|
|
5
|
-
:append-to-body="true"
|
|
6
|
-
:modal-append-to-body="falseValue"
|
|
7
|
-
:close-on-click-modal="falseValue"
|
|
8
|
-
:visible.sync="showImportDialog"
|
|
9
|
-
:modal="falseValue"
|
|
10
|
-
custom-class="dialog-style"
|
|
11
|
-
width="501px"
|
|
12
|
-
v-el-drag-dialog
|
|
13
|
-
@close="dialogClose1"
|
|
14
|
-
>
|
|
15
|
-
<div class="import-box">
|
|
16
|
-
<div class="tips">{{ $t2('请下载文件模板,填写信息后再上传文件', 'components.excelImport.tip') }}</div>
|
|
17
|
-
<el-button type="success" plain class="button-sty template-btn" @click="commonLocalDownload()">
|
|
18
|
-
{{ $t2('模板下载', 'components.excelImport.downloadBUtton') }}
|
|
19
|
-
</el-button>
|
|
20
|
-
<el-upload v-if="!fileRaw" ref="uploadBtn" action="" class="upload-file" :auto-upload="false"
|
|
21
|
-
:on-change="fileChange">
|
|
22
|
-
<div class="el-upload-dragger">
|
|
23
|
-
<i class="el-icon-upload"></i>
|
|
24
|
-
<div class="el-upload__text"><em>{{ $t2('点击上传', 'components.excelImport.uploadBUtton') }}</em></div>
|
|
25
|
-
</div>
|
|
26
|
-
</el-upload>
|
|
27
|
-
<div class="upload-finish" v-if="fileRaw">
|
|
28
|
-
<img :src="require('@/resources' + '/images/ico-excel.svg')" class="ico"/>
|
|
29
|
-
<p class="name">{{ fileRaw.name }}</p>
|
|
30
|
-
<!-- <p>2022-1-17</p> -->
|
|
31
|
-
<el-tooltip :enterable="false" class="item" effect="dark"
|
|
32
|
-
:content="$t2('关闭', 'components.excelImport.closeBUtton')" placement="bottom">
|
|
33
|
-
<i
|
|
34
|
-
class="el-icon-error js-close"
|
|
35
|
-
@click="
|
|
36
|
-
fileRaw = false;
|
|
37
|
-
$refs.uploadBtn.clearFiles();
|
|
38
|
-
"
|
|
39
|
-
></i>
|
|
40
|
-
</el-tooltip>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
<span slot="footer" class="dialog-footer">
|
|
44
|
-
<span class="fl tips">{{ $t1('注:导入文件不允许超过{fileSize}MB', {fileSize: importFileLimitSize}) }}</span>
|
|
45
|
-
<el-button type="primary" plain class="button-sty" @click="dialogClose1">
|
|
46
|
-
<i class="el-icon-close el-icon"></i>
|
|
47
|
-
{{ $t2('取 消', 'system.button.cancel2') }}
|
|
48
|
-
</el-button>
|
|
49
|
-
<el-button type="primary" @click="dialogPrimary1" class="button-sty">
|
|
50
|
-
<i class="el-icon-check el-icon"></i>
|
|
51
|
-
{{ $t2('确 定', 'system.button.confirm2') }}
|
|
52
|
-
</el-button>
|
|
53
|
-
</span>
|
|
54
|
-
</el-dialog>
|
|
55
|
-
<el-dialog
|
|
56
|
-
ref="importDialog"
|
|
57
|
-
:title="$t2('导入', 'components.excelImport.title')"
|
|
58
|
-
:append-to-body="true"
|
|
59
|
-
:modal-append-to-body="falseValue"
|
|
60
|
-
:close-on-click-modal="falseValue"
|
|
61
|
-
:visible.sync="showImportDialog2"
|
|
62
|
-
:modal="falseValue"
|
|
63
|
-
custom-class="dialog-style"
|
|
64
|
-
width="501px"
|
|
65
|
-
height="250px"
|
|
66
|
-
:beforeClose="handleBeforeClose"
|
|
67
|
-
@close="handleClose2"
|
|
68
|
-
v-el-drag-dialog
|
|
69
|
-
>
|
|
70
|
-
<div>
|
|
71
|
-
<div v-show="importLoading" class="import-stepbox">
|
|
72
|
-
<ul>
|
|
73
|
-
<li :class="getLoadingClass(1,percent1)">
|
|
74
|
-
<i class="el-icon-circle-check"></i>
|
|
75
|
-
<i class="el-icon-loading"></i>
|
|
76
|
-
<span v-html="$t1('上传导入文件 {percent}', {percent: `<span class=nums>${percent1}%</span>`})"></span>
|
|
77
|
-
</li>
|
|
78
|
-
<li :class="getLoadingClass(2,percent2)">
|
|
79
|
-
<i class="el-icon-circle-check"></i>
|
|
80
|
-
<i class="el-icon-loading"></i>
|
|
81
|
-
<span
|
|
82
|
-
v-html="$t1('校验导入文件中的图片数据格式 {percent}', {percent: `<span class=nums>${percent2}%</span>`})"></span>
|
|
83
|
-
</li>
|
|
84
|
-
<li :class="getLoadingClass(3,percent3)">
|
|
85
|
-
<i class="el-icon-circle-check"></i>
|
|
86
|
-
<i class="el-icon-loading"></i>
|
|
87
|
-
<span
|
|
88
|
-
v-html="$t1('存储导入文件中的图片 {percent}', {percent: `<span class=nums>${percent3}%</span>`})"></span>
|
|
89
|
-
</li>
|
|
90
|
-
</ul>
|
|
91
|
-
</div>
|
|
92
|
-
<div v-show="!importLoading" class="import-box" style="margin-bottom: 30px;">
|
|
93
|
-
<div class="tips">
|
|
94
|
-
{{ $t2('导入中,请勿关闭当前窗口', 'components.excelImport.tip2') }}
|
|
95
|
-
<!-- <span class="fr">耗时:<em class="time-txt">0 时 0 分 0 秒 </em></span> -->
|
|
96
|
-
</div>
|
|
97
|
-
<el-progress :text-inside="true" :stroke-width="26" :percentage="percentageNum"
|
|
98
|
-
class="export-progress"></el-progress>
|
|
99
|
-
<div class="i-status">
|
|
100
|
-
<div class="item">
|
|
101
|
-
<i class="el-icon-success f-green"></i>
|
|
102
|
-
{{ $t2('成功', 'components.excelImport.success') }}:
|
|
103
|
-
<span class="successNum" @click="showSuccessResult">{{ totalSuccessNum }}</span>
|
|
104
|
-
</div>
|
|
105
|
-
<div class="item">
|
|
106
|
-
<i class="el-icon-error f-red"></i>
|
|
107
|
-
{{ $t2('失败', 'components.excelImport.fail') }}:
|
|
108
|
-
<span class="failNum" @click="showErrorResult">{{ totalErrorNum }}</span>
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
<div slot="footer" class="dialog-footer" center="true">
|
|
114
|
-
<div class="fl import-count" v-show="!importLoading">
|
|
115
|
-
<span class="f-red doneNum">0</span>
|
|
116
|
-
/
|
|
117
|
-
<span class="dataSize">0</span>
|
|
118
|
-
</div>
|
|
119
|
-
<el-button type="primary" plain class="button-sty" @click="dialogClose2" v-if="!param.importOption.hideCancelButton">
|
|
120
|
-
<i class="el-icon-close el-icon"></i>
|
|
121
|
-
{{ $t2('取 消', 'system.button.cancel2') }}
|
|
122
|
-
</el-button>
|
|
123
|
-
<el-button type="primary" class="button-sty" @click="dialogPrimary2">
|
|
124
|
-
<i class="el-icon-check el-icon"></i>
|
|
125
|
-
{{ $t2('确 定', 'system.button.confirm2') }}
|
|
126
|
-
</el-button>
|
|
127
|
-
</div>
|
|
128
|
-
</el-dialog>
|
|
129
|
-
<el-dialog
|
|
130
|
-
:title="$t2('结果', 'components.excelImport.resultTitle')"
|
|
131
|
-
:append-to-body="true"
|
|
132
|
-
:modal-append-to-body="true"
|
|
133
|
-
:close-on-click-modal="falseValue"
|
|
134
|
-
:visible.sync="showImportResult"
|
|
135
|
-
:modal="falseValue"
|
|
136
|
-
custom-class="dialog-style list-dialog"
|
|
137
|
-
width="1200px"
|
|
138
|
-
v-el-drag-dialog
|
|
139
|
-
>
|
|
140
|
-
<div>
|
|
141
|
-
<div class="box-style">
|
|
142
|
-
<div class="cont">
|
|
143
|
-
<div class="table-div">
|
|
144
|
-
<vxe-grid
|
|
145
|
-
id="resGrid"
|
|
146
|
-
ref="resGrid"
|
|
147
|
-
height="440px"
|
|
148
|
-
v-bind="resOption"
|
|
149
|
-
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
150
|
-
@custom="$vxeTableUtil.customHandle"
|
|
151
|
-
>
|
|
152
|
-
<template #form>
|
|
153
|
-
<div class="clearfix screen-btns">
|
|
154
|
-
<div class="fl">
|
|
155
|
-
<vxe-button status="primary" class="button-sty" icon="el-icon-upload2" @click="exportToExcel()">
|
|
156
|
-
{{ $t1('导出') }}
|
|
157
|
-
</vxe-button>
|
|
158
|
-
</div>
|
|
159
|
-
<div class="fr"></div>
|
|
160
|
-
</div>
|
|
161
|
-
</template>
|
|
162
|
-
<template #attachment="{row,column}">
|
|
163
|
-
<base-attachment :option="{
|
|
164
|
-
title: column.title,
|
|
165
|
-
rows: row[column.field],
|
|
166
|
-
showViewButton: true,
|
|
167
|
-
edit:false
|
|
168
|
-
}"/>
|
|
169
|
-
</template>
|
|
170
|
-
</vxe-grid>
|
|
171
|
-
</div>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
</div>
|
|
175
|
-
</el-dialog>
|
|
176
|
-
</div>
|
|
177
|
-
</template>
|
|
178
|
-
|
|
179
|
-
<script>
|
|
180
|
-
import {mixins} from './importDialogMixin';
|
|
181
|
-
|
|
182
|
-
export default {
|
|
183
|
-
mixins: [mixins]
|
|
184
|
-
};
|
|
185
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="showContent">
|
|
3
|
+
<el-dialog
|
|
4
|
+
:title="$t2('导入', 'components.excelImport.title')"
|
|
5
|
+
:append-to-body="true"
|
|
6
|
+
:modal-append-to-body="falseValue"
|
|
7
|
+
:close-on-click-modal="falseValue"
|
|
8
|
+
:visible.sync="showImportDialog"
|
|
9
|
+
:modal="falseValue"
|
|
10
|
+
custom-class="dialog-style"
|
|
11
|
+
width="501px"
|
|
12
|
+
v-el-drag-dialog
|
|
13
|
+
@close="dialogClose1"
|
|
14
|
+
>
|
|
15
|
+
<div class="import-box">
|
|
16
|
+
<div class="tips">{{ $t2('请下载文件模板,填写信息后再上传文件', 'components.excelImport.tip') }}</div>
|
|
17
|
+
<el-button type="success" plain class="button-sty template-btn" @click="commonLocalDownload()">
|
|
18
|
+
{{ $t2('模板下载', 'components.excelImport.downloadBUtton') }}
|
|
19
|
+
</el-button>
|
|
20
|
+
<el-upload v-if="!fileRaw" ref="uploadBtn" action="" class="upload-file" :auto-upload="false"
|
|
21
|
+
:on-change="fileChange">
|
|
22
|
+
<div class="el-upload-dragger">
|
|
23
|
+
<i class="el-icon-upload"></i>
|
|
24
|
+
<div class="el-upload__text"><em>{{ $t2('点击上传', 'components.excelImport.uploadBUtton') }}</em></div>
|
|
25
|
+
</div>
|
|
26
|
+
</el-upload>
|
|
27
|
+
<div class="upload-finish" v-if="fileRaw">
|
|
28
|
+
<img :src="$assetUrl(require('@/resources' + '/images/ico-excel.svg'))" class="ico"/>
|
|
29
|
+
<p class="name">{{ fileRaw.name }}</p>
|
|
30
|
+
<!-- <p>2022-1-17</p> -->
|
|
31
|
+
<el-tooltip :enterable="false" class="item" effect="dark"
|
|
32
|
+
:content="$t2('关闭', 'components.excelImport.closeBUtton')" placement="bottom">
|
|
33
|
+
<i
|
|
34
|
+
class="el-icon-error js-close"
|
|
35
|
+
@click="
|
|
36
|
+
fileRaw = false;
|
|
37
|
+
$refs.uploadBtn.clearFiles();
|
|
38
|
+
"
|
|
39
|
+
></i>
|
|
40
|
+
</el-tooltip>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<span slot="footer" class="dialog-footer">
|
|
44
|
+
<span class="fl tips">{{ $t1('注:导入文件不允许超过{fileSize}MB', {fileSize: importFileLimitSize}) }}</span>
|
|
45
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose1">
|
|
46
|
+
<i class="el-icon-close el-icon"></i>
|
|
47
|
+
{{ $t2('取 消', 'system.button.cancel2') }}
|
|
48
|
+
</el-button>
|
|
49
|
+
<el-button type="primary" @click="dialogPrimary1" class="button-sty">
|
|
50
|
+
<i class="el-icon-check el-icon"></i>
|
|
51
|
+
{{ $t2('确 定', 'system.button.confirm2') }}
|
|
52
|
+
</el-button>
|
|
53
|
+
</span>
|
|
54
|
+
</el-dialog>
|
|
55
|
+
<el-dialog
|
|
56
|
+
ref="importDialog"
|
|
57
|
+
:title="$t2('导入', 'components.excelImport.title')"
|
|
58
|
+
:append-to-body="true"
|
|
59
|
+
:modal-append-to-body="falseValue"
|
|
60
|
+
:close-on-click-modal="falseValue"
|
|
61
|
+
:visible.sync="showImportDialog2"
|
|
62
|
+
:modal="falseValue"
|
|
63
|
+
custom-class="dialog-style"
|
|
64
|
+
width="501px"
|
|
65
|
+
height="250px"
|
|
66
|
+
:beforeClose="handleBeforeClose"
|
|
67
|
+
@close="handleClose2"
|
|
68
|
+
v-el-drag-dialog
|
|
69
|
+
>
|
|
70
|
+
<div>
|
|
71
|
+
<div v-show="importLoading" class="import-stepbox">
|
|
72
|
+
<ul>
|
|
73
|
+
<li :class="getLoadingClass(1,percent1)">
|
|
74
|
+
<i class="el-icon-circle-check"></i>
|
|
75
|
+
<i class="el-icon-loading"></i>
|
|
76
|
+
<span v-html="$t1('上传导入文件 {percent}', {percent: `<span class=nums>${percent1}%</span>`})"></span>
|
|
77
|
+
</li>
|
|
78
|
+
<li :class="getLoadingClass(2,percent2)">
|
|
79
|
+
<i class="el-icon-circle-check"></i>
|
|
80
|
+
<i class="el-icon-loading"></i>
|
|
81
|
+
<span
|
|
82
|
+
v-html="$t1('校验导入文件中的图片数据格式 {percent}', {percent: `<span class=nums>${percent2}%</span>`})"></span>
|
|
83
|
+
</li>
|
|
84
|
+
<li :class="getLoadingClass(3,percent3)">
|
|
85
|
+
<i class="el-icon-circle-check"></i>
|
|
86
|
+
<i class="el-icon-loading"></i>
|
|
87
|
+
<span
|
|
88
|
+
v-html="$t1('存储导入文件中的图片 {percent}', {percent: `<span class=nums>${percent3}%</span>`})"></span>
|
|
89
|
+
</li>
|
|
90
|
+
</ul>
|
|
91
|
+
</div>
|
|
92
|
+
<div v-show="!importLoading" class="import-box" style="margin-bottom: 30px;">
|
|
93
|
+
<div class="tips">
|
|
94
|
+
{{ $t2('导入中,请勿关闭当前窗口', 'components.excelImport.tip2') }}
|
|
95
|
+
<!-- <span class="fr">耗时:<em class="time-txt">0 时 0 分 0 秒 </em></span> -->
|
|
96
|
+
</div>
|
|
97
|
+
<el-progress :text-inside="true" :stroke-width="26" :percentage="percentageNum"
|
|
98
|
+
class="export-progress"></el-progress>
|
|
99
|
+
<div class="i-status">
|
|
100
|
+
<div class="item">
|
|
101
|
+
<i class="el-icon-success f-green"></i>
|
|
102
|
+
{{ $t2('成功', 'components.excelImport.success') }}:
|
|
103
|
+
<span class="successNum" @click="showSuccessResult">{{ totalSuccessNum }}</span>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="item">
|
|
106
|
+
<i class="el-icon-error f-red"></i>
|
|
107
|
+
{{ $t2('失败', 'components.excelImport.fail') }}:
|
|
108
|
+
<span class="failNum" @click="showErrorResult">{{ totalErrorNum }}</span>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
<div slot="footer" class="dialog-footer" center="true">
|
|
114
|
+
<div class="fl import-count" v-show="!importLoading">
|
|
115
|
+
<span class="f-red doneNum">0</span>
|
|
116
|
+
/
|
|
117
|
+
<span class="dataSize">0</span>
|
|
118
|
+
</div>
|
|
119
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose2" v-if="!param.importOption.hideCancelButton">
|
|
120
|
+
<i class="el-icon-close el-icon"></i>
|
|
121
|
+
{{ $t2('取 消', 'system.button.cancel2') }}
|
|
122
|
+
</el-button>
|
|
123
|
+
<el-button type="primary" class="button-sty" @click="dialogPrimary2">
|
|
124
|
+
<i class="el-icon-check el-icon"></i>
|
|
125
|
+
{{ $t2('确 定', 'system.button.confirm2') }}
|
|
126
|
+
</el-button>
|
|
127
|
+
</div>
|
|
128
|
+
</el-dialog>
|
|
129
|
+
<el-dialog
|
|
130
|
+
:title="$t2('结果', 'components.excelImport.resultTitle')"
|
|
131
|
+
:append-to-body="true"
|
|
132
|
+
:modal-append-to-body="true"
|
|
133
|
+
:close-on-click-modal="falseValue"
|
|
134
|
+
:visible.sync="showImportResult"
|
|
135
|
+
:modal="falseValue"
|
|
136
|
+
custom-class="dialog-style list-dialog"
|
|
137
|
+
width="1200px"
|
|
138
|
+
v-el-drag-dialog
|
|
139
|
+
>
|
|
140
|
+
<div>
|
|
141
|
+
<div class="box-style">
|
|
142
|
+
<div class="cont">
|
|
143
|
+
<div class="table-div">
|
|
144
|
+
<vxe-grid
|
|
145
|
+
id="resGrid"
|
|
146
|
+
ref="resGrid"
|
|
147
|
+
height="440px"
|
|
148
|
+
v-bind="resOption"
|
|
149
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
150
|
+
@custom="$vxeTableUtil.customHandle"
|
|
151
|
+
>
|
|
152
|
+
<template #form>
|
|
153
|
+
<div class="clearfix screen-btns">
|
|
154
|
+
<div class="fl">
|
|
155
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-upload2" @click="exportToExcel()">
|
|
156
|
+
{{ $t1('导出') }}
|
|
157
|
+
</vxe-button>
|
|
158
|
+
</div>
|
|
159
|
+
<div class="fr"></div>
|
|
160
|
+
</div>
|
|
161
|
+
</template>
|
|
162
|
+
<template #attachment="{row,column}">
|
|
163
|
+
<base-attachment :option="{
|
|
164
|
+
title: column.title,
|
|
165
|
+
rows: row[column.field],
|
|
166
|
+
showViewButton: true,
|
|
167
|
+
edit:false
|
|
168
|
+
}"/>
|
|
169
|
+
</template>
|
|
170
|
+
</vxe-grid>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</el-dialog>
|
|
176
|
+
</div>
|
|
177
|
+
</template>
|
|
178
|
+
|
|
179
|
+
<script>
|
|
180
|
+
import {mixins} from './importDialogMixin';
|
|
181
|
+
|
|
182
|
+
export default {
|
|
183
|
+
mixins: [mixins]
|
|
184
|
+
};
|
|
185
|
+
</script>
|