From a25e34a84abe514f6e6bf39781c337eea1fd01d3 Mon Sep 17 00:00:00 2001
From: 鲁班七号 <9159450+luban-71@user.noreply.gitee.com>
Date: 星期一, 09 一月 2023 11:05:47 +0800
Subject: [PATCH] 优化注册

---
 src/views/enterprise/basic.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/views/enterprise/basic.vue b/src/views/enterprise/basic.vue
index f806b44..7872504 100644
--- a/src/views/enterprise/basic.vue
+++ b/src/views/enterprise/basic.vue
@@ -116,7 +116,7 @@
               <div class="basic_search">
                   <!--      <el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-plus" @click="showCreateHandle">新增</el-button>-->
                   <el-button v-if="isSupervision==='null'" style="margin-left: 10px;" type="primary" icon="el-icon-plus" @click="showEnterPriseDetailForm('新增','')">新增</el-button>
-                  <el-button v-if="userType === 1" style="margin-left: 10px;" type="primary" @click="logoutHandler">注销</el-button>
+                  <el-button v-if="isSupervision==='null'" style="margin-left: 10px;" type="primary" @click="logoutHandler">注销</el-button>
                   <el-button v-if="userType === 1" style="margin-left: 10px;" type="primary" @click="recoverLoginBatchHandler">启用</el-button>
                   <el-button v-if="isSupervision==='null'" style="margin-left: 10px;" type="primary" icon="el-icon-upload2" @click="importToExcel">导入</el-button>
                   <el-button style="margin-left: 10px;" type="primary" icon="el-icon-download" @click="exportToExcel">导出</el-button>
@@ -183,7 +183,7 @@
                       </template>
                   </template>
               </el-table-column>
-              <el-table-column  v-if="userType === 1" label="是否注销" prop="loginvalidflag" align="center">
+              <el-table-column  v-if="isSupervision==='null'" label="是否注销" prop="loginvalidflag" align="center">
                   <template slot-scope="scope">
                       <span v-if="scope.row.loginvalidflag == null || scope.row.loginvalidflag ">有效</span>
                       <span v-else @click="recoverLogin(scope.row.id)" style="color: red;cursor: pointer">注销</span>
@@ -195,8 +195,8 @@
                   <template slot-scope="scope">
                       <!--            <el-button type="text" @click="showEditHandle(scope.row)">编辑</el-button>-->
                       <el-button type="text" @click="showEnterPriseDetailForm('修改',scope.row)" >编辑</el-button>
-                      <el-button v-if="userType != 3" :disabled="disableRole(scope.row)" type="text" align="center" @click="deleteById('删除',scope.row)" >删除</el-button>
-                      <el-button v-if="userType != 3" :disabled="disableRole(scope.row)" type="text" align="center" @click="changeStatus('停用',scope.row)" >{{scope.row.enterprisestatus == '停止'?'启用':'停用'}}</el-button>
+                      <el-button v-if="isSupervision==='null'" type="text" align="center" @click="deleteById('删除',scope.row)" >删除</el-button>
+                      <el-button v-if="isSupervision==='null'" type="text" align="center" @click="changeStatus('停用',scope.row)" >{{scope.row.enterprisestatus == '停止'?'启用':'停用'}}</el-button>
 <!--                      <el-button :disabled="scope.row.type==1" type="text" style="color:red;" @click="deleteHandle(scope.row)" v-if="scope.row.infostatus === '待审批' ? false : true ">重置密码</el-button>-->
                   </template>
               </el-table-column>

--
Gitblit v1.9.2