course.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view class="course">
  3. <view class="cour_top">
  4. <view class="f17 co16 fw mb6">请认真完善以下课程表所需内容!</view>
  5. <view class="f15 coa">填写完成后可进行修改。</view>
  6. </view>
  7. <view class="cour_box">
  8. <view class="list flexc" v-if="checkPermi(['course:table:add'])">
  9. <view class="listl">
  10. <image :src="curaimg" class="img1"></image>
  11. </view>
  12. <view class="flex1 mlr12">
  13. <view class="f16 fw5 co16 mb6">填写课程表</view>
  14. <view class="f13 coa">请根据课程表安排填写课程信息并认真核对</view>
  15. </view>
  16. <view class="flex0">
  17. <view class="btn btn1" @click="getAddcourse">去完善</view>
  18. </view>
  19. </view>
  20. <view class="list flexc" v-if="checkPermi(['course:time:add'])">
  21. <view class="listl">
  22. <image :src="curbimg" class="img2"></image>
  23. </view>
  24. <view class="flex1 mlr12">
  25. <view class="f16 fw5 co16 mb6">课程时间</view>
  26. <view class="f13 coa">请根据学校安排填写课程时间并认真核对</view>
  27. </view>
  28. <view class="flex0">
  29. <view class="btn btn2" @click="getTime">去修改</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. // import tabSearch from "@/components/toptab/search.vue"
  37. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  38. export default {
  39. data(){
  40. return{
  41. curaimg:require("@/work/static/examine/cura.png"),
  42. curbimg:require("@/work/static/examine/curb.png"),
  43. }
  44. },
  45. onLoad: function() {
  46. },
  47. methods:{
  48. checkPermi, checkRole,
  49. getAddcourse(){
  50. this.$tab.navigateTo('/work/pages/examine/addcourse')
  51. },
  52. getTime(){
  53. this.$tab.navigateTo('/work/pages/examine/ketime')
  54. },
  55. },
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .cour_top{padding: 60rpx 36rpx;}
  60. .cour_box{padding: 0 36rpx;
  61. .list{width: 100%;min-height:150rpx;background: #FFFFFF;border-radius: 14rpx;padding: 24rpx;box-sizing: border-box;margin-bottom: 36rpx;
  62. .listl{width: 36rpx;height: 36rpx;display: flex;align-items: center;justify-content: center;flex:0 0 auto;
  63. .img1{width: 32rpx;height: 28rpx;}
  64. .img2{width: 30rpx;height: 30rpx;}
  65. }
  66. .btn{min-width: 106rpx;height: 46rpx;border-radius: 14rpx;display: flex;align-items: center;justify-content: center;font-size: 28rpx;padding:0 12rpx;box-sizing: border-box;
  67. &.btn1{background: #1f57e6;color: #FFFFFF;}
  68. &.btn2{border: 1px solid #4775EA;color: #4775EA;}
  69. }
  70. }
  71. }
  72. </style>