Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
e1bb3803
Commit
e1bb3803
authored
Feb 24, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回商品相关列表时筛选条件、页码未保存 bug 修复
parent
769f064a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
42 deletions
+45
-42
index.js
src/router/index.js
+1
-1
index.vue
src/views/ecw/product/index.vue
+1
-1
index.vue
src/views/ecw/productPrice/index.vue
+39
-39
index.vue
src/views/ecw/productType/index.vue
+4
-1
No files found.
src/router/index.js
View file @
e1bb3803
...
@@ -212,7 +212,7 @@ export const constantRoutes = [
...
@@ -212,7 +212,7 @@ export const constantRoutes = [
path
:
'
product-price
'
,
path
:
'
product-price
'
,
component
:
(
resolve
)
=>
require
([
'
@/views/ecw/productPrice/index
'
],
resolve
),
component
:
(
resolve
)
=>
require
([
'
@/views/ecw/productPrice/index
'
],
resolve
),
name
:
'
ProductPrice
'
,
name
:
'
ProductPrice
'
,
meta
:
{
title
:
'
价格列表
'
,
activeMenu
:
'
/product/product-list
'
}
meta
:
{
title
:
'
价格列表
'
,
activeMenu
:
'
/product/product-list
'
,
componentPath
:
'
/ecw/productprice/index
'
}
}
}
]
]
},
},
...
...
src/views/ecw/product/index.vue
View file @
e1bb3803
src/views/ecw/productPrice/index.vue
View file @
e1bb3803
...
@@ -437,7 +437,7 @@ export default {
...
@@ -437,7 +437,7 @@ export default {
}
,
}
,
}
,
}
,
activated
()
{
activated
()
{
console
.
log
(
'
activated
'
,
Object
.
assign
({
}
,
this
.
$route
.
query
))
//
console.log('activated', Object.assign(
{
}
,
this
.
$route
.
query
))
/* this.$set(this.queryParams, 'typeId', +this.$route.query.product_type || null)
/* this.$set(this.queryParams, 'typeId', +this.$route.query.product_type || null)
let productId = this.product?.id
let productId = this.product?.id
...
@@ -450,25 +450,25 @@ export default {
...
@@ -450,25 +450,25 @@ export default {
}
}
this.handleQuery()
this.handleQuery()
*/
*/
this
.
getList
();
}
,
}
,
watch
:{
watch
:{
'
$route.query.product_id
'
(){
'
$route.query.product_id
'
(){
console
.
log
(
this
.
$route
.
query
)
// if(!this.$route.query.product_id)
{
if
(
!
this
.
$route
.
query
.
product_id
){
// return this.product = null
return
this
.
product
=
null
//
}
}
let
productId
=
this
.
product
?.
id
let
productId
=
this
.
product
?.
id
if
(
this
.
$route
.
name
===
'
ProductPrice
'
){
if
(
this
.
$route
.
query
.
product_id
!=
productId
){
if
(
this
.
$route
.
query
.
product_id
!=
productId
){
this
.
queryParams
=
{
this
.
queryParams
=
{
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
10
,
pageSize
:
10
,
productId
:
this
.
$route
.
query
.
product_id
productId
:
this
.
$route
.
query
.
product_id
,
}
}
}
getProduct
(
this
.
$route
.
query
.
product_id
).
then
(
res
=>
{
getProduct
(
this
.
$route
.
query
.
product_id
).
then
(
res
=>
{
this
.
product
=
res
.
data
this
.
product
=
res
.
data
}
)
}
)
this
.
handleQuery
()
this
.
getList
();
}
}
}
}
}
,
}
,
...
...
src/views/ecw/productType/index.vue
View file @
e1bb3803
...
@@ -79,7 +79,10 @@
...
@@ -79,7 +79,10 @@
import
{
createProductType
,
updateProductType
,
deleteProductType
,
getProductType
,
getProductTypePage
,
exportProductTypeExcel
}
from
"
@/api/ecw/productType
"
;
import
{
createProductType
,
updateProductType
,
deleteProductType
,
getProductType
,
getProductTypePage
,
exportProductTypeExcel
}
from
"
@/api/ecw/productType
"
;
export
default
{
export
default
{
name
:
"
ProductType
"
,
name
:
"
EcwProducttypeIndex
"
,
activated
()
{
this
.
getList
();
},
components
:
{
components
:
{
},
},
data
()
{
data
()
{
...
...
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