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
6288199f
Commit
6288199f
authored
May 11, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店编辑
parent
417c21c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
AStore.php
application/model/AStore.php
+2
-2
storeList.js
public/resource/js/storeList.js
+1
-2
No files found.
application/model/AStore.php
View file @
6288199f
...
...
@@ -42,7 +42,7 @@ class AStore extends BaseModel
$resutlt
=
$this
->
id
;
}
else
{
$this
->
save
(
$store_data
,
[
'id'
=>
$data
[
'id'
]]);
$resutlt
=
$
agents_id
;
$resutlt
=
$
data
[
'id'
]
;
}
//处理经纪人等级 10业务员 20店长 30总监 40店长和总监
...
...
@@ -64,7 +64,7 @@ class AStore extends BaseModel
$agents
->
saveAll
(
$agents_data
);
}
$agents_store
[
'level'
]
=
20
;
$agents_store
[
'store_id'
]
=
$
data
[
'id'
]
;
$agents_store
[
'store_id'
]
=
$
resutlt
;
$agents
->
editData
(
$agents_store
,
$agents_id
,
'id'
);
return
$resutlt
;
...
...
public/resource/js/storeList.js
View file @
6288199f
...
...
@@ -46,7 +46,6 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交编辑
store
.
Submit_edit
();
store
.
getList
();
});
$
(
document
).
delegate
(
".mend"
,
"click"
,
function
()
{
//点击业务员列表
store
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
...
...
@@ -259,7 +258,7 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
store
.
getList
(
1
);
}
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