浏览代码

修改教师管理表单提交返回

11wqe1 2 周之前
父节点
当前提交
caa0d68af8
共有 2 个文件被更改,包括 40 次插入29 次删除
  1. 1 1
      src/components/pages/liyuan/CourseCon.vue
  2. 39 28
      src/components/pages/testStudent/view/preview.vue

+ 1 - 1
src/components/pages/liyuan/CourseCon.vue

@@ -9,7 +9,7 @@
       <div class="courseListSearch">
         <div style="display: flex;gap: 25px;">
             <el-select v-for="(i,index) in typeList" :key="index" v-model="i.typeE" @change="search" :placeholder="i.name">
-              <el-option value="" label="全部"></el-option>
+              <el-option value="0" label="全部"></el-option>
               <el-option
                 v-for="item in i.child"
                 :key="item.id"

+ 39 - 28
src/components/pages/testStudent/view/preview.vue

@@ -2,36 +2,39 @@
   <div class="pb_content" style="background: #F0F2F5;" v-loading="loading || isloading">
     <div class="pb_content_body" style="position: relative; margin: 0">
       <div class="right">
-        <div class="courseTop" :style="`justify-content: ${isN==1?'flex-end':'space-between'};`">
-          <div class="r_pub_button_retrun" v-if="gotype" @click="retrunCourse">返回</div>
+        <div class="courseTop2" v-if="gotype">
+          <div class="r_pub_button_retrun"  @click="retrunCourse">返回</div>
+        </div>
+
+        <div class="courseTop" v-else :style="`justify-content: ${isN==1?'flex-end':'space-between'};`">
           <div class="stepsNav" v-if="isN !=1 && !gotype">
             <el-breadcrumb v-if="!gotype" separator-class="el-icon-arrow-right">
               <el-breadcrumb-item :to="{
-    path:
-      '/testPerson?userid=' +
-      userid +
-      '&oid=' +
-      oid +
-      '&org=' +
-      org +
-      '&role=' +
-      role,
-  }" v-if="type == 3 && back!=1">个人中心</el-breadcrumb-item>
-              <el-breadcrumb-item :to="{
-    path:
-      '/testStudent?userid=' +
-      userid +
-      '&oid=' +
-      oid +
-      '&org=' +
-      org +
-      '&role=' +
-      role +
-      '&isN=' +
-      isN +
-      '&tcid=' +
-      tcid ,
-  }" v-else v-show="back!=1">表单中心</el-breadcrumb-item>
+                  path:
+                    '/testPerson?userid=' +
+                    userid +
+                    '&oid=' +
+                    oid +
+                    '&org=' +
+                    org +
+                    '&role=' +
+                    role,
+                }" v-if="type == 3 && back!=1">个人中心</el-breadcrumb-item>
+                            <el-breadcrumb-item :to="{
+                  path:
+                    '/testStudent?userid=' +
+                    userid +
+                    '&oid=' +
+                    oid +
+                    '&org=' +
+                    org +
+                    '&role=' +
+                    role +
+                    '&isN=' +
+                    isN +
+                    '&tcid=' +
+                    tcid ,
+                }" v-else v-show="back!=1">表单中心</el-breadcrumb-item>
               <el-breadcrumb-item>
                 <span style="color: rgb(15, 126, 255)">{{ title }}</span>
               </el-breadcrumb-item>
@@ -714,6 +717,15 @@ export default {
 }
 
 .courseTop {
+  display: flex;
+  flex-direction: row;
+  justify-content: space-between;
+  align-items: center;
+  width: calc(100% - 40px);
+  margin: 0 auto;
+  padding: 10px;
+}
+.courseTop2{
   display: flex;
   flex-direction: row;
   justify-content: space-between;
@@ -722,7 +734,6 @@ export default {
   margin: 0 auto;
   padding: 10px 40px;
 }
-
 .stepsNav {
   display: flex;
   flex-direction: row;