Browse Source

按钮区分

bzkf3 2 years ago
parent
commit
07514d9542
1 changed files with 8 additions and 4 deletions
  1. 8 4
      src/views/xtgl/zjk/index.vue

+ 8 - 4
src/views/xtgl/zjk/index.vue

@@ -9,15 +9,19 @@
           <el-main>
           <el-main>
             <div style="margin-bottom: 20px;display: flex;justify-content: space-between;align-items: center;">
             <div style="margin-bottom: 20px;display: flex;justify-content: space-between;align-items: center;">
               <div style="display: flex;">
               <div style="display: flex;">
-                <el-button type="primary" @click="showDialog('add')" class="el-icon-plus">新增</el-button>
-                <template v-show="activeName === 'waipin'">
+                <div v-show="activeName === 'bendi'">
+                  <el-button type="primary" @click="showDialog('add')"
+                    class="el-icon-plus">本地新增</el-button>
+                </div>
+                <div v-show="activeName === 'waipin'" style="display: flex;">
+                  <el-button type="primary" @click="showDialog('add')" class="el-icon-plus">外聘新增</el-button>
                   <el-upload action="#" :http-request="httpRequest" :show-file-list="false">
                   <el-upload action="#" :http-request="httpRequest" :show-file-list="false">
-                    <el-button type="primary" @click="" style="margin-left: 10px;">导入</el-button>
+                    <el-button type="primary" @click="" style="margin-left: 10px;">外聘导入</el-button>
                   </el-upload>
                   </el-upload>
                   <a :href="user_template_url" style="margin-left: 10px;">
                   <a :href="user_template_url" style="margin-left: 10px;">
                     <el-button type="primary">下载模板</el-button>
                     <el-button type="primary">下载模板</el-button>
                   </a>
                   </a>
-                </template>
+                </div>
               </div>
               </div>