DefaultPage.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029
  1. <template>
  2. <div class="main">
  3. <div class="topBox">
  4. <div class="upload" v-if="isSearch">
  5. <el-upload
  6. class="upload-show"
  7. :file-list="fileArr"
  8. :limit="1"
  9. :on-change="upBefore"
  10. :show-file-list="false"
  11. drag
  12. :http-request="onSuccess"
  13. multiple
  14. element-loading-text="上传中..."
  15. element-loading-background="rgba(255, 255, 255, 0.8)"
  16. v-loading="loadingUpload"
  17. >
  18. <img src="@/assets/images/newIndex/yunBlack.png" alt="" />
  19. <span class="text1">上传文件</span>
  20. <p class="text2">
  21. 将文件拖到此处或 <span class="blueT">选择文件</span>
  22. </p>
  23. </el-upload>
  24. <div class="right">
  25. <div class="line">|</div>
  26. <img
  27. src="@/assets/images/newIndex/scan.png"
  28. @click="scannerFile"
  29. class="scanImg"
  30. alt=""
  31. />
  32. </div>
  33. </div>
  34. <div class="search hoverColor" :class="{ showSearch: isSearch }">
  35. <input
  36. type="text"
  37. class="search_input"
  38. v-model="searchText"
  39. @keyup.enter="searchBtn"
  40. placeholder="输入关键词或文件名(≥2字)"
  41. />
  42. <div class="searchBtn" @click="searchBtn">
  43. <img src="@/assets/images/newIndex/search.png" alt="" />
  44. <span>全域瞬搜</span>
  45. </div>
  46. </div>
  47. </div>
  48. <div v-if="isSearch" class="searchBtm">
  49. <div class="highSearch">
  50. <div v-loading="highLoading" v-if="highLoading" class="lodingBox"></div>
  51. <div v-else class="mainBox">
  52. <div class="title">共查询到{{ props.hightDataTotal }}个相关结果</div>
  53. <div
  54. class="list"
  55. v-infinite-scroll="setScroll"
  56. infinite-scroll-distance="30"
  57. >
  58. <div
  59. class="oneBox"
  60. v-for="item in hightData"
  61. :key="item.id"
  62. @click="toFile(item.content.docInfo)"
  63. >
  64. <span class="fileName">{{ item.content.docInfo.fileName }}</span>
  65. <div class="flieTime">
  66. <span>创建时间:</span>
  67. <span>{{ item.content.docInfo.createTime }}</span>
  68. <div class="position">
  69. <span>文件位置:</span>
  70. <span>{{ item.content.docInfo.dir.dirPath }}</span>
  71. </div>
  72. </div>
  73. <div
  74. class="flieContent"
  75. v-for="par in item.highlightFields.content"
  76. :key="par"
  77. v-html="par"
  78. ></div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="allSearch">
  84. <div v-loading="allLoading" v-if="allLoading" class="lodingBox"></div>
  85. <div v-else>
  86. <div class="title"><span>文件名匹配结果</span></div>
  87. <div class="num">共查询到{{ props.allDataTotal }}个相关结果</div>
  88. <el-table
  89. :data="allData"
  90. style="width: 100%"
  91. ref="container"
  92. height="584"
  93. scrollbar-always-on
  94. v-el-table-infinite-scroll="allScroll"
  95. :infinite-scroll-distance="10"
  96. @row-click="toFile"
  97. >
  98. <el-table-column type="index" width="70" />
  99. <el-table-column label="名称" width="200">
  100. <template #default="scope">
  101. <div class="flie_name">
  102. <img
  103. class="table_icon"
  104. :src="setIcon(scope.row.fileType)"
  105. alt=""
  106. style=""
  107. />
  108. <span v-html="scope.row.fileName"></span>
  109. </div>
  110. </template>
  111. </el-table-column>
  112. <el-table-column prop="dir.dirPath" label="所属空间" width="210" />
  113. <el-table-column prop="fileType" label="类型" width="100" />
  114. <el-table-column prop="createTime" label="时间" width="200" />
  115. <el-table-column prop="fileSize" label="大小" width="100">
  116. <template #default="scope">
  117. <div>{{ formatFileSize(scope.row.fileSize) }}</div>
  118. </template>
  119. </el-table-column>
  120. </el-table>
  121. </div>
  122. </div>
  123. </div>
  124. <div v-else class="btmBox">
  125. <div class="upFile" @paste="copyFile">
  126. <el-upload
  127. class="upload-demo"
  128. :file-list="fileArr"
  129. :limit="1"
  130. :on-change="upBefore"
  131. :show-file-list="false"
  132. drag
  133. :http-request="onSuccess"
  134. multiple
  135. element-loading-text="上传中..."
  136. element-loading-background="rgba(255, 255, 255, 0.8)"
  137. v-loading="loadingUpload"
  138. >
  139. <img
  140. src="@/assets/images/newIndex/upFolderLogo.png"
  141. class="upImg"
  142. alt=""
  143. />
  144. <span class="text1">上传你的文件</span>
  145. </el-upload>
  146. <p class="text2">将文件拖到此处或点击选择文件</p>
  147. <div class="line"></div>
  148. <img
  149. src="@/assets/images/newIndex/scan.png"
  150. @click="scannerFile"
  151. class="scanImg"
  152. alt=""
  153. />
  154. <div class="text3">扫描文件</div>
  155. </div>
  156. <div class="recent">
  157. <div class="top">
  158. <span>最近文件</span>
  159. </div>
  160. <div class="list">
  161. <div
  162. v-for="item in props.tableFileData"
  163. :key="item"
  164. @click="toFile(item)"
  165. class="oneBox"
  166. >
  167. <div class="imgBox">
  168. <img :src="setImg(item == null ? '' : item.fileType)" alt="" />
  169. </div>
  170. <div class="rightBox">
  171. <div class="text">{{ item.fileName }}</div>
  172. <div class="time">{{ item.createTime }}</div>
  173. </div>
  174. <img
  175. class="openArrow"
  176. src="@/assets/images/newIndex/CaretRight.png"
  177. alt=""
  178. />
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. <ImgPreview
  185. :previewData="previewData"
  186. :copyFileType="copyFileType"
  187. :showPreview="showPreview"
  188. @closeImgPreview="closeImgPreview"
  189. ></ImgPreview>
  190. <!-- 扫描文档 -->
  191. <ScanFile
  192. v-if="openScan"
  193. :openScan="openScan"
  194. :scannerFiles="scannerFiles"
  195. @saveScanFile="saveScanFile"
  196. @closeOpen="closeOpen"
  197. ></ScanFile>
  198. <!-- 可用扫描仪信息 -->
  199. <div>
  200. <el-dialog v-model="checkScanner" title="扫描仪" width="30%">
  201. <div
  202. v-for="item in scannerList"
  203. :key="item.scannerId"
  204. @click="checkScanFn(item)"
  205. id="Onescan"
  206. :class="{ checkScan: item.scannerId == checkScanId }"
  207. >
  208. <img src="@/assets/images/scanImg.png" alt="" />
  209. {{ item.scannerName }}
  210. </div>
  211. <template #footer>
  212. <span class="dialog-footer">
  213. <el-button @click="closeCheckScanner">取消</el-button>
  214. <el-button type="primary" @click="sureScaner">确认</el-button>
  215. </span>
  216. </template>
  217. </el-dialog>
  218. </div>
  219. <!-- 扫描文件移动到 -->
  220. <MoveTo
  221. v-if="openScanMove"
  222. :spaceType="3"
  223. :scanFileArr="scanFileArr"
  224. :thisFolder="thisFolder"
  225. :openScanMove="openScanMove"
  226. :spaceId="spaceId"
  227. @closeOpenScanMove="closeOpenScanMove"
  228. ></MoveTo>
  229. <div
  230. v-loading.fullscreen="loadingPreview"
  231. v-if="loadingPreview"
  232. class="lodingBox"
  233. ></div>
  234. </template>
  235. <script setup>
  236. import { onMounted, ref, toRaw, inject, watchEffect } from "vue";
  237. import { setIcon, canPreviewFile } from "@/utils/index.js";
  238. import { preview } from "@/api/common/common.js";
  239. import { ElMessage, ElLoading, ElMessageBox } from "element-plus";
  240. import ImgPreview from "@/components/ImgPreview/ImgPreview.vue";
  241. import { getConfigKey } from "@/api/system/config.js";
  242. import ScanFile from "@/components/ScanFile/ScanFile.vue";
  243. import MoveTo from "@/components/MoveTo/MoveTo.vue";
  244. import myfile from "@/api/myfile/myfile";
  245. import { listInfo, selectInfo, getFileByScanerId } from "@/api/scanner/info.js";
  246. import documents from "@/api/document/document";
  247. import uploadApi from "@/api/upload/upload";
  248. import bus from "@/utils/bus.js";
  249. import { default as vElTableInfiniteScroll } from "el-table-infinite-scroll";
  250. const copyFileType = ref();
  251. const previewData = ref();
  252. const loadingPreview = ref(false);
  253. const showPreview = ref(false);
  254. let fileArr = ref([]);
  255. const useSpace = ref();
  256. let fileBig = ref(0);
  257. const allSpace = ref();
  258. const maxFileSize = ref(); //能上传的最大size
  259. const loadingUpload = ref(false);
  260. const topDirId = ref(); //我的文件顶层的目录id
  261. const topSpaceId = ref(); //我的文件顶层的目录id
  262. const scannerList = ref(); // 扫描仪数据
  263. const checkScanId = ref(); // 选中的scan的id
  264. const checkScanner = ref(false); //显示扫描仪选择框
  265. const scannerFiles = ref([]); //选择的扫描仪的文件
  266. const openScanMove = ref(false);
  267. const openScan = ref(false); //控制扫描文档显示
  268. const scanFileArr = ref([]); //认领的扫描文件数组
  269. const isSearch = ref(props.showSearch);
  270. const searchText = ref(); // 搜索内容
  271. const hightData = ref([]); // 高级搜索数据
  272. const allData = ref([]); // 全域搜索数据
  273. const canSearch = ref(true);
  274. const allLoading = ref(false);
  275. const highLoading = ref(false);
  276. const highPage = ref(1);
  277. const allPage = ref(1);
  278. const highEnd = ref(false)
  279. const allEnd = ref(false)
  280. const emit = defineEmits([
  281. "openMaxmin",
  282. "changeSearch",
  283. "highSearch",
  284. "allSearch",
  285. ]);
  286. const props = defineProps({
  287. showSearch: {
  288. type: Boolean,
  289. default: false,
  290. },
  291. hightData: {
  292. type: Array,
  293. default: () => [],
  294. },
  295. allData: {
  296. type: Array,
  297. default: () => [],
  298. },
  299. hightDataTotal: {
  300. type: Number,
  301. default: 0,
  302. },
  303. allDataTotal: {
  304. type: Number,
  305. default: 0,
  306. },
  307. highSearching: {
  308. type: Boolean,
  309. default: false,
  310. },
  311. allSearching: {
  312. type: Boolean,
  313. default: false,
  314. },
  315. tableFileData: {
  316. type: Array,
  317. default: () => [],
  318. },
  319. highEnd: {
  320. type: Boolean,
  321. default: false,
  322. },
  323. allEnd: {
  324. type: Boolean,
  325. default: false,
  326. },
  327. });
  328. //搜索事件
  329. const searchBtn = () => {
  330. // console.log("searchText", searchText.value);
  331. if (!canSearch.value) {
  332. return;
  333. } else {
  334. canSearch.value = false;
  335. setTimeout(() => {
  336. canSearch.value = true;
  337. }, 3000);
  338. }
  339. if (!searchText.value) {
  340. ElMessage({
  341. message: "请输入关键字",
  342. type: "error",
  343. });
  344. return;
  345. }
  346. highPage.value = 1;
  347. allPage.value = 1;
  348. emit("changeSearch", true, searchText.value);
  349. };
  350. // 打开最近文件
  351. const toFile = async (row) => {
  352. copyFileType.value = row.fileType;
  353. // console.log("row", row);
  354. loadingPreview.value = true;
  355. const filePreview = canPreviewFile(row.fileType);
  356. if (filePreview) {
  357. loadingPreview.value = false;
  358. emit(
  359. "openMaxmin",
  360. row.fileName,
  361. `${window.location.origin}/fileEdit?clickRowId=${row.docId}&canEdit=0&canCopy=0&history=0&fileId=0`
  362. );
  363. } else {
  364. const res = await preview(row.docId);
  365. showPreview.value = true;
  366. previewData.value = URL.createObjectURL(res);
  367. loadingPreview.value = false;
  368. }
  369. };
  370. // 高级搜索触底加载
  371. const setScroll = async () => {
  372. if (highEnd.value) return;
  373. highPage.value++;
  374. emit("highSearch", highPage.value);
  375. };
  376. // all搜索触底加载
  377. const allScroll = async () => {
  378. if (allEnd.value)
  379. return;
  380. allPage.value++;
  381. emit("allSearch", allPage.value);
  382. };
  383. // 设置icon
  384. const setImg = (type) => {
  385. return setIcon(type);
  386. };
  387. //关闭图片预览事件
  388. const closeImgPreview = () => {
  389. // console.log('close');
  390. showPreview.value = false;
  391. };
  392. // 限制上传文件大小
  393. const upBefore = (file, files) => {
  394. const maxSize = (maxFileSize.value - 0) * 1024 * 1024;
  395. // console.log('maxSize',maxSize);
  396. if (file.size > maxSize) {
  397. files.pop();
  398. ElMessage({
  399. message:
  400. file.name + "上传失败,上传文件大小最大为" + maxFileSize.value + "M",
  401. type: "error",
  402. });
  403. } else {
  404. fileBig.value = file.size + fileBig.value;
  405. // fileArr.value.push(file.raw)
  406. }
  407. // console.log('filesend',files);
  408. };
  409. // 我的文件的空间信息
  410. function getSpaceList() {
  411. myfile.fileType(3).then((res) => {
  412. useSpace.value = res.data.usedCap;
  413. allSpace.value = res.data.spaceCap;
  414. });
  415. }
  416. //获取我的文件顶层的目录id
  417. const getDirId = () => {
  418. documents.getTop(3).then((res) => {
  419. topDirId.value = res.dirId;
  420. topSpaceId.value = res.spaceId;
  421. });
  422. };
  423. function onSuccess(files, val) {
  424. // console.log('suFiles',files);
  425. const maxSize = (maxFileSize.value - 0) * 1024 * 1024;
  426. if (files.file.size < maxSize) {
  427. fileArr.value.push(files.file);
  428. }
  429. sureUpload();
  430. }
  431. // 确认上传
  432. function sureUpload() {
  433. loadingUpload.value = true;
  434. if (
  435. useSpace.value * 1024 * 1024 + fileBig.value / 1024 >
  436. allSpace.value * 1024 * 1024
  437. ) {
  438. ElMessage({
  439. message: "超过最大容量,请联系管理员扩容",
  440. type: "error",
  441. });
  442. loadingUpload.value = false;
  443. return;
  444. } else {
  445. if (fileArr.value.length > 0) {
  446. // console.log('fileArr',fileArr.value);
  447. let form = new FormData();
  448. for (var i = 0; i < fileArr.value.length; i++) {
  449. form.append("files", fileArr.value[i]);
  450. }
  451. form.append("spaceId", topSpaceId.value);
  452. form.append("dirId", topDirId.value);
  453. // console.error(fileArr.value);
  454. uploadApi
  455. .uploadFileMany(form)
  456. .then((res) => {
  457. if (res.code === 200) {
  458. ElMessage({
  459. message: "上传文件成功",
  460. type: "success",
  461. });
  462. // getAllTop()
  463. refreshFile();
  464. uploadModal.value = false;
  465. loadingUpload.value = false;
  466. fileArr.value = [];
  467. fileBig.value = 0;
  468. }
  469. })
  470. .catch((err) => {
  471. loadingUpload.value = false;
  472. fileArr.value = [];
  473. });
  474. } else {
  475. loadingUpload.value = false;
  476. return ElMessage({ message: "请选择文件", type: "error" });
  477. }
  478. }
  479. }
  480. //获取扫描仪列表
  481. const scannerFile = async () => {
  482. const res = await selectInfo();
  483. scannerList.value = res.rows;
  484. checkScanner.value = true;
  485. checkScanId.value = null;
  486. // console.log('scanner',res);
  487. };
  488. // 选择扫描仪
  489. const checkScanFn = (item) => {
  490. checkScanId.value = item.scannerId;
  491. };
  492. // 确认选择扫描仪 获取扫描仪下文件列表
  493. const sureScaner = async () => {
  494. if (!checkScanId.value) return;
  495. const res = await getFileByScanerId(checkScanId.value);
  496. // console.log("sureScanerres", res);
  497. scannerFiles.value = res.data;
  498. checkScanner.value = false;
  499. openScan.value = true;
  500. };
  501. // 关闭窗口
  502. const closeCheckScanner = () => {
  503. checkScanner.value = false;
  504. };
  505. const closeOpen = () => {
  506. openScan.value = false;
  507. };
  508. // 移动到事件
  509. const saveScanFile = (arr) => {
  510. // console.log("arr", arr);
  511. openScan.value = false;
  512. scanFileArr.value = arr;
  513. openScanMove.value = true;
  514. };
  515. // 关闭窗口
  516. const closeOpenScanMove = () => {
  517. openScanMove.value = false;
  518. // refreshFile();
  519. };
  520. //粘贴文件上传
  521. const copyFile = (event) => {
  522. const items = (event.clipboardData || window.clipboardData).items;
  523. // console.log("event", event);
  524. let file = null;
  525. if (!items || items.length === 0) {
  526. ElMessage({
  527. message: "请选当前浏览器不支持本地或请打开图片再复制择文件",
  528. type: "error",
  529. });
  530. return;
  531. }
  532. // // 搜索剪切板items
  533. // for (let i = 0; i < items.length; i++) {
  534. // if (items[i].type.indexOf("image") !== -1) {
  535. // file = items[i].getAsFile();
  536. // break;
  537. // }
  538. // }
  539. };
  540. function formatFileSize(fileSize) {
  541. if (fileSize >= 1024 * 1024 * 1024) {
  542. // 大于等于1GB,显示GB
  543. return (fileSize / (1024 * 1024 * 1024)).toFixed(2) + "GB";
  544. } else if (fileSize >= 1024 * 1024) {
  545. // 大于等于1MB,显示MB
  546. return (fileSize / (1024 * 1024)).toFixed(2) + "MB";
  547. } else if (fileSize >= 1024) {
  548. // 大于等于1KB,显示KB
  549. return (fileSize / 1024).toFixed(2) + "KB";
  550. } else {
  551. // 小于1KB,显示字节
  552. return fileSize + "B";
  553. }
  554. }
  555. watchEffect(() => {
  556. if (props.showSearch) {
  557. isSearch.value = true;
  558. } else {
  559. isSearch.value = false;
  560. }
  561. });
  562. watch(
  563. () => props.hightData,
  564. (newValue, oldValue) => {
  565. // console.log('iFrameData 发生改变了', newValue, oldValue);
  566. hightData.value = newValue;
  567. },
  568. {
  569. immediate: true,
  570. deep: true,
  571. }
  572. );
  573. watch(
  574. () => props.allData,
  575. (newValue, oldValue) => {
  576. // console.log('iFrameData 发生改变了', newValue, oldValue);
  577. allData.value = newValue;
  578. },
  579. {
  580. immediate: true,
  581. deep: true,
  582. }
  583. );
  584. watch(
  585. () => props.highSearching,
  586. (newValue, oldValue) => {
  587. highLoading.value = newValue;
  588. },
  589. {
  590. immediate: true,
  591. deep: true,
  592. }
  593. );
  594. watch(
  595. () => props.allSearching,
  596. (newValue, oldValue) => {
  597. allLoading.value = newValue;
  598. },
  599. {
  600. immediate: true,
  601. deep: true,
  602. }
  603. );
  604. watch(
  605. () => props.highEnd,
  606. (newValue, oldValue) => {
  607. highEnd.value = newValue;
  608. },
  609. {
  610. immediate: true,
  611. deep: true,
  612. }
  613. );
  614. watch(
  615. () => props.allEnd,
  616. (newValue, oldValue) => {
  617. allEnd.value = newValue;
  618. },
  619. {
  620. immediate: true,
  621. deep: true,
  622. }
  623. );
  624. onMounted(() => {
  625. getSpaceList();
  626. getDirId();
  627. getConfigKey("file.size.limit").then((response) => {
  628. // console.log('response',response);
  629. maxFileSize.value = response.msg;
  630. });
  631. });
  632. </script>
  633. <style lang="scss" scoped>
  634. .main {
  635. width: 100%;
  636. height: calc(100vh - 160px);
  637. display: flex;
  638. padding: 0 16px;
  639. flex-direction: column;
  640. justify-content: center;
  641. align-items: center;
  642. }
  643. .topBox {
  644. width: 100%;
  645. display: flex;
  646. justify-content: center;
  647. .upload {
  648. width: 448px;
  649. height: 64px;
  650. border-radius: 86px 86px 86px 86px;
  651. background-color: #fff;
  652. margin-right: 16px;
  653. padding: 0 24px;
  654. display: flex;
  655. align-items: center;
  656. justify-content: space-between;
  657. .right {
  658. margin-top: 12px;
  659. width: 50px;
  660. display: flex;
  661. justify-content: space-between;
  662. align-items: center;
  663. .line {
  664. height: 100%;
  665. width: 1px;
  666. color: #dbdbdb;
  667. line-height: 40px;
  668. }
  669. .scanImg {
  670. width: 32px;
  671. height: 32px;
  672. cursor: pointer;
  673. }
  674. }
  675. img {
  676. width: 40px;
  677. height: 40px;
  678. }
  679. .text1 {
  680. margin-left: 8px;
  681. font-weight: bold;
  682. font-size: 18px;
  683. color: #030102;
  684. }
  685. .text2 {
  686. margin-left: 24px;
  687. font-weight: 400;
  688. font-size: 16px;
  689. color: #7c808d;
  690. .blueT {
  691. font-weight: 500;
  692. font-size: 16px;
  693. color: #2e8bf6;
  694. text-decoration-line: underline;
  695. }
  696. }
  697. .upload-show {
  698. width: 100px;
  699. height: 40px;
  700. }
  701. :deep(.el-upload) {
  702. width: 350px !important;
  703. display: flex !important;
  704. align-items: center !important;
  705. // height: 40px !important;
  706. }
  707. :deep(.el-upload-dragger) {
  708. padding: 0;
  709. border: none;
  710. display: flex;
  711. justify-content: flex-start !important;
  712. align-items: center !important;
  713. flex-direction: row !important;
  714. }
  715. }
  716. }
  717. .search {
  718. width: 1232px;
  719. // width: 600px;
  720. height: 64px;
  721. background-color: #2e8bf6;
  722. border-radius: 86px 86px 86px 86px;
  723. display: flex;
  724. justify-content: space-between;
  725. padding-right: 24px;
  726. .search_input {
  727. width: 1080px;
  728. height: 100%;
  729. border: none;
  730. outline: none;
  731. background-color: #fff;
  732. padding-left: 20px;
  733. border-radius: 86px 86px 86px 86px;
  734. }
  735. .searchBtn {
  736. color: #fff;
  737. font-size: 18px;
  738. cursor: pointer;
  739. display: flex;
  740. justify-content: center;
  741. align-items: center;
  742. span {
  743. margin-left: 8px;
  744. }
  745. }
  746. }
  747. .showSearch {
  748. width: 1424px !important;
  749. .search_input {
  750. width: 1272px !important;
  751. }
  752. }
  753. // 主页
  754. .btmBox {
  755. margin-top: 16px;
  756. width: 1232px;
  757. height: 624px;
  758. display: flex;
  759. justify-content: space-between;
  760. .upFile {
  761. width: 494px;
  762. height: 100%;
  763. background-color: #fff;
  764. border-radius: 16px 16px 16px 16px;
  765. display: flex;
  766. flex-direction: column;
  767. align-items: center;
  768. justify-content: center;
  769. .upImg {
  770. width: 194px;
  771. height: 128px;
  772. }
  773. .text1 {
  774. font-style: 18px;
  775. color: #2e8bf6;
  776. font-weight: bold;
  777. margin-top: 16px;
  778. margin-bottom: 8px;
  779. }
  780. .text2 {
  781. font-weight: 400;
  782. font-size: 16px;
  783. color: #7c808d;
  784. span {
  785. font-weight: 500;
  786. font-size: 16px;
  787. color: #2e8bf6;
  788. text-decoration-line: underline;
  789. }
  790. }
  791. .text3 {
  792. font-weight: 400;
  793. font-size: 14px;
  794. color: #7c808d;
  795. margin-top: 8px;
  796. }
  797. .line {
  798. margin-top: 16px;
  799. width: 124px;
  800. height: 1px;
  801. border-top: 1px solid #dbdbdb;
  802. }
  803. .scanImg {
  804. width: 32px;
  805. height: 32px;
  806. margin-top: 16px;
  807. cursor: pointer;
  808. }
  809. }
  810. .recent {
  811. width: 722px;
  812. height: 100%;
  813. background-color: #fff;
  814. border-radius: 16px 16px 16px 16px;
  815. padding: 24px;
  816. .top {
  817. width: 100%;
  818. height: 42px;
  819. border-bottom: 1px solid #dbdbdb;
  820. span {
  821. font-weight: bold;
  822. font-size: 18px;
  823. color: #030102;
  824. }
  825. }
  826. .list {
  827. width: 100%;
  828. height: calc(624px - 42px - 1px - 24px);
  829. overflow-y: auto;
  830. // padding-top: 12px;
  831. box-sizing: border-box;
  832. .oneBox {
  833. width: 100%;
  834. height: 60px;
  835. padding: 8px 22px;
  836. box-sizing: border-box;
  837. border-radius: 12px 12px 12px 12px;
  838. display: flex;
  839. align-items: center;
  840. .imgBox {
  841. width: 44px;
  842. height: 44px;
  843. border-radius: 8px 8px 8px 8px;
  844. border: 1px solid #d0d6e6;
  845. display: flex;
  846. justify-content: center;
  847. align-items: center;
  848. img {
  849. width: 32px;
  850. height: 32px;
  851. }
  852. }
  853. .rightBox {
  854. margin-left: 12px;
  855. width: calc(100% - 44px - 12px);
  856. display: flex;
  857. flex-direction: column;
  858. justify-content: space-between;
  859. .text {
  860. font-weight: bold;
  861. font-size: 16px;
  862. color: #030102;
  863. }
  864. .time {
  865. font-weight: 500;
  866. font-size: 12px;
  867. color: #7c808d;
  868. }
  869. }
  870. .openArrow {
  871. width: 20px;
  872. height: 20px;
  873. }
  874. &:hover {
  875. background: #f6f6f6;
  876. .imgBox {
  877. border: 1px solid #2e8bf6;
  878. }
  879. }
  880. }
  881. }
  882. }
  883. }
  884. // 搜索结果页面
  885. .searchBtm {
  886. width: 100%;
  887. height: 699px;
  888. margin-top: 16px;
  889. display: flex;
  890. justify-content: space-between;
  891. .highSearch {
  892. width: 936px;
  893. height: 699px;
  894. border-radius: 16px 16px 16px 16px;
  895. background: #ffffff;
  896. padding: 24px;
  897. .mainBox {
  898. width: 100%;
  899. height: 100%;
  900. }
  901. .title {
  902. width: 100%;
  903. height: 22px;
  904. font-weight: 400;
  905. font-size: 14px;
  906. line-height: 22px;
  907. }
  908. .list {
  909. margin-top: 12px;
  910. height: calc(100% - 48px - 12px);
  911. overflow-y: auto;
  912. .oneBox {
  913. width: 100%;
  914. // height: 120px;
  915. border-bottom: 1px dashed #c1cce3;
  916. padding-bottom: 16px;
  917. padding-top: 16px;
  918. .fileName {
  919. font-size: 16px;
  920. color: #2e6bc8;
  921. text-decoration: underline;
  922. font-family: Inter-SemiBold;
  923. cursor: pointer;
  924. }
  925. .flieTime {
  926. font-size: 12px;
  927. font-weight: 400;
  928. color: #7c808d;
  929. // line-height: 20px;
  930. vertical-align: middle;
  931. display: flex;
  932. align-items: center;
  933. margin: 4px 0;
  934. span {
  935. margin-left: 4px;
  936. }
  937. }
  938. .flieContent {
  939. width: 100%;
  940. font-size: 14px;
  941. color: #000000;
  942. font-weight: 400;
  943. line-height: 22px;
  944. display: -webkit-box;
  945. -webkit-box-orient: vertical;
  946. text-overflow: ellipsis;
  947. -webkit-line-clamp: 3; //超过3行显示省略号
  948. overflow: hidden;
  949. }
  950. }
  951. }
  952. }
  953. .allSearch {
  954. width: 936px;
  955. height: 699px;
  956. border-radius: 16px 16px 16px 16px;
  957. background: #ffffff;
  958. padding: 24px;
  959. .title {
  960. width: 100%;
  961. height: 42px;
  962. border-bottom: 1px solid #dbdbdb;
  963. span {
  964. font-weight: bold;
  965. font-size: 18px;
  966. color: #030102;
  967. }
  968. }
  969. .num {
  970. font-size: 14px;
  971. font-weight: 400;
  972. color: #555d72;
  973. margin-top: 12px;
  974. }
  975. .table_icon {
  976. height: 27px;
  977. width: 27px;
  978. vertical-align: middle;
  979. }
  980. //表格文本超出隐藏
  981. :deep(.flie_name, .folder) {
  982. /*第一步: 溢出隐藏 */
  983. overflow: hidden;
  984. /* 第二步:让文本不会换行, 在同一行继续 */
  985. white-space: nowrap;
  986. /* 第三步:用省略号来代表未显示完的文本 */
  987. text-overflow: ellipsis;
  988. }
  989. }
  990. }
  991. .lodingBox {
  992. position: relative;
  993. width: 100%;
  994. height: 100%;
  995. z-index: 10000000;
  996. }
  997. .checkScan {
  998. background-color: #f5f7f9;
  999. }
  1000. #Onescan {
  1001. height: 48px;
  1002. line-height: 48px;
  1003. font-size: 14px;
  1004. display: flex;
  1005. align-items: center;
  1006. }
  1007. ::v-deep .el-upload-dragger {
  1008. display: flex;
  1009. flex-direction: column;
  1010. justify-content: center;
  1011. }
  1012. //关键字背景色
  1013. :deep(em) {
  1014. background: #fff0ba !important;
  1015. }
  1016. .hoverColor {
  1017. &:hover {
  1018. background-color: #236ec3;
  1019. }
  1020. }
  1021. </style>