index.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <template>
  2. <div class="classroomObservation">
  3. <!-- <div class="co-header1">
  4. <div class="co-h1-left">
  5. <span class="co-h1-l-icon el-icon-s-home"></span>
  6. <div class="co-h1-l-router">
  7. <span class="co-h1-l-r-up" @click="goTo('ai助手')">AI助手</span>
  8. <span class="co-h1-l-r-rightIcon el-icon-arrow-right"></span>
  9. <span class="co-j1-l-r-down">课堂观察</span>
  10. </div>
  11. </div>
  12. </div> -->
  13. <div class="co-header2">
  14. <div class="co-h2-left">
  15. <!-- <span class="co-h2-l-icon"></span> -->
  16. <!-- <span class="co-h2-l-hr"></span> -->
  17. <span class="co-h2-l-text">{{ title }}</span>
  18. </div>
  19. <div class="co-h2-right">
  20. <div class="co-h2-r-btn co-h2-r-blueBtn" @click.stop="getReport()">
  21. <span class="co-h2-r-b-icon1"></span>
  22. <div>生成报告</div>
  23. </div>
  24. <div class="co-h2-r-btn" @click.stop="preview()">
  25. <!-- <span class="co-h2-r-b-icon2"></span> -->
  26. <div>预览</div>
  27. </div>
  28. <div class="co-h2-r-btn" @click.stop="share()">
  29. <!-- <span class="co-h2-r-b-icon2"></span> -->
  30. <div>分享</div>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="co-main">
  35. <div class="co-m-left">
  36. <chatArea/>
  37. </div>
  38. <div class="co-m-right">
  39. <messageArea/>
  40. </div>
  41. </div>
  42. </div>
  43. </template>
  44. <script>
  45. // 聊天区域
  46. import chatArea from './components/chatArea.vue'
  47. // 信息区域
  48. import messageArea from './components/messageArea.vue'
  49. export default {
  50. components:{
  51. chatArea,
  52. messageArea
  53. },
  54. data(){
  55. return{
  56. title:"20240410课堂实录"
  57. }
  58. },
  59. methods: {
  60. // 跳转
  61. goTo(path){
  62. this.$message.info(`去到:${path}`)
  63. },
  64. // 生成报告
  65. getReport(){
  66. this.$message.info("生成报告")
  67. },
  68. //预览
  69. preview(){
  70. window.parent.postMessage(
  71. {
  72. tools: "classroom_observation_board",
  73. },
  74. "*"
  75. );
  76. },
  77. // 分享
  78. share(){
  79. this.$message.info("分享")
  80. }
  81. },
  82. }
  83. </script>
  84. <style scoped>
  85. .classroomObservation{
  86. width: 100%;
  87. height: 100%;
  88. display: flex;
  89. flex-direction: column;
  90. background-color: #F0F2F5;
  91. }
  92. .co-header1{
  93. width: 100%;
  94. height: 46px;
  95. background-color: #060E17;
  96. display: flex;
  97. align-items: center;
  98. justify-content: space-between;
  99. box-sizing: border-box;
  100. padding: 0 20px;
  101. }
  102. .co-h1-left{
  103. width: auto;
  104. height: 22px;
  105. display: flex;
  106. align-items: center;
  107. box-sizing: border-box;
  108. padding: 0 20px;
  109. }
  110. .co-h1-l-icon{
  111. color: #5D6268;
  112. width: 16px;
  113. height: 16px;
  114. margin-right: 10px;
  115. }
  116. .co-h1-l-router{
  117. display: flex;
  118. align-items: center;
  119. color: white;
  120. font-size: 14px;
  121. }
  122. .co-h1-l-router>span{
  123. margin: 0 5px;
  124. }
  125. .co-h1-l-r-up{
  126. color: #5D6268;
  127. cursor: pointer;
  128. }
  129. .co-h1-l-r-up:hover{
  130. color: white;
  131. }
  132. .co-j1-l-r-down{
  133. cursor: pointer;
  134. }
  135. .co-h1-l-r-rightIcon{
  136. font-size: 16px;
  137. color: #5D6268;
  138. }
  139. .co-header2{
  140. width: 100%;
  141. min-height: 42px;
  142. max-height: 42px;
  143. background-color: white;
  144. display: flex;
  145. align-items: center;
  146. justify-content: space-between;
  147. box-sizing: border-box;
  148. padding: 0 20px;
  149. }
  150. .co-h2-left{
  151. width: auto;
  152. height: 22px;
  153. display: flex;
  154. align-items: center;
  155. font-size: 14px;
  156. }
  157. .co-h2-l-icon{
  158. width: 20px;
  159. height: 20px;
  160. position: relative;
  161. background: url('../../../assets/icon/classroomObservation/close.png') no-repeat;
  162. background-size: 100% 100%;
  163. }
  164. .co-h2-l-hr{
  165. width: 2px;
  166. height: 20px;
  167. background-color: #E7E7E7;
  168. border-radius: 10px;
  169. margin: 0 10px;
  170. }
  171. .co-h2-right{
  172. width: auto;
  173. height: 100%;
  174. display: flex;
  175. align-items: center;
  176. }
  177. .co-h2-r-btn{
  178. width: auto;
  179. box-sizing: border-box;
  180. padding: 0 10px;
  181. height: 30px;
  182. display: flex;
  183. align-items: center;
  184. cursor: pointer;
  185. font-size: 14px;
  186. margin: 0 10px;
  187. box-sizing: border-box;
  188. border: solid 1px #3681FC;
  189. border-radius: 20px;
  190. }
  191. .co-h2-r-btn>span:nth-child(1){
  192. width: 20px;
  193. height: 20px;
  194. margin-right: 8px;
  195. }
  196. .co-h2-r-b-icon1{
  197. background: url("../../../assets/icon/classroomObservation/six.png") no-repeat;
  198. background-size: 100% 100%;
  199. }
  200. .co-h2-r-b-icon2{
  201. background: url("../../../assets/icon/classroomObservation/close.png") no-repeat;
  202. background-size: 100% 100%;
  203. }
  204. .co-h2-r-blueBtn{
  205. background-color: #3681FC;
  206. color: white;
  207. }
  208. .co-main{
  209. width: 100%;
  210. flex: 1;
  211. display: flex;
  212. align-items: center;
  213. justify-content: center;
  214. }
  215. .co-m-left{
  216. height: 100%;
  217. flex: 1;
  218. box-sizing: border-box;
  219. }
  220. .co-m-right{
  221. height: 100%;
  222. flex: 1;
  223. box-sizing: border-box;
  224. }
  225. </style>