cloud-web-corejs 1.0.136 → 1.0.138

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.136",
4
+ "version": "1.0.138",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -13,16 +13,16 @@
13
13
  v-el-dialog-center
14
14
  >
15
15
  <div class="cont">
16
- <div id="containt" style="height:550px">
17
- <div class="search-criteria fl" style="width:220px;height:100%;">
16
+ <div id="containt" style="height: 550px">
17
+ <div class="search-criteria fl" style="width: 220px; height: 100%">
18
18
  <div class="tit"><i class="iconfont icon-shaixuan"></i><b>搜索条件</b></div>
19
19
 
20
20
  <el-form label-position="top">
21
- <div style="height:468px;padding-top: 10px;overflow:auto">
21
+ <div style="height: 468px; padding-top: 10px; overflow: auto">
22
22
  <el-form-item label="文件名">
23
- <el-input v-model="formData.fileName" size="small" clearable/>
23
+ <el-input v-model="formData.fileName" size="small" clearable />
24
24
  </el-form-item>
25
- <!-- <el-form-item label="所属对象描述">
25
+ <!-- <el-form-item label="所属对象描述">
26
26
  <base-input-batch v-model="formData.note"/>
27
27
  </el-form-item>-->
28
28
  <el-form-item label="创建时间">
@@ -48,30 +48,49 @@
48
48
  </el-form-item>
49
49
  <el-form-item label="文件类型">
50
50
  <el-select v-model="fileTypeSn" @change="getAttributeList">
51
- <el-option v-for="(item,index) in fileTypes" :key="index" :label="item.fileTypeName"
52
- :value="item.fileTypeSn"></el-option>
51
+ <el-option
52
+ v-for="(item, index) in fileTypes"
53
+ :key="index"
54
+ :label="item.fileTypeName"
55
+ :value="item.fileTypeSn"
56
+ ></el-option>
53
57
  </el-select>
54
58
  </el-form-item>
55
- <el-form-item v-for="(item,index) in fileAttributes" :key="index" :label="item.attributeName">
59
+ <el-form-item
60
+ v-for="(item, index) in fileAttributes"
61
+ :key="index"
62
+ :label="item.attributeName"
63
+ >
56
64
  <el-input v-model="item.formValue" clearable></el-input>
57
65
  </el-form-item>
58
66
  </div>
59
67
  <el-form-item class="btns">
60
- <el-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="primary" plain>重置
68
+ <el-button
69
+ icon="el-icon-brush"
70
+ class="button-sty"
71
+ @click="resetEvent"
72
+ type="primary"
73
+ plain
74
+ >重置
61
75
  </el-button>
62
- <el-button type="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
76
+ <el-button
77
+ type="warning"
78
+ icon="el-icon-search"
79
+ class="button-sty"
80
+ @click="searchEvent"
81
+ >搜索
63
82
  </el-button>
64
83
  </el-form-item>
65
84
  </el-form>
66
85
  </div>
67
- <label id="labBtn" class="labBtn1" style="cursor:unset;height: 100%;">
86
+ <label id="labBtn" class="labBtn1" style="cursor: unset; height: 100%">
68
87
  <!-- <div class="icon">
69
88
  <i class="el-icon-more"></i>
70
89
  <i class="el-icon-more"></i>
71
90
  </div>-->
72
91
  </label>
73
- <div class="main-right fr" style="width:calc(100% - 220px);padding-left: 6px;">
74
- <div style="height:100%">
92
+ <div class="main-right fr" style="width: calc(100% - 220px); padding-left: 6px">
93
+ <div style="height: 100%">
75
94
  <vxe-grid
76
95
  ref="table-m1"
77
96
  v-bind="vxeOption"
@@ -82,11 +101,17 @@
82
101
  <div class="clearfix screen-btns">
83
102
  <div class="fl screen-breadcrumb">
84
103
  <el-breadcrumb separator-class="el-icon-arrow-right ">
