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
8273e915
Commit
8273e915
authored
Aug 31, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除功能
parent
8825ca25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
pictureShow.js
public/resource/js/pictureShow.js
+8
-13
No files found.
public/resource/js/pictureShow.js
View file @
8273e915
...
@@ -31,17 +31,14 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css',
...
@@ -31,17 +31,14 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css',
$("#reset").click(function () {//重置
$("#reset").click(function () {//重置
document.getElementById("form_search").reset();
document.getElementById("form_search").reset();
});*/
});*/
$
(
document
).
delegate
(
"#confirm_delete"
,
"click"
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
picture
.
delBusiness
();
});
$
(
document
).
on
(
'click'
,
'.is_show'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'.is_show'
,
function
(
e
){
picture
.
getDataByParams
(
e
.
target
.
dataset
.
id
);
picture
.
getDataByParams
(
e
.
target
.
dataset
.
id
);
});
});
$
(
document
).
on
(
'click'
,
'.announcement-del'
,
function
(
e
){
picture
.
deletePictureById
(
e
.
target
.
dataset
.
id
);
picture
.
getList
(
1
);
});
$
(
'#modal-show'
).
on
(
'show.bs.modal'
,
function
(){
$
(
'#modal-show'
).
on
(
'show.bs.modal'
,
function
(){
picture
.
getYetai
(
$
(
'#yetai_id'
),
$
(
'#leased'
),
true
);
picture
.
getYetai
(
$
(
'#yetai_id'
),
$
(
'#leased'
),
true
);
...
@@ -275,14 +272,12 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css',
...
@@ -275,14 +272,12 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css',
},
},
//删除表格的行(单行删除)
//删除表格的行(单行删除)
del
Business
:
function
(
)
{
del
etePictureById
:
function
(
id
)
{
$
.
ajax
({
$
.
ajax
({
url
:
'/
index/houseDel
'
,
url
:
'/
api/delImageDepot
'
,
type
:
'POST'
,
type
:
'POST'
,
async
:
true
,
async
:
true
,
data
:
{
data
:
{
"id"
:
id
},
"id"
:
business
.
id
},
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
...
...
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