account.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <PageWrapper>
  3. <div class="background">
  4. <div class="left">
  5. <el-input
  6. v-model="searchKey"
  7. placeholder="请输入算法信息搜索"
  8. style="margin-top: 24px; height: 32px"
  9. :suffix-icon="Search"
  10. />
  11. </div>
  12. <div class="right">
  13. <div class="right_top"></div>
  14. </div>
  15. <!-- <video :src="address" controls autoplay muted style="width: 100%; height: 100%"> </video> -->
  16. </div>
  17. </PageWrapper>
  18. </template>
  19. <script lang="ts" setup>
  20. import { onMounted, ref, onUnmounted } from 'vue';
  21. import { PageWrapper } from '@/components/Page';
  22. import videojs from 'video.js';
  23. import 'video.js/dist/video-js.css';
  24. import useAlgo from '@/api/dashboard/algoManagement/use-algoData';
  25. import { Search } from '@element-plus/icons-vue';
  26. //调用后端数据
  27. const algoDatas = useAlgo();
  28. const { algoList, getAlgoDatas, algoId, pushLinkPrompt, pushStatement, modifyAlgoDatas } =
  29. algoDatas;
  30. //将后端拉到的数据存到algoListUse数组中进行使用
  31. const algoListUse = ref<any[]>([]);
  32. //刷新时从后端拉一次算法数组
  33. onMounted(() => {
  34. getAlgoDatas().then(() => {
  35. console.log('algoList', algoList.value);
  36. algoListUse.value = algoList.value;
  37. });
  38. });
  39. const address = ref('https://www.w3schools.com/html/movie.mp4');
  40. const searchKey = ref('');
  41. </script>
  42. <style lang="scss" scoped>
  43. .background {
  44. position: relative;
  45. height: 888px;
  46. background-color: white;
  47. display: flex;
  48. flex-direction: row;
  49. .left {
  50. position: relative;
  51. height: 100%;
  52. width: 31%;
  53. padding-left: 1.66%;
  54. padding-right: 1.33%;
  55. // background-color: green;
  56. border-right: #dddddd 1px solid;
  57. display: flex;
  58. flex-direction: column;
  59. .content {
  60. position: relative;
  61. height: 100%;
  62. width: 100%;
  63. background-color: red;
  64. }
  65. }
  66. .right {
  67. position: relative;
  68. height: 100%;
  69. width: 69%;
  70. display: flex;
  71. flex-direction: column;
  72. // background-color: yellow;
  73. .right_top {
  74. position: relative;
  75. height: 364px;
  76. width: 100%;
  77. background-color: rebeccapurple;
  78. }
  79. }
  80. }
  81. </style>