85
- <el-breadcrumb-item><i class="iconfont icon-dingwei-mianxing"></i><span class="f-blue"
86
- @click="checkTreeNode()">搜索范围</span>
104
+ <el-breadcrumb-item
105
+ ><i class="iconfont icon-dingwei-mianxing"></i
106
+ ><span class="f-blue" @click="checkTreeNode()">搜索范围</span>
87
107
  </el-breadcrumb-item>
88
- <el-breadcrumb-item v-for="(treeNode,index) in treeNodeArr" :key="index">
89
- <span class="f-blue" @click="checkTreeNode(treeNode)">{{ treeNode.label }}</span>
108
+ <el-breadcrumb-item
109
+ v-for="(treeNode, index) in treeNodeArr"
110
+ :key="index"
111
+ >
112
+ <span class="f-blue" @click="checkTreeNode(treeNode)">{{
113
+ treeNode.label
114
+ }}</span>
90
115
  </el-breadcrumb-item>
91
116
  </el-breadcrumb>
92
117
  </div>
@@ -100,15 +125,21 @@
100
125
  </div>
101
126
  </div>
102
127
  </template>
103
- <template #fileName="{row}">
128
+ <template #fileName="{ row }">
104
129
  <div>
105
- <el-tooltip :enterable="false" effect="dark" :content="$t2('预览', 'components.fileLibrary.preview')"
106
- placement="top">
130
+ <el-tooltip
131
+ :enterable="false"
132
+ effect="dark"
133
+ :content="$t2('预览', 'components.fileLibrary.preview')"
134
+ placement="top"
135
+ >
107
136
  <a class="a-link img" @click="$baseFilePreview(row)">
108
- <el-image :src="getShowUrl(row,'thumbnail')"></el-image>
137
+ <el-image :src="getShowUrl(row, 'thumbnail')"></el-image>
109
138
  </a>
110
139
  </el-tooltip>
111
- <a class="a-link underLine" @click="$baseFilePreview(row)">{{ row.fileName }}</a>
140
+ <a class="a-link underLine" @click="$baseFilePreview(row)">{{
141
+ row.fileName
142
+ }}</a>
112
143
  </div>
113
144
  </template>
114
145
  </vxe-grid>
@@ -120,23 +151,22 @@
120
151
  </template>
121
152
 
122
153
  <script>
123
- import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
154
+ import { selectDialogMixins } from "@base/mixins/selectDialog/index.js";
124
155
 
125
- import {treeScollx, treeScolly} from '@base/utils/global.js';
126
- import {encode} from "js-base64";
156
+ import { treeScollx, treeScolly } from "@base/utils/global.js";
157
+ import { encode } from "js-base64";
127
158
 
