natasha 1 rok temu
rodzic
commit
4c181c9c5e

+ 2 - 2
src/views/content_manage/course_manage/CreateLive.vue

@@ -8,9 +8,9 @@
             <div class="create-top">
             <div class="create-top">
                 <div class="common-title-box">
                 <div class="common-title-box">
                     <h3>{{id?'编辑直播课程':'创建直播课程'}}</h3>
                     <h3>{{id?'编辑直播课程':'创建直播课程'}}</h3>
-                    <div class="btn-box">
+                    <div class="btn-box" v-if="id||!id&&stepIndex!==1">
                         <el-button size="small" @click="handleStep('-')" :disabled="stepIndex===0">上一步</el-button>
                         <el-button size="small" @click="handleStep('-')" :disabled="stepIndex===0">上一步</el-button>
-                        <el-button type="primary" size="small" @click="handleStep('+')" :disabled="stepIndex===2">下一步</el-button>
+                        <el-button type="primary" size="small" @click="handleStep('+')" :disabled="stepIndex===1">下一步</el-button>
                     </div>
                     </div>
                 </div>
                 </div>
                 <el-steps :active="stepIndex" align-center>
                 <el-steps :active="stepIndex" align-center>

+ 1 - 1
src/views/content_manage/course_manage/CreateRecorded.vue

@@ -9,7 +9,7 @@
             <div class="create-top">
             <div class="create-top">
                 <div class="common-title-box">
                 <div class="common-title-box">
                     <h3>{{id?'编辑课程':'创建课程'}}</h3>
                     <h3>{{id?'编辑课程':'创建课程'}}</h3>
-                    <div class="btn-box">
+                    <div class="btn-box" v-if="id||!id&&stepIndex!==2">
                         <el-button size="small" @click="handleStep('-')" :disabled="stepIndex===0">上一步</el-button>
                         <el-button size="small" @click="handleStep('-')" :disabled="stepIndex===0">上一步</el-button>
                         <el-button type="primary" size="small" @click="handleStep('+')" :disabled="stepIndex===2">下一步</el-button>
                         <el-button type="primary" size="small" @click="handleStep('+')" :disabled="stepIndex===2">下一步</el-button>
                     </div>
                     </div>

+ 1 - 1
src/views/content_manage/newspaper_manage/CreateNewspaper.vue

@@ -8,7 +8,7 @@
             <div class="create-top">
             <div class="create-top">
                 <div class="common-title-box">
                 <div class="common-title-box">
                     <h3>{{id?'编辑报纸':'创建报纸'}}</h3>
                     <h3>{{id?'编辑报纸':'创建报纸'}}</h3>
-                    <div class="btn-box">
+                    <div class="btn-box" v-if="id||!id&&stepIndex!==2">
                         <el-button size="small" @click="handleStep('-')" :disabled="stepIndex===0">上一步</el-button>
                         <el-button size="small" @click="handleStep('-')" :disabled="stepIndex===0">上一步</el-button>
                         <el-button type="primary" size="small" @click="handleStep('+')" :disabled="stepIndex===2">下一步</el-button>
                         <el-button type="primary" size="small" @click="handleStep('+')" :disabled="stepIndex===2">下一步</el-button>
                     </div>
                     </div>

+ 1 - 1
src/views/organize_manage/CreateOrganize.vue

@@ -8,7 +8,7 @@
             <div class="create-top">
             <div class="create-top">
                 <div class="common-title-box">
                 <div class="common-title-box">
                     <h3>{{id?'编辑机构':'创建机构'}}</h3>
                     <h3>{{id?'编辑机构':'创建机构'}}</h3>
-                    <div class="btn-box">
+                    <div class="btn-box" v-if="id||!id&&stepIndex!==2">
                         <el-button size="small" @click="handleStep('-')" :disabled="stepIndex===0">上一步</el-button>
                         <el-button size="small" @click="handleStep('-')" :disabled="stepIndex===0">上一步</el-button>
                         <el-button type="primary" size="small" @click="handleStep('+')" :disabled="stepIndex===2" v-loading="loading">下一步</el-button>
                         <el-button type="primary" size="small" @click="handleStep('+')" :disabled="stepIndex===2" v-loading="loading">下一步</el-button>
                     </div>
                     </div>

+ 1 - 1
src/views/people_manage/CreatePerson.vue

@@ -8,7 +8,7 @@
             <div class="create-top">
             <div class="create-top">
                 <div class="common-title-box">
                 <div class="common-title-box">
                     <h3>{{id?'编辑用户':'创建用户'}}</h3>
                     <h3>{{id?'编辑用户':'创建用户'}}</h3>
-                    <div class="btn-box">
+                    <div class="btn-box" v-if="id||!id&&stepIndex!==2">
                         <el-button size="small" @click="handleStep('-')" :disabled="stepIndex===0">上一步</el-button>
                         <el-button size="small" @click="handleStep('-')" :disabled="stepIndex===0">上一步</el-button>
                         <el-button type="primary" size="small" @click="handleStep('+')" :disabled="stepIndex===2">下一步</el-button>
                         <el-button type="primary" size="small" @click="handleStep('+')" :disabled="stepIndex===2">下一步</el-button>
                     </div>
                     </div>