Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SooonerHotel
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
吴贤德
SooonerHotel
Commits
5ce97ecd
Commit
5ce97ecd
authored
Dec 23, 2019
by
吴贤德
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
ssh://code.dev.soooner.com:50022/wuxiande/SooonerHotel
into develop
parents
daf5dc90
9f270ef7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
16 deletions
+11
-16
InjectAction.class.php
SooonerHotel/App/Lib/Action/Inject/InjectAction.class.php
+6
-6
InjectModel.class.php
SooonerHotel/App/Lib/Model/InjectModel.class.php
+1
-1
add.html
SooonerHotel/App/Tpl/Inject/zh-cn/Inject/add.html
+3
-8
index.html
SooonerHotel/App/Tpl/Inject/zh-cn/Inject/index.html
+1
-1
No files found.
SooonerHotel/App/Lib/Action/Inject/InjectAction.class.php
View file @
5ce97ecd
...
@@ -126,7 +126,6 @@ class InjectAction extends CommonAction{
...
@@ -126,7 +126,6 @@ class InjectAction extends CommonAction{
$task_id
=
$model
->
add
(
$taskData
);
$task_id
=
$model
->
add
(
$taskData
);
if
(
$task_id
){
if
(
$task_id
){
foreach
(
$hotel_lists
as
$key
=>
$value
){
foreach
(
$hotel_lists
as
$key
=>
$value
){
list
(
$hotel_id
,
$sp_id
)
=
explode
(
"-"
,
$value
);
list
(
$hotel_id
,
$sp_id
)
=
explode
(
"-"
,
$value
);
$logDataLists
=
array
();
$logDataLists
=
array
();
...
@@ -160,13 +159,14 @@ class InjectAction extends CommonAction{
...
@@ -160,13 +159,14 @@ class InjectAction extends CommonAction{
$log_r
=
$injectLogModel
->
addAll
(
$logDataLists
);
$log_r
=
$injectLogModel
->
addAll
(
$logDataLists
);
}
}
}
}
if
(
$log_r
){
echo
"true"
;
// $this->ajaxReturn(array("status"=>1000,"msg"=>"操作成功!"));
}
else
{
echo
"false"
;
}
}
if
(
$task_id
){
echo
'true'
;
}
else
{
}
else
{
echo
'false'
;
echo
"false"
;
}
}
}
}
}
}
...
...
SooonerHotel/App/Lib/Model/InjectModel.class.php
View file @
5ce97ecd
...
@@ -24,7 +24,7 @@ class InjectModel extends RelationModel{
...
@@ -24,7 +24,7 @@ class InjectModel extends RelationModel{
$model
=
new
Model
();
$model
=
new
Model
();
//======================
//======================
$fields
=
"count(
id
) count"
;
$fields
=
"count(
1
) count"
;
//返回列表(limit分页)
//返回列表(limit分页)
if
(
$queryType
==
"list"
){
if
(
$queryType
==
"list"
){
$where
.=
$sort
.
" "
.
$limit
;
$where
.=
$sort
.
" "
.
$limit
;
...
...
SooonerHotel/App/Tpl/Inject/zh-cn/Inject/add.html
View file @
5ce97ecd
...
@@ -199,17 +199,12 @@ function submitForm(){
...
@@ -199,17 +199,12 @@ function submitForm(){
return
isValid
;
return
isValid
;
},
},
success
:
function
(
data
){
success
:
function
(
data
){
if
(
data
==
'true'
){
if
(
data
==
"true"
){
// $.messager.confirm('友情提示', '操作成功! 是否关闭窗口?', function(r){
// if (r){
// parentDialog.CancelEvent();
// }
// });
parentDialog
.
CancelEvent
();
parentDialog
.
CancelEvent
();
// $.messager.alert('友情提示','操作成功!','info');
}
else
{
}
else
$
.
messager
.
alert
(
'友情提示'
,
'操作失败!'
,
'info'
);
$
.
messager
.
alert
(
'友情提示'
,
'操作失败!'
,
'info'
);
}
}
}
});
});
}
}
$
().
ready
(
function
(){
$
().
ready
(
function
(){
...
...
SooonerHotel/App/Tpl/Inject/zh-cn/Inject/index.html
View file @
5ce97ecd
...
@@ -49,7 +49,7 @@ pagination: true,
...
@@ -49,7 +49,7 @@ pagination: true,
pageList:[15,30,45,60],
pageList:[15,30,45,60],
rownumbers: true,
rownumbers: true,
sortName:'id',
sortName:'id',
sortOrder:'
a
sc',
sortOrder:'
de
sc',
queryParams: form2Json('searchform'),
queryParams: form2Json('searchform'),
fitColumns: true,
fitColumns: true,
height:'auto',
height:'auto',
...
...
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