Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
d869035e
Commit
d869035e
authored
Mar 07, 2020
by
李宏达
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lhd-dbug
parent
b43e6404
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
22 deletions
+19
-22
bpo-admin/app/front/vues/pages/channelmerchantmanager/channelmerchantmanager.html
+5
-11
bpo-admin/app/front/vues/pages/channelmerchantmanager/channelmerchantmanager.js
+14
-11
No files found.
bpo-admin/app/front/vues/pages/channelmerchantmanager/channelmerchantmanager.html
View file @
d869035e
...
@@ -112,25 +112,19 @@
...
@@ -112,25 +112,19 @@
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"商户名称:"
prop=
"origin_merchant_id"
>
<el-form-item
label=
"商户名称:"
prop=
"origin_merchant_id"
v-if=
"is_api == 1"
>
<el-select
v-model=
"dkcompany.origin_merchant_id"
placeholder=
"请选择商户名称"
style=
"width:468px;"
v-if=
"dkcompany.origin_id == 10000"
>
<el-option
v-for=
"item in optionsName"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
<el-autocomplete
<el-autocomplete
v-else
class=
"inline-input"
class=
"inline-input"
style=
"width:468px;"
style=
"width:468px;"
v-model=
"dkcompany.
merchant_name
"
v-model=
"dkcompany.
origin_merchant_id
"
:fetch-suggestions=
"querySearch"
:fetch-suggestions=
"querySearch"
placeholder=
"请输入商户名称"
placeholder=
"请输入商户名称"
@
select=
"handleSelect"
@
select=
"handleSelect"
></el-autocomplete>
></el-autocomplete>
</el-form-item>
</el-form-item>
<el-form-item
label=
"商户名称:"
prop=
"merchant_name"
v-if=
"is_api == 0"
>
<el-input
v-model=
"dkcompany.merchant_name"
placeholder=
"请输入商户名称"
maxlength=
"200"
style=
"width:468px;"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"联系人:"
prop=
"contact_man"
>
<el-form-item
label=
"联系人:"
prop=
"contact_man"
>
<el-input
v-model=
"dkcompany.contact_man"
placeholder=
"请输入联系人"
maxlength=
"200"
style=
"width:468px;"
clearable
></el-input>
<el-input
v-model=
"dkcompany.contact_man"
placeholder=
"请输入联系人"
maxlength=
"200"
style=
"width:468px;"
clearable
></el-input>
</el-form-item>
</el-form-item>
...
...
bpo-admin/app/front/vues/pages/channelmerchantmanager/channelmerchantmanager.js
View file @
d869035e
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
};
};
return
{
return
{
is_api
:
1
,
optionsName
:[],
optionsName
:[],
optionsMerchants
:
[],
optionsMerchants
:
[],
optionsChannel
:[],
optionsChannel
:[],
...
@@ -73,11 +74,16 @@
...
@@ -73,11 +74,16 @@
console
.
log
(
'?????????????'
,
queryString
,
cb
);
console
.
log
(
'?????????????'
,
queryString
,
cb
);
var
self
=
this
;
var
self
=
this
;
this
.
$root
.
postReq
(
"/web/channelCtl/originMerchants"
,
{
this
.
$root
.
postReq
(
"/web/channelCtl/originMerchants"
,
{
id
:
this
.
dkcompany
.
origin_id
,
name
:
queryString
name
:
queryString
})
})
.
then
(
function
(
d
)
{
.
then
(
function
(
d
)
{
if
(
d
.
status
==
0
)
{
if
(
d
.
status
==
0
)
{
cb
(
d
.
data
)
let
arr
=
[];
for
(
let
i
=
0
;
i
<
d
.
data
.
length
;
i
++
){
arr
.
push
({
'value'
:
d
.
data
[
i
].
name
},{
'address'
:
d
.
data
[
i
].
id
}
)
}
cb
(
arr
)
}
else
{
}
else
{
}
}
});
});
...
@@ -86,16 +92,13 @@
...
@@ -86,16 +92,13 @@
console
.
log
(
item
)
console
.
log
(
item
)
},
},
originMerchantsPost
(
value
)
{
originMerchantsPost
(
value
)
{
var
self
=
this
;
console
.
log
(
value
);
this
.
$root
.
postReq
(
"/web/channelCtl/originMerchants"
,
{
for
(
let
i
=
0
;
i
<
this
.
optionsMerchants
.
length
;
i
++
)
{
id
:
value
if
(
value
==
this
.
optionsMerchants
[
i
].
id
){
})
this
.
is_api
=
this
.
optionsMerchants
[
i
].
is_api
.
then
(
function
(
d
)
{
}
if
(
d
.
status
==
0
)
{
}
self
.
optionsName
=
d
.
data
||
[];
console
.
log
(
this
.
is_api
);
}
else
{
}
});
},
},
channelDictsPost
()
{
channelDictsPost
()
{
var
self
=
this
;
var
self
=
this
;
...
...
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