Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ee18550c
authored
May 12, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
c5ede3ce
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
2 deletions
src/main.js
src/router/index.js
src/views/Store/list.vue
src/views/Store/listDetail.vue
src/main.js
View file @
ee18550c
...
@@ -71,7 +71,7 @@ Vue.prototype.$http = http;
...
@@ -71,7 +71,7 @@ Vue.prototype.$http = http;
//路由页面回跳处理 mate里面参数 back:true 开启登录态回跳
//路由页面回跳处理 mate里面参数 back:true 开启登录态回跳
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
console
.
log
(
to
)
if
(
to
.
path
==
"/login"
){
if
(
to
.
path
==
"/login"
){
next
()
next
()
}
else
{
}
else
{
...
...
src/router/index.js
View file @
ee18550c
...
@@ -49,6 +49,17 @@ const routes = [
...
@@ -49,6 +49,17 @@ const routes = [
component
:
()
=>
import
(
'../views/Store/list.vue'
)
component
:
()
=>
import
(
'../views/Store/list.vue'
)
},
},
{
{
path
:
'/listDetail'
,
name
:
'ListDetail'
,
meta
:
{
title
:
'库存列表详情'
},
component
:
()
=>
import
(
'../views/Store/listDetail.vue'
)
},
{
path
:
'/enter'
,
path
:
'/enter'
,
name
:
'Enter'
,
name
:
'Enter'
,
meta
:
{
meta
:
{
...
...
src/views/Store/list.vue
View file @
ee18550c
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
</el-table-column>
</el-table-column>
<el-table-column
fixed
label=
"型号"
width=
"200"
>
<el-table-column
fixed
label=
"型号"
width=
"200"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<a
href=
"
"
class=
"f-blue"
>
{{
scope
.
row
.
goods_name
}}
</a>
<a
:href=
"'/#/listDetail?id='+scope.row.id
"
class=
"f-blue"
>
{{
scope
.
row
.
goods_name
}}
</a>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
fixed
prop=
"inquiry_sn"
label=
"供应商内部型号编码"
width=
"200"
>
<el-table-column
fixed
prop=
"inquiry_sn"
label=
"供应商内部型号编码"
width=
"200"
>
...
...
src/views/Store/listDetail.vue
0 → 100644
View file @
ee18550c
<
template
>
<div
class=
"index"
>
我是库存列表详情
<Menu/>
</div>
</
template
>
<
script
>
import
Vue
from
'vue'
;
import
Menu
from
"@/components/menu.vue"
;
import
Tool
from
'../../tool'
import
{
Button
,
Message
}
from
'element-ui'
Vue
.
use
(
Button
)
export
default
{
name
:
"listDetail"
,
data
()
{
return
{};
},
watch
:
{},
created
()
{
},
computed
:
{},
methods
:
{
ceshi
()
{
//this.$message.error('上传头像图片只能是 JPG 格式!');
Message
(
'这是一条消息提示'
);
this
.
$http
(
'get'
,
"/getJoke1"
,
{
page
:
1
,
count
:
2
,
type
:
'video'
})
.
then
(
res
=>
{
console
.
log
(
res
)
})
.
catch
(
err
=>
{
console
.
log
(
err
.
message
);
})
}
},
components
:
{
Menu
}
};
</
script
>
<
style
scoped
>
/* @import "../../assets/css/index/index.min.css"; */
</
style
>
\ No newline at end of file
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