Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
贷
贷超管理后台
Project
Project
Details
Activity
Releases
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
zhanhai
贷超管理后台
Commits
893ab693
Commit
893ab693
authored
Feb 01, 2023
by
刘雅文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提代码
parent
de72075c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
api.js
src/server/api.js
+8
-0
list.vue
src/views/prod/list.vue
+10
-2
No files found.
src/server/api.js
View file @
893ab693
...
@@ -114,6 +114,14 @@ export default {
...
@@ -114,6 +114,14 @@ export default {
params
params
});
});
},
},
//获取上架渠道
getChannel
(
params
){
return
request
({
url
:
'/dictData/selectBydictType'
,
method
:
"get"
,
params
})
},
// 产品查看
// 产品查看
prod_view
(
params
)
{
prod_view
(
params
)
{
return
request
({
return
request
({
...
...
src/views/prod/list.vue
View file @
893ab693
...
@@ -30,9 +30,9 @@
...
@@ -30,9 +30,9 @@
placeholder=
"请选择"
placeholder=
"请选择"
>
>
<el-option
<el-option
v-for=
"item in
options
"
v-for=
"item in
channelList
"
:key=
"item.value"
:key=
"item.value"
:label=
"item.
label
"
:label=
"item.
code
"
:value=
"item.value"
>
:value=
"item.value"
>
</el-option>
</el-option>
</el-select>
</el-select>
...
@@ -241,6 +241,7 @@ export default {
...
@@ -241,6 +241,7 @@ export default {
total
:
0
,
total
:
0
,
channelDialog
:
false
,
channelDialog
:
false
,
checkboxGroup1
:[],
checkboxGroup1
:[],
channelList
:[],
queryForm
:
{
queryForm
:
{
current
:
1
,
current
:
1
,
size
:
10
,
size
:
10
,
...
@@ -269,8 +270,15 @@ export default {
...
@@ -269,8 +270,15 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
fetchData
();
this
.
fetchData
();
this
.
getChannelList
();
},
},
methods
:
{
methods
:
{
// 获取上架渠道
async
getChannelList
(){
const
backResult
=
await
API
.
getChannel
({
dictType
:
'APPNAME'
});
this
.
channelList
=
backResult
.
result
;
console
.
log
(
backResult
,
'哈哈哈哈哈哈哈哈哈哈哈哈'
);
},
onSubmit
()
{
onSubmit
()
{
this
.
fetchData
();
this
.
fetchData
();
},
},
...
...
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