cloud-web-corejs-haier 1.0.42 → 1.0.44
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 +9 -7
- package/src/api/user.js +54 -46
- package/src/components/baseAlert/index.vue +57 -53
- package/src/components/baseInputExport/index.vue +3 -3
- package/src/components/baseTabs/mixins.js +12 -1
- package/src/components/errorMsg/index.vue +78 -78
- package/src/components/excelExport/button.vue +54 -45
- package/src/components/excelExport/exportFieldDialog.vue +3 -3
- package/src/components/excelExport/index.js +1 -43
- package/src/components/excelExport/index.vue +62 -34
- package/src/components/excelExport/mixins.js +74 -87
- package/src/components/excelImport/index.js +1 -62
- package/src/components/excelImport/mixins.js +1 -774
- package/src/components/fileLibrary/index.vue +113 -33
- package/src/components/fileLibrary/propertiesDialog.vue +6 -0
- package/src/components/hiprint/view/design/index.vue +139 -47
- package/src/components/hiprint/view/design/preview.vue +75 -52
- package/src/components/hiprint/view/json-view.vue +31 -31
- package/src/components/luckysheet/dialog.vue +159 -0
- package/src/components/luckysheet/export.js +595 -0
- package/src/components/luckysheet/fileUtils.js +147 -0
- package/src/components/luckysheet/index.js +69 -0
- package/src/components/luckysheet/templateJson.js +12078 -0
- package/src/components/luckysheet/view.vue +210 -0
- package/src/components/onlineTalk/index.vue +328 -6
- package/src/components/onlineTalk/talkUserDialog.vue +280 -0
- package/src/components/wf/addTaskUserdialog.vue +5 -5
- package/src/components/wf/content.vue +1244 -1169
- package/src/components/wf/mixins/setCandidateDialog.js +228 -2
- package/src/components/wf/mixins/setCandidateDialog2.js +115 -100
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +67 -1
- package/src/components/wf/setCandidateDialog.vue +5 -7
- package/src/components/wf/setCandidateDialog2.vue +14 -10
- package/src/components/wf/wf.js +527 -411
- package/src/components/wf/wfTaskUserRangeDialog.vue +1 -1
- package/src/components/wf/wfUtil.js +129 -91
- package/src/components/xform/form-designer/designer.js +1994 -9
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +10 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-pane-widget.vue +3 -2
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1756 -2
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +10 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +170 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1630 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +153 -40
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +65 -46
- package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +231 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +7 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +281 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +659 -221
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +133 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +48 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +18 -17
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +26 -26
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +67 -13
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +2 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/showViewButton-editor.vue +29 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +8 -6
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +20 -17
- package/src/components/xform/form-render/container-item/detail-item.vue +72 -48
- package/src/components/xform/form-render/container-item/sub-form-item.vue +10 -2
- package/src/components/xform/form-render/container-item/table2-item.vue +40 -10
- package/src/components/xform/form-render/indexMixin.js +3705 -1
- package/src/components/xform/icon-picker/icons.json +284 -0
- package/src/components/xform/icon-picker/index.vue +145 -0
- package/src/components/xform/lang/zh-CN.js +2 -1
- package/src/components/xform/mixins/defaultHandle.js +366 -2
- package/src/components/xform/utils/formula-util.js +3 -0
- package/src/components/xform/utils/sfc-generator.js +2 -2
- package/src/components/xform/utils/smart-vue-i18n/index.js +2 -1
- package/src/components/xform/utils/tableColumnHelper.js +54 -10
- package/src/components/xform/utils/util.js +1547 -1
- package/src/index.js +190 -211
- package/src/lang/locale/en/login.js +26 -19
- package/src/lang/locale/zh/login.js +25 -19
- package/src/layout/components/Sidebar/default.vue +252 -71
- package/src/layout/components/Sidebar/index.vue +6 -1
- package/src/layout/components/TagsView/index.vue +6 -0
- package/src/layout/components/langTool.vue +32 -29
- package/src/layout/defaultLayout.vue +16 -8
- package/src/layout/index.vue +5 -3
- package/src/permission.js +135 -1
- package/src/router/index.js +1 -4
- package/src/store/config/index.js +667 -1
- package/src/store/getters.js +2 -1
- package/src/store/modules/permission.js +332 -1
- package/src/store/modules/settings.js +26 -1
- package/src/store/modules/tagsView.js +190 -1
- package/src/store/modules/user.js +358 -1
- package/src/utils/aes.js +15 -1
- package/src/utils/auth.js +27 -1
- package/src/utils/componentDialog.js +217 -0
- package/src/utils/request.js +368 -1
- package/src/utils/vab.js +1256 -7
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/bd_company_env/edit.vue +193 -193
- package/src/views/bd/setting/formVersion/button.vue +55 -0
- package/src/views/bd/setting/formVersion/compareBasicSection.vue +125 -0
- package/src/views/bd/setting/formVersion/compareCodeSection.vue +539 -0
- package/src/views/bd/setting/formVersion/compareContMixin.scss +65 -0
- package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
- package/src/views/bd/setting/formVersion/compareDialog.vue +88 -0
- package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
- package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
- package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
- package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +491 -0
- package/src/views/bd/setting/formVersion/link.vue +58 -0
- package/src/views/bd/setting/formVersion/preformDialog.vue +87 -0
- package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
- package/src/views/bd/setting/formVersion/tableDetailDiff.js +99 -0
- package/src/views/bd/setting/formVersion/tableModelCompareView.vue +514 -0
- package/src/views/bd/setting/formVersion/textDiff.js +102 -0
- package/src/views/bd/setting/form_import_log/edit.vue +6 -3
- package/src/views/bd/setting/form_import_log/list.vue +5 -0
- package/src/views/bd/setting/form_script/edit.vue +196 -83
- package/src/views/bd/setting/form_script/edit1.vue +410 -220
- package/src/views/bd/setting/form_script/form_list.vue +19 -0
- package/src/views/bd/setting/form_script/list.vue +95 -21
- package/src/views/bd/setting/form_script/list1.vue +24 -0
- package/src/views/bd/setting/form_script/mixins/dialog.js +2 -2
- package/src/views/bd/setting/form_script/mixins/edit.js +265 -207
- package/src/views/bd/setting/form_script/mixins/edit1.js +259 -201
- package/src/views/bd/setting/form_script/mixins/form_list.js +322 -296
- package/src/views/bd/setting/form_script/mixins/list.js +163 -95
- package/src/views/bd/setting/form_script/mixins/list1.js +244 -155
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +1 -1
- package/src/views/bd/setting/form_template/edit.vue +355 -205
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
- package/src/views/bd/setting/form_template/list.vue +49 -74
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +3 -3
- package/src/views/bd/setting/form_template/mixins/edit.js +51 -8
- package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.js +114 -82
- package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -7
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -254
- package/src/views/bd/setting/form_template/wf_list.vue +161 -127
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -320
- package/src/views/bd/setting/request_setting/edit.vue +300 -300
- package/src/views/bd/setting/request_setting/list.vue +15 -25
- package/src/views/bd/setting/table_model/edit.vue +702 -498
- package/src/views/bd/setting/table_model/list.vue +28 -0
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit copy.js +903 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +228 -121
- package/src/views/bd/setting/table_model/mixins/list.js +55 -20
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +50 -46
- package/src/views/bd/setting/utils/index.js +15 -0
- package/src/views/user/api_request/list.vue +203 -203
- package/src/views/user/bill_setting/list.vue +345 -345
- package/src/views/user/code_rules/list.vue +204 -204
- package/src/views/user/common_attribute/list.vue +378 -378
- package/src/views/user/common_script/list.vue +341 -341
- package/src/views/user/company_info/dialog.vue +80 -49
- package/src/views/user/country/list.vue +197 -197
- package/src/views/user/extend_datasource/dialog.vue +0 -3
- package/src/views/user/extend_datasource/edit.vue +1 -2
- package/src/views/user/extend_datasource/list.vue +221 -224
- package/src/views/user/fieldTranslation/editDialog.vue +1 -1
- package/src/views/user/fieldTranslation/list.vue +473 -473
- package/src/views/user/field_values_invisible/list.vue +207 -207
- package/src/views/user/file_type/list.vue +271 -271
- package/src/views/user/file_view_area/list.vue +331 -331
- package/src/views/user/form/vform/designer.vue +303 -287
- package/src/views/user/form/vform/formFieldMapping.js +2 -3
- package/src/views/user/form/view/edit.vue +19 -1
- package/src/views/user/form/view/list.vue +59 -17
- package/src/views/user/groups/list.vue +158 -158
- package/src/views/user/home/default.vue +274 -182
- package/src/views/user/home/default2.vue +1148 -0
- package/src/views/user/home/index.vue +2 -1
- package/src/views/user/lang_tag/list.vue +170 -170
- package/src/views/user/language_setting/list.vue +208 -208
- package/src/views/user/ledger_library/list.vue +12 -10
- package/src/views/user/login/default.vue +1 -1
- package/src/views/user/login/indexMixin.js +204 -169
- package/src/views/user/menu/list.vue +575 -575
- package/src/views/user/notify_message/dialog.vue +7 -1
- package/src/views/user/notify_template/list.vue +192 -192
- package/src/views/user/notify_template/list2.vue +190 -190
- package/src/views/user/position/list.vue +188 -188
- package/src/views/user/project_tag/list.vue +175 -175
- package/src/views/user/push_setting/list.vue +236 -236
- package/src/views/user/request_setting/list.vue +248 -248
- package/src/views/user/role/list.vue +182 -182
- package/src/views/user/system_notice/infoDialog.vue +61 -2
- package/src/views/user/system_notice/list.vue +203 -203
- package/src/views/user/system_parameter/list.vue +141 -141
- package/src/views/user/user/edit.vue +45 -0
- package/src/views/user/user/form_list.vue +245 -245
- package/src/views/user/user/info.vue +253 -140
- package/src/views/user/user_log_classify/list.vue +197 -197
- package/src/views/user/wf/iframe/index.vue +46 -46
- package/src/views/user/wf/wfReport/index.vue +1 -1
- package/src/views/user/wf/wf_auto_submit_data/list.vue +659 -659
- package/src/views/user/wf/wf_diy_attribute/edit.vue +1 -1
- package/src/views/user/wf/wf_manage/list.vue +795 -795
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +106 -106
- package/src/views/user/wf/wf_obj_config/dialog.vue +2 -2
- package/src/views/user/wf/wf_obj_config/edit.vue +1 -1
- package/src/views/user/wf/wf_obj_config/edit_form.vue +2 -2
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +1 -1
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +1 -1
- package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +4 -4
- package/src/views/user/wf/wf_obj_config/list.vue +28 -28
- package/src/views/user/wf/wf_obj_config/list_form.vue +5 -5
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -292
- package/src/views/user/wf/wf_param/edit.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/edit.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/list.vue +321 -319
- package/src/views/user/wf/wf_work_calendar/components/calendar.vue +369 -367
- package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +401 -399
- package/src/views/user/wf/wf_work_calendar/configDialog.vue +6 -6
- package/src/views/user/wf/wf_work_calendar/date.js +84 -83
- package/src/views/user/wf/wf_work_calendar/list.vue +6 -6
- package/src/views/user/workbench_menu/list.vue +555 -0
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
<div class="tree-form" v-if="option.showCategoryFilterArea !== false">
|
|
8
8
|
<el-input
|
|
9
9
|
:placeholder="
|
|
10
|
-
$t2(
|
|
10
|
+
$t2(
|
|
11
|
+
'请输入文件夹名称',
|
|
12
|
+
'components.fileLibrary.categoryPlaceholder'
|
|
13
|
+
)
|
|
11
14
|
"
|
|
12
15
|
v-model="filterText"
|
|
13
16
|
class="txt"
|
|
@@ -59,15 +62,23 @@
|
|
|
59
62
|
class="tree-list"
|
|
60
63
|
icon-class="el-icon-arrow-down"
|
|
61
64
|
:style="
|
|
62
|
-
option.showCategoryFilterArea === false
|
|
65
|
+
option.showCategoryFilterArea === false
|
|
66
|
+
? 'height: calc(100vh - 113px)'
|
|
67
|
+
: ''
|
|
63
68
|
"
|
|
64
69
|
>
|
|
65
|
-
<span
|
|
70
|
+
<span
|
|
71
|
+
class="el-tree-node__label"
|
|
72
|
+
slot-scope="{ node }"
|
|
73
|
+
v-if="!node.data.moreBtn"
|
|
74
|
+
>
|
|
66
75
|
<i class="ico-wenjian"></i>
|
|
67
76
|
<span>{{ node.label }}</span>
|
|
68
77
|
</span>
|
|
69
78
|
<span v-else class="el-tree-node__label">
|
|
70
|
-
<el-button type="primary" plain class="button-sty">{{
|
|
79
|
+
<el-button type="primary" plain class="button-sty">{{
|
|
80
|
+
node.label
|
|
81
|
+
}}</el-button>
|
|
71
82
|
</span>
|
|
72
83
|
</el-tree>
|
|
73
84
|
</div>
|
|
@@ -79,7 +90,11 @@
|
|
|
79
90
|
</label>
|
|
80
91
|
<div class="main-right file-library fr" style="overflow: hidden">
|
|
81
92
|
<div class="pop-annex-filter" v-if="popAnnexFilter">
|
|
82
|
-
<div
|
|
93
|
+
<div
|
|
94
|
+
class="item"
|
|
95
|
+
v-for="(checkBillData, index) in checkBillDatas"
|
|
96
|
+
:key="index"
|
|
97
|
+
>
|
|
83
98
|
<span>{{ getBillLabel(checkBillData) }}</span
|
|
84
99
|
><i class="el-icon-close" @click="deleteBillData(index)"></i>
|
|
85
100
|
</div>
|
|
@@ -100,7 +115,11 @@
|
|
|
100
115
|
}}
|
|
101
116
|
</el-button>
|
|
102
117
|
<div class="abox">
|
|
103
|
-
<div
|
|
118
|
+
<div
|
|
119
|
+
class="item"
|
|
120
|
+
v-for="(checkBillData, index) in checkBillDatas"
|
|
121
|
+
:key="index"
|
|
122
|
+
>
|
|
104
123
|
<span>{{ getBillLabel(checkBillData) }}</span
|
|
105
124
|
><i class="el-icon-close" @click="deleteBillData(index)"></i>
|
|
106
125
|
</div>
|
|
@@ -210,7 +229,9 @@
|
|
|
210
229
|
{{ $t1("搜索") }}
|
|
211
230
|
</el-button>
|
|
212
231
|
|
|
213
|
-
<template
|
|
232
|
+
<template
|
|
233
|
+
v-for="(fileButton, customToobarButtonIndex) in customToobarButtons"
|
|
234
|
+
>
|
|
214
235
|
<template
|
|
215
236
|
v-if="
|
|
216
237
|
fileButton.dirs === null ||
|
|
@@ -276,7 +297,10 @@
|
|
|
276
297
|
<template v-if="currentFileCategory && currentFileCategory.id">
|
|
277
298
|
<el-input
|
|
278
299
|
:placeholder="
|
|
279
|
-
$t2(
|
|
300
|
+
$t2(
|
|
301
|
+
'请输入文件名',
|
|
302
|
+
'components.fileLibrary.filePlaceholder'
|
|
303
|
+
)
|
|
280
304
|
"
|
|
281
305
|
v-model="formData.fileName"
|
|
282
306
|
clearable
|
|
@@ -337,13 +361,17 @@
|
|
|
337
361
|
class="item"
|
|
338
362
|
:class="checkList.includes(attachment.id) ? 'on' : ''"
|
|
339
363
|
>
|
|
340
|
-
<el-checkbox :label="attachment.id"
|
|
364
|
+
<el-checkbox :label="attachment.id"
|
|
365
|
+
><span></span
|
|
366
|
+
></el-checkbox>
|
|
341
367
|
<div class="oper">
|
|
342
368
|
<el-tooltip
|
|
343
369
|
effect="dark"
|
|
344
370
|
content="详情"
|
|
345
371
|
placement="top"
|
|
346
|
-
v-if="
|
|
372
|
+
v-if="
|
|
373
|
+
!attachment.dirs && isEdit && fileObjAuth.editAuth
|
|
374
|
+
"
|
|
347
375
|
><i
|
|
348
376
|
class="el-tooltip iconfont icon-shuxing ico"
|
|
349
377
|
@click="openPropertiesDialog(attachment)"
|
|
@@ -383,7 +411,9 @@
|
|
|
383
411
|
><i class="el-icon-share"></i>分享
|
|
384
412
|
</el-dropdown-item>
|
|
385
413
|
<el-dropdown-item
|
|
386
|
-
@click.native="
|
|
414
|
+
@click.native="
|
|
415
|
+
replaceFile(attachment, index, page.records)
|
|
416
|
+
"
|
|
387
417
|
v-if="
|
|
388
418
|
!attachment.dirs &&
|
|
389
419
|
isEdit &&
|
|
@@ -398,7 +428,6 @@
|
|
|
398
428
|
v-if="
|
|
399
429
|
!attachment.dirs &&
|
|
400
430
|
isEdit &&
|
|
401
|
-
attachment.status != 1 &&
|
|
402
431
|
fileObjAuth.historyAuth
|
|
403
432
|
"
|
|
404
433
|
>
|
|
@@ -417,12 +446,18 @@
|
|
|
417
446
|
</el-dropdown-item>
|
|
418
447
|
<el-dropdown-item
|
|
419
448
|
@click.native="deleteCategory(attachment)"
|
|
420
|
-
v-if="
|
|
449
|
+
v-if="
|
|
450
|
+
attachment.dirs &&
|
|
451
|
+
isEdit &&
|
|
452
|
+
fileObjAuth.deleteDirAuth
|
|
453
|
+
"
|
|
421
454
|
>
|
|
422
455
|
<i class="el-icon-delete"></i>删除
|
|
423
456
|
</el-dropdown-item>
|
|
424
457
|
<template
|
|
425
|
-
v-for="(
|
|
458
|
+
v-for="(
|
|
459
|
+
fileButton, fileButtonIndex
|
|
460
|
+
) in customFileButtons"
|
|
426
461
|
>
|
|
427
462
|
<template
|
|
428
463
|
v-if="
|
|
@@ -432,15 +467,24 @@
|
|
|
432
467
|
"
|
|
433
468
|
>
|
|
434
469
|
<template
|
|
435
|
-
v-if="
|
|
470
|
+
v-if="
|
|
471
|
+
customFileButtonVisable(
|
|
472
|
+
fileButton,
|
|
473
|
+
attachment
|
|
474
|
+
)
|
|
475
|
+
"
|
|
436
476
|
>
|
|
437
477
|
<el-dropdown-item
|
|
438
478
|
@click.native="
|
|
439
|
-
customFileButtonEvent(
|
|
479
|
+
customFileButtonEvent(
|
|
480
|
+
fileButton,
|
|
481
|
+
attachment
|
|
482
|
+
)
|
|
440
483
|
"
|
|
441
484
|
:key="fileButtonIndex"
|
|
442
485
|
>
|
|
443
|
-
<i :class="fileButton.icon"></i
|
|
486
|
+
<i :class="fileButton.icon"></i
|
|
487
|
+
>{{ fileButton.label }}
|
|
444
488
|
</el-dropdown-item>
|
|
445
489
|
</template>
|
|
446
490
|
</template>
|
|
@@ -490,13 +534,17 @@
|
|
|
490
534
|
<div class="tb-left"></div>
|
|
491
535
|
<div class="tb-mid">
|
|
492
536
|
<div class="txt">
|
|
493
|
-
<span class="name">{{
|
|
537
|
+
<span class="name">{{
|
|
538
|
+
getFileName(attachment)
|
|
539
|
+
}}</span
|
|
494
540
|
><span v-if="attachment.extension"
|
|
495
541
|
>.{{ attachment.extension }}</span
|
|
496
542
|
>
|
|
497
543
|
</div>
|
|
498
544
|
</div>
|
|
499
|
-
<div class="format"
|
|
545
|
+
<div class="format">
|
|
546
|
+
... .{{ attachment.extension }}
|
|
547
|
+
</div>
|
|
500
548
|
</div>
|
|
501
549
|
</el-tooltip>
|
|
502
550
|
</li>
|
|
@@ -561,7 +609,9 @@
|
|
|
561
609
|
>
|
|
562
610
|
<template #right>
|
|
563
611
|
<span>
|
|
564
|
-
<span>{{
|
|
612
|
+
<span>{{
|
|
613
|
+
$t2("当前记录", "components.table.pageInfo")
|
|
614
|
+
}}</span>
|
|
565
615
|
<span class="f-red"> {{ page.records.length }} </span>
|
|
566
616
|
<span>/</span>
|
|
567
617
|
<span class="f-red"> {{ page.total }}</span>
|
|
@@ -622,7 +672,9 @@
|
|
|
622
672
|
<a
|
|
623
673
|
href="javascript:void(0);"
|
|
624
674
|
class="a-link"
|
|
625
|
-
v-if="
|
|
675
|
+
v-if="
|
|
676
|
+
isEdit && row.status != 1 && fileObjAuth.replaceAuth === 1
|
|
677
|
+
"
|
|
626
678
|
@click="replaceFile(row, rowIndex, items)"
|
|
627
679
|
>
|
|
628
680
|
<el-tooltip
|
|
@@ -638,7 +690,7 @@
|
|
|
638
690
|
<a
|
|
639
691
|
href="javascript:void(0);"
|
|
640
692
|
class="a-link"
|
|
641
|
-
v-if="isEdit &&
|
|
693
|
+
v-if="isEdit && fileObjAuth.historyAuth === 1"
|
|
642
694
|
@click="openFileHistoryDialog(row)"
|
|
643
695
|
>
|
|
644
696
|
<el-tooltip
|
|
@@ -654,7 +706,9 @@
|
|
|
654
706
|
<a
|
|
655
707
|
href="javascript:void(0);"
|
|
656
708
|
class="a-link"
|
|
657
|
-
v-if="
|
|
709
|
+
v-if="
|
|
710
|
+
isEdit && row.status != 1 && fileObjAuth.deleteAuth === 1
|
|
711
|
+
"
|
|
658
712
|
@click="deleteAttach(row)"
|
|
659
713
|
>
|
|
660
714
|
<el-tooltip
|
|
@@ -688,7 +742,9 @@
|
|
|
688
742
|
<a
|
|
689
743
|
href="javascript:void(0);"
|
|
690
744
|
class="a-link"
|
|
691
|
-
v-if="
|
|
745
|
+
v-if="
|
|
746
|
+
isEdit && isCategoryEdit && fileObjAuth.deleteDirAuth === 1
|
|
747
|
+
"
|
|
692
748
|
@click="deleteAttach(row)"
|
|
693
749
|
>
|
|
694
750
|
<el-tooltip
|
|
@@ -758,26 +814,42 @@
|
|
|
758
814
|
class="adSearchForm"
|
|
759
815
|
>
|
|
760
816
|
<el-form-item
|
|
761
|
-
:label="
|
|
817
|
+
:label="
|
|
818
|
+
$t2('文件夹路径', 'components.fileLibrary.fileCategoryPath')
|
|
819
|
+
"
|
|
762
820
|
>
|
|
763
821
|
<el-breadcrumb separator-class="el-icon-arrow-right">
|
|
764
|
-
<el-breadcrumb-item
|
|
822
|
+
<el-breadcrumb-item
|
|
823
|
+
v-for="(treeNode, index) in treeNodeArr"
|
|
824
|
+
:key="index"
|
|
765
825
|
>{{ treeNode.label }}
|
|
766
826
|
</el-breadcrumb-item>
|
|
767
827
|
</el-breadcrumb>
|
|
768
828
|
</el-form-item>
|
|
769
829
|
<el-form-item
|
|
770
|
-
:label="
|
|
830
|
+
:label="
|
|
831
|
+
$t2('文件夹编码', 'components.fileLibrary.fileCategorySn')
|
|
832
|
+
"
|
|
771
833
|
>
|
|
772
834
|
<span>{{ editCategory.fileSn }}</span>
|
|
773
835
|
</el-form-item>
|
|
774
836
|
<el-form-item
|
|
775
|
-
:label="
|
|
837
|
+
:label="
|
|
838
|
+
$t2('文件夹名称', 'components.fileLibrary.fileCategoryName')
|
|
839
|
+
"
|
|
776
840
|
>
|
|
777
|
-
<el-input
|
|
841
|
+
<el-input
|
|
842
|
+
v-model="editCategory.fileName"
|
|
843
|
+
clearable
|
|
844
|
+
class="all-width"
|
|
845
|
+
/>
|
|
778
846
|
</el-form-item>
|
|
779
847
|
<el-form-item :label="$t1('关联编码')">
|
|
780
|
-
<el-input
|
|
848
|
+
<el-input
|
|
849
|
+
v-model="editCategory.relationCode"
|
|
850
|
+
clearable
|
|
851
|
+
class="all-width"
|
|
852
|
+
/>
|
|
781
853
|
</el-form-item>
|
|
782
854
|
</el-form>
|
|
783
855
|
</div>
|
|
@@ -791,7 +863,11 @@
|
|
|
791
863
|
<i class="el-icon-close el-icon"></i>
|
|
792
864
|
{{ $t2("取 消", "system.button.cancel2") }}
|
|
793
865
|
</el-button>
|
|
794
|
-
<el-button
|
|
866
|
+
<el-button
|
|
867
|
+
type="primary"
|
|
868
|
+
@click="confirmEditCategoryDialog"
|
|
869
|
+
class="button-sty"
|
|
870
|
+
>
|
|
795
871
|
<i class="el-icon-check el-icon"></i>
|
|
796
872
|
{{ $t2("确 定", "system.button.confirm2") }}
|
|
797
873
|
</el-button>
|
|
@@ -889,7 +965,9 @@
|
|
|
889
965
|
size="small"
|
|
890
966
|
clearable
|
|
891
967
|
value-format="yyyy-MM-dd"
|
|
892
|
-
:picker-options="
|
|
968
|
+
:picker-options="
|
|
969
|
+
$baseStartPickerOptions(advancedFormData.endTime)
|
|
970
|
+
"
|
|
893
971
|
></el-date-picker>
|
|
894
972
|
<span>-</span>
|
|
895
973
|
<el-date-picker
|
|
@@ -899,7 +977,9 @@
|
|
|
899
977
|
size="small"
|
|
900
978
|
clearable
|
|
901
979
|
value-format="yyyy-MM-dd"
|
|
902
|
-
:picker-options="
|
|
980
|
+
:picker-options="
|
|
981
|
+
$baseEndPickerOptions(advancedFormData.startTime)
|
|
982
|
+
"
|
|
903
983
|
></el-date-picker>
|
|
904
984
|
</template>
|
|
905
985
|
</vxe-form-item>
|
|
@@ -90,6 +90,12 @@
|
|
|
90
90
|
<th>{{ $t2("文件编码", "components.fileLibrary.fileSn") }}</th>
|
|
91
91
|
<td colspan="3">{{ attachmentDTO.fileSn }}</td>
|
|
92
92
|
</tr>
|
|
93
|
+
<tr>
|
|
94
|
+
<th>{{ $t1("作者") }}</th>
|
|
95
|
+
<td>{{ attachmentDTO.fileAuthor }}</td>
|
|
96
|
+
<th>{{ $t1("修订人") }}</th>
|
|
97
|
+
<td>{{ attachmentDTO.fileReviser }}</td>
|
|
98
|
+
</tr>
|
|
93
99
|
<tr>
|
|
94
100
|
<th>{{ $t2("创建人", "system.label.createBy") }}</th>
|
|
95
101
|
<td>{{ attachmentDTO._createBy }}</td>
|
|
@@ -1,61 +1,130 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-card>
|
|
3
|
-
<div style="display: flex;flex-direction: column" class="print-oper">
|
|
3
|
+
<div style="display: flex; flex-direction: column" class="print-oper">
|
|
4
4
|
<div>
|
|
5
5
|
<el-button-group>
|
|
6
|
-
<template v-for="(value,type) in paperTypes">
|
|
7
|
-
<el-button
|
|
8
|
-
|
|
6
|
+
<template v-for="(value, type) in paperTypes">
|
|
7
|
+
<el-button
|
|
8
|
+
size="mini"
|
|
9
|
+
:type="curPaperType === type ? 'primary' : ' '"
|
|
10
|
+
@click="setPaper(type, value)"
|
|
11
|
+
:key="type"
|
|
12
|
+
>
|
|
9
13
|
{{ type }}
|
|
10
14
|
</el-button>
|
|
11
15
|
</template>
|
|
12
|
-
<el-popover
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
<el-popover
|
|
17
|
+
v-model="paperPopVisible"
|
|
18
|
+
title="设置纸张宽高(mm)"
|
|
19
|
+
trigger="click"
|
|
20
|
+
width="256"
|
|
21
|
+
>
|
|
22
|
+
<base-input-number
|
|
23
|
+
v-model="paperWidth"
|
|
24
|
+
style="width: 100px !important; text-align: center"
|
|
25
|
+
placeholder="宽(mm)"
|
|
26
|
+
/>
|
|
27
|
+
<el-input
|
|
28
|
+
style="
|
|
29
|
+
width: 30px !important;
|
|
30
|
+
border-left: 0;
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
backgroundcolor: #fff;
|
|
33
|
+
"
|
|
34
|
+
placeholder="~"
|
|
35
|
+
disabled
|
|
36
|
+
/>
|
|
37
|
+
<base-input-number
|
|
38
|
+
v-model="paperHeight"
|
|
39
|
+
style="width: 100px !important; text-align: center; border-left: 0"
|
|
40
|
+
placeholder="高(mm)"
|
|
41
|
+
/>
|
|
42
|
+
<el-button
|
|
43
|
+
type="primary"
|
|
44
|
+
class="button-sty"
|
|
45
|
+
style="width: 100%; margin-top: 8px"
|
|
46
|
+
@click="otherPaper"
|
|
47
|
+
>确定
|
|
20
48
|
</el-button>
|
|
21
|
-
<el-button
|
|
49
|
+
<el-button
|
|
50
|
+
size="mini"
|
|
51
|
+
:type="'other' === curPaperType ? 'primary' : ''"
|
|
52
|
+
slot="reference"
|
|
53
|
+
class="button-sty"
|
|
54
|
+
>
|
|
22
55
|
自定义纸张
|
|
23
56
|
</el-button>
|
|
24
57
|
</el-popover>
|
|
25
58
|
</el-button-group>
|
|
26
|
-
<el-button
|
|
59
|
+
<el-button
|
|
60
|
+
class="button-zoom"
|
|
61
|
+
icon="el-icon-zoom-out"
|
|
62
|
+
@click="changeScale(false)"
|
|
63
|
+
></el-button>
|
|
27
64
|
<el-input-number
|
|
28
65
|
:value="scaleValue"
|
|
29
66
|
:min="scaleMin"
|
|
30
67
|
:max="scaleMax"
|
|
31
68
|
:step="0.1"
|
|
32
69
|
disabled
|
|
33
|
-
style="width: 70px
|
|
70
|
+
style="width: 70px"
|
|
34
71
|
class="noButton"
|
|
35
|
-
:formatter="value => `${(value * 100).toFixed(0)}%`"
|
|
36
|
-
:parser="value => value.replace('%', '')"
|
|
72
|
+
:formatter="(value) => `${(value * 100).toFixed(0)}%`"
|
|
73
|
+
:parser="(value) => value.replace('%', '')"
|
|
37
74
|
/>
|
|
38
|
-
<el-button
|
|
39
|
-
|
|
75
|
+
<el-button
|
|
76
|
+
class="button-zoom"
|
|
77
|
+
icon="el-icon-zoom-in"
|
|
78
|
+
@click="changeScale(true)"
|
|
79
|
+
></el-button>
|
|
80
|
+
<el-button
|
|
81
|
+
type="primary"
|
|
82
|
+
class="button-sty"
|
|
83
|
+
icon="el-icon-refresh-right"
|
|
84
|
+
@click="rotatePaper()"
|
|
85
|
+
plain
|
|
86
|
+
>旋转
|
|
40
87
|
</el-button>
|
|
41
|
-
<el-button type="warning" class="button-sty" icon="el-icon-view" @click="preView"
|
|
42
|
-
|
|
43
|
-
width="180"
|
|
44
|
-
v-model="visible"
|
|
45
|
-
@confirm="clearPaper"
|
|
88
|
+
<el-button type="warning" class="button-sty" icon="el-icon-view" @click="preView"
|
|
89
|
+
>预览</el-button
|
|
46
90
|
>
|
|
91
|
+
<el-popover width="180" v-model="visible" @confirm="clearPaper">
|
|
47
92
|
<p><i class="el-icon-warning-outline f-red"></i> 是否确认清空??</p>
|
|
48
93
|
<div style="text-align: right; margin: 0">
|
|
49
94
|
<el-button size="mini" type="text" @click="visible = false">取消</el-button>
|
|
50
|
-
<el-button
|
|
95
|
+
<el-button
|
|
96
|
+
type="primary"
|
|
97
|
+
size="mini"
|
|
98
|
+
@click="
|
|
99
|
+
clearPaper();
|
|
100
|
+
visible = false;
|
|
101
|
+
"
|
|
102
|
+
>确定清空</el-button
|
|
103
|
+
>
|
|
51
104
|
</div>
|
|
52
|
-
<el-button
|
|
105
|
+
<el-button
|
|
106
|
+
type="danger"
|
|
107
|
+
class="button-sty"
|
|
108
|
+
icon="el-icon-close"
|
|
109
|
+
slot="reference"
|
|
110
|
+
style="margin: 0 10px"
|
|
111
|
+
>
|
|
53
112
|
清空
|
|
54
113
|
</el-button>
|
|
55
114
|
</el-popover>
|
|
56
|
-
<el-button
|
|
115
|
+
<el-button
|
|
116
|
+
type="primary"
|
|
117
|
+
class="button-sty"
|
|
118
|
+
icon="el-icon-download"
|
|
119
|
+
@click="importDefaultTemplate1"
|
|
120
|
+
>导入默认模板1
|
|
57
121
|
</el-button>
|
|
58
|
-
<el-button
|
|
122
|
+
<el-button
|
|
123
|
+
type="primary"
|
|
124
|
+
class="button-sty"
|
|
125
|
+
icon="el-icon-download"
|
|
126
|
+
@click="importDefaultTemplate2"
|
|
127
|
+
>导入默认模板2
|
|
59
128
|
</el-button>
|
|
60
129
|
<div class="hiprint-printPagination"></div>
|
|
61
130
|
<!-- <el-radio-group size="mini">
|
|
@@ -151,7 +220,10 @@
|
|
|
151
220
|
<el-col :span="8" class="drag_item_box">
|
|
152
221
|
<div>
|
|
153
222
|
<a class="ep-draggable-item" tid="defaultModule.text" style>
|
|
154
|
-
<span
|
|
223
|
+
<span
|
|
224
|
+
class="glyphicon glyphicon-text-width"
|
|
225
|
+
aria-hidden="true"
|
|
226
|
+
></span>
|
|
155
227
|
<p class="glyphicon-class">文本</p>
|
|
156
228
|
</a>
|
|
157
229
|
</div>
|
|
@@ -167,7 +239,10 @@
|
|
|
167
239
|
<el-col :span="8" class="drag_item_box">
|
|
168
240
|
<div>
|
|
169
241
|
<a class="ep-draggable-item" tid="defaultModule.longText">
|
|
170
|
-
<span
|
|
242
|
+
<span
|
|
243
|
+
class="glyphicon glyphicon-subscript"
|
|
244
|
+
aria-hidden="true"
|
|
245
|
+
></span>
|
|
171
246
|
<p class="glyphicon-class">长文</p>
|
|
172
247
|
</a>
|
|
173
248
|
</div>
|
|
@@ -199,7 +274,10 @@
|
|
|
199
274
|
<el-col :span="8" class="drag_item_box">
|
|
200
275
|
<div>
|
|
201
276
|
<a class="ep-draggable-item" tid="defaultModule.customText" style>
|
|
202
|
-
<span
|
|
277
|
+
<span
|
|
278
|
+
class="glyphicon glyphicon-text-width"
|
|
279
|
+
aria-hidden="true"
|
|
280
|
+
></span>
|
|
203
281
|
<p class="glyphicon-class">自定义</p>
|
|
204
282
|
</a>
|
|
205
283
|
</div>
|
|
@@ -208,7 +286,10 @@
|
|
|
208
286
|
<el-col :span="8" class="drag_item_box">
|
|
209
287
|
<div>
|
|
210
288
|
<a class="ep-draggable-item" tid="defaultModule.barcode" style>
|
|
211
|
-
<span
|
|
289
|
+
<span
|
|
290
|
+
class="glyphicon iconfont icon-bar-code-full"
|
|
291
|
+
aria-hidden="true"
|
|
292
|
+
></span>
|
|
212
293
|
<p class="glyphicon-class">条形码</p>
|
|
213
294
|
</a>
|
|
214
295
|
</div>
|
|
@@ -216,19 +297,24 @@
|
|
|
216
297
|
<el-col :span="8" class="drag_item_box">
|
|
217
298
|
<div>
|
|
218
299
|
<a class="ep-draggable-item" tid="defaultModule.qrcode" style>
|
|
219
|
-
<span
|
|
300
|
+
<span
|
|
301
|
+
class="glyphicon iconfont icon-erweima"
|
|
302
|
+
aria-hidden="true"
|
|
303
|
+
></span>
|
|
220
304
|
<p class="glyphicon-class">二维码</p>
|
|
221
305
|
</a>
|
|
222
306
|
</div>
|
|
223
307
|
</el-col>
|
|
224
|
-
|
|
225
308
|
</el-row>
|
|
226
309
|
<el-row class="drag_item_title">辅助</el-row>
|
|
227
310
|
<el-row>
|
|
228
311
|
<el-col :span="8" class="drag_item_box">
|
|
229
312
|
<div>
|
|
230
313
|
<a class="ep-draggable-item" tid="defaultModule.hline" style>
|
|
231
|
-
<span
|
|
314
|
+
<span
|
|
315
|
+
class="glyphicon glyphicon-resize-horizontal"
|
|
316
|
+
aria-hidden="true"
|
|
317
|
+
></span>
|
|
232
318
|
<p class="glyphicon-class">横线</p>
|
|
233
319
|
</a>
|
|
234
320
|
</div>
|
|
@@ -236,7 +322,10 @@
|
|
|
236
322
|
<el-col :span="8" class="drag_item_box">
|
|
237
323
|
<div>
|
|
238
324
|
<a class="ep-draggable-item" tid="defaultModule.vline" style>
|
|
239
|
-
<span
|
|
325
|
+
<span
|
|
326
|
+
class="glyphicon glyphicon-resize-vertical"
|
|
327
|
+
aria-hidden="true"
|
|
328
|
+
></span>
|
|
240
329
|
<p class="glyphicon-class">竖线</p>
|
|
241
330
|
</a>
|
|
242
331
|
</div>
|
|
@@ -244,7 +333,10 @@
|
|
|
244
333
|
<el-col :span="8" class="drag_item_box">
|
|
245
334
|
<div>
|
|
246
335
|
<a class="ep-draggable-item" tid="defaultModule.rect">
|
|
247
|
-
<span
|
|
336
|
+
<span
|
|
337
|
+
class="glyphicon glyphicon-unchecked"
|
|
338
|
+
aria-hidden="true"
|
|
339
|
+
></span>
|
|
248
340
|
<p class="glyphicon-class">矩形</p>
|
|
249
341
|
</a>
|
|
250
342
|
</div>
|
|
@@ -276,19 +368,19 @@
|
|
|
276
368
|
</el-col>
|
|
277
369
|
</el-row>
|
|
278
370
|
<!-- 预览 -->
|
|
279
|
-
<print-preview ref="preView"/>
|
|
371
|
+
<print-preview ref="preView" />
|
|
280
372
|
</el-card>
|
|
281
373
|
</template>
|
|
282
374
|
|
|
283
375
|
<script>
|
|
284
|
-
import mixins from
|
|
376
|
+
import mixins from "./mixins.js";
|
|
285
377
|
export default {
|
|
286
378
|
name: "printDesign",
|
|
287
|
-
mixins: [mixins]
|
|
288
|
-
}
|
|
379
|
+
mixins: [mixins],
|
|
380
|
+
};
|
|
289
381
|
</script>
|
|
290
382
|
<style src="../../css/bootstrap.min.css" scoped></style>
|
|
291
|
-
<style lang="
|
|
383
|
+
<style lang="scss" scoped>
|
|
292
384
|
// 拖拽
|
|
293
385
|
.drag_item_box {
|
|
294
386
|
height: 100%;
|
|
@@ -305,29 +397,29 @@ export default {
|
|
|
305
397
|
}
|
|
306
398
|
|
|
307
399
|
// 默认图片
|
|
308
|
-
|
|
400
|
+
::v-deep .hiprint-printElement-image-content {
|
|
309
401
|
img {
|
|
310
402
|
content: url("~@/assets/logo.png");
|
|
311
403
|
}
|
|
312
404
|
}
|
|
313
405
|
|
|
314
406
|
// 辅助线样式
|
|
315
|
-
|
|
407
|
+
::v-deep .toplineOfPosition {
|
|
316
408
|
border: 0;
|
|
317
409
|
border-top: 1px dashed purple;
|
|
318
410
|
}
|
|
319
411
|
|
|
320
|
-
|
|
412
|
+
::v-deep .bottomlineOfPosition {
|
|
321
413
|
border: 0;
|
|
322
414
|
border-top: 1px dashed purple;
|
|
323
415
|
}
|
|
324
416
|
|
|
325
|
-
|
|
417
|
+
::v-deep .leftlineOfPosition {
|
|
326
418
|
border: 0;
|
|
327
419
|
border-left: 1px dashed purple;
|
|
328
420
|
}
|
|
329
421
|
|
|
330
|
-
|
|
422
|
+
::v-deep .rightlineOfPosition {
|
|
331
423
|
border: 0;
|
|
332
424
|
border-left: 1px dashed purple;
|
|
333
425
|
}
|