MyFile.vue 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928
  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="createNewMenu">
  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: 540px;">
  22. <!-- v-for盒子 -->
  23. <template v-for="(item, index) in fileMenu">
  24. <div class="setBox" @click="changeFile">
  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>重命名</el-dropdown-item>
  32. <el-dropdown-item @click="delBoser(item)">删除</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>{{ item.dirName }}</p>
  38. </div>
  39. </template>
  40. </div>
  41. <div>
  42. <p>
  43. <span style="margin-left: 10px;">5G/1T</span>
  44. <span style="margin-left: 10rem;font-size: 12px;color: blue;cursor: pointer;"
  45. @click="askApply">申请扩容</span>
  46. </p>
  47. <el-progress style="margin-left: 8px;" :percentage="50" />
  48. </div>
  49. </div>
  50. <!-- 右侧大盒子 -->
  51. <div class="mesBox">
  52. <!-- 功能盒子 -->
  53. <div class="useBox">
  54. <!-- table切换 -->
  55. <div style="width: 100%;height: 24px;background-color: #7084B4;line-height: 20px;">
  56. <template v-for="(item, index) in menuList">
  57. <span @click="tableChange(item, index)"
  58. :class="['tables', { tableLis: selectedIndex === index }]">
  59. {{ item.name }}
  60. <img v-if="selectedIndex === index ? true : false"
  61. style="position: absolute;top: 4px;right: 4px;" src="../../assets/images/close.png"
  62. @click="shotdown(item)">
  63. </span>
  64. </template>
  65. </div>
  66. <!-- 众多功能 -->
  67. <div class="manyUse">
  68. <div
  69. style="display: flex;width: 82px;height: 32px;justify-content: flex-start;align-items: center;">
  70. <div style="margin-left: 5px;">
  71. <el-icon
  72. style="background-color: #7084B4;width: 24px;height: 24px;border-radius: 50%;color: white;">
  73. <Plus />
  74. </el-icon>
  75. </div>
  76. <div style="margin-left: 5px;">
  77. <span style="font-size: 14px;">新建</span>
  78. </div>
  79. </div>
  80. <template v-for="(item, index) in useMenu">
  81. <div
  82. style="display: flex;width: 82px;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;">
  83. <div style="margin-left: 5px;">
  84. <img :src="item.img" style="width: 24px;height: 24px;" alt="">
  85. </div>
  86. <div style="margin-left: 5px;">
  87. <span style="font-size: 14px;">{{ item.name }}</span>
  88. </div>
  89. </div>
  90. </template>
  91. <div
  92. style="display: flex;width: 92px;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;">
  93. <div style="margin-left: 5px;">
  94. <img src="../../assets/images/upload.png" style="width: 24px;height: 24px;" alt="">
  95. </div>
  96. <div style="margin-left: 5px;">
  97. <el-dropdown trigger="click">
  98. <span style="color: black;cursor: pointer;">上传
  99. <el-icon>
  100. <arrow-down />
  101. </el-icon>
  102. </span>
  103. <template #dropdown>
  104. <el-dropdown-menu>
  105. <el-dropdown-item @click="fileUpload">
  106. <img src="../../assets/images/file.png" alt="">
  107. <span id="uploadButton">上传</span>
  108. <input id="fileInput" type="file" style="display: none;">
  109. </el-dropdown-item>
  110. <template v-for="(item, index) in arrorMenu">
  111. <el-dropdown-item>
  112. <img :src="item.img" alt="">
  113. <span>{{ item.name }}</span>
  114. </el-dropdown-item>
  115. </template>
  116. </el-dropdown-menu>
  117. </template>
  118. </el-dropdown>
  119. </div>
  120. </div>
  121. </div>
  122. <!-- 面包屑功能栏 -->
  123. <div class="breadBox">
  124. <!-- 左侧 -->
  125. <div style="display: flex;justify-content: space-around;align-items: center;">
  126. <!-- 前进后退 -->
  127. <div style="display: flex;justify-content: space-around;align-items: center;">
  128. <img style="display:block;width: 11px;height: 11px;" :src="blueLeft" alt="">
  129. <img style="display:block;width: 16px;height: 16px;" :src="grayRight" alt="">
  130. </div>
  131. <!-- 面包屑 -->
  132. <div>
  133. <el-breadcrumb separator="/">
  134. <el-breadcrumb-item style="font-size: 12px;">homepage</el-breadcrumb-item>
  135. <el-breadcrumb-item style="font-size: 12px;">promotion management</el-breadcrumb-item>
  136. <el-breadcrumb-item style="font-size: 12px;">promotion detail</el-breadcrumb-item>
  137. </el-breadcrumb>
  138. </div>
  139. </div>
  140. <!-- 右侧 -->
  141. <div>
  142. <img :src="sort" alt="">
  143. <img :src="squre" alt="">
  144. </div>
  145. </div>
  146. </div>
  147. <!-- 展示文件夹盒子 -->
  148. <div>
  149. <!-- 文件夹 -->
  150. <div class="detailBox">
  151. <el-collapse v-model="folder" accordion class="collapse">
  152. <el-collapse-item title="文件夹" name="1" class="custom-collapse-item">
  153. </el-collapse-item>
  154. </el-collapse>
  155. </div>
  156. <!-- 文件 -->
  157. <div class="fileTable">
  158. <el-collapse v-model="files" accordion class="collapse">
  159. <el-collapse-item title="文件" name="2" class="">
  160. <el-table :data="fileList" style="width: 100%" @row-click="handleRowClick">
  161. <!-- <el-table-column label="Image" width="100">
  162. <template slot-scope="scope">
  163. <img :src="fileBox" alt="" />
  164. </template>
  165. </el-table-column> -->
  166. <el-table-column prop="fileName" label="名称" width="180" />
  167. <el-table-column prop="createTime" label="时间" width="180" />
  168. <el-table-column prop="fileType" label="类型" />
  169. <el-table-column prop="fileSize" label="大小" />
  170. </el-table>
  171. <div class="setCli" v-if="cliCC">
  172. <template v-for="(item, index) in mouseCli">
  173. <p @click="chooseSet(item, index)" class="chooseSet">
  174. <img :src="item.img" alt="">
  175. {{ item.name }}
  176. <span v-if="item.name == '在线编辑' || item.name == '协作' ? true : false"
  177. style="color: #7084B4;float: right;position: relative;">></span>
  178. </p>
  179. </template>
  180. <div class="setCli1" v-if="anyP">
  181. <p @click="chooseSet1()" class="chooseSet">
  182. <img :src="user" alt="">
  183. 选择人员
  184. </p>
  185. <p class="chooseSet">
  186. <img :src="archiveTray" alt="">
  187. 归档
  188. </p>
  189. </div>
  190. </div>
  191. </el-collapse-item>
  192. </el-collapse>
  193. </div>
  194. <!-- 穿梭框 -->
  195. <div>
  196. <el-dialog v-model="transferModal" title="分享" width="40%">
  197. <el-transfer v-model="tranvalue" filterable :filter-method="filterMethod"
  198. filter-placeholder="State Abbreviations" :data="trandata" />
  199. <template #footer>
  200. <span class="dialog-footer">
  201. <el-button @click="transferModal = false">取消</el-button>
  202. <el-button type="primary" @click="transferSure">
  203. 确定
  204. </el-button>
  205. </span>
  206. </template>
  207. </el-dialog>
  208. </div>
  209. </div>
  210. </div>
  211. <!-- 扩容弹窗 -->
  212. <div>
  213. <el-dialog v-model="askTo" title="扩容申请" width="30%">
  214. <el-form>
  215. <el-form-item label="新容量">
  216. <el-input-number v-model="askNum" :min="1" :max="10" />
  217. </el-form-item>
  218. <el-form-item label="申请理由">
  219. <el-input v-model="askTalk" maxlength="150" placeholder="请输入申请理由" show-word-limit
  220. type="textarea" />
  221. </el-form-item>
  222. </el-form>
  223. <template #footer>
  224. <span class="dialog-footer">
  225. <el-button @click="askTo = false">取消</el-button>
  226. <el-button type="primary" @click="sureAsk">
  227. 确定
  228. </el-button>
  229. </span>
  230. </template>
  231. </el-dialog>
  232. </div>
  233. <!-- 新增中栏下方菜单弹窗 -->
  234. <div>
  235. <el-dialog v-model="addBoser" title="Tips" width="30%">
  236. <el-form :model="boserForm" label-width="120px">
  237. <el-form-item label="空间id">
  238. <el-input v-model="boserForm.spaceId" />
  239. </el-form-item>
  240. <el-form-item label="目录类型">
  241. <el-input v-model="boserForm.dirType" />
  242. </el-form-item>
  243. <el-form-item label="目录权限">
  244. <el-input v-model="boserForm.dirPower" />
  245. </el-form-item>
  246. <el-form-item label="目录名称">
  247. <el-input v-model="boserForm.dirName" />
  248. </el-form-item>
  249. <el-form-item label="父目录id">
  250. <el-input v-model="boserForm.parentId" />
  251. </el-form-item>
  252. <el-form-item label="备注">
  253. <el-input v-model="boserForm.remark" />
  254. </el-form-item>
  255. </el-form>
  256. <template #footer>
  257. <span class="dialog-footer">
  258. <el-button @click="addBoser = false">取消</el-button>
  259. <el-button type="primary" @click="sureAddBoser">
  260. 确认
  261. </el-button>
  262. </span>
  263. </template>
  264. </el-dialog>
  265. </div>
  266. <div>
  267. <el-dialog v-model="addFile" title="Tips" width="30%">
  268. <el-form :model="fileForm" label-width="120px">
  269. <el-form-item label="空间id">
  270. <el-input v-model="fileForm.spaceId" />
  271. </el-form-item>
  272. <el-form-item label="目录id">
  273. <el-input v-model="fileForm.dirId" />
  274. </el-form-item>
  275. <el-form-item label="文件名称">
  276. <el-input v-model="fileForm.fileName" />
  277. </el-form-item>
  278. <el-form-item label="文件id">
  279. <el-input v-model="fileForm.fileId" />
  280. </el-form-item>
  281. <el-form-item label="文件大小">
  282. <el-input v-model="fileForm.fileSize" />
  283. </el-form-item>
  284. <el-form-item label="文件类型">
  285. <el-input v-model="fileForm.fileType" />
  286. </el-form-item>
  287. <el-form-item label="备注">
  288. <el-input v-model="fileForm.remark" />
  289. </el-form-item>
  290. </el-form>
  291. <template #footer>
  292. <span class="dialog-footer">
  293. <el-button @click="addFile = false">取消</el-button>
  294. <el-button type="primary" @click="sureAddFile">
  295. 确认
  296. </el-button>
  297. </span>
  298. </template>
  299. </el-dialog>
  300. </div>
  301. </div>
  302. </div>
  303. </template>
  304. <script>
  305. import { ref } from 'vue'
  306. import myfile from '../../api/myfile/myfile'
  307. import space from '../../api/space/space'
  308. import documents from '../../api/document/document'
  309. import { Search } from '@element-plus/icons-vue'
  310. import copy from '../../assets/images/copy.png'
  311. import clipboard from '../../assets/images/clipboard.png'
  312. import share from '../../assets/images/share.png'
  313. import trash from '../../assets/images/trash.png'
  314. import file from '../../assets/images/file.png'
  315. import folder from '../../assets/images/folder.png'
  316. import image from '../../assets/images/image.png'
  317. import filmSlate from '../../assets/images/filmSlate.png'
  318. import musicNotes from '../../assets/images/musicNotes.png'
  319. import blueLeft from '../../assets/images/blueLeft.png'
  320. import grayRight from "../../assets/images/grayRight.png"
  321. import sort from '../../assets/images/sort.png'
  322. import squre from '../../assets/images/squre.png'
  323. import addolder from '../../assets/images/addolder.png'
  324. import textbox from '../../assets/images/textbox.png'
  325. import goon from '../../assets/images/goon.png'
  326. import notePencil from '../../assets/images/notePencil.png'
  327. import togger from '../../assets/images/togger.png'
  328. import icc from '../../assets/images/icc.png'
  329. import history from '../../assets/images/history.png'
  330. import fileBox from '../../assets/images/fileBox.png'
  331. import user from '../../assets/images/user.png'
  332. import archiveTray from '../../assets/images/archiveTray.png'
  333. import { ElMessage } from 'element-plus'
  334. export default {
  335. setup() {
  336. let searchFire = ref('')
  337. let selectedIndex = ref(0)
  338. let folder = ref(['1'])
  339. let files = ref(['2'])
  340. let folderList = ref([])
  341. let askTo = ref(false)
  342. let askNum = ref(1)
  343. let askTalk = ref('')
  344. let cliCC = ref(false)
  345. let transferModal = ref(false)
  346. let addBoser = ref(false)
  347. let addFile = ref(false)
  348. let anyP = ref(false)
  349. let clickRowId = ref("")
  350. let trandata = ref(generateData())
  351. let tranvalue = ref([])
  352. let boserForm = ref({
  353. spaceId: "",//空间id
  354. dirName: "",
  355. dirPower: "",
  356. dirType: "",
  357. parentId: "",
  358. remark: ""//备注
  359. })
  360. let fileForm = ref({
  361. dirId: '',
  362. fileId: "",
  363. fileName: "",
  364. fileSize: '',
  365. fileType: "",
  366. remark: "",
  367. spaceId: '',
  368. })
  369. let fileList = ref([
  370. {
  371. date: '2016-05-03',
  372. name: 'Tom',
  373. address: 'No. 189, Grove St, Los Angeles',
  374. },
  375. {
  376. date: '2016-05-02',
  377. name: 'Tom',
  378. address: 'No. 189, Grove St, Los Angeles',
  379. },
  380. {
  381. date: '2016-05-04',
  382. name: 'Tom',
  383. address: 'No. 189, Grove St, Los Angeles',
  384. },
  385. {
  386. date: '2016-05-01',
  387. name: 'Tom',
  388. address: 'No. 189, Grove St, Los Angeles',
  389. },
  390. ])
  391. let menuList = ref([
  392. {
  393. name: "标签1",
  394. choose: "1"
  395. },
  396. {
  397. name: "标签2",
  398. choose: "2"
  399. },
  400. ])
  401. let useMenu = ref([
  402. {
  403. img: copy,
  404. name: "复制"
  405. },
  406. {
  407. img: clipboard,
  408. name: "粘贴"
  409. },
  410. {
  411. img: share,
  412. name: "分享给"
  413. },
  414. {
  415. img: trash,
  416. name: "删除"
  417. },
  418. ])
  419. let arrorMenu = ref([
  420. // {
  421. // img: file,
  422. // name: "文件"
  423. // },
  424. {
  425. img: folder,
  426. name: '文件夹'
  427. },
  428. {
  429. img: image,
  430. name: "图片"
  431. },
  432. {
  433. img: filmSlate,
  434. name: "视频"
  435. },
  436. {
  437. img: musicNotes,
  438. name: "音频"
  439. }
  440. ])
  441. let mouseCli = ref([
  442. {
  443. img: addolder,
  444. name: "移动",
  445. },
  446. {
  447. img: copy,
  448. name: "复制",
  449. },
  450. {
  451. img: clipboard,
  452. name: "粘贴"
  453. },
  454. {
  455. img: textbox,
  456. name: "重命名"
  457. },
  458. {
  459. img: goon,
  460. name: "发送"
  461. },
  462. {
  463. img: share,
  464. name: "分享"
  465. },
  466. {
  467. img: notePencil,
  468. name: "在线编辑"
  469. },
  470. {
  471. img: togger,
  472. name: "协作"
  473. },
  474. {
  475. img: icc,
  476. name: "文字识别"
  477. },
  478. {
  479. img: history,
  480. name: "历史版本"
  481. },
  482. {
  483. img: share,
  484. name: "删除"
  485. }
  486. ])
  487. let fileMenu = ref([])
  488. function getAll() {
  489. myfile.getAllFileMenu({}).then(res => {
  490. if (res.code === 200) {
  491. fileList.value = res.rows
  492. }
  493. })
  494. }
  495. function changeFile(row) {
  496. }
  497. // tableMenu切换
  498. function tableChange(row, num) {
  499. this.selectedIndex = num
  500. }
  501. // x图标事件
  502. function shotdown(row) {
  503. this.menuList = this.menuList.filter(item => item.name !== row.name)
  504. }
  505. // 文件名表格每一行点击事件
  506. function handleRowClick(row) {
  507. clickRowId.value = row.dirId
  508. cliCC.value = true
  509. }
  510. // 申请扩容
  511. function askApply() {
  512. this.askTo = true
  513. }
  514. function sureAsk() {
  515. this.askTo = false
  516. }
  517. //mouse弹框
  518. function chooseSet(row, num) {
  519. console.log(row, '1');
  520. if (row.name == '在线编辑' || row.name == '协作') {
  521. cliCC.value = true
  522. } else {
  523. cliCC.value = false
  524. }
  525. if (row.name == '分享') {
  526. transferModal.value = true
  527. } else {
  528. transferModal.value = false
  529. }
  530. if (row.name == '协作') {
  531. anyP.value = true
  532. } else {
  533. anyP.value = false
  534. }
  535. if (row.name == '删除') {
  536. myfile.delMenu(clickRowId.value).then(res => {
  537. console.log(res, 'sss');
  538. })
  539. }
  540. }
  541. function chooseSet1() {
  542. transferModal.value = true
  543. anyP.value = false
  544. }
  545. function generateData() {
  546. const data = []
  547. const states = [
  548. 'California',
  549. 'Illinois',
  550. 'Maryland',
  551. 'Texas',
  552. 'Florida',
  553. 'Colorado',
  554. 'Connecticut ',
  555. ]
  556. const initials = ['CA', 'IL', 'MD', 'TX', 'FL', 'CO', 'CT']
  557. states.forEach((city, index) => {
  558. data.push({
  559. label: city,
  560. key: index,
  561. initial: initials[index],
  562. })
  563. })
  564. return data
  565. }
  566. function filterMethod(query, item) {
  567. return item.initial.toLowerCase().includes(query.toLowerCase())
  568. }
  569. function getSpace() {
  570. }
  571. function createNewMenu() {
  572. addBoser.value = true
  573. }
  574. // 新增中栏下方数据
  575. function sureAddBoser() {
  576. documents.addDocument({
  577. "dirName": boserForm.value.dirName,
  578. "dirRole": boserForm.value.dirPower,
  579. "dirType": boserForm.value.dirType,
  580. "parentId": boserForm.value.parentId,
  581. "remark": boserForm.value.remark,
  582. "spaceId": boserForm.value.spaceId,
  583. }).then(res => {
  584. if (res.code === 200) {
  585. ElMessage({
  586. message: '添加成功',
  587. type: 'success',
  588. })
  589. }
  590. addBoser.value = false
  591. getAllText()
  592. })
  593. }
  594. // 删除中栏下方数据
  595. function delBoser(row) {
  596. documents.delDocument(row.dirId).then(res => {
  597. if (res.code === 200) {
  598. ElMessage({
  599. message: "删除成功",
  600. type: "success"
  601. })
  602. getAllText()
  603. }
  604. })
  605. }
  606. function getAllText() {
  607. documents.getALLdocument({}).then(res => {
  608. fileMenu.value = res.data
  609. })
  610. }
  611. function createNewFile() {
  612. addFile.value = true
  613. }
  614. function sureAddFile() {
  615. myfile.addNewMenu(
  616. {
  617. "dirId": fileForm.value.dirId - 0,
  618. "fileId": fileForm.value.fileId - 0,
  619. "fileName": fileForm.value.fileName,
  620. "fileSize": fileForm.value.fileSize,
  621. "fileType": fileForm.value.fileType,
  622. "remark": fileForm.value.remark,
  623. "spaceId": fileForm.value.spaceId - 0,
  624. }
  625. ).then(res => {
  626. if (res.code === 200) {
  627. ElMessage({
  628. message: "新增成功",
  629. type: "success"
  630. })
  631. getAll()
  632. addFile.value = false
  633. } else {
  634. ElMessage({
  635. message: "请检查错误",
  636. type: "warning"
  637. })
  638. }
  639. })
  640. }
  641. function fileUpload() {
  642. const fileInput = document.getElementById('fileInput');
  643. const uploadButton = document.getElementById('uploadButton');
  644. // 监听按钮点击事件
  645. uploadButton.addEventListener('click', function () {
  646. // 模拟点击文件上传输入框
  647. fileInput.click();
  648. });
  649. // 监听文件选择事件
  650. fileInput.addEventListener('change', function () {
  651. const files = fileInput.files[0]; // 获取选择的文件
  652. myfile.uploadFile({
  653. spaceId: 1,
  654. dirId: 1,
  655. file: files
  656. }).then(res => {
  657. console.log(res, '222');
  658. if(res.code ===200){
  659. ElMessage({
  660. message:"上传文件成功",
  661. type:"success"
  662. })
  663. getAll()
  664. }
  665. })
  666. });
  667. }
  668. return {
  669. folderList,//文件夹的数据
  670. fileList,//文件夹的数据
  671. getAll,//拿到数据的方法
  672. searchFire,//搜索文件的model
  673. changeFile,//切换右侧视图的file
  674. menuList,//右侧切换
  675. tableChange,//改变class点击事件
  676. selectedIndex,//当前选中下标
  677. shotdown,//筛选出当前数据
  678. useMenu,
  679. arrorMenu,
  680. blueLeft,//返回
  681. grayRight,//前进
  682. squre,//视图切换
  683. sort,//排序
  684. folder,
  685. files,
  686. handleRowClick,
  687. askApply,//申请扩容
  688. askTo,
  689. sureAsk,
  690. askNum,
  691. askTalk,
  692. cliCC,
  693. addolder,//图片↓
  694. textbox,
  695. goon,
  696. notePencil,
  697. togger,
  698. icc,
  699. history,
  700. mouseCli,//文件点击弹框
  701. chooseSet,
  702. fileBox,
  703. transferModal,
  704. generateData,
  705. filterMethod,
  706. trandata,
  707. tranvalue,
  708. archiveTray,//协作图标
  709. user,//用户图标
  710. anyP,
  711. chooseSet1,
  712. getSpace,//获取内存空间
  713. fileMenu,
  714. addBoser,
  715. boserForm,
  716. createNewMenu,
  717. sureAddBoser,
  718. delBoser,
  719. getAllText,
  720. clickRowId,
  721. addFile,
  722. createNewFile,
  723. fileForm,
  724. sureAddFile,
  725. fileUpload,
  726. }
  727. },
  728. created() {
  729. this.getAll();
  730. this.getSpace()
  731. this.getAllText()
  732. },
  733. }
  734. </script>
  735. <style scoped>
  736. p {
  737. margin: 0;
  738. padding: 0;
  739. }
  740. .bigBox {
  741. display: flex;
  742. justify-content: flex-start;
  743. }
  744. .settingBox {
  745. width: 342px;
  746. height: 666px;
  747. border: 2px solid black;
  748. border-radius: 4px;
  749. /* margin: 5px 5px; */
  750. margin-right: 15px;
  751. background-color: white;
  752. }
  753. .topSearch {
  754. width: 100%;
  755. height: 48px;
  756. background-color: #EBEFF6;
  757. display: flex;
  758. justify-content: space-around;
  759. align-items: center;
  760. }
  761. .searchFire {
  762. width: 248px;
  763. height: 32px;
  764. }
  765. .setBox {
  766. width: 88px;
  767. height: 112px;
  768. text-align: center;
  769. margin-left: 12px;
  770. margin-top: 5px;
  771. position: relative;
  772. }
  773. .setBox:hover {
  774. background-color: #EEF9FF;
  775. }
  776. .setBox:hover .selectChe {
  777. background-color: #EEF9FF;
  778. display: block;
  779. }
  780. .selectChe {
  781. display: none;
  782. width: 20px;
  783. height: 20px;
  784. background: rgba(255, 255, 255, 0.7);
  785. border-radius: 4px 4px 4px 4px;
  786. position: absolute;
  787. top: 2px;
  788. right: 2px;
  789. line-height: 10px;
  790. }
  791. .mesBox {
  792. width: 70vw;
  793. height: 666px;
  794. /* margin: 5px 5px; */
  795. border-radius: 4px;
  796. background-color: white;
  797. }
  798. .useBox {
  799. width: 100%;
  800. height: 96px;
  801. }
  802. .tables {
  803. display: inline-block;
  804. width: 112px;
  805. height: 22px;
  806. border-radius: 4px;
  807. line-height: 21px;
  808. text-align: center;
  809. font-size: 12px;
  810. margin-left: 5px;
  811. position: relative;
  812. }
  813. .tableLis {
  814. display: inline-block;
  815. width: 112px;
  816. height: 22px;
  817. border-radius: 4px;
  818. background-color: #EBEFF6;
  819. line-height: 21px;
  820. text-align: center;
  821. font-size: 12px;
  822. margin-left: 5px;
  823. position: relative;
  824. }
  825. .manyUse {
  826. width: 100%;
  827. height: 48px;
  828. /* background-color: gray; */
  829. line-height: 48px;
  830. display: flex;
  831. justify-content: flex-start;
  832. align-items: center;
  833. }
  834. .el-dropdown-link {
  835. color: white;
  836. }
  837. .breadBox {
  838. width: 100%;
  839. height: 24px;
  840. display: flex;
  841. justify-content: space-between;
  842. align-items: center;
  843. background-color: #D9E0F0;
  844. }
  845. ::v-deep .el-collapse-item__header {
  846. height: 24px !important;
  847. background-color: #EBEFF6 !important;
  848. }
  849. .detailBox {
  850. width: 100%;
  851. height: 270px;
  852. }
  853. ::v-deep .el-dialog__header {
  854. background-color: #ECEFF7;
  855. margin-right: 0px;
  856. }
  857. .fileTable {
  858. position: relative;
  859. }
  860. .setCli {
  861. width: 156px;
  862. height: auto;
  863. position: absolute;
  864. top: -70px;
  865. left: 300px;
  866. background-color: white;
  867. border: 1px solid gray;
  868. border-radius: 4px;
  869. z-index: 2;
  870. }
  871. .setCli1 {
  872. width: 156px;
  873. height: auto;
  874. position: absolute;
  875. top: 185px;
  876. left: 155px;
  877. background-color: white;
  878. border: 1px solid gray;
  879. border-radius: 4px;
  880. z-index: 2;
  881. }
  882. .chooseSet {
  883. width: 100%;
  884. height: 30px;
  885. line-height: 30px;
  886. }
  887. .chooseSet:hover {
  888. width: 100%;
  889. height: 30px;
  890. line-height: 30px;
  891. background-color: #8693b2;
  892. color: white;
  893. }
  894. ::v-deep [data-v-69cdaa40] .el-collapse-item__header {
  895. padding-left: 10px;
  896. }
  897. </style>