This commit is contained in:
parent
e4525992eb
commit
cf500d77ef
|
|
@ -100,6 +100,7 @@
|
|||
:prop="column.prop"
|
||||
:label="column.label"
|
||||
v-for="column in columns"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<template v-if="column.prop === 'isAdmin'">
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ export default {
|
|||
const { labelName, typeId, typeName, id } = newVal
|
||||
this.addAndEditForm = {
|
||||
labelName,
|
||||
typeId,
|
||||
typeId: typeId.toString(),
|
||||
typeName,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
v-for="item in labelTypeList"
|
||||
v-for="item in dict.type.tags_type"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
|
@ -162,6 +162,7 @@ import {
|
|||
} from '@/api/dataManage/docs-tags'
|
||||
export default {
|
||||
name: 'DocsTags',
|
||||
dicts: ['tags_type'],
|
||||
components: {
|
||||
AddAndEditForm,
|
||||
DialogModel,
|
||||
|
|
|
|||
|
|
@ -177,7 +177,12 @@
|
|||
size="mini"
|
||||
icon="el-icon-view"
|
||||
style="margin-left: 10px"
|
||||
v-if="scope.row.fileType == 1"
|
||||
v-if="
|
||||
scope.row.fileType == 1 &&
|
||||
!['zip', 'rar'].includes(
|
||||
scope.row.fileSuffix,
|
||||
)
|
||||
"
|
||||
@click="handlePreview(scope.row)"
|
||||
>
|
||||
预览
|
||||
|
|
@ -389,7 +394,7 @@ export default {
|
|||
type: 'primary',
|
||||
click: this.handleNew,
|
||||
component: 'AddWord',
|
||||
acthType: [0],
|
||||
acthType: [0, '4'],
|
||||
authType: ['share', 'myShare', 'otherShare'],
|
||||
},
|
||||
{
|
||||
|
|
@ -398,7 +403,7 @@ export default {
|
|||
type: 'success',
|
||||
click: this.handleUpload,
|
||||
component: 'Upload',
|
||||
acthType: [0],
|
||||
acthType: [0, '4'],
|
||||
authType: ['share', 'myShare', 'otherShare'],
|
||||
},
|
||||
{
|
||||
|
|
@ -407,7 +412,7 @@ export default {
|
|||
type: 'warning',
|
||||
click: this.handleMove,
|
||||
component: 'Move',
|
||||
acthType: [0],
|
||||
acthType: [0, '4'],
|
||||
authType: ['share', 'myShare', 'otherShare'],
|
||||
},
|
||||
{
|
||||
|
|
@ -416,7 +421,7 @@ export default {
|
|||
type: 'danger',
|
||||
click: this.handleDelete,
|
||||
component: 'Delete',
|
||||
acthType: [0],
|
||||
acthType: [0, '4'],
|
||||
authType: ['share', 'myShare', 'otherShare'],
|
||||
},
|
||||
{
|
||||
|
|
@ -424,7 +429,7 @@ export default {
|
|||
icon: 'el-icon-download',
|
||||
type: 'info',
|
||||
click: this.handleBatchDownload,
|
||||
acthType: [0],
|
||||
acthType: [0, '4'],
|
||||
authType: [],
|
||||
// component: 'DownloadTags',
|
||||
},
|
||||
|
|
@ -434,7 +439,7 @@ export default {
|
|||
type: 'primary',
|
||||
click: this.handleShare,
|
||||
component: 'SharePermissionForm',
|
||||
acthType: [0],
|
||||
acthType: [0, '4'],
|
||||
authType: ['share', 'myShare', 'otherShare'],
|
||||
},
|
||||
{
|
||||
|
|
@ -443,7 +448,7 @@ export default {
|
|||
type: 'success',
|
||||
click: this.handleAddCopy,
|
||||
component: 'AddCopy',
|
||||
acthType: [0],
|
||||
acthType: [0, '4'],
|
||||
authType: ['share', 'myShare', 'otherShare'],
|
||||
},
|
||||
],
|
||||
|
|
@ -452,37 +457,37 @@ export default {
|
|||
{
|
||||
label: '下载',
|
||||
click: this.handleBatchDownload_1,
|
||||
acthType: ['1', null],
|
||||
acthType: ['1', null, '4'],
|
||||
authType: [],
|
||||
},
|
||||
{
|
||||
label: '移动',
|
||||
click: this.handleMove_1,
|
||||
acthType: [null],
|
||||
acthType: [null, '4'],
|
||||
authType: [],
|
||||
},
|
||||
{
|
||||
label: '删除',
|
||||
click: this.handleDelete_1,
|
||||
acthType: [null],
|
||||
acthType: [null, '4'],
|
||||
authType: [],
|
||||
},
|
||||
{
|
||||
label: '共享',
|
||||
click: this.handleShare_1,
|
||||
acthType: [null],
|
||||
acthType: [null, '4'],
|
||||
authType: [],
|
||||
},
|
||||
{
|
||||
label: '重命名',
|
||||
click: this.handleEdit_1,
|
||||
acthType: [null],
|
||||
acthType: [null, '4'],
|
||||
authType: [],
|
||||
},
|
||||
{
|
||||
label: '添加副本',
|
||||
click: this.handleAddCopy_1,
|
||||
acthType: [null],
|
||||
acthType: [null, '4'],
|
||||
authType: [],
|
||||
},
|
||||
// {
|
||||
|
|
@ -532,6 +537,7 @@ export default {
|
|||
selectedNode: {
|
||||
handler(newNode) {
|
||||
this.acthType = newNode.auth === null ? 0 : newNode.auth
|
||||
|
||||
this.authType = newNode.id
|
||||
|
||||
this.queryParams.pageNum = 1
|
||||
|
|
@ -640,7 +646,7 @@ export default {
|
|||
this.dialogConfig.outerTitle = '上传文件'
|
||||
this.dialogConfig.outerVisible = true
|
||||
this.dialogConfig.outerComponent = 'Upload'
|
||||
// 如果列表有勾选 则清空勾选
|
||||
// 如果列表有勾选 则清空勾选
|
||||
this.$refs.tableRef.clearSelection()
|
||||
this.dialogConfig.outerComponentProps = {}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ export default {
|
|||
|
||||
await Promise.all(movePromises)
|
||||
|
||||
this.$message.success('移动成功')
|
||||
this.$message.success('添加副本成功')
|
||||
return Promise.resolve({
|
||||
success: true,
|
||||
movedCount: this.selectedFiles.length,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,10 @@
|
|||
|
||||
<!-- 文件标签选择 -->
|
||||
<div class="form-item">
|
||||
<label class="form-label">文件标签:</label>
|
||||
<label class="form-label">
|
||||
<i style="color: red">*</i>
|
||||
文件标签:
|
||||
</label>
|
||||
<div class="tag-input-wrapper" @click="openTagSelector">
|
||||
<el-input
|
||||
:value="selectedTagText"
|
||||
|
|
@ -34,7 +37,10 @@
|
|||
|
||||
<!-- 文件上传区域 -->
|
||||
<div class="form-item upload-item">
|
||||
<label class="form-label">上传:</label>
|
||||
<label class="form-label">
|
||||
<i style="color: red">*</i>
|
||||
上传:
|
||||
</label>
|
||||
<div class="upload-container">
|
||||
<el-upload
|
||||
ref="upload"
|
||||
|
|
@ -313,7 +319,7 @@ export default {
|
|||
|
||||
// 超出文件数量限制
|
||||
handleExceed(files, fileList) {
|
||||
this.$modal.msgError('最多只能上传10个文件!')
|
||||
this.$modal.msgError('最多只能上传5个文件!')
|
||||
},
|
||||
|
||||
// 确认上传(统一接口方法,供父组件调用)
|
||||
|
|
|
|||
Loading…
Reference in New Issue