cloud-web-corejs 1.0.54-dev.9 → 1.0.54-dev.91

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.
Files changed (119) hide show
  1. package/package.json +9 -3
  2. package/src/components/VabUpload/index.vue +2 -1
  3. package/src/components/VabUpload/mixins.js +1 -1
  4. package/src/components/VabUpload/view.vue +2 -1
  5. package/src/components/excelExport/exportFieldDialog.vue +17 -7
  6. package/src/components/excelExport/index.js +2 -1
  7. package/src/components/excelExport/index.vue +8 -6
  8. package/src/components/excelExport/mixins.js +1 -2
  9. package/src/components/excelImport/index.vue +2 -1
  10. package/src/components/excelImport/mixins.js +1 -1
  11. package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
  12. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +1 -1
  13. package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
  14. package/src/components/fileLibrary/index.vue +3 -3
  15. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +8 -3
  16. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +4 -1
  17. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +1 -1
  18. package/src/components/fileLibrary/mixins/indexMixins.js +31 -17
  19. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +2 -1
  20. package/src/components/fileLibrary/propertiesDialog.vue +4 -0
  21. package/src/components/jsonImport/mixins.js +1 -1
  22. package/src/components/onlineTalk/index.vue +327 -5
  23. package/src/components/onlineTalk/mixins.js +1 -1
  24. package/src/components/table/index.js +2 -1
  25. package/src/components/tempStorage/tempStorageDialog.vue +2 -2
  26. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +1 -0
  27. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +1 -0
  28. package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +2 -2
  29. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +35 -5
  30. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  31. package/src/components/xform/form-designer/form-widget/dialog/preformDialog.vue +2 -2
  32. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +8 -5
  33. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -2
  34. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +6 -2
  35. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  36. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  37. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  38. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  39. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
  40. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  41. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  42. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  43. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  44. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +79 -0
  45. package/src/components/xform/form-designer/indexMixin.js +1 -1
  46. package/src/components/xform/form-designer/setting-panel/form-setting.vue +6 -3
  47. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +6 -0
  48. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  49. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +13 -0
  50. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  51. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  52. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  53. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  54. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  55. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  56. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +3 -0
  57. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  58. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  59. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  60. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +109 -22
  61. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
  62. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +53 -4
  63. package/src/components/xform/form-render/container-item/data-table-item.vue +5 -4
  64. package/src/components/xform/form-render/container-item/data-table-mixin.js +1881 -1
  65. package/src/components/xform/form-render/indexMixin.js +1669 -1
  66. package/src/layout/components/Sidebar/default.vue +18 -6
  67. package/src/mixins/selectDialog/index.js +1 -1
  68. package/src/router/modules/customer.js +15 -0
  69. package/src/store/config/index.js +1 -1
  70. package/src/store/modules/permission.js +1 -1
  71. package/src/store/modules/user.js +302 -1
  72. package/src/utils/pddLog.js +2 -0
  73. package/src/utils/request.js +28 -28
  74. package/src/utils/vab.js +1 -1
  75. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  76. package/src/views/bd/setting/form_template/edit.vue +2 -2
  77. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  78. package/src/views/bd/setting/form_template/list.vue +4 -2
  79. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  80. package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
  81. package/src/views/bd/setting/form_template/mixins/list.js +1 -1
  82. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  83. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  84. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  85. package/src/views/bd/setting/menu_kind/authDialog.vue +1 -1
  86. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
  87. package/src/views/bd/setting/table_model/edit.vue +1 -1
  88. package/src/views/bd/setting/table_model/list.vue +4 -2
  89. package/src/views/bd/setting/table_model/mixins/list.js +14 -14
  90. package/src/views/user/area/dialog.vue +21 -8
  91. package/src/views/user/bill_setting/edit.vue +1 -1
  92. package/src/views/user/bill_setting/list.vue +1 -1
  93. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  94. package/src/views/user/common_attribute/list.vue +1 -1
  95. package/src/views/user/common_script/edit.vue +1 -1
  96. package/src/views/user/common_script/list.vue +1 -1
  97. package/src/views/user/company_info/dialog.vue +19 -9
  98. package/src/views/user/company_info/edit.vue +1 -1
  99. package/src/views/user/extend_datasource/dialog.vue +1 -0
  100. package/src/views/user/extend_datasource/edit.vue +3 -0
  101. package/src/views/user/extend_datasource/list.vue +2 -1
  102. package/src/views/user/file_type/edit.vue +30 -1
  103. package/src/views/user/file_type/list.vue +28 -0
  104. package/src/views/user/groups/edit.vue +2 -0
  105. package/src/views/user/groups/list.vue +1 -0
  106. package/src/views/user/home/dev.vue +29 -0
  107. package/src/views/user/home/index.vue +16 -6
  108. package/src/views/user/login/default.vue +4 -2
  109. package/src/views/user/outLink/form_view.vue +39 -12
  110. package/src/views/user/outLink/index.vue +17 -0
  111. package/src/views/user/outLink/view.vue +39 -13
  112. package/src/views/user/push_setting/list.vue +2 -2
  113. package/src/views/user/user/edit.vue +9 -9
  114. package/src/views/user/user/form_edit.vue +117 -49
  115. package/src/views/user/user/form_info.vue +210 -0
  116. package/src/views/user/user/form_list.vue +1 -0
  117. package/src/views/user/user/list.vue +3 -3
  118. package/src/views/user/wf/wf_obj_config/list.vue +19 -3
  119. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
