|
132 | 132 | style="width: 120px" |
133 | 133 | @change="search_type_change" |
134 | 134 | > |
135 | | - <el-option :label="$t('dynamicsForm.tag.label')" value="tag" /> |
136 | 135 | <el-option :label="$t('common.name')" value="name" /> |
137 | 136 | </el-select> |
138 | 137 | <el-input |
|
143 | 142 | style="width: 220px" |
144 | 143 | clearable |
145 | 144 | /> |
146 | | - <el-input |
147 | | - v-if="search_type === 'tag'" |
148 | | - v-model="search_form.tag" |
149 | | - @change="refresh" |
150 | | - :placeholder="$t('views.document.tag.requiredMessage3')" |
151 | | - style="width: 220px" |
152 | | - clearable |
153 | | - /> |
154 | 145 | </div> |
155 | 146 |
|
156 | 147 | <el-tooltip |
|
209 | 200 | <el-table-column |
210 | 201 | prop="status" |
211 | 202 | :label="$t('views.document.fileStatus.label')" |
212 | | - width="110" |
| 203 | + width="120" |
213 | 204 | > |
214 | 205 | <template #default="{ row }"> |
215 | 206 | <StatusValue :status="row.status" :status-meta="row.status_meta"></StatusValue> |
|
219 | 210 | prop="char_length" |
220 | 211 | :label="$t('views.document.table.char_length')" |
221 | 212 | align="right" |
222 | | - min-width="90" |
| 213 | + min-width="120" |
223 | 214 | sortable |
224 | 215 | > |
225 | 216 | <template #default="{ row }"> |
|
230 | 221 | prop="paragraph_count" |
231 | 222 | :label="$t('views.document.table.paragraph')" |
232 | 223 | align="right" |
233 | | - min-width="90" |
| 224 | + min-width="120" |
234 | 225 | sortable |
235 | 226 | /> |
236 | 227 |
|
|
293 | 284 | <el-table-column width="130" prop="tag"> |
294 | 285 | <template #header> |
295 | 286 | <div> |
296 | | - <span>{{ $t('views.document.tag.label') }}</span> |
| 287 | + <span>{{ $t('dynamicsForm.tag.label') }}</span> |
| 288 | + |
297 | 289 | <el-dropdown trigger="click" @visible-change="handleTagVisibleChange"> |
298 | 290 | <el-button |
299 | 291 | style="margin-top: 1px" |
|
325 | 317 | <template #default="{ row }"> |
326 | 318 | <el-popover |
327 | 319 | trigger="hover" |
328 | | - placement="bottom" |
| 320 | + placement="bottom-start" |
329 | 321 | :disabled="!row.tag_count" |
330 | | - :width="160" |
| 322 | + :popper-style="{ width: 'auto', maxWidth: '300px' }" |
331 | 323 | > |
332 | | - <div v-for="tag in row.tags" :key="tag.id" flex class="pt-4"> |
333 | | - <span class="mr-8 color-input-placeholder">{{ tag.key }}</span |
334 | | - >{{ tag.value }} |
| 324 | + <div |
| 325 | + v-for="tag in row.tags" |
| 326 | + :key="tag.id" |
| 327 | + class="flex align-center lighter color-text-primary mt-4 mb-4" |
| 328 | + > |
| 329 | + <span class="color-secondary ellipsis-1" style="width: 40%" :title="tag.key">{{ |
| 330 | + tag.key |
| 331 | + }}</span> |
| 332 | + <span class="ml-4 ellipsis-1" :title="tag.value"> {{ tag.value }}</span> |
335 | 333 | </div> |
336 | 334 |
|
337 | 335 | <template #reference> |
338 | | - <el-space :size="4"> |
339 | | - <el-tag v-if="row.tag_count" type="info" effect="plain" class="never"> |
340 | | - <div class="flex align-center color-text-primary"> |
341 | | - <AppIcon iconName="app-tag"></AppIcon> |
342 | | - <span class="ml-4">{{ row.tag_count }}</span> |
343 | | - </div> |
344 | | - </el-tag> |
345 | | - <el-button |
346 | | - class="button-new-tag" |
347 | | - size="small" |
348 | | - :disabled="!permissionPrecise.doc_tag(id)" |
349 | | - @click.stop="openAddTagDialog(row.id)" |
350 | | - > |
351 | | - <AppIcon iconName="app-add-outlined" class="mr-4"></AppIcon> |
352 | | - {{ $t('views.document.tag.key') }} |
353 | | - </el-button> |
354 | | - </el-space> |
| 336 | + <el-tag v-if="row.tag_count" type="info" effect="plain" class="never mr-4"> |
| 337 | + <div class="flex align-center color-text-primary"> |
| 338 | + <AppIcon iconName="app-tag"></AppIcon> |
| 339 | + <span class="ml-4">{{ row.tag_count }}</span> |
| 340 | + </div> |
| 341 | + </el-tag> |
355 | 342 | </template> |
356 | 343 | </el-popover> |
| 344 | + <el-button |
| 345 | + class="button-new-tag" |
| 346 | + size="small" |
| 347 | + :disabled="!permissionPrecise.doc_tag(id)" |
| 348 | + @click.stop="openAddTagDialog(row.id)" |
| 349 | + > |
| 350 | + <AppIcon iconName="app-add-outlined" class="mr-4"></AppIcon> |
| 351 | + {{ $t('views.document.tag.key') }} |
| 352 | + </el-button> |
357 | 353 | </template> |
358 | 354 | </el-table-column> |
359 | | - <el-table-column width="140"> |
| 355 | + <el-table-column width="165"> |
360 | 356 | <template #header> |
361 | 357 | <div> |
362 | 358 | <span>{{ $t('views.document.form.hit_handling_method.label') }}</span> |
@@ -1293,7 +1289,7 @@ function editName(val: string, id: string) { |
1293 | 1289 | } |
1294 | 1290 |
|
1295 | 1291 | function cellMouseEnter(row: any, column: any) { |
1296 | | - if (column.property === 'name') { |
| 1292 | + if (column && column.property === 'name') { |
1297 | 1293 | currentMouseId.value = row.id |
1298 | 1294 | } |
1299 | 1295 | } |
|
0 commit comments