cloud-web-corejs 1.0.54-dev.101 → 1.0.54-dev.103

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.101",
4
+ "version": "1.0.54-dev.103",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -19,10 +19,14 @@ modules = {
19
19
  falseValue: false,
20
20
  vxeOption: {},
21
21
  showContent: true,
22
- attachmentDTO: {},
22
+ attachmentDTO: {
23
+ fileAttachAttributeDTOs:[]
24
+ },
25
+ fileAttachObjDTOs:[],
23
26
  // current_prefix: '',
24
27
  filePrefix: '',
25
- fileName: ''
28
+ fileName: '',
29
+ vxeOption2:{}
26
30
  };
27
31
  },
28
32
  watch: {
@@ -48,6 +52,7 @@ modules = {
48
52
  mounted() {
49
53
  this.getData();
50
54
  this.initTableM1();
55
+ this.initTableM2();
51
56
  },
52
57
  methods: {
53
58
  initFilePrefix() {
@@ -92,6 +97,7 @@ modules = {
92
97
  },
93
98
  reloadContent() {
94
99
  this.getAttributes();
100
+ this.getObjs();
95
101
  },
96
102
  getData() {
97
103
  this.$http({
@@ -105,6 +111,7 @@ modules = {
105
111
  success: res => {
106
112
  this.attachmentDTO = res.objx || {};
107
113
  this.getAttributes();
114
+ this.getObjs();
108
115
  }
109
116
  });
110
117
  },
@@ -122,6 +129,21 @@ modules = {
122
129
  }
123
130
  });
124
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
+ },
125
147
  initTableM1() {
126
148
  //明细
127
149
  var that = this;
@@ -188,6 +210,43 @@ modules = {
188
210
  temp = temp.toFixed(2);
189
211
  return temp + 'GB';
190
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
+ });
191
250
  }
192
251
  }
193
252
  };
@@ -60,7 +60,7 @@
60
60
  </tr>
61
61
  <tr>
62
62
  <th>{{ $t1('文件类型名') }}</th>
63
- <td colspan="3">{{ attachmentDTO.fileTypeName }}</td>
63
+ <td colspan="3"><b>{{ attachmentDTO.fileTypeName }}</b></td>
64
64
  </tr>
65
65
  <tr>
66
66
  <th>{{ $t2('文件大小', 'components.fileLibrary.fileSize') }}</th>
@@ -133,6 +133,20 @@
133
133
  </vxe-grid>
134
134
  </template>
135
135
  </baseTabPane>
136
+ <baseTabPane :label="$t1('文件关联对象')">
137
+ <template #button></template>
138
+ <template #default>
139
+ <vxe-grid
140
+ ref="table-m2"
141
+ class="vxe-tableNo"
142
+ height="224px"
143
+ :data="fileAttachObjDTOs"
144
+ v-bind="vxeOption2"
145
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
146
+ @custom="$vxeTableUtil.customHandle"
147
+ ></vxe-grid>
148
+ </template>
149
+ </baseTabPane>
136
150
  </baseTabs>
137
151
  </el-form>
138
152
  </div>