cloud-web-corejs 1.0.18 → 1.0.20

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 (191) hide show
  1. package/package.json +2 -1
  2. package/src/api/user.js +8 -0
  3. package/src/components/jsonImport/index.js +3 -1
  4. package/src/components/jsonImport/mixins.js +16 -16
  5. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
  6. package/src/components/xform/form-designer/indexMixin.js +2 -2
  7. package/src/layout/components/Sidebar/default.vue +15 -9
  8. package/src/layout/components/TagsView/index.vue +6 -6
  9. package/src/layout/components/notify_message/unreadDialog.vue +1 -1
  10. package/src/router/modules/customer.js +8 -8
  11. package/src/utils/aes.js +1 -0
  12. package/src/views/bd/setting/bd_attach_setting/dialog.vue +8 -8
  13. package/src/views/bd/setting/bd_attach_setting/edit.vue +11 -11
  14. package/src/views/bd/setting/bd_attach_setting/list.vue +7 -7
  15. package/src/views/bd/setting/form_script/dialog.vue +17 -15
  16. package/src/views/bd/setting/form_script/edit.vue +15 -13
  17. package/src/views/bd/setting/form_script/edit1.vue +12 -12
  18. package/src/views/bd/setting/form_script/form_list.vue +8 -8
  19. package/src/views/bd/setting/form_script/list.vue +9 -9
  20. package/src/views/bd/setting/form_script/list1.vue +9 -9
  21. package/src/views/bd/setting/form_script/list2.vue +1 -1
  22. package/src/views/bd/setting/form_template/dialog.vue +27 -20
  23. package/src/views/bd/setting/form_template/edit.vue +13 -13
  24. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  25. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +8 -8
  26. package/src/views/bd/setting/form_template/itemEdit.vue +9 -9
  27. package/src/views/bd/setting/form_template/itemList.vue +8 -8
  28. package/src/views/bd/setting/form_template/list.vue +15 -15
  29. package/src/views/bd/setting/form_template/preformDialog.vue +2 -2
  30. package/src/views/bd/setting/menu_kind/authDialog.vue +2 -2
  31. package/src/views/bd/setting/menu_kind/dialog.vue +23 -16
  32. package/src/views/bd/setting/menu_kind/list.vue +27 -27
  33. package/src/views/bd/setting/table_model/dialog.vue +5 -5
  34. package/src/views/bd/setting/table_model/edit.vue +1123 -1123
  35. package/src/views/bd/setting/table_model/list.vue +12 -12
  36. package/src/views/bd/setting/table_model/zdDialog.vue +5 -5
  37. package/src/views/mobile/user/area/dialog.vue +4 -3
  38. package/src/views/mobile/user/user/dialog.vue +4 -3
  39. package/src/views/support/export_template/edit.vue +12 -12
  40. package/src/views/support/export_template/list.vue +18 -18
  41. package/src/views/user/access_log/edit.vue +5 -5
  42. package/src/views/user/access_log/list.vue +11 -11
  43. package/src/views/user/access_log/statistics_list.vue +16 -11
  44. package/src/views/user/api_request/edit.vue +15 -12
  45. package/src/views/user/api_request/list.vue +12 -10
  46. package/src/views/user/area/dialog.vue +5 -5
  47. package/src/views/user/area_attribute/configDialog.vue +319 -319
  48. package/src/views/user/area_attribute/edit.vue +3 -3
  49. package/src/views/user/area_attribute/list.vue +1 -1
  50. package/src/views/user/attachment/uploadDialog.vue +11 -11
  51. package/src/views/user/bill_setting/edit.vue +14 -13
  52. package/src/views/user/bill_setting/h5_ModifyDialog.vue +5 -3
  53. package/src/views/user/bill_setting/h5_view.vue +4 -4
  54. package/src/views/user/bill_setting/itemViewDialog.vue +1 -1
  55. package/src/views/user/bill_setting/list.vue +9 -8
  56. package/src/views/user/bill_setting/queryDialog.vue +3 -3
  57. package/src/views/user/bill_setting/render.vue +7 -7
  58. package/src/views/user/bill_setting/template2.json +44 -11
  59. package/src/views/user/bill_setting/userDialog.vue +5 -5
  60. package/src/views/user/code_rules/edit.vue +11 -11
  61. package/src/views/user/code_rules/list.vue +6 -6
  62. package/src/views/user/commMenu/index.vue +2 -2
  63. package/src/views/user/common_attribute/edit.vue +9 -9
  64. package/src/views/user/common_attribute/itemEdit.vue +11 -11
  65. package/src/views/user/common_attribute/list.vue +12 -12
  66. package/src/views/user/common_script/edit.vue +11 -10
  67. package/src/views/user/common_script/list.vue +17 -16
  68. package/src/views/user/company_info/dialog.vue +138 -131
  69. package/src/views/user/company_info/edit.vue +10 -10
  70. package/src/views/user/company_info/view.vue +1 -1
  71. package/src/views/user/country/dialog.vue +8 -8
  72. package/src/views/user/country/edit.vue +16 -15
  73. package/src/views/user/country/list.vue +172 -162
  74. package/src/views/user/data_type_setting/dialog.vue +11 -8
  75. package/src/views/user/data_type_setting/editDialog.vue +13 -12
  76. package/src/views/user/ea/eagroup/eaobj_list.vue +332 -311
  77. package/src/views/user/ea/eagroup/edit.vue +492 -475
  78. package/src/views/user/ea/eaobj/edit.vue +153 -148
  79. package/src/views/user/ea/eaobj/list.vue +147 -135
  80. package/src/views/user/error-page/401.vue +42 -34
  81. package/src/views/user/error-page/404.vue +19 -3
  82. package/src/views/user/extend_datasource/dialog.vue +127 -119
  83. package/src/views/user/extend_datasource/edit.vue +13 -12
  84. package/src/views/user/extend_datasource/list.vue +7 -7
  85. package/src/views/user/fieldTranslation/editDialog.vue +6 -6
  86. package/src/views/user/fieldTranslation/list.vue +9 -8
  87. package/src/views/user/field_values_invisible/edit.vue +87 -85
  88. package/src/views/user/field_values_invisible/list.vue +36 -25
  89. package/src/views/user/file_type/edit.vue +11 -11
  90. package/src/views/user/file_type/list.vue +10 -7
  91. package/src/views/user/file_type/userEdit.vue +188 -188
  92. package/src/views/user/file_view_area/edit.vue +11 -11
  93. package/src/views/user/file_view_area/itemEdit.vue +168 -165
  94. package/src/views/user/file_view_area/list.vue +9 -9
  95. package/src/views/user/file_view_ins/list.vue +57 -38
  96. package/src/views/user/file_view_ins/propertiesDialog.vue +218 -218
  97. package/src/views/user/form/form_ins_list/edit.vue +421 -421
  98. package/src/views/user/form/form_template/dialog.vue +27 -20
  99. package/src/views/user/form/form_template/edit.vue +15 -12
  100. package/src/views/user/form/form_template/itemEdit.vue +9 -9
  101. package/src/views/user/form/form_template/itemList.vue +5 -5
  102. package/src/views/user/form/form_template/list.vue +9 -8
  103. package/src/views/user/form/form_template_field/dialog.vue +11 -8
  104. package/src/views/user/form/form_type/dialog.vue +134 -127
  105. package/src/views/user/form/form_type/edit.vue +10 -10
  106. package/src/views/user/form/form_type/editDialog.vue +11 -10
  107. package/src/views/user/form/form_type/list.vue +128 -118
  108. package/src/views/user/form/report_requestaccess/dialog.vue +108 -101
  109. package/src/views/user/form/report_requestaccess/edit.vue +274 -236
  110. package/src/views/user/form/report_requestaccess/list.vue +31 -20
  111. package/src/views/user/form/vform/designer.vue +164 -164
  112. package/src/views/user/form/vform/formFieldMapping.js +151 -169
  113. package/src/views/user/form/vform/out_render.vue +3 -2
  114. package/src/views/user/form/vform/render.vue +2 -2
  115. package/src/views/user/form/view/edit.vue +7 -7
  116. package/src/views/user/form/view/list.vue +2 -2
  117. package/src/views/user/home/default.vue +21 -21
  118. package/src/views/user/home/distributor.vue +375 -119
  119. package/src/views/user/home/index.vue +1 -1
  120. package/src/views/user/language_setting/edit.vue +167 -166
  121. package/src/views/user/language_setting/list.vue +7 -7
  122. package/src/views/user/ledger_library/list.vue +2 -2
  123. package/src/views/user/ledger_library/private_list.vue +3 -3
  124. package/src/views/user/login/auth-redirect.vue +1 -1
  125. package/src/views/user/login/index.vue +1 -1
  126. package/src/views/user/login/indexMixin.js +4 -1
  127. package/src/views/user/menu/list.vue +19 -19
  128. package/src/views/user/mobile_menu/list.vue +17 -17
  129. package/src/views/user/notify_message/dialog.vue +8 -6
  130. package/src/views/user/notify_message/list.vue +5 -4
  131. package/src/views/user/notify_template/edit.vue +185 -185
  132. package/src/views/user/notify_template/list.vue +8 -8
  133. package/src/views/user/oplog/edit.vue +108 -103
  134. package/src/views/user/oplog/list.vue +8 -8
  135. package/src/views/user/outLink/form_view.vue +144 -143
  136. package/src/views/user/outLink/index.vue +7 -5
  137. package/src/views/user/outLink/view.vue +119 -117
  138. package/src/views/user/position/dialog.vue +145 -138
  139. package/src/views/user/position/edit.vue +12 -12
  140. package/src/views/user/position/list.vue +172 -162
  141. package/src/views/user/project_tag/dialog.vue +9 -9
  142. package/src/views/user/project_tag/edit.vue +10 -10
  143. package/src/views/user/project_tag/list.vue +7 -7
  144. package/src/views/user/push_setting/edit.vue +14 -11
  145. package/src/views/user/push_setting/list.vue +45 -36
  146. package/src/views/user/redirect/index.vue +4 -4
  147. package/src/views/user/role/dialog.vue +11 -8
  148. package/src/views/user/role/edit.vue +427 -427
  149. package/src/views/user/role/list.vue +125 -114
  150. package/src/views/user/sale_org/dialog.vue +3 -3
  151. package/src/views/user/sale_org/list.vue +26 -26
  152. package/src/views/user/sale_org/moveDialog.vue +2 -2
  153. package/src/views/user/system_notice/edit.vue +184 -184
  154. package/src/views/user/system_notice/list.vue +156 -145
  155. package/src/views/user/system_parameter/edit.vue +140 -137
  156. package/src/views/user/system_parameter/list.vue +131 -120
  157. package/src/views/user/user/dialog.vue +40 -47
  158. package/src/views/user/user/edit.vue +1021 -1019
  159. package/src/views/user/user/form_edit.vue +497 -483
  160. package/src/views/user/user/form_list.vue +16 -16
  161. package/src/views/user/user/info.vue +271 -256
  162. package/src/views/user/user/infoContent.vue +12 -11
  163. package/src/views/user/user/infoEdit.vue +113 -94
  164. package/src/views/user/user/inner_list.vue +1 -1
  165. package/src/views/user/user/list.vue +55 -50
  166. package/src/views/user/user/list2.vue +1 -1
  167. package/src/views/user/user/modifyPasswordDialog.vue +3 -3
  168. package/src/views/user/user/out_list.vue +1 -1
  169. package/src/views/user/wf/formCustDialog/list.vue +13 -15
  170. package/src/views/user/wf/iframe/index.vue +12 -12
  171. package/src/views/user/wf/iframe/index2.vue +2 -2
  172. package/src/views/user/wf/wf_auto_submit_data/edit.vue +6 -6
  173. package/src/views/user/wf/wf_auto_submit_data/edith.vue +6 -6
  174. package/src/views/user/wf/wf_auto_submit_data/list.vue +10 -8
  175. package/src/views/user/wf/wf_diy_attribute/edit.vue +6 -6
  176. package/src/views/user/wf/wf_manage/list.vue +9 -8
  177. package/src/views/user/wf/wf_obj_config/activiti_wf.vue +11 -10
  178. package/src/views/user/wf/wf_obj_config/dialog.vue +10 -7
  179. package/src/views/user/wf/wf_obj_config/edit.vue +15 -12
  180. package/src/views/user/wf/wf_obj_config/edit_form.vue +72 -65
  181. package/src/views/user/wf/wf_obj_config/itemEdit.vue +9 -9
  182. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +9 -9
  183. package/src/views/user/wf/wf_obj_config/list.vue +12 -12
  184. package/src/views/user/wf/wf_obj_config/list_form.vue +24 -24
  185. package/src/views/user/wf/wf_param/edit.vue +5 -5
  186. package/src/views/user/wf/wf_work_calendar/components/calendar.vue +27 -13
  187. package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +25 -10
  188. package/src/views/user/wf/wf_work_calendar/configDialog.vue +9 -6
  189. package/src/views/user/wf/wf_work_calendar/date.js +10 -10
  190. package/src/views/user/wf/wf_work_calendar/list.vue +9 -4
  191. package/src/views/user/sale_org_net/list.vue +0 -574
