Commit ee18550c by 肖康

x

parent c5ede3ce
...@@ -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{
......
...@@ -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: {
......
...@@ -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">
......
<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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment