From d6bc20ee2a65bc69237dda0b0296d514e7e28763 Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Thu, 24 Nov 2022 13:57:29 +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