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