Commit 9400beda by yangfangfang

应用列表修改

parent ac80c8c8
......@@ -45,10 +45,10 @@
});
},200);
//启用停用
$scope.onOff = function(id,flag){
var url = "mng/app/enable/"+id,tipmsg = "启用成功";
if(flag && flag==1){
url = "mng/app/forbidden/"+id;
$scope.onOff = function(info){
var url = "mng/app/enable/"+info.id,tipmsg = "启用成功";
if(info.regedbutton){
url = "mng/app/forbidden/"+info.id;
tipmsg = "停用成功";
}
var userPM = HttpService.putInfo(url,{});
......@@ -57,7 +57,7 @@
ToolService.hideLoading();
ToolService.showTips(tipmsg)
$scope.$emit("f5Applist",true);
$rootScope.operSubmitData(tipmsg.slice(0,2));
$rootScope.operSubmitData(tipmsg.slice(0,2));
});
}
......
......@@ -461,13 +461,17 @@ ul li .darklabel,.darklabel{color:$darkfontcolor;}
margin-left: 3px;
}
.copyBtnIcon{
@extend .settingIcon;
background-position:-33px -100px;
background: url(../images/copy.png) no-repeat;
width:12px;
height:12px;
display: inline-block;
vertical-align:middle;
margin-left: 3px;
margin-top: -3px;
cursor: pointer;
&:hover{
background: url(../images/copy_hover.png) no-repeat;
}
}
.rightHeader .helpInfo:hover{
......
......@@ -11,11 +11,11 @@
<div class="appList">
<div ng-if="resultList.length>0" class="appWrap" ng-repeat="info in appAlllistInfo | limitTo:limitCount | filterList:searchTxt:'name,appkey' as filterResult track by $index">
<div class="app" ng-click="goReport(info)">
<div class="app">
<div class="ml20 mt20">
<div class="iconfont platform" ng-class="{'iOS':'icon-ios','Android':'icon-android','H5':'icon-wrap'}[info.platform]"></div>
<span class="title">{{info.name}}</span>
<span class="copyBtnIcon copyBtn" data-clipboard-text="{{info.name}}" title="点击复制" stop-event></span>
<span class="title" ng-click="goReport(info)">{{info.name}}</span>
<span class="copyBtnIcon copyBtn" data-clipboard-text="{{info.name}}" title="点击复制"></span>
<span class="setting" ng-click="info.isShow=!info.isShow" stop-event>
<ul ng-show="info.isShow" ng-mouseleave="info.isShow=false">
<li ng-click="gopage(info.id)">编辑</li>
......@@ -24,19 +24,18 @@
</span>
</div>
<div class="key">APPKEY:{{info.appkey}}
<span class="copyBtnIcon copyBtn" data-clipboard-text="{{info.appkey}}" title="点击复制" stop-event></span>
<span class="copyBtnIcon copyBtn" data-clipboard-text="{{info.appkey}}" title="点击复制"></span>
</div>
<div class="bottom">
<span ng-show="!isDebug" stop-event>自动生成日志<div class="onOffBtn" ng-class="{'on':info.regedbutton == true}" ng-click="onOff(info)"></div></span>
<div class="debugbtn" ng-show="isDebug" ng-click="gopage(info.id,1)" stop-event>调试</div>
<span class="right" ng-style="{'margin-top':isDebug?'5px':''}">创建时间:{{info.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</span>
<span stop-event>自动生成日志<div class="onOffBtn" ng-class="{'on':info.regedbutton == true}" ng-click="onOff(info)"></div></span>
<span class="right">创建时间:{{info.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</span>
</div>
</div>
</div>
<div class="more" ng-click="getMore()" ng-show="isShow() && filterResult.length>0"><span>更多产品<label>(共{{resultList.length}}个产品)</label></span></div>
<div class="noData" ng-if="resultList.length==0">
<span></span>
<div>暂无{{isDebug?'待调试':'已调试'}}产品</div>
<div>暂无产品</div>
</div>
<div class="noData" ng-if="filterResult.length==0">
<span></span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment