|
@@ -1,30 +1,134 @@
|
|
<template>
|
|
<template>
|
|
<div id="index">
|
|
<div id="index">
|
|
- <p>事项管理</p>
|
|
|
|
|
|
+ <el-col :span="24" class="style">
|
|
|
|
+ <el-col :span="24" class="top">
|
|
|
|
+ <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="main">
|
|
|
|
+ <el-col :span="24" class="main">
|
|
|
|
+ <el-col :span="24" class="one">
|
|
|
|
+ <van-tabs v-model="active" animated>
|
|
|
|
+ <van-tab>
|
|
|
|
+ <template #title>
|
|
|
|
+ <van-icon name="todo-list" />
|
|
|
|
+ <p>我的全部</p>
|
|
|
|
+ </template>
|
|
|
|
+ <wholeList></wholeList>
|
|
|
|
+ </van-tab>
|
|
|
|
+ <van-tab>
|
|
|
|
+ <template #title>
|
|
|
|
+ <van-icon name="column" />
|
|
|
|
+ <p>我的洽谈</p>
|
|
|
|
+ </template>
|
|
|
|
+ <negotiation></negotiation>
|
|
|
|
+ </van-tab>
|
|
|
|
+ <van-tab>
|
|
|
|
+ <template #title>
|
|
|
|
+ <van-icon name="label" />
|
|
|
|
+ <p>我的意向</p>
|
|
|
|
+ </template>
|
|
|
|
+ <intentionList></intentionList>
|
|
|
|
+ </van-tab>
|
|
|
|
+
|
|
|
|
+ <van-tab>
|
|
|
|
+ <template #title>
|
|
|
|
+ <van-icon name="label" />
|
|
|
|
+ <p>我的交易</p>
|
|
|
|
+ </template>
|
|
|
|
+ <transaction></transaction>
|
|
|
|
+ </van-tab>
|
|
|
|
+ </van-tabs>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
|
+import NavBar from '@/layout/common/topInfo.vue';
|
|
|
|
+import wholeList from './parts/wholeList.vue';
|
|
|
|
+import negotiation from './parts/negotiation.vue';
|
|
|
|
+import intentionList from './parts/intentionList.vue';
|
|
|
|
+import transaction from './parts/transaction.vue';
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
props: {},
|
|
props: {},
|
|
- components: {},
|
|
|
|
- data: function() {
|
|
|
|
- return {};
|
|
|
|
- },
|
|
|
|
|
|
+ components: { NavBar, wholeList, negotiation, intentionList, transaction },
|
|
|
|
+ data: () => ({
|
|
|
|
+ // 头部标题
|
|
|
|
+ title: '',
|
|
|
|
+ // meta为true
|
|
|
|
+ isleftarrow: '',
|
|
|
|
+ // 返回
|
|
|
|
+ navShow: true,
|
|
|
|
+ img_path: require('@/assets/logo.png'),
|
|
|
|
+ }),
|
|
created() {},
|
|
created() {},
|
|
- methods: {},
|
|
|
|
- computed: {
|
|
|
|
- ...mapState(['user']),
|
|
|
|
- pageTitle() {
|
|
|
|
- return `${this.$route.meta.title}`;
|
|
|
|
|
|
+ computed: {},
|
|
|
|
+ methods: {
|
|
|
|
+ uploadSuccess({ type, data }) {
|
|
|
|
+ console.log(type, data);
|
|
|
|
+ // if (type !== 'img_path') {
|
|
|
|
+ // let arr = _.get(this.uploads, type);
|
|
|
|
+ // if (arr !== undefined) {
|
|
|
|
+ // this.uploads[type].push({ name: data.name, uri: data.uri });
|
|
|
|
+ // } else {
|
|
|
|
+ // let newArr = [{ name: data.name, uri: data.uri }];
|
|
|
|
+ // this.$set(this.uploads, `${type}`, newArr);
|
|
|
|
+ // }
|
|
|
|
+ // } else {
|
|
|
|
+ // this.picLoading = false;
|
|
|
|
+ // this.$set(this.info, `${type}`, data.uri);
|
|
|
|
+ // this.$nextTick(() => {
|
|
|
|
+ // this.picLoading = true;
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- metaInfo() {
|
|
|
|
- return { title: this.$route.meta.title };
|
|
|
|
|
|
+ mounted() {
|
|
|
|
+ this.title = this.$route.meta.title;
|
|
|
|
+ this.isleftarrow = this.$route.meta.isleftarrow;
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style lang="less" scoped></style>
|
|
|
|
|
|
+<style lang="less" scoped>
|
|
|
|
+.style {
|
|
|
|
+ width: 100%;
|
|
|
|
+ min-height: 667px;
|
|
|
|
+ position: relative;
|
|
|
|
+ background-color: #f9fafc;
|
|
|
|
+}
|
|
|
|
+.top {
|
|
|
|
+ height: 46px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ position: relative;
|
|
|
|
+ z-index: 999;
|
|
|
|
+}
|
|
|
|
+.main {
|
|
|
|
+ min-height: 570px;
|
|
|
|
+ .two {
|
|
|
|
+ position: fixed;
|
|
|
|
+ top: 80%;
|
|
|
|
+
|
|
|
|
+ left: 10px;
|
|
|
|
+ z-index: 999;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+/deep/.van-tab {
|
|
|
|
+ text-align: center;
|
|
|
|
+}
|
|
|
|
+/deep/.van-tabs--line .van-tabs__wrap {
|
|
|
|
+ height: 70px;
|
|
|
|
+ margin: 0 0 10px 0;
|
|
|
|
+}
|
|
|
|
+/deep/.van-tab--active {
|
|
|
|
+ color: red;
|
|
|
|
+}
|
|
|
|
+.van-icon {
|
|
|
|
+ font-size: 20px;
|
|
|
|
+}
|
|
|
|
+</style>
|