Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-merchant-data
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1a4e4121
authored
Jun 19, 2019
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改loading和config地址
1 parent
da8a7015
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
src/views/customer/businessGroupDetail/addBusiness.vue
src/views/customer/components/src/cityArea.vue
src/views/customer/businessGroupDetail/addBusiness.vue
View file @
1a4e412
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
<
/gl-form
>
<
/gl-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
gl
-
button
@
click
=
"showAddDialog"
>
取
消
<
/gl-button
>
<
gl
-
button
@
click
=
"showAddDialog"
>
取
消
<
/gl-button
>
<
gl
-
button
type
=
"primary"
@
click
=
"ok"
>
确
定
<
/gl-button
>
<
gl
-
button
type
=
"primary"
v
-
loading
=
"submitLoading"
@
click
=
"ok"
>
确
定
<
/gl-button
>
<
/div
>
<
/div
>
<
/gl-dialog
>
<
/gl-dialog
>
<
/div
>
<
/div
>
...
@@ -128,6 +128,7 @@ export default {
...
@@ -128,6 +128,7 @@ export default {
merchantId
:
[{
required
:
true
}
],
merchantId
:
[{
required
:
true
}
],
merchantType
:
[{
required
:
true
}
]
merchantType
:
[{
required
:
true
}
]
}
,
}
,
submitLoading
:
false
,
// 远程搜索
// 远程搜索
loading
:
false
,
loading
:
false
,
childLoading
:
false
,
childLoading
:
false
,
...
@@ -169,6 +170,7 @@ export default {
...
@@ -169,6 +170,7 @@ export default {
this
.
isAdd
=
false
this
.
isAdd
=
false
this
.
$validator
.
validateAll
().
then
((
result
)
=>
{
this
.
$validator
.
validateAll
().
then
((
result
)
=>
{
if
(
result
)
{
if
(
result
)
{
this
.
submitLoading
=
true
if
(
this
.
addList
.
length
!==
0
)
{
if
(
this
.
addList
.
length
!==
0
)
{
if
(
this
.
addList
[
0
].
merchantId
)
{
if
(
this
.
addList
[
0
].
merchantId
)
{
this
.
addList
.
forEach
(
item
=>
{
this
.
addList
.
forEach
(
item
=>
{
...
@@ -185,6 +187,7 @@ export default {
...
@@ -185,6 +187,7 @@ export default {
notice
.
okTips
()
notice
.
okTips
()
this
.
showAddDialog
(
true
)
this
.
showAddDialog
(
true
)
this
.
disabledMerchant
=
false
this
.
disabledMerchant
=
false
this
.
submitLoading
=
false
}
).
catch
(
err
=>
{
}
).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
notice
.
errorTips
(
err
)
}
)
}
)
...
@@ -194,7 +197,6 @@ export default {
...
@@ -194,7 +197,6 @@ export default {
// 显示隐藏添加商户按钮
// 显示隐藏添加商户按钮
showAddDialog
(
t
)
{
showAddDialog
(
t
)
{
this
.
$emit
(
'addData'
,
t
)
this
.
$emit
(
'addData'
,
t
)
}
,
}
,
// 添加更多按钮
// 添加更多按钮
addMore
()
{
addMore
()
{
...
...
src/views/customer/components/src/cityArea.vue
View file @
1a4e412
...
@@ -108,7 +108,7 @@ export default {
...
@@ -108,7 +108,7 @@ export default {
this
.
resetAll
()
this
.
resetAll
()
})
})
// 初始化
// 初始化
this
.
$request
({
url
:
'http://
192.168.3.171:7300
/mock/5be17454f31545347559d499/config/area_config'
}).
then
(
data
=>
{
this
.
$request
({
url
:
'http://
oss-config.test.glsx.com.cn
/mock/5be17454f31545347559d499/config/area_config'
}).
then
(
data
=>
{
this
.
AllData
=
JSON
.
parse
(
data
.
data
).
provinceInfoList
this
.
AllData
=
JSON
.
parse
(
data
.
data
).
provinceInfoList
this
.
AllData
.
forEach
(
element
=>
{
this
.
AllData
.
forEach
(
element
=>
{
this
.
provinceList
.
push
({
provinceId
:
element
.
provinceId
,
provinceName
:
element
.
provinceName
})
this
.
provinceList
.
push
({
provinceId
:
element
.
provinceId
,
provinceName
:
element
.
provinceName
})
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment