|
@@ -28,30 +28,33 @@
|
|
alt=""
|
|
alt=""
|
|
/>
|
|
/>
|
|
<img
|
|
<img
|
|
- v-else-if="scope.row.parentDirId == '.doc'|| scope.row.parentDirId == '.docx'"
|
|
|
|
|
|
+ v-else-if="
|
|
|
|
+ scope.row.parentDirId == '.doc' ||
|
|
|
|
+ scope.row.parentDirId == '.docx'
|
|
|
|
+ "
|
|
src="../../../images/doc.png"
|
|
src="../../../images/doc.png"
|
|
alt=""
|
|
alt=""
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
<!-- 文件名称 fileName -->
|
|
<!-- 文件名称 fileName -->
|
|
<div>
|
|
<div>
|
|
- <div style="text-align: start; width: 100%;margin-left:30px">
|
|
|
|
|
|
+ <div style="text-align: start; width: 100%; margin-left: 30px">
|
|
{{ scope.row.fileName }}
|
|
{{ scope.row.fileName }}
|
|
</div>
|
|
</div>
|
|
<!-- 上传人 createUser -->
|
|
<!-- 上传人 createUser -->
|
|
<!-- 页数 theNumberPages-->
|
|
<!-- 页数 theNumberPages-->
|
|
<!-- 时间 createTime -->
|
|
<!-- 时间 createTime -->
|
|
<!-- 阅读量 readVolume -->
|
|
<!-- 阅读量 readVolume -->
|
|
- <div style="display:flex">
|
|
|
|
|
|
+ <div style="display: flex">
|
|
<span
|
|
<span
|
|
style="
|
|
style="
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
color: rgba(204, 204, 204, 1);
|
|
color: rgba(204, 204, 204, 1);
|
|
margin-right: 30px;
|
|
margin-right: 30px;
|
|
- width:100px;
|
|
|
|
- margin-left:30px;
|
|
|
|
- display:block;
|
|
|
|
- text-align:start
|
|
|
|
|
|
+ width: 100px;
|
|
|
|
+ margin-left: 30px;
|
|
|
|
+ display: block;
|
|
|
|
+ text-align: start;
|
|
"
|
|
"
|
|
>上传人:{{ scope.row.createUser }}</span
|
|
>上传人:{{ scope.row.createUser }}</span
|
|
>
|
|
>
|
|
@@ -60,9 +63,9 @@
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
color: rgba(204, 204, 204, 1);
|
|
color: rgba(204, 204, 204, 1);
|
|
margin-right: 30px;
|
|
margin-right: 30px;
|
|
- width:50px;
|
|
|
|
- display:block;
|
|
|
|
- text-align:start
|
|
|
|
|
|
+ width: 50px;
|
|
|
|
+ display: block;
|
|
|
|
+ text-align: start;
|
|
"
|
|
"
|
|
>页数:{{ scope.row.theNumberPages }}</span
|
|
>页数:{{ scope.row.theNumberPages }}</span
|
|
>
|
|
>
|
|
@@ -71,9 +74,9 @@
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
color: rgba(204, 204, 204, 1);
|
|
color: rgba(204, 204, 204, 1);
|
|
margin-right: 30px;
|
|
margin-right: 30px;
|
|
- width:200px;
|
|
|
|
- display:block;
|
|
|
|
- text-align:start
|
|
|
|
|
|
+ width: 200px;
|
|
|
|
+ display: block;
|
|
|
|
+ text-align: start;
|
|
"
|
|
"
|
|
>时间:{{ scope.row.createTime }}</span
|
|
>时间:{{ scope.row.createTime }}</span
|
|
>
|
|
>
|
|
@@ -81,8 +84,8 @@
|
|
style="
|
|
style="
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
color: rgba(204, 204, 204, 1);
|
|
color: rgba(204, 204, 204, 1);
|
|
- width:100px;
|
|
|
|
- display:block;
|
|
|
|
|
|
+ width: 100px;
|
|
|
|
+ display: block;
|
|
"
|
|
"
|
|
>阅读量:{{ scope.row.readVolume }}</span
|
|
>阅读量:{{ scope.row.readVolume }}</span
|
|
>
|
|
>
|
|
@@ -91,7 +94,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <!-- <el-table-column
|
|
|
|
|
|
+ <!-- <el-table-column
|
|
label="文件"
|
|
label="文件"
|
|
align="center"
|
|
align="center"
|
|
class-name="small-padding fixed-width"
|
|
class-name="small-padding fixed-width"
|
|
@@ -137,25 +140,23 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <!-- <el-pagination
|
|
|
|
- :background="background"
|
|
|
|
- :current-page.sync="currentPage"
|
|
|
|
- :page-size.sync="queryParams.pageSize"
|
|
|
|
- :layout="layout"
|
|
|
|
- :page-sizes="queryParams.pageNum"
|
|
|
|
- :pager-count="pagerCount"
|
|
|
|
- :total="total"
|
|
|
|
- v-bind="$attrs"
|
|
|
|
- @size-change="handleSizeChange"
|
|
|
|
- @current-change="handleCurrentChange"
|
|
|
|
- /> -->
|
|
|
|
- <pagination
|
|
|
|
|
|
+ <el-pagination
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
+ :current-page="queryParams.pageNum"
|
|
|
|
+ :page-sizes="[2, 5, 8, 10]"
|
|
|
|
+ :page-size="queryParams.pageSize"
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
+ :total="total"
|
|
|
|
+ >
|
|
|
|
+ </el-pagination>
|
|
|
|
+ <!-- <pagination
|
|
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="getList"
|
|
- />
|
|
|
|
|
|
+ /> -->
|
|
</div>
|
|
</div>
|
|
<!-- 右边 -->
|
|
<!-- 右边 -->
|
|
<div class="rights">
|
|
<div class="rights">
|
|
@@ -163,9 +164,18 @@
|
|
<div class="catalog">
|
|
<div class="catalog">
|
|
<div class="jichu">
|
|
<div class="jichu">
|
|
目录
|
|
目录
|
|
- <el-button class="turnback" @click="turnback" v-if="addbtn==0">返回上级</el-button>
|
|
|
|
- <el-button class="uploadfilesbtn" :class="addbtn?'margins':''" @click="upload" v-if="addbtn!=0">上传文件</el-button
|
|
|
|
- ><el-button class="manage" @click="mange" v-if="addbtn!=0">目录管理</el-button>
|
|
|
|
|
|
+ <el-button class="turnback" @click="turnback" v-if="addbtn == 0"
|
|
|
|
+ >返回上级</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ class="uploadfilesbtn"
|
|
|
|
+ :class="addbtn ? 'margins' : ''"
|
|
|
|
+ @click="upload"
|
|
|
|
+ v-if="addbtn != 0"
|
|
|
|
+ >上传文件</el-button
|
|
|
|
+ ><el-button class="manage" @click="mange" v-if="addbtn != 0"
|
|
|
|
+ >目录管理</el-button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
<el-table
|
|
<el-table
|
|
v-loading="loading"
|
|
v-loading="loading"
|
|
@@ -180,12 +190,34 @@
|
|
<div
|
|
<div
|
|
@click="mulus(scope.row)"
|
|
@click="mulus(scope.row)"
|
|
:class="scope.row.subclassification == 0 ? '' : 'undeline'"
|
|
:class="scope.row.subclassification == 0 ? '' : 'undeline'"
|
|
- style="position:relative;cursor:pointer"
|
|
|
|
|
|
+ style="position: relative; cursor: pointer"
|
|
>
|
|
>
|
|
- <img v-if="addbtn!=0" src="../../../images/文件夹.png" alt="" style="margin-right:5px;position:absolute;left:5px;top:2px">
|
|
|
|
- <!-- 分类图片 -->
|
|
|
|
- <img v-if="addbtn==0" src="../../../images/分类icon.png" alt="" style="margin-right:5px;position:absolute;left:5px;top:2px">
|
|
|
|
- <span style="margin-left:25px"> {{ scope.row.directory }}</span>
|
|
|
|
|
|
+ <img
|
|
|
|
+ v-if="addbtn != 0"
|
|
|
|
+ src="../../../images/文件夹.png"
|
|
|
|
+ alt=""
|
|
|
|
+ style="
|
|
|
|
+ margin-right: 5px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 5px;
|
|
|
|
+ top: 2px;
|
|
|
|
+ "
|
|
|
|
+ />
|
|
|
|
+ <!-- 分类图片 -->
|
|
|
|
+ <img
|
|
|
|
+ v-if="addbtn == 0"
|
|
|
|
+ src="../../../images/分类icon.png"
|
|
|
|
+ alt=""
|
|
|
|
+ style="
|
|
|
|
+ margin-right: 5px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 5px;
|
|
|
|
+ top: 2px;
|
|
|
|
+ "
|
|
|
|
+ />
|
|
|
|
+ <span style="margin-left: 25px">
|
|
|
|
+ {{ scope.row.directory }}</span
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -195,7 +227,7 @@
|
|
prop="subclassification"
|
|
prop="subclassification"
|
|
/>
|
|
/>
|
|
<el-table-column label="文件" align="center" prop="documentsNumber" />
|
|
<el-table-column label="文件" align="center" prop="documentsNumber" />
|
|
- <!-- <el-table-column
|
|
|
|
|
|
+ <!-- <el-table-column
|
|
label="更新时间"
|
|
label="更新时间"
|
|
align="center"
|
|
align="center"
|
|
class-name="small-padding fixed-width"
|
|
class-name="small-padding fixed-width"
|
|
@@ -228,7 +260,7 @@
|
|
size="add"
|
|
size="add"
|
|
type="text"
|
|
type="text"
|
|
@click="ViewProgress(scope.row)"
|
|
@click="ViewProgress(scope.row)"
|
|
- v-if="addbtn==true"
|
|
|
|
|
|
+ v-if="addbtn == true"
|
|
>
|
|
>
|
|
<span>添加</span>
|
|
<span>添加</span>
|
|
</el-button>
|
|
</el-button>
|
|
@@ -242,36 +274,55 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <pagination
|
|
|
|
|
|
+ <!-- <pagination
|
|
class="pagination"
|
|
class="pagination"
|
|
v-show="total1 > 0"
|
|
v-show="total1 > 0"
|
|
:total="total1"
|
|
:total="total1"
|
|
:page.sync="queryParams1.pageNum"
|
|
:page.sync="queryParams1.pageNum"
|
|
:limit.sync="queryParams1.pageSize"
|
|
:limit.sync="queryParams1.pageSize"
|
|
@pagination="ListDirectoryinfo"
|
|
@pagination="ListDirectoryinfo"
|
|
- />
|
|
|
|
|
|
+ /> -->
|
|
|
|
+ <el-pagination
|
|
|
|
+ class="pagination"
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
+ @current-change="handleCurrentChange1"
|
|
|
|
+ :current-page="queryParams1.pageNum"
|
|
|
|
+ :page-sizes="[2, 5, 8, 10]"
|
|
|
|
+ :page-size="queryParams1.pageSize"
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
+ :total="total1"
|
|
|
|
+ >
|
|
|
|
+ </el-pagination>
|
|
</div>
|
|
</div>
|
|
<!-- 排行 -->
|
|
<!-- 排行 -->
|
|
<div class="Ranking">
|
|
<div class="Ranking">
|
|
<div class="jichu">排行</div>
|
|
<div class="jichu">排行</div>
|
|
<table style="color: white">
|
|
<table style="color: white">
|
|
- <tr class="borderBottom" v-for="(item,index) in Ranking" :key="item.directory_id">
|
|
|
|
|
|
+ <tr
|
|
|
|
+ class="borderBottom"
|
|
|
|
+ v-for="(item, index) in Ranking"
|
|
|
|
+ :key="item.directory_id"
|
|
|
|
+ >
|
|
<!-- 作战类 documentCategory -->
|
|
<!-- 作战类 documentCategory -->
|
|
<!-- 上月阅读量 readnumber1 -->
|
|
<!-- 上月阅读量 readnumber1 -->
|
|
<!-- 本月阅读量 readnumber2 -->
|
|
<!-- 本月阅读量 readnumber2 -->
|
|
<!-- 排序 -->
|
|
<!-- 排序 -->
|
|
- <td class="numbers">{{index+1}}</td>
|
|
|
|
|
|
+ <td class="numbers">{{ index + 1 }}</td>
|
|
<!-- 作战类类别 -->
|
|
<!-- 作战类类别 -->
|
|
- <td class="find">{{item.documentCategory}}</td>
|
|
|
|
|
|
+ <td class="find">{{ item.documentCategory }}</td>
|
|
<!-- 上周阅读量 -->
|
|
<!-- 上周阅读量 -->
|
|
<td class="readnumber">
|
|
<td class="readnumber">
|
|
- 上月阅读量 <span style="margin-left: 5px">{{item.readnumber2}}</span>
|
|
|
|
|
|
+ 上月阅读量
|
|
|
|
+ <span style="margin-left: 5px">{{ item.readnumber2 }}</span>
|
|
</td>
|
|
</td>
|
|
- <!-- 本周阅读量 -->
|
|
|
|
- <td class="thisweek" style="position:relative">
|
|
|
|
|
|
+ <!-- 本周阅读量 -->
|
|
|
|
+ <td class="thisweek" style="position: relative">
|
|
<!-- <img src="../../../images/upRow.png" alt="" style="position:absolute;top:18px;right:158px" > -->
|
|
<!-- <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"> -->
|
|
<!-- <img src="../../../images/downRow.png" alt="" style="position:absolute;top:17px;right:158px"> -->
|
|
- 本月阅读量 <span style="color: red; margin-left: 5px">{{item. readnumber1}}</span>
|
|
|
|
|
|
+ 本月阅读量
|
|
|
|
+ <span style="color: red; margin-left: 5px">{{
|
|
|
|
+ item.readnumber1
|
|
|
|
+ }}</span>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
@@ -306,11 +357,11 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div style="position:relative"> -->
|
|
<div style="position:relative"> -->
|
|
- <!-- 阅读量增长箭头 -->
|
|
|
|
- <!-- <img src="../../../images/upRow.png" alt="" style="position:absolute;top:5px;right:130px" >
|
|
|
|
|
|
+ <!-- 阅读量增长箭头 -->
|
|
|
|
+ <!-- <img src="../../../images/upRow.png" alt="" style="position:absolute;top:5px;right:130px" >
|
|
阅读量下降箭头
|
|
阅读量下降箭头
|
|
<img src="../../../images/downRow.png" alt="" style="position:absolute;top:5px;right:130px"> -->
|
|
<img src="../../../images/downRow.png" alt="" style="position:absolute;top:5px;right:130px"> -->
|
|
- <!-- 本周阅读量
|
|
|
|
|
|
+ <!-- 本周阅读量
|
|
{{scope.row.read}}
|
|
{{scope.row.read}}
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -406,7 +457,6 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="form1.directory"
|
|
v-model="form1.directory"
|
|
placeholder="请输入目录名称"
|
|
placeholder="请输入目录名称"
|
|
- @click.native="planName"
|
|
|
|
class="filename"
|
|
class="filename"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -436,7 +486,6 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="form2.directory"
|
|
v-model="form2.directory"
|
|
placeholder="请输入子分类名称"
|
|
placeholder="请输入子分类名称"
|
|
- @click.native="planName"
|
|
|
|
class="filename"
|
|
class="filename"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -465,7 +514,7 @@ import {
|
|
// 导出文件列表接口
|
|
// 导出文件列表接口
|
|
exportFileinfo,
|
|
exportFileinfo,
|
|
// 获取排行接口
|
|
// 获取排行接口
|
|
- rankList
|
|
|
|
|
|
+ rankList,
|
|
} from "@/api/regulations/fileinfo";
|
|
} from "@/api/regulations/fileinfo";
|
|
import {
|
|
import {
|
|
// 查询目录列表接口
|
|
// 查询目录列表接口
|
|
@@ -568,9 +617,9 @@ export default {
|
|
// 添加上传文件名称
|
|
// 添加上传文件名称
|
|
title: "",
|
|
title: "",
|
|
// 排行数据
|
|
// 排行数据
|
|
- Ranking:[],
|
|
|
|
|
|
+ Ranking: [],
|
|
// 添加按钮
|
|
// 添加按钮
|
|
- addbtn:true
|
|
|
|
|
|
+ addbtn: true,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
|
|
@@ -579,25 +628,70 @@ export default {
|
|
// 获取目录接口
|
|
// 获取目录接口
|
|
this.ListDirectoryinfo();
|
|
this.ListDirectoryinfo();
|
|
// 获取排行目录接口
|
|
// 获取排行目录接口
|
|
- rankList().then(res=>{
|
|
|
|
- this.Ranking=res.data
|
|
|
|
- })
|
|
|
|
- $(".app-wrapper").removeClass("openSidebar")
|
|
|
|
- console.log($(".app-wrapper"))
|
|
|
|
- $(".app-wrapper").addClass("hideSidebar")
|
|
|
|
- $(".sidebar-logo-container").removeClass("collapse")
|
|
|
|
|
|
+ // rankList().then((res) => {
|
|
|
|
+ // this.Ranking = res.data;
|
|
|
|
+ // });
|
|
|
|
+ this.RankList()
|
|
|
|
+ $(".app-wrapper").removeClass("openSidebar");
|
|
|
|
+ console.log($(".app-wrapper"));
|
|
|
|
+ $(".app-wrapper").addClass("hideSidebar");
|
|
|
|
+ $(".sidebar-logo-container").removeClass("collapse");
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ RankList(){
|
|
|
|
+ rankList().then((res) => {
|
|
|
|
+ this.Ranking = res.data;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ handleSizeChange(val) {},
|
|
|
|
+ handleCurrentChange(val) {
|
|
|
|
+ // console.log(val)
|
|
|
|
+ this.queryParams.pageNum = val;
|
|
|
|
+ listFileinfo({
|
|
|
|
+ pageNum: this.queryParams.pageNum,
|
|
|
|
+ pageSize: this.queryParams.pageSize,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ this.fileinfoList = res.rows;
|
|
|
|
+ this.total = res.total;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ handleCurrentChange1(val) {
|
|
|
|
+ // console.log(val)
|
|
|
|
+ this.queryParams1.pageNum = val;
|
|
|
|
+ console.log(this.queryParams1.pageNum);
|
|
|
|
+ console.log(this.queryParams1.pageSize);
|
|
|
|
+ // this.queryParams.common = "1";
|
|
|
|
+
|
|
|
|
+ if (this.parentId) {
|
|
|
|
+ this.queryParams1.common = null;
|
|
|
|
+ } else {
|
|
|
|
+ this.queryParams1.common = "1";
|
|
|
|
+ }
|
|
|
|
+ listDirectoryinfo({
|
|
|
|
+ parentId: this.parentId,
|
|
|
|
+ pageNum: this.queryParams1.pageNum,
|
|
|
|
+ pageSize: this.queryParams1.pageSize,
|
|
|
|
+ common: this.queryParams1.common,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ this.directory = res.rows;
|
|
|
|
+ this.total1 = res.total;
|
|
|
|
+ this.loading = false;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
// 文件删除按钮操作
|
|
// 文件删除按钮操作
|
|
handledels(row) {
|
|
handledels(row) {
|
|
- console.log(row)
|
|
|
|
- this.$modal
|
|
|
|
- .confirm('是否确认删除该文件')
|
|
|
|
|
|
+ console.log(row);
|
|
|
|
+ this.$modal
|
|
|
|
+ .confirm("是否确认删除该文件")
|
|
.then(function () {
|
|
.then(function () {
|
|
return delFileinfo(row.id);
|
|
return delFileinfo(row.id);
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
|
|
+
|
|
|
|
+ this.ListDirectoryinfo();
|
|
|
|
+ this.RankList()
|
|
this.getList();
|
|
this.getList();
|
|
|
|
+
|
|
this.$modal.msgSuccess("删除成功");
|
|
this.$modal.msgSuccess("删除成功");
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
@@ -610,9 +704,11 @@ export default {
|
|
ListDirectoryinfo() {
|
|
ListDirectoryinfo() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
this.queryParams.common = "1";
|
|
this.queryParams.common = "1";
|
|
- listDirectoryinfo(this.queryParams).then((res) => {
|
|
|
|
|
|
+ this.queryParams1.common = "1";
|
|
|
|
+ listDirectoryinfo(this.queryParams1).then((res) => {
|
|
this.directory = res.rows;
|
|
this.directory = res.rows;
|
|
- this.total1 = res.rows.length;
|
|
|
|
|
|
+ console.log(this.directory);
|
|
|
|
+ this.total1 = res.total;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
// console.log(this.directory);
|
|
// console.log(this.directory);
|
|
});
|
|
});
|
|
@@ -620,16 +716,33 @@ export default {
|
|
// 点击目录根据子目录的数量控制他是否可以点进去进行渲染
|
|
// 点击目录根据子目录的数量控制他是否可以点进去进行渲染
|
|
mulus(row) {
|
|
mulus(row) {
|
|
this.parentId = row.id;
|
|
this.parentId = row.id;
|
|
- this.form.directoryId=row.id
|
|
|
|
- listFileinfo({directoryId:this.form.directoryId}).then(res=>{
|
|
|
|
|
|
+ this.form.directoryId = row.id;
|
|
|
|
+ // 文件
|
|
|
|
+ listFileinfo({
|
|
|
|
+ directoryId: this.form.directoryId,
|
|
|
|
+ pageNum: this.queryParams.pageNum,
|
|
|
|
+ pageSize: this.queryParams.pageSize,
|
|
|
|
+ }).then((res) => {
|
|
this.fileinfoList = res.rows;
|
|
this.fileinfoList = res.rows;
|
|
this.total = res.total;
|
|
this.total = res.total;
|
|
- })
|
|
|
|
- listDirectoryinfo({ parentId: this.parentId }).then((res) => {
|
|
|
|
|
|
+ });
|
|
|
|
+ // console.log(row)
|
|
|
|
+ if (row.subclassification == 0) {
|
|
|
|
+ this.parentId = "";
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 目录
|
|
|
|
+ listDirectoryinfo({
|
|
|
|
+ parentId: this.parentId,
|
|
|
|
+ pageNum: this.queryParams1.pageNum,
|
|
|
|
+ pageSize: this.queryParams1.pageSize,
|
|
|
|
+ }).then((res) => {
|
|
res.rows.forEach((item) => {
|
|
res.rows.forEach((item) => {
|
|
if (item.subclassification == 0) {
|
|
if (item.subclassification == 0) {
|
|
this.directory = res.rows;
|
|
this.directory = res.rows;
|
|
- this.addbtn=false
|
|
|
|
|
|
+ this.total1 = res.total;
|
|
|
|
+ this.addbtn = false;
|
|
} else {
|
|
} else {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -639,8 +752,8 @@ export default {
|
|
},
|
|
},
|
|
// 返回目录
|
|
// 返回目录
|
|
turnback() {
|
|
turnback() {
|
|
- this.addbtn=true
|
|
|
|
- this.getList()
|
|
|
|
|
|
+ this.addbtn = true;
|
|
|
|
+ this.getList();
|
|
this.ListDirectoryinfo();
|
|
this.ListDirectoryinfo();
|
|
},
|
|
},
|
|
// 选中父目录之后
|
|
// 选中父目录之后
|
|
@@ -658,7 +771,7 @@ export default {
|
|
listFileinfo(this.queryParams).then((response) => {
|
|
listFileinfo(this.queryParams).then((response) => {
|
|
this.fileinfoList = response.rows;
|
|
this.fileinfoList = response.rows;
|
|
this.total = response.total;
|
|
this.total = response.total;
|
|
- this.loading=false
|
|
|
|
|
|
+ this.loading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 取消按钮
|
|
// 取消按钮
|
|
@@ -718,7 +831,7 @@ export default {
|
|
},
|
|
},
|
|
/** 上传文件提交按钮 */
|
|
/** 上传文件提交按钮 */
|
|
submitForm() {
|
|
submitForm() {
|
|
- console.log(this.form)
|
|
|
|
|
|
+ console.log(this.form);
|
|
this.$refs["form"].validate((valid) => {
|
|
this.$refs["form"].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
console.log(this.form.file[0]);
|
|
console.log(this.form.file[0]);
|
|
@@ -786,12 +899,13 @@ export default {
|
|
return delDirectoryinfo(ids);
|
|
return delDirectoryinfo(ids);
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- this.getList();
|
|
|
|
|
|
+ this.getList();
|
|
|
|
+
|
|
this.ListDirectoryinfo();
|
|
this.ListDirectoryinfo();
|
|
- this.loading=false
|
|
|
|
- this.loading1=false
|
|
|
|
|
|
+ this.RankList()
|
|
|
|
+ this.loading = false;
|
|
|
|
+ this.loading1 = false;
|
|
this.$modal.msgSuccess("删除成功");
|
|
this.$modal.msgSuccess("删除成功");
|
|
-
|
|
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
},
|
|
},
|
|
@@ -846,6 +960,9 @@ export default {
|
|
row.common = "1";
|
|
row.common = "1";
|
|
updateFileinfo(row).then((res) => {
|
|
updateFileinfo(row).then((res) => {
|
|
this.getList();
|
|
this.getList();
|
|
|
|
+ rankList().then((res) => {
|
|
|
|
+ this.Ranking = res.data;
|
|
|
|
+ });
|
|
});
|
|
});
|
|
// console.log(this.fileinfoList);
|
|
// console.log(this.fileinfoList);
|
|
// window.open("www.baidu.com","_self");
|
|
// window.open("www.baidu.com","_self");
|
|
@@ -864,7 +981,6 @@ export default {
|
|
line-height: 40px;
|
|
line-height: 40px;
|
|
border-left: 4px solid rgba(29, 150, 255, 1);
|
|
border-left: 4px solid rgba(29, 150, 255, 1);
|
|
text-indent: 1em;
|
|
text-indent: 1em;
|
|
-
|
|
|
|
}
|
|
}
|
|
/* 文件表格 */
|
|
/* 文件表格 */
|
|
.tablesfile {
|
|
.tablesfile {
|
|
@@ -972,7 +1088,7 @@ export default {
|
|
}
|
|
}
|
|
/* 阅读按钮样式 */
|
|
/* 阅读按钮样式 */
|
|
.el-button--reads .chakan1 {
|
|
.el-button--reads .chakan1 {
|
|
- padding-top:2px;
|
|
|
|
|
|
+ padding-top: 2px;
|
|
margin-left: 7px;
|
|
margin-left: 7px;
|
|
}
|
|
}
|
|
/* 表格 */
|
|
/* 表格 */
|
|
@@ -1046,9 +1162,9 @@ table {
|
|
color: white;
|
|
color: white;
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
- text-align: center;
|
|
|
|
|
|
+ text-align: center;
|
|
}
|
|
}
|
|
-.margins{
|
|
|
|
|
|
+.margins {
|
|
margin-left: 370px;
|
|
margin-left: 370px;
|
|
}
|
|
}
|
|
/* 返回目录按钮 */
|
|
/* 返回目录按钮 */
|
|
@@ -1176,7 +1292,8 @@ table {
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
/* 序号居中 */
|
|
/* 序号居中 */
|
|
-::v-deep .el-table_1_column_1,.el-table_3_column_9 {
|
|
|
|
|
|
+::v-deep .el-table_1_column_1,
|
|
|
|
+.el-table_3_column_9 {
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
::v-deep .el-table_2_column_4 {
|
|
::v-deep .el-table_2_column_4 {
|
|
@@ -1213,14 +1330,52 @@ body,
|
|
margin: auto;
|
|
margin: auto;
|
|
} */
|
|
} */
|
|
/* 下拉框样式 */
|
|
/* 下拉框样式 */
|
|
-::v-deep .guizhangzhidu .el-select-dropdown .el-select-dropdown__wrap .el-scrollbar__view{
|
|
|
|
- background-color: white !important;
|
|
|
|
|
|
+::v-deep
|
|
|
|
+ .guizhangzhidu
|
|
|
|
+ .el-select-dropdown
|
|
|
|
+ .el-select-dropdown__wrap
|
|
|
|
+ .el-scrollbar__view {
|
|
|
|
+ background-color: transparent !important;
|
|
text-indent: 1em !important;
|
|
text-indent: 1em !important;
|
|
}
|
|
}
|
|
-::v-deep .guizhangzhidu .el-select-dropdown__list{
|
|
|
|
|
|
+::v-deep .guizhangzhidu .el-select-dropdown__list {
|
|
background: white !important;
|
|
background: white !important;
|
|
}
|
|
}
|
|
-::v-deep .el-table_2_column_13 .cell{
|
|
|
|
|
|
+::v-deep .el-table_2_column_13 .cell {
|
|
text-align: center !important;
|
|
text-align: center !important;
|
|
}
|
|
}
|
|
|
|
+.el-select-dropdown__item {
|
|
|
|
+ color: black !important;
|
|
|
|
+}
|
|
|
|
+::v-deep .el-form-item__content .el-input__inner {
|
|
|
|
+ color: white !important;
|
|
|
|
+}
|
|
|
|
+::v-deep .el-pagination {
|
|
|
|
+ margin-top: 10px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 0;
|
|
|
|
+}
|
|
|
|
+::v-deep .el-pager li.active {
|
|
|
|
+ background-color: transparent;
|
|
|
|
+ color: white;
|
|
|
|
+}
|
|
|
|
+/* ::v-deep .el-pager .number{
|
|
|
|
+ background-color: transparent;
|
|
|
|
+ color: white;
|
|
|
|
+} */
|
|
|
|
+::v-deep .btn-prev{
|
|
|
|
+ background-color: transparent;
|
|
|
|
+ color: white;
|
|
|
|
+}
|
|
|
|
+::v-deep .btn-next{
|
|
|
|
+ background-color: transparent;
|
|
|
|
+ color: white;
|
|
|
|
+}
|
|
|
|
+.pagination-container {
|
|
|
|
+ background: #fff;
|
|
|
|
+ padding: 32px 16px;
|
|
|
|
+}
|
|
|
|
+.pagination-container.hidden {
|
|
|
|
+ display: none;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|