|
@@ -39,13 +39,13 @@
|
|
alt=""
|
|
alt=""
|
|
/>
|
|
/>
|
|
<img
|
|
<img
|
|
- v-else-if="
|
|
|
|
- scope.row.parentDirId == '.ppt' ||
|
|
|
|
- scope.row.parentDirId == '.pptx'
|
|
|
|
- "
|
|
|
|
- src="../../../images/ppt.png"
|
|
|
|
- alt=""
|
|
|
|
- />
|
|
|
|
|
|
+ v-else-if="
|
|
|
|
+ scope.row.parentDirId == '.ppt' ||
|
|
|
|
+ scope.row.parentDirId == '.pptx'
|
|
|
|
+ "
|
|
|
|
+ src="../../../images/ppt.png"
|
|
|
|
+ alt=""
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
<!-- 文件名称 fileName -->
|
|
<!-- 文件名称 fileName -->
|
|
<div>
|
|
<div>
|
|
@@ -156,7 +156,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <el-pagination
|
|
|
|
|
|
+ <!-- <el-pagination
|
|
@size-change="handleSizeChange"
|
|
@size-change="handleSizeChange"
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
:current-page="queryParams.pageNum"
|
|
:current-page="queryParams.pageNum"
|
|
@@ -165,15 +165,25 @@
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="total"
|
|
:total="total"
|
|
>
|
|
>
|
|
- </el-pagination>
|
|
|
|
- <!-- <pagination
|
|
|
|
|
|
+ </el-pagination> -->
|
|
|
|
+ <pagination
|
|
|
|
+ v-if="nunms == 0"
|
|
|
|
+ v-show="total > 0"
|
|
|
|
+ :total="total"
|
|
|
|
+ :page.sync="queryParams.pageNum"
|
|
|
|
+ :limit.sync="queryParams.pageSize"
|
|
|
|
+ @pagination="handleCurrentChange()"
|
|
|
|
+ />
|
|
|
|
+ <pagination
|
|
|
|
+ v-if="nunms == 1"
|
|
v-show="total > 0"
|
|
v-show="total > 0"
|
|
:total="total"
|
|
:total="total"
|
|
:page.sync="queryParams.pageNum"
|
|
:page.sync="queryParams.pageNum"
|
|
:limit.sync="queryParams.pageSize"
|
|
:limit.sync="queryParams.pageSize"
|
|
- @pagination="getList"
|
|
|
|
- /> -->
|
|
|
|
|
|
+ @pagination="handleCurrentChanges"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
<!-- 右边 -->
|
|
<!-- 右边 -->
|
|
<div class="rights">
|
|
<div class="rights">
|
|
<!-- 目录 -->
|
|
<!-- 目录 -->
|
|
@@ -732,6 +742,9 @@ export default {
|
|
gopage: true,
|
|
gopage: true,
|
|
// 多文件上传列表
|
|
// 多文件上传列表
|
|
moreFile: [],
|
|
moreFile: [],
|
|
|
|
+ nunms: 0,
|
|
|
|
+ // 点击右侧一级分类进去
|
|
|
|
+ Ids: null,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
|
|
@@ -810,25 +823,45 @@ export default {
|
|
},
|
|
},
|
|
handleSizeChange(val) {},
|
|
handleSizeChange(val) {},
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
- this.queryParams.pageNum = val;
|
|
|
|
- listFileinfo({
|
|
|
|
- pageNum: this.queryParams.pageNum,
|
|
|
|
- pageSize: this.queryParams.pageSize,
|
|
|
|
- }).then((res) => {
|
|
|
|
|
|
+ // 1
|
|
|
|
+ this.nunms = 0;
|
|
|
|
+ listFileinfo(this.queryParams).then((res) => {
|
|
|
|
+ this.fileinfoList = res.rows;
|
|
|
|
+ this.total = res.total;
|
|
|
|
+ });
|
|
|
|
+ // if(this.nunms==0){
|
|
|
|
+ // this.queryParams.pageNum = val;
|
|
|
|
+ // listFileinfo({
|
|
|
|
+ // pageNum: this.queryParams.pageNum,
|
|
|
|
+ // pageSize: this.queryParams.pageSize,
|
|
|
|
+ // }).then((res) => {
|
|
|
|
+ // this.fileinfoList = res.rows;
|
|
|
|
+ // this.total = res.total;
|
|
|
|
+ // });
|
|
|
|
+ // if(this.nunms==1){
|
|
|
|
+ // listParents({
|
|
|
|
+ // parentid: row.id,
|
|
|
|
+ // pageNum: this.queryParams.pageNum,
|
|
|
|
+ // pageSize: this.queryParams.pageSize,
|
|
|
|
+ // }).then(res=>{
|
|
|
|
+ // console.log(res,1);
|
|
|
|
+ // this.fileinfoList = res.rows;
|
|
|
|
+ // this.total = res.total;
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ console.log(val);
|
|
|
|
+ },
|
|
|
|
+ handleCurrentChanges() {
|
|
|
|
+ this.queryParams.parentid=this.Ids;
|
|
|
|
+ listParents(this.queryParams).then((res) => {
|
|
this.fileinfoList = res.rows;
|
|
this.fileinfoList = res.rows;
|
|
- // this.fileinfoList.map(item=>{
|
|
|
|
- // item.parentDirName='http://localhost:8089'+item.parentDirName;
|
|
|
|
-
|
|
|
|
- // })
|
|
|
|
-
|
|
|
|
this.total = res.total;
|
|
this.total = res.total;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleCurrentChange1(val) {
|
|
handleCurrentChange1(val) {
|
|
this.queryParams1.pageNum = val;
|
|
this.queryParams1.pageNum = val;
|
|
-
|
|
|
|
// this.queryParams.common = "1";
|
|
// this.queryParams.common = "1";
|
|
-
|
|
|
|
if (this.parentId) {
|
|
if (this.parentId) {
|
|
this.queryParams1.common = null;
|
|
this.queryParams1.common = null;
|
|
} else {
|
|
} else {
|
|
@@ -886,22 +919,24 @@ export default {
|
|
},
|
|
},
|
|
// 点击目录根据子目录的数量控制他是否可以点进去进行渲染
|
|
// 点击目录根据子目录的数量控制他是否可以点进去进行渲染
|
|
mulus(row) {
|
|
mulus(row) {
|
|
|
|
+ console.log(row, 1);
|
|
|
|
+ this.nunms = 1;
|
|
if (row.parentId == 0) {
|
|
if (row.parentId == 0) {
|
|
this.parentId = row.id;
|
|
this.parentId = row.id;
|
|
|
|
+ this.Ids = row.id;
|
|
} else {
|
|
} else {
|
|
this.parentId = row.parentId;
|
|
this.parentId = row.parentId;
|
|
}
|
|
}
|
|
- console.log(row.parentId );
|
|
|
|
if (row.parentId == 0) {
|
|
if (row.parentId == 0) {
|
|
listParents({
|
|
listParents({
|
|
parentid: row.id,
|
|
parentid: row.id,
|
|
pageNum: this.queryParams.pageNum,
|
|
pageNum: this.queryParams.pageNum,
|
|
pageSize: this.queryParams.pageSize,
|
|
pageSize: this.queryParams.pageSize,
|
|
- }).then(res=>{
|
|
|
|
- console.log(res,1);
|
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ console.log(res, 1);
|
|
this.fileinfoList = res.rows;
|
|
this.fileinfoList = res.rows;
|
|
this.total = res.total;
|
|
this.total = res.total;
|
|
- })
|
|
|
|
|
|
+ });
|
|
} else {
|
|
} else {
|
|
// if(this.parentId)
|
|
// if(this.parentId)
|
|
this.form.directoryId = row.id;
|
|
this.form.directoryId = row.id;
|
|
@@ -911,7 +946,7 @@ export default {
|
|
pageNum: this.queryParams.pageNum,
|
|
pageNum: this.queryParams.pageNum,
|
|
pageSize: this.queryParams.pageSize,
|
|
pageSize: this.queryParams.pageSize,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- console.log(res,2);
|
|
|
|
|
|
+ console.log(res, 2);
|
|
this.fileinfoList = res.rows;
|
|
this.fileinfoList = res.rows;
|
|
// this.fileinfoList.map(item=>{
|
|
// this.fileinfoList.map(item=>{
|
|
// item.parentDirName='http://localhost:8089'+item.parentDirName;
|
|
// item.parentDirName='http://localhost:8089'+item.parentDirName;
|
|
@@ -1207,8 +1242,8 @@ export default {
|
|
this.previewDialog = true;
|
|
this.previewDialog = true;
|
|
this.pdfurl = process.env.VUE_APP_BASE_API + row.parentDirName;
|
|
this.pdfurl = process.env.VUE_APP_BASE_API + row.parentDirName;
|
|
this.pageNum = 1;
|
|
this.pageNum = 1;
|
|
- }else{
|
|
|
|
- this.$message.error('只能阅读Word跟pdf文件')
|
|
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("只能阅读Word跟pdf文件");
|
|
}
|
|
}
|
|
row.common = "1";
|
|
row.common = "1";
|
|
updateFileinfo(row).then((res) => {
|
|
updateFileinfo(row).then((res) => {
|
|
@@ -1725,4 +1760,8 @@ body,
|
|
background: #1d96ff;
|
|
background: #1d96ff;
|
|
color: white;
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+::v-deep .el-pagination__sizes .el-select--mini{
|
|
|
|
+ display: none;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|