@@ -137,7 +137,7 @@
137
137
  </vxe-grid>
138
138
  </div>
139
139
  </el-tab-pane>
140
- <el-tab-pane :label="$t1('文件操作,发系统通知')" name="second">
140
+ <el-tab-pane :label="$t1('文件操作,发系统通知')" name="second" v-if="fileStoreArea.toNotify">
141
141
  <div class="grid-height" style="height: 500px">
142
142
  <fileObjNotifyEdit v-if="showFileObjNotifyEdit" visible-key="showFileObjNotifyEdit"
143
143
  :current_prefix="current_prefix" :_dataId="fileObjId" :parent-target="_self"
@@ -150,7 +150,7 @@
150
150
  <el-switch v-model="fileObjAuth.shareAuth" :active-value="1" :inactive-value="0"
151
151
  :disabled="fileObjAuth._isParent"/>
152
152
  </el-form-item>
153
- <el-form-item prop="downWatermarkAuth" :label="$t1('下载打水印')"
153
+ <el-form-item v-if="fileStoreArea.toDownWatermark" prop="downWatermarkAuth" :label="$t1('下载打水印')"
154
154
  :rules="[{ required: false, trigger: 'blur' }]">
155
155
  <el-switch v-model="fileObjAuth.downWatermarkAuth" :active-value="1" :inactive-value="0"
156
156
  :disabled="fileObjAuth._isParent"/>
@@ -1,10 +1,11 @@
1
1
  <template>
2
- <div class="detail-wrap">
2
+ <div class="detail-wrap" style="margin: -6px -8px;">
3
3
  <el-form ref="editForm" :model="fileObjNotify">
4
4
  <div class="d-header clearfix">
5
5
  <div class="fl">
6
6
  <i class="el-icon-info"/>
7
- {{ isEdit ? $t1('查看文件对象通知设置') : $t1('新增文件对象通知设置') }}
7
+ <!--{{ isEdit ? $t1('查看文件对象通知设置') : $t1('新增文件对象通知设置') }}-->
8
+ {{ $t1('文件操作 - 发系统通知设置') }}
8
9
  </div>
9
10
  <div class="fr">
10
11
  <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
@@ -14,71 +15,47 @@
14
15
  </el-button>
15
16
  </div>
16
17
  </div>
