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
da8a9c13
Commit
da8a9c13
authored
Dec 19, 2018
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a3bad4e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
adjustment.js
public/resource/js/adjustment.js
+14
-3
No files found.
public/resource/js/adjustment.js
View file @
da8a9c13
...
@@ -180,6 +180,8 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
...
@@ -180,6 +180,8 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
});
});
$
(
'#commit_home'
).
append
(
str
);
$
(
'#commit_home'
).
append
(
str
);
fn
&&
fn
();
fn
&&
fn
();
}
eles
{
alert
(
data
.
msg
)
}
}
}
}
});
});
...
@@ -198,6 +200,8 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
...
@@ -198,6 +200,8 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
fn
&&
fn
(
data
.
data
);
fn
&&
fn
(
data
.
data
);
}
else
{
alert
(
data
.
msg
)
}
}
}
}
});
});
...
@@ -218,8 +222,12 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
...
@@ -218,8 +222,12 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
getAdjustmentDetail
:
function
(
id
){
getAdjustmentDetail
:
function
(
id
){
var
that
=
adjustment
;
var
that
=
adjustment
;
$
.
get
(
'/index/getAdjustmentDetail'
,{
'id'
:
id
},
function
(
data
){
$
.
get
(
'/index/getAdjustmentDetail'
,{
'id'
:
id
},
function
(
data
){
console
.
log
(
data
.
data
);
if
(
data
.
code
==
200
)
{
that
.
setValue
(
data
.
data
);
console
.
log
(
data
.
data
);
that
.
setValue
(
data
.
data
);
}
else
{
alert
(
data
.
msg
);
}
},
'json'
);
},
'json'
);
},
},
...
@@ -315,7 +323,10 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
...
@@ -315,7 +323,10 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
var
that
=
adjustment
;
var
that
=
adjustment
;
var
params
=
that
.
buildSearchParams
();
var
params
=
that
.
buildSearchParams
();
$
.
post
(
''
,
params
,
function
(
data
){
$
.
post
(
''
,
params
,
function
(
data
){
console
.
log
(
data
);
if
(
data
.
code
==
200
)
{
}
else
{
alert
(
data
.
msg
);
}
})
})
},
},
...
...
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