Browse Source

子页面添加返回按钮

lex-xin 5 years ago
parent
commit
868da0adf0

+ 6 - 2
src/views/buildVip/index.vue

@@ -1,8 +1,9 @@
 <template>
   <div class="m-container">
     <h2>
-      <div class="squrt" />
-      VIP课申请
+      <el-page-header @back="onCancel" content="VIP课申请"></el-page-header>
+      <!-- <div class="squrt" /> -->
+      
     </h2>
     <div class="m-core">
       <div class="vipLeft">
@@ -919,6 +920,9 @@ export default {
         }
       })
     },
+    onCancel() {
+      this.$router.push('/business/vipList')
+    },
     setCourse () {
       this.$refs['leftForm'].validate(vali => {
         if (vali) {

+ 4 - 1
src/views/studentManager/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="m-container">
     <h2>
-      学员详情
+      <el-page-header @back="onCancel" content="学员详情"></el-page-header>
     </h2>
     <div class="m-core">
       <!-- navMenu -->
@@ -66,6 +66,9 @@ export default {
     }
   },
   methods: {
+    onCancel() {
+      this.$router.push('/business/studentList')
+    },
     handleClick (val) {
       this.activeIndex = val.name
       this.acitveStatus[val.name - 1] = true

+ 6 - 1
src/views/teacherManager/teacherList.vue

@@ -8,6 +8,9 @@
                class="searchForm"
                v-model="searchForm">
         <el-form-item>
+          <el-input v-model="searchForm.search" placeholder="老师姓名或电话"></el-input>
+        </el-form-item>
+        <el-form-item>
           <el-select v-model="searchForm.lockFlag" placeholder="老师状态">
             <el-option v-for="item in teacherStatus" :key="item.value" 
               :label="item.label" :value="item.value"></el-option>
@@ -134,6 +137,7 @@ export default {
         jobNature: null,
         subjectId: null,
         organId: null,
+        search: null // 老师姓名或电话
       },
       jobNature: jobNature, // 工作类型
       teacherStatus: teacherStatus, // 老师状态
@@ -242,7 +246,8 @@ export default {
         isProbationPeriod: null,
         jobNature: null,
         organId: null,
-        subjectId: null
+        subjectId: null,
+        search: null
       }
     }
   }

+ 6 - 2
src/views/teamBuild/signupList.vue

@@ -3,8 +3,9 @@
     <div class="topWrap">
       <div>
         <h2>
-          <div class="squrt"></div>
-          {{ teamName }}报名详情
+          <!-- <div class="squrt"></div> -->
+          <el-page-header @back="onCancel" :content="teamName + '报名详情'"></el-page-header>
+          <!-- {{ teamName }}报名详情 -->
         </h2>
         <div class="btnList">
           <div class='newBand close'
@@ -449,6 +450,9 @@ export default {
     this.getList()
   },
   methods: {
+    onCancel() {
+      this.$router.push('/business/teamDetail')
+    },
     getList () {
       let obj = {
         musicGroupId: this.id,

+ 5 - 1
src/views/teamBuild/teamSeting/components/setImprovement.vue

@@ -1,7 +1,8 @@
 <template>
   <div class="m-container">
     <h2>
-      <div class='squrt'></div>基础技能班报名详情 
+      <el-page-header @back="onCancel" content="基础技能班报名详情"></el-page-header>
+      <!-- <div class='squrt'></div>  -->
       <span @click="onCreateQRCode" style="font-size: 16px; padding-left: 20px; font-weight: 400;cursor: pointer; ">查看报名连接</span>
       <span @click="onApply" style="font-size: 16px; padding-left: 20px; font-weight: 400;cursor: pointer;">开启报名</span>
     </h2>
@@ -254,6 +255,9 @@ export default {
       })
 
     },
+    onCancel() {
+      this.$router.push('/business/teamDetail')
+    },
     resetClass (row) {
       console.log(this.activeClass, row.userId)
       this.activeStudent = row.userId;

+ 4 - 1
src/views/teamDetail/teamDetailedList.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="m-container">
-    <h2>发放清单</h2>
+    <h2><el-page-header @back="onCancel" content="发放清单"></el-page-header></h2>
     <!-- <div class="headWrap">
       <div class="left">
         <div class="headItem">
@@ -78,6 +78,9 @@ export default {
     })
   },
   methods: {
+    onCancel() {
+      this.$router.push('/business/teamDetail')
+    },
     okDetailList () {
       verifyMusicalList({ musicGroupId: this.teamid }).then(res => {
         if (res.code == 200) {

+ 3 - 3
vue.config.js

@@ -6,7 +6,7 @@ function resolve (dir) {
   return path.join(__dirname, dir)
 }
 
-const name = defaultSettings.title || 'vue Admin Template' // page title
+const name = defaultSettings.title || '大雅后台管理系统' // page title
 
 // If your port is set to 80,
 // use administrator privileges to execute the command line.
@@ -19,8 +19,8 @@ const name = defaultSettings.title || 'vue Admin Template' // page title
 // let target = 'http://192.168.3.27:8000' // 箭河
 // let target = 'http://192.168.3.28:8000' //邹璇
 // let target = 'http://192.168.3.8:8000' //勇哥
-let target = 'http://47.99.212.176:8000' // 测试服
-// let target = 'http://192.168.3.48:8000' // 乔
+// let target = 'http://47.99.212.176:18000' // 测试服
+let target = 'http://192.168.3.48:8000' // 乔
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {
   /**