17
- <div class="d-cont">
18
- <div class="d-item">
19
- <div class="title first"><b>{{ $t1('基本信息') }}</b></div>
20
- <table class="table-detail">
21
- <tbody>
22
- <tr class="noTr">
23
- <th class="no"></th>
24
- <td></td>
25
- <th class="no"></th>
26
- <td></td>
27
- <th class="no"></th>
28
- <td></td>
29
- <th class="no"></th>
30
- <td></td>
31
- </tr>
32
- <tr>
33
- <th style="width: 215px;">
34
- <em class="f-red">*</em>
35
- {{ $t1('文件夹内文件操作是否通知') }}
36
- </th>
37
- <td colspan="7">
38
- <el-form-item prop="toNotify" :rules="[{ required: true, trigger: 'blur' }]">
39
- <el-radio-group v-model="fileObjNotify.toNotify">
40
- <el-radio :label="0">{{ $t1('不通知') }}</el-radio>
41
- <el-radio :label="1">{{ $t1('针对当前文件夹中的文件操作') }}</el-radio>
42
- <el-radio :label="2">{{ $t1('针对当前文件夹与下级所有文件夹的文件操作') }}</el-radio>
43
- </el-radio-group>
44
- </el-form-item>
45
- </td>
46
- </tr>
47
- <tr>
48
- <th>
49
- {{ $t1('新增文件-通知模板编码') }}
50
- </th>
51
- <td colspan="3">
52
- <el-form-item prop="addNtCode" :rules="[{ required: false, trigger: 'blur' }]">
53
- <el-input type="text" autocomplete="off" v-model="fileObjNotify.addNtCode" clearable/>
54
- </el-form-item>
55
- </td>
56
- </tr>
57
- <tr>
58
- <th>
59
- {{ $t1('删除文件-通知模板编码') }}
60
- </th>
61
- <td colspan="3">
62
- <el-form-item prop="deleteNtCode" :rules="[{ required: false, trigger: 'blur' }]">
63
- <el-input type="text" autocomplete="off" v-model="fileObjNotify.deleteNtCode" clearable/>
64
- </el-form-item>
65
- </td>
66
- </tr>
67
- <tr>
68
- <th>
69
- {{ $t1('替换文件-通知模板编码') }}
70
- </th>
71
- <td colspan="3">
72
- <el-form-item prop="replaceNtCode" :rules="[{ required: false, trigger: 'blur' }]">
73
- <el-input type="text" autocomplete="off" v-model="fileObjNotify.replaceNtCode" clearable/>
74
- </el-form-item>
75
- </td>
76
- </tr>
77
-
78
- </tbody>
79
- </table>
18
+ <div class="d-cont" style="height: 470px;">
19
+ <div class="d-item d-i-left">
20
+ <div class="d-i-tit">
21
+ {{ $t1('文件操作,是否发系统通知') }}
22
+ </div>
23
+ <el-form-item prop="toNotify" :rules="[{ required: true, trigger: 'blur' }]">
24
+ <el-radio-group v-model="fileObjNotify.toNotify">
25
+ <div>
26
+ <el-radio :label="0">{{ $t1('不发系统通知') }}</el-radio>
27
+ </div>
28
+ <div>
29
+ <el-radio :label="1">{{ $t1('针对当前文件夹中的文件操作') }}</el-radio>
30
+ </div>
31
+ <div>
32
+ <el-radio :label="2">{{ $t1('当前文件夹与下级所有文件夹的文件进行了操作,发系统通知') }}</el-radio>
33
+ </div>
34
+ </el-radio-group>
35
+ </el-form-item>
36
+ </div>
37
+ <div class="d-item d-i-right">
38
+ <div class="d-i-tit">
39
+ {{ $t1('不同的文件操作类型,设置对应的系统通知模板') }}
40
+ </div>
41
+ <el-form-item prop="addNtCode" :rules="[{ required: false, trigger: 'blur' }]"
42
+ :label="$t1('新增文件-通知模板编码')">
43
+ <el-input type="text" autocomplete="off" v-model="fileObjNotify.addNtCode" clearable/>
44
+ </el-form-item>
45
+ <el-form-item prop="deleteNtCode" :rules="[{ required: false, trigger: 'blur' }]"
46
+ :label="$t1('删除文件-通知模板编码')">
47
+ <el-input type="text" autocomplete="off" v-model="fileObjNotify.deleteNtCode" clearable/>
48
+ </el-form-item>
49
+ <el-form-item prop="replaceNtCode" :rules="[{ required: false, trigger: 'blur' }]"
50
+ :label=" $t1('替换文件-通知模板编码')">
51
+ <el-input type="text" autocomplete="off" v-model="fileObjNotify.replaceNtCode" clearable/>
52
+ </el-form-item>
80
53
  </div>
