|
@@ -0,0 +1,227 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <div class="template">
|
|
|
|
|
+ <div class="top">
|
|
|
|
|
+ <div class="location">数据管理 / <span>项目资料</span></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="conten">
|
|
|
|
|
+ <div class="search">
|
|
|
|
|
+ <div class="txt">筛选查询</div>
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <span>输入搜索:</span>
|
|
|
|
|
+ <el-input v-model="form.name" placeholder="请输入"></el-input>
|
|
|
|
|
+ <span>项目分类:</span>
|
|
|
|
|
+ <el-select v-model="form.fenlei" placeholder="请选择">
|
|
|
|
|
+ <el-option label="区域一" value="shanghai"></el-option>
|
|
|
|
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ <span>应用技术:</span>
|
|
|
|
|
+ <el-select v-model="form.fenlei" placeholder="请选择">
|
|
|
|
|
+ <el-option label="区域一" value="shanghai"></el-option>
|
|
|
|
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="btn">搜 索</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- 表格 -->
|
|
|
|
|
+ <div class="table">
|
|
|
|
|
+ <div class="title">
|
|
|
|
|
+ <div class="txt">数据列表</div>
|
|
|
|
|
+ <div class="addBtn">+ 新增</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ :header-cell-style="{ background: '#d8dadc' }"
|
|
|
|
|
+ :data="tableData"
|
|
|
|
|
+ stripe
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-table-column label="序号" width="80">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{ scope.$index + (form.pageNum - 1) * form.pageSize + 1 }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="name1" label="场景名称"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="name2" label="项目分类"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="name3" label="应用技术"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="name3" label="展示形式"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="name3" label="项目时间"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="name3" label="保密级别"> </el-table-column>
|
|
|
|
|
+ <el-table-column label="操作">
|
|
|
|
|
+ <template>
|
|
|
|
|
+ <el-button type="text">查 看</el-button>
|
|
|
|
|
+ <el-button type="text">编 辑</el-button>
|
|
|
|
|
+ <el-button type="text">删 除</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- 分页 -->
|
|
|
|
|
+ <div class="paging">
|
|
|
|
|
+ <el-pagination layout="prev, pager, next,jumper" :total="50">
|
|
|
|
|
+ </el-pagination>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script>
|
|
|
|
|
+export default {
|
|
|
|
|
+ name: 'tab1',
|
|
|
|
|
+ data () {
|
|
|
|
|
+ // 这里存放数据
|
|
|
|
|
+ return {
|
|
|
|
|
+ form: {
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
|
+ pageSize: 10,
|
|
|
|
|
+ name: '',
|
|
|
|
|
+ fenlei: '',
|
|
|
|
|
+ jishu: ''
|
|
|
|
|
+ },
|
|
|
|
|
+ tableData: [
|
|
|
|
|
+ {
|
|
|
|
|
+ name1: '111',
|
|
|
|
|
+ name2: '111',
|
|
|
|
|
+ name3: '111',
|
|
|
|
|
+ name4: '111',
|
|
|
|
|
+ name5: '111',
|
|
|
|
|
+ name6: '111'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name1: '222',
|
|
|
|
|
+ name2: '222',
|
|
|
|
|
+ name3: '222',
|
|
|
|
|
+ name4: '222',
|
|
|
|
|
+ name5: '222',
|
|
|
|
|
+ name6: '222'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ // 监听属性 类似于data概念
|
|
|
|
|
+ computed: {},
|
|
|
|
|
+ // 监控data中的数据变化
|
|
|
|
|
+ watch: {},
|
|
|
|
|
+ // 方法集合
|
|
|
|
|
+ methods: {},
|
|
|
|
|
+ // 生命周期 - 创建完成(可以访问当前this实例)
|
|
|
|
|
+ created () {},
|
|
|
|
|
+ // 生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
|
|
+ mounted () {},
|
|
|
|
|
+ beforeCreate () {}, // 生命周期 - 创建之前
|
|
|
|
|
+ beforeMount () {}, // 生命周期 - 挂载之前
|
|
|
|
|
+ beforeUpdate () {}, // 生命周期 - 更新之前
|
|
|
|
|
+ updated () {}, // 生命周期 - 更新之后
|
|
|
|
|
+ beforeDestroy () {}, // 生命周期 - 销毁之前
|
|
|
|
|
+ destroyed () {}, // 生命周期 - 销毁完成
|
|
|
|
|
+ activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
|
|
+}
|
|
|
|
|
+</script>
|
|
|
|
|
+<style lang='less' scoped>
|
|
|
|
|
+.template {
|
|
|
|
|
+ /deep/.el-table__body-wrapper {
|
|
|
|
|
+ max-height: 450px;
|
|
|
|
|
+ overflow-y: auto;
|
|
|
|
|
+ }
|
|
|
|
|
+ /deep/.cell {
|
|
|
|
|
+ padding-left: 20px !important;
|
|
|
|
|
+ }
|
|
|
|
|
+ /deep/.el-table__row .el-table__cell {
|
|
|
|
|
+ padding: 0 !important;
|
|
|
|
|
+ }
|
|
|
|
|
+ /deep/.el-pager li {
|
|
|
|
|
+ background: transparent !important;
|
|
|
|
|
+ }
|
|
|
|
|
+ /deep/.btn-prev {
|
|
|
|
|
+ background: transparent !important;
|
|
|
|
|
+ }
|
|
|
|
|
+ /deep/.btn-next {
|
|
|
|
|
+ background: transparent !important;
|
|
|
|
|
+ }
|
|
|
|
|
+ padding: 0px 30px;
|
|
|
|
|
+ .top {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ height: 58px;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+
|
|
|
|
|
+ .location {
|
|
|
|
|
+ font-size: 22px;
|
|
|
|
|
+ color: #999;
|
|
|
|
|
+ & > span {
|
|
|
|
|
+ color: black;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .conten {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 780px;
|
|
|
|
|
+ .txt {
|
|
|
|
|
+ font-weight: 700;
|
|
|
|
|
+ height: 40px;
|
|
|
|
|
+ border-bottom: 2px dashed #999;
|
|
|
|
|
+ }
|
|
|
|
|
+ .search {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ padding: 15px 20px 0;
|
|
|
|
|
+ border-radius: 5px;
|
|
|
|
|
+ box-shadow: 0px 0px 5px 0px;
|
|
|
|
|
+ height: 130px;
|
|
|
|
|
+ background-color: #d8dadc;
|
|
|
|
|
+ .row {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ & > div {
|
|
|
|
|
+ margin-right: 50px;
|
|
|
|
|
+ width: 20%;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .btn {
|
|
|
|
|
+ border-radius: 5px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ width: 170px;
|
|
|
|
|
+ height: 40px;
|
|
|
|
|
+ background-color: #dc3545;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: 50px;
|
|
|
|
|
+ top: 75px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .table {
|
|
|
|
|
+ margin-top: 25px;
|
|
|
|
|
+ .title {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ padding: 15px 20px 0;
|
|
|
|
|
+ background-color: #d8dadc;
|
|
|
|
|
+ .addBtn {
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ width: 80px;
|
|
|
|
|
+ height: 30px;
|
|
|
|
|
+ background-color: #dc3545;
|
|
|
|
|
+ border-radius: 12px;
|
|
|
|
|
+ z-index: 999;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: 56px;
|
|
|
|
|
+ top: 62px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .paging {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ bottom: 15px;
|
|
|
|
|
+ right: 50px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|