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
94ba1400
Commit
94ba1400
authored
May 26, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
价格列表
parent
ad03d207
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
8 deletions
+40
-8
index.js
src/router/index.js
+20
-5
index.vue
src/views/ecw/product/index.vue
+16
-2
index.vue
src/views/ecw/productPrice/index.vue
+3
-0
index.vue
src/views/ecw/productType/index.vue
+1
-1
No files found.
src/router/index.js
View file @
94ba1400
...
...
@@ -175,16 +175,31 @@ export const constantRoutes = [
}
]
},
// {
// path: '/product',
// component: Layout,
// hidden: true,
// redirect: 'noredirect',
// children: [{
// path: 'product-list',
// component: (resolve) => require(['@/views/ecw/product/index'], resolve),
// name: 'ProductList',
// meta: {title: '商品列表', activeMenu: '/product/product-list'}
// }
// ]
// },
{
path
:
'
/product
type
'
,
path
:
'
/product
'
,
component
:
Layout
,
hidden
:
true
,
redirect
:
'
noredirect
'
,
children
:
[{
path
:
'
product
list
'
,
component
:
(
resolve
)
=>
require
([
'
@/views/ecw/product/index
'
],
resolve
),
name
:
'
product
'
,
meta
:
{
title
:
'
产品列表
'
,
activeMenu
:
'
/product/product-type
'
}
path
:
'
product
-price
'
,
component
:
(
resolve
)
=>
require
([
'
@/views/ecw/product
Price
/index
'
],
resolve
),
name
:
'
ProductPrice
'
,
meta
:
{
title
:
'
价格列表
'
,
activeMenu
:
'
/product/product-list
'
}
}
]
}
...
...
src/views/ecw/product/index.vue
View file @
94ba1400
...
...
@@ -78,6 +78,10 @@
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"toPriceManager(scope.row)"
v-hasPermi=
"['ecw:product-price:query']"
>
价格管理
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['ecw:product:update']"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
...
...
@@ -140,7 +144,7 @@ import { getDictDatas, DICT_TYPE } from '@/utils/dict';
import
{
CommonStatusEnum
,
AuditStatusEnum
}
from
'
@/utils/constants
'
export
default
{
name
:
"
Product
"
,
name
:
"
Product
List
"
,
components
:
{
},
data
()
{
...
...
@@ -216,12 +220,12 @@ export default {
},
},
created
()
{
let
typeId
=
this
.
$route
.
query
.
typeId
;
if
(
typeId
)
{
this
.
queryParams
.
typeId
=
parseInt
(
typeId
);
}
this
.
getAttrList
();
this
.
getTypeList
();
this
.
getList
();
...
...
@@ -241,6 +245,16 @@ export default {
})
},
/**跳转价格管理 */
toPriceManager
(
row
)
{
this
.
$router
.
push
({
name
:
'
ProductPrice
'
,
params
:
{
product
:
row
}
})
},
handleStatusChange
(
row
,
statusType
)
{
updateProduct
(
row
).
then
(()
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
...
...
src/views/ecw/productPrice/index.vue
View file @
94ba1400
...
...
@@ -174,6 +174,9 @@ export default {
};
},
created
()
{
let
product
=
this
.
$route
.
params
.
product
;
console
.
log
(
product
);
this
.
getList
();
openedRouterList
({}).
then
(
response
=>
{
...
...
src/views/ecw/productType/index.vue
View file @
94ba1400
...
...
@@ -182,7 +182,7 @@ export default {
/**跳转到产品列表 */
typeProductList
(
row
)
{
this
.
$router
.
push
({
path
:
'
/product
type/product
list
'
,
path
:
'
/product
/product-
list
'
,
query
:
{
typeId
:
row
.
id
}
...
...
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