Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
c8fb7853
Commit
c8fb7853
authored
Jul 17, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人修改
parent
6b0a8950
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
36 deletions
+33
-36
agent.html
application/index/view/agent/agent.html
+7
-24
agent.js
public/resource/js/agent.js
+2
-2
agent_template_tpl.html
public/resource/template/agent_template_tpl.html
+24
-10
No files found.
application/index/view/agent/agent.html
View file @
c8fb7853
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<thead>
<tr>
<tr>
<td
colspan=
"1
1
"
>
<td
colspan=
"1
4
"
>
<form
id=
"form_search"
>
<form
id=
"form_search"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"industry_type"
placeholder=
"角色"
type=
"text"
value=
""
name=
"groupname"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"industry_type"
placeholder=
"角色"
type=
"text"
value=
""
name=
"groupname"
>
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="dish" placeholder="门店"
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="dish" placeholder="门店"
...
@@ -52,38 +52,21 @@
...
@@ -52,38 +52,21 @@
</form>
</form>
</td>
</td>
</tr>
</tr>
<tr>
<tr
class=
"text-center"
>
<th>
注册时间
</th>
<th
class=
"text-center"
>
注册时间
</th>
<th>
用户ID
</th>
<th>
用户ID
</th>
<th>
用户头像
</th>
<th>
用户头像
</th>
<th>
账号类型
</th>
<th>
部门
</th>
<th>
门店
</th>
<th>
姓名
</th>
<th>
姓名
</th>
<th>
手机号
</th>
<th>
手机号
</th>
<th>
角色
</th>
<th>
角色
</th>
<!--2.2版本 -->
<!--2.2版本 -->
<th>
评价次数
</th>
<th>
评价次数
</th>
<th>
分数
</th>
<th>
分数
</th>
<th>
操作
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</tr>
</thead>
<tbody
id=
"agentlist"
>
</form>
</td>
</tr>
<tr>
<th>
注册时间
</th>
<th>
用户ID
</th>
<th>
用户头像
</th>
<th>
姓名
</th>
<th>
手机号
</th>
<th>
角色
</th>
<!--2.2版本 -->
<!--<th>评价次数</th>-->
<!--<th>分数</th>-->
<th>
操作
</th>
</tr>
</thead>
<tbody
id=
"agentlist"
>
<tbody
id=
"agentlist"
>
</tbody>
</tbody>
...
...
public/resource/js/agent.js
View file @
c8fb7853
...
@@ -521,8 +521,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -521,8 +521,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
// console.log(data.data[0].agent_evaluate_num);
// console.log(data.data[0].agent_evaluate_num);
$
(
"#agentlist tr"
).
each
(
function
(
e
)
{
$
(
"#agentlist tr"
).
each
(
function
(
e
)
{
//e代表索引 从0开始 eq(0)就是第一行
//e代表索引 从0开始 eq(0)就是第一行
$
(
"#agentlist"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
6
).
html
(
data
.
data
[
e
].
agent_evaluate_num
);
//获取一列的值
$
(
"#agentlist"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
9
).
html
(
data
.
data
[
e
].
agent_evaluate_num
);
//获取一列的值
$
(
"#agentlist"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
7
).
html
(
data
.
data
[
e
].
agent_evaluate_fraction
);
$
(
"#agentlist"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
10
).
html
(
data
.
data
[
e
].
agent_evaluate_fraction
);
})
})
}
}
}
}
...
...
public/resource/template/agent_template_tpl.html
View file @
c8fb7853
...
@@ -2,22 +2,36 @@
...
@@ -2,22 +2,36 @@
[
%
if
(
it
)
{
%
]
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
data
-
groupname
=
"[%= it[item]['groupname'] %]"
class
=
"text-center"
>
<
tr
data
-
groupname
=
"[%= it[item]['groupname'] %]"
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
>
<
td
class
=
"text-center"
>
<
input
type
=
"hidden"
value
=
'[%= it[item]["agent_img"] %]'
>
<
input
type
=
"hidden"
value
=
'[%= it[item]["agent_img"] %]'
>
<
img
src
=
'[%= it[item]["agent_img"] %]'
class
=
"diagram-image J_preview"
<
img
src
=
'[%= it[item]["agent_img"] %]'
class
=
"diagram-image J_preview"
data
-
bimg
=
'[%= it[item]["agent_img"] %]'
>
data
-
bimg
=
'[%= it[item]["agent_img"] %]'
>
<
/td
>
<
/td
>
<
td
>
[
%=
it
[
item
][
"level"
]
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
"level"
]
%
]
<
/td>--
>
<
td
>
[
%=
it
[
item
][
"district_name"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
"store_name"
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
"level"
]
==
10
)
{
%
]
<
td
>
[
%=
it
[
item
][
"name"
]
%
]
<
/td
>
经纪人
<
td
>
[
%=
it
[
item
][
"phone"
]
%
]
<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
"groupname"
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
"level"
]
==
20
)
{
%
]
店长
[
%
}
%
]
[
%
if
(
it
[
item
][
"level"
]
==
30
)
{
%
]
总监
[
%
}
%
]
[
%
if
(
it
[
item
][
"level"
]
==
40
)
{
%
]
总监和店长
[
%
}
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"district_name"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"store_name"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"name"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"phone"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"groupname"
]
%
]
<
/td
>
<
td
class
=
"number-evaluation text-center"
data
-
id
=
'[%= it[item]["id"] %]'
>--<
/td
>
<
td
class
=
"number-evaluation text-center"
data
-
id
=
'[%= it[item]["id"] %]'
>--<
/td
>
<
td
class
=
"score-evaluation text-center"
data
-
id
=
'[%= it[item]["id"] %]'
>--<
/td
>
<
td
class
=
"score-evaluation text-center"
data
-
id
=
'[%= it[item]["id"] %]'
>--<
/td
>
<
td
>
<
td
class
=
"text-center"
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
<
/a
>
[
%
if
(
it
[
item
][
"status"
]
==
0
)
{
%
]
[
%
if
(
it
[
item
][
"status"
]
==
0
)
{
%
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment