|
@@ -50,7 +50,7 @@
|
|
|
style="
|
|
|
font-size: 14px;
|
|
|
color: rgba(204, 204, 204, 1);
|
|
|
- margin-right: 30px;
|
|
|
+
|
|
|
width: 100px;
|
|
|
margin-left: 30px;
|
|
|
display: block;
|
|
@@ -62,8 +62,8 @@
|
|
|
style="
|
|
|
font-size: 14px;
|
|
|
color: rgba(204, 204, 204, 1);
|
|
|
- margin-right: 30px;
|
|
|
- width: 50px;
|
|
|
+
|
|
|
+ width: 80px;
|
|
|
display: block;
|
|
|
text-align: start;
|
|
|
"
|
|
@@ -73,8 +73,7 @@
|
|
|
style="
|
|
|
font-size: 14px;
|
|
|
color: rgba(204, 204, 204, 1);
|
|
|
- margin-right: 30px;
|
|
|
- width: 200px;
|
|
|
+ width: 180px;
|
|
|
display: block;
|
|
|
text-align: start;
|
|
|
"
|
|
@@ -84,11 +83,20 @@
|
|
|
style="
|
|
|
font-size: 14px;
|
|
|
color: rgba(204, 204, 204, 1);
|
|
|
- width: 100px;
|
|
|
+ width: 80px;
|
|
|
display: block;
|
|
|
"
|
|
|
>阅读量:{{ scope.row.readVolume }}</span
|
|
|
>
|
|
|
+ <span
|
|
|
+ style="
|
|
|
+ font-size: 14px;
|
|
|
+ color: rgba(204, 204, 204, 1);
|
|
|
+ width: 100px;
|
|
|
+ display: block;
|
|
|
+ "
|
|
|
+ >分类:{{ scope.row.directoryName }}</span
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -227,29 +235,6 @@
|
|
|
prop="subclassification"
|
|
|
/>
|
|
|
<el-table-column label="文件" align="center" prop="documentsNumber" />
|
|
|
- <!-- <el-table-column
|
|
|
- label="更新时间"
|
|
|
- align="center"
|
|
|
- class-name="small-padding fixed-width"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="add"
|
|
|
- type="text"
|
|
|
- @click="ViewProgress(scope.row)"
|
|
|
- v-if="addbtn==true"
|
|
|
- >
|
|
|
- <span>添加</span>
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- size="dels"
|
|
|
- type="text"
|
|
|
- @click="handleDelete(scope.row)"
|
|
|
- >
|
|
|
- <span class="chakan">删除</span>
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-table-column> -->
|
|
|
<el-table-column
|
|
|
label="操作"
|
|
|
align="center"
|
|
@@ -620,6 +605,8 @@ export default {
|
|
|
Ranking: [],
|
|
|
// 添加按钮
|
|
|
addbtn: true,
|
|
|
+ // 虚拟字段
|
|
|
+ fid: "",
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -631,17 +618,17 @@ export default {
|
|
|
// rankList().then((res) => {
|
|
|
// this.Ranking = res.data;
|
|
|
// });
|
|
|
- this.RankList()
|
|
|
+ this.RankList();
|
|
|
$(".app-wrapper").removeClass("openSidebar");
|
|
|
console.log($(".app-wrapper"));
|
|
|
$(".app-wrapper").addClass("hideSidebar");
|
|
|
$(".sidebar-logo-container").removeClass("collapse");
|
|
|
},
|
|
|
methods: {
|
|
|
- RankList(){
|
|
|
- rankList().then((res) => {
|
|
|
- this.Ranking = res.data;
|
|
|
- });
|
|
|
+ RankList() {
|
|
|
+ rankList().then((res) => {
|
|
|
+ this.Ranking = res.data;
|
|
|
+ });
|
|
|
},
|
|
|
handleSizeChange(val) {},
|
|
|
handleCurrentChange(val) {
|
|
@@ -661,7 +648,7 @@ export default {
|
|
|
console.log(this.queryParams1.pageNum);
|
|
|
console.log(this.queryParams1.pageSize);
|
|
|
// this.queryParams.common = "1";
|
|
|
-
|
|
|
+ console.log(this.parentId);
|
|
|
if (this.parentId) {
|
|
|
this.queryParams1.common = null;
|
|
|
} else {
|
|
@@ -674,8 +661,17 @@ export default {
|
|
|
common: this.queryParams1.common,
|
|
|
}).then((res) => {
|
|
|
this.directory = res.rows;
|
|
|
+ // console.log(this.directory)
|
|
|
+ this.directory.map((item) => {
|
|
|
+ if (item.subclassification != 0) {
|
|
|
+ // this.queryParams1.pageNum=1
|
|
|
+ this.addbtn = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // this.addbtn=true
|
|
|
this.total1 = res.total;
|
|
|
this.loading = false;
|
|
|
+ // console.log(this.directory)
|
|
|
});
|
|
|
},
|
|
|
// 文件删除按钮操作
|
|
@@ -687,11 +683,10 @@ export default {
|
|
|
return delFileinfo(row.id);
|
|
|
})
|
|
|
.then(() => {
|
|
|
-
|
|
|
this.ListDirectoryinfo();
|
|
|
- this.RankList()
|
|
|
+ this.RankList();
|
|
|
this.getList();
|
|
|
-
|
|
|
+
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
})
|
|
|
.catch(() => {});
|
|
@@ -715,9 +710,18 @@ export default {
|
|
|
},
|
|
|
// 点击目录根据子目录的数量控制他是否可以点进去进行渲染
|
|
|
mulus(row) {
|
|
|
- this.parentId = row.id;
|
|
|
+ console.log(row);
|
|
|
+ if (row.parentId == 0) {
|
|
|
+ this.parentId = row.id;
|
|
|
+ } else {
|
|
|
+ this.parentId = row.parentId;
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log(this.parentId);
|
|
|
+
|
|
|
+ // if(this.parentId)
|
|
|
this.form.directoryId = row.id;
|
|
|
- // 文件
|
|
|
+ // 文件
|
|
|
listFileinfo({
|
|
|
directoryId: this.form.directoryId,
|
|
|
pageNum: this.queryParams.pageNum,
|
|
@@ -727,11 +731,11 @@ export default {
|
|
|
this.total = res.total;
|
|
|
});
|
|
|
// console.log(row)
|
|
|
- if (row.subclassification == 0) {
|
|
|
- this.parentId = "";
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
+ // if (row.subclassification == 0) {
|
|
|
+ // this.parentId = "";
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ this.queryParams1.pageNum=1;
|
|
|
// 目录
|
|
|
listDirectoryinfo({
|
|
|
parentId: this.parentId,
|
|
@@ -744,6 +748,7 @@ export default {
|
|
|
this.total1 = res.total;
|
|
|
this.addbtn = false;
|
|
|
} else {
|
|
|
+ // this.addbtn = true;
|
|
|
return;
|
|
|
}
|
|
|
});
|
|
@@ -752,8 +757,9 @@ export default {
|
|
|
},
|
|
|
// 返回目录
|
|
|
turnback() {
|
|
|
- this.parentId=""
|
|
|
+ this.parentId = "";
|
|
|
this.addbtn = true;
|
|
|
+ this.queryParams1.pageNum = 1;
|
|
|
this.getList();
|
|
|
this.ListDirectoryinfo();
|
|
|
},
|
|
@@ -771,6 +777,7 @@ export default {
|
|
|
this.loading = true;
|
|
|
listFileinfo(this.queryParams).then((response) => {
|
|
|
this.fileinfoList = response.rows;
|
|
|
+ console.log(this.fileinfoList);
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
@@ -893,6 +900,8 @@ export default {
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id;
|
|
|
+ this.parentId = row.parentId;
|
|
|
+ console.log(row.parentId);
|
|
|
// console.log(ids);
|
|
|
this.$modal
|
|
|
.confirm("是否确认删除?")
|
|
@@ -900,15 +909,36 @@ export default {
|
|
|
return delDirectoryinfo(ids);
|
|
|
})
|
|
|
.then(() => {
|
|
|
- this.parentId=""
|
|
|
+ // this.parentId=""
|
|
|
this.getList();
|
|
|
- this.ListDirectoryinfo();
|
|
|
- this.RankList()
|
|
|
-
|
|
|
- this.addbtn=true
|
|
|
- this.loading = false;
|
|
|
- this.loading1 = false;
|
|
|
- this.$modal.msgSuccess("删除成功");
|
|
|
+ // this.ListDirectoryinfo();
|
|
|
+ listDirectoryinfo({
|
|
|
+ parentId: this.parentId,
|
|
|
+ pageNum: this.queryParams1.pageNum,
|
|
|
+ pageSize: this.queryParams1.pageSize,
|
|
|
+ // common: this.queryParams1.common,
|
|
|
+ }).then((res) => {
|
|
|
+ console.log(res)
|
|
|
+ this.directory = res.rows;
|
|
|
+ this.total1=res.total;
|
|
|
+
|
|
|
+ if (this.parentId==0) {
|
|
|
+ this.addbtn = true;
|
|
|
+ this.RankList();
|
|
|
+
|
|
|
+ this.loading = false;
|
|
|
+ this.loading1 = false;
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
+ } else {
|
|
|
+
|
|
|
+ this.addbtn = false;
|
|
|
+ this.RankList();
|
|
|
+
|
|
|
+ this.loading = false;
|
|
|
+ this.loading1 = false;
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
+ }
|
|
|
+ });
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
},
|
|
@@ -1359,18 +1389,18 @@ body,
|
|
|
right: 0;
|
|
|
}
|
|
|
::v-deep .el-pager li.active {
|
|
|
- background-color: transparent;
|
|
|
- color: white;
|
|
|
+ background-color: white;
|
|
|
+ color: black;
|
|
|
}
|
|
|
-/* ::v-deep .el-pager .number{
|
|
|
+::v-deep .el-pager .number {
|
|
|
background-color: transparent;
|
|
|
color: white;
|
|
|
-} */
|
|
|
-::v-deep .btn-prev{
|
|
|
+}
|
|
|
+::v-deep .btn-prev {
|
|
|
background-color: transparent;
|
|
|
color: white;
|
|
|
}
|
|
|
-::v-deep .btn-next{
|
|
|
+::v-deep .btn-next {
|
|
|
background-color: transparent;
|
|
|
color: white;
|
|
|
}
|