mirror of https://gitee.com/pnoker/dc3-web.git
pull/1/head
parent
8dbccbd34b
commit
4e55b2fe26
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 17 KiB |
@ -1,24 +1,73 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import VueRouter from 'vue-router'
|
import VueRouter from 'vue-router'
|
||||||
import Home from '../views/Home.vue'
|
import Home from '../views/Home.vue'
|
||||||
|
import Things from '../views/Things.vue'
|
||||||
|
import Template from '../views/Template.vue'
|
||||||
|
import Now from '../views/Now.vue'
|
||||||
|
import History from '../views/History.vue'
|
||||||
|
import Alarm from '../views/Alarm.vue'
|
||||||
|
import Node from '../views/Node.vue'
|
||||||
|
import Picture from '../views/Picture.vue'
|
||||||
|
import Video from '../views/Video.vue'
|
||||||
|
import About from '../views/About.vue'
|
||||||
|
|
||||||
Vue.use(VueRouter)
|
Vue.use(VueRouter)
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
name: 'home',
|
name: 'home',
|
||||||
component: Home
|
component: Home
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/about',
|
path: '/things',
|
||||||
name: 'about',
|
name: 'things',
|
||||||
component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
|
component: Things
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
path: '/template',
|
||||||
|
name: 'template',
|
||||||
|
component: Template
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/now',
|
||||||
|
name: 'now',
|
||||||
|
component: Now
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/history',
|
||||||
|
name: 'history',
|
||||||
|
component: History
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/alarm',
|
||||||
|
name: 'alarm',
|
||||||
|
component: Alarm
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/node',
|
||||||
|
name: 'node',
|
||||||
|
component: Node
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/picture',
|
||||||
|
name: 'picture',
|
||||||
|
component: Picture
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/video',
|
||||||
|
name: 'video',
|
||||||
|
component: Video
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/about',
|
||||||
|
name: 'about',
|
||||||
|
component: About
|
||||||
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
const router = new VueRouter({
|
const router = new VueRouter({
|
||||||
routes
|
routes
|
||||||
})
|
})
|
||||||
|
|
||||||
export default router
|
export default router
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div class="about">
|
||||||
|
<h1>This is an about page</h1>
|
||||||
|
</div>
|
||||||
|
</template>
|
@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div class="about">
|
||||||
|
<h1>This is an about page</h1>
|
||||||
|
</div>
|
||||||
|
</template>
|
@ -0,0 +1,23 @@
|
|||||||
|
<template>
|
||||||
|
<div class="container view">
|
||||||
|
<el-row class="operator">
|
||||||
|
<el-button icon="el-icon-search" circle></el-button>
|
||||||
|
<el-button type="success" icon="el-icon-plus" circle></el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-edit" circle></el-button>
|
||||||
|
<el-button type="warning" icon="el-icon-star-off" circle></el-button>
|
||||||
|
<el-button type="danger" icon="el-icon-delete" circle></el-button>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row class="page">
|
||||||
|
<el-pagination
|
||||||
|
background
|
||||||
|
layout="prev, pager, next"
|
||||||
|
:total="1000">
|
||||||
|
</el-pagination>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div class="about">
|
||||||
|
<h1>This is an about page</h1>
|
||||||
|
</div>
|
||||||
|
</template>
|
@ -0,0 +1,23 @@
|
|||||||
|
<template>
|
||||||
|
<div class="container view">
|
||||||
|
<el-row class="operator">
|
||||||
|
<el-button icon="el-icon-search" circle></el-button>
|
||||||
|
<el-button type="success" icon="el-icon-plus" circle></el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-edit" circle></el-button>
|
||||||
|
<el-button type="warning" icon="el-icon-star-off" circle></el-button>
|
||||||
|
<el-button type="danger" icon="el-icon-delete" circle></el-button>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row class="page">
|
||||||
|
<el-pagination
|
||||||
|
background
|
||||||
|
layout="prev, pager, next"
|
||||||
|
:total="1000">
|
||||||
|
</el-pagination>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
@ -0,0 +1,23 @@
|
|||||||
|
<template>
|
||||||
|
<div class="container view">
|
||||||
|
<el-row class="operator">
|
||||||
|
<el-button icon="el-icon-search" circle></el-button>
|
||||||
|
<el-button type="success" icon="el-icon-plus" circle></el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-edit" circle></el-button>
|
||||||
|
<el-button type="warning" icon="el-icon-star-off" circle></el-button>
|
||||||
|
<el-button type="danger" icon="el-icon-delete" circle></el-button>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row class="page">
|
||||||
|
<el-pagination
|
||||||
|
background
|
||||||
|
layout="prev, pager, next"
|
||||||
|
:total="1000">
|
||||||
|
</el-pagination>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
@ -0,0 +1,64 @@
|
|||||||
|
<template>
|
||||||
|
<div class="container view">
|
||||||
|
<el-row class="operator">
|
||||||
|
<el-button icon="el-icon-search" circle></el-button>
|
||||||
|
<el-button type="success" icon="el-icon-plus" circle></el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-edit" circle></el-button>
|
||||||
|
<el-button type="warning" icon="el-icon-star-off" circle></el-button>
|
||||||
|
<el-button type="danger" icon="el-icon-delete" circle></el-button>
|
||||||
|
</el-row>
|
||||||
|
<el-row class="device_list">
|
||||||
|
<el-card class="box-card" shadow="hover">
|
||||||
|
<div slot="header" class="clearfix">
|
||||||
|
<span>设备名称</span>
|
||||||
|
<el-button class="el-icon-more" style="float: right; padding: 3px 0" type="text"/>
|
||||||
|
</div>
|
||||||
|
<div v-for="o in 4" :key="o" class="text item">
|
||||||
|
{{'列表内容 ' + o }}
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
<el-card class="box-card" shadow="hover">
|
||||||
|
<div slot="header" class="clearfix">
|
||||||
|
<span>设备名称</span>
|
||||||
|
<el-button class="el-icon-more" style="float: right; padding: 3px 0" type="text"/>
|
||||||
|
</div>
|
||||||
|
<div v-for="o in 4" :key="o" class="text item">
|
||||||
|
{{'列表内容 ' + o }}
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
</el-row>
|
||||||
|
<el-row class="page">
|
||||||
|
<el-pagination
|
||||||
|
background
|
||||||
|
layout="prev, pager, next"
|
||||||
|
:total="1000">
|
||||||
|
</el-pagination>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.text {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
margin-bottom: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clearfix:before,
|
||||||
|
.clearfix:after {
|
||||||
|
display: table;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clearfix:after {
|
||||||
|
clear: both
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-card {
|
||||||
|
width: 480px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
@ -0,0 +1,23 @@
|
|||||||
|
<template>
|
||||||
|
<div class="container view">
|
||||||
|
<el-row class="operator">
|
||||||
|
<el-button icon="el-icon-search" circle></el-button>
|
||||||
|
<el-button type="success" icon="el-icon-plus" circle></el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-edit" circle></el-button>
|
||||||
|
<el-button type="warning" icon="el-icon-star-off" circle></el-button>
|
||||||
|
<el-button type="danger" icon="el-icon-delete" circle></el-button>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row class="page">
|
||||||
|
<el-pagination
|
||||||
|
background
|
||||||
|
layout="prev, pager, next"
|
||||||
|
:total="1000">
|
||||||
|
</el-pagination>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
Loading…
Reference in new issue