128
159
  export default {
129
- name: 'productDialog',
130
- props: ['visiable', 'multi', 'rows', 'treeNodeArr', 'currentFileCategory'],
160
+ name: "productDialog",
161
+ props: ["visiable", "multi", "rows", "treeNodeArr", "currentFileCategory"],
131
162
  mixins: [selectDialogMixins],
132
- inject: ['current_prefix', 'storeAreaCode', 'getObjectForeignId', 'getIsPrivate'],
163
+ inject: ["current_prefix", "storeAreaCode", "getObjectForeignId", "getIsPrivate"],
133
164
  created() {
134
- this.initSetting({treeScolly: false});
165
+ this.initSetting({ treeScolly: false });
135
166
  /*setTimeout(() => {
136
167
  treeScollx({target: this, type: 'default', dragBtn: '.labBtn1'});
137
168
  treeScolly({target: this, type: 'selectDialog', dragBtn: '.labBtn2'});
138
169
  }, 200);*/
139
-
140
170
  },
141
171
  mounted() {
142
172
  this.getFileTypeList();
@@ -155,7 +185,7 @@ export default {
155
185
  fileTypes: [],
156
186
  fileAttributes: [],
157
187
  fileTypeSn: null,
158
- fileAttachAttributeCDTos: []
188
+ fileAttachAttributeCDTos: [],
159
189
  };
160
190
  },
161
191
  methods: {
@@ -164,8 +194,8 @@ export default {
164
194
 
165
195
  let tableOption = {
166
196
  vue: that,
167
- tableRef: 'table-m1',
168
- tableName: 'fileLigraryFilterDialog-m1',
197
+ tableRef: "table-m1",
198
+ tableName: "fileLigraryFilterDialog-m1",
169
199
  path: this.current_prefix + "/file_obj/listAuthAttachPage",
170
200
  param: () => {
171
201
  /* let parents = this.currentFileCategory &&
@@ -174,11 +204,14 @@ export default {
174
204
  ? [this.currentFileCategory.id]
175
205
  : [];*/
176
206
  let fileAttachAttributeCDTOs = [];
177
- this.fileAttributes.map(item => {
207
+ this.fileAttributes.map((item) => {
178
208
  if (item.formValue !== "" && item.formValue !== null) {
179
- fileAttachAttributeCDTOs.push({attributeSn: item.attributeSn, attributeValue: item.formValue});
209
+ fileAttachAttributeCDTOs.push({
210
+ attributeSn: item.attributeSn,
211
+ attributeValue: item.formValue,
212
+ });
180
213
  }
181
- })
214
+ });
182
215
 
183
216
  let objectForeignId = this.getObjectForeignId();
184
217
  let isPrivate = this.getIsPrivate();
@@ -193,26 +226,26 @@ export default {
193
226
  },
194
227
  config: {
195
228
  proxyConfig: {
196
- autoLoad: false
197
- }
229
+ autoLoad: false,
230
+ },
198
231
  },
199
232
  columns: [
200
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
233
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
201
234
  {
202
- title: this.$t2('文件名称', 'components.fileLibrary.fileName'),
235
+ title: this.$t2("文件名称", "components.fileLibrary.fileName"),
203
236
  field: "fileName",
204
237
  width: 250,
205
238
  fixed: "left",
206
239
  slots: {
207
- default: 'fileName'
240
+ default: "fileName",
208
241
  },
209
242
  },
210
243
  {
211
- title: this.$t2('文件大小', 'components.fileLibrary.fileSize'),
244
+ title: this.$t2("文件大小", "components.fileLibrary.fileSize"),
212
245
  field: "fileSize",
213
246
  width: 150,
214
247
  slots: {
215
- default: ({row, $rowIndex}) => {
248
+ default: ({ row, $rowIndex }) => {
216
249
  if (!row.dirs) {
217
250
  return this.formatFileSize(row.fileSize);
218
251
  }
@@ -220,50 +253,62 @@ export default {
220
253
  },
221
254
  },
222
255
  {
223
- title: this.$t2('版本号', 'components.fileLibrary.fileRev'),
256
+ title: this.$t2("版本号", "components.fileLibrary.fileRev"),
224
257
  field: "rev",
225
258
  width: 150,
226
259
  slots: {
227
- default: ({row, $rowIndex}) => {
260
+ default: ({ row, $rowIndex }) => {
228
261
  if (!row.dirs) {
229
262
  return row.rev;
230
263
  }
231
- }
232
- }
264
+ },
265
+ },
266
+ },
267
+ {
268
+ title: this.$t2("分辨率", "components.fileLibrary.widthHeight"),
269
+ field: "widthHeight",
270
+ width: 150,
271
+ },
272
+ {
273
+ title: this.$t2("所属对象描述", "components.fileLibrary.note"),
274
+ field: "note",
275
+ width: 250,
233
276
  },
234
- {title: this.$t2('分辨率', 'components.fileLibrary.widthHeight'), field: "widthHeight", width: 150},
235
- {title: this.$t2('所属对象描述', 'components.fileLibrary.note'), field: "note", width: 250},
236
277
  {
237
- title: '状态',
238
- field: 'status',
278
+ title: "状态",
279
+ field: "status",
239
280
  width: 150,
240
281
  slots: {
241
- default: ({row, $rowIndex}) => {
282
+ default: ({ row, $rowIndex }) => {
242
283
  if (!row.dirs) {
243
- return row.status == 1 ? '已归档' : '未归档';
284
+ return row.status == 1 ? "已归档" : "未归档";
244
285
  }
245
- }
246
- }
286
+ },
287
+ },
247
288
  },
248
289
  {
249
- title: this.$t2('文件编码', 'components.fileLibrary.fileSn'),
290
+ title: this.$t2("文件编码", "components.fileLibrary.fileSn"),
250
291
  field: "fileSn",
251
- width: 150
292
+ width: 150,
252
293
  },
253
294
  // ...customColumns,
254
- {title: this.$t2('创建人', 'components.fileLibrary.createBy'), field: "createBy", width: 150},
295
+ {
296
+ title: this.$t2("创建人", "components.fileLibrary.createBy"),
297
+ field: "_createBy",
298
+ width: 150,
299
+ },
255
300
  {
256
301
  field: "createDate",
257
- title: this.$t2('创建时间', 'components.fileLibrary.createDate'),
302
+ title: this.$t2("创建时间", "components.fileLibrary.createDate"),
258
303
  width: 150,
259
304
  },
260
305
  {
261
306
  width: 47,
262
- fixed: 'right',
263
- title: '',
307
+ fixed: "right",
308
+ title: "",
264
309
  sortable: false,
265
310
  slots: {
266
- default: ({row, rowIndex}) => {
311
+ default: ({ row, rowIndex }) => {
267
312
  return [
268
313
  <div>
269
314
  <a
@@ -273,31 +318,35 @@ export default {
273
318
  this.openFileDirs(row);
274
319
  }}
275
320
  >
276
- <el-tooltip enterable={false} effect="dark" content={this.$t1('在文件夹中显示')} placement="top"
277
- popper-class="tooltip-skin">
278
- <i class="el-icon-view"/>
321
+ <el-tooltip
322
+ enterable={false}
323
+ effect="dark"
324
+ content={this.$t1("在文件夹中显示")}
325
+ placement="top"
326
+ popper-class="tooltip-skin"
327
+ >
328
+ <i class="el-icon-view" />
279
329
  </el-tooltip>
280
330
  </a>
281
- </div>
331
+ </div>,
282
332
  ];
283
- }
284
- }
285
- }
333
+ },
334
+ },
335
+ },
286
336
  ],
287
337
  };
288
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
338
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
289
339
  that.vxeOption = opts;
290
340
  });
