Index.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. <template>
  2. <view class="m_container">
  3. <view class="m_left">
  4. <view class="m_hander">
  5. <view class="m_teacher">
  6. <image src="../../assets/login/loginPic2.png" class="m_head_portrait"></image>
  7. <view class="m_teacher_name" v-text="name"></view>
  8. <view class="m_teacher_position" v-text="position"></view>
  9. </view>
  10. </view>
  11. <view class="m_menu">
  12. <view class="m_menu-item_data " v-for="(item,index) in menu" :key="index" @click="checkMenu(item,0)">
  13. <view class="m_menu-item">
  14. <view :class="item.select&&childrenIndex==-1?'m_act':''"></view>
  15. <view class="m_menu_item_icon">
  16. <span class="font_family " :class="item.select&&childrenIndex==-1? item.icon+' m_act1 ':item.icon"></span>
  17. </view>
  18. <view class="m_menu_item_name" :class="item.select&&childrenIndex==-1?'m_act_font':''">{{item.title}}</view>
  19. <!-- <view class="m_menu_right">
  20. <icon :type="''" class="font_family icon-lujing2 " :class="item.select? 'm_act11':''"></icon>
  21. </view> -->
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <vtable ref="vtable" v-show="index==1"></vtable>
  27. <!-- <teacher ref="teacher" v-show="index==1" @paging="paging"></teacher>
  28. <create ref="create" v-show="index==3"></create>
  29. <vtable ref="table" v-show="index==2"></vtable>
  30. <project ref="project" v-show="index==4"></project>
  31. <location ref="location" v-show="index==2||index==4"></location> -->
  32. </view>
  33. </template>
  34. <script>
  35. import vtable from "./table.vue"
  36. export default {
  37. data() {
  38. return {
  39. index: 1,
  40. childrenIndex: -1,
  41. name: '张林老师',
  42. position: '计算机系',
  43. menu: [{
  44. id: 1,
  45. icon: "icon-bianzu22",
  46. select: true,
  47. title: '项目一'
  48. }]
  49. }
  50. },
  51. components: {
  52. vtable
  53. },
  54. methods: {
  55. checkMenu(obj, i) {
  56. this.index = obj.id;
  57. if (i == 0) {
  58. this.index = obj.id;
  59. this.menu.forEach(p => p.select = false);
  60. obj.select = true;
  61. } else {
  62. obj.select = true;
  63. }
  64. },
  65. paging(obj) {
  66. this.index = obj;
  67. },
  68. childrenClick(obj) {
  69. obj.select = true;
  70. },
  71. updateInfo(){
  72. // console.log("onShow_学生项目管理平台");
  73. this.name=mydata_userInfo.Name;
  74. this.position=userController.userInfo.Profession;
  75. },
  76. }
  77. }
  78. </script>
  79. <style scoped lang="scss">
  80. @import '../../assets/icon/iconfont.css';
  81. .m_menu_right {
  82. position: absolute;
  83. right: 50rpx;
  84. top: 50%;
  85. transform: translateY(-50%);
  86. font-size: 30rpx;
  87. }
  88. .m_menu-item_data:hover {
  89. background: #EA252C;
  90. color: #fff;
  91. .m_menu_item_name {
  92. color: #fff;
  93. }
  94. }
  95. .m_menu-item-checked {}
  96. .m_container {
  97. display: flex;
  98. justify-content: space-between;
  99. width: 100%;
  100. height: 100%;
  101. .m_left {
  102. width: 500rpx;
  103. background-color: #fff;
  104. border-right: 10rpx solid #ECECEC;
  105. border-top: 5rpx solid #ECECEC;
  106. box-shadow: 3px 0px 6px 0px rgba(0, 0, 0, 0.1);
  107. .m_hander {
  108. text-align: center;
  109. background-color: #fff;
  110. height: 600rpx;
  111. position: relative;
  112. // margin: 5rpx 10rpx 10rpx 0;
  113. border-bottom: 8rpx solid #ECECEC;
  114. .m_teacher {
  115. position: absolute;
  116. top: 50%;
  117. left: 50%;
  118. transform: translate(-50%, -50%);
  119. }
  120. .m_teacher_name {
  121. font-size: 1.1rem;
  122. font-weight: 600;
  123. padding: 30rpx 0;
  124. font-family: MicrosoftYaHei;
  125. }
  126. .m_head_portrait {
  127. width: 250rpx;
  128. height: 250rpx;
  129. color: #555555;
  130. }
  131. }
  132. }
  133. .m_right {
  134. width: 100%;
  135. margin-top: 5rpx;
  136. // padding: 0 150rpx;
  137. background-color: #fff;
  138. box-shadow: 3px 0px 6px 0px rgba(0, 0, 0, 0.1);
  139. .m_right_hander {
  140. text-align: right;
  141. height: 250rpx;
  142. position: relative;
  143. .m_btn_red {
  144. position: absolute;
  145. height: 80rpx;
  146. line-height: 80rpx;
  147. padding: 0 40rpx;
  148. right: 0;
  149. top: 50%;
  150. transform: translateY(-50%);
  151. background: #EA252C;
  152. color: #fff;
  153. }
  154. }
  155. }
  156. .m_menu-icon {
  157. width: 24rpx;
  158. height: 24rpx;
  159. }
  160. .m_menu {
  161. background-color: #fff;
  162. .m_menu-item {
  163. position: relative;
  164. display: flex;
  165. padding: 20rpx 0;
  166. line-height: 90rpx;
  167. font-weight: 500;
  168. border-bottom: 1px solid #DDDDDD;
  169. .m_menu_item_icon {
  170. width: 100rpx;
  171. text-align: right;
  172. margin-right: 15rpx;
  173. }
  174. .m_menu_item_name {
  175. margin-left: 10rpx;
  176. font-weight: 600;
  177. }
  178. .m_act {
  179. background: #FF0019;
  180. width: 8rpx;
  181. border-radius: 0px 200rpx 200rpx 0px;
  182. position: absolute;
  183. height: 90rpx;
  184. top: 20rpx;
  185. left: 0;
  186. }
  187. }
  188. }
  189. .m_act_font {
  190. // color: #FF0019;
  191. }
  192. }
  193. tbody tr {
  194. border-top: 2rpx solid #DDDDDD !important;
  195. }
  196. tbody tr th {
  197. font-weight: 400 !important;
  198. height: 140rpx;
  199. line-height: 140rpx;
  200. }
  201. tbody tr:hover {
  202. // color: #fff;
  203. background: #FDEBEC;
  204. // opacity: 0.08;
  205. }
  206. .m-table-hander {
  207. background-color: #FFF8F7;
  208. height: 140rpx;
  209. line-height: 140rpx;
  210. font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
  211. font-weight: bold;
  212. }
  213. .m_edit {
  214. position: absolute;
  215. top: 50%;
  216. left: 50%;
  217. transform: translate(-50%, -50%);
  218. background: rgb(67, 127, 250);
  219. color: rgb(255, 255, 255);
  220. min-width: 130rpx;
  221. }
  222. .m_delete {
  223. position: absolute;
  224. top: 50%;
  225. left: 50%;
  226. min-width: 130rpx;
  227. transform: translate(-50%, -50%);
  228. background: rgb(234, 37, 44);
  229. color: rgb(255, 255, 255);
  230. }
  231. .m_right_footer {
  232. margin-top: 80rpx;
  233. }
  234. .m_paging {
  235. text-align: right;
  236. .m_paging_item {
  237. padding: 10rpx 18rpx;
  238. border: 1rpx solid #DDDDDD;
  239. border-radius: 8rpx;
  240. margin-right: 10rpx;
  241. }
  242. .p_act {
  243. background: #EA252C;
  244. color: #fff;
  245. border: inherit;
  246. }
  247. }
  248. .m_paging_item:hover {
  249. background: #EA252C;
  250. color: #fff;
  251. border: inherit;
  252. }
  253. .m_act1 {
  254. color: #FF0019;
  255. }
  256. .m_act11 {
  257. // color: #FF0019;
  258. transform: rotate(90deg);
  259. transition: all 500ms ease;
  260. }
  261. .s_logo {
  262. width: 100%;
  263. height: 1000rpx;
  264. }
  265. .s_content_container {
  266. padding: 0 206rpx;
  267. .s_title {
  268. font-weight: bold;
  269. text-align: center;
  270. line-height: 200rpx;
  271. font-size: 45rpx;
  272. }
  273. .s_content {
  274. font-weight: 500;
  275. font-size: 40rpx;
  276. line-height: 70rpx;
  277. }
  278. }
  279. .m_btn_download {
  280. height: 80rpx;
  281. line-height: 80rpx;
  282. padding: 0 70rpx;
  283. background: #EA252C;
  284. color: #fff;
  285. font-family: MicrosoftYaHei;
  286. }
  287. .m_menu-item-checked .m_menu_item_name {
  288. line-height: 70rpx;
  289. text-align: center;
  290. }
  291. .m_menu-item-checked .cact {
  292. color: #EA252C;
  293. }
  294. </style>