Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
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
xugong
hls-xcmg-vue-app
Commits
650b5518
Commit
650b5518
authored
Oct 17, 2019
by
786817560
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'添加注释'
parent
76cdc895
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
+18
-7
product-detailed.vue
src/pages/productQuery/product-detailed.vue
+8
-1
product-list.vue
src/pages/productQuery/product-list.vue
+2
-0
query-home.vue
src/pages/productQuery/query-home.vue
+8
-6
No files found.
src/pages/productQuery/product-detailed.vue
View file @
650b5518
...
...
@@ -2,7 +2,7 @@
* @Descrip: 产品明细
* @Author: your name
* @Date: 2019-10-15 14:30:00
* @LastEditTime: 2019-10-1
6 17:03:14
* @LastEditTime: 2019-10-1
7 19:12:22
* @LastEditors: Please set LastEditors
-->
<
template
>
...
...
@@ -14,6 +14,7 @@
</div>
</h-header>
<Tab
@
getTabNum=
"getTabNum"
/>
<!-- 基本信息 -->
<h-content
v-if=
"tabNum === 0"
>
<list-item
:item-height=
"44"
class=
"second-part"
>
<item>
...
...
@@ -64,6 +65,7 @@
</item>
</list-item>
</h-content>
<!-- 商品详情 -->
<h-content
v-if=
"tabNum === 1"
>
<list-item
:item-height=
"44"
class=
"second-part"
>
<item>
...
...
@@ -76,6 +78,7 @@
</item>
</list-item>
</h-content>
<!-- 产品配置 -->
<h-content
v-if=
"tabNum === 2"
>
<list-item
:item-height=
"44"
class=
"second-part"
>
<item>
...
...
@@ -130,6 +133,7 @@ export default {
console
.
log
(
i
)
this
.
tabNum
=
i
},
// 收藏
collect
()
{
this
.
collect_flag
=
true
console
.
log
(
this
.
collect_flag
)
...
...
@@ -138,6 +142,7 @@ export default {
this
.
src
=
require
(
'@/assets/productQuery/coll-success.png'
)
},
1500
)
},
// 基本信息查询
baseMsg
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_product_info'
...
...
@@ -153,6 +158,7 @@ export default {
}
})
},
// 详情查询
detailMsg
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_product_detial'
...
...
@@ -168,6 +174,7 @@ export default {
}
})
},
// 配置查询
confgMsg
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_product_conf'
...
...
src/pages/productQuery/product-list.vue
View file @
650b5518
...
...
@@ -65,6 +65,7 @@ export default {
},
methods
:
{
// 根据产品线查询列表
proQuery
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_product_list'
...
...
@@ -80,6 +81,7 @@ export default {
}
})
},
// val:产品id
goDetailed
(
val
)
{
this
.
$router
.
push
({
name
:
'ProDetailed'
,
...
...
src/pages/productQuery/query-home.vue
View file @
650b5518
...
...
@@ -2,7 +2,7 @@
* @Descrip: 查询首页
* @Author: your name
* @Date: 2019-10-15 14:30:00
* @LastEditTime: 2019-10-17 1
6:07:07
* @LastEditTime: 2019-10-17 1
9:07:02
* @LastEditors: Please set LastEditors
-->
<
template
>
...
...
@@ -14,6 +14,7 @@
</div>
</h-header>
<h-content>
<!-- 搜索 -->
<div
class=
"hinput"
>
<div
class=
"search-box"
>
<input
type=
"text"
placeholder=
"请输入产品类别/产品线"
>
...
...
@@ -68,6 +69,7 @@ export default {
},
methods
:
{
// 产品查询
proQuery
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_product_type_list'
...
...
@@ -81,6 +83,7 @@ export default {
}
})
},
// 跳列表 val = 产品线
goLists
(
val
)
{
this
.
$router
.
push
({
name
:
'ProductList'
,
...
...
@@ -89,6 +92,8 @@ export default {
},
})
},
// 产品线查询val=主机厂id,ind=产品列表索引
queryDivision
(
val
,
ind
)
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_product_division_list'
...
...
@@ -111,6 +116,7 @@ export default {
object
:
{},
returnItem
:
function
(
index
,
obj
)
{
console
.
log
(
'index:'
+
index
+
',object:'
+
vum
.
toJson
(
obj
))
// 更改产品线(division)和 产品线描述(division_n)
vm
.
prolists
[
ind
].
division_n
=
obj
.
bp_type_n
vm
.
prolists
[
ind
].
division
=
obj
.
bp_type
},
...
...
@@ -123,11 +129,7 @@ export default {
}
})
},
checkDivision
(
val
,
division
,
index
)
{
this
.
prolists
[
index
].
division_n
=
val
this
.
prolists
[
index
].
division
=
division
this
.
list_flag
=
!
this
.
list_flag
},
},
}
</
script
>
...
...
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