MyFile.vue 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480
  1. <template>
  2. <div>
  3. <div class="bigBox">
  4. <div class="settingBox">
  5. <!-- 设置盒子顶部搜索 -->
  6. <div class="topSearch">
  7. <div style="position: relative;">
  8. <el-input v-model="searchFire" class="searchFire" size="large" placeholder="搜索文件" />
  9. <el-icon style="color: gray;display: inline-block;position: absolute;top: 8px;right: 5px;">
  10. <Search />
  11. </el-icon>
  12. </div>
  13. <div>
  14. <el-icon style="font-size: 24px;" @click="createNewFile">
  15. <Plus />
  16. </el-icon>
  17. </div>
  18. </div>
  19. <!-- 方块点击盒子 -->
  20. <div
  21. style="display: flex;justify-content: flex-start;align-items: flex-start;flex-wrap: wrap;height: 80vh;align-content: flex-start;overflow-y: auto;">
  22. <!-- v-for盒子 -->
  23. <template v-for="(item, index) in fileMenu">
  24. <div class="setBox" @click="changeFile(item, index)">
  25. <el-dropdown trigger="click" class="selectChe">
  26. <span class="el-dropdown-link">
  27. ...
  28. </span>
  29. <template #dropdown>
  30. <el-dropdown-menu>
  31. <el-dropdown-item @click="restName(item, index)">重命名</el-dropdown-item>
  32. <el-dropdown-item @click="delName(item, index)">删除</el-dropdown-item>
  33. </el-dropdown-menu>
  34. </template>
  35. </el-dropdown>
  36. <img src="../../assets/images/fileStyle.png" style="width: 72px;height: 72px;">
  37. <p class="ellipsis-text" v-if="selectedBox !== index">{{ item.dirName }}</p>
  38. <el-input v-else v-model="newName" @blur="nameChange(item, index)"></el-input>
  39. </div>
  40. </template>
  41. </div>
  42. <div>
  43. <p>
  44. <span style="margin-left: 5px;">{{ useSpace ? useSpace + 'G' : '未能找到已使用空间' }}/{{ allSpace ?
  45. allSpace
  46. * 1024 + 'G' : '未能找到总空间' }}</span>
  47. <span style="margin-left: 5px;font-size: 12px;color: blue;cursor: pointer;"
  48. @click="askApply">申请扩容</span>
  49. </p>
  50. <el-progress style="margin-left: 8px;" :percentage="percent()" />
  51. </div>
  52. </div>
  53. <!-- 右侧大盒子 -->
  54. <div class="mesBox">
  55. <!-- 功能盒子 -->
  56. <div class="useBox">
  57. <!-- table切换 -->
  58. <div style="width: 100%;height: 24px;background-color: #7084B4;line-height: 20px;">
  59. <template v-for="(item, index) in menuList">
  60. <span @click="tableChange(item, index)"
  61. :class="['tables', { tableLis: selectedIndex === index }]">
  62. {{ item.name }}
  63. <img v-if="selectedIndex === index ? true : false"
  64. style="position: absolute;top: 4px;right: 4px;" src="../../assets/images/close.png"
  65. @click="shotdown(item)">
  66. </span>
  67. </template>
  68. </div>
  69. <!-- 众多功能 -->
  70. <div class="manyUse">
  71. <div
  72. style="display: flex;width: 82px;height: 32px;justify-content: flex-start;align-items: center;">
  73. <div style="margin-left: 5px;">
  74. <el-icon
  75. style="background-color: #7084B4;width: 24px;height: 24px;border-radius: 50%;color: white;">
  76. <Plus />
  77. </el-icon>
  78. </div>
  79. <div style="margin-left: 5px;" @click="createNewMenu">
  80. <span style="font-size: 14px;">新建</span>
  81. </div>
  82. </div>
  83. <template v-for="(item, index) in useMenu">
  84. <div style="display: flex;width: 82px;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;"
  85. @click="getMenu(item, index)">
  86. <div style="margin-left: 5px;">
  87. <img :src="item.img" style="width: 24px;height: 24px;" alt="">
  88. </div>
  89. <div style="margin-left: 5px;">
  90. <span style="font-size: 14px;">{{ item.name }}</span>
  91. </div>
  92. </div>
  93. </template>
  94. <div
  95. style="display: flex;width: 92px;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;">
  96. <div style="margin-left: 5px;">
  97. <img src="../../assets/images/upload.png" style="width: 24px;height: 24px;" alt="">
  98. </div>
  99. <div style="margin-left: 5px;">
  100. <span style="color: black;cursor: pointer;" @click="uploadModal = true">上传
  101. </span>
  102. </div>
  103. </div>
  104. </div>
  105. <!-- 面包屑功能栏 -->
  106. <div class="breadBox" v-if="editOnline">
  107. <!-- 左侧 -->
  108. <div style="display: flex;justify-content: space-around;align-items: center;">
  109. <!-- 前进后退 -->
  110. <div style="display: flex;justify-content: space-around;align-items: center;">
  111. <img style="display:block;width: 11px;height: 11px;" :src="blueLeft" alt="">
  112. <img style="display:block;width: 16px;height: 16px;" :src="grayRight" alt="">
  113. </div>
  114. <!-- 面包屑 -->
  115. <div>
  116. <BreadMenu></BreadMenu>
  117. </div>
  118. </div>
  119. <!-- 右侧 -->
  120. <div>
  121. <img :src="sort" alt="">
  122. <img :src="squre" alt="">
  123. </div>
  124. </div>
  125. </div>
  126. <!-- 展示文件夹盒子 -->
  127. <div v-if="editOnline">
  128. <!-- 文件夹 -->
  129. <div class="detailBox">
  130. <el-collapse v-model="folder" accordion class="collapseSell">
  131. <el-collapse-item title="文件夹" name="1" class="custom-collapse-item">
  132. <el-table :data="folderList" style="width: 100%" @selection-change="handleSelectionChange1"
  133. :single-select="true" @row-click="folderClick">
  134. <el-table-column type="selection" width="55" />
  135. <el-table-column label="名称" width="180">
  136. <template #default="scope">
  137. <span>
  138. <img src="../../assets/images/fileBox.png" style="width: 20px;height: 24px;"
  139. alt="">
  140. {{ scope.row.dirName }}
  141. </span>
  142. </template>
  143. </el-table-column>
  144. <el-table-column prop="createTime" label="时间" width="180" />
  145. <el-table-column prop="dirType" label="类型">
  146. <template #default="scope">
  147. <span>{{ scope.row.dirType === "1" ? "文件夹" : "未知类型" }}</span>
  148. </template>
  149. </el-table-column>
  150. <el-table-column label="大小">
  151. <template #default="scope">
  152. <span>
  153. 10KB
  154. </span>
  155. </template>
  156. </el-table-column>
  157. </el-table>
  158. </el-collapse-item>
  159. </el-collapse>
  160. </div>
  161. <!-- 文件 -->
  162. <div class="fileTable">
  163. <el-collapse v-model="files" accordion class="collapse" style="height: 200px;">
  164. <el-collapse-item title="文件" name="2" class="">
  165. <el-table :data="fileList" style="width: 100%" @row-click="handleRowClick"
  166. @selection-change="handleSelectionChange">
  167. <el-table-column type="selection" width="55" />
  168. <el-table-column label="名称" width="200">
  169. <template #default="scope">
  170. <span style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
  171. <el-icon v-if="collectImg">
  172. <Star />
  173. </el-icon>
  174. <img v-else src="../../assets/images/yellowstar.png" alt="">
  175. <img :src="getImage(scope.row.fileType)" alt="">
  176. {{ scope.row.fileName }}
  177. </span>
  178. </template>
  179. </el-table-column>
  180. <el-table-column prop="createTime" label="时间" width="180" />
  181. <el-table-column prop="fileType" label="类型" />
  182. <el-table-column label="大小">
  183. <template #default="scope">
  184. <span>
  185. {{ scope.row.fileSize }}KB
  186. </span>
  187. </template>
  188. </el-table-column>
  189. </el-table>
  190. <div class="setCli" v-if="cliCC">
  191. <template v-for="(item, index) in mouseCli">
  192. <p @click="chooseSet(item, index)" class="chooseSet">
  193. <img :src="item.img" alt="">
  194. {{ item.name }}
  195. <span v-if="item.name == '在线编辑' || item.name == '协作' ? true : false"
  196. style="color: #7084B4;float: right;position: relative;">></span>
  197. </p>
  198. </template>
  199. <div class="setCli1" v-if="anyP">
  200. <p @click="chooseSet1()" class="chooseSet">
  201. <img src="../../assets/images/user.png" alt="">
  202. 选择人员
  203. </p>
  204. <p class="chooseSet">
  205. <img src="../../assets/images/archiveTray.png" alt="">
  206. 归档
  207. </p>
  208. </div>
  209. </div>
  210. </el-collapse-item>
  211. </el-collapse>
  212. </div>
  213. <!-- 穿梭框 -->
  214. <div>
  215. <el-dialog v-model="transferModal" title="分享" width="40%">
  216. <!-- 穿梭大盒子 -->
  217. <div class="transBox">
  218. <!-- 总数据包 -->
  219. <div class="allBag">
  220. <el-input style="width: 220px;margin-left: 18px;margin-top:5px" v-model="allBag"
  221. placeholder="搜索"></el-input>
  222. <div class="allLog">
  223. <el-tree :data="allTreeData" :props="allTreeProps" show-checkbox node-key="id"
  224. :default-expanded-keys="openTree" @check-change="allTreeChange" />
  225. </div>
  226. </div>
  227. <!-- 需要的数据包 -->
  228. <div class="needBag">
  229. <el-input style="width: 220px;margin-left: 18px;margin-top:5px" v-model="needBag"
  230. placeholder="搜索"></el-input>
  231. <div class="needLog">
  232. <el-tag v-for="(item, index) in chooseTagData" :key="index" class="tagtag" closable
  233. @close="handleClose(item)">
  234. {{ item.userName }}
  235. </el-tag>
  236. </div>
  237. </div>
  238. </div>
  239. <template #footer>
  240. <span class="dialog-footer">
  241. <el-button @click="transferModal = false">取消</el-button>
  242. <el-button type="primary" @click="sureShare">
  243. 确定
  244. </el-button>
  245. </span>
  246. </template>
  247. </el-dialog>
  248. </div>
  249. </div>
  250. <FileEdit v-else></FileEdit>
  251. </div>
  252. <!-- 扩容弹窗 -->
  253. <div>
  254. <el-dialog v-model="askTo" title="扩容申请" width="30%">
  255. <el-form>
  256. <el-form-item label="新容量">
  257. <el-input-number v-model="askNum" :min="1" :max="10" />
  258. </el-form-item>
  259. <el-form-item label="申请理由">
  260. <el-input v-model="askTalk" maxlength="150" placeholder="请输入申请理由" show-word-limit
  261. type="textarea" />
  262. </el-form-item>
  263. </el-form>
  264. <template #footer>
  265. <span class="dialog-footer">
  266. <el-button @click="askTo = false">取消</el-button>
  267. <el-button type="primary" @click="sureAsk">
  268. 确定
  269. </el-button>
  270. </span>
  271. </template>
  272. </el-dialog>
  273. </div>
  274. <!-- 新增文件夹弹窗 -->
  275. <div>
  276. <el-dialog v-model="addBoser" title="Tips" width="30%">
  277. <el-form :model="boserForm" label-width="120px">
  278. <!-- <el-form-item label="空间id">
  279. <el-input v-model="boserForm.spaceId" />
  280. </el-form-item> -->
  281. <!-- <el-form-item label="目录类型">
  282. <el-input v-model="boserForm.dirType" />
  283. </el-form-item> -->
  284. <!-- <el-form-item label="目录权限">
  285. <el-input v-model="boserForm.dirPower" />
  286. </el-form-item> -->
  287. <el-form-item label="目录名称">
  288. <el-input v-model="boserForm.dirName" />
  289. </el-form-item>
  290. <!-- <el-form-item label="父目录id">
  291. <el-input v-model="boserForm.parentId" />
  292. </el-form-item> -->
  293. <!-- <el-form-item label="备注">
  294. <el-input v-model="boserForm.remark" />
  295. </el-form-item> -->
  296. </el-form>
  297. <template #footer>
  298. <span class="dialog-footer">
  299. <el-button @click="addBoser = false">取消</el-button>
  300. <el-button type="primary" @click="sureAddBoser">
  301. 确认
  302. </el-button>
  303. </span>
  304. </template>
  305. </el-dialog>
  306. </div>
  307. <div>
  308. <el-dialog v-model="addFile" title="Tips" width="30%">
  309. <el-form :model="fileForm" label-width="120px">
  310. <el-form-item label="空间类型">
  311. <el-input v-model="fileForm.spaceType" />
  312. </el-form-item>
  313. <el-form-item label="空间名称">
  314. <el-input v-model="fileForm.spaceName" />
  315. </el-form-item>
  316. <el-form-item label="空间容量">
  317. <el-input v-model="fileForm.spaceCap" />
  318. </el-form-item>
  319. <el-form-item label="已使用空间">
  320. <el-input v-model="fileForm.usedCap" />
  321. </el-form-item>
  322. <el-form-item label="剩余空间">
  323. <el-input v-model="fileForm.freeCap" />
  324. </el-form-item>
  325. <el-form-item label="备注">
  326. <el-input v-model="fileForm.remark" />
  327. </el-form-item>
  328. </el-form>
  329. <template #footer>
  330. <span class="dialog-footer">
  331. <el-button @click="addFile = false">取消</el-button>
  332. <el-button type="primary" @click="sureAddFile">
  333. 确认
  334. </el-button>
  335. </span>
  336. </template>
  337. </el-dialog>
  338. </div>
  339. <!-- 文件上传 -->
  340. <div>
  341. <el-dialog v-model="uploadModal" title="文件上传" width="30%">
  342. <el-upload class="upload-demo" drag :http-request="onSuccess" multiple>
  343. <el-icon class="el-icon--upload"><upload-filled /></el-icon>
  344. <div class="el-upload__text">
  345. 拖入或<em>点击上传</em>
  346. </div>
  347. <template #tip>
  348. <div class="el-upload__tip">
  349. 请选择或拖入文件
  350. </div>
  351. </template>
  352. </el-upload>
  353. <template #footer>
  354. <span class="dialog-footer">
  355. <el-button @click="uploadModal = false">取消</el-button>
  356. <el-button type="primary" @click="sureUpload">
  357. 确认
  358. </el-button>
  359. </span>
  360. </template>
  361. </el-dialog>
  362. </div>
  363. <!-- 文件重命名 -->
  364. <div>
  365. <el-dialog v-model="fileNameChange" title="重命名" width="30%">
  366. <el-form :model="nameForm" label-width="120px">
  367. <el-form-item label="新名字">
  368. <el-input v-model="nameForm.name"></el-input>
  369. </el-form-item>
  370. </el-form>
  371. <template #footer>
  372. <span class="dialog-footer">
  373. <el-button @click="fileNameChange = false">取消</el-button>
  374. <el-button type="primary" @click="sureChangeName">
  375. 确认
  376. </el-button>
  377. </span>
  378. </template>
  379. </el-dialog>
  380. </div>
  381. <!-- 文件收藏 -->
  382. <div>
  383. <el-dialog v-model="fileCollect" title="重命名" width="30%">
  384. <el-form :model="collectForm" label-width="120px">
  385. <el-form-item label="名称">
  386. <el-input v-model="collectForm.name" />
  387. </el-form-item>
  388. <el-form-item label="收藏标签">
  389. <div class="newTag" v-if="tagCollect">
  390. <el-input v-model="newTag" placeholder="请输入新标签" @blur="tagBlur"></el-input>
  391. </div>
  392. <el-select v-model="collectForm.folders" class="m-2" placeholder="请选择" size="large"
  393. @change="collectChange">
  394. <el-option v-for="(item, index) in collectList" :key="item.labelId" :label="item.label"
  395. :value="item.labelId" />
  396. </el-select>
  397. </el-form-item>
  398. </el-form>
  399. <el-button @click="createTag">新建标签</el-button>
  400. <template #footer>
  401. <span class="dialog-footer">
  402. <el-button @click="fileCollect = false">取消</el-button>
  403. <el-button type="primary" @click="sureCollect">
  404. 确认
  405. </el-button>
  406. </span>
  407. </template>
  408. </el-dialog>
  409. </div>
  410. </div>
  411. </div>
  412. </template>
  413. <script>
  414. import { ref } from 'vue'
  415. import myfile from '../../api/myfile/myfile'
  416. import space from '../../api/space/space'
  417. import documents from '../../api/document/document'
  418. import fileSpace from '../../api/filespace/fileSpace'
  419. import userTree from '../../api/user/userTree'
  420. import fileShare from '../../api/fileShare/fileShare'
  421. import collect from '../../api/collect/collect'
  422. import fileCount from '../../api/fileCount/fileCount'
  423. import BreadMenu from './components/BreadMenu.vue'
  424. import FileEdit from './components/FileEdit.vue'
  425. import ImgFile from "./jsComponents/ImgFile"
  426. import { Search } from '@element-plus/icons-vue'
  427. import blueLeft from '../../assets/images/blueLeft.png'
  428. import grayRight from "../../assets/images/grayRight.png"
  429. import sort from '../../assets/images/sort.png'
  430. import squre from '../../assets/images/squre.png'
  431. import { ElMessage } from 'element-plus'
  432. export default {
  433. setup() {
  434. let editOnline = ref(true)
  435. let searchFire = ref('')
  436. let selectedIndex = ref(0)
  437. let folder = ref(['1'])
  438. let files = ref(['2'])
  439. let folderList = ref([])
  440. let askTo = ref(false)
  441. let askNum = ref(1)
  442. let askTalk = ref('')
  443. let newTag = ref('')
  444. let cliCC = ref(false)
  445. let transferModal = ref(false)
  446. let addBoser = ref(false)
  447. let addFile = ref(false)
  448. let anyP = ref(false)
  449. let uploadModal = ref(false)
  450. let collectImg = ref(true)
  451. let fileCollect = ref(false)
  452. let tagCollect = ref(false)//添加收藏标签时显示
  453. let selectedBox = ref(-1)
  454. let newName = ref('')
  455. let clickRowId = ref("")
  456. let trandata = ref()
  457. let folderId = ref('')
  458. let fileId = ref('')
  459. let tranvalue = ref([])
  460. let useSpace = ref(0)
  461. let allSpace = ref(0)
  462. let fileArr = ref([])
  463. let copyDirId = ref(0)//需要操作的dirid
  464. let copySpaceId = ref(0)//需要操作的spaceid
  465. let copyDocId = ref(0)//需要操作的docid
  466. let copyFileId = ref(0)//需要操作的fileid
  467. let copyFileSize = ref(0)//需要操作的filesize
  468. let copyFileType = ref('')//需要操作的文件类型
  469. let copyFileName = ref("")//需要操作的文件名
  470. let directoryId = ref('')
  471. let copyParentId = ref("")//文件夹
  472. let allBag = ref("")//穿梭狂内搜索
  473. let needBag = ref("")
  474. let sortNum = ref(0)
  475. let boserForm = ref({
  476. spaceId: "",//空间id
  477. dirName: "",
  478. dirPower: "",
  479. dirType: "",
  480. parentId: "",
  481. remark: ""//备注
  482. })
  483. let fileForm = ref({
  484. spaceType: '',
  485. spaceName: "",
  486. spaceCap: "",
  487. usedCap: "",
  488. freeCap: "",
  489. remark: "",
  490. })
  491. let fileList = ref([
  492. ])
  493. let menuList = ref([
  494. ])
  495. let useMenu = ref([
  496. {
  497. img: ImgFile.copy,
  498. name: "复制"
  499. },
  500. {
  501. img: ImgFile.clipboard,
  502. name: "粘贴"
  503. },
  504. {
  505. img: ImgFile.share,
  506. name: "分享给"
  507. },
  508. {
  509. img: ImgFile.trash,
  510. name: "删除"
  511. },
  512. ])
  513. let arrorMenu = ref([
  514. {
  515. img: ImgFile.file,
  516. name: "文件"
  517. },
  518. {
  519. img: ImgFile.folder,
  520. name: '文件夹'
  521. },
  522. {
  523. img: ImgFile.image,
  524. name: "图片"
  525. },
  526. {
  527. img: ImgFile.filmSlate,
  528. name: "视频"
  529. },
  530. {
  531. img: ImgFile.musicNotes,
  532. name: "音频"
  533. }
  534. ])
  535. let mouseCli = ref([
  536. {
  537. img: ImgFile.addolder,
  538. name: "移动",
  539. },
  540. {
  541. img: ImgFile.copy,
  542. name: "复制",
  543. },
  544. {
  545. img: ImgFile.clipboard,
  546. name: "粘贴"
  547. },
  548. {
  549. img: ImgFile.collect,
  550. name: "收藏"
  551. },
  552. {
  553. img: ImgFile.downLoad,
  554. name: "下载"
  555. },
  556. {
  557. img: ImgFile.textbox,
  558. name: "重命名"
  559. },
  560. {
  561. img: ImgFile.goon,
  562. name: "发送"
  563. },
  564. {
  565. img: ImgFile.share,
  566. name: "分享"
  567. },
  568. {
  569. img: ImgFile.notePencil,
  570. name: "在线编辑"
  571. },
  572. {
  573. img: ImgFile.togger,
  574. name: "协作"
  575. },
  576. {
  577. img: ImgFile.icc,
  578. name: "文字识别"
  579. },
  580. {
  581. img: ImgFile.history,
  582. name: "历史版本"
  583. },
  584. {
  585. img: ImgFile.share,
  586. name: "删除"
  587. }
  588. ])
  589. let nameForm = ref({
  590. name: ""
  591. })
  592. let allTreeProps = {
  593. label: 'label',
  594. children: 'children',
  595. disabled: false,
  596. id: "id"
  597. }
  598. let collectForm = ref({
  599. name: "",
  600. folders: "",
  601. })
  602. let allTreeData = ref([])
  603. let needTagData = ref([])
  604. let chooseTagData = ref([])
  605. let openTree = ref([])
  606. let fileNameChange = ref(false)
  607. let fileMenu = ref([])
  608. let collectList = ref([])
  609. // 获取所有文件
  610. function getAll() {
  611. myfile.getAllFileMenu({ dirId: folderId.value }).then(res => {
  612. if (res.code === 200) {
  613. fileList.value = res.rows
  614. }
  615. })
  616. }
  617. // 获取用户树
  618. function getAllUser() {
  619. userTree.getUserTree({}).then(res => {
  620. allTreeData.value = [res]
  621. userTree.getUserTree({}).then(res => {
  622. allTreeData.value = [res];
  623. // 递归函数来获取所有节点的 id
  624. function getAllNodeIds(nodes) {
  625. nodes.forEach(node => {
  626. openTree.value.push(node.id);
  627. if (node.children && node.children.length > 0) {
  628. getAllNodeIds(node.children);
  629. }
  630. });
  631. }
  632. // 调用递归函数获取所有节点的 id
  633. getAllNodeIds(allTreeData.value);
  634. });
  635. })
  636. }
  637. function getAllCollect() {
  638. collect.getCollect({}).then(res => {
  639. const maxAge = res.rows.reduce((max, obj) => (obj.orderNum > max ? obj.orderNum : max), res.rows[0].orderNum)
  640. sortNum.value = maxAge
  641. collectList.value = res.rows.map(item => {
  642. return {
  643. label: item.labelName,
  644. labelId: item.labelId,
  645. order: item.orderNum
  646. }
  647. })
  648. })
  649. }
  650. // 中栏
  651. function getAllText() {
  652. documents.getALLdocument({ spaceId: directoryId.value }).then(res => {
  653. folderList.value = res.data
  654. fileMenu.value = res.data
  655. })
  656. }
  657. // 获取所有文件夹
  658. function getAllFolder() {
  659. if (copyParentId.value === '') {
  660. copyParentId.value = 0
  661. documents.getALLdocument({ parentId: copyParentId.value - 0 }).then(res => {
  662. folderList.value = res.data
  663. })
  664. } else {
  665. documents.getALLdocument({ parentId: copyParentId.value - 0 }).then(res => {
  666. folderList.value = res.data
  667. })
  668. }
  669. }
  670. function changeFile(row, num) {
  671. copyParentId.value = row.parentId
  672. getAllFolder()
  673. this.selectedIndex = num
  674. const newItem = {
  675. name: row.spaceName,
  676. choose: row.spaceId
  677. };
  678. // 检查 newItem 是否已存在于 menuList 中
  679. const isItemExist = menuList.value.some(item => item.choose === newItem.choose);
  680. // 如果不存在,则添加它
  681. if (!isItemExist) {
  682. menuList.value.push(newItem);
  683. }
  684. useSpace.value = row.usedCap
  685. allSpace.value = row.spaceCap
  686. }
  687. // tableMenu切换
  688. function tableChange(row, num) {
  689. this.selectedIndex = num
  690. }
  691. // x图标事件
  692. function shotdown(row) {
  693. this.menuList = this.menuList.filter(item => item.name !== row.name)
  694. }
  695. // 文件名表格每一行点击事件
  696. function handleRowClick(row) {
  697. clickRowId.value = row.docId
  698. copyDirId.value = row.dirId
  699. copySpaceId.value = row.spaceId
  700. copyFileId.value = row.fileId
  701. copyFileSize.value = row.fileSize
  702. copyFileType.value = row.fileType
  703. nameForm.value.name = row.fileName
  704. if (cliCC.value === true) {
  705. cliCC.value = false
  706. } else {
  707. cliCC.value = true
  708. }
  709. fileShare.getSharePeople(row.docId).then(res => {
  710. console.log(res, 'res');
  711. }).catch(err => {
  712. console.log(err, 'err');
  713. })
  714. }
  715. // 申请扩容
  716. function askApply() {
  717. this.askTo = true
  718. }
  719. function sureAsk() {
  720. this.askTo = false
  721. }
  722. //mouse弹框
  723. function chooseSet(row, num) {
  724. if (row.name == '在线编辑' || row.name == '协作') {
  725. cliCC.value = true
  726. } else {
  727. cliCC.value = false
  728. }
  729. if (row.name == '分享') {
  730. transferModal.value = true
  731. } else {
  732. transferModal.value = false
  733. }
  734. if (row.name == '协作') {
  735. anyP.value = true
  736. } else {
  737. anyP.value = false
  738. }
  739. if (row.name == '删除') {
  740. myfile.delMenu(clickRowId.value).then(res => {
  741. if (res.code === 200) {
  742. ElMessage({
  743. type: "success",
  744. message: "删除成功"
  745. })
  746. getAll()
  747. }
  748. })
  749. }
  750. if (row.name === '复制') {
  751. myfile.fileCopy({ dirId: copyDirId.value, docId: clickRowId.value, spaceId: copySpaceId.value }).then(res => {
  752. if (res.code === 200) {
  753. ElMessage({
  754. message: "复制成功",
  755. type: "success"
  756. })
  757. }
  758. })
  759. }
  760. if (row.name === '移动') {
  761. myfile.fileMove({ dirId: copyDirId.value, docId: clickRowId.value, spaceId: copySpaceId.value }).then(res => {
  762. if (res.code === 200) {
  763. ElMessage({
  764. message: "移动成功",
  765. type: "success"
  766. })
  767. }
  768. })
  769. }
  770. if (row.name === '重命名') {
  771. fileNameChange.value = true
  772. }
  773. if (row.name === "下载") {
  774. location.href = `${import.meta.env.VITE_APP_BASE_API}/api/download/${copyFileId.value}`;
  775. }
  776. if (row.name === '收藏') {
  777. collectForm.value.name = nameForm.value.name
  778. fileCollect.value = true
  779. }
  780. if (row.name === '在线编辑') {
  781. editOnline.value = false
  782. }
  783. }
  784. function chooseSet1() {
  785. transferModal.value = true
  786. anyP.value = false
  787. }
  788. function getSpace() {
  789. }
  790. function createNewMenu() {
  791. addBoser.value = true
  792. }
  793. // 新增文件夹
  794. function sureAddBoser() {
  795. documents.addDocument({
  796. "dirName": boserForm.value.dirName,
  797. // "dirRole": boserForm.value.dirPower,
  798. // "dirType": boserForm.value.dirType,
  799. "parentId": copyParentId.value-0,
  800. // "remark": boserForm.value.remark,
  801. "spaceId": directoryId.value,
  802. }).then(res => {
  803. if (res.code === 200) {
  804. ElMessage({
  805. message: '添加成功',
  806. type: 'success',
  807. })
  808. }
  809. addBoser.value = false
  810. getAllText()
  811. })
  812. }
  813. function createNewFile() {
  814. addFile.value = true
  815. }
  816. // 确定新增中栏
  817. function sureAddFile() {
  818. fileSpace.addFileSpace(
  819. {
  820. "spaceName": fileForm.value.spaceName,
  821. "spaceType": fileForm.value.spaceType,
  822. "spaceCap": fileForm.value.spaceCap - 0,//空间容量
  823. "usedCap": fileForm.value.usedCap - 0,//已用空间
  824. "freeCap": fileForm.value.freeCap - 0,//剩余空间
  825. "remark": fileForm.value.remark,//备注
  826. }
  827. ).then(res => {
  828. if (res.code === 200) {
  829. ElMessage({
  830. message: "新增成功",
  831. type: "success"
  832. })
  833. getAllMiddle()
  834. addFile.value = false
  835. } else {
  836. ElMessage({
  837. message: "请检查错误",
  838. type: "warning"
  839. })
  840. }
  841. })
  842. }
  843. function arrowClick(row, num) {
  844. if (row.name === '文件') {
  845. uploadModal.value = true
  846. } else {
  847. uploadModal.value = false
  848. }
  849. }
  850. // 确认上传
  851. function sureUpload() {
  852. if (fileArr.value.length > 0) {
  853. for (var i = 0; i <= fileArr.value.length; i++) {
  854. myfile.uploadFile({
  855. spaceId: 1,
  856. dirId: 1,
  857. file: fileArr.value[i]
  858. }).then(res => {
  859. if (res.code === 200) {
  860. ElMessage({
  861. message: "上传文件成功",
  862. type: "success"
  863. })
  864. getAll()
  865. uploadModal.value = false
  866. fileArr.value = []
  867. }
  868. })
  869. }
  870. }
  871. }
  872. function onSuccess(files, val) {
  873. fileArr.value.push(files.file)
  874. }
  875. // 筛选后缀图片
  876. function getImage(file) {
  877. if (file === '.txt') {
  878. return ImgFile.txt
  879. } else if (file === '.xlxs' || file === '.docx') {
  880. return ImgFile.xlxs
  881. } else if (file === '.pptx') {
  882. return ImgFile.pptx
  883. } else if (file === '.word') {
  884. return ImgFile.word
  885. } else if (file === '.pdf') {
  886. return ImgFile.pdf
  887. }
  888. }
  889. // 表格多选框
  890. function handleSelectionChange(val) {
  891. if (val.length > 1) {
  892. // 如果选择了多项,只保留最后一项
  893. val.shift();
  894. }
  895. if (val.length === 1) {
  896. fileId.value = val[0].docId
  897. }
  898. }
  899. // 文件夹
  900. function handleSelectionChange1(val) {
  901. if (val.length > 1) {
  902. // 如果选择了多项,只保留最后一项
  903. val.shift();
  904. }
  905. if (val.length === 1) {
  906. folderId.value = val[0].dirId
  907. }
  908. }
  909. // 重命名
  910. function restName(row, index) {
  911. newName.value = row.dirName
  912. selectedBox.value = index
  913. }
  914. // 重命名失焦事件
  915. function nameChange(row, index) {
  916. document.editDocument({
  917. "spaceId": row.spaceId,
  918. "spaceName": newName.value,
  919. }).then(res => {
  920. if (res.code === 200) {
  921. getAllFolder()
  922. selectedBox.value = -1
  923. ElMessage({
  924. message: '重命名成功',
  925. type: "success"
  926. })
  927. }
  928. })
  929. }
  930. function getMenu(row, num) {
  931. if (row.name === '删除') {
  932. // 文件夹删除
  933. documents.delDocument(folderId.value).then(res => {
  934. if (res.code === 200) {
  935. ElMessage({
  936. message: "删除成功",
  937. type: "success"
  938. })
  939. getAllText()
  940. } else {
  941. ElMessage({
  942. message: "删除失败,目录应不为空",
  943. type: "error"
  944. })
  945. }
  946. })
  947. myfile.delMenu(fileId.value).then(res => {
  948. if (res.code === 200) {
  949. ElMessage({
  950. message: "删除成功",
  951. type: "success"
  952. })
  953. getAll()
  954. }
  955. })
  956. }
  957. }
  958. function delName(row, num) {
  959. fileSpace.delFileSpace(row.spaceId).then(res => {
  960. if (res.code === 200) {
  961. getAllMiddle()
  962. ElMessage({
  963. message: "删除成功",
  964. type: "success"
  965. })
  966. }
  967. })
  968. }
  969. // 计算百分比
  970. function percent() {
  971. let numP = 0
  972. if (useSpace.value) {
  973. numP = parseInt(useSpace.value / (allSpace.value * 1024) * 100)
  974. return numP
  975. }
  976. }
  977. // 文件夹每行点击事件
  978. function folderClick(row, list) {
  979. folderId.value = row.dirId
  980. getAll()
  981. }
  982. // 确认文件重命名
  983. function sureChangeName() {
  984. myfile.editNewMenu({
  985. dirId: copyDirId.value - 0,
  986. docId: clickRowId.value - 0,
  987. fileId: copyFileId.value,
  988. fileName: nameForm.value.name,
  989. fileSize: copyFileSize.value - 0,
  990. fileType: copyFileType.value,
  991. remark: '',
  992. spaceId: copySpaceId.value - 0,
  993. }).then(res => {
  994. if (res.code === 200) {
  995. ElMessage({
  996. message: "重命名成功",
  997. type: "success"
  998. })
  999. fileNameChange.value = false
  1000. getAll()
  1001. }
  1002. })
  1003. }
  1004. // 分享穿梭框
  1005. function allTreeChange(e) {
  1006. const id = e.id;
  1007. const label = e.label;
  1008. // 查找是否已经存在相同 userId 的数据的索引
  1009. const existingIndex = needTagData.value.findIndex(item => item.userId === id);
  1010. if (existingIndex !== -1) {
  1011. // 如果已存在,删除该项
  1012. needTagData.value.splice(existingIndex, 1);
  1013. } else {
  1014. // 选择操作,将数据添加到 needTagData 中
  1015. needTagData.value.push({ userId: id, userName: label });
  1016. }
  1017. chooseTagData.value = needTagData.value;
  1018. }
  1019. // 确认分享
  1020. function sureShare() {
  1021. fileShare.addSharePeople(clickRowId.value, needTagData.value).then(res => {
  1022. if (res.code === 200) {
  1023. ElMessage({
  1024. message: "分享成功",
  1025. type: "success"
  1026. })
  1027. transferModal.value = false
  1028. }
  1029. })
  1030. }
  1031. function handleClose(tag) {
  1032. chooseTagData.value.splice(chooseTagData.value.indexOf(tag), 1)
  1033. }
  1034. // 确认收藏
  1035. function sureCollect() {
  1036. collect.addCollect({
  1037. "docInfo": {
  1038. "fileId": copyFileId.value - 0,
  1039. "labelId": collectForm.value.folders - 0,
  1040. },
  1041. }).then(res => {
  1042. if (res.code === 200) {
  1043. ElMessage({
  1044. message: "收藏成功",
  1045. type: "success"
  1046. })
  1047. }
  1048. })
  1049. fileCollect.value = false
  1050. }
  1051. function collectChange(e) {
  1052. collectForm.value.folders = e
  1053. }
  1054. // 新建收藏标签
  1055. function createTag() {
  1056. newTag.value = ''
  1057. tagCollect.value = true
  1058. }
  1059. function tagBlur() {
  1060. collect.addNewTag({ labelName: newTag.value, orderNum: sortNum.value + 1 }).then(res => {
  1061. if (res.code === 200) {
  1062. ElMessage({
  1063. message: "新建标签成功",
  1064. type: "success"
  1065. })
  1066. getAllCollect()
  1067. }
  1068. })
  1069. tagCollect.value = false
  1070. }
  1071. // 判断id
  1072. function isId() {
  1073. if (this.directoryId === '') {
  1074. this.directoryId = 0
  1075. this.getAllText()
  1076. }
  1077. if (this.folderId === '') {
  1078. this.folderId = 0
  1079. this.getAll()
  1080. }
  1081. }
  1082. return {
  1083. allBag,
  1084. folderList,//文件夹的数据
  1085. fileList,//文件夹的数据
  1086. getAll,//拿到数据的方法
  1087. searchFire,//搜索文件的model
  1088. changeFile,//切换右侧视图的file
  1089. menuList,//右侧切换
  1090. tableChange,//改变class点击事件
  1091. selectedIndex,//当前选中下标
  1092. shotdown,//筛选出当前数据
  1093. useMenu,
  1094. arrorMenu,
  1095. blueLeft,//返回
  1096. grayRight,//前进
  1097. squre,//视图切换
  1098. sort,//排序
  1099. folder,
  1100. files,
  1101. handleRowClick,
  1102. askApply,//申请扩容
  1103. askTo,
  1104. sureAsk,
  1105. askNum,
  1106. askTalk,
  1107. cliCC,
  1108. mouseCli,//文件点击弹框
  1109. chooseSet,
  1110. transferModal,
  1111. trandata,
  1112. tranvalue,
  1113. anyP,
  1114. chooseSet1,
  1115. getSpace,//获取内存空间
  1116. fileMenu,
  1117. addBoser,
  1118. boserForm,
  1119. createNewMenu,
  1120. sureAddBoser,
  1121. // delBoser,
  1122. getAllText,
  1123. clickRowId,
  1124. addFile,
  1125. createNewFile,
  1126. fileForm,
  1127. sureAddFile,
  1128. // fileUpload,
  1129. getImage,//筛选文件类型
  1130. handleSelectionChange,
  1131. handleSelectionChange1,
  1132. selectedBox,//重命名相关
  1133. restName,//重命名相关
  1134. newName,//重命名相关
  1135. nameChange,
  1136. getMenu,
  1137. folderId,
  1138. fileId,
  1139. // getAllMiddle,//拿到所有空间信息
  1140. delName,//删除空间信息
  1141. useSpace,//使用空间
  1142. allSpace,//总空间
  1143. percent,
  1144. arrowClick,
  1145. uploadModal,
  1146. sureUpload,
  1147. onSuccess,
  1148. fileArr,
  1149. directoryId,
  1150. folderClick,
  1151. copyDirId,//复制移动需要的↓
  1152. copyDocId,
  1153. copySpaceId,
  1154. copyFileId,
  1155. copyFileName,
  1156. copyFileSize,
  1157. copyFileType,
  1158. sureChangeName,//文件重命名
  1159. fileNameChange,//文件重命名模态框
  1160. nameForm,
  1161. getAllUser,//获取所有用户
  1162. allTreeProps,//树形控件需要显示键名
  1163. allTreeData,//树形控件数据
  1164. allTreeChange,
  1165. sureShare,
  1166. openTree,
  1167. chooseTagData,
  1168. handleClose,
  1169. collectImg,//收藏小星星
  1170. fileCollect,
  1171. collectForm,
  1172. sureCollect,
  1173. getAllCollect,//获取所有收藏文件夹
  1174. collectList,//文件收藏表
  1175. createTag,
  1176. tagCollect,
  1177. tagBlur,
  1178. newTag,
  1179. collectChange,
  1180. sortNum,
  1181. needBag,
  1182. isId,
  1183. editOnline,//在线编辑
  1184. copyParentId,
  1185. getAllFolder,
  1186. }
  1187. },
  1188. created() {
  1189. this.getAll();
  1190. this.getSpace()
  1191. this.getAllText()
  1192. // this.getAllMiddle()
  1193. this.getAllUser()
  1194. this.getAllCollect()
  1195. this.isId()
  1196. this.getAllFolder()
  1197. },
  1198. watch: {
  1199. },
  1200. components: {
  1201. BreadMenu,
  1202. FileEdit,
  1203. },
  1204. }
  1205. </script>
  1206. <style scoped>
  1207. p {
  1208. margin: 0;
  1209. padding: 0;
  1210. }
  1211. .bigBox {
  1212. display: flex;
  1213. justify-content: flex-start;
  1214. }
  1215. .settingBox {
  1216. width: 22vw;
  1217. height: 100%;
  1218. border: 2px solid black;
  1219. border-radius: 4px;
  1220. /* margin: 5px 5px; */
  1221. margin-right: 15px;
  1222. background-color: white;
  1223. }
  1224. .topSearch {
  1225. width: 100%;
  1226. height: 48px;
  1227. background-color: #EBEFF6;
  1228. display: flex;
  1229. justify-content: space-around;
  1230. align-items: center;
  1231. }
  1232. .searchFire {
  1233. width: 248px;
  1234. height: 32px;
  1235. }
  1236. .setBox {
  1237. width: 88px;
  1238. height: 112px;
  1239. text-align: center;
  1240. margin-left: 12px;
  1241. margin-top: 5px;
  1242. position: relative;
  1243. }
  1244. .setBox:hover {
  1245. background-color: #EEF9FF;
  1246. }
  1247. .setBox:hover .selectChe {
  1248. background-color: #EEF9FF;
  1249. display: block;
  1250. }
  1251. .selectChe {
  1252. display: none;
  1253. width: 20px;
  1254. height: 20px;
  1255. background: rgba(255, 255, 255, 0.7);
  1256. border-radius: 4px 4px 4px 4px;
  1257. position: absolute;
  1258. top: 2px;
  1259. right: 2px;
  1260. line-height: 10px;
  1261. }
  1262. .mesBox {
  1263. width: 70vw;
  1264. height: 43rem;
  1265. /* margin: 5px 5px; */
  1266. border-radius: 4px;
  1267. background-color: white;
  1268. }
  1269. .useBox {
  1270. width: 100%;
  1271. height: 96px;
  1272. }
  1273. .tables {
  1274. display: inline-block;
  1275. width: 112px;
  1276. height: 22px;
  1277. border-radius: 4px;
  1278. line-height: 21px;
  1279. text-align: center;
  1280. font-size: 12px;
  1281. margin-left: 5px;
  1282. position: relative;
  1283. white-space: nowrap;
  1284. overflow: hidden;
  1285. text-overflow: ellipsis;
  1286. }
  1287. .tableLis {
  1288. display: inline-block;
  1289. width: 112px;
  1290. height: 22px;
  1291. border-radius: 4px;
  1292. background-color: #EBEFF6;
  1293. line-height: 21px;
  1294. text-align: center;
  1295. font-size: 12px;
  1296. margin-left: 5px;
  1297. position: relative;
  1298. white-space: nowrap;
  1299. overflow: hidden;
  1300. text-overflow: ellipsis;
  1301. max-width: auto;
  1302. }
  1303. .manyUse {
  1304. width: 100%;
  1305. height: 48px;
  1306. /* background-color: gray; */
  1307. line-height: 48px;
  1308. display: flex;
  1309. justify-content: flex-start;
  1310. align-items: center;
  1311. }
  1312. .el-dropdown-link {
  1313. color: white;
  1314. }
  1315. .breadBox {
  1316. width: 100%;
  1317. height: 24px;
  1318. display: flex;
  1319. justify-content: space-between;
  1320. align-items: center;
  1321. background-color: #D9E0F0;
  1322. }
  1323. :deep(.el-collapse-item__header) {
  1324. height: 24px !important;
  1325. background-color: #EBEFF6 !important;
  1326. }
  1327. .detailBox {
  1328. width: 100%;
  1329. height: 270px;
  1330. }
  1331. :deep(.el-dialog__header) {
  1332. background-color: #ECEFF7;
  1333. margin-right: 0px;
  1334. }
  1335. .fileTable {
  1336. position: relative;
  1337. height: 300px;
  1338. /* overflow-y: auto; */
  1339. }
  1340. .setCli {
  1341. width: 156px;
  1342. height: auto;
  1343. position: absolute;
  1344. top: -70px;
  1345. left: 300px;
  1346. background-color: white;
  1347. border: 1px solid gray;
  1348. border-radius: 4px;
  1349. z-index: 2;
  1350. }
  1351. .setCli1 {
  1352. width: 156px;
  1353. height: auto;
  1354. position: absolute;
  1355. top: 185px;
  1356. left: 155px;
  1357. background-color: white;
  1358. border: 1px solid gray;
  1359. border-radius: 4px;
  1360. z-index: 2;
  1361. }
  1362. .chooseSet {
  1363. width: 140px;
  1364. height: 30px;
  1365. line-height: 30px;
  1366. margin: 5px auto;
  1367. }
  1368. .chooseSet:hover {
  1369. width: 140px;
  1370. height: 30px;
  1371. line-height: 30px;
  1372. margin: 5px auto;
  1373. background-color: #F5F7F9;
  1374. /* color: white; */
  1375. }
  1376. :deep([data-v-69cdaa40] .el-collapse-item__header) {
  1377. padding-left: 10px;
  1378. }
  1379. :deep(.el-collapse-item__content) {
  1380. height: 235px;
  1381. overflow-y: auto;
  1382. }
  1383. .ellipsis-text {
  1384. white-space: nowrap;
  1385. overflow: hidden;
  1386. text-overflow: ellipsis;
  1387. max-width: auto;
  1388. }
  1389. .transBox {
  1390. width: 550px;
  1391. height: 400px;
  1392. margin: 0 auto;
  1393. display: flex;
  1394. justify-content: space-around;
  1395. align-items: center;
  1396. border: 1px solid black;
  1397. }
  1398. .allBag {
  1399. width: 255px;
  1400. height: 380px;
  1401. border: 1px solid green;
  1402. }
  1403. .needBag {
  1404. width: 255px;
  1405. height: 380px;
  1406. border: 1px solid green;
  1407. }
  1408. .allLog {
  1409. width: 245px;
  1410. height: 330px;
  1411. margin: 5px auto;
  1412. border: 1px solid red;
  1413. overflow-y: auto;
  1414. }
  1415. .needLog {
  1416. width: 245px;
  1417. height: 330px;
  1418. margin: 5px auto;
  1419. border: 1px solid red;
  1420. overflow-y: auto;
  1421. text-align: center;
  1422. }
  1423. .tagtag {
  1424. display: flex;
  1425. justify-content: space-between;
  1426. align-items: center;
  1427. text-align: start;
  1428. width: 230px;
  1429. margin: 0 auto;
  1430. }
  1431. :deep(.el-tag__content) {
  1432. display: block;
  1433. }
  1434. :deep(.el-icon el-tag__close) {
  1435. display: block;
  1436. }
  1437. </style>