zxr 2 years ago
parent
commit
24c2fca207
2 changed files with 110 additions and 203 deletions
  1. 10 9
      src/api/regulations/fileinfo.js
  2. 100 194
      src/views/regulations/fileinfo/index.vue

+ 10 - 9
src/api/regulations/fileinfo.js

@@ -18,11 +18,12 @@ export function getFileinfo(id) {
 }
 
 // 新增规章制度文件记录
-export function addFileinfo(data,file) {
+export function addFileinfo(data, file) {
   return request({
     url: `/regulations/fileinfo`,
     method: 'post',
-    data: data,file,
+    data: data,
+    file,
     // headers: {
     //   'Content-Type':'multipart/form-data'
     // }
@@ -56,18 +57,18 @@ export function exportFileinfo(query) {
 }
 
 // 获取排行列表接口
-export function rankList() {  
+export function rankList() {
   return request({
-    url:"/regulations/fileinfo/getReadNumber",
-    method:"get"
+    url: "/regulations/fileinfo/getReadNumber",
+    method: "get"
   })
 }
 
 // 获取一级数据接口
-export function listParents(query) {  
+export function listParents(query) {
   return request({
-    url:"/regulations/fileinfo/listParent",
-    method:"get",
+    url: "/regulations/fileinfo/listParent",
+    method: "get",
     params: query
   })
-}
+}

+ 100 - 194
src/views/regulations/fileinfo/index.vue

@@ -9,34 +9,20 @@
         @selection-change="handleSelectionChange"
         :header-cell-style="{ background: '#003C69', color: 'white' }"
       >
-        <el-table-column label="序号" type="index" width="80">
-        </el-table-column>
-        <el-table-column
-          label="文件"
-          align="center"
-          width="650"
-          prop="directory"
-          class="fileNAME"
-        >
+        <el-table-column label="序号" type="index" width="80"></el-table-column>
+        <el-table-column label="文件" align="center" width="650" prop="directory" class="fileNAME">
           <template slot-scope="scope">
             <div style="display: flex; flex-warp: warp; margin-top: 10px">
-              <div
-                style="padding-right: 12vh; width: 40px; height: 52px"
-                class="uploadPeople"
-              >
+              <div style="padding-right: 12vh; width: 40px; height: 52px" class="uploadPeople">
                 <!-- 根据后缀名控制图片显示doc还是pdf形式 -->
-                <img
-                  v-if="scope.row.parentDirId == '.pdf'"
-                  src="../../../images/PDF.png"
-                  alt=""
-                />
+                <img v-if="scope.row.parentDirId == '.pdf'" src="../../../images/PDF.png" alt />
                 <img
                   v-else-if="
                     scope.row.parentDirId == '.doc' ||
                     scope.row.parentDirId == '.docx'
                   "
                   src="../../../images/doc.png"
-                  alt=""
+                  alt
                 />
                 <img
                   v-else-if="
@@ -44,14 +30,12 @@
                     scope.row.parentDirId == '.pptx'
                   "
                   src="../../../images/ppt.png"
-                  alt=""
+                  alt
                 />
               </div>
               <!-- 文件名称 fileName -->
               <div>
-                <div style="text-align: start; width: 100%">
-                  {{ scope.row.fileName }}
-                </div>
+                <div style="text-align: start; width: 100%">{{ scope.row.fileName }}</div>
                 <!-- 上传人 createUser -->
                 <!-- 页数 theNumberPages-->
                 <!-- 时间 createTime -->
@@ -68,7 +52,7 @@
                       text-align: start;
                     "
                     >上传人:{{ scope.row.createUser }}</span
-                  > -->
+                  >-->
                   <span
                     style="
                       font-size: 14px;
@@ -78,8 +62,7 @@
                       display: block;
                       text-align: start;
                     "
-                    >页数:{{ scope.row.theNumberPages }}</span
-                  >
+                  >页数:{{ scope.row.theNumberPages }}</span>
                   <span
                     style="
                       font-size: 14px;
@@ -88,8 +71,7 @@
                       display: block;
                       text-align: start;
                     "
-                    >时间:{{ scope.row.createTime }}</span
-                  >
+                  >时间:{{ scope.row.createTime }}</span>
                   <span
                     style="
                       font-size: 14px;
@@ -97,8 +79,7 @@
                       width: 80px;
                       display: block;
                     "
-                    >阅读量:{{ scope.row.readVolume }}</span
-                  >
+                  >阅读量:{{ scope.row.readVolume }}</span>
                   <!-- <span
                     style="
                       font-size: 14px;
@@ -107,7 +88,7 @@
                       display: block;
                     "
                     >分类:{{ scope.row.directoryName }}</span
-                  > -->
+                  >-->
                 </div>
               </div>
             </div>
@@ -122,7 +103,7 @@
           <template slot-scope="scope">
             {{scope.row.directoryName}}
           </template>
-        </el-table-column> -->
+        </el-table-column>-->
         <el-table-column
           label="操作"
           align="center"
@@ -130,11 +111,7 @@
           label-width="180px"
         >
           <template slot-scope="scope">
-            <el-button
-              size="read"
-              type="text"
-              @click.native="ViewRead(scope.row)"
-            >
+            <el-button size="read" type="text" @click.native="ViewRead(scope.row)">
               <span>
                 <!-- <iframe :src="'http://192.168.5.177:8080'+scope.row.parentDirName" target="_blank">阅读</iframe> -->
                 <!-- :href="'http://192.168.2.250:8089' + scope.row.parentDirName" -->
@@ -143,15 +120,11 @@
             </el-button>
             <el-button size="read" type="text" @click="handleupLoad(scope.row)">
               <span class="chakan1">
-                <a
-                  :href="downurl + scope.row.parentDirName"
-                  :download="scope.row.fileName"
-                  >下载</a
-                >
+                <a :href="downurl + scope.row.parentDirName" :download="scope.row.fileName">下载</a>
               </span>
             </el-button>
             <el-button size="dels" type="text" @click="handledels(scope.row)">
-              <span> 删除 </span>
+              <span>删除</span>
             </el-button>
           </template>
         </el-table-column>
@@ -165,7 +138,7 @@
         layout="total, sizes, prev, pager, next, jumper"
         :total="total"
       >
-      </el-pagination> -->
+      </el-pagination>-->
       <pagination
         v-if="nunms == 0"
         v-show="total > 0"
@@ -201,18 +174,14 @@
       <div class="catalog">
         <div class="jichu">
           目录
-          <el-button class="turnback" @click="turnback" 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
-          >
+          >上传文件</el-button>
+          <el-button class="manage" @click="mange" v-if="addbtn != 0">目录管理</el-button>
         </div>
         <el-table
           v-loading="loading"
@@ -220,8 +189,7 @@
           @selection-change="handleSelectionChange"
           :header-cell-style="{ background: '#003C69', color: 'white' }"
         >
-          <el-table-column label="序号" type="index" width="50">
-          </el-table-column>
+          <el-table-column label="序号" type="index" width="50"></el-table-column>
           <el-table-column label="目录" align="center" prop="directory">
             <template slot-scope="scope">
               <div
@@ -232,7 +200,7 @@
                 <img
                   v-if="addbtn != 0"
                   src="../../../images/文件夹.png"
-                  alt=""
+                  alt
                   style="
                     margin-right: 5px;
                     position: absolute;
@@ -244,7 +212,7 @@
                 <img
                   v-if="addbtn == 0"
                   src="../../../images/分类icon.png"
-                  alt=""
+                  alt
                   style="
                     margin-right: 5px;
                     position: absolute;
@@ -252,23 +220,13 @@
                     top: 2px;
                   "
                 />
-                <span style="margin-left: 25px">
-                  {{ scope.row.directory }}</span
-                >
+                <span style="margin-left: 25px">{{ scope.row.directory }}</span>
               </div>
             </template>
           </el-table-column>
-          <el-table-column
-            label="子分类"
-            align="center"
-            prop="subclassification"
-          />
+          <el-table-column label="子分类" align="center" prop="subclassification" />
           <el-table-column label="文件" align="center" prop="documentsNumber" />
-          <el-table-column
-            label="操作"
-            align="center"
-            class-name="small-padding fixed-width"
-          >
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
             <template slot-scope="scope">
               <el-button
                 size="add"
@@ -278,11 +236,7 @@
               >
                 <span>添加</span>
               </el-button>
-              <el-button
-                size="dels"
-                type="text"
-                @click="handleDelete(scope.row)"
-              >
+              <el-button size="dels" type="text" @click="handleDelete(scope.row)">
                 <span class="chakan">删除</span>
               </el-button>
             </template>
@@ -295,7 +249,7 @@
           :page.sync="queryParams1.pageNum"
           :limit.sync="queryParams1.pageSize"
           @pagination="ListDirectoryinfo"
-        /> -->
+        />-->
         <el-pagination
           class="pagination"
           @size-change="handleSizeChange"
@@ -305,18 +259,13 @@
           :page-size="queryParams1.pageSize"
           layout="total, sizes, prev, pager, next, jumper"
           :total="total1"
-        >
-        </el-pagination>
+        ></el-pagination>
       </div>
       <!-- 排行 -->
       <div class="Ranking">
         <div class="jichu">排行</div>
         <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 -->
             <!-- 上月阅读量 readnumber1 -->
             <!-- 本月阅读量 readnumber2 -->
@@ -337,8 +286,7 @@
               <span
                 style="margin-left: 5px"
                 :class="index < 3 ? 'green' : 'red'"
-                >{{ item.readnumber1 }}</span
-              >
+              >{{ item.readnumber1 }}</span>
             </td>
           </tr>
         </table>
@@ -372,17 +320,17 @@
             class-name="small-padding fixed-width"
           >
           <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/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}}
             </div>
           </template>
           </el-table-column>
-        </el-table> -->
+        </el-table>-->
       </div>
       <!-- 上传文件弹框 -->
       <div class="big">
@@ -395,18 +343,8 @@
           class="el-dialog__header"
           :close-on-click-modal="false"
         >
-          <el-form
-            ref="form"
-            :model="form"
-            :rules="rules"
-            label-width="130px"
-            :inline="true"
-          >
-            <el-form-item
-              label-width="100px"
-              prop="directory"
-              class="change_plan_type"
-            >
+          <el-form ref="form" :model="form" :rules="rules" label-width="130px" :inline="true">
+            <el-form-item label-width="100px" prop="directory" class="change_plan_type">
               <el-select
                 v-model="form.directory"
                 placeholder="请选择目录"
@@ -423,11 +361,7 @@
                 ></el-option>
               </el-select>
             </el-form-item>
-            <el-form-item
-              prop="subclassification"
-              class="change_plan_type"
-              id="son"
-            >
+            <el-form-item prop="subclassification" class="change_plan_type" id="son">
               <el-select
                 v-model="form.subclassification"
                 placeholder="请选择子分类"
@@ -464,19 +398,9 @@
         class="el-dialog__header"
         :close-on-click-modal="false"
       >
-        <el-form
-          ref="form1"
-          :model="form1"
-          :rules="rules"
-          label-width="130px"
-          :inline="true"
-        >
+        <el-form ref="form1" :model="form1" :rules="rules" label-width="130px" :inline="true">
           <el-form-item prop="directory">
-            <el-input
-              v-model="form1.directory"
-              placeholder="请输入目录名称"
-              class="filename"
-            />
+            <el-input v-model="form1.directory" placeholder="请输入目录名称" class="filename" />
           </el-form-item>
         </el-form>
         <div slot="footer" class="dialog-footer">
@@ -494,24 +418,14 @@
         class="el-dialog__header"
         :close-on-click-modal="false"
       >
-        <el-form
-          ref="form2"
-          :model="form2"
-          :rules="rules"
-          label-width="130px"
-          :inline="true"
-        >
+        <el-form ref="form2" :model="form2" :rules="rules" label-width="130px" :inline="true">
           <el-form-item prop="directory">
-            <el-input
-              v-model="form2.directory"
-              placeholder="请输入子分类名称"
-              class="filename"
-            />
+            <el-input v-model="form2.directory" placeholder="请输入子分类名称" class="filename" />
           </el-form-item>
         </el-form>
         <div slot="footer" class="dialog-footer">
           <el-button type="primary" @click="submitForm2">确 定</el-button>
-          <el-button @click="cancel" size="" class="aa1"> 取 消</el-button>
+          <el-button @click="cancel" size class="aa1">取 消</el-button>
         </div>
       </el-dialog>
       <!-- 添加预览doc文件弹框 -->
@@ -530,7 +444,7 @@
           <el-button type="primary" @click="open33 = false">关 闭</el-button>
           <!-- <el-button type="primary" @click="open33 = false">
           关 闭</el-button
-          > -->
+          >-->
         </div>
       </el-dialog>
       <!-- 预览PDF文件弹框 -->
@@ -553,9 +467,7 @@
               type="submit"
               :title="'上一页'"
               @click.native="prePage"
-            >
-              上一页</el-button
-            >
+            >上一页</el-button>
             <div
               style="
                 width: 50px;
@@ -564,9 +476,7 @@
                 text-align: center;
                 line-height: 28px;
               "
-            >
-              {{ pageNum }}/{{ pageTotalNum }}
-            </div>
+            >{{ pageNum }}/{{ pageTotalNum }}</div>
             <el-button
               :class="gopage == false ? 'bg' : ''"
               :theme="'default'"
@@ -574,12 +484,10 @@
               type="submit"
               :title="'下一页'"
               @click.native="nextPage"
-            >
-              下一页</el-button
-            >
+            >下一页</el-button>
             <!-- <el-button :theme="'default'" type="submit" :title="'顺时针旋转'" @click.native="clock" > 顺时针旋转</el-button>
             <el-button :theme="'default'" type="submit" :title="'逆时针旋转'" @click.native="counterClock" > 逆时针旋转</el-button>
-           <el-button :theme="'default'" type="submit" :title="'打印'" @click.native="pdfPrintAll"> 打印</el-button> -->
+            <el-button :theme="'default'" type="submit" :title="'打印'" @click.native="pdfPrintAll"> 打印</el-button>-->
           </div>
           <PDF
             ref="pdf"
@@ -595,12 +503,10 @@
           <!-- </div> -->
           <!-- <div class="el-dialog__footer"> -->
           <div slot="footer" class="dialog-footer">
-            <el-button type="primary" @click="previewDialog = false"
-              >关 闭</el-button
-            >
+            <el-button type="primary" @click="previewDialog = false">关 闭</el-button>
             <!-- <el-button @click="previewDialog = false" size="" class="aa1"
               >取 消</el-button
-            > -->
+            >-->
           </div>
           <!-- </div> -->
         </template>
@@ -629,7 +535,7 @@ import {
   exportFileinfo,
   // 获取排行接口
   rankList,
-  listParents,
+  listParents
 } from "@/api/regulations/fileinfo";
 import {
   // 查询目录列表接口
@@ -637,7 +543,7 @@ import {
   // 添加目录列表接口
   addDirectoryinfo,
   // 删除目录列表接口
-  delDirectoryinfo,
+  delDirectoryinfo
 } from "@/api/regulations/directoryinfo";
 export default {
   name: "Fileinfo",
@@ -646,16 +552,16 @@ export default {
       list: [
         {
           id: 1,
-          file: "文件",
+          file: "文件"
         },
         {
           id: 2,
-          file: "文件",
+          file: "文件"
         },
         {
           id: 3,
-          file: "文件",
-        },
+          file: "文件"
+        }
       ],
       // 分页器1
       total: 0,
@@ -675,7 +581,7 @@ export default {
         directoryName: null,
         parentDirId: null,
         parentDirName: null,
-        fileSize: null,
+        fileSize: null
       },
       queryParams1: {
         pageNum: 1,
@@ -691,7 +597,7 @@ export default {
         directoryName: null,
         parentDirId: null,
         parentDirName: null,
-        fileSize: null,
+        fileSize: null
       },
       // 上传文件
       open: false,
@@ -756,7 +662,7 @@ export default {
       nunms: 0,
       // 点击右侧一级分类进去
       Ids: null,
-      last: null,
+      last: null
     };
   },
 
@@ -776,7 +682,7 @@ export default {
     $(".sidebar-logo-container").removeClass("collapse");
   },
   components: {
-    PDF,
+    PDF
   },
   methods: {
     /**
@@ -829,7 +735,7 @@ export default {
       this.open33 = false;
     },
     RankList() {
-      rankList().then((res) => {
+      rankList().then(res => {
         this.Ranking = res.data;
       });
     },
@@ -837,14 +743,14 @@ export default {
     handleCurrentChange(val) {
       // 1
       this.nunms = 0;
-      listFileinfo(this.queryParams).then((res) => {
+      listFileinfo(this.queryParams).then(res => {
         this.fileinfoList = res.rows;
         this.total = res.total;
       });
     },
     handleCurrentChanges() {
-      this.queryParams.parentid=this.Ids;
-      listParents(this.queryParams).then((res) => {
+      this.queryParams.parentid = this.Ids;
+      listParents(this.queryParams).then(res => {
         this.fileinfoList = res.rows;
         this.total = res.total;
       });
@@ -854,8 +760,8 @@ export default {
       listFileinfo({
         directoryId: this.last,
         pageNum: this.queryParams.pageNum,
-        pageSize: this.queryParams.pageSize,
-      }).then((res) => {
+        pageSize: this.queryParams.pageSize
+      }).then(res => {
         this.nunms = 2;
         this.fileinfoList = res.rows;
         this.total = res.total;
@@ -873,11 +779,11 @@ export default {
         parentId: this.parentId,
         pageNum: this.queryParams1.pageNum,
         pageSize: this.queryParams1.pageSize,
-        common: this.queryParams1.common,
-      }).then((res) => {
+        common: this.queryParams1.common
+      }).then(res => {
         this.directory = res.rows;
 
-        this.directory.map((item) => {
+        this.directory.map(item => {
           if (item.subclassification != 0) {
             // this.queryParams1.pageNum=1
             this.addbtn = true;
@@ -892,7 +798,7 @@ export default {
     handledels(row) {
       this.$modal
         .confirm("是否确认删除该文件")
-        .then(function () {
+        .then(function() {
           return delFileinfo(row.id);
         })
         .then(() => {
@@ -913,7 +819,7 @@ export default {
       this.loading = true;
       this.queryParams.common = "1";
       this.queryParams1.common = "1";
-      listDirectoryinfo(this.queryParams1).then((res) => {
+      listDirectoryinfo(this.queryParams1).then(res => {
         this.directory = res.rows;
         this.total1 = res.total;
         this.loading = false;
@@ -933,23 +839,23 @@ export default {
         listParents({
           parentid: row.id,
           pageNum: this.queryParams.pageNum,
-          pageSize: this.queryParams.pageSize,
-        }).then((res) => {
+          pageSize: this.queryParams.pageSize
+        }).then(res => {
           this.fileinfoList = res.rows;
           this.total = res.total;
         });
       } else {
-        this.last = row.id
+        this.last = row.id;
         this.queryParams.pageNum = 1;
-        this.handleCurrentChangess()
+        this.handleCurrentChangess();
       }
       // 目录
       listDirectoryinfo({
         parentId: this.parentId,
         pageNum: this.queryParams1.pageNum,
-        pageSize: this.queryParams1.pageSize,
-      }).then((res) => {
-        res.rows.forEach((item) => {
+        pageSize: this.queryParams1.pageSize
+      }).then(res => {
+        res.rows.forEach(item => {
           if (item.subclassification == 0) {
             this.directory = res.rows;
             this.total1 = res.total;
@@ -965,7 +871,7 @@ export default {
     },
     // 返回目录
     turnback() {
-      this.nunms=0
+      this.nunms = 0;
       this.parentId = "";
       this.addbtn = true;
       this.queryParams1.pageNum = 1;
@@ -978,14 +884,14 @@ export default {
       this.subclassification = [];
       this.parentId = id;
       // 获取到父目录id了
-      listDirectoryinfo({ parentId: this.parentId }).then((res) => {
+      listDirectoryinfo({ parentId: this.parentId }).then(res => {
         this.subclassification = res.rows;
       });
     },
     /** 查询规章制度文件记录列表 */
     getList() {
       this.loading = true;
-      listFileinfo(this.queryParams).then((response) => {
+      listFileinfo(this.queryParams).then(response => {
         this.fileinfoList = response.rows;
         // this.fileinfoList.map(item=>{
         //   item.parentDirName='http://localhost:8089'+item.parentDirName;
@@ -1015,7 +921,7 @@ export default {
         directoryName: null,
         parentDirId: null,
         parentDirName: null,
-        fileSize: null,
+        fileSize: null
       };
       this.resetForm("form");
     },
@@ -1031,7 +937,7 @@ export default {
     },
     // 多选框选中数据
     handleSelectionChange(selection) {
-      this.ids = selection.map((item) => item.id);
+      this.ids = selection.map(item => item.id);
       this.single = selection.length !== 1;
       this.multiple = !selection.length;
     },
@@ -1045,7 +951,7 @@ export default {
     handleUpdate(row) {
       this.reset();
       const id = row.id || this.ids;
-      getFileinfo(id).then((response) => {
+      getFileinfo(id).then(response => {
         this.form = response.data;
         this.open = true;
         this.title = "修改规章制度文件记录";
@@ -1053,7 +959,7 @@ export default {
     },
     /** 上传文件提交按钮 */
     submitForm() {
-      this.$refs["form"].validate((valid) => {
+      this.$refs["form"].validate(valid => {
         if (valid) {
           // 文件名
           // this.form.fileName = this.form.file[0].name;
@@ -1068,7 +974,7 @@ export default {
           // // 目录名称
           this.form.directoryName = this.form.subclassification;
           this.form.bdglFileInfos = this.moreFile;
-          this.form.bdglFileInfos.forEach((item) => {
+          this.form.bdglFileInfos.forEach(item => {
             // 文件大小
             item.fileSize = item.fileLength;
             // 文件路径
@@ -1085,7 +991,7 @@ export default {
           //输出结果
 
           // 上传文件接口
-          addFileinfo(this.form).then((response) => {
+          addFileinfo(this.form).then(response => {
             this.ListDirectoryinfo();
             this.$modal.msgSuccess("上传成功");
             this.open = false;
@@ -1098,9 +1004,9 @@ export default {
     submitForm1() {
       // 新建分类接口
       // addDirectoryinfo
-      this.$refs["form1"].validate((valid) => {
+      this.$refs["form1"].validate(valid => {
         if (valid) {
-          addDirectoryinfo(this.form1).then((response) => {
+          addDirectoryinfo(this.form1).then(response => {
             this.$modal.msgSuccess("新增成功");
             this.ListDirectoryinfo();
             this.open1 = false;
@@ -1112,9 +1018,9 @@ export default {
     },
     // 添加子分类
     submitForm2() {
-      this.$refs["form2"].validate((valid) => {
+      this.$refs["form2"].validate(valid => {
         if (valid) {
-          addDirectoryinfo(this.form2).then((response) => {
+          addDirectoryinfo(this.form2).then(response => {
             this.$modal.msgSuccess("上传子分类成功");
             this.open2 = false;
             this.form2 = {};
@@ -1130,7 +1036,7 @@ export default {
 
       this.$modal
         .confirm("是否确认删除该文件?")
-        .then(function () {
+        .then(function() {
           return delDirectoryinfo(ids);
         })
         .then(() => {
@@ -1140,9 +1046,9 @@ export default {
           listDirectoryinfo({
             parentId: this.parentId,
             pageNum: this.queryParams1.pageNum,
-            pageSize: this.queryParams1.pageSize,
+            pageSize: this.queryParams1.pageSize
             //  common: this.queryParams1.common,
-          }).then((res) => {
+          }).then(res => {
             this.directory = res.rows;
             this.total1 = res.total;
 
@@ -1174,7 +1080,7 @@ export default {
           this.exportLoading = true;
           return exportFileinfo(queryParams);
         })
-        .then((response) => {
+        .then(response => {
           this.$download.name(response.msg);
           this.exportLoading = false;
         })
@@ -1217,7 +1123,7 @@ export default {
         axios({
           method: "get",
           responseType: "blob", // 设置响应文件格式
-          url: process.env.VUE_APP_BASE_API + row.parentDirName,
+          url: process.env.VUE_APP_BASE_API + row.parentDirName
         }).then(({ data }) => {
           $(".docx").attr("id", "printArea");
 
@@ -1231,17 +1137,17 @@ export default {
         this.$message.error("只能阅读Word跟pdf文件");
       }
       row.common = "1";
-      updateFileinfo(row).then((res) => {
+      updateFileinfo(row).then(res => {
         this.getList();
-        rankList().then((res) => {
+        rankList().then(res => {
           this.Ranking = res.data;
         });
       });
       // window.open("www.baidu.com","_self");
     },
     // 下载按钮操作
-    handleupLoad(row) {},
-  },
+    handleupLoad(row) {}
+  }
 };
 </script>
 
@@ -1746,7 +1652,7 @@ body,
   color: white;
 }
 
-::v-deep .el-pagination__sizes  .el-select--mini{
+::v-deep .el-pagination__sizes .el-select--mini {
   display: none;
 }
 </style>