cloud-web-corejs-haier 1.0.20 → 1.0.22

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.
@@ -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: {},
@@ -18,10 +19,14 @@ modules = {
18
19
  falseValue: false,
19
20
  vxeOption: {},
20
21
  showContent: true,
21
- attachmentDTO: {},
22
+ attachmentDTO: {
23
+ fileAttachAttributeDTOs:[]
24
+ },
25
+ fileAttachObjDTOs:[],
22
26
  // current_prefix: '',
23
27
  filePrefix: '',
24
- fileName: ''
28
+ fileName: '',
29
+ vxeOption2:{}
25
30
  };
26
31
  },
27
32
  watch: {
@@ -47,6 +52,7 @@ modules = {
47
52
  mounted() {
48
53
  this.getData();
49
54
  this.initTableM1();
55
+ this.initTableM2();
50
56
  },
51
57
  methods: {
52
58
  initFilePrefix() {
@@ -91,9 +97,10 @@ modules = {
91
97
  },
92
98
  reloadContent() {
93
99
  this.getAttributes();
100
+ this.getObjs();
94
101
  },
95
102
  getData() {
96
- this.$http({
103
+ this.$commonHttp({
97
104
  url: this.current_prefix + '/file_obj/get',
98
105
  method: 'post',
99
106
  data: {
@@ -104,6 +111,7 @@ modules = {
104
111
  success: res => {
105
112
  this.attachmentDTO = res.objx || {};
106
113
  this.getAttributes();
114
+ this.getObjs();
107
115
  }
108
116
  });
109
117
  },
@@ -121,6 +129,21 @@ modules = {
121
129
  }
122
130
  });
123
131
  },
132
+ getObjs() {
133
+ this.$http({
134
+ url: this.current_prefix + '/file_attach/obj/list',
135
+ method: 'post',
136
+ data: {
137
+ stringOne: this.attachmentDTO.fileSn
138
+ },
139
+ isLoading: true,
140
+ // modalStrictly: true,
141
+ success: res => {
142
+ // this.$set(this.attachmentDTO, 'fileAttachObjDTOs', res.objx || []);
143
+ this.fileAttachObjDTOs = res.objx || []
144
+ }
145
+ });
146
+ },
124
147
  initTableM1() {
125
148
  //明细
126
149
  var that = this;
@@ -187,6 +210,43 @@ modules = {
187
210
  temp = temp.toFixed(2);
188
211
  return temp + 'GB';
189
212
  }
213
+ },
214
+ initTableM2() {
215
+ //明细
216
+ var that = this;
217
+ const tableRef = 'table-m2';
218
+ const tableOption = {
219
+ vue: this,
220
+ tableRef: tableRef,
221
+ tableName: 'user_fileLibrary_propertiesDialog_list-m2',
222
+ columns: [
223
+ {
224
+ type: 'checkbox',
225
+ fixed: 'left',
226
+ width: 48,
227
+ resizable: false
228
+ },
229
+ {
230
+ title: this.$t1('关联对象编码'),
231
+ field: 'objSn',
232
+ width: 200
233
+ },
234
+ {
235
+ title: this.$t1('关联对象名称'),
236
+ field: 'objName',
237
+ width: 200
238
+ },
239
+ {
240
+ width: 50,
241
+ fixed: 'right',
242
+ title: '',
243
+ sortable: false
244
+ }
245
+ ]
246
+ };
247
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
248
+ this.vxeOption2 = opts;
249
+ });
190
250
  }
191
251
  }
192
252
  };
@@ -1,5 +1,4 @@
1
- import ElImageViewer from '../../../components/VabUpload/image-viewer';
2
- import propertiesDialog from '../propertiesDialog';
1
+ import ElImageViewer from '@base/components/VabUpload/image-viewer';
3
2
  import recycleBinPropertiesDialog from "../recycleBinPropertiesDialog";
4
3
  import categoryMoveDialog from '../categoryMoveDialog'
5
4
 
@@ -254,7 +253,7 @@ modules = {
254
253
  current: 1,
255
254
  size: this.pageSize
256
255
  };
257
- this.$http({
256
+ this.$commonHttp({
258
257
  method: 'post',
259
258
  url: this.current_prefix + '/file_recovery/listPage',
260
259
  data: {
@@ -368,7 +367,7 @@ modules = {
368
367
  field: "fileSn",
369
368
  width: 150
370
369
  },
371
- {title: this.$t2('删除人', 'components.fileLibrary.deleteBy'), field: 'createBy', width: 150},
370
+ {title: this.$t2('删除人', 'components.fileLibrary.deleteBy'), field: '_createBy', width: 150},
372
371
  {
373
372
  field: 'createDate',
374
373
  title: this.$t2('删除时间', 'components.fileLibrary.deleteDate'),
@@ -4,6 +4,33 @@
4
4
  </div>
5
5
  </template>
6
6
 
7
- <script></script>
7
+ <script>
8
+ export default {
9
+ provide() {
10
+ let e = this;
11
+ return {
12
+ refList: {},
13
+ widgetKeyNameMap:{},
14
+ sfRefList: {},
15
+ getFormConfig: function () {},
16
+ getGlobalDsv: function () {},
17
+ globalOptionData: null,
18
+ getOptionData: function () {},
19
+ globalModel: null,
20
+ previewState: null,
21
+ getReadMode: function () {},
22
+ getSubFormFieldFlag: function () {},
23
+ getSubFormName: function () {},
24
+ doScriptAccess: null,
25
+ formHttp: null,
26
+ getReportTemplate: function () {},
27
+ getObjectFieldFlag: () => !1,
28
+ getObjectName: () => "",
29
+ getHasWf: function () {},
30
+ hasConfig: function () {},
31
+ };
32
+ },
33
+ }
34
+ </script>
8
35
 
9
- <style></style>
36
+ <style></style>
@@ -54,13 +54,13 @@ export default {
54
54
  /* 这里不能访问方法和属性!! */
55
55
  },
56
56
  created() {
57
- this.init();
58
57
  /* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
59
58
  需要在父组件created中初始化!! */
60
59
  this.registerToRefList();
61
60
  this.initEventHandler();
62
61
 
63
62
  this.handleOnCreated();
63
+ this.init();
64
64
  },
65
65
 
66
66
  mounted() {
@@ -54,13 +54,13 @@ export default {
54
54
  /* 这里不能访问方法和属性!! */
55
55
  },
56
56
  created() {
57
- this.init();
58
57
  /* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
59
58
  需要在父组件created中初始化!! */
60
59
  this.registerToRefList();
61
60
  this.initEventHandler();
62
61
 
63
62
  this.handleOnCreated();
63
+ this.init();
64
64
  },
65
65
 
66
66
  mounted() {