291
341
  },
292
342
  openFileDirs(row) {
293
343
  this.dialogClose();
294
- this.$emit("openFileDirs", row)
344
+ this.$emit("openFileDirs", row);
295
345
  },
296
346
  getShowUrl(attachment, field) {
297
347
  if (!field) field = "medium";
298
348
  return this.$commonFileUtil.getShowUrl(
299
- attachment.domain +
300
- (attachment[field] ? attachment[field] : attachment.url)
349
+ attachment.domain + (attachment[field] ? attachment[field] : attachment.url)
301
350
  );
302
351
  },
303
352
  formatFileSize(fileSize) {
@@ -319,12 +368,12 @@ export default {
319
368
  }
320
369
  },
321
370
  searchEvent() {
322
- this.$refs['table-m1'].commitProxy('reload');
371
+ this.$refs["table-m1"].commitProxy("reload");
323
372
  },
324
373
  resetEvent() {
325
374
  this.formData = {};
326
375
  this.clearFileAttributeFormValue();
327
- this.$refs['table-m1'].commitProxy('reload');
376
+ this.$refs["table-m1"].commitProxy("reload");
328
377
  },
329
378
  clearFileAttributeFormValue() {
330
379
  this.fileTypeSn = null;
@@ -335,7 +384,7 @@ export default {
335
384
  url: this.current_prefix + `/file_type/listPage`,
336
385
  method: `post`,
337
386
  data: {
338
- enabled: true
387
+ enabled: true,
339
388
  },
340
389
  // isLoading: true,
341
390
  // modalStrictly: true,
@@ -349,22 +398,20 @@ export default {
349
398
  url: this.current_prefix + `/file_type/listAttribute`,
350
399
  method: `post`,
351
400
  data: {
352
- stringOne: this.fileTypeSn
401
+ stringOne: this.fileTypeSn,
353
402
  },
354
403
  // isLoading: true,
355
404
  // modalStrictly: true,
356
405
  success: (res) => {
357
406
  let rows = res.objx || [];
358
- rows.forEach(row => {
407
+ rows.forEach((row) => {
359
408
  row.formValue = null;
360
- })
409
+ });
361
410
  this.fileAttributes = rows;
362
411
  },
363
412
  });
364
413
  },
