From 263d34e9027ed2fe109b257fc9db77af3f3a1b5e Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期六, 08 六月 2019 11:50:20 +0800
Subject: [PATCH] 车位出售周期为空导致空指针异常处理
---
WebService/src/main/resources/components/privilege-staffInfo/privilegeStaffInfo.html | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/WebService/src/main/resources/components/privilege-staffInfo/privilegeStaffInfo.html b/WebService/src/main/resources/components/privilege-staffInfo/privilegeStaffInfo.html
index bb629d3..3306f95 100644
--- a/WebService/src/main/resources/components/privilege-staffInfo/privilegeStaffInfo.html
+++ b/WebService/src/main/resources/components/privilege-staffInfo/privilegeStaffInfo.html
@@ -6,8 +6,10 @@
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-primary btn-sm" v-on:click="openSearchStaffModel()">
<i class="glyphicon glyphicon-search"></i> 瀹氫綅鍛樺伐</button>
- <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px">
- <i class="glyphicon glyphicon-plus" v-on:click="openAddStaffPrivilegeModel()"></i> 娣诲姞鏉冮檺</button>
+ <button type="button" class="btn btn-primary btn-sm"
+ v-if="privilegeStaffInfo.userId != null && privilegeStaffInfo.userId != ''"
+ style="margin-left:10px" v-on:click="openAddStaffPrivilegeModel()">
+ <i class="glyphicon glyphicon-plus" ></i> 娣诲姞鏉冮檺</button>
</div>
</div>
<div class="ibox-content">
@@ -55,4 +57,5 @@
</div>
</div>
<vc:create name="searchStaff"></vc:create>
+ <vc:create name="addStaffPrivilege"></vc:create>
</div>
\ No newline at end of file
--
Gitblit v1.8.0