|
|
@@ -1,233 +0,0 @@
|
|
|
-<template>
|
|
|
- <div class="system0">
|
|
|
- <TabList />
|
|
|
- <div class="right">
|
|
|
- <div class="top">
|
|
|
- <el-breadcrumb separator="/">
|
|
|
- <el-breadcrumb-item to="">首页</el-breadcrumb-item>
|
|
|
- <el-breadcrumb-item to="">系统管理</el-breadcrumb-item>
|
|
|
- <el-breadcrumb-item id="mytitle">库房设置</el-breadcrumb-item>
|
|
|
- </el-breadcrumb>
|
|
|
- </div>
|
|
|
- <div class="conten">
|
|
|
- <div class="conten_left">
|
|
|
- <div class="btn">
|
|
|
- <el-button type="primary">新建库区</el-button>
|
|
|
- <el-button type="danger">删除</el-button>
|
|
|
- </div>
|
|
|
- <div class="title">
|
|
|
- <i class="el-icon-arrow-down" v-if="0"></i>
|
|
|
- <i class="el-icon-arrow-up" v-else></i>
|
|
|
- <span>一号库区</span>
|
|
|
- <i class="el-icon-plus tiny"></i>
|
|
|
- <i class="el-icon-edit tiny"></i>
|
|
|
- </div>
|
|
|
- <ul class="area">
|
|
|
- <li>库房A 编号:000668</li>
|
|
|
- <li>库房A 编号:000668</li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- <div class="conten_right">
|
|
|
- <div class="title">
|
|
|
- <b>库房A</b>
|
|
|
- <span>仓库编号:000668</span>
|
|
|
- <i class="el-icon-plus"></i>
|
|
|
- <i class="el-icon-edit"></i>
|
|
|
- <i class="el-icon-delete"></i>
|
|
|
- </div>
|
|
|
- <!-- 表格 -->
|
|
|
- <div class="table">
|
|
|
- <el-table
|
|
|
- :header-cell-style="{ background: '#eef1f6', color: '#606266' }"
|
|
|
- :data="tableData"
|
|
|
- border
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <el-table-column prop="name" label="货架编号" width="150"></el-table-column>
|
|
|
- <el-table-column prop="name" label="货架名称" width="150"></el-table-column>
|
|
|
- <el-table-column prop="name" label="行数" width="100"></el-table-column>
|
|
|
- <el-table-column prop="name" label="列数" width="100"></el-table-column>
|
|
|
- <el-table-column prop="address" label="备注"></el-table-column>
|
|
|
- <el-table-column label="操作" width="140">
|
|
|
- <template #default>
|
|
|
- <i class="el-icon-edit"></i>
|
|
|
- <i class="el-icon-delete"></i>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
- <!-- 分页器 -->
|
|
|
- <div class="paging">
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- layout="prev, pager, next,sizes,jumper"
|
|
|
- :total="30"
|
|
|
- >
|
|
|
- </el-pagination>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-</template>
|
|
|
-
|
|
|
-<script>
|
|
|
-import TabList from '@/components/tabLeft4.vue'
|
|
|
-export default {
|
|
|
- name: 'system0',
|
|
|
- // import引入的组件需要注入到对象中才能使用
|
|
|
- components: { TabList },
|
|
|
- data () {
|
|
|
- // 这里存放数据
|
|
|
- return {
|
|
|
- // 表格数据
|
|
|
- tableData: [
|
|
|
- {
|
|
|
- date: '2016-05-03',
|
|
|
- name: '王小虎',
|
|
|
- address: '上海市普陀区金沙江路 1518 弄'
|
|
|
- },
|
|
|
- {
|
|
|
- date: '2016-05-02',
|
|
|
- name: '王小虎',
|
|
|
- address: '上海市普陀区金沙江路 1518 弄'
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- },
|
|
|
- // 监听属性 类似于data概念
|
|
|
- computed: {},
|
|
|
- // 监控data中的数据变化
|
|
|
- watch: {},
|
|
|
- // 方法集合
|
|
|
- methods: {},
|
|
|
- // 生命周期 - 创建完成(可以访问当前this实例)
|
|
|
- created () {},
|
|
|
- // 生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
- mounted () {},
|
|
|
- beforeCreate () {}, // 生命周期 - 创建之前
|
|
|
- beforeMount () {}, // 生命周期 - 挂载之前
|
|
|
- beforeUpdate () {}, // 生命周期 - 更新之前
|
|
|
- updated () {}, // 生命周期 - 更新之后
|
|
|
- beforeDestroy () {}, // 生命周期 - 销毁之前
|
|
|
- destroyed () {}, // 生命周期 - 销毁完成
|
|
|
- activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
-}
|
|
|
-</script>
|
|
|
-<style lang='less' scoped>
|
|
|
-//@import url(); 引入公共css类
|
|
|
-.system0 {
|
|
|
- /deep/#mytitle > span {
|
|
|
- font-weight: 800;
|
|
|
- }
|
|
|
- display: flex;
|
|
|
- .right {
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- .top {
|
|
|
- padding-left: 35px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- box-shadow: 1px 1px 10px 1px;
|
|
|
- margin-left: 2px;
|
|
|
- height: 40px;
|
|
|
- background-color: #fff;
|
|
|
- }
|
|
|
- }
|
|
|
- .conten {
|
|
|
- flex: 1;
|
|
|
- display: flex;
|
|
|
- background-color: #fff;
|
|
|
- margin: 20px 20px 40px;
|
|
|
- padding: 30px 60px 0;
|
|
|
- .conten_left {
|
|
|
- width: 380px;
|
|
|
- height: 650px;
|
|
|
- border: 1px solid #ccc;
|
|
|
- margin-right: 30px;
|
|
|
- .btn {
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- height: 80px;
|
|
|
- }
|
|
|
- .title {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- height: 55px;
|
|
|
- background-color: #f2f2f2;
|
|
|
- color: black;
|
|
|
- & > span {
|
|
|
- margin: 0 170px 0 20px;
|
|
|
- }
|
|
|
- & > i {
|
|
|
- cursor: pointer;
|
|
|
- font-size: 30px;
|
|
|
- }
|
|
|
- .tiny {
|
|
|
- margin: 0 10px;
|
|
|
- font-size: 24px;
|
|
|
- color: #a5acb3;
|
|
|
- }
|
|
|
- }
|
|
|
- .area {
|
|
|
- color: black;
|
|
|
- li {
|
|
|
- cursor: pointer;
|
|
|
- width: 100%;
|
|
|
- height: 33px;
|
|
|
- line-height: 33px;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
- li:hover {
|
|
|
- color: #1890ff;
|
|
|
- }
|
|
|
- .active {
|
|
|
- color: #1890ff;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .conten_right {
|
|
|
- position: relative;
|
|
|
- .table{
|
|
|
- max-height: 500px;
|
|
|
- overflow: auto;
|
|
|
- i {
|
|
|
- cursor: pointer;
|
|
|
- font-size: 24px;
|
|
|
- color: black;
|
|
|
- margin-left: 15px;
|
|
|
- }
|
|
|
- }
|
|
|
- .paging{
|
|
|
- position: absolute;
|
|
|
- left: 50%;
|
|
|
- transform: translateX(-50%);
|
|
|
- bottom: 20px;
|
|
|
- }
|
|
|
- flex: 1;
|
|
|
- height: 650px;
|
|
|
- border: 1px solid #ccc;
|
|
|
- .title{
|
|
|
- height: 75px;
|
|
|
- color: black;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- &>b{
|
|
|
- font-size: 24px;
|
|
|
- margin: 0 20px;
|
|
|
- }
|
|
|
- &>span {
|
|
|
- margin-right: 20px;
|
|
|
- }
|
|
|
- &>i {
|
|
|
- cursor: pointer;
|
|
|
- font-size: 24px;
|
|
|
- margin: 0 10px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-</style>
|