365
-
366
-
367
- }
414
+ },
368
415
  };
369
416
  </script>
370
417
  <style scoped lang="scss">
@@ -372,7 +419,7 @@ export default {
372
419
  height: 100%;
373
420
 
374
421
  .main-right {
375
- height: 100%
422
+ height: 100%;
376
423
  }
377
424
  }
378
425
 
@@ -386,7 +386,7 @@ modules = {
386
386
  },
387
387
  {
388
388
  title: this.$t2("创建人", "system.label.createBy"),
389
- field: "createBy",
389
+ field: "_createBy",
390
390
  width: 150,
391
391
  },
392
392
  {
@@ -396,7 +396,7 @@ modules = {
396
396
  },
397
397
  {
398
398
  title: this.$t2("更新人", "system.label.modifyBy"),
399
- field: "modifyBy",
399
+ field: "_modifyBy",
400
400
  width: 150,
401
401
  },
402
402
  {
@@ -539,7 +539,7 @@ modules = {
539
539
  };
540
540
 
541
541
  let parent = this.currentCategoryId;
542
- this.$http({
542
+ this.$commonHttp({
543
543
  method: "post",
544
544
  url: this.current_prefix + "/file_obj/listPage",
545
545
  data: {
@@ -899,7 +899,7 @@ modules = {
899
899
  ...customColumns,
900
900
  {
901
901
  title: this.$t2("创建人", "components.fileLibrary.createBy"),
902
- field: "createBy",
902
+ field: "_createBy",
903
903
  width: 150,
904
904
  },
905
905
  {
@@ -100,7 +100,7 @@ modules = {
100
100
  this.getObjs();
101
101
  },
102
102
  getData() {
103
- this.$http({
103
+ this.$commonHttp({
104
104
  url: this.current_prefix + '/file_obj/get',
105
105
  method: 'post',
106
106
  data: {
@@ -253,7 +253,7 @@ modules = {
253
253
  current: 1,
254
254
  size: this.pageSize
255
255
  };
256
- this.$http({
256
+ this.$commonHttp({
257
257
  method: 'post',
258
258
  url: this.current_prefix + '/file_recovery/listPage',
259
259
  data: {
@@ -367,7 +367,7 @@ modules = {
367
367
  field: "fileSn",
368
368
  width: 150
369
369
  },
370
- {title: this.$t2('删除人', 'components.fileLibrary.deleteBy'), field: 'createBy', width: 150},
370
+ {title: this.$t2('删除人', 'components.fileLibrary.deleteBy'), field: '_createBy', width: 150},
371
371
  {
372
372
  field: 'createDate',
373
373
  title: this.$t2('删除时间', 'components.fileLibrary.deleteDate'),
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <el-dialog
3
- :title="$t2('文件详情','components.fileLibrary.fileDetail')"
3
+ :title="$t2('文件详情', 'components.fileLibrary.fileDetail')"
4
4
  :append-to-body="true"
5
5
  :modal-append-to-body="falseValue"
6
6
  :close-on-click-modal="falseValue"
@@ -18,85 +18,97 @@
18
18
  <el-form ref="editForm" :model="attachmentDTO">
19
19
  <div class="d-header clearfix">
20
20
  <div class="fl">
21
- <i class="el-icon-info"/>
22
- {{ $t2('文件详情', 'components.fileLibrary.fileDetail') }}
21
+ <i class="el-icon-info" />
22
+ {{ $t2("文件详情", "components.fileLibrary.fileDetail") }}
23
23
  </div>
24
24
  <div class="fr">
25
- <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData"
26
- v-if="isEdit && attachmentDTO.status!=1">{{ $t2('保存', 'system.button.save') }}
25
+ <el-button
26
+ type="primary"
27
+ class="button-sty"
28
+ icon="el-icon-check"
29
+ @click="saveData"
30
+ v-if="isEdit && attachmentDTO.status != 1"
31
+ >{{ $t2("保存", "system.button.save") }}
27
32
  </el-button>
28
33
  </div>
29
34
  </div>
30
35
  <baseTabs>
31
- <baseTabPane :label="$t2('基本信息','system.label.baseInfo')">
36
+ <baseTabPane :label="$t2('基本信息', 'system.label.baseInfo')">
32
37
  <template #default>
33
38
  <table class="table-detail">
34
39
  <tbody>
35
- <tr>
36
- <th>{{ $t2('文件路径', 'components.fileLibrary.filePath') }}</th>
37
- <td colspan="3">
38
- <el-breadcrumb separator-class="el-icon-arrow-right">
39
- <el-breadcrumb-item v-for="(pathName,index) in pathNameArr" :key="index">{{
40
- pathName
41
- }}
42
- </el-breadcrumb-item>
43
- </el-breadcrumb>
44
- </td>
45
- </tr>
46
- <tr>
47
- <th>
48
- {{ $t2('文件名称', 'components.fileLibrary.fileName') }}
49
- </th>
50
- <td colspan="3">
51
- <el-input v-model="fileName" clearable v-if="isEdit">
52
- <template slot="append">{{ filePrefix }}</template>
53
- </el-input>
54
- <template v-else>{{ attachmentDTO.fileName }}</template>
55
- </td>
56
- </tr>
57
- <tr>
58
- <th>{{ $t2('所属对象描述', 'components.fileLibrary.note') }}</th>
59
- <td colspan="3">{{ attachmentDTO.note }}</td>
60
- </tr>
61
- <tr>
62
- <th>{{ $t1('文件类型名') }}</th>
63
- <td colspan="3"><b>{{ attachmentDTO.fileTypeName }}</b></td>
64
- </tr>
65
- <tr>
66
- <th>{{ $t2('文件大小', 'components.fileLibrary.fileSize') }}</th>
67
- <td>{{ formatFileSize(attachmentDTO.fileSize) }}</td>
68
- <th>{{ $t2('版本号', 'components.fileLibrary.fileRev') }}</th>
69
- <td>{{ attachmentDTO.rev }}</td>
70
- </tr>
71
- <tr>
72
- <th>{{ $t2('分辨率', 'components.fileLibrary.widthHeight') }}</th>
73
- <td>{{ attachmentDTO.widthHeight }}</td>
74
- <th>{{ $t2('是否归档', 'components.fileLibrary.status') }}</th>
75
- <td>{{ attachmentDTO.status == 1 ? "已归档" : "未归档" }}</td>
76
- </tr>
77
- <!-- <tr>
40
+ <tr>
41
+ <th>{{ $t2("文件路径", "components.fileLibrary.filePath") }}</th>
42
+ <td colspan="3">
43
+ <el-breadcrumb separator-class="el-icon-arrow-right">
44
+ <el-breadcrumb-item
45
+ v-for="(pathName, index) in pathNameArr"
46
+ :key="index"
47
+ >{{ pathName }}
48
+ </el-breadcrumb-item>
49
+ </el-breadcrumb>
50
+ </td>
51
+ </tr>
52
+ <tr>
53
+ <th>
54
+ {{ $t2("文件名称", "components.fileLibrary.fileName") }}
55
+ </th>
56
+ <td colspan="3">
57
+ <el-input v-model="fileName" clearable v-if="isEdit">
58
+ <template slot="append">{{ filePrefix }}</template>
59
+ </el-input>
60
+ <template v-else>{{ attachmentDTO.fileName }}</template>
61
+ </td>
62
+ </tr>
63
+ <tr>
64
+ <th>{{ $t2("所属对象描述", "components.fileLibrary.note") }}</th>
65
+ <td colspan="3">{{ attachmentDTO.note }}</td>
66
+ </tr>
67
+ <tr>
68
+ <th>{{ $t1("文件类型名") }}</th>
69
+ <td colspan="3">
70
+ <b>{{ attachmentDTO.fileTypeName }}</b>
71
+ </td>
72
+ </tr>
73
+ <tr>
74
+ <th>{{ $t2("文件大小", "components.fileLibrary.fileSize") }}</th>
75
+ <td>{{ formatFileSize(attachmentDTO.fileSize) }}</td>
76
+ <th>{{ $t2("版本号", "components.fileLibrary.fileRev") }}</th>
77
+ <td>{{ attachmentDTO.rev }}</td>
78
+ </tr>
79
+ <tr>
80
+ <th>{{ $t2("分辨率", "components.fileLibrary.widthHeight") }}</th>
81
+ <td>{{ attachmentDTO.widthHeight }}</td>
82
+ <th>{{ $t2("是否归档", "components.fileLibrary.status") }}</th>
83
+ <td>{{ attachmentDTO.status == 1 ? "已归档" : "未归档" }}</td>
84
+ </tr>
85
+ <!-- <tr>
78
86
  <th>状态</th>
79
87
  <td>{{ attachmentDTO.status == 1 ? '归档' : '未归档' }}</td>
80
88
  </tr>-->
81
- <tr>
82
- <th>{{ $t2('文件编码', 'components.fileLibrary.fileSn') }}</th>
83
- <td colspan="3">{{ attachmentDTO.fileSn }}</td>
84
- </tr>
85
- <tr>
86
- <th>{{ $t2('创建人', 'system.label.createBy') }}</th>
87
- <td>{{ attachmentDTO.createBy }}</td>
88
- <th>{{ $t2('创建时间', 'system.label.createDate') }}</th>
89
- <td>{{ attachmentDTO.createDate }}</td>
90
- </tr>
89
+ <tr>
90
+ <th>{{ $t2("文件编码", "components.fileLibrary.fileSn") }}</th>
91
+ <td colspan="3">{{ attachmentDTO.fileSn }}</td>
92
+ </tr>
93
+ <tr>
94
+ <th>{{ $t2("创建人", "system.label.createBy") }}</th>
95
+ <td>{{ attachmentDTO._createBy }}</td>
96
+ <th>{{ $t2("创建时间", "system.label.createDate") }}</th>
97
+ <td>{{ attachmentDTO.createDate }}</td>
98
+ </tr>
91
99
  </tbody>
92
100
  </table>
93
101
  </template>
94
102
  </baseTabPane>
95
- <baseTabPane :label="$t2('文件属性','components.fileLibrary.fileAttribute')">
103
+ <baseTabPane :label="$t2('文件属性', 'components.fileLibrary.fileAttribute')">
96
104
  <template #button>
97
- <el-button class="button-sty" @click="addItem" icon="el-icon-plus"
98
- v-if="isEdit && attachmentDTO.status!=1">
99
- {{ $t2('新增文件属性', 'components.fileLibrary.addFileAttribute') }}
105
+ <el-button
106
+ class="button-sty"
107
+ @click="addItem"
108
+ icon="el-icon-plus"
109
+ v-if="isEdit && attachmentDTO.status != 1"
110
+ >
111
+ {{ $t2("新增文件属性", "components.fileLibrary.addFileAttribute") }}
100
112
  </el-button>
101
113
  </template>
102
114
  <template #default>
@@ -109,24 +121,33 @@
109
121
  @resizable-change="$vxeTableUtil.onColumnWitchChange"
110
122
  @custom="$vxeTableUtil.customHandle"
111
123
  >
112
- <template #attributeName="{row,rowIndex}">
113
- <el-form-item :prop="'fileAttachAttributeDTOs.' + rowIndex + '.attributeName'"
114
- :rules="[{ required: true, trigger: 'blur' }]">
115
- <el-input v-model="row.attributeName" clearable v-if="isEdit"/>
124
+ <template #attributeName="{ row, rowIndex }">
125
+ <el-form-item
126
+ :prop="'fileAttachAttributeDTOs.' + rowIndex + '.attributeName'"
127
+ :rules="[{ required: true, trigger: 'blur' }]"
128
+ >
129
+ <el-input v-model="row.attributeName" clearable v-if="isEdit" />
116
130
  <template v-else>{{ row.attributeName }}</template>
117
131
  </el-form-item>
118
132
  </template>
119
- <template #attributeValue="{row}">
120
- <el-input v-model="row.attributeValue" clearable v-if="isEdit"/>
133
+ <template #attributeValue="{ row }">
134
+ <el-input v-model="row.attributeValue" clearable v-if="isEdit" />
121
135
  <template v-else>{{ row.attributeValue }}</template>
122
136
  </template>
123
- <template #operate="{row,rowIndex}">
124
- <a class="a-link" @click="attachmentDTO.fileAttachAttributeDTOs.splice(rowIndex, 1)"
125
- v-if="isEdit">
126
- <el-tooltip :enterable="false" effect="dark"
127
- :content="$t2('删除','components.fileLibrary.delete')" placement="top"
128
- popper-class="tooltip-skin">
129
- <i class="el-icon-delete"/>
137
+ <template #operate="{ row, rowIndex }">
138
+ <a
139
+ class="a-link"
140
+ @click="attachmentDTO.fileAttachAttributeDTOs.splice(rowIndex, 1)"
141
+ v-if="isEdit"
142
+ >
143
+ <el-tooltip
144
+ :enterable="false"
145
+ effect="dark"
146
+ :content="$t2('删除', 'components.fileLibrary.delete')"
147
+ placement="top"
148
+ popper-class="tooltip-skin"
149
+ >
150
+ <i class="el-icon-delete" />
130
151
  </el-tooltip>
131
152
  </a>
132
153
  </template>
@@ -155,9 +176,9 @@
155
176
  </template>
156
177
 
157
178
  <script>
158
- import mixins from './mixins/propertiesDialogMixins';
179
+ import mixins from "./mixins/propertiesDialogMixins";
159
180
 
160
181
  export default {
161
- mixins: [mixins]
182
+ mixins: [mixins],
162
183
  };
163
184
  </script>
@@ -118,6 +118,7 @@
118
118
  :visiable.sync="showUserDialog1"
119
119
  @confirm="confirmUserDialog1"
120
120
  :multi="false"
121
+ :param="{ enabled: null }"
121
122
  />
122
123
  <userDialog
123
124
  v-if="showUserDialog2"
@@ -112,6 +112,7 @@
112
112
  :visiable.sync="showUserDialog1"
113
113
  @confirm="confirmUserDialog1"
114
114
  :multi="false"
115
+ :param="{ enabled: null }"
115
116
  />
116
117
  <userDialog
117
118
  v-if="showUserDialog2"