|
|
@@ -7,7 +7,7 @@
|
|
|
:datasource="datasource"
|
|
|
height="calc(45vh)"
|
|
|
tool-class="ele-toolbar-form"
|
|
|
- :initLoad="false"
|
|
|
+ :initLoad="false"
|
|
|
row-key="id"
|
|
|
:current.sync="current"
|
|
|
:selection.sync="selection"
|
|
|
@@ -15,212 +15,207 @@
|
|
|
@row-click="rowClick"
|
|
|
@selection-change="selectionClick"
|
|
|
@done="done"
|
|
|
- :page-size="20"
|
|
|
:toolbar="!isPop"
|
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
|
- <div style="display: flex; flex-wrap: wrap; align-items: center">
|
|
|
- <div>
|
|
|
- <el-dropdown trigger="click" v-if="lcyStatus == 1">
|
|
|
- <el-button type="primary">
|
|
|
- 新建<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
- </el-button>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item
|
|
|
- @click.native="
|
|
|
- parenOpen('add', {
|
|
|
- power: 'add',
|
|
|
- dataKey: 'parentData',
|
|
|
- isArr: false
|
|
|
- })
|
|
|
- "
|
|
|
- >新建文件夹</el-dropdown-item
|
|
|
- >
|
|
|
- <el-dropdown-item
|
|
|
- @click.native="
|
|
|
- openEdit('add', '', {
|
|
|
- power: 'add',
|
|
|
- dataKey: 'parentData',
|
|
|
- isArr: false
|
|
|
- })
|
|
|
- "
|
|
|
- >新建文档</el-dropdown-item
|
|
|
- >
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- <el-dropdown trigger="click" v-if="lcyStatus == 1">
|
|
|
- <el-button type="primary">
|
|
|
- 编辑<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
- </el-button>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item
|
|
|
- @click.native="
|
|
|
- parenOpen('edit', {
|
|
|
- power: 'revise',
|
|
|
- dataKey: 'parentData',
|
|
|
- isArr: false
|
|
|
- })
|
|
|
- "
|
|
|
- >修改</el-dropdown-item
|
|
|
- >
|
|
|
- <el-dropdown-item
|
|
|
- @click.native="
|
|
|
- parenOpen('del', {
|
|
|
- power: 'del',
|
|
|
- dataKey: 'parentData',
|
|
|
- isArr: false
|
|
|
- })
|
|
|
- "
|
|
|
- >删除</el-dropdown-item
|
|
|
- >
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- <el-button
|
|
|
- v-if="lcyStatus == 1"
|
|
|
- type="primary"
|
|
|
+ <!-- <div style="display: contents;"> -->
|
|
|
+ <el-dropdown trigger="click" v-if="lcyStatus == 1">
|
|
|
+ <el-button type="primary">
|
|
|
+ 新建<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ </el-button>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item
|
|
|
@click.native="
|
|
|
- openEditAll({
|
|
|
+ parenOpen('add', {
|
|
|
power: 'add',
|
|
|
dataKey: 'parentData',
|
|
|
isArr: false
|
|
|
})
|
|
|
"
|
|
|
+ >新建文件夹</el-dropdown-item
|
|
|
>
|
|
|
- 批量上传
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
+ <el-dropdown-item
|
|
|
@click.native="
|
|
|
- checkEnter({
|
|
|
- power: 'checkEnter',
|
|
|
- dataKey: 'current',
|
|
|
- isArr: true
|
|
|
+ openEdit('add', '', {
|
|
|
+ power: 'add',
|
|
|
+ dataKey: 'parentData',
|
|
|
+ isArr: false
|
|
|
})
|
|
|
"
|
|
|
- :disabled="
|
|
|
- selection.length > 1 || selection[0]?.checkOutStatus == 0
|
|
|
- "
|
|
|
- v-if="lcyStatus == 1"
|
|
|
+ >新建文档</el-dropdown-item
|
|
|
>
|
|
|
- 检入
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ <el-dropdown trigger="click" v-if="lcyStatus == 1">
|
|
|
+ <el-button type="primary">
|
|
|
+ 编辑<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ </el-button>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item
|
|
|
@click.native="
|
|
|
- checkOut({
|
|
|
- power: 'checkOut',
|
|
|
- dataKey: 'current',
|
|
|
- isArr: true
|
|
|
- })
|
|
|
- "
|
|
|
- :disabled="
|
|
|
- selection.length > 1 || selection[0]?.checkOutStatus == 1
|
|
|
- "
|
|
|
- v-if="lcyStatus == 1"
|
|
|
- >
|
|
|
- 检出
|
|
|
- </el-button>
|
|
|
-
|
|
|
- <el-popconfirm
|
|
|
- class="ele-action"
|
|
|
- v-if="lcyStatus == 1 && fileType === 0"
|
|
|
- title="归档后文档无法修改,是否确认归档"
|
|
|
- @confirm="
|
|
|
- updateLcyStatus({
|
|
|
- power: 'archive',
|
|
|
- dataKey: 'current',
|
|
|
- isArr: true
|
|
|
+ parenOpen('edit', {
|
|
|
+ power: 'revise',
|
|
|
+ dataKey: 'parentData',
|
|
|
+ isArr: false
|
|
|
})
|
|
|
"
|
|
|
+ >修改</el-dropdown-item
|
|
|
>
|
|
|
- <template v-slot:reference>
|
|
|
- <el-button type="primary"> 归档 </el-button>
|
|
|
- </template>
|
|
|
- </el-popconfirm>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- v-if="lcyStatus == 2"
|
|
|
- @click="
|
|
|
- noUpdateLcyStatus({
|
|
|
- power: 'cancelArchive',
|
|
|
- dataKey: 'current',
|
|
|
- isArr: true
|
|
|
+ <el-dropdown-item
|
|
|
+ @click.native="
|
|
|
+ parenOpen('del', {
|
|
|
+ power: 'del',
|
|
|
+ dataKey: 'parentData',
|
|
|
+ isArr: false
|
|
|
})
|
|
|
"
|
|
|
+ >删除</el-dropdown-item
|
|
|
>
|
|
|
- 取消归档
|
|
|
- </el-button>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ <el-button
|
|
|
+ v-if="lcyStatus == 1"
|
|
|
+ type="primary"
|
|
|
+ @click.native="
|
|
|
+ openEditAll({
|
|
|
+ power: 'add',
|
|
|
+ dataKey: 'parentData',
|
|
|
+ isArr: false
|
|
|
+ })
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 批量上传
|
|
|
+ </el-button>
|
|
|
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- v-if="
|
|
|
- (lcyStatus == 1 || lcyStatus == 2) &&
|
|
|
- (fileType == 0 || fileType == 1)
|
|
|
- "
|
|
|
- @click="
|
|
|
- openSendEdit({
|
|
|
- power: 'release',
|
|
|
- dataKey: 'current',
|
|
|
- isArr: true
|
|
|
- })
|
|
|
- "
|
|
|
- >
|
|
|
- 发布
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- v-if="fileType == 2"
|
|
|
- type="primary"
|
|
|
- @click="processSubmit_template"
|
|
|
- >
|
|
|
- 发布
|
|
|
- </el-button>
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click.native="
|
|
|
+ checkEnter({
|
|
|
+ power: 'checkEnter',
|
|
|
+ dataKey: 'current',
|
|
|
+ isArr: true
|
|
|
+ })
|
|
|
+ "
|
|
|
+ :disabled="selection.length > 1 || selection[0]?.checkOutStatus == 0"
|
|
|
+ v-if="lcyStatus == 1"
|
|
|
+ >
|
|
|
+ 检入
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click.native="
|
|
|
+ checkOut({
|
|
|
+ power: 'checkOut',
|
|
|
+ dataKey: 'current',
|
|
|
+ isArr: true
|
|
|
+ })
|
|
|
+ "
|
|
|
+ :disabled="selection.length > 1 || selection[0]?.checkOutStatus == 1"
|
|
|
+ v-if="lcyStatus == 1"
|
|
|
+ >
|
|
|
+ 检出
|
|
|
+ </el-button>
|
|
|
|
|
|
- <el-button
|
|
|
- v-if="fileType === 0 && lcyStatus != 4"
|
|
|
- type="primary"
|
|
|
- :disabled="selection.length > 1"
|
|
|
- @click="
|
|
|
- processSubmit({
|
|
|
- power: 'abolish',
|
|
|
- dataKey: 'current',
|
|
|
- isArr: true
|
|
|
- })
|
|
|
- "
|
|
|
- >
|
|
|
- 废止
|
|
|
- </el-button>
|
|
|
+ <el-popconfirm
|
|
|
+ class="ele-action"
|
|
|
+ v-if="lcyStatus == 1 && fileType === 0"
|
|
|
+ title="归档后文档无法修改,是否确认归档"
|
|
|
+ @confirm="
|
|
|
+ updateLcyStatus({
|
|
|
+ power: 'archive',
|
|
|
+ dataKey: 'current',
|
|
|
+ isArr: true
|
|
|
+ })
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <template v-slot:reference>
|
|
|
+ <el-button type="primary"> 归档 </el-button>
|
|
|
+ </template>
|
|
|
+ </el-popconfirm>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ v-if="lcyStatus == 2"
|
|
|
+ @click="
|
|
|
+ noUpdateLcyStatus({
|
|
|
+ power: 'cancelArchive',
|
|
|
+ dataKey: 'current',
|
|
|
+ isArr: true
|
|
|
+ })
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <!-- {
|
|
|
+ power: 'cancelArchive',
|
|
|
+ dataKey: 'current',
|
|
|
+ isArr: true
|
|
|
+ } -->
|
|
|
+ 取消归档
|
|
|
+ </el-button>
|
|
|
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- @click.native="
|
|
|
- getFile({
|
|
|
- power: 'download',
|
|
|
- dataKey: 'current',
|
|
|
- isArr: true
|
|
|
- })
|
|
|
- "
|
|
|
- >
|
|
|
- 下载
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- :disabled="selection.length > 1"
|
|
|
- type="primary"
|
|
|
- v-if="fileType == 1"
|
|
|
- @click.native="move"
|
|
|
- >
|
|
|
- 移动
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <fileSearch
|
|
|
- @search="reload"
|
|
|
- style="margin-left: 20px; "
|
|
|
- ></fileSearch
|
|
|
- ></div>
|
|
|
- </div>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ v-if="
|
|
|
+ (lcyStatus == 1 || lcyStatus == 2) &&
|
|
|
+ (fileType == 0 || fileType == 1)
|
|
|
+ "
|
|
|
+ @click="
|
|
|
+ openSendEdit({
|
|
|
+ power: 'release',
|
|
|
+ dataKey: 'current',
|
|
|
+ isArr: true
|
|
|
+ })
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 发布
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="fileType == 2"
|
|
|
+ type="primary"
|
|
|
+ @click="processSubmit_template"
|
|
|
+ >
|
|
|
+ 发布
|
|
|
+ </el-button>
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ v-if="fileType === 0 && lcyStatus != 4"
|
|
|
+ type="primary"
|
|
|
+ :disabled="selection.length > 1"
|
|
|
+ @click="
|
|
|
+ processSubmit({
|
|
|
+ power: 'abolish',
|
|
|
+ dataKey: 'current',
|
|
|
+ isArr: true
|
|
|
+ })
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 废止
|
|
|
+ </el-button>
|
|
|
|
|
|
+ <!-- <el-button type="primary"> 上传 </el-button> -->
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click.native="
|
|
|
+ getFile({
|
|
|
+ power: 'download',
|
|
|
+ dataKey: 'current',
|
|
|
+ isArr: true
|
|
|
+ })
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 下载
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ :disabled="selection.length > 1"
|
|
|
+ type="primary"
|
|
|
+ v-if="fileType == 1"
|
|
|
+ @click.native="move"
|
|
|
+ >
|
|
|
+ 移动
|
|
|
+ </el-button>
|
|
|
+ <fileSearch @search="reload" style="margin-left: 20px;"></fileSearch>
|
|
|
<!-- </div> -->
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<!-- 操作列 -->
|
|
|
@@ -604,7 +599,8 @@
|
|
|
directoryId: this.parentData?.id,
|
|
|
lcyStatus: this.lcyStatus,
|
|
|
fileType: this.fileType,
|
|
|
- isQueryAll: this.$hasPermission('fm:doc:viewAll') ? 1 : ''
|
|
|
+ isQueryAll:this.$hasPermission('fm:doc:viewAll')?1:''
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
@@ -920,7 +916,7 @@
|
|
|
.el-tabs__content {
|
|
|
height: calc(100% - 39px);
|
|
|
}
|
|
|
- :deep(.ele-table-tool-title-content) {
|
|
|
- display: contents;
|
|
|
+ :deep(.ele-table-tool-title-content){
|
|
|
+ display: contents;
|
|
|
}
|
|
|
</style>
|