81
54
  </div>
55
+ <div class="tips">{{
56
+ $t1('注:删除文件发通知,包括从当前文件夹移动、删除文件。 新增文件发通知,包括上传、复制、移动、从回收站还原文件到当前文件夹下。')
57
+ }}
58
+ </div>
82
59
  </el-form>
83
60
  </div>
84
61
  </template>
@@ -134,8 +111,6 @@ export default {
134
111
  if (valid) {
135
112
  this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
136
113
  var url = this.current_prefix + `/file_obj_notify/save`;
137
- debugger
138
- let a = 1;
139
114
  this.$http({
140
115
  url: url,
141
116
  method: `post`,
@@ -159,7 +134,7 @@ export default {
159
134
  }
160
135
  };
161
136
  </script>
162
- <style scoped>
137
+ <style scoped lang="scss">
163
138
  .noTr th {
164
139
  height: 0px
165
140
  }
@@ -167,4 +142,51 @@ export default {
167
142
  .noTr td {
168
143
  height: 0px
169
144
  }
145
+
146
+ .d-cont {
147
+ display: flex;
148
+ margin: -11px -12px;
149
+
150
+ .d-i-left, .d-i-right {
151
+ border: none !important;
152
+ padding: 24px 18px 24px 14px !important
153
+ }
154
+
155
+ .d-i-left {
156
+ width: 420px;
157
+ }
158
+
159
+ .d-i-tit {
160
+ background: #f7f7f7;
161
+ line-height: 36px;
162
+ padding: 0 10px;
163
+ margin-bottom: 16px;
164
+ font-size: 13px
165
+ }
166
+
167
+ .d-i-right {
168
+ border-left: solid 1px #e9e9e9 !important;
169
+ flex: 1;
170
+ padding-left: 32px !important;
171
+
172
+ ::v-deep .el-form-item {
173
+ margin-bottom: 16px;
174
+
175
+ .el-form-item__content {
176
+ .el-input {
177
+ width: 360px !important;
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
183
+
184
+ .tips {
185
+ margin-top: -40px;
186
+ background: #FFF;
187
+ position: relative;
188
+ line-height: 40px;
189
+ border-top: solid 1px #e9e9e9;
190
+ padding-left: 12px;
191
+ }
170
192
  </style>
@@ -504,7 +504,7 @@
504
504
  </div>
505
505
  <propertiesDialog v-if="showPropertiesDialog" :visiable.sync="showPropertiesDialog"
506
506
  :editAttachment.sync="editAttachment" :isEdit="isEdit"
507
- :treeNodeArr.sync="treeNodeArr"></propertiesDialog>
507
+ :treeNodeArr.sync="treeNodeArr" :option="option"></propertiesDialog>
508
508
  <el-image-viewer v-if="showViewer" :on-close="() => {showViewer = false;}" :initial-index.sync="chooseIndex"
509
509
  :url-list="imageDTOs"/>
510
510
  <categoryMoveDialog :checkRows.sync="checkRows" v-if="showCategoryMoveDialog"
@@ -522,7 +522,7 @@
522
522
  :formData.sync="advancedFormData" @confirm="searchEvent">
523
523
  <template #form>
524
524
  <vxe-form :model="advancedFormData" title-width="102px" :inline="true" class="adSearchForm">
525
- <vxe-form-item title="属性名称:">
525
+ <!-- <vxe-form-item title="属性名称:">
526
526
  <template v-slot>
527
527
  <el-input v-model="advancedFormData.attributeName" clearable/>
528
528
  </template>
@@ -531,7 +531,7 @@
531
531
  <template v-slot>
532
532
  <el-input v-model="advancedFormData.attributeValue" clearable/>
533
533
  </template>
534
- </vxe-form-item>
534
+ </vxe-form-item>-->
535
535
  <!-- <vxe-form-item title="状态:">
536
536
  <template v-slot>
537
537
  <el-select v-model="advancedFormData.status" clearable>
@@ -17,7 +17,7 @@ modules = {
17
17
  components: {
18
18
  editView, userDialog, positionDialog, saleOrgDialog, roleDialog, fileObjAuthEditDialog, fileObjNotifyEdit
19
19
  },
20
- inject: ['current_prefix'],
20
+ inject: ['current_prefix', 'getFileStoreArea'],
21
21
  mounted() {
22
22
  this.initTableList();
23
23
  },
@@ -56,6 +56,11 @@ modules = {
56
56
  showFileObjNotifyEdit: true
57
57
  };
58
58
  },
59
+ computed: {
60
+ fileStoreArea() {
61
+ return this.getFileStoreArea();
62
+ }
63
+ },
59
64
  methods: {
60
65
  searchEvent() {
61
66
  this.$refs['table-m1'].commitProxy('reload');
@@ -285,7 +290,7 @@ modules = {
285
290
  }
286
291
  }
287
292
  },
288
- {
293
+ ...(this.fileStoreArea.toDownWatermark ? [{
289
294
  title: this.$t1('下载打水印 '),
290
295
  field: 'downWatermarkAuth',
291
296
  width: 150,
@@ -297,7 +302,7 @@ modules = {
297
302
  ];
298
303
  }
299
304
  }
300
- },
305
+ }] : []),
301
306
  {title: this.$t2('创建人', 'system.label.createBy'), field: 'createBy', width: 150},
302
307
  {title: this.$t2('创建时间', 'system.label.createDate'), field: 'createDate', width: 150},
303
308
  {title: this.$t2('更新人', 'system.label.modifyBy'), field: 'modifyBy', width: 150},
@@ -14,7 +14,7 @@ modules = {
14
14
  components: {
15
15
  userDialog, positionDialog, saleOrgDialog, roleDialog
16
16
  },
17
- inject: ['current_prefix'],
17
+ inject: ['current_prefix', 'getFileStoreArea'],
18
18
  data() {
19
19
  return {
20
20
  isEdit: false,
@@ -56,6 +56,9 @@ modules = {
56
56
  let prevTitle = this.currentRow ? this.$t2('查看', 'system.button.check') : this.$t2('新增', 'system.button.add')
57
57
  let title = prevTitle + this.$t2('文件权限', 'components.fileLibrary.fileAuth')
58
58
  return title;
59
+ },
60
+ fileStoreArea(){
61
+ return this.getFileStoreArea();
59
62
  }
60
63
  },
61
64
  mounted() {
@@ -13,7 +13,7 @@ modules = {
13
13
  components: {
14
14
  userDialog, positionDialog, saleOrgDialog, roleDialog
15
15
  },
16
- inject: ['current_prefix'],
16
+ inject: ['current_prefix', 'getFileStoreArea'],
17
17
  data() {
18
18
  return {
19
19
  isEdit: false,
@@ -44,6 +44,9 @@ modules = {
44
44
  getObjectForeignId: () => {
45
45
  return this.objectForeignId;
46
46
  },
47
+ getFileStoreArea: () => {
48
+ return this.fileStoreArea;
49
+ }
47
50
  };
48
51
  },
49
52
  async created() {
@@ -73,6 +76,7 @@ modules = {
73
76
  billDialogContent: null,
74
77
  checkBillDatas: [],
75
78
  title: "",
79
+ fileStoreArea: {},
76
80
  folderStatus: false,
77
81
  filterText: "",
78
82
  defaultProps: {
@@ -1004,36 +1008,44 @@ modules = {
1004
1008
  rows.forEach((value) => {
1005
1009
  value.leaf = !value.hasChild;
1006
1010
  });
1011
+ let items = [];
1007
1012
  if (node.level === 0) {
1013
+ let item = {
1014
+ parent: null,
1015
+ fileName: this.title,
1016
+ leaf: rows.length == 0,
1017
+ allFileBtn: true,
1018
+ id: 0,
1019
+ children: rows,
1020
+ };
1021
+ items.push(item);
1008
1022
  setTimeout(() => {
1009
1023
  this.$refs.tree.setCurrentKey(node.childNodes[0].data);
1010
1024
  this.handleNodeData(node.childNodes[0]);
1011
1025
  node.childNodes[0].expand();
1026
+ if (this.option.treeExpandAll) {
1027
+ //默认全部展开树分类
1028
+ node.childNodes[0].childNodes.forEach(item => {
1029
+ if (!item.data.leaf) item.expand();
1030
+ })
1031
+ }
1012
1032
  }, 200);
1013
1033
  this.$nextTick(() => {
1014
1034
  callback && callback();
1015
1035
  });
1016
1036
  this.searchEvent();
1017
1037
  } else {
1038
+ items = rows;
1018
1039
  this.$nextTick(() => {
1040
+ if (this.option.treeExpandAll) {
1041
+ //默认全部展开树分类
1042
+ node.childNodes.forEach(item => {
1043
+ if (!item.data.leaf) item.expand();
1044
+ })
1045
+ }
1019
1046
  callback && callback();
1020
1047
  });
1021
1048
  }
1022
- let items = [];
1023
- if (node.level === 0) {
1024
- let item = {
1025
- parent: null,
1026
- fileName: this.title,
1027
- leaf: rows.length == 0,
1028
- allFileBtn: true,
1029
- id: 0,
1030
- children: rows,
1031
- };
1032
- items.push(item);
1033
- } else {
1034
- items = rows;
1035
- }
1036
-
1037
1049
  resolve(items);
1038
1050
  },
1039
1051
  });
@@ -1403,6 +1415,7 @@ modules = {
1403
1415
  success: (res) => {
1404
1416
  let fileStoreArea = res.objx;
1405
1417
  if (fileStoreArea) {
1418
+ this.fileStoreArea = fileStoreArea;
1406
1419
  this.title = fileStoreArea.storeAreaName;
1407
1420
  this.$nextTick(() => {
1408
1421
  treeScollx({target: this, type: "default"});
@@ -1749,11 +1762,12 @@ modules = {
1749
1762
  }
1750
1763
  },
1751
1764
  downloadSingerFile(attachment) {
1765
+
1752
1766
  let fileObjAuth = this.fileObjAuth;
1753
1767
  if (attachment.dirs || !fileObjAuth.downloadAuth) return
1754
1768
  let url = attachment.domain + attachment.url;
1755
- let loginAccount = this.$store.getters.loginAccount;
1756
- if (fileObjAuth.downWatermarkAuth) {
1769
+ if (this.fileStoreArea.toDownWatermark && fileObjAuth.downWatermarkAuth) {
1770
+ let loginAccount = this.$store.getters.loginAccount;
1757
1771
  url += '?_w=' + encode(loginAccount)
1758
1772
  }
1759
1773
  this.$commonFileUtil.downloadFile(url, attachment.fileName)
@@ -8,7 +8,8 @@ modules = {
8
8
  },
9
9
  treeNodeArr: {
10
10
  type: Array
11
- }
11
+ },
12
+ option:Object
12
13
  },
13
14
  inject: ['current_prefix', 'getTitle'],
14
15
  components: {},
@@ -58,6 +58,10 @@
58
58
  <th>{{ $t2('所属对象描述', 'components.fileLibrary.note') }}</th>
59
59
  <td colspan="3">{{ attachmentDTO.note }}</td>
60
60
  </tr>
61
+ <tr>
62
+ <th>{{ $t1('文件类型名') }}</th>
63
+ <td colspan="3">{{ attachmentDTO.fileTypeName }}</td>
64
+ </tr>
61
65
  <tr>
62
66
  <th>{{ $t2('文件大小', 'components.fileLibrary.fileSize') }}</th>
63
67
  <td>{{ formatFileSize(attachmentDTO.fileSize) }}</td>