|
@@ -172,7 +172,8 @@
|
|
|
:total="total"
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
- @pagination="handleCurrentChange()"
|
|
|
+ :page-sizes="[8]"
|
|
|
+ @pagination="handleCurrentChange"
|
|
|
/>
|
|
|
<pagination
|
|
|
v-if="nunms == 1"
|
|
@@ -180,8 +181,18 @@
|
|
|
:total="total"
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
+ :page-sizes="[8]"
|
|
|
@pagination="handleCurrentChanges"
|
|
|
/>
|
|
|
+ <pagination
|
|
|
+ v-if="nunms == 2"
|
|
|
+ v-show="total > 0"
|
|
|
+ :total="total"
|
|
|
+ :page.sync="queryParams.pageNum"
|
|
|
+ :limit.sync="queryParams.pageSize"
|
|
|
+ :page-sizes="[8]"
|
|
|
+ @pagination="handleCurrentChangess"
|
|
|
+ />
|
|
|
</div>
|
|
|
|
|
|
<!-- 右边 -->
|
|
@@ -745,6 +756,7 @@ export default {
|
|
|
nunms: 0,
|
|
|
// 点击右侧一级分类进去
|
|
|
Ids: null,
|
|
|
+ last: null,
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -829,28 +841,6 @@ export default {
|
|
|
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;
|
|
@@ -859,6 +849,18 @@ export default {
|
|
|
this.total = res.total;
|
|
|
});
|
|
|
},
|
|
|
+ handleCurrentChangess() {
|
|
|
+ // 文件
|
|
|
+ listFileinfo({
|
|
|
+ directoryId: this.last,
|
|
|
+ pageNum: this.queryParams.pageNum,
|
|
|
+ pageSize: this.queryParams.pageSize,
|
|
|
+ }).then((res) => {
|
|
|
+ this.nunms = 2;
|
|
|
+ this.fileinfoList = res.rows;
|
|
|
+ this.total = res.total;
|
|
|
+ });
|
|
|
+ },
|
|
|
handleCurrentChange1(val) {
|
|
|
this.queryParams1.pageNum = val;
|
|
|
// this.queryParams.common = "1";
|
|
@@ -919,7 +921,6 @@ export default {
|
|
|
},
|
|
|
// 点击目录根据子目录的数量控制他是否可以点进去进行渲染
|
|
|
mulus(row) {
|
|
|
- console.log(row, 1);
|
|
|
this.nunms = 1;
|
|
|
if (row.parentId == 0) {
|
|
|
this.parentId = row.id;
|
|
@@ -928,38 +929,20 @@ export default {
|
|
|
this.parentId = row.parentId;
|
|
|
}
|
|
|
if (row.parentId == 0) {
|
|
|
+ this.queryParams.pageNum = 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;
|
|
|
});
|
|
|
} else {
|
|
|
- // if(this.parentId)
|
|
|
- this.form.directoryId = row.id;
|
|
|
- // 文件
|
|
|
- listFileinfo({
|
|
|
- directoryId: this.form.directoryId,
|
|
|
- pageNum: this.queryParams.pageNum,
|
|
|
- pageSize: this.queryParams.pageSize,
|
|
|
- }).then((res) => {
|
|
|
- console.log(res, 2);
|
|
|
- this.fileinfoList = res.rows;
|
|
|
- // this.fileinfoList.map(item=>{
|
|
|
- // item.parentDirName='http://localhost:8089'+item.parentDirName;
|
|
|
-
|
|
|
- // })
|
|
|
- this.total = res.total;
|
|
|
- });
|
|
|
+ this.last = row.id
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
+ this.handleCurrentChangess()
|
|
|
}
|
|
|
- // if (row.subclassification == 0) {
|
|
|
- // this.parentId = "";
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // this.queryParams1.pageNum=1;
|
|
|
// 目录
|
|
|
listDirectoryinfo({
|
|
|
parentId: this.parentId,
|
|
@@ -985,6 +968,7 @@ export default {
|
|
|
this.parentId = "";
|
|
|
this.addbtn = true;
|
|
|
this.queryParams1.pageNum = 1;
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
this.getList();
|
|
|
this.ListDirectoryinfo();
|
|
|
},
|