|
@@ -198,7 +198,7 @@
|
|
|
style="
|
|
|
margin-right: 5px;
|
|
|
position: absolute;
|
|
|
- left: 20px;
|
|
|
+ left: 10px;
|
|
|
top: 2px;
|
|
|
"
|
|
|
/>
|
|
@@ -210,7 +210,7 @@
|
|
|
style="
|
|
|
margin-right: 5px;
|
|
|
position: absolute;
|
|
|
- left: 25px;
|
|
|
+ left: 10px;
|
|
|
top: 2px;
|
|
|
"
|
|
|
/>
|
|
@@ -265,23 +265,23 @@
|
|
|
style="margin-left: 50px"
|
|
|
>
|
|
|
<el-form-item
|
|
|
- label-width="100px"
|
|
|
+ label-width="40px"
|
|
|
prop="directory"
|
|
|
class="change_plan_type"
|
|
|
+ label="目录"
|
|
|
>
|
|
|
<treeselect
|
|
|
- v-model="form.directory"
|
|
|
+ v-model="form.directoryName"
|
|
|
:options="users"
|
|
|
:value="11"
|
|
|
class="threeselects"
|
|
|
@select="selectPeo1"
|
|
|
placeholder="请选择目录"
|
|
|
>
|
|
|
- <div slot="value-label" slot-scope="{ node }">{{ node.raw.directory }}</div>
|
|
|
- <label
|
|
|
- slot="option-label"
|
|
|
- slot-scope="{node}"
|
|
|
- >
|
|
|
+ <div slot="value-label" slot-scope="{ node }">
|
|
|
+ {{ node.raw.directory }}
|
|
|
+ </div>
|
|
|
+ <label slot="option-label" slot-scope="{ node }">
|
|
|
{{ node.raw.directory }}
|
|
|
</label>
|
|
|
</treeselect>
|
|
@@ -300,10 +300,19 @@
|
|
|
<div class="Ranking">
|
|
|
<div class="jichu">排行</div>
|
|
|
<table style="color: white">
|
|
|
+ <thead>
|
|
|
+ <!-- <tr style="font-size:14px;height:25px">
|
|
|
+ <th>序号</th>
|
|
|
+ <th>分类</th>
|
|
|
+ <th>文件</th>
|
|
|
+ <th>阅读量</th>
|
|
|
+ </tr> -->
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
<tr
|
|
|
class="borderBottom"
|
|
|
v-for="(item, index) in Ranking"
|
|
|
- :key="item.directory_id"
|
|
|
+ :key="item.id"
|
|
|
>
|
|
|
<!-- 作战类 documentCategory -->
|
|
|
<!-- 上月阅读量 readnumber1 -->
|
|
@@ -311,22 +320,24 @@
|
|
|
<!-- 排序 -->
|
|
|
<td class="numbers">{{ index + 1 }}</td>
|
|
|
<!-- 作战类类别 -->
|
|
|
- <td class="find">{{ item.documentCategory }}</td>
|
|
|
- <!-- 上周阅读量 -->
|
|
|
- <td class="readnumber">
|
|
|
- 上月阅读量
|
|
|
- <span style="margin-left: 5px">{{ item.readnumber2 }}</span>
|
|
|
- </td>
|
|
|
- <!-- 本周阅读量 -->
|
|
|
+ <td class="find">{{ item.directoryName }}</td>
|
|
|
+ <!-- 文件名 -->
|
|
|
<td class="thisweek" style="position: relative">
|
|
|
<!-- <img src="../../../images/upRow.png" alt="" style="position:absolute;top:18px;right:158px" > -->
|
|
|
<!-- <img src="../../../images/downRow.png" alt="" style="position:absolute;top:17px;right:158px"> -->
|
|
|
- 本月阅读量
|
|
|
- <span style="color: red; margin-left: 5px">{{
|
|
|
- item.readnumber1
|
|
|
+
|
|
|
+ <span style="margin-left: 5px">{{
|
|
|
+ item.fileName
|
|
|
}}</span>
|
|
|
</td>
|
|
|
+ <!-- 阅读量 -->
|
|
|
+ <td class="readnumber">
|
|
|
+ 阅读量
|
|
|
+ <span style="margin-left: 5px;" :class="index<3?'green':'red'">{{ item.readVolume }}</span>
|
|
|
+ </td>
|
|
|
+
|
|
|
</tr>
|
|
|
+ </tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
<!-- 添加预览doc文件弹框 -->
|
|
@@ -445,10 +456,7 @@ window.JSZip = require("jszip");
|
|
|
// // 获取排行接口
|
|
|
// rankList,
|
|
|
// } from "@/api/regulations/fileinfo";
|
|
|
-import {
|
|
|
- listTeacher,
|
|
|
- listTeachers,
|
|
|
-} from "@/api/thought/teacher";
|
|
|
+import { listTeacher, listTeachers } from "@/api/thought/teacher";
|
|
|
import {
|
|
|
listTeacherFile,
|
|
|
getTeacherFile,
|
|
@@ -457,6 +465,8 @@ import {
|
|
|
updateTeacherFile,
|
|
|
exportTeacherFile,
|
|
|
listmulu,
|
|
|
+ listread,
|
|
|
+ rankList
|
|
|
} from "@/api/thought/teacherFile";
|
|
|
import {
|
|
|
// 查询目录列表接口
|
|
@@ -605,25 +615,26 @@ export default {
|
|
|
// 父目录id
|
|
|
fatherparentId: "",
|
|
|
users: [],
|
|
|
-
|
|
|
- dir:""
|
|
|
+
|
|
|
+ dir: "",
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
// 获取执行单位列表
|
|
|
- listmulu({parentId:0}).then((res) => {
|
|
|
+ listmulu({ parentId: 0 }).then((res) => {
|
|
|
// console.log(res,2)
|
|
|
-
|
|
|
+
|
|
|
this.users = res.rows;
|
|
|
- console.log(this.users)
|
|
|
+ console.log(this.users);
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
this.getList();
|
|
|
// 获取目录接口
|
|
|
this.ListDirectoryinfo();
|
|
|
// 获取排行目录接口
|
|
|
// rankList().then((res) => {
|
|
|
// this.Ranking = res.data;
|
|
|
+ // console.log(this.RankList)
|
|
|
// });
|
|
|
this.RankList();
|
|
|
$(".app-wrapper").addClass("openSidebar");
|
|
@@ -636,10 +647,10 @@ export default {
|
|
|
Treeselect,
|
|
|
},
|
|
|
methods: {
|
|
|
- selectPeo1(row){
|
|
|
- this.dir=row.directory
|
|
|
- this.form.directoryId=row.id
|
|
|
- console.log(this.dir)
|
|
|
+ selectPeo1(row) {
|
|
|
+ this.dir = row.directory;
|
|
|
+ this.form.directoryId = row.id;
|
|
|
+ console.log(this.dir);
|
|
|
},
|
|
|
/**
|
|
|
* 预览PDF
|
|
@@ -694,6 +705,7 @@ export default {
|
|
|
RankList() {
|
|
|
rankList().then((res) => {
|
|
|
this.Ranking = res.data;
|
|
|
+ console.log(this.Ranking)
|
|
|
});
|
|
|
},
|
|
|
handleSizeChange(val) {},
|
|
@@ -770,9 +782,8 @@ export default {
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.ListDirectoryinfo();
|
|
|
- this.RankList();
|
|
|
this.getList();
|
|
|
-
|
|
|
+ this.RankList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
})
|
|
|
.catch(() => {});
|
|
@@ -786,7 +797,8 @@ export default {
|
|
|
this.loading = true;
|
|
|
this.queryParams1.parentId = 0;
|
|
|
if (this.level != 1) {
|
|
|
- listTeacher({
|
|
|
+
|
|
|
+ listTeacher({
|
|
|
parentDirectory: this.parentDirectory,
|
|
|
level: this.level,
|
|
|
pageNum: this.queryParams1.pageNum,
|
|
@@ -799,7 +811,6 @@ export default {
|
|
|
} else {
|
|
|
listTeacher(this.queryParams1).then((response) => {
|
|
|
this.teacherList = response.rows;
|
|
|
- console.log(this.teacherList);
|
|
|
this.total1 = response.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
@@ -808,7 +819,7 @@ export default {
|
|
|
// 点击目录
|
|
|
mulus(row) {
|
|
|
this.parentId = row.id;
|
|
|
- console.log(row.id)
|
|
|
+ console.log(row.id);
|
|
|
this.parentDirectory = row.parentDirectory;
|
|
|
this.subclassification = row.subclassification;
|
|
|
// 文件
|
|
@@ -817,7 +828,7 @@ export default {
|
|
|
pageNum: this.queryParams.pageNum,
|
|
|
pageSize: this.queryParams.pageSize,
|
|
|
}).then((res) => {
|
|
|
- console.log(res)
|
|
|
+ console.log(res);
|
|
|
this.fileinfoList = res.rows;
|
|
|
this.total = res.total;
|
|
|
});
|
|
@@ -845,7 +856,6 @@ export default {
|
|
|
},
|
|
|
// 返回上级
|
|
|
turnback(row) {
|
|
|
-
|
|
|
if (this.level == 1) {
|
|
|
this.level == 1;
|
|
|
return;
|
|
@@ -959,8 +969,9 @@ export default {
|
|
|
},
|
|
|
/** 上传文件提交按钮 */
|
|
|
submitForm() {
|
|
|
- this.form.directory=this.dir
|
|
|
- console.log(this.form);
|
|
|
+ this.form.directoryName = this.dir;
|
|
|
+ // console.log(this.form);
|
|
|
+ console.log(this.form.directoryName);
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
// console.log(this.form.file[0]);
|
|
@@ -974,16 +985,14 @@ export default {
|
|
|
this.form.theNumberPages = this.form.file[0].pageCount;
|
|
|
// 文件大小
|
|
|
this.form.fileSize = this.form.file[0].fileLength;
|
|
|
- // 目录名称
|
|
|
- this.form.directoryName = this.form.subclassification;
|
|
|
//输出结果
|
|
|
- console.log(this.form);
|
|
|
// 上传文件接口
|
|
|
addTeacherFile(this.form).then((response) => {
|
|
|
// this.ListDirectoryinfo();
|
|
|
this.$modal.msgSuccess("上传成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
+ this.RankList()
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -998,11 +1007,17 @@ export default {
|
|
|
.confirm("是否确认删除该文件?")
|
|
|
.then(function () {
|
|
|
return delDirectoryinfo(ids);
|
|
|
+ }).then(()=>{
|
|
|
+ this.getList()
|
|
|
})
|
|
|
.then(() => {
|
|
|
- // this.parentId=""
|
|
|
- this.getList();
|
|
|
- // this.ListDirectoryinfo();
|
|
|
+
|
|
|
+ // this.loading = true;
|
|
|
+ // listTeacherFile(this.queryParams).then((response) => {
|
|
|
+ // this.fileinfoList = response.rows;
|
|
|
+ // this.total = response.total;
|
|
|
+ // this.loading = false;
|
|
|
+ // });
|
|
|
listDirectoryinfo({
|
|
|
parentId: this.parentId,
|
|
|
pageNum: this.queryParams1.pageNum,
|
|
@@ -1029,6 +1044,7 @@ export default {
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
}
|
|
|
});
|
|
|
+ this.getList();
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
},
|
|
@@ -1093,11 +1109,12 @@ export default {
|
|
|
docx.renderAsync(data, this.$refs.file); // 渲染到页面预览
|
|
|
});
|
|
|
} else if (row.parentDirId == ".pdf") {
|
|
|
+ this.pageNum=1
|
|
|
this.previewDialog = true;
|
|
|
this.pdfurl = process.env.VUE_APP_BASE_API + row.parentDirName;
|
|
|
}
|
|
|
- row.common = "1";
|
|
|
- updateFileinfo(row).then((res) => {
|
|
|
+ listread(row).then((res) => {
|
|
|
+ console.log(res)
|
|
|
this.getList();
|
|
|
rankList().then((res) => {
|
|
|
this.Ranking = res.data;
|
|
@@ -1130,7 +1147,15 @@ export default {
|
|
|
padding: 0 !important;
|
|
|
background: none !important;
|
|
|
}
|
|
|
-
|
|
|
+.red{
|
|
|
+ color: #FF4949;
|
|
|
+}
|
|
|
+.green{
|
|
|
+ color: #13CE66;
|
|
|
+}
|
|
|
+::v-deep .upload-file-list .el-upload-list__item{
|
|
|
+ margin-left: -30px !important;
|
|
|
+}
|
|
|
::v-deep .vue-treeselect__placeholder {
|
|
|
color: #bdbdbd4f !important;
|
|
|
}
|
|
@@ -1615,7 +1640,7 @@ body,
|
|
|
margin-right: 22px;
|
|
|
/* color: white; */
|
|
|
}
|
|
|
-::v-deep .vue-treeselect__single-value{
|
|
|
+::v-deep .vue-treeselect__single-value {
|
|
|
color: white;
|
|
|
}
|
|
|
</style>
|