cloud-web-corejs 1.0.137 → 1.0.139

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.
@@ -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>