-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a507709
commit fbb5136
Showing
5 changed files
with
139 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,44 @@ export default class UserListsCtrl{ | |
constructor($http){ | ||
this.totalItems =70; | ||
this.$http=$http; | ||
this.userLists=[ | ||
{ | ||
id:1, | ||
name:"程良", | ||
jnumber:"0411111", | ||
role:"产品", | ||
department:"产品部们", | ||
account:"[email protected]", | ||
state:"正常" | ||
}, | ||
{ | ||
id:1, | ||
name:"程良", | ||
jnumber:"0411111", | ||
role:"产品", | ||
department:"产品部", | ||
account:"[email protected]", | ||
state:"正常" | ||
}, | ||
{ | ||
id:1, | ||
name:"程良", | ||
jnumber:"0411111", | ||
role:"产品", | ||
department:"产品部", | ||
account:"[email protected]", | ||
state:"正常" | ||
}, | ||
{ | ||
id:1, | ||
name:"程良", | ||
jnumber:"0411111", | ||
role:"产品", | ||
department:"产品部", | ||
account:"[email protected]", | ||
state:"正常" | ||
} | ||
] | ||
} | ||
addAccount(){ | ||
this.$http({ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,25 @@ | ||
<div class="mainContent"> | ||
<echart-map style="width:500px;height: 500px"></echart-map> | ||
<echart-pie style="width:500px;height: 500px"></echart-pie> | ||
<ul class="ctmgInfo"> | ||
<li><h3>12345</h3><p>已签约客户</p></li> | ||
<li><h3>245</h3><p>本月新增</p></li> | ||
<li><h3>75</h3><p>本周新增</p></li> | ||
<li><h3>6</h3><p>昨日新增</p></li> | ||
</ul> | ||
</div> | ||
<div class="clearfix chartInfo"> | ||
<div class="pull-left"> | ||
<div class="mainContent"> | ||
<echart-pie></echart-pie> | ||
</div> | ||
<div class="mainContent"> | ||
<echart-pie></echart-pie> | ||
</div> | ||
</div> | ||
<div class="pull-right"> | ||
<div class="mainContent"> | ||
<echart-map></echart-map> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<li><a href="#">账户管理</a></li> | ||
<li class="active">账户列表</li> | ||
</ul> | ||
<div class="mainContent"> | ||
<div class="mainContent" ng-controller="userListsCtrl as userli"> | ||
<div class="table-head form-inline"> | ||
<select class="form-control"> | ||
<option>按角色</option> | ||
|
@@ -46,126 +46,34 @@ | |
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td> | ||
<img src="./app/images/userdef.jpg" alt="陈良" class="userImg"> | ||
</td> | ||
<td> | ||
陈良 | ||
</td> | ||
<td> | ||
0411111 | ||
</td> | ||
<td> | ||
产品 | ||
</td> | ||
<td> | ||
产品部 | ||
</td> | ||
<td> | ||
[email protected] | ||
</td> | ||
<td> | ||
正常 | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<img src="./app/images/userdef.jpg" alt="陈良" class="userImg"> | ||
</td> | ||
<td> | ||
陈良 | ||
</td> | ||
<td> | ||
0411111 | ||
</td> | ||
<td> | ||
产品 | ||
</td> | ||
<td> | ||
产品部 | ||
</td> | ||
<td> | ||
[email protected] | ||
</td> | ||
<td> | ||
正常 | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<img src="./app/images/userdef.jpg" alt="陈良" class="userImg"> | ||
</td> | ||
<td> | ||
陈良 | ||
</td> | ||
<td> | ||
0411111 | ||
</td> | ||
<td> | ||
产品 | ||
</td> | ||
<td> | ||
产品部 | ||
</td> | ||
<td> | ||
[email protected] | ||
</td> | ||
<td> | ||
正常 | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<img src="./app/images/userdef.jpg" alt="陈良" class="userImg"> | ||
</td> | ||
<td> | ||
陈良 | ||
</td> | ||
<td> | ||
0411111 | ||
</td> | ||
<td> | ||
产品 | ||
</td> | ||
<td> | ||
产品部 | ||
</td> | ||
<td> | ||
[email protected] | ||
</td> | ||
<td> | ||
正常 | ||
</td> | ||
</tr> | ||
<tr> | ||
<tr ng-repeat="user in userli.userLists"> | ||
<td> | ||
<img src="./app/images/userdef.jpg" alt="陈良" class="userImg"> | ||
</td> | ||
<td> | ||
陈良 | ||
{{user.name}} | ||
</td> | ||
<td> | ||
0411111 | ||
{{user.jnumber}} | ||
</td> | ||
<td> | ||
产品 | ||
{{user.role}} | ||
</td> | ||
<td> | ||
产品部 | ||
{{user.department}} | ||
</td> | ||
<td> | ||
[email protected] | ||
{{user.account}} | ||
</td> | ||
<td> | ||
正常 | ||
{{user.state}} | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div ng-controller="userListsCtrl as pages"> | ||
<div> | ||
<button type="button" class="btn btn-primary" ui-sref="addUser">添加账号</button> | ||
<ul uib-pagination total-items="pages.totalItems" items-per-page="20" previous-text="<" next-text=">" ng-model="pages.currentPage" ng-change="pages.pageChanged()" class="pull-right"></ul> | ||
<ul uib-pagination total-items="userli.totalItems" items-per-page="20" previous-text="<" next-text=">" ng-model="userli.currentPage" ng-change="userli.pageChanged()" class="pull-right"></ul> | ||
</div> | ||
</div> | ||
</div> |