From 30cfb2b836a8a3d609518cc295753b58b17a9bc7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 15 十一月 2024 09:15:29 +0800
Subject: [PATCH] 优化
---
company/src/views/business/contract.vue | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/company/src/views/business/contract.vue b/company/src/views/business/contract.vue
index 66b35e4..65db1de 100644
--- a/company/src/views/business/contract.vue
+++ b/company/src/views/business/contract.vue
@@ -29,8 +29,8 @@
</el-form>
<!-- 琛ㄦ牸鍜屽垎椤� -->
<template v-slot:table-wrap>
- <ul class="toolbar" v-permissions="['business:contract:create']" v-if="userInfo.type === 0">
- <li><el-button type="primary" @click="$refs.operaContractWindow.open('鏂板缓鍚堝悓淇℃伅琛�')" icon="el-icon-plus" v-permissions="['business:contract:create']">鏂板缓</el-button></li>
+ <ul class="toolbar" v-permissions="['business:contract:create']" v-if="[0,2].includes(userInfo.type)">
+ <li><el-button type="primary" @click="$refs.operaContractWindow.open('鏂板缓鍚堝悓淇℃伅琛�', null, 2)" icon="el-icon-plus" v-permissions="['business:contract:create']">鏂板缓</el-button></li>
</ul>
<el-table
v-loading="isWorking.search"
@@ -71,7 +71,6 @@
</template>
</el-table-column>
<el-table-column
- v-if="containPermissions(['business:contract:update', 'business:contract:delete'])"
label="鎿嶄綔"
min-width="220"
fixed="right"
--
Gitblit v1.9.3