index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  1. <template>
  2. <div class="container">
  3. <!-- 搜索标题 -->
  4. <div class="searchTitle">
  5. <el-icon @click="goBack">
  6. <ArrowLeftBold />
  7. </el-icon>
  8. <div class="colLine"></div>
  9. <div class="searchTitle_text">“{{ searchText }}”的搜索结果</div>
  10. </div>
  11. <!-- 搜索选项 -->
  12. <div class="searchType">
  13. <div class="searchFor">
  14. <div class="search_title">搜索范围:</div>
  15. <el-tabs v-model="searchFor" class="demo-tabs" @tab-change="changeSearchFor">
  16. <el-tab-pane label="全部" name=""></el-tab-pane>
  17. <el-tab-pane label="公共" name="1"></el-tab-pane>
  18. <el-tab-pane label="部门" name="2"></el-tab-pane>
  19. <el-tab-pane label="个人" name="3"></el-tab-pane>
  20. </el-tabs>
  21. </div>
  22. <div class="line"></div>
  23. <div class="searchFor">
  24. <div class="search_title">分类:</div>
  25. <el-tabs v-model="searchType" class="demo-tabs" @tab-change="changeSearchType">
  26. <el-tab-pane label="全部" name="all"></el-tab-pane>
  27. <el-tab-pane label="文档" name="doc"></el-tab-pane>
  28. <el-tab-pane label="图片" name="img"></el-tab-pane>
  29. <el-tab-pane label="音频" name="audio"></el-tab-pane>
  30. <el-tab-pane label="视频" name="video"></el-tab-pane>
  31. <el-tab-pane label="压缩包" name="zip"></el-tab-pane>
  32. </el-tabs>
  33. </div>
  34. </div>
  35. <!-- 排序显示 -->
  36. <div class="statistics">
  37. <div class="left_box">
  38. <div class="dataNum">共查询到{{ total }}个相关结果</div>
  39. </div>
  40. <div class="right_box">
  41. <img src="@/assets/images/sort.png" @click="changeSort" v-if="isAsc == 'asc'" alt="" />
  42. <img src="@/assets/images/Frame_188.png" @click="changeSort" v-else alt="" />
  43. <img v-if="isList" src="@/assets/images/squre.png" alt="" @click="changeShow" />
  44. <img v-else src="@/assets/images/Frame_187.png" alt="" @click="changeShow" />
  45. </div>
  46. </div>
  47. <!-- 文件列表 -->
  48. <div class="fileList">
  49. <div>
  50. <div v-show="isList" style="height: calc(98vh - 220px);overflow-y: hidden;">
  51. <!-- 表格 -->
  52. <el-table :data="tableData" style="width: 100%;height:calc(98vh - 230px);" ref="container"
  53. @scroll="handleScroll" @row-click="clickRow">
  54. <el-table-column type="index" width="70" />
  55. <el-table-column label="名称" width="400">
  56. <template #default="scope">
  57. <div class="flie_name">
  58. <img class="table_icon" :src="setIcon(scope.row.fileType)" alt="" style="" />
  59. {{ scope.row.fileName }}
  60. </div>
  61. </template>
  62. </el-table-column>
  63. <el-table-column prop="space.spaceName" label="所属空间" width="300" />
  64. <el-table-column prop="createTime" label="时间" width="200" />
  65. <el-table-column prop="fileType" label="类型" width="200" />
  66. <el-table-column prop="fileSize" label="大小" width="200">
  67. <template #default="scope">
  68. <div>{{ formatFileSize(scope.row.fileSize) }}</div>
  69. </template>
  70. </el-table-column>
  71. <el-table-column prop="dir.dirPath" label="文件夹" width="200">
  72. <template #default="scope">
  73. <el-tooltip class="box-item" effect="dark" placement="top"
  74. :show-after="1000" :content="scope.row.dir?.dirPath">
  75. <div class="folder">
  76. {{ scope.row.dir ? scope.row.dir.dirPath : "" }}
  77. </div>
  78. </el-tooltip>
  79. </template>
  80. </el-table-column>
  81. </el-table>
  82. <!-- <div class="pageBox">
  83. <Pagination :total="total" :page="page" :limit="limit" @pagination="pagination"></Pagination>
  84. </div> -->
  85. </div>
  86. <div v-show="!isList">
  87. <!-- 平铺 -->
  88. <div class="tile_box" @scroll="handleScrollG">
  89. <div class="file_box" v-for="item in tableData" :key="item" @click="clickRow(item)">
  90. <img class="big_file_img" :src="setIcon(item.fileType)" alt="" />
  91. <el-tooltip
  92. class="box-item"
  93. effect="dark"
  94. :content="item.fileName "
  95. :show-after='1000'
  96. placement="bottom"
  97. >
  98. <span class="missing">{{ item.fileName }}</span>
  99. </el-tooltip>
  100. <!-- <span class="missing">{{ item.fileName }}</span> -->
  101. <!-- <span class="missingPass">{{ item.fileName }}</span> -->
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. <ImgPreview :previewData="previewData" :copyFileType="copyFileType" :showPreview="showPreview"
  109. @closeImgPreview="closeImgPreview"></ImgPreview>
  110. <div v-loading.fullscreen="loadingPreview" v-if="loadingPreview" class="lodingBox"></div>
  111. </template>
  112. <script setup>
  113. import { onMounted, ref, toRaw, inject, watch } from "vue";
  114. import { search } from "@/api/search/search.js";
  115. import { flieSearch } from "@/api/search/search.js";
  116. import { useRoute, useRouter, onBeforeRouteUpdate } from "vue-router";
  117. import Pagination from "@/components/Pagination/index.vue";
  118. import ImgPreview from '@/components/ImgPreview/ImgPreview.vue'
  119. import { canPreviewFile, rightMenuRole } from "@/utils/index.js"
  120. import { preview } from "@/api/common/common.js";
  121. import { ElMessageBox, ElMessage } from "element-plus";
  122. //---------------导入图片--------------------------
  123. import file_DOC from "@/assets/images/fileType/file_DOC.png";
  124. import file_pdf from "@/assets/images/fileType/file_pdf.png";
  125. import file_PPT from "@/assets/images/fileType/file_PPT.png";
  126. import file_TXT from "@/assets/images/fileType/file_TXT.png";
  127. import file_XLSX from "@/assets/images/fileType/file_XLSX.png";
  128. import file_pic from "@/assets/images/fileType/file_pic.png";
  129. import file_audio from "@/assets/images/fileType/file_audio.png";
  130. import file_video from "@/assets/images/fileType/file_video.png";
  131. import file_zip from "@/assets/images/fileType/file_zip.png";
  132. //----------------------------------------
  133. const searchFor = ref(""); //搜索范围
  134. const searchType = ref("all"); //搜索对象
  135. const fileTypes = ref()
  136. const checkState = ref(false); //勾选框状态
  137. const activeNames = ref(["folder", "file"]);
  138. const isList = ref(true); //控制显示方式
  139. const isContent = ref(false); //内容搜索
  140. // const total = ref(0); //数据总条数
  141. const searchText = ref(""); //搜索ipt的值
  142. const baseData = ref(); //搜索出的原始数据
  143. const isAsc = ref("asc");
  144. const router = useRouter(); //注册路由
  145. const route = useRoute(); //注册路由
  146. //---------分页--------------
  147. const total = ref(0);
  148. const page = ref(1);
  149. const limit = ref(2); //pagesize
  150. //---------------------------
  151. const container = ref(null)
  152. const historyParams = history.state.params
  153. const loadingPreview = ref(false)
  154. const showPreview = ref(false)//控制图片预览组件显示
  155. const previewData = ref()
  156. const copyFileType = ref()
  157. const reload = inject("reload");
  158. const addFileTab = inject("addFileTab");
  159. const clickPath = inject("clickPath");
  160. const canSceoll = ref(true)
  161. const tableData = ref([]);
  162. // 切换搜索范围
  163. const changeSearchFor = async(name) => {
  164. numnum = 1
  165. numG = 1
  166. const typeArr = setType(searchType.value);
  167. let baseDataObj = toRaw(baseData.value);
  168. fileTypes.value = ''
  169. if (name == 'all') {
  170. fileTypes.value = ''
  171. } else if(name == '1') {
  172. fileTypes.value = 1
  173. // tableData.value = toRaw(baseDataObj).filter(
  174. // (item) => item.space.spaceType == name && typeArr.includes(item.fileType)
  175. // );
  176. }else if(name == '2'){
  177. fileTypes.value = 2
  178. }else if(name == '3'){
  179. fileTypes.value = 3
  180. }
  181. if(isList.value){
  182. let res = await flieSearch({
  183. keyword:searchText.value,
  184. type:fileTypes.value,
  185. isAsc: isAsc.value,
  186. pageSize: 20,
  187. pageNum: 1,
  188. })
  189. total.value = res.total;
  190. tableData.value = res.rows
  191. baseData.value = res.rows
  192. }else{
  193. let res = await flieSearch({
  194. keyword:searchText.value,
  195. type:fileTypes.value,
  196. isAsc: isAsc.value,
  197. pageSize: 80,
  198. pageNum: numG,
  199. })
  200. total.value = res.total;
  201. tableData.value = res.rows
  202. baseData.value = res.rows
  203. }
  204. changeSearchType(searchType.value)
  205. };
  206. // 切换搜索分类
  207. const changeSearchType = (name) => {
  208. numnum = 1
  209. numG = 1
  210. let baseDataObj = toRaw(baseData.value);
  211. if (name == 'all') {
  212. tableData.value = baseDataObj
  213. } else {
  214. // 获取分类具体数据
  215. const typeArr = setType(name);
  216. // console.log(typeArr, '类型');
  217. tableData.value = toRaw(baseDataObj).filter((item) => {
  218. // console.log(item, '遍历');
  219. return typeArr.includes(item.fileType) && (item.space.spaceType == searchFor.value || searchFor.value =='');
  220. });
  221. // console.log(tableData.value, '数组');
  222. }
  223. };
  224. const changeShow = () => {
  225. isList.value = !isList.value;
  226. };
  227. const changeSort = async () => {
  228. numnum = 1
  229. numG = 1
  230. isAsc.value == "asc" ? (isAsc.value = "desc") : (isAsc.value = "asc");
  231. let query ={}
  232. if(isList.value){
  233. query = {
  234. keyword: searchText.value,
  235. isAsc: isAsc.value,
  236. type:fileTypes.value,
  237. orderByColumn: "createTime",
  238. pageSize: 20,
  239. pageNum: 1,
  240. };
  241. }else{
  242. query = {
  243. keyword: searchText.value,
  244. isAsc: isAsc.value,
  245. type:fileTypes.value,
  246. orderByColumn: "createTime",
  247. pageSize: 80,
  248. pageNum: 1,
  249. };
  250. }
  251. const res = await flieSearch(query);
  252. baseData.value = res.rows;
  253. tableData.value = res.rows;
  254. // changeSearchFor('');
  255. // console.log("res", res);
  256. };
  257. // 根据选项对数据处理,返回处理后的数据
  258. const fliterListData = (dataList) => {
  259. return dataList;
  260. };
  261. // 回退
  262. const goBack = () => {
  263. // router.back();
  264. // 跳到主页
  265. clickPath(null,{label: "首页",path: "/home"})
  266. };
  267. //分页
  268. const handleSizeChange = (val) => {
  269. limit.value = val;
  270. };
  271. const handleCurrentChange = (val) => {
  272. page.value = val;
  273. };
  274. const pagination = async (obj) => {
  275. isAsc.value == "asc" ? (isAsc.value = "desc") : (isAsc.value = "asc");
  276. const query = {
  277. keyword: searchText.value,
  278. isAsc: isAsc.value,
  279. page: obj.page,
  280. size: obj.limit,
  281. orderByColumn: "createTime",
  282. };
  283. const res = await flieSearch(query);
  284. baseData.value = res.rows;
  285. tableData.value = res.rows;
  286. changeSearchFor(searchFor.value);
  287. };
  288. // 点击预览事件
  289. const clickRow =async (row)=>{
  290. const typeArr = ['.png', '.jpg', '.jpeg', '.JPG','.PNG', '.mp3', '.mp4']
  291. // loadingPreview.value = true
  292. const filePreview = canPreviewFile(row.fileType)
  293. if (filePreview) {
  294. loadingPreview.value = false
  295. addFileTab(row, 0,0);
  296. } else if(typeArr.some(item=>item == row.fileType)) {
  297. const res = await preview(row.docId)
  298. copyFileType.value = row.fileType
  299. showPreview.value = true
  300. previewData.value = URL.createObjectURL(res)
  301. }else{
  302. ElMessage.error("该文件格式不支持预览!");
  303. }
  304. loadingPreview.value = false
  305. }
  306. //关闭图片预览事件
  307. const closeImgPreview = () => {
  308. // console.log('close');
  309. showPreview.value = false
  310. }
  311. // 设置图标
  312. const setIcon = (fileType) => {
  313. switch (fileType) {
  314. case ".docx":
  315. return file_DOC;
  316. break;
  317. case ".pdf":
  318. return file_pdf;
  319. break;
  320. case ".ppt":
  321. return file_PPT;
  322. break;
  323. case ".txt":
  324. return file_TXT;
  325. break;
  326. case ".xlsx":
  327. return file_XLSX;
  328. break;
  329. case ".csv":
  330. return file_XLSX;
  331. break;
  332. case ".png":
  333. return file_pic;
  334. break;
  335. case ".mp3":
  336. return file_audio;
  337. break;
  338. case ".mp4":
  339. return file_video;
  340. break;
  341. case ".zip":
  342. return file_zip;
  343. break;
  344. default:
  345. return file_DOC;
  346. break;
  347. }
  348. };
  349. // 设置分类
  350. const setType = (fileType) => {
  351. switch (fileType) {
  352. case "doc":
  353. return [".txt", ".ppt", ".pdf", ".docx", ".csv", ".wps", ".xls", '.pptxs', '.dll', '.pptx', '.doc'];
  354. break;
  355. case "img":
  356. return [".png",".PNG", ".jpg", ".jpeg"];
  357. break;
  358. case "audio":
  359. return [".mp3"];
  360. break;
  361. case "video":
  362. return [".mp4", '.qlv'];
  363. break;
  364. case "zip":
  365. return [".zip", ".rar", ".7z"];
  366. break;
  367. default:
  368. return [""];
  369. break;
  370. }
  371. };
  372. function formatFileSize(fileSize) {
  373. if (fileSize >= 1024 * 1024 * 1024) {
  374. // 大于等于1GB,显示GB
  375. return (fileSize / (1024 * 1024 * 1024)).toFixed(2) + "GB";
  376. } else if (fileSize >= 1024 * 1024) {
  377. // 大于等于1MB,显示MB
  378. return (fileSize / (1024 * 1024)).toFixed(2) + "MB";
  379. } else if (fileSize >= 1024) {
  380. // 大于等于1KB,显示KB
  381. return (fileSize / 1024).toFixed(2) + "KB";
  382. } else {
  383. // 小于1KB,显示字节
  384. return fileSize + "B";
  385. }
  386. }
  387. let numnum = 1
  388. let numG = 1
  389. async function handleScroll(e) {
  390. // console.log(e, '出发了');
  391. const tableContainer = e.target;
  392. if(!canSceoll.value) return
  393. const scrollPosition = tableContainer.scrollTop + tableContainer.clientHeight;
  394. const contentHeight = tableContainer.scrollHeight;
  395. if (scrollPosition + 150.0005 >= contentHeight) {
  396. canSceoll.value = false
  397. numnum++
  398. const query = {
  399. keyword: searchText.value,
  400. type:fileTypes.value,
  401. isAsc: isAsc.value,
  402. orderByColumn: "createTime",
  403. pageSize: 20,
  404. pageNum: numnum,
  405. };
  406. const res = await flieSearch(query);
  407. tableData.value = [...tableData.value, ...res.rows]
  408. if(tableData.value.length<total.value){
  409. setTimeout(() => {
  410. canSceoll.value = true
  411. }, 1000);
  412. }
  413. }
  414. }
  415. async function handleScrollG(e) {
  416. if(tableData.value.length >= total.value) return
  417. const tableContainer = e.target;
  418. const scrollPosition = tableContainer.scrollTop + tableContainer.clientHeight;
  419. const contentHeight = tableContainer.scrollHeight;
  420. // console.log(scrollPosition, contentHeight, '对比');
  421. if (scrollPosition + 0.40005 >= contentHeight) {
  422. numG++
  423. const query = {
  424. keyword: searchText.value,
  425. type:fileTypes.value,
  426. isAsc: isAsc.value,
  427. orderByColumn: "createTime",
  428. pageSize: 90,
  429. pageNum: numG,
  430. };
  431. const res = await flieSearch(query);
  432. tableData.value = [...tableData.value, ...res.rows]
  433. }
  434. }
  435. watch(() => isList.value, (newValue, oldValue) => {
  436. // console.log('editableTabs 发生改变了', newValue, oldValue);
  437. numG = 1
  438. if(!newValue){
  439. const query = {
  440. keyword: searchText.value,
  441. isAsc: isAsc.value,
  442. orderByColumn: "createTime",
  443. pageSize: 90,
  444. pageNum: numG,
  445. };
  446. flieSearch(query).then(res=>{
  447. baseData.value = [ ...res.rows]
  448. tableData.value = [ ...res.rows]
  449. });
  450. }
  451. });
  452. onMounted(() => {
  453. let antherContainer = container.value.$el.querySelector('.el-scrollbar__wrap')
  454. antherContainer.addEventListener('scroll', handleScroll);
  455. const JparData = history.state.clickRowId
  456. const parData = JSON.parse(JparData)
  457. searchText.value = parData.searchText;
  458. let searchData = parData.searchData;
  459. baseData.value = searchData.rows;
  460. tableData.value = searchData.rows;
  461. total.value = searchData.total;
  462. changeSearchFor('');
  463. });
  464. // onBeforeRouteUpdate((to, from) => {
  465. // console.log('to', to);
  466. // console.log('from', from);
  467. // })
  468. // watch(() => history, (newValue, oldValue) => {
  469. // console.log('history 发生改变了', newValue, oldValue);
  470. // }, {
  471. // immediate: true,
  472. // deep: true
  473. // });
  474. </script>
  475. <style lang="scss" scoped>
  476. .container {
  477. height: calc(98vh - 48px - 8px - 32px - 8px);
  478. background-color: #fff;
  479. border-radius: 4px;
  480. overflow: hidden;
  481. }
  482. .lodingBox {
  483. position: absolute;
  484. top: 0;
  485. left: 0;
  486. width: 100vh;
  487. height: 100vh;
  488. z-index: 10000000;
  489. }
  490. .searchTitle {
  491. width: 100%;
  492. height: 40px;
  493. padding-left: 8px;
  494. display: flex;
  495. align-items: center;
  496. .colLine {
  497. margin-left: 5px;
  498. height: 100%;
  499. border-right: 1px solid #c1cce3;
  500. }
  501. .searchTitle_text {
  502. font-size: 16px;
  503. font-weight: 400;
  504. line-height: 24px;
  505. margin-left: 16px;
  506. }
  507. }
  508. .searchType {
  509. width: 100%;
  510. height: 40px;
  511. box-sizing: border-box;
  512. background-color: #f5f7f9;
  513. border-top: 1px solid #c1cce3;
  514. border-bottom: 1px solid #c1cce3;
  515. padding-left: 16px;
  516. display: flex;
  517. align-items: center;
  518. .searchFor {
  519. height: 100%;
  520. display: flex;
  521. // align-items: center;
  522. .search_title {
  523. height: 100%;
  524. line-height: 40px;
  525. font-size: 14px;
  526. font-weight: 500;
  527. font-family: Inter-Medium;
  528. }
  529. }
  530. .line {
  531. width: 1px;
  532. height: 24px;
  533. border-left: 1px solid #c1cce3;
  534. margin: 0 16px;
  535. }
  536. }
  537. .statistics {
  538. width: 100%;
  539. height: 40px;
  540. // background-color: #ccc;
  541. padding-left: 16px;
  542. display: flex;
  543. justify-content: space-between;
  544. align-items: center;
  545. .left_box {
  546. display: flex;
  547. align-items: center;
  548. .dataNum {
  549. margin-left: 4px;
  550. font-size: 14px;
  551. font-weight: 400;
  552. }
  553. }
  554. .right_box {
  555. width: 50px;
  556. display: flex;
  557. justify-content: space-between;
  558. margin-right: 30px;
  559. img {
  560. cursor: pointer;
  561. }
  562. }
  563. }
  564. .fileList {
  565. height: 100%;
  566. .content_box {
  567. width: 100%;
  568. height: 100%;
  569. padding: 16px;
  570. .oneBox {
  571. width: 100%;
  572. height: 120px;
  573. border-bottom: 1px dashed #c1cce3;
  574. .fileName {
  575. font-size: 16px;
  576. color: #2e6bc8;
  577. text-decoration: underline;
  578. }
  579. .flieTime {
  580. font-size: 12px;
  581. font-weight: 400;
  582. color: #06286c;
  583. line-height: 20px;
  584. }
  585. .flieContent {
  586. width: 100%;
  587. font-size: 14px;
  588. color: #000000;
  589. font-weight: 400;
  590. line-height: 22px;
  591. display: -webkit-box;
  592. -webkit-box-orient: vertical;
  593. text-overflow: ellipsis;
  594. -webkit-line-clamp: 3; //例如超过3行显示省略号
  595. overflow: hidden;
  596. em {
  597. color: #dd2025;
  598. }
  599. }
  600. }
  601. }
  602. }
  603. //表格文本超出隐藏
  604. ::v-deep .flie_name,
  605. .folder {
  606. /*第一步: 溢出隐藏 */
  607. overflow: hidden;
  608. /* 第二步:让文本不会换行, 在同一行继续 */
  609. white-space: nowrap;
  610. /* 第三步:用省略号来代表未显示完的文本 */
  611. text-overflow: ellipsis;
  612. }
  613. // tag间距
  614. :deep(.el-tabs__item) {
  615. padding: 0 16px !important;
  616. color: #505870 !important;
  617. font-weight: 400 !important;
  618. }
  619. // tag选中颜色
  620. :deep(.el-tabs__item.is-active) {
  621. color: #2e6bc8 !important;
  622. font-weight: normal;
  623. }
  624. :deep(.el-tabs__active-bar) {
  625. background-color: #2e6bc8;
  626. }
  627. :deep(.el-table__inner-wrapper::before) {
  628. background-color: #fff !important;
  629. }
  630. :deep(.el-collapse,
  631. .el-collapse-item__wrap) {
  632. border: none;
  633. }
  634. .table_icon {
  635. height: 27px;
  636. width: 27px;
  637. vertical-align: middle;
  638. }
  639. :deep(.el-collapse-item__content) {
  640. padding-bottom: 0;
  641. }
  642. :deep(.el-collapse-item__header) {
  643. background-color: #ebeff6 !important;
  644. width: 100% !important;
  645. height: 24px !important;
  646. }
  647. :deep(.el-collapse-item__arrow ){
  648. position: relative;
  649. color: #2e6bc8;
  650. right: 97%;
  651. }
  652. :deep(.el-table td.el-table__cell ){
  653. border: none;
  654. font-size: 14px !important;
  655. font-weight: 400 !important;
  656. color: #000 !important;
  657. }
  658. :deep(.el-table__row) {
  659. height: 35px !important;
  660. }
  661. :deep(.el-table .el-table__header-wrapper th) {
  662. border-bottom: none;
  663. border-right: 1px solid #c1cce3;
  664. background-color: #fff !important;
  665. color: #505870;
  666. font-size: 14px;
  667. }
  668. .collapseItem_title {
  669. position: relative;
  670. left: 40px;
  671. color: #2e6bc8;
  672. font-family: Inter-Medium;
  673. font-size: 12px;
  674. }
  675. // 表格右边3个靠右对齐
  676. ::v-deep .el-table__header thead tr th {
  677. font-family: Inter-Medium;
  678. font-size: 14px;
  679. color: #505870;
  680. // text-align: right;
  681. }
  682. //平铺
  683. .tile_box {
  684. width: 100%;
  685. height: calc(98vh - 220px);
  686. display: flex;
  687. flex-wrap: wrap;
  688. overflow-y:auto ;
  689. align-items: flex-start;
  690. align-content: flex-start;
  691. .file_box {
  692. width: 116px;
  693. min-height: 138px;
  694. // border: 1px solid #000;
  695. display: flex;
  696. flex-direction: column;
  697. align-items: center;
  698. .big_file_img {
  699. width: 100px;
  700. height: 100px;
  701. }
  702. span {
  703. font-size: 14px;
  704. font-weight: 400;
  705. line-height: 22px;
  706. }
  707. }
  708. }
  709. .missing {
  710. width: 90px;
  711. white-space: nowrap;
  712. overflow: hidden;
  713. text-overflow: ellipsis
  714. }
  715. // .missing:hover~.missingPass {
  716. // display: block;
  717. // }
  718. .missingPass {
  719. display: none;
  720. width: 140px;
  721. background-color: black;
  722. border-radius: 5px;
  723. color: white;
  724. text-align: center;
  725. z-index: 30 important;
  726. margin-left: 25px;
  727. font-size: 14px;
  728. }
  729. // :deep(.cell) {
  730. // text-align: center;
  731. // }
  732. // :deep(.el-table td.el-table__cell div) {
  733. // text-align: center;
  734. // }
  735. </style>