Browse Source

荔园添加教研室管理

11wqe1 6 days ago
parent
commit
d3c20ac2d3

+ 9 - 6
src/components/pages/liyuan/CourseCon.vue

@@ -46,11 +46,12 @@
               {{ i.title }}
           </div>
           <div style="display: flex;gap: 10px;color: #969BA3;font-size: 14px;">
-              <span v-if="i.state == 1">阶段模式</span>
+              <!-- <span v-if="i.state == 1">阶段模式</span>
               <span v-if="i.state == 2">任务模式</span>
               <span v-if="i.state == 3">极简模式</span>
               <span v-if="i.state == 4 || i.state == 5">ai模式</span>
-              <span v-if="i.state == 6">上课模式</span>
+              <span v-if="i.state == 6">上课模式</span> -->
+              <span>{{ i.uname }}</span>
               <span>@{{ i.school }}</span>
 
             </div>
@@ -61,7 +62,10 @@
               : mr
               " alt />
           <div class="foot">
-            <img style="cursor: pointer;" @click="goToCourse(i.courseId,i.userid)" src="../../../assets/icon/liyuan/courseEditC.svg" alt="">
+            <img style="cursor: pointer;"
+            v-if="i.userid == userid" 
+            @click="goToCourse(i.courseId)" 
+            src="../../../assets/icon/liyuan/courseEditC.svg" alt="">
             <div class="ent" @click="entCourse(i)">进入</div>
           </div>
         </div>
@@ -260,8 +264,7 @@ export default {
       
        window.topU.postMessage({ cid: item.courseId, screenType: "3" }, "*");
     },
-    goToCourse(courseId,uid) {
-        if (this.userid != uid) return this.$message.info('课程创建者才可编辑哦')
+    goToCourse(courseId) {
         sessionStorage.setItem('gotype', 'backCourseCon');
 
         this.goToCourse4(courseId)
@@ -309,7 +312,7 @@ export default {
   display: flex;
   flex-direction: column;
   width: 100%;
-  height: 100%;
+  min-height: 100%;
   padding: 40px 90px;
   box-sizing: border-box;
   background: #FAFAFA;

+ 2 - 1
src/components/pages/liyuan/aiOffice.vue

@@ -24,6 +24,7 @@ export default {
         { title: '教师管理', icon: require('../../../assets/icon/liyuan/teamange.svg'), type: 1, to: "/teacher",role:1 },
         { title: '学生管理', icon: require('../../../assets/icon/liyuan/stumange.svg'), type: 1, to: "/Listudent",role:0 },
         { title: '办公表单', icon: require('../../../assets/icon/liyuan/workTest.svg'), type: 1, to: "/test",role:1 },
+        { title: '教研室管理', icon: require('../../../assets/icon/liyuan/workTest.svg'), type: 1, to: "/teacherOffice",role:1 },
       ]
     }
   },
@@ -50,7 +51,7 @@ export default {
 
 .cardBox{
   display: grid;
-  grid-template-columns: repeat(5, 1fr);
+  grid-template-columns: repeat(6, 1fr);
   gap: 20px;
   width: 100%;
   margin-top: 20px;

+ 6 - 0
src/components/pages/teacherOffice/index.vue

@@ -1,5 +1,7 @@
 <template>
   <div class="pb_content" style="background: unset">
+    <backPage style="padding: 40px 0 0;width: 94%;margin: auto;" v-if="gotype " tit="智能表单"></backPage>
+
     <div v-if="ctype == 1" class="pb_content_body" style="
                 background: #fff;
                 padding: 0px 25px;
@@ -335,10 +337,14 @@
 
 <script>
 import TaskListHeader from 'gantt-elastic/src/components/TaskList/TaskListHeader.vue';
+import backPage from "../liyuan/components/backPage.vue";
 
 export default {
+  components: {backPage },
+
   data() {
     return {
+      gotype:sessionStorage.getItem('gotype'),
       tableHeight: "500px",
       isLoading: false,
       formLabelWidth: "100px",