|
@@ -1,19 +1,94 @@
|
|
<template>
|
|
<template>
|
|
<div id="index">
|
|
<div id="index">
|
|
- <p>index</p>
|
|
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="24" class="info">
|
|
|
|
+ <el-col :span="24" class="top">
|
|
|
|
+ <topInfo :topTitle="topTitle"></topInfo>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="search">
|
|
|
|
+ <el-col :span="24" class="searchInfo">
|
|
|
|
+ <el-col :span="8" class="left">
|
|
|
|
+ <span>查询产品服务类别名称:</span>
|
|
|
|
+ <el-input v-model="input" placeholder="请输入产品服务类别名称"></el-input>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8" class="left">
|
|
|
|
+ <span>查询产品服务类别编码:</span>
|
|
|
|
+ <el-input v-model="input" placeholder="请输入产品服务类别编码"></el-input>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8" class="right">
|
|
|
|
+ <el-button size="mini" type="primary" icon="el-icon-search">查询</el-button>
|
|
|
|
+ <el-button size="mini" type="success" icon="el-icon-check" @click="addData()">产品服务类别类别</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="main">
|
|
|
|
+ <mainType :tableData="tableData"></mainType>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import topInfo from '@/layout/public/top.vue';
|
|
|
|
+import mainType from '@/layout/supermarket/mainType.vue';
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
props: {},
|
|
props: {},
|
|
- components: {},
|
|
|
|
- data: () => ({}),
|
|
|
|
|
|
+ components: {
|
|
|
|
+ topInfo, //头部标题
|
|
|
|
+ mainType, //商铺类别管理
|
|
|
|
+ },
|
|
|
|
+ data: () => ({
|
|
|
|
+ topTitle: '商铺类别管理',
|
|
|
|
+ input: '',
|
|
|
|
+ tableData: [
|
|
|
|
+ {
|
|
|
|
+ title: '高校类别',
|
|
|
|
+ bianma: 'ASDF',
|
|
|
|
+ fuBianma: 'asdf',
|
|
|
|
+ date: '2019-01-13',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '十条数据',
|
|
|
|
+ bianma: 'ASDF',
|
|
|
|
+ fuBianma: 'asdf',
|
|
|
|
+ date: '2019-01-13',
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ }),
|
|
created() {},
|
|
created() {},
|
|
computed: {},
|
|
computed: {},
|
|
- methods: {},
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ addData() {
|
|
|
|
+ this.$router.push({ path: './detail' });
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style lang="less" scoped></style>
|
|
|
|
|
|
+<style lang="less" scoped>
|
|
|
|
+.top {
|
|
|
|
+ height: 40px;
|
|
|
|
+ background-color: #f5f5f5;
|
|
|
|
+}
|
|
|
|
+.search {
|
|
|
|
+ height: 40px;
|
|
|
|
+ line-height: 40px;
|
|
|
|
+ padding: 0 15px;
|
|
|
|
+}
|
|
|
|
+.searchInfo .left span {
|
|
|
|
+ font-size: 13px;
|
|
|
|
+ color: #393939;
|
|
|
|
+}
|
|
|
|
+.searchInfo .left .el-input {
|
|
|
|
+ width: 50%;
|
|
|
|
+}
|
|
|
|
+/deep/.searchInfo .left .el-input .el-input__inner {
|
|
|
|
+ height: 28px;
|
|
|
|
+}
|
|
|
|
+.main {
|
|
|
|
+ width: 97%;
|
|
|
|
+ margin: 0 15px;
|
|
|
|
+}
|
|
|
|
+</style>
|