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