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
0e404af9
Commit
0e404af9
authored
Apr 28, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑日志
parent
63878cd4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
1 deletion
+95
-1
users_list.html
application/index/view/member/users_list.html
+43
-0
user.js
public/resource/js/user.js
+30
-0
user_template_tpl.html
public/resource/template/user_template_tpl.html
+22
-1
No files found.
application/index/view/member/users_list.html
View file @
0e404af9
...
...
@@ -1113,6 +1113,49 @@
<!-- /.modal -->
</div>
<!-- 客户编辑日志 -->
<div
class=
"modal fade"
id=
"modal-customerEditLog"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
客户编辑日志
</h4>
</div>
<div
class=
"modal-body"
style=
"padding: 25px;"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<th
class=
"text-center"
>
编辑内容
</th>
<th
class=
"text-center"
>
编辑人
</th>
<th
class=
"text-center"
>
编辑时间
</th>
</tr>
</thead>
<tbody
id=
'customerEditLog'
>
</tbody>
</table>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--加载图标-->
<div
id=
"main_loading_pic"
>
<img
src=
"/resource/image/jz2.gif"
>
...
...
public/resource/js/user.js
View file @
0e404af9
...
...
@@ -219,6 +219,14 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
var
id_
=
$
(
this
).
attr
(
"data-id"
);
user
.
relationalRecord
(
id_
);
});
//客户列表 客户编辑日志
_doc
.
on
(
'click'
,
'.customerEditLog '
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
var
id_
=
$
(
this
).
attr
(
"data-id"
);
user
.
customerEditLog
(
id_
);
});
//客户动态 加载更多
_doc
.
on
(
'click'
,
'.user-log-more'
,
function
(
e
)
{
...
...
@@ -1991,6 +1999,28 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}
});
},
//客户编辑日志
customerEditLog
:
function
(
id
)
{
$
.
ajax
({
url
:
'/index/getUserBindHistory'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"user_id"
:
id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
temp
=
document
.
getElementById
(
'customer_edit_log_list'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#customerEditLog"
).
html
(
doTtmpl
(
data
.
data
.
data
));
}
else
{
}
}
});
},
//获取站点 标签
getSiteTags
:
function
()
{
$
.
ajax
({
...
...
public/resource/template/user_template_tpl.html
View file @
0e404af9
...
...
@@ -73,7 +73,10 @@
<
a
class
=
"btn1 is_invalid [%= sw3(it[item]['user_status']) %] btn-default-hide-display"
href
=
""
data
-
id
=
'[%= it[item]["id"] %]'
data
-
status
=
'[%= it[item]["user_status"] %]'
>
无效
<
/a> 
;
[
%
}
%
]
<
a
class
=
"btn1 relationalRecord btn-info btn-default-hide-display"
href
=
"#modal-relationalRecord"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
toggle
=
"modal"
>
关联记录
<
/a
>
<
a
class
=
"btn1 relationalRecord btn-info btn-default-hide-display"
href
=
"#modal-relationalRecord"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
toggle
=
"modal"
>
关联记录
<
/a> 
;
<
a
class
=
"btn1 customerEditLog btn-info btn-default-hide-display"
href
=
"#modal-customerEditLog"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
toggle
=
"modal"
>
编辑日志
<
/a
>
<
a
class
=
"btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"
><<<<
/a
>
...
...
@@ -102,3 +105,21 @@
<
/tr
>
[
%
}
%
]
</script>
<!--客户列表 编辑日志-->
<script
id=
"customer_edit_log_list"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
"remark"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
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