@@ -1,218 +1,218 @@
1
- <template>
2
- <el-dialog
3
- title="文件详情"
4
- :append-to-body="true"
5
- :modal-append-to-body="falseValue"
6
- :close-on-click-modal="falseValue"
7
- :visible.sync="showDialog"
8
- :modal="falseValue"
9
- custom-class="dialog-style list-dialog"
10
- width="700px"
11
- height="500px"
12
- @close="dialogClose"
13
- v-el-drag-dialog
14
- v-el-dialog-center
15
- >
16
- <div id="containt">
17
- <div class="detail-wrap">
18
- <el-form ref="editForm" :model="attachmentDTO">
19
- <div class="d-header clearfix">
20
- <div class="fl">
21
- <i class="el-icon-info"/>
22
- 文件详情
23
- </div>
24
- <div class="fr"></div>
25
- </div>
26
- <baseTabs>
27
- <baseTabPane label="基本信息">
28
- <template #default>
29
- <table class="table-detail">
30
- <tbody>
31
- <tr>
32
- <th>文件路径</th>
33
- <td colspan="3">
34
- <el-breadcrumb separator-class="el-icon-arrow-right">
35
- <el-breadcrumb-item v-for="(treeNode,index) in treeNodeArr" :key="index">{{
36
- treeNode.label
37
- }}
38
- </el-breadcrumb-item>
39
- </el-breadcrumb>
40
- </td>
41
- </tr>
42
- <tr>
43
- <th>
44
- 文件名称
45
- </th>
46
- <td colspan="3">{{ attachmentDTO.name }}</td>
47
- </tr>
48
- <tr>
49
- <th>文件说明</th>
50
- <td colspan="3">{{attachmentDTO.note}}</td>
51
- </tr>
52
- <tr>
53
- <th>文件大小</th>
54
- <td>{{ formatFileSize(attachmentDTO.fileSize) }}</td>
55
- </tr>
56
- <tr>
57
- <th>单号</th>
58
- <td>{{ attachmentDTO.billSn }}</td>
59
- </tr>
60
- <tr>
61
- <th>单据说明</th>
62
- <td colspan="3">{{attachmentDTO.billInfo}}</td>
63
- </tr>
64
- <tr>
65
- <th>创建人</th>
66
- <td>{{ attachmentDTO.createBy }}</td>
67
- <th>创建时间</th>
68
- <td>{{ attachmentDTO.createDate }}</td>
69
- </tr>
70
- </tbody>
71
- </table>
72
- </template>
73
- </baseTabPane>
74
- <baseTabPane label="文件属性">
75
- <template #default>
76
- <vxe-grid
77
- ref="table-m1"
78
- class="vxe-tableNo"
79
- height="224px"
80
- :data="attachmentDTO.fileAttachAttributeDTOs"
81
- v-bind="vxeOption"
82
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
83
- @custom="$vxeTableUtil.customHandle"
84
- ></vxe-grid>
85
- </template>
86
- </baseTabPane>
87
- </baseTabs>
88
- </el-form>
89
- </div>
90
- </div>
91
- </el-dialog>
92
- </template>
93
-
94
- <script>
95
-
96
- export default {
97
- name: 'propertiesDialog',
98
- props: {
99
- isEdit: {
100
- type: Boolean,
101
- default: false,
102
- },
103
- treeNodeArr:{
104
- type:Array
105
- }
106
- },
107
- components: {},
108
- data() {
109
- return {
110
- showDialog: true,
111
- falseValue: false,
112
- vxeOption: {},
113
- showContent: true,
114
- attachmentDTO: {},
115
- current_prefix: '',
116
- filePrefix: '',
117
- };
118
- },
119
- computed:{
120
- pathNameArr(){
121
- if(this.attachmentDTO.treePathName){
122
- return ('全部文件'+this.attachmentDTO.treePathName.slice(0,-1)).split(',');
123
- }
124
- }
125
- },
126
- created() {
127
- let attachmentDTO = Object.assign({}, this.$attrs.editAttachment);
128
- this.attachmentDTO = attachmentDTO;
129
- this.current_prefix = this.attachmentDTO && this.attachmentDTO.serverName ? ('/' + this.attachmentDTO
130
- .serverName) :
131
- '';
132
- },
133
- mounted() {
134
- this.getData();
135
- this.initTableM1();
136
- },
137
- methods: {
138
- dialogClose() {
139
- this.$emit('update:visiable', false);
140
- },
141
- reloadContent() {
142
- this.getAttributes();
143
- },
144
- getData() {
145
- this.getAttributes();
146
- },
147
- getAttributes() {
148
- this.$http({
149
- url: this.current_prefix + '/attachment/attribute/list',
150
- method: 'post',
151
- data: {
152
- id: this.attachmentDTO.id
153
- },
154
- isLoading: true,
155
- // modalStrictly: true,
156
- success: res => {
157
- this.$set(this.attachmentDTO, 'fileAttachAttributeDTOs', res.objx || []);
158
- }
159
- });
160
- },
161
- initTableM1() {
162
- //明细
163
- var that = this;
164
- const tableRef = 'table-m1';
165
- const tableOption = {
166
- vue: this,
167
- tableRef: tableRef,
168
- tableName: 'file_view_ins_propertiesDialog_list-m1',
169
- columns: [
170
- {
171
- type: 'checkbox',
172
- fixed: 'left',
173
- width: 48,
174
- resizable: false
175
- },
176
- {
177
- title: '属性名称',
178
- field: 'attributeName',
179
- width: 200
180
- },
181
- {
182
- title: '属性值',
183
- field: 'attributeValue',
184
- width: 200
185
- },
186
- {
187
- width: 50,
188
- fixed: 'right',
189
- title: '',
190
- sortable: false
191
- }
192
- ]
193
- };
194
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
195
- this.vxeOption = opts;
196
- });
197
- },
198
- formatFileSize(fileSize) {
199
- fileSize = fileSize || 0;
200
- if (fileSize < 1024) {
201
- return fileSize + 'B';
202
- } else if (fileSize < (1024 * 1024)) {
203
- var temp = fileSize / 1024;
204
- temp = temp.toFixed(2);
205
- return temp + 'KB';
206
- } else if (fileSize < (1024 * 1024 * 1024)) {
207
- var temp = fileSize / (1024 * 1024);
208
- temp = temp.toFixed(2);
209
- return temp + 'MB';
210
- } else {
211
- var temp = fileSize / (1024 * 1024 * 1024);
212
- temp = temp.toFixed(2);
213
- return temp + 'GB';
214
- }
215
- }
216
- }
217
- };
218
- </script>
1
+ <template>
2
+ <el-dialog
3
+ title="文件详情"
4
+ :append-to-body="true"
5
+ :modal-append-to-body="falseValue"
6
+ :close-on-click-modal="falseValue"
7
+ :visible.sync="showDialog"
8
+ :modal="falseValue"
9
+ custom-class="dialog-style list-dialog"
10
+ width="700px"
11
+ height="500px"
12
+ @close="dialogClose"
13
+ v-el-drag-dialog
14
+ v-el-dialog-center
15
+ >
16
+ <div id="containt">
17
+ <div class="detail-wrap">
18
+ <el-form ref="editForm" :model="attachmentDTO">
19
+ <div class="d-header clearfix">
20
+ <div class="fl">
21
+ <i class="el-icon-info"/>
22
+ 文件详情
23
+ </div>
24
+ <div class="fr"></div>
25
+ </div>
26
+ <baseTabs>
27
+ <baseTabPane :label="$t1('基本信息')">
28
+ <template #default>
29
+ <table class="table-detail">
30
+ <tbody>
31
+ <tr>
32
+ <th>文件路径</th>
33
+ <td colspan="3">
34
+ <el-breadcrumb separator-class="el-icon-arrow-right">
35
+ <el-breadcrumb-item v-for="(treeNode,index) in treeNodeArr" :key="index">{{
36
+ treeNode.label
37
+ }}
38
+ </el-breadcrumb-item>
39
+ </el-breadcrumb>
40
+ </td>
41
+ </tr>
42
+ <tr>
43
+ <th>
44
+ 文件名称
45
+ </th>
46
+ <td colspan="3">{{ attachmentDTO.name }}</td>
47
+ </tr>
48
+ <tr>
49
+ <th>文件说明</th>
50
+ <td colspan="3">{{attachmentDTO.note}}</td>
51
+ </tr>
52
+ <tr>
53
+ <th>文件大小</th>
54
+ <td>{{ formatFileSize(attachmentDTO.fileSize) }}</td>
55
+ </tr>
56
+ <tr>
57
+ <th>单号</th>
58
+ <td>{{ attachmentDTO.billSn }}</td>
59
+ </tr>
60
+ <tr>
61
+ <th>单据说明</th>
62
+ <td colspan="3">{{attachmentDTO.billInfo}}</td>
63
+ </tr>
64
+ <tr>
65
+ <th>{{ $t1('创建人') }}</th>
66
+ <td>{{ attachmentDTO.createBy }}</td>
67
+ <th>{{ $t1('创建时间') }}</th>
68
+ <td>{{ attachmentDTO.createDate }}</td>
69
+ </tr>
70
+ </tbody>
71
+ </table>
72
+ </template>
73
+ </baseTabPane>
74
+ <baseTabPane label="文件属性">
75
+ <template #default>
76
+ <vxe-grid
77
+ ref="table-m1"
78
+ class="vxe-tableNo"
79
+ height="224px"
80
+ :data="attachmentDTO.fileAttachAttributeDTOs"
81
+ v-bind="vxeOption"
82
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
83
+ @custom="$vxeTableUtil.customHandle"
84
+ ></vxe-grid>
85
+ </template>
86
+ </baseTabPane>
87
+ </baseTabs>
88
+ </el-form>
89
+ </div>
90
+ </div>
91
+ </el-dialog>
92
+ </template>
93
+
94
+ <script>
95
+
96
+ export default {
97
+ name: 'propertiesDialog',
98
+ props: {
99
+ isEdit: {
100
+ type: Boolean,
101
+ default: false,
102
+ },
103
+ treeNodeArr: {
104
+ type: Array
105
+ }
106
+ },
107
+ components: {},
108
+ data() {
109
+ return {
110
+ showDialog: true,
111
+ falseValue: false,
112
+ vxeOption: {},
113
+ showContent: true,
114
+ attachmentDTO: {},
115
+ current_prefix: '',
116
+ filePrefix: '',
117
+ };
118
+ },
119
+ computed: {
120
+ pathNameArr() {
121
+ if (this.attachmentDTO.treePathName) {
122
+ return ('全部文件' + this.attachmentDTO.treePathName.slice(0, -1)).split(',');
123
+ }
124
+ }
125
+ },
126
+ created() {
127
+ let attachmentDTO = Object.assign({}, this.$attrs.editAttachment);
128
+ this.attachmentDTO = attachmentDTO;
129
+ this.current_prefix = this.attachmentDTO && this.attachmentDTO.serverName ? ('/' + this.attachmentDTO
130
+ .serverName) :
131
+ '';
132
+ },
133
+ mounted() {
134
+ this.getData();
135
+ this.initTableM1();
136
+ },
137
+ methods: {
138
+ dialogClose() {
139
+ this.$emit('update:visiable', false);
140
+ },
141
+ reloadContent() {
142
+ this.getAttributes();
143
+ },
144
+ getData() {
145
+ this.getAttributes();
146
+ },
147
+ getAttributes() {
148
+ this.$http({
149
+ url: this.current_prefix + '/attachment/attribute/list',
150
+ method: 'post',
151
+ data: {
152
+ id: this.attachmentDTO.id
153
+ },
154
+ isLoading: true,
155
+ // modalStrictly: true,
156
+ success: res => {
157
+ this.$set(this.attachmentDTO, 'fileAttachAttributeDTOs', res.objx || []);
158
+ }
159
+ });
160
+ },
161
+ initTableM1() {
162
+ //明细
163
+ var that = this;
164
+ const tableRef = 'table-m1';
165
+ const tableOption = {
166
+ vue: this,
167
+ tableRef: tableRef,
168
+ tableName: 'file_view_ins_propertiesDialog_list-m1',
169
+ columns: [
170
+ {
171
+ type: 'checkbox',
172
+ fixed: 'left',
173
+ width: 48,
174
+ resizable: false
175
+ },
176
+ {
177
+ title: '属性名称',
178
+ field: 'attributeName',
179
+ width: 200
180
+ },
181
+ {
182
+ title: '属性值',
183
+ field: 'attributeValue',
184
+ width: 200
185
+ },
186
+ {
187
+ width: 50,
188
+ fixed: 'right',
189
+ title: '',
190
+ sortable: false
191
+ }
192
+ ]
193
+ };
194
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
195
+ this.vxeOption = opts;
196
+ });
197
+ },
198
+ formatFileSize(fileSize) {
199
+ fileSize = fileSize || 0;
200
+ if (fileSize < 1024) {
201
+ return fileSize + 'B';
202
+ } else if (fileSize < (1024 * 1024)) {
203
+ var temp = fileSize / 1024;
204
+ temp = temp.toFixed(2);
205
+ return temp + 'KB';
206
+ } else if (fileSize < (1024 * 1024 * 1024)) {
207
+ var temp = fileSize / (1024 * 1024);
208
+ temp = temp.toFixed(2);
209
+ return temp + 'MB';
210
+ } else {
211
+ var temp = fileSize / (1024 * 1024 * 1024);
212
+ temp = temp.toFixed(2);
213
+ return temp + 'GB';
214
+ }
215
+ }
216
+ }
217
+ };
218
+ </script>