index.vue 43 KB

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