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
ceaf1558
Commit
ceaf1558
authored
Sep 10, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺列表 商铺详情 新增 编辑日志 查看日志
parent
0d16ded4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
94 additions
and
2 deletions
+94
-2
houseList.html
application/index/view/houses/houseList.html
+29
-1
houseList.js
public/resource/js/houseList.js
+65
-1
No files found.
application/index/view/houses/houseList.html
View file @
ceaf1558
...
...
@@ -459,7 +459,9 @@
<h4
class=
"modal-title detail-modal-header-tab"
>
<a
href=
"javascript:;"
class=
"btn btn-info"
>
查看商铺
</a>
<a
href=
"javascript:;"
class=
"btn btn-default"
>
商铺跟进
</a>
<a
href=
"javascript:;"
class=
"btn btn-info"
>
操作记录
</a>
<a
href=
"javascript:;"
class=
"btn btn-default"
>
操作记录
</a>
<a
href=
"javascript:;"
class=
"btn btn-default"
>
查看日志
</a>
<a
href=
"javascript:;"
class=
"btn btn-default"
>
编辑日志
</a>
</h4>
</div>
<div
class=
"modal-body modal-body-one"
>
...
...
@@ -506,6 +508,32 @@
</table>
</div>
<!--查看日志-->
<div
class=
"detail-modal-body-sec iframe-shop-detail-scroll"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<th
class=
"text-center"
>
查看时间
</th>
<th
class=
"text-center"
>
商铺ID
</th>
<th
class=
"text-center"
>
查看人
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"caozuo_table_log"
>
</table>
</div>
<!--编辑日志-->
<div
class=
"detail-modal-body-sec iframe-shop-detail-scroll"
>
<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
class=
"text-center"
id=
"caozuo_table_edit"
>
</table>
</div>
</div>
</div>
...
...
public/resource/js/houseList.js
View file @
ceaf1558
...
...
@@ -322,7 +322,15 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
if
(
business
.
detailTabIndex
==
2
){
business
.
Caozuo
();
}
};
if
(
business
.
detailTabIndex
==
3
){
business
.
Caozuolog
();
};
if
(
business
.
detailTabIndex
==
4
){
business
.
Caozuoedit
();
};
});
// 提交按钮设置案场权限人
$
(
document
).
delegate
(
".submit_follow"
,
"click"
,
function
()
{
//提交按钮设置案场权限人
...
...
@@ -813,6 +821,62 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
}
});
},
Caozuolog
:
function
()
{
//获取查看日志
var
caozuo_table
=
""
;
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/getRecords'
,
//获取操作记录
data
:
{
"houses_id"
:
business
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
caozuo_table
+=
'<tr><td>'
+
item
.
remark
+
'</td> <td>'
+
item
.
name
+
'</td> <td>'
+
item
.
create_time
+
'</td></tr>'
});
if
(
caozuo_table
){
$
(
"#caozuo_table_log"
).
html
(
caozuo_table
);
}
else
{
$
(
"#caozuo_table_log"
).
html
(
'<tr><td colspan="3">暂无数据</td></tr>'
);
}
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
Caozuoedit
:
function
()
{
//获取编辑日志
var
caozuo_table
=
""
;
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/getRecords'
,
//获取操作记录
data
:
{
"houses_id"
:
business
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
caozuo_table
+=
'<tr><td>'
+
item
.
remark
+
'</td> <td>'
+
item
.
name
+
'</td> <td>'
+
item
.
create_time
+
'</td></tr>'
});
if
(
caozuo_table
){
$
(
"#caozuo_table_edit"
).
html
(
caozuo_table
);
}
else
{
$
(
"#caozuo_table_edit"
).
html
(
'<tr><td colspan="3">暂无数据</td></tr>'
);
}
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
Submit_follow
:
function
()
{
//提交案场权限人数据
var
agents_id
=
""
;
var
_agents_id
=
""
;
...
...
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