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
ce869e5b
Commit
ce869e5b
authored
Sep 25, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商圈js修改
# Conflicts: # public/resource/template/business_district_template_tpl.html
parent
778d90b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
23 deletions
+11
-23
business_district.js
public/resource/js/business_district.js
+1
-8
business_district_template_tpl.html
public/resource/template/business_district_template_tpl.html
+10
-15
No files found.
public/resource/js/business_district.js
View file @
ce869e5b
...
...
@@ -117,14 +117,7 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
business
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
params
=
{};
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
===
"不显示"
)
{
params
.
type
=
1
;
$
(
this
).
html
(
'显示'
);
}
else
{
params
.
type
=
0
;
$
(
this
).
html
(
'不显示'
);
}
params
.
type
=
$
(
this
).
attr
(
"data-type"
);
$
.
ajax
({
url
:
'/index/editBusinessDistrict.html'
,
type
:
'POST'
,
...
...
public/resource/template/business_district_template_tpl.html
View file @
ce869e5b
...
...
@@ -16,21 +16,16 @@
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
<
a
title
=
"编辑"
class
=
"btn btn-success btn-xs edit_modal"
href
=
"#modal_business"
data
-
toggle
=
"modal"
class
=
"btn btn-default"
data
-
id
=
"[%= it[item]['id']%]"
style
=
"margin-right:6px;"
>
编辑
<
/a
>
[
%
if
(
check_auth
(
'index/editBusinessDistrict'
))
{
%
]
<
a
title
=
"权限分配"
class
=
"btn btn-info btn-xs is_show"
href
=
"#modal-do"
data
-
id
=
"[%= it[item]['id']%]"
style
=
"margin-right:6px;"
>
[
%
if
(
it
[
item
][
"status"
]
==
1
)
{
%
]
不显示
[
%
}
else
{
%
]
显示
[
%
}
%
]
<
/a
>
[
%
}
%
]
[
%
if
(
check_auth
(
'index/delBusinessDistrict'
))
{
%
]
<
a
title
=
"成员授权"
class
=
"btn btn-danger btn-xs del_modal"
href
=
"#modal-delete"
data
-
toggle
=
"modal"
class
=
"btn btn-default"
data
-
id
=
'[%= it[item]["id"] %]'
style
=
"margin-right:6px;"
>
删除
<
/a
>
[
%
}
%
]
<
a
class
=
"btn btn-success btn-xs edit_modal"
href
=
"#modal_business"
data
-
toggle
=
"modal"
class
=
"btn btn-default"
data
-
id
=
"[%= it[item]['id']%]"
style
=
"margin-right:6px;"
>
编辑
<
/a
>
[
%
if
(
it
[
item
][
"status"
]
==
0
)
{
%
]
<
a
class
=
"btn btn-info btn-xs is_show"
href
=
"#modal-do"
data
-
id
=
"[%= it[item]['id']%]"
data
-
type
=
"1"
style
=
"margin-right:6px;"
>
不显示
[
%
}
else
{
%
]
<
a
class
=
"btn btn-info btn-xs is_show"
href
=
"#modal-do"
data
-
id
=
"[%= it[item]['id']%]"
data
-
type
=
"0"
style
=
"margin-right:6px;"
>
显示
[
%
}
%
]
<
/a
>
<
a
class
=
"btn btn-danger btn-xs del_modal"
href
=
"#modal-delete"
data
-
toggle
=
"modal"
class
=
"btn btn-default"
data
-
id
=
'[%= it[item]["id"] %]'
style
=
"margin-right:6px;"
>
删除
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
...
...
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