index.vue 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621
  1. <template>
  2. <div class="flexlayout guizhangzhidu">
  3. <!-- 文件区域 左边-->
  4. <div class="tablesfile">
  5. <div class="jichu">文件</div>
  6. <el-table
  7. v-loading="loading1"
  8. :data="fileinfoList"
  9. @selection-change="handleSelectionChange"
  10. :header-cell-style="{ background: '#003C69', color: 'white' }"
  11. >
  12. <el-table-column label="序号" type="index" width="80">
  13. </el-table-column>
  14. <el-table-column
  15. label="文件"
  16. align="center"
  17. width="650"
  18. prop="directory"
  19. class="fileNAME"
  20. >
  21. <template slot-scope="scope">
  22. <div style="display: flex; flex-warp: warp; margin-top: 10px">
  23. <div style="padding-left: 20px" class="uploadPeople">
  24. <!-- 根据后缀名控制图片显示doc还是pdf形式 -->
  25. <img
  26. v-if="scope.row.parentDirId == '.pdf'"
  27. src="../../../images/PDF.png"
  28. alt=""
  29. />
  30. <img
  31. v-else-if="
  32. scope.row.parentDirId == '.doc' ||
  33. scope.row.parentDirId == '.docx'
  34. "
  35. src="../../../images/doc.png"
  36. alt=""
  37. />
  38. </div>
  39. <!-- 文件名称 fileName -->
  40. <div>
  41. <div style="text-align: start; width: 100%; margin-left: 30px">
  42. {{ scope.row.fileName }}
  43. </div>
  44. <!-- 上传人 createUser -->
  45. <!-- 页数 theNumberPages-->
  46. <!-- 时间 createTime -->
  47. <!-- 阅读量 readVolume -->
  48. <div style="display: flex">
  49. <span
  50. style="
  51. font-size: 14px;
  52. color: rgba(204, 204, 204, 1);
  53. width: 100px;
  54. margin-left: 30px;
  55. display: block;
  56. text-align: start;
  57. "
  58. >上传人:{{ scope.row.createUser }}</span
  59. >
  60. <span
  61. style="
  62. font-size: 14px;
  63. color: rgba(204, 204, 204, 1);
  64. width: 80px;
  65. display: block;
  66. text-align: start;
  67. "
  68. >页数:{{ scope.row.theNumberPages }}</span
  69. >
  70. <span
  71. style="
  72. font-size: 14px;
  73. color: rgba(204, 204, 204, 1);
  74. width: 180px;
  75. display: block;
  76. text-align: start;
  77. "
  78. >时间:{{ scope.row.createTime }}</span
  79. >
  80. <span
  81. style="
  82. font-size: 14px;
  83. color: rgba(204, 204, 204, 1);
  84. width: 80px;
  85. display: block;
  86. "
  87. >阅读量:{{ scope.row.readVolume }}</span
  88. >
  89. <span
  90. style="
  91. font-size: 14px;
  92. color: rgba(204, 204, 204, 1);
  93. width: 100px;
  94. display: block;
  95. "
  96. >分类:{{ scope.row.directoryName }}</span
  97. >
  98. </div>
  99. </div>
  100. </div>
  101. </template>
  102. </el-table-column>
  103. <!-- <el-table-column
  104. label="文件"
  105. align="center"
  106. class-name="small-padding fixed-width"
  107. label-width="30px"
  108. >
  109. <template slot-scope="scope">
  110. {{scope.row.directoryName}}
  111. </template>
  112. </el-table-column> -->
  113. <el-table-column
  114. label="操作"
  115. align="center"
  116. class-name="small-padding fixed-width"
  117. label-width="180px"
  118. >
  119. <template slot-scope="scope">
  120. <el-button
  121. size="read"
  122. type="text"
  123. @click.native="ViewRead(scope.row)"
  124. >
  125. <span>
  126. <!-- <iframe :src="'http://192.168.5.177:8080'+scope.row.parentDirName" target="_blank">阅读</iframe> -->
  127. <!-- :href="'http://192.168.2.250:8089' + scope.row.parentDirName" -->
  128. <a target="_blank">阅读</a>
  129. </span>
  130. </el-button>
  131. <el-button size="read" type="text" @click="handleupLoad(scope.row)">
  132. <span class="chakan1">
  133. <a :href="downurl + scope.row.parentDirName" download>下载</a>
  134. </span>
  135. </el-button>
  136. <el-button size="dels" type="text" @click="handledels(scope.row)">
  137. <span> 删除 </span>
  138. </el-button>
  139. </template>
  140. </el-table-column>
  141. </el-table>
  142. <el-pagination
  143. @size-change="handleSizeChange"
  144. @current-change="handleCurrentChange"
  145. :current-page="queryParams.pageNum"
  146. :page-sizes="[2, 5, 8, 10]"
  147. :page-size="queryParams.pageSize"
  148. layout="total, sizes, prev, pager, next, jumper"
  149. :total="total"
  150. >
  151. </el-pagination>
  152. <!-- <pagination
  153. v-show="total > 0"
  154. :total="total"
  155. :page.sync="queryParams.pageNum"
  156. :limit.sync="queryParams.pageSize"
  157. @pagination="getList"
  158. /> -->
  159. </div>
  160. <!-- 右边 -->
  161. <div class="rights">
  162. <!-- 目录 -->
  163. <div class="catalog">
  164. <div class="jichu">
  165. 目录
  166. <el-button
  167. class="uploadfilesbtn"
  168. :class="addbtn ? 'margins' : ''"
  169. @click="upload"
  170. v-if="this.level == 1"
  171. >上传文件</el-button
  172. >
  173. <el-button class="turnback" @click="turnback" v-if="this.level != 1"
  174. >返回上级</el-button
  175. >
  176. </div>
  177. <el-table
  178. v-loading="loading"
  179. :data="teacherList"
  180. @selection-change="handleSelectionChange"
  181. :header-cell-style="{ background: '#003C69', color: 'white' }"
  182. >
  183. <el-table-column label="序号" type="index" width="50">
  184. </el-table-column>
  185. <el-table-column label="目录" align="center" prop="directory">
  186. <template slot-scope="scope">
  187. <div
  188. @click="mulus(scope.row)"
  189. :class="scope.row.subclassification == 0 ? '' : 'undeline'"
  190. style="position: relative; cursor: pointer"
  191. >
  192. <img
  193. v-if="scope.row.subclassification != 0"
  194. src="../../../images/文件夹.png"
  195. alt=""
  196. style="
  197. margin-right: 5px;
  198. position: absolute;
  199. left: 20px;
  200. top: 2px;
  201. "
  202. />
  203. <!-- 分类图片 -->
  204. <img
  205. v-if="scope.row.subclassification == 0"
  206. src="../../../images/分类icon.png"
  207. alt=""
  208. style="
  209. margin-right: 5px;
  210. position: absolute;
  211. left: 25px;
  212. top: 2px;
  213. "
  214. />
  215. <span style="margin-left: 25px">
  216. {{ scope.row.directory }}</span
  217. >
  218. </div>
  219. </template>
  220. </el-table-column>
  221. <el-table-column
  222. label="子分类"
  223. align="center"
  224. prop="subclassification"
  225. />
  226. <el-table-column label="文件" align="center" prop="documentsNumber" />
  227. <el-table-column
  228. label="创建时间"
  229. align="center"
  230. prop="createTime"
  231. width="200px"
  232. />
  233. </el-table>
  234. <el-pagination
  235. class="pagination"
  236. @size-change="handleSizeChange"
  237. @current-change="handleCurrentChange1"
  238. :current-page="queryParams1.pageNum"
  239. :page-sizes="[2, 5, 8, 10]"
  240. :page-size="queryParams1.pageSize"
  241. layout="total, sizes, prev, pager, next, jumper"
  242. :total="total1"
  243. >
  244. </el-pagination>
  245. </div>
  246. <!-- 上传文件弹框 -->
  247. <div class="big">
  248. <el-dialog
  249. style="color: pink"
  250. :title="title"
  251. :visible.sync="open"
  252. width="420px"
  253. append-to-body
  254. class="el-dialog__header"
  255. :close-on-click-modal="false"
  256. >
  257. <el-form
  258. ref="form"
  259. :model="form"
  260. :rules="rules"
  261. label-width="130px"
  262. :inline="true"
  263. style="margin-left: 50px"
  264. >
  265. <el-form-item
  266. label-width="100px"
  267. prop="directory"
  268. class="change_plan_type"
  269. >
  270. <treeselect
  271. v-model="form.directory"
  272. :options="users"
  273. :value="11"
  274. class="threeselects"
  275. @select="selectPeo1"
  276. placeholder="请选择目录"
  277. >
  278. <div slot="value-label" slot-scope="{ node }">{{ node.raw.directory }}</div>
  279. <label
  280. slot="option-label"
  281. slot-scope="{node}"
  282. >
  283. {{ node.raw.directory }}
  284. </label>
  285. </treeselect>
  286. </el-form-item>
  287. <el-form-item style="margin-left: 30px; margin-top: 30px">
  288. <FileUpload v-model="form.file" />
  289. </el-form-item>
  290. </el-form>
  291. <div slot="footer" class="dialog-footer">
  292. <el-button type="primary" @click="submitForm">确 定</el-button>
  293. <el-button @click="cancel" size="btn">取 消</el-button>
  294. </div>
  295. </el-dialog>
  296. </div>
  297. <!-- 排行 -->
  298. <div class="Ranking">
  299. <div class="jichu">排行</div>
  300. <table style="color: white">
  301. <tr
  302. class="borderBottom"
  303. v-for="(item, index) in Ranking"
  304. :key="item.directory_id"
  305. >
  306. <!-- 作战类 documentCategory -->
  307. <!-- 上月阅读量 readnumber1 -->
  308. <!-- 本月阅读量 readnumber2 -->
  309. <!-- 排序 -->
  310. <td class="numbers">{{ index + 1 }}</td>
  311. <!-- 作战类类别 -->
  312. <td class="find">{{ item.documentCategory }}</td>
  313. <!-- 上周阅读量 -->
  314. <td class="readnumber">
  315. 上月阅读量
  316. <span style="margin-left: 5px">{{ item.readnumber2 }}</span>
  317. </td>
  318. <!-- 本周阅读量 -->
  319. <td class="thisweek" style="position: relative">
  320. <!-- <img src="../../../images/upRow.png" alt="" style="position:absolute;top:18px;right:158px" > -->
  321. <!-- <img src="../../../images/downRow.png" alt="" style="position:absolute;top:17px;right:158px"> -->
  322. 本月阅读量
  323. <span style="color: red; margin-left: 5px">{{
  324. item.readnumber1
  325. }}</span>
  326. </td>
  327. </tr>
  328. </table>
  329. </div>
  330. <!-- 添加预览doc文件弹框 -->
  331. <el-dialog
  332. style="color: pink"
  333. :title="title3"
  334. :visible.sync="open33"
  335. width="850px"
  336. append-to-body
  337. id="fileinfodocx"
  338. class="el-dialog__header"
  339. :close-on-click-modal="false"
  340. >
  341. <div ref="file"></div>
  342. <div slot="footer" class="dialog-footer">
  343. <el-button type="primary" @click="submitForm3">确 定</el-button>
  344. <el-button @click="open33 = false" size="" class="aa1">
  345. 取 消</el-button
  346. >
  347. </div>
  348. </el-dialog>
  349. <!-- 预览PDF文件弹框 -->
  350. <el-dialog
  351. :title="title3"
  352. :visible.sync="previewDialog"
  353. width="850px"
  354. append-to-body
  355. id="fileinfopdf"
  356. class="el-dialog__header"
  357. :close-on-click-modal="false"
  358. >
  359. <template>
  360. <!-- <div style="margin-bottom:20px"> -->
  361. <div style="display: flex">
  362. <el-button
  363. :class="gopage == true ? 'bg' : ''"
  364. class="gopage"
  365. :theme="'default'"
  366. type="submit"
  367. :title="'上一页'"
  368. @click.native="prePage"
  369. >
  370. 上一页</el-button
  371. >
  372. <div
  373. style="
  374. width: 50px;
  375. height: 28px;
  376. background: #f4f4f4;
  377. text-align: center;
  378. line-height: 28px;
  379. "
  380. >
  381. {{ pageNum }}/{{ pageTotalNum }}
  382. </div>
  383. <el-button
  384. :class="gopage == false ? 'bg' : ''"
  385. :theme="'default'"
  386. class="downpage"
  387. type="submit"
  388. :title="'下一页'"
  389. @click.native="nextPage"
  390. >
  391. 下一页</el-button
  392. >
  393. <!-- <el-button :theme="'default'" type="submit" :title="'顺时针旋转'" @click.native="clock" > 顺时针旋转</el-button>
  394. <el-button :theme="'default'" type="submit" :title="'逆时针旋转'" @click.native="counterClock" > 逆时针旋转</el-button>
  395. <el-button :theme="'default'" type="submit" :title="'打印'" @click.native="pdfPrintAll"> 打印</el-button> -->
  396. </div>
  397. <PDF
  398. ref="pdf"
  399. :src="pdfurl"
  400. :page="pageNum"
  401. :rotate="pageRotate"
  402. @progress="loadedRatio = $event"
  403. @page-loaded="pageLoaded($event)"
  404. @num-pages="pageTotalNum = $event"
  405. @error="pdfError($event)"
  406. @link-clicked="page = $event"
  407. ></PDF>
  408. <!-- </div> -->
  409. <!-- <div class="el-dialog__footer"> -->
  410. <div slot="footer" class="dialog-footer">
  411. <el-button type="primary" @click="previewDialog = false"
  412. >确 定</el-button
  413. >
  414. <el-button @click="previewDialog = false" size="" class="aa1"
  415. >取 消</el-button
  416. >
  417. </div>
  418. <!-- </div> -->
  419. </template>
  420. </el-dialog>
  421. </div>
  422. </div>
  423. </template>
  424. <script>
  425. import axios from "axios";
  426. import PDF from "vue-pdf";
  427. const docx = require("docx-preview");
  428. window.JSZip = require("jszip");
  429. // import {
  430. // // 获取文件列表接口
  431. // listFileinfo,
  432. // // 修改文件列表接口
  433. // getFileinfo,
  434. // // 删除文件列表接口
  435. // delFileinfo,
  436. // // 上传文件
  437. // addFileinfo,
  438. // // 修改文件列表接口
  439. // updateFileinfo,
  440. // // 导出文件列表接口
  441. // exportFileinfo,
  442. // // 获取排行接口
  443. // rankList,
  444. // } from "@/api/regulations/fileinfo";
  445. import {
  446. listTeacher,
  447. listTeachers,
  448. } from "@/api/thought/teacher";
  449. import {
  450. listTeacherFile,
  451. getTeacherFile,
  452. delTeacherFile,
  453. addTeacherFile,
  454. updateTeacherFile,
  455. exportTeacherFile,
  456. listmulu,
  457. } from "@/api/thought/teacherFile";
  458. import {
  459. // 查询目录列表接口
  460. listDirectoryinfo,
  461. // 添加目录列表接口
  462. addDirectoryinfo,
  463. // 删除目录列表接口
  464. delDirectoryinfo,
  465. } from "@/api/regulations/directoryinfo";
  466. import Treeselect from "@riophae/vue-treeselect";
  467. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  468. import { getDept2, getAll } from "@/api/grassrootsregistration/bdglmeeting";
  469. export default {
  470. name: "Fileinfo",
  471. data() {
  472. return {
  473. list: [
  474. {
  475. id: 1,
  476. file: "文件",
  477. },
  478. {
  479. id: 2,
  480. file: "文件",
  481. },
  482. {
  483. id: 3,
  484. file: "文件",
  485. },
  486. ],
  487. // 树形配置
  488. defaultProps: {
  489. children: "children",
  490. label: "id",
  491. },
  492. // 分页器1
  493. total: 0,
  494. // 分页器2
  495. total1: 0,
  496. queryParams: {
  497. pageNum: 1,
  498. pageSize: 8,
  499. catalog: "",
  500. category: "",
  501. fileName: null,
  502. readVolume: null,
  503. theNumberPages: null,
  504. createUser: null,
  505. createUserid: null,
  506. directoryId: null,
  507. directoryName: null,
  508. parentDirId: null,
  509. parentDirName: null,
  510. fileSize: null,
  511. },
  512. queryParams1: {
  513. pageNum: 1,
  514. pageSize: 5,
  515. catalog: "",
  516. category: "",
  517. fileName: null,
  518. readVolume: null,
  519. theNumberPages: null,
  520. createUser: null,
  521. createUserid: null,
  522. directoryId: null,
  523. directoryName: null,
  524. parentDirId: null,
  525. parentDirName: null,
  526. fileSize: null,
  527. },
  528. // 上传文件
  529. open: false,
  530. // 新建分类
  531. open1: false,
  532. // 添加子分类
  533. open2: false,
  534. // 表单参数
  535. form: {},
  536. // 新建目录
  537. form1: {},
  538. // 新建子分类
  539. form2: {},
  540. // 规章制度文件记录表格数据
  541. fileinfoList: [],
  542. // 表单校验
  543. rules: {},
  544. // 目录
  545. directory: [],
  546. // 父节点id
  547. parentId: "",
  548. // 遮罩层
  549. loading: true,
  550. // 导出遮罩层
  551. exportLoading: false,
  552. // 子分类
  553. subclassification: [],
  554. // 刷新
  555. loading1: false,
  556. // 文件
  557. file: {},
  558. //文件类型判断
  559. fileType: 1,
  560. // 添加子分类名称
  561. title2: "",
  562. // 添加新建分类名称
  563. title1: "",
  564. // 添加上传文件名称
  565. title: "",
  566. // 排行数据
  567. Ranking: [],
  568. // 添加按钮
  569. addbtn: true,
  570. // 虚拟字段
  571. fid: "",
  572. open33: false,
  573. title3: "预览文件",
  574. // 下载文件路径
  575. downurl: process.env.VUE_APP_BASE_API,
  576. // pdf文件
  577. previewDialog: false,
  578. pdfurl: "",
  579. pageNum: 1,
  580. pageTotalNum: 1,
  581. pageRotate: 0,
  582. // 加载进度
  583. loadedRatio: 0,
  584. curPageNum: 0,
  585. gopage: true,
  586. // 层级
  587. level: 1,
  588. teacherList: [],
  589. parentId: 0,
  590. // 返回上级父id
  591. parentIds: "",
  592. parentDirectory: "",
  593. // 添加按钮传值
  594. parentDirectorys: "",
  595. level: 1,
  596. levels: "",
  597. parentIdss: "",
  598. dellevel: "",
  599. // 子分类数量
  600. subclassification: "",
  601. // 父目录id
  602. fatherparentId: "",
  603. users: [],
  604. dir:""
  605. };
  606. },
  607. created() {
  608. // 获取执行单位列表
  609. listmulu({parentId:0}).then((res) => {
  610. // console.log(res,2)
  611. this.users = res.rows;
  612. console.log(this.users)
  613. });
  614. this.getList();
  615. // 获取目录接口
  616. this.ListDirectoryinfo();
  617. // 获取排行目录接口
  618. // rankList().then((res) => {
  619. // this.Ranking = res.data;
  620. // });
  621. this.RankList();
  622. $(".app-wrapper").addClass("openSidebar");
  623. console.log($(".app-wrapper"));
  624. $(".app-wrapper").removeClass("hideSidebar");
  625. $(".sidebar-logo-container").addClass("collapse");
  626. },
  627. components: {
  628. PDF,
  629. Treeselect,
  630. },
  631. methods: {
  632. selectPeo1(row){
  633. this.dir=row.directory
  634. this.form.directoryId=row.id
  635. console.log(this.dir)
  636. },
  637. /**
  638. * 预览PDF
  639. */
  640. previewPDF(row, index) {
  641. this.previewDialog = true;
  642. console.log("", row, index);
  643. },
  644. // 上一页函数,
  645. prePage() {
  646. this.gopage = true;
  647. var page = this.pageNum;
  648. page = page > 1 ? page - 1 : this.pageTotalNum;
  649. this.pageNum = page;
  650. },
  651. // 下一页函数
  652. nextPage() {
  653. this.gopage = false;
  654. var page = this.pageNum;
  655. page = page < this.pageTotalNum ? page + 1 : 1;
  656. this.pageNum = page;
  657. },
  658. // 页面顺时针翻转90度。
  659. clock() {
  660. this.pageRotate += 90;
  661. },
  662. // 页面逆时针翻转90度。
  663. counterClock() {
  664. this.pageRotate -= 90;
  665. },
  666. // 页面加载回调函数,其中e为当前页数
  667. pageLoaded(e) {
  668. this.curPageNum = e;
  669. },
  670. // 错误时回调函数。
  671. pdfError(error) {
  672. console.error(error);
  673. },
  674. // 打印全部
  675. pdfPrintAll() {
  676. /**
  677. * 打印界面字符乱码是因为你pdf中使用了自定义字体导致的,谷歌浏览器打印的时候预览界面真的变成了真·方块字 ,解决方案如下:
  678. * 用文章最后的pdfjsWrapper.js在替换掉node_modules/vue-pdf/src/pdfjsWrapper.js
  679. */
  680. console.log("打印");
  681. this.$refs.pdf.print();
  682. },
  683. // 预览弹框
  684. submitForm3() {
  685. this.open33 = false;
  686. },
  687. RankList() {
  688. rankList().then((res) => {
  689. this.Ranking = res.data;
  690. });
  691. },
  692. handleSizeChange(val) {},
  693. handleCurrentChange(val) {
  694. // console.log(val)
  695. this.queryParams.pageNum = val;
  696. listTeacherFile({
  697. pageNum: this.queryParams.pageNum,
  698. pageSize: this.queryParams.pageSize,
  699. }).then((res) => {
  700. this.fileinfoList = res.rows;
  701. this.total = res.total;
  702. });
  703. },
  704. handleCurrentChange1(val) {
  705. // console.log(val)
  706. this.queryParams1.pageNum = val;
  707. // this.queryParams.common = "1";
  708. // console.log(this.parentId);
  709. // if (this.parentId) {
  710. // this.queryParams1.common = null;
  711. // } else {
  712. // this.queryParams1.common = "1";
  713. // }
  714. console.log(this.parentId);
  715. if (this.level == 1) {
  716. listTeacher({
  717. level: this.level,
  718. pageNum: this.queryParams1.pageNum,
  719. pageSize: this.queryParams1.pageSize,
  720. }).then((res) => {
  721. this.teacherList = res.rows;
  722. // console.log(this.directory)
  723. this.teacherList.map((item) => {
  724. if (item.subclassification != 0) {
  725. // this.queryParams1.pageNum=1
  726. this.addbtn = true;
  727. }
  728. });
  729. // this.addbtn=true
  730. this.total1 = res.total;
  731. this.loading = false;
  732. });
  733. } else {
  734. listTeacher({
  735. level: this.level,
  736. parentDirectory: this.parentDirectory,
  737. pageNum: this.queryParams1.pageNum,
  738. pageSize: this.queryParams1.pageSize,
  739. }).then((res) => {
  740. this.teacherList = res.rows;
  741. // console.log(this.directory)
  742. this.teacherList.map((item) => {
  743. if (item.subclassification != 0) {
  744. // this.queryParams1.pageNum=1
  745. this.addbtn = true;
  746. }
  747. });
  748. // this.addbtn=true
  749. this.total1 = res.total;
  750. this.loading = false;
  751. });
  752. }
  753. },
  754. // 文件删除按钮操作
  755. handledels(row) {
  756. console.log(row);
  757. this.$modal
  758. .confirm("是否确认删除该文件")
  759. .then(function () {
  760. return delTeacherFile(row.id);
  761. })
  762. .then(() => {
  763. this.ListDirectoryinfo();
  764. this.RankList();
  765. this.getList();
  766. this.$modal.msgSuccess("删除成功");
  767. })
  768. .catch(() => {});
  769. },
  770. // 子分类id
  771. soncategory(id) {
  772. this.form.directoryId = id;
  773. },
  774. // 获取目录列表
  775. ListDirectoryinfo() {
  776. this.loading = true;
  777. this.queryParams1.parentId = 0;
  778. if (this.level != 1) {
  779. listTeacher({
  780. parentDirectory: this.parentDirectory,
  781. level: this.level,
  782. pageNum: this.queryParams1.pageNum,
  783. pageSize: this.queryParams1.pageSize,
  784. }).then((response) => {
  785. this.teacherList = response.rows;
  786. this.total1 = response.total;
  787. this.loading = false;
  788. });
  789. } else {
  790. listTeacher(this.queryParams1).then((response) => {
  791. this.teacherList = response.rows;
  792. console.log(this.teacherList);
  793. this.total1 = response.total;
  794. this.loading = false;
  795. });
  796. }
  797. },
  798. // 点击目录
  799. mulus(row) {
  800. this.parentId = row.id;
  801. console.log(row.id)
  802. this.parentDirectory = row.parentDirectory;
  803. this.subclassification = row.subclassification;
  804. // 文件
  805. listTeacherFile({
  806. directoryId: row.id,
  807. pageNum: this.queryParams.pageNum,
  808. pageSize: this.queryParams.pageSize,
  809. }).then((res) => {
  810. console.log(res)
  811. this.fileinfoList = res.rows;
  812. this.total = res.total;
  813. });
  814. if (row.subclassification == 0) {
  815. return;
  816. } else {
  817. this.level += 1;
  818. this.fatherparentId = row.id;
  819. console.log(this.level);
  820. this.loading = true;
  821. this.getLists();
  822. }
  823. },
  824. getLists() {
  825. listTeacher({
  826. parentId: this.parentId,
  827. pageNum: this.queryParams1.pageNum,
  828. pageSize: this.queryParams1.pageSize,
  829. }).then((response) => {
  830. this.teacherList = response.rows;
  831. this.parentIds = this.teacherList[0].parentId;
  832. this.total1 = response.total;
  833. this.loading = false;
  834. });
  835. },
  836. // 返回上级
  837. turnback(row) {
  838. if (this.level == 1) {
  839. this.level == 1;
  840. return;
  841. } else {
  842. this.level -= 1;
  843. }
  844. // this.loading=true
  845. // console.log(this.parentId);
  846. if (this.level == 1) {
  847. listTeachers({
  848. level: this.level,
  849. pageNum: this.queryParams1.pageNum,
  850. pageSize: this.queryParams1.pageSize,
  851. }).then((res) => {
  852. console.log(res);
  853. this.teacherList = res.rows;
  854. // console.log(res.rows)
  855. this.fatherparentId = res.rows[0].parentId;
  856. this.total1 = res.total;
  857. this.loading = false;
  858. });
  859. } else if (this.level > 1) {
  860. listTeachers({
  861. parentDirectory: this.parentDirectory,
  862. level: this.level,
  863. pageNum: this.queryParams1.pageNum,
  864. pageSize: this.queryParams1.pageSize,
  865. parentId: this.fatherparentId,
  866. }).then((res) => {
  867. console.log(res);
  868. this.teacherList = res.rows;
  869. this.fatherparentId = res.rows[0].parentId;
  870. console.log(this.fatherparentId);
  871. this.total1 = res.total;
  872. this.loading = false;
  873. });
  874. }
  875. },
  876. // 选中父目录之后
  877. // chooseDirect(id) {
  878. // this.subclassification = [];
  879. // this.parentId = id;
  880. // // 获取到父目录id了
  881. // listDirectoryinfo({ parentId: this.parentId }).then((res) => {
  882. // this.subclassification = res.rows;
  883. // });
  884. // },
  885. /** 查询规章制度文件记录列表 */
  886. getList() {
  887. this.loading = true;
  888. listTeacherFile(this.queryParams).then((response) => {
  889. this.fileinfoList = response.rows;
  890. this.total = response.total;
  891. this.loading = false;
  892. });
  893. },
  894. // 取消按钮
  895. cancel() {
  896. this.open = false;
  897. this.reset();
  898. },
  899. // 表单重置
  900. reset() {
  901. this.form = {
  902. id: null,
  903. fileName: null,
  904. readVolume: null,
  905. theNumberPages: null,
  906. createUser: null,
  907. createUserid: null,
  908. createTime: null,
  909. directoryId: null,
  910. directoryName: null,
  911. parentDirId: null,
  912. parentDirName: null,
  913. fileSize: null,
  914. };
  915. this.resetForm("form");
  916. },
  917. /** 搜索按钮操作 */
  918. handleQuery() {
  919. this.queryParams.pageNum = 1;
  920. this.getList();
  921. },
  922. /** 重置按钮操作 */
  923. resetQuery() {
  924. this.resetForm("queryForm");
  925. this.handleQuery();
  926. },
  927. // 多选框选中数据
  928. handleSelectionChange(selection) {
  929. this.ids = selection.map((item) => item.id);
  930. this.single = selection.length !== 1;
  931. this.multiple = !selection.length;
  932. },
  933. /** 新增按钮操作 */
  934. handleAdd() {
  935. this.reset();
  936. this.open = true;
  937. this.title = "添加规章制度文件记录";
  938. },
  939. /** 修改按钮操作 */
  940. handleUpdate(row) {
  941. this.reset();
  942. const id = row.id || this.ids;
  943. getFileinfo(id).then((response) => {
  944. this.form = response.data;
  945. this.open = true;
  946. this.title = "修改规章制度文件记录";
  947. });
  948. },
  949. /** 上传文件提交按钮 */
  950. submitForm() {
  951. this.form.directory=this.dir
  952. console.log(this.form);
  953. this.$refs["form"].validate((valid) => {
  954. if (valid) {
  955. // console.log(this.form.file[0]);
  956. // 文件名
  957. this.form.fileName = this.form.file[0].name;
  958. // 路径
  959. this.form.parentDirName = this.form.file[0].url;
  960. // 后缀
  961. this.form.parentDirId = this.form.file[0].houZUI;
  962. // 页数
  963. this.form.theNumberPages = this.form.file[0].pageCount;
  964. // 文件大小
  965. this.form.fileSize = this.form.file[0].fileLength;
  966. // 目录名称
  967. this.form.directoryName = this.form.subclassification;
  968. //输出结果
  969. console.log(this.form);
  970. // 上传文件接口
  971. addTeacherFile(this.form).then((response) => {
  972. // this.ListDirectoryinfo();
  973. this.$modal.msgSuccess("上传成功");
  974. this.open = false;
  975. this.getList();
  976. });
  977. }
  978. });
  979. },
  980. /** 删除按钮操作 */
  981. handleDelete(row) {
  982. const ids = row.id;
  983. this.parentId = row.parentId;
  984. console.log(row.parentId);
  985. // console.log(ids);
  986. this.$modal
  987. .confirm("是否确认删除该文件?")
  988. .then(function () {
  989. return delDirectoryinfo(ids);
  990. })
  991. .then(() => {
  992. // this.parentId=""
  993. this.getList();
  994. // this.ListDirectoryinfo();
  995. listDirectoryinfo({
  996. parentId: this.parentId,
  997. pageNum: this.queryParams1.pageNum,
  998. pageSize: this.queryParams1.pageSize,
  999. // common: this.queryParams1.common,
  1000. }).then((res) => {
  1001. console.log(res);
  1002. this.directory = res.rows;
  1003. this.total1 = res.total;
  1004. if (this.parentId == 0) {
  1005. this.addbtn = true;
  1006. this.RankList();
  1007. this.loading = false;
  1008. this.loading1 = false;
  1009. this.$modal.msgSuccess("删除成功");
  1010. } else {
  1011. this.addbtn = false;
  1012. this.RankList();
  1013. this.loading = false;
  1014. this.loading1 = false;
  1015. this.$modal.msgSuccess("删除成功");
  1016. }
  1017. });
  1018. })
  1019. .catch(() => {});
  1020. },
  1021. /** 导出按钮操作 */
  1022. handleExport() {
  1023. const queryParams = this.queryParams;
  1024. this.$modal
  1025. .confirm("是否确认导出所有规章制度文件记录数据项?")
  1026. .then(() => {
  1027. this.exportLoading = true;
  1028. return exportFileinfo(queryParams);
  1029. })
  1030. .then((response) => {
  1031. this.$download.name(response.msg);
  1032. this.exportLoading = false;
  1033. })
  1034. .catch(() => {});
  1035. },
  1036. // 上传
  1037. upload() {
  1038. // this.getList()
  1039. this.reset();
  1040. this.open = true;
  1041. this.title = "上传文件";
  1042. this.ListDirectoryinfo();
  1043. },
  1044. // 目录管理
  1045. mange() {
  1046. this.open1 = true;
  1047. this.title1 = "新建分类";
  1048. },
  1049. // 添加
  1050. ViewProgress(row) {
  1051. // 传入父亲目录id
  1052. this.form2.parentId = row.id;
  1053. // console.log(this.form2.parentId)
  1054. this.open2 = true;
  1055. this.title2 = "请输入子分类名称";
  1056. },
  1057. // 取消按钮
  1058. cancel() {
  1059. this.open = false;
  1060. this.open1 = false;
  1061. this.open2 = false;
  1062. this.comstatus = 0;
  1063. this.reset();
  1064. },
  1065. // 阅读按钮操作
  1066. ViewRead(row) {
  1067. console.log(row);
  1068. if (row.parentDirId == ".docx" || row.parentDirId == ".doc") {
  1069. this.open33 = true;
  1070. axios({
  1071. method: "get",
  1072. responseType: "blob", // 设置响应文件格式
  1073. url: process.env.VUE_APP_BASE_API + row.parentDirName,
  1074. }).then(({ data }) => {
  1075. // console.log(11)
  1076. console.log(data);
  1077. $(".docx").attr("id", "printArea");
  1078. // console.log($(".docx"));
  1079. docx.renderAsync(data, this.$refs.file); // 渲染到页面预览
  1080. });
  1081. } else if (row.parentDirId == ".pdf") {
  1082. this.previewDialog = true;
  1083. this.pdfurl = process.env.VUE_APP_BASE_API + row.parentDirName;
  1084. }
  1085. row.common = "1";
  1086. updateFileinfo(row).then((res) => {
  1087. this.getList();
  1088. rankList().then((res) => {
  1089. this.Ranking = res.data;
  1090. });
  1091. });
  1092. // window.open("www.baidu.com","_self");
  1093. },
  1094. // 下载按钮操作
  1095. handleupLoad() {},
  1096. },
  1097. };
  1098. </script>
  1099. <style scoped>
  1100. /* ::v-deep .el-dialog__body{
  1101. overflow: auto !important;
  1102. height: 600px !important;
  1103. } */
  1104. /* doc文件样式修改 */
  1105. ::v-deep .docx {
  1106. padding: 0 !important;
  1107. }
  1108. ::v-deep .docx-wrapper > section.docx {
  1109. /* padding: 0 !important; */
  1110. margin-bottom: 0px !important;
  1111. box-shadow: none;
  1112. }
  1113. /* 预览弹框背景去除 */
  1114. ::v-deep .docx-wrapper {
  1115. padding: 0 !important;
  1116. background: none !important;
  1117. }
  1118. ::v-deep .vue-treeselect__placeholder {
  1119. color: #bdbdbd4f !important;
  1120. }
  1121. ::v-deep .el-table__row .el-table__cell {
  1122. text-align: center !important;
  1123. }
  1124. .jichu {
  1125. color: white;
  1126. width: 100%;
  1127. height: 40px;
  1128. line-height: 40px;
  1129. border-left: 4px solid rgba(29, 150, 255, 1);
  1130. text-indent: 1em;
  1131. }
  1132. /* 文件表格 */
  1133. .tablesfile {
  1134. /* height: 87vh; */
  1135. background: #00365f;
  1136. width: calc(100% - 695px);
  1137. position: absolute;
  1138. left: 10px;
  1139. top: 10px;
  1140. bottom: 10px;
  1141. }
  1142. /* 弹性布局 */
  1143. .flexlayout {
  1144. display: flex;
  1145. justify-content: space-around;
  1146. align-items: flex-start;
  1147. height: 100%;
  1148. display: flex;
  1149. width: 100%;
  1150. margin: 20px 20px 20px;
  1151. }
  1152. /* 目录 */
  1153. .catalog {
  1154. width: 100%;
  1155. height: 50%;
  1156. position: relative;
  1157. background-color: #00365f;
  1158. }
  1159. /* 弹框按钮 */
  1160. .dialog-footer .el-button {
  1161. width: 60px;
  1162. height: 30px;
  1163. }
  1164. /* 分页器样式 */
  1165. .pagination {
  1166. position: absolute;
  1167. bottom: 20px;
  1168. right: 10px;
  1169. }
  1170. /* 排行 */
  1171. .Ranking {
  1172. width: 100%;
  1173. height: 48.8%;
  1174. right: 12%;
  1175. top: 45%;
  1176. background-color: #00365f;
  1177. margin-top: 10px;
  1178. /* margin-bottom: 20px; */
  1179. }
  1180. /* 右边栏样式 */
  1181. .rights {
  1182. /* height: 100vh; */
  1183. /* height: 85vh; */
  1184. width: 665px;
  1185. float: right;
  1186. position: absolute;
  1187. top: 10px;
  1188. right: 10px;
  1189. bottom: 10px;
  1190. margin-left: 10px;
  1191. }
  1192. /* 阅读 */
  1193. .el-button--read {
  1194. color: #ffffff;
  1195. width: 50px;
  1196. height: 30px;
  1197. background-color: #1d96ff;
  1198. border-radius: 4px;
  1199. font-size: 14px;
  1200. line-height: 5px;
  1201. margin-right: 10px;
  1202. }
  1203. /* 阅读按钮1样式 */
  1204. .el-button--reads {
  1205. color: #ffffff;
  1206. width: 50px;
  1207. height: 30px;
  1208. background-color: #1d96ff;
  1209. border-radius: 4px;
  1210. font-size: 14px;
  1211. /* background-image: url("../../../images/uploads.png"); */
  1212. background-repeat: no-repeat;
  1213. background-position: 8px 6px;
  1214. /* text-align: center; */
  1215. line-height: 30px;
  1216. margin-right: 10px;
  1217. }
  1218. /* 删除按钮样式 */
  1219. .el-button--dels {
  1220. color: #ffffff;
  1221. width: 50px;
  1222. height: 30px;
  1223. background-color: #ff4949;
  1224. border-radius: 4px;
  1225. font-size: 14px;
  1226. background-repeat: no-repeat;
  1227. background-position: 8px 6px;
  1228. /* text-align: center; */
  1229. line-height: 5px;
  1230. margin-right: 10px;
  1231. }
  1232. /* 查看按钮样式 */
  1233. .el-button--reads .chakan {
  1234. margin-left: 7px;
  1235. }
  1236. /* 阅读按钮样式 */
  1237. .el-button--reads .chakan1 {
  1238. padding-top: 2px;
  1239. /* margin-left: 7px; */
  1240. }
  1241. /* 表格 */
  1242. .tdfirst {
  1243. width: 60px;
  1244. text-align: center;
  1245. }
  1246. .tdsecound {
  1247. width: 880px;
  1248. }
  1249. .tdthird {
  1250. width: 70px;
  1251. }
  1252. .tdfourth {
  1253. width: 70px;
  1254. }
  1255. tr {
  1256. width: 100%;
  1257. height: 50px;
  1258. }
  1259. .lefttable tr:nth-child(even) {
  1260. background-color: #00365f;
  1261. }
  1262. .lefttable tr:nth-child(odd) {
  1263. background-color: rgb(0, 60, 105);
  1264. }
  1265. /* 表格 */
  1266. .numbers {
  1267. width: 50px;
  1268. text-align: center;
  1269. /* background: pink; */
  1270. /* margin-left: 10px; */
  1271. }
  1272. .find {
  1273. /* background-color: skyblue; */
  1274. font-size: 14px;
  1275. width: 200px;
  1276. text-align: center;
  1277. }
  1278. .readnumber {
  1279. font-size: 14px;
  1280. width: 220px;
  1281. text-align: center;
  1282. }
  1283. .thisweek {
  1284. font-size: 14px;
  1285. width: 210px;
  1286. text-align: center;
  1287. }
  1288. .borderBottom {
  1289. width: 100%;
  1290. height: 50px;
  1291. border-bottom: 1px solid #718a9dff;
  1292. }
  1293. table {
  1294. border-collapse: collapse;
  1295. width: 100%;
  1296. }
  1297. /* 左边表格 */
  1298. .lefttable tr {
  1299. width: 100%;
  1300. height: 60px;
  1301. background-color: pink;
  1302. }
  1303. /* 上传文件 */
  1304. .uploadfilesbtn {
  1305. width: 80px;
  1306. height: 33px;
  1307. line-height: 33px;
  1308. background-color: #1d96ff;
  1309. color: white;
  1310. border-radius: 4px;
  1311. font-size: 14px;
  1312. text-align: center;
  1313. }
  1314. .margins {
  1315. margin-left: 490px;
  1316. }
  1317. /* 返回目录按钮 */
  1318. .turnback {
  1319. width: 86px;
  1320. height: 33px;
  1321. border: 1px solid #ccc;
  1322. border-radius: 4px;
  1323. font-size: 14px;
  1324. line-height: 33px;
  1325. text-align: center;
  1326. margin-left: 490px;
  1327. color: #ccc;
  1328. background: #00365f;
  1329. }
  1330. /* 目录管理 */
  1331. .manage {
  1332. /* display: inline-block; */
  1333. width: 80px;
  1334. height: 33px;
  1335. line-height: 33px;
  1336. background-color: #1d96ff;
  1337. color: white;
  1338. font-size: 14px;
  1339. border-radius: 4px;
  1340. margin-left: 10px;
  1341. }
  1342. .pagination-container {
  1343. background: #fff;
  1344. padding: 32px 16px;
  1345. }
  1346. .pagination-container.hidden {
  1347. display: none;
  1348. }
  1349. /* 弹框样式修改 */
  1350. ::v-deep .el-dialog {
  1351. background-color: #004d86 !important;
  1352. }
  1353. ::v-deep .el-dialog__title {
  1354. color: white;
  1355. }
  1356. ::v-deep .el-dialog__header {
  1357. border-bottom: 1px solid #718a9dff;
  1358. }
  1359. ::v-deep .select_file {
  1360. margin-left: -30px;
  1361. }
  1362. /* 计划附件 */
  1363. ::v-deep .el-upload__tip {
  1364. color: white;
  1365. position: absolute;
  1366. top: -5px;
  1367. width: 500px;
  1368. left: 80px;
  1369. color: white;
  1370. }
  1371. ::v-deep .el-form-item__content {
  1372. width: 230px;
  1373. }
  1374. /* 选取附件 */
  1375. ::v-deep .el-upload-list__item {
  1376. width: 250px;
  1377. }
  1378. ::v-deep .el-upload-list__item a {
  1379. color: white;
  1380. text-indent: 0.5em;
  1381. }
  1382. ::v-deep .el-select-dropdown__item {
  1383. color: white;
  1384. }
  1385. /* 输入框背景 */
  1386. ::v-deep .el-input__inner {
  1387. background-color: #004d86;
  1388. border: 1px solid white !important;
  1389. /* width: 270px; */
  1390. }
  1391. ::v-deep .filename .el-input__inner {
  1392. width: 270px;
  1393. color: white;
  1394. }
  1395. ::v-deep .el-select-dropdown__wrap {
  1396. background-color: white !important;
  1397. }
  1398. .el-select-dropdown__item {
  1399. text-indent: 1em;
  1400. color: white;
  1401. border: none !important;
  1402. }
  1403. ::v-deep .el-select-dropdown__wrap .el-scrollbar__view {
  1404. background-color: white !important;
  1405. }
  1406. ::v-deep .pagination-container {
  1407. display: block !important;
  1408. }
  1409. /* 添加按钮 */
  1410. .el-button--add {
  1411. width: 55px !important;
  1412. border: 1px solid transparent;
  1413. padding: 3px 8px;
  1414. font-size: 14px;
  1415. line-height: 1.5;
  1416. border-radius: 3px;
  1417. color: #fff;
  1418. background-color: #13ce66;
  1419. }
  1420. /* 删除按钮 */
  1421. .el-button--del {
  1422. width: 46px !important;
  1423. border: 1px solid transparent;
  1424. padding: 3px 8px;
  1425. font-size: 14px;
  1426. line-height: 1.5;
  1427. border-radius: 3px;
  1428. color: #fff;
  1429. background-color: #ff4949;
  1430. }
  1431. /* 下划线 */
  1432. .undeline {
  1433. /* text-decoration: underline; */
  1434. /* text-align: start; */
  1435. color: #00f0ff;
  1436. cursor: pointer;
  1437. }
  1438. /* 序号居中 */
  1439. ::v-deep .el-table_1_column_1,
  1440. .el-table_3_column_9 {
  1441. text-align: center;
  1442. }
  1443. ::v-deep .el-table_2_column_4 {
  1444. text-align: center;
  1445. }
  1446. /* 导入按钮 */
  1447. .imports {
  1448. color: skyblue;
  1449. display: inline-block;
  1450. margin-top: 30px;
  1451. margin-right: 150px;
  1452. /* padding-top: 10px; */
  1453. }
  1454. .is-ready li {
  1455. width: 300px !important;
  1456. }
  1457. .cursor {
  1458. cursor: pointer;
  1459. color: #409eff;
  1460. font-size: 16px;
  1461. }
  1462. * {
  1463. padding: 0;
  1464. margin: 0;
  1465. }
  1466. html,
  1467. body,
  1468. #app {
  1469. height: 100%;
  1470. margin: 0;
  1471. padding: 0;
  1472. }
  1473. /* .el-table td.el-table__cell div {
  1474. margin: auto;
  1475. } */
  1476. /* 下拉框样式 */
  1477. ::v-deep
  1478. .guizhangzhidu
  1479. .el-select-dropdown
  1480. .el-select-dropdown__wrap
  1481. .el-scrollbar__view {
  1482. background-color: transparent !important;
  1483. text-indent: 1em !important;
  1484. }
  1485. ::v-deep .guizhangzhidu .el-select-dropdown__list {
  1486. background: white !important;
  1487. }
  1488. ::v-deep .el-table_2_column_13 .cell {
  1489. text-align: center !important;
  1490. }
  1491. .el-select-dropdown__item {
  1492. color: black !important;
  1493. }
  1494. ::v-deep .el-form-item__content .el-input__inner {
  1495. color: white !important;
  1496. }
  1497. ::v-deep .el-pagination {
  1498. margin-top: 10px;
  1499. position: absolute;
  1500. right: 5px;
  1501. }
  1502. ::v-deep .el-pager li.active {
  1503. background-color: #1d96ff;
  1504. color: white;
  1505. }
  1506. ::v-deep .el-pager .number {
  1507. background-color: #196299;
  1508. color: white;
  1509. }
  1510. ::v-deep .el-pagination .el-select .el-input .el-input__inner {
  1511. background-color: #196299 !important ;
  1512. }
  1513. ::v-deep .el-pagination__editor.el-input .el-input__inner {
  1514. background-color: #196299 !important ;
  1515. }
  1516. ::v-deep .btn-prev {
  1517. background-color: transparent;
  1518. color: white;
  1519. }
  1520. ::v-deep .btn-next {
  1521. background-color: transparent;
  1522. color: white;
  1523. }
  1524. .pagination-container {
  1525. background: #fff;
  1526. padding: 32px 16px;
  1527. }
  1528. .pagination-container.hidden {
  1529. display: none;
  1530. }
  1531. /* 调整输入框提示文字颜色 */
  1532. ::v-deep .vue-treeselect__placeholder {
  1533. color: #bdbdbd4f !important;
  1534. }
  1535. ::v-deep input::-webkit-input-placeholder {
  1536. color: #bdbdbd4f !important;
  1537. }
  1538. ::v-deep input:-moz-placeholder {
  1539. color: #bdbdbd4f !important;
  1540. }
  1541. .aa1 {
  1542. background-color: #1263aa !important;
  1543. color: #fff !important;
  1544. }
  1545. ::v-deep .el-dialog__footer .dialog-footer .el-button--btn {
  1546. padding-top: 00px !important;
  1547. }
  1548. /* .userAgree{
  1549. height: 600px;
  1550. overflow: auto;
  1551. } */
  1552. /*定义滚动条宽高及背景,宽高分别对应横竖滚动条的尺寸*/
  1553. .el-dialog__body::-webkit-scrollbar {
  1554. width: 14px;
  1555. /* height: 2px !important; */
  1556. background: #3d83b8;
  1557. }
  1558. /*定义滑块,内阴影及圆角*/
  1559. .el-dialog__body::-webkit-scrollbar-thumb {
  1560. /* border-radius: 20px; */
  1561. /* height: 1px;
  1562. width: 3px; */
  1563. background: rgba(144, 206, 252, 1);
  1564. }
  1565. /* 上一页样式 */
  1566. .gopage {
  1567. width: 60px;
  1568. height: 28px;
  1569. background: #f4f4f4;
  1570. color: #60627d;
  1571. border-radius: 14px 0px 0px 14px;
  1572. }
  1573. /* 下一页样式 */
  1574. .downpage {
  1575. width: 60px;
  1576. height: 28px;
  1577. background: #f4f4f4;
  1578. border-radius: 0px 14px 14px 0px;
  1579. }
  1580. .bg {
  1581. background: #1d96ff;
  1582. color: white;
  1583. }
  1584. /* 树形样式 */
  1585. ::v-deep .vue-treeselect__control {
  1586. background-color: #004d86;
  1587. width: 216px;
  1588. margin-right: 25px;
  1589. color: white;
  1590. }
  1591. .threeselects {
  1592. width: 216px;
  1593. margin-right: 22px;
  1594. /* color: white; */
  1595. }
  1596. ::v-deep .vue-treeselect__single-value{
  1597. color: white;
  1598. }
  1599. </style>