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
8c4b7f5e
Commit
8c4b7f5e
authored
May 30, 2018
by
agping
Committed by
hujun
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店列表修改
parent
79074838
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
index.html
application/index/view/store/index.html
+9
-2
storeList.js
public/resource/js/storeList.js
+7
-4
No files found.
application/index/view/store/index.html
View file @
8c4b7f5e
...
...
@@ -158,6 +158,11 @@
list-style
:
none
;
line-height
:
30px
;
}
.left
{
float
:
left
;
display
:
flex
;
align-items
:
center
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
...
...
@@ -184,8 +189,10 @@
<td
colspan=
"9"
>
<form
id=
"form_search"
>
<select
class=
"form-control btn2"
id=
"area"
>
<option
value=
""
class=
"successModel"
>
选择区
</option>
<!--<select class="form-control btn2" id="area">-->
<!--<label class="left fore-span">所属部门:</label>-->
<select
name=
"qx-store"
class=
"form-control btn2"
id=
"qx-store"
>
<option
value=
""
selected=
"selected"
>
选择部门
</option>
</select>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"mend_name"
placeholder=
"门店名称"
type=
"text"
value=
""
>
...
...
public/resource/js/storeList.js
View file @
8c4b7f5e
...
...
@@ -22,7 +22,7 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
store
.
getList
();
store
.
event
();
store
.
getRegionsDisc
();
//
store.getDistrict();
store
.
getDistrict
();
},
event
:
function
()
{
$
(
"#search"
).
click
(
function
()
{
...
...
@@ -291,11 +291,10 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
var
params
=
{};
params
.
pageNo
=
store
.
pageNo
;
params
.
pageSize
=
store
.
pageSize
;
params
.
district
=
$
(
'#area option:selected'
).
val
();;
//城市区
params
.
district
_id
=
$
(
"#qx-store option:selected"
).
val
();
//部门id
params
.
store_name
=
$
(
'#mend_name'
).
val
();
//门店名
params
.
agents_name
=
$
(
'#name'
).
val
();
//店长名
params
.
agents_phone
=
$
(
'#phone'
).
val
();
//手机号
$
.
ajax
({
url
:
'/index/storeList'
,
//获取列表
type
:
'GET'
,
...
...
@@ -363,12 +362,16 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
var
_html
=
' <option value="" selected="selected">请选择</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
n
)
{
if
(
n
.
district_name
==
name
&&
(
typeof
name
!=
undefined
))
{
_html
+=
'<option
"
value="'
+
n
.
id
+
'">'
+
n
.
district_name
+
'</option>'
;
_html
+=
'<option
value="'
+
n
.
id
+
'">'
+
n
.
district_name
+
'</option>'
;
}
else
{
_html
+=
'<option value="'
+
n
.
id
+
'">'
+
n
.
district_name
+
'</option>'
;
}
});
$
(
"#ss-store"
).
html
(
_html
);
$
(
"#qx-store"
).
append
(
_html
);
// $("#qx-store").html(_html);
}
else
{
alert
(
'获取部门信息失败'
);
}
...
...
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