aiOffice.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <div class="teacherDevelop">
  3. <topBar title="智能教务" detail="日常资料收集 · AI智能分析 · 会议智能转录 · 平台账号管理"></topBar>
  4. <div class="cardBox">
  5. <card v-for="item in cardData(cardArray)" :key="item.title" :title="item.title" :icon="item.icon" :to="item.to" :type="item.type"></card>
  6. </div>
  7. </div>
  8. </template>
  9. <script>
  10. import topBar from './components/topBar'
  11. import card from './components/card.vue';
  12. export default {
  13. components: {
  14. topBar,
  15. card
  16. },
  17. data() {
  18. return {
  19. role: this.$route.query.role,
  20. cardArray: [
  21. { title: '资料收集', icon: require('../../../assets/icon/liyuan/zlsj.svg'), type: 1, to: "/teadTest",role:0 },
  22. { title: '会议妙记', icon: require('../../../assets/icon/liyuan/hymj.svg'), type: 2, to: `/aigpt/#/cocoFlowConferenceTrick?userid=${this.$route.query.userid}&oid=${this.$route.query.oid}&role=${this.$route.query.role}&tType=${this.$route.query.tType}&org=${this.$route.query.org}&gotype=1`,role:0 },
  23. { title: '教师管理', icon: require('../../../assets/icon/liyuan/teamange.svg'), type: 1, to: "/teacher",role:1 },
  24. { title: '学生管理', icon: require('../../../assets/icon/liyuan/stumange.svg'), type: 1, to: "/Listudent",role:0 },
  25. { title: '办公表单', icon: require('../../../assets/icon/liyuan/workTest.svg'), type: 1, to: "/test",role:1 },
  26. ]
  27. }
  28. },
  29. computed:{
  30. // 进行权限判断一些只有管理员能看
  31. cardData(){
  32. return (val)=>{
  33. let com = val.filter(e=> e.role==0 || (this.role == 1 && e.role == 1) )
  34. return com
  35. }
  36. }
  37. }
  38. }
  39. </script>
  40. <style scoped>
  41. .teacherDevelop{
  42. width: 100%;
  43. height: 100%;
  44. padding: 40px 90px;
  45. box-sizing: border-box;
  46. background: #FAFAFA;
  47. }
  48. .cardBox{
  49. display: grid;
  50. grid-template-columns: repeat(5, 1fr);
  51. gap: 20px;
  52. width: 100%;
  53. margin-top: 20px;
  54. }
  55. </style>