From 39ceed7f60905297629a45978cc29b6fe8bd05d8 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期六, 20 七月 2019 17:52:33 +0800
Subject: [PATCH] 优化服务绑定功能

---
 WebService/src/main/resources/components/view-app-info/viewAppInfo.html |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/WebService/src/main/resources/components/view-app-info/viewAppInfo.html b/WebService/src/main/resources/components/view-app-info/viewAppInfo.html
index 3930a45..5cd5a0b 100644
--- a/WebService/src/main/resources/components/view-app-info/viewAppInfo.html
+++ b/WebService/src/main/resources/components/view-app-info/viewAppInfo.html
@@ -4,10 +4,10 @@
             <div class="ibox-title">
                 <h5>搴旂敤淇℃伅</h5>
                 <div class="ibox-tools" style="top:10px;">
-                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_openSelectAppInfoModel()">
+                    <button type="button" v-if="viewAppInfo.index != 2" class="btn btn-primary btn-sm" style="margin-right:10px;"  v-on:click="_openSelectAppInfoModel()">
                         <i class="glyphicon glyphicon-search"></i> 閫夋嫨搴旂敤</button>
 
-                    <button type="button" class="btn btn-primary btn-sm" style="margin-right:10px;" v-on:click="_openAddAppInfoModel()">
+                    <button type="button" v-if="viewAppInfo.index != 2" class="btn btn-primary btn-sm" v-on:click="_openAddAppInfoModel()">
                         <i class="glyphicon glyphicon-plus"></i> 娣诲姞搴旂敤</button>
                 </div>
             </div>
@@ -60,10 +60,14 @@
         </div>
     </div>
 
-    <vc:create name="addApp"></vc:create>
+    <vc:create name="addApp"
+               callBackListener="viewAppInfo"
+               callBackFunction="chooseApp"
+    ></vc:create>
 
-    <!--<vc:create name="searchOwner"
-               emitChooseOwner="sellRoomSelectOwner"
-               emitLoadData="sellRoomOther"
-    ></vc:create>-->
+
+    <vc:create name="chooseApp"
+               emitChooseApp="viewAppInfo"
+               emitLoadData="viewAppInfo"
+    ></vc:create>
 </div>
\ No newline at end of file

--
Gitblit v1.8.0