wuhongyu пре 5 година
родитељ
комит
52b2bc46e7

+ 101 - 0
src/components/enterprise/enterpisedg.vue

@@ -0,0 +1,101 @@
+<template>
+  <div id="adviserList">
+    <el-row>
+      <el-col :span="24" class="main">
+        <div class="w_1200">
+          <el-col :span="5" class="left">
+            <el-col :span="24" class="leftTop">
+              <mainMenu :liebiaoList="liebiaoList" v-on="$listeners"></mainMenu>
+            </el-col>
+            <el-col :span="24" class="leftDiao">
+              <examine></examine>
+            </el-col>
+          </el-col>
+          <el-col :span="19" class="right">
+            <context
+              v-on="$listeners"
+              :total1="total1"
+              :total2="total2"
+              :total3="total3"
+              :columnName="columnName"
+              :dinggou1="dinggou1"
+              :dinggou2="dinggou2"
+              :dinggou3="dinggou3"
+            ></context>
+          </el-col>
+        </div>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import examine from '@/layout/personCenter/question.vue';
+import mainMenu from '@/layout/enterprise/mainMenu.vue';
+import context from '@/layout/enterprise/context.vue';
+export default {
+  name: 'adviserList',
+  props: {
+    liebiaoList: null, //分类导航
+    columnName: null, //栏目名称
+    dinggou1: null,
+    dinggou2: null,
+    dinggou3: null,
+    total1: null,
+    total2: null,
+    total3: null,
+  },
+  components: {
+    examine, //网上调查
+    mainMenu, //分类导航
+    context, //列表
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+.w_1200 {
+  width: 80%;
+  margin: 0 auto;
+}
+
+.menu {
+  height: 70px;
+  overflow: hidden;
+}
+.main {
+  height: 900px;
+  overflow: hidden;
+  padding: 10px 0;
+  background: #e9edf6;
+  background-attachment: fixed;
+  background-size: cover;
+  background-position: center center;
+}
+.left {
+  height: 900px;
+  margin: 0 10px 0 0;
+  width: 20%;
+}
+.leftDiao {
+  background: #fff;
+  height: 510px;
+  overflow: hidden;
+}
+.leftTop {
+  background: #fff;
+  height: 360px;
+  overflow: hidden;
+  margin: 0 0 10px 0;
+}
+.right {
+  width: 79%;
+  height: 880px;
+  overflow: hidden;
+  background-color: #fff;
+}
+</style>

+ 88 - 0
src/components/enterprise/enterprisejb.vue

@@ -0,0 +1,88 @@
+<template>
+  <div id="adviserList">
+    <el-row>
+      <el-col :span="24" class="main">
+        <div class="w_1200">
+          <el-col :span="5" class="left">
+            <el-col :span="24" class="leftTop">
+              <mainMenu :liebiaoList="liebiaoList" v-on="$listeners"></mainMenu>
+            </el-col>
+            <el-col :span="24" class="leftDiao">
+              <examine></examine>
+            </el-col>
+          </el-col>
+          <el-col :span="19" class="right">
+            <jibencontext v-on="$listeners" :liebiaoList="liebiaoList" :userinfo="userinfo"></jibencontext>
+          </el-col>
+        </div>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import examine from '@/layout/personCenter/question.vue';
+import mainMenu from '@/layout/enterprise/mainMenu.vue';
+import jibencontext from '@/layout/enterprise/jibencontext.vue';
+
+export default {
+  name: 'adviserList',
+  props: {
+    info: null, //站点信息
+    liebiaoList: null, //分类导航
+    userinfo: null, //基本信息
+  },
+  components: {
+    examine, //网上调查
+    mainMenu, //分类导航
+    jibencontext, //基本信息
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+.w_1200 {
+  width: 80%;
+  margin: 0 auto;
+}
+
+.menu {
+  height: 70px;
+  overflow: hidden;
+}
+.main {
+  min-height: 740px;
+  overflow: hidden;
+  padding: 10px 0;
+  background: #e9edf6;
+  background-attachment: fixed;
+  background-size: cover;
+  background-position: center center;
+}
+.left {
+  min-height: 900px;
+  margin: 0 10px 0 0;
+  width: 20%;
+}
+.leftDiao {
+  background: #fff;
+  height: 770px;
+  overflow: hidden;
+}
+.leftTop {
+  background: #fff;
+  height: 360px;
+  overflow: hidden;
+  margin: 0 0 10px 0;
+}
+.right {
+  width: 79%;
+    height: 1140px;
+  overflow: hidden;
+  background-color: #fff;
+}
+</style>

+ 89 - 0
src/components/enterprise/enterprisexuqiu.vue

@@ -0,0 +1,89 @@
+<template>
+  <div id="adviserList">
+    <el-row>
+      <el-col :span="24" class="main">
+        <div class="w_1200">
+          <el-col :span="5" class="left">
+            <el-col :span="24" class="leftTop">
+              <mainMenu :liebiaoList="liebiaoList" v-on="$listeners"></mainMenu>
+            </el-col>
+            <el-col :span="24" class="leftDiao">
+              <examine></examine>
+            </el-col>
+          </el-col>
+          <el-col :span="19" class="right">
+            <contextfabu v-on="$listeners" :demandForm="demandForm" :totaltype="totaltype" :columnList="columnList"></contextfabu>
+          </el-col>
+        </div>
+      </el-col>
+      <el-col :span="24" class="foot"> </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import examine from '@/layout/personCenter/question.vue';
+import mainMenu from '@/layout/enterprise/mainMenu.vue';
+import contextfabu from '@/layout/enterprise/contextfabu.vue';
+export default {
+  name: 'adviserList',
+  props: {
+    liebiaoList: null, //分类导航
+    demandForm: null, //需求发布
+    columnList: null, //类型列表
+    totaltype: null, //判断
+  },
+  components: {
+    examine, //网上调查
+    mainMenu, //分类导航
+    contextfabu, //列表
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+.w_1200 {
+  width: 80%;
+  margin: 0 auto;
+}
+
+.menu {
+  height: 70px;
+  overflow: hidden;
+}
+.main {
+  min-height: 1720px;
+  overflow: hidden;
+  padding: 10px 0;
+  background: #e9edf6;
+  background-attachment: fixed;
+  background-size: cover;
+  background-position: center center;
+}
+.left {
+  height: 900px;
+  margin: 0 10px 0 0;
+  width: 20%;
+}
+.leftDiao {
+  background: #fff;
+  height: 1350px;
+  overflow: hidden;
+}
+.leftTop {
+  background: #fff;
+  height: 360px;
+  overflow: hidden;
+  margin: 0 0 10px 0;
+}
+.right {
+  width: 79%;
+  min-height: 1720px;
+  overflow: hidden;
+  background-color: #fff;
+}
+</style>

+ 86 - 0
src/components/enterprise/enterprisexx.vue

@@ -0,0 +1,86 @@
+<template>
+  <div id="adviserList">
+    <el-row>
+      <el-col :span="24" class="main">
+        <div class="w_1200">
+          <el-col :span="5" class="left">
+            <el-col :span="24" class="leftTop">
+              <mainMenu :liebiaoList="liebiaoList" v-on="$listeners"></mainMenu>
+            </el-col>
+            <el-col :span="24" class="leftDiao">
+              <examine></examine>
+            </el-col>
+          </el-col>
+          <el-col :span="19" class="right">
+            <contextxx></contextxx>
+          </el-col>
+        </div>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import examine from '@/layout/personCenter/question.vue';
+import mainMenu from '@/layout/enterprise/mainMenu.vue';
+import contextxx from '@/layout/enterprise/contextxx.vue';
+export default {
+  name: 'adviserList',
+  props: {
+    info: null, //站点信息
+    liebiaoList: null, //分类导航
+  },
+  components: {
+    examine, //网上调查
+    mainMenu, //分类导航
+    contextxx, //消息管理
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+.w_1200 {
+  width: 80%;
+  margin: 0 auto;
+}
+
+.menu {
+  height: 70px;
+  overflow: hidden;
+}
+.main {
+  min-height: 740px;
+  overflow: hidden;
+  padding: 10px 0;
+  background: #e9edf6;
+  background-attachment: fixed;
+  background-size: cover;
+  background-position: center center;
+}
+.left {
+  min-height: 900px;
+  margin: 0 10px 0 0;
+  width: 20%;
+}
+.leftDiao {
+  background: #fff;
+  height: 770px;
+  overflow: hidden;
+}
+.leftTop {
+  background: #fff;
+  height: 360px;
+  overflow: hidden;
+  margin: 0 0 10px 0;
+}
+.right {
+  width: 79%;
+  height: 1140px;
+  overflow: hidden;
+  background-color: #fff;
+}
+</style>

+ 83 - 0
src/components/supermaket/supermarketlistDetail.vue

@@ -0,0 +1,83 @@
+<template>
+  <div id="policy">
+    <el-row>
+      <el-col :span="24" class="main">
+        <div class="w_1200">
+          <el-col :span="24" class="rightcont">
+            <listcontext v-on="$listeners" :contentList="contentList" :columnName="columnName" v-if="display === 'list'" :total="total"></listcontext>
+            <detali v-else :policyInfo="policyInfo" v-on="$listeners"> </detali>
+          </el-col>
+        </div>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import listcontext from '@/layout/supermarket/listcontext.vue';
+import detali from '@/layout/supermarket/detali.vue';
+export default {
+  name: 'policy',
+  props: {
+    columnName: null, //栏目标题
+    contentList: null, //内容
+    total: null,
+    display: { type: String, default: 'list' },
+    policyInfo: null,
+  },
+  components: {
+    listcontext, //右边栏
+    detali,
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {
+    clickList({ id }) {
+      console.log(id);
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.w_1200 {
+  width: 80%;
+  margin: 0 auto;
+}
+.top {
+  height: 40px;
+  overflow: hidden;
+  background-color: rgba(11, 58, 125, 0.8);
+}
+.logo {
+  height: 200px;
+  overflow: hidden;
+}
+.menu {
+  height: 70px;
+  overflow: hidden;
+}
+
+.main {
+  min-height: 600px;
+  overflow: hidden;
+  margin: 10px 0;
+}
+
+.main .rightcont {
+  float: left;
+  width: 100%;
+  min-height: 600px;
+  overflow: hidden;
+  background-color: #fff;
+}
+
+.main .link {
+  float: left;
+  width: 100%;
+  height: 100px;
+  overflow: hidden;
+  background-color: #fff;
+}
+</style>

+ 91 - 70
src/layout/enterprise/context.vue

@@ -7,26 +7,28 @@
             <el-row style="padding: 0 20px;">
               <el-tabs v-model="activeNameFirst" @tab-click="handleClickFirst">
                 <el-tab-pane label="交易中" name="fgrrsss">
-                  <el-col :span="24" v-for="(item, index) in dinggou1" :key="index">
-                    <el-col class="xqborder">
-                      <el-col :span="24" class="fbListTop">
-                        <el-col :span="20"> </el-col>
-                        <el-col :span="4">
-                          {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                        </el-col>
-                      </el-col>
-                      <el-col :span="24" class="fbListCenter">
-                        <el-col :span="6" class="fbListCenterC">
-                          <p class="textOver">产品:{{ item.product_name }}</p>
-                          <p>营销人名称:{{ item.market_username }}</p>
-                          <p>购买人名称:{{ item.username }}</p>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterTwo">
-                          <el-col :span="24">说明:{{ item.description }}</el-col>
+                  <el-col :span="24" class="info">
+                    <el-col :span="24" v-for="(item, index) in dinggou1" :key="index">
+                      <el-col class="xqborder">
+                        <el-col :span="24" class="fbListTop">
+                          <el-col :span="20"> </el-col>
+                          <el-col :span="4">
+                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
+                          </el-col>
                         </el-col>
-                        <el-col :span="6" class="fbListCenterR">
-                          <el-col :span="24" class="bainji">
-                            <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                        <el-col :span="24" class="fbListCenter">
+                          <el-col :span="6" class="fbListCenterC">
+                            <p class="textOver">产品:{{ item.product_name }}</p>
+                            <p>营销人名称:{{ item.market_username }}</p>
+                            <p>购买人名称:{{ item.username }}</p>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterTwo">
+                            <el-col :span="24">说明:{{ item.description }}</el-col>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterR">
+                            <el-col :span="24" class="bainji">
+                              <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                            </el-col>
                           </el-col>
                         </el-col>
                       </el-col>
@@ -47,26 +49,28 @@
                 </el-tab-pane>
 
                 <el-tab-pane label="交易完成" name="fgrraaa">
-                  <el-col :span="24" v-for="(item, index) in dinggou2" :key="index">
-                    <el-col class="xqborder">
-                      <el-col :span="24" class="fbListTop">
-                        <el-col :span="20"> </el-col>
-                        <el-col :span="4">
-                          {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                        </el-col>
-                      </el-col>
-                      <el-col :span="24" class="fbListCenter">
-                        <el-col :span="6" class="fbListCenterC">
-                          <p class="textOver">产品:{{ item.product_name }}</p>
-                          <p>营销人名称:{{ item.market_username }}</p>
-                          <p>购买人名称:{{ item.username }}</p>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterTwo">
-                          <el-col :span="24">说明:{{ item.description }}</el-col>
+                  <el-col :span="24" class="info">
+                    <el-col :span="24" v-for="(item, index) in dinggou2" :key="index">
+                      <el-col class="xqborder">
+                        <el-col :span="24" class="fbListTop">
+                          <el-col :span="20"> </el-col>
+                          <el-col :span="4">
+                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
+                          </el-col>
                         </el-col>
-                        <el-col :span="6" class="fbListCenterR">
-                          <el-col :span="24" class="bainji">
-                            <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                        <el-col :span="24" class="fbListCenter">
+                          <el-col :span="6" class="fbListCenterC">
+                            <p class="textOver">产品:{{ item.product_name }}</p>
+                            <p>营销人名称:{{ item.market_username }}</p>
+                            <p>购买人名称:{{ item.username }}</p>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterTwo">
+                            <el-col :span="24">说明:{{ item.description }}</el-col>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterR">
+                            <el-col :span="24" class="bainji">
+                              <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                            </el-col>
                           </el-col>
                         </el-col>
                       </el-col>
@@ -87,26 +91,28 @@
                 </el-tab-pane>
 
                 <el-tab-pane label="交易取消" name="fgrr">
-                  <el-col :span="24" v-for="(item, index) in dinggou3" :key="index">
-                    <el-col class="xqborder">
-                      <el-col :span="24" class="fbListTop">
-                        <el-col :span="20"> </el-col>
-                        <el-col :span="4">
-                          {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                        </el-col>
-                      </el-col>
-                      <el-col :span="24" class="fbListCenter">
-                        <el-col :span="6" class="fbListCenterC">
-                          <p class="textOver">产品:{{ item.product_name }}</p>
-                          <p>营销人名称:{{ item.market_username }}</p>
-                          <p>购买人名称:{{ item.username }}</p>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterTwo">
-                          <el-col :span="24">说明:{{ item.description }}</el-col>
+                  <el-col :span="24" class="info">
+                    <el-col :span="24" v-for="(item, index) in dinggou3" :key="index">
+                      <el-col class="xqborder">
+                        <el-col :span="24" class="fbListTop">
+                          <el-col :span="20"> </el-col>
+                          <el-col :span="4">
+                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
+                          </el-col>
                         </el-col>
-                        <el-col :span="6" class="fbListCenterR">
-                          <el-col :span="24" class="bainji">
-                            <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                        <el-col :span="24" class="fbListCenter">
+                          <el-col :span="6" class="fbListCenterC">
+                            <p class="textOver">产品:{{ item.product_name }}</p>
+                            <p>营销人名称:{{ item.market_username }}</p>
+                            <p>购买人名称:{{ item.username }}</p>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterTwo">
+                            <el-col :span="24">说明:{{ item.description }}</el-col>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterR">
+                            <el-col :span="24" class="bainji">
+                              <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                            </el-col>
                           </el-col>
                         </el-col>
                       </el-col>
@@ -200,14 +206,18 @@ p {
   padding: 0;
   margin: 0;
 }
+.info {
+  height: 650px;
+}
 .xqborder {
-  width: 889px;
+  // width: 889px;
+  width: 100%;
   height: 183px;
   border: 1px solid #ccc;
   margin-top: 20px;
 }
 .fbListTop {
-  width: 885px;
+  width: 99.8%;
   height: 43px;
   margin-left: 1px;
   background: #fafafa;
@@ -216,24 +226,34 @@ p {
   font-size: 13px;
   color: #888888;
 }
+
+.fbListCenterTwo {
+  width: 48%;
+  float: left;
+  margin-left: 10px;
+  margin-right: 10px;
+  background: #fafafa;
+  height: 100px;
+}
 .fbListCenter {
-  width: 870px;
+  width: 100%;
   height: 119px;
   margin: 20px 0 0 12px;
 }
 .fimage {
-  width: 110px;
+  width: 12%;
   height: 119px;
   float: left;
 }
 .fbListCenterC {
-  width: 196px;
+  width: 22%;
   border-right: 1px solid #ccc;
   height: 100px;
 }
 .fbListCenterC p {
   padding: 5px 0;
 }
+
 .fbListCenterR {
   border-left: 1px solid #ccc;
   width: 125px;
@@ -252,14 +272,7 @@ p {
   color: #fe0000;
   width: 196px;
 }
-.fbListCenterTwo {
-  width: 385px;
-  float: left;
-  margin-left: 10px;
-  margin-right: 10px;
-  background: #fafafa;
-  height: 100px;
-}
+
 .bainji {
   padding: 0 0 0 20px;
 }
@@ -267,6 +280,14 @@ p {
   padding: 11px 0 0 0;
   text-align: center;
 }
+
+/deep/.el-pagination {
+  padding: 41px 0 0 0;
+  white-space: nowrap;
+  padding: 2px 5px;
+  color: #303133;
+  font-weight: 700;
+}
 .fabuBtn {
   position: absolute;
   top: 65px;

+ 183 - 158
src/layout/enterprise/contextfabuxx.vue

@@ -7,38 +7,40 @@
             <el-row style="padding: 0 20px;">
               <el-tabs v-model="activeNameFirst" @tab-click="handleClickFirst">
                 <el-tab-pane label="审核成功" name="first">
-                  <el-col :span="24" v-for="(item, index) in recruitData" :key="index">
-                    <el-col class="xqborder">
-                      <el-col :span="24" class="fbListTop">
-                        <el-col :span="21"> {{ item.name }} </el-col>
-                        <el-col :span="3">
-                          {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                        </el-col>
-                      </el-col>
-                      <el-col :span="24" class="fbListCenter">
-                        <el-col :span="6" class="fimage">
-                          <el-col :span="24" v-for="(acm, index) in item.image" :key="index">
-                            <template v-if="index === 0">
-                              <el-image style="width:100px;height:100px" :src="acm.url"></el-image>
-                            </template>
+                  <el-col :span="24" class="info">
+                    <el-col :span="24" v-for="(item, index) in recruitData" :key="index">
+                      <el-col class="xqborder">
+                        <el-col :span="24" class="fbListTop">
+                          <el-col :span="21"> {{ item.name }} </el-col>
+                          <el-col :span="3">
+                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
                           </el-col>
                         </el-col>
-                        <el-col :span="6" class="fbListCenterC">
-                          <p class="textOver">产品:{{ item.name }}</p>
-                          <p>类别:{{ item.totaltype === '0' ? '技术' : item.totaltype === '1' ? '产品' : item.totaltype === '2' ? '服务' : 'underdind' }}</p>
-                          <p class="listMoney">{{ item.price }}/{{ item.priceunit }}</p>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterTwo">
-                          <el-col :span="24">最新申请:</el-col>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterR">
-                          <el-col :span="24" class="bainji">
-                            <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })">编辑</el-link
-                            ><br />
-                            <el-link :underline="false" @click="handleDelete(item)">彻底删除</el-link>
-                            <!-- <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })"
+                        <el-col :span="24" class="fbListCenter">
+                          <el-col :span="6" class="fimage">
+                            <el-col :span="24" v-for="(acm, index) in item.image" :key="index">
+                              <template v-if="index === 0">
+                                <el-image style="width:100px;height:100px" :src="acm.url"></el-image>
+                              </template>
+                            </el-col>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterC">
+                            <p class="textOver">产品:{{ item.name }}</p>
+                            <p>类别:{{ item.totaltype === '0' ? '技术' : item.totaltype === '1' ? '产品' : item.totaltype === '2' ? '服务' : 'underdind' }}</p>
+                            <p class="listMoney">{{ item.price }}/{{ item.priceunit }}</p>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterTwo">
+                            <el-col :span="24">最新申请:</el-col>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterR">
+                            <el-col :span="24" class="bainji">
+                              <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })">编辑</el-link
+                              ><br />
+                              <el-link :underline="false" @click="handleDelete(item)">彻底删除</el-link>
+                              <!-- <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })"
                               >查看申请</el-link
                             > -->
+                            </el-col>
                           </el-col>
                         </el-col>
                       </el-col>
@@ -58,35 +60,37 @@
                   </el-col>
                 </el-tab-pane>
                 <el-tab-pane label="审核中信息" name="second">
-                  <el-col :span="24" v-for="(item, index) in shenheList" :key="index">
-                    <el-col class="xqborder">
-                      <el-col :span="24" class="fbListTop">
-                        <el-col :span="21"> {{ item.name }} </el-col>
-                        <el-col :span="3">
-                          {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                        </el-col>
-                      </el-col>
-                      <el-col :span="24" class="fbListCenter">
-                        <el-col :span="6" class="fimage">
-                          <el-col :span="24" v-for="(acm, index) in item.image" :key="index">
-                            <template v-if="index === 0">
-                              <el-image style="width:100px;height:100px" :src="acm.url"></el-image>
-                            </template>
+                  <el-col :span="24" class="info">
+                    <el-col :span="24" v-for="(item, index) in shenheList" :key="index">
+                      <el-col class="xqborder">
+                        <el-col :span="24" class="fbListTop">
+                          <el-col :span="21"> {{ item.name }} </el-col>
+                          <el-col :span="3">
+                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
                           </el-col>
                         </el-col>
-                        <el-col :span="6" class="fbListCenterC">
-                          <p class="textOver">产品:{{ item.name }}</p>
-                          <p>类别:{{ item.totaltype === '0' ? '技术' : item.totaltype === '1' ? '产品' : item.totaltype === '2' ? '服务' : 'underdind' }}</p>
-                          <p class="listMoney">{{ item.price }}/{{ item.priceunit }}</p>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterTwo">
-                          <el-col :span="24">最新申请:</el-col>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterR">
-                          <el-col :span="24" class="bainji">
-                            <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })">编辑</el-link
-                            ><br />
-                            <el-link :underline="false" @click="handleDelete(item)">彻底删除</el-link>
+                        <el-col :span="24" class="fbListCenter">
+                          <el-col :span="6" class="fimage">
+                            <el-col :span="24" v-for="(acm, index) in item.image" :key="index">
+                              <template v-if="index === 0">
+                                <el-image style="width:100px;height:100px" :src="acm.url"></el-image>
+                              </template>
+                            </el-col>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterC">
+                            <p class="textOver">产品:{{ item.name }}</p>
+                            <p>类别:{{ item.totaltype === '0' ? '技术' : item.totaltype === '1' ? '产品' : item.totaltype === '2' ? '服务' : 'underdind' }}</p>
+                            <p class="listMoney">{{ item.price }}/{{ item.priceunit }}</p>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterTwo">
+                            <el-col :span="24">最新申请:</el-col>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterR">
+                            <el-col :span="24" class="bainji">
+                              <el-link :underline="false" @click="$router.push({ path: '/enterprise/enterprisexuqiu', query: { id: item.id } })">编辑</el-link
+                              ><br />
+                              <el-link :underline="false" @click="handleDelete(item)">彻底删除</el-link>
+                            </el-col>
                           </el-col>
                         </el-col>
                       </el-col>
@@ -106,33 +110,35 @@
                   </el-col>
                 </el-tab-pane>
                 <el-tab-pane label="审核失败" name="thirth">
-                  <el-col :span="24" v-for="(item, index) in successlist" :key="index">
-                    <el-col class="xqborder">
-                      <el-col :span="24" class="fbListTop">
-                        <el-col :span="21"> {{ item.name }} </el-col>
-                        <el-col :span="3">
-                          {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                        </el-col>
-                      </el-col>
-                      <el-col :span="24" class="fbListCenter">
-                        <el-col :span="6" class="fimage">
-                          <el-col :span="24" v-for="(acm, index) in item.image" :key="index">
-                            <template v-if="index === 0">
-                              <el-image style="width:100px;height:100px" :src="acm.url"></el-image>
-                            </template>
+                  <el-col :span="24" class="info">
+                    <el-col :span="24" v-for="(item, index) in successlist" :key="index">
+                      <el-col class="xqborder">
+                        <el-col :span="24" class="fbListTop">
+                          <el-col :span="21"> {{ item.name }} </el-col>
+                          <el-col :span="3">
+                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
                           </el-col>
                         </el-col>
-                        <el-col :span="6" class="fbListCenterC">
-                          <p class="textOver">产品:{{ item.name }}</p>
-                          <p>类别:{{ item.totaltype === '0' ? '技术' : item.totaltype === '1' ? '产品' : item.totaltype === '2' ? '服务' : 'underdind' }}</p>
-                          <p class="listMoney">{{ item.price }}/{{ item.priceunit }}</p>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterTwo">
-                          <el-col :span="24">最新申请:</el-col>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterR">
-                          <el-col :span="24" class="bainji">
-                            <el-link :underline="false" @click="handleDelete(item)">彻底删除</el-link>
+                        <el-col :span="24" class="fbListCenter">
+                          <el-col :span="6" class="fimage">
+                            <el-col :span="24" v-for="(acm, index) in item.image" :key="index">
+                              <template v-if="index === 0">
+                                <el-image style="width:100px;height:100px" :src="acm.url"></el-image>
+                              </template>
+                            </el-col>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterC">
+                            <p class="textOver">产品:{{ item.name }}</p>
+                            <p>类别:{{ item.totaltype === '0' ? '技术' : item.totaltype === '1' ? '产品' : item.totaltype === '2' ? '服务' : 'underdind' }}</p>
+                            <p class="listMoney">{{ item.price }}/{{ item.priceunit }}</p>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterTwo">
+                            <el-col :span="24">最新申请:</el-col>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterR">
+                            <el-col :span="24" class="bainji">
+                              <el-link :underline="false" @click="handleDelete(item)">彻底删除</el-link>
+                            </el-col>
                           </el-col>
                         </el-col>
                       </el-col>
@@ -153,26 +159,28 @@
                 </el-tab-pane>
 
                 <el-tab-pane label="发起交易" name="fgffadqdfa">
-                  <el-col :span="24" v-for="(item, index) in faqilist" :key="index">
-                    <el-col class="xqborder">
-                      <el-col :span="24" class="fbListTop">
-                        <el-col :span="21"> </el-col>
-                        <el-col :span="3">
-                          {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                        </el-col>
-                      </el-col>
-                      <el-col :span="24" class="fbListCenter">
-                        <el-col :span="6" class="fbListCenterC">
-                          <p class="textOver">产品:{{ item.product_name }}</p>
-                          <p>营销人名称:{{ item.market_username }}</p>
-                          <p>购买人名称:{{ item.username }}</p>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterTwo">
-                          <el-col :span="24">说明:{{ item.description }}</el-col>
+                  <el-col :span="24" class="info">
+                    <el-col :span="24" v-for="(item, index) in faqilist" :key="index">
+                      <el-col class="xqborder">
+                        <el-col :span="24" class="fbListTop">
+                          <el-col :span="21"> </el-col>
+                          <el-col :span="3">
+                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
+                          </el-col>
                         </el-col>
-                        <el-col :span="6" class="fbListCenterR">
-                          <el-col :span="24" class="bainji">
-                            <el-link :underline="false" @click="jiaoyisuccess(item)">同意交易</el-link>
+                        <el-col :span="24" class="fbListCenter">
+                          <el-col :span="6" class="fbListCenterC">
+                            <p class="textOver">产品:{{ item.product_name }}</p>
+                            <p>营销人名称:{{ item.market_username }}</p>
+                            <p>购买人名称:{{ item.username }}</p>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterTwo">
+                            <el-col :span="24">说明:{{ item.description }}</el-col>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterR">
+                            <el-col :span="24" class="bainji">
+                              <el-link :underline="false" @click="jiaoyisuccess(item)">同意交易</el-link>
+                            </el-col>
                           </el-col>
                         </el-col>
                       </el-col>
@@ -193,28 +201,30 @@
                 </el-tab-pane>
 
                 <el-tab-pane label="交易中" name="fgrrsss">
-                  <el-col :span="24" v-for="(item, index) in Transactionlist" :key="index">
-                    <el-col class="xqborder">
-                      <el-col :span="24" class="fbListTop">
-                        <el-col :span="21"> </el-col>
-                        <el-col :span="3">
-                          {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                        </el-col>
-                      </el-col>
-                      <el-col :span="24" class="fbListCenter">
-                        <el-col :span="6" class="fbListCenterC">
-                          <p class="textOver">产品:{{ item.product_name }}</p>
-                          <p>营销人名称:{{ item.market_username }}</p>
-                          <p>购买人名称:{{ item.username }}</p>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterTwo">
-                          <el-col :span="24">说明:{{ item.description }}</el-col>
+                  <el-col :span="24" class="info">
+                    <el-col :span="24" v-for="(item, index) in Transactionlist" :key="index">
+                      <el-col class="xqborder">
+                        <el-col :span="24" class="fbListTop">
+                          <el-col :span="21"> </el-col>
+                          <el-col :span="3">
+                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
+                          </el-col>
                         </el-col>
-                        <el-col :span="6" class="fbListCenterR">
-                          <el-col :span="24" class="bainji">
-                            <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
-                            <el-link :underline="false" @click="success(item)">审核通过</el-link>
-                            <el-link :underline="false" @click="shibai(item)">审核失败</el-link>
+                        <el-col :span="24" class="fbListCenter">
+                          <el-col :span="6" class="fbListCenterC">
+                            <p class="textOver">产品:{{ item.product_name }}</p>
+                            <p>营销人名称:{{ item.market_username }}</p>
+                            <p>购买人名称:{{ item.username }}</p>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterTwo">
+                            <el-col :span="24">说明:{{ item.description }}</el-col>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterR">
+                            <el-col :span="24" class="bainji">
+                              <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                              <el-link :underline="false" @click="success(item)">审核通过</el-link>
+                              <el-link :underline="false" @click="shibai(item)">审核失败</el-link>
+                            </el-col>
                           </el-col>
                         </el-col>
                       </el-col>
@@ -235,26 +245,28 @@
                 </el-tab-pane>
 
                 <el-tab-pane label="交易完成" name="fgrraaa">
-                  <el-col :span="24" v-for="(item, index) in jiaoyilist1" :key="index">
-                    <el-col class="xqborder">
-                      <el-col :span="24" class="fbListTop">
-                        <el-col :span="21"> </el-col>
-                        <el-col :span="3">
-                          {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                        </el-col>
-                      </el-col>
-                      <el-col :span="24" class="fbListCenter">
-                        <el-col :span="6" class="fbListCenterC">
-                          <p class="textOver">产品:{{ item.product_name }}</p>
-                          <p>营销人名称:{{ item.market_username }}</p>
-                          <p>购买人名称:{{ item.username }}</p>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterTwo">
-                          <el-col :span="24">说明:{{ item.description }}</el-col>
+                  <el-col :span="24" class="info">
+                    <el-col :span="24" v-for="(item, index) in jiaoyilist1" :key="index">
+                      <el-col class="xqborder">
+                        <el-col :span="24" class="fbListTop">
+                          <el-col :span="21"> </el-col>
+                          <el-col :span="3">
+                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
+                          </el-col>
                         </el-col>
-                        <el-col :span="6" class="fbListCenterR">
-                          <el-col :span="24" class="bainji">
-                            <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                        <el-col :span="24" class="fbListCenter">
+                          <el-col :span="6" class="fbListCenterC">
+                            <p class="textOver">产品:{{ item.product_name }}</p>
+                            <p>营销人名称:{{ item.market_username }}</p>
+                            <p>购买人名称:{{ item.username }}</p>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterTwo">
+                            <el-col :span="24">说明:{{ item.description }}</el-col>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterR">
+                            <el-col :span="24" class="bainji">
+                              <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                            </el-col>
                           </el-col>
                         </el-col>
                       </el-col>
@@ -275,26 +287,28 @@
                 </el-tab-pane>
 
                 <el-tab-pane label="交易取消" name="fgrr">
-                  <el-col :span="24" v-for="(item, index) in jiaoyilist" :key="index">
-                    <el-col class="xqborder">
-                      <el-col :span="24" class="fbListTop">
-                        <el-col :span="21"> </el-col>
-                        <el-col :span="3">
-                          {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
-                        </el-col>
-                      </el-col>
-                      <el-col :span="24" class="fbListCenter">
-                        <el-col :span="6" class="fbListCenterC">
-                          <p class="textOver">产品:{{ item.product_name }}</p>
-                          <p>营销人名称:{{ item.market_username }}</p>
-                          <p>购买人名称:{{ item.username }}</p>
-                        </el-col>
-                        <el-col :span="6" class="fbListCenterTwo">
-                          <el-col :span="24">说明:{{ item.description }}</el-col>
+                  <el-col :span="24" class="info">
+                    <el-col :span="24" v-for="(item, index) in jiaoyilist" :key="index">
+                      <el-col class="xqborder">
+                        <el-col :span="24" class="fbListTop">
+                          <el-col :span="21"> </el-col>
+                          <el-col :span="3">
+                            {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
+                          </el-col>
                         </el-col>
-                        <el-col :span="6" class="fbListCenterR">
-                          <el-col :span="24" class="bainji">
-                            <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                        <el-col :span="24" class="fbListCenter">
+                          <el-col :span="6" class="fbListCenterC">
+                            <p class="textOver">产品:{{ item.product_name }}</p>
+                            <p>营销人名称:{{ item.market_username }}</p>
+                            <p>购买人名称:{{ item.username }}</p>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterTwo">
+                            <el-col :span="24">说明:{{ item.description }}</el-col>
+                          </el-col>
+                          <el-col :span="6" class="fbListCenterR">
+                            <el-col :span="24" class="bainji">
+                              <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
+                            </el-col>
                           </el-col>
                         </el-col>
                       </el-col>
@@ -570,6 +584,9 @@ p {
   padding: 0;
   margin: 0;
 }
+.info {
+  height: 650px;
+}
 .xqborder {
   // width: 889px;
   width: 100%;
@@ -641,6 +658,14 @@ p {
   padding: 11px 0 0 0;
   text-align: center;
 }
+
+/deep/.el-pagination {
+  padding: 41px 0 0 0;
+  white-space: nowrap;
+  padding: 2px 5px;
+  color: #303133;
+  font-weight: 700;
+}
 .fabuBtn {
   position: absolute;
   top: 65px;

+ 1 - 1
src/layout/live/head.vue

@@ -84,7 +84,7 @@ export default {
       else return this.$route.path.includes(`/${type}`);
     },
     btnLogin() {
-      window.open('http://free.liaoningdoupo.com/platlogin/');
+      this.$router.push({ path: '/login' });
     },
   },
   computed: {

+ 41 - 0
src/layout/login.vue

@@ -0,0 +1,41 @@
+<template>
+  <div id="login">
+    <el-row>
+      <el-col :span="24" class="main">
+        <div class="w_1200">
+          <loginMain v-on="$listeners" :form="form" :forms="forms"></loginMain>
+        </div>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+<script>
+import loginMain from '@/layout/login/loginMain.vue';
+export default {
+  name: 'login',
+  props: {
+    info: null, //站点信息
+    form: null, //登录
+    forms: null, //注册
+  },
+  components: {
+    loginMain, //登录
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+.w_1200 {
+  width: 80%;
+  margin: 0 auto;
+}
+.main {
+  min-height: 800px;
+  overflow: hidden;
+  margin: 10px 0;
+}
+</style>

+ 190 - 0
src/layout/login/loginMain.vue

@@ -0,0 +1,190 @@
+<template>
+  <div id="loginMain">
+    <el-row class="loginMains">
+      <el-col :span="24" class="top">
+        <el-col :span="6" class="info"> </el-col>
+        <el-col :span="12" class="context">
+          <el-tabs v-model="activeName" @tab-click="handleClick">
+            <el-tab-pane label="登录" name="first">
+              <el-col :span="24">
+                <el-form ref="form" :model="form" label-width="80px">
+                  <!-- <el-form-item label="用户类别">
+                  <el-radio v-model="form.role" label="1">管理员</el-radio>
+                  <el-radio v-model="form.role" label="2">个人</el-radio>
+                  <el-radio v-model="form.role" label="3">企业管理员</el-radio>
+                </el-form-item> -->
+                  <el-form-item label="手机号">
+                    <el-input v-model="form.phone" placeholder="请输入手机号" :minlength="11" :maxlength="11"></el-input>
+                  </el-form-item>
+                  <el-form-item label="登录密码">
+                    <el-input v-model="form.passwd" placeholder="请输入登录密码" show-password></el-input>
+                  </el-form-item>
+                  <el-col :span="24" class="loginSubmit"><el-button type="primary" @click="loginSubmit">登录</el-button></el-col>
+                </el-form>
+              </el-col>
+            </el-tab-pane>
+            <el-tab-pane label="注册" name="second">
+              <el-col :span="24">
+                <el-form ref="forms" :model="forms" label-width="120px">
+                  <el-form-item label="用户名称">
+                    <el-input v-model="forms.name" placeholder="请输入用户名称"></el-input>
+                  </el-form-item>
+                  <el-form-item label="登录密码">
+                    <el-input v-model="forms.password" placeholder="请输入登录密码" show-password></el-input>
+                  </el-form-item>
+                  <el-form-item label="身份证号">
+                    <el-input v-model="forms.cardnumber" placeholder="请输入身份证号" :minlength="18" :maxlength="18"></el-input>
+                  </el-form-item>
+                  <el-form-item label="手机号">
+                    <el-input v-model="forms.phone" placeholder="请输入手机号" :minlength="11" :maxlength="11"></el-input>
+                  </el-form-item>
+                  <el-form-item label="邮箱">
+                    <el-input v-model="forms.email" placeholder="请输入邮箱"></el-input>
+                  </el-form-item>
+                  <el-form-item label="地址">
+                    <el-input v-model="forms.addr" placeholder="请输入地址"></el-input>
+                  </el-form-item>
+                  <el-form-item label="头像图片" prop="img_path">
+                    <upload :limit="1" :data="forms.img_path" type="img_path" :url="'/files/imgpath/upload'" @upload="uploadSuccess"></upload>
+                  </el-form-item>
+                  <el-form-item label="用户类别">
+                    <!-- <el-radio v-model="forms.role" label="1">管理员</el-radio> -->
+                    <el-radio-group v-model="forms.role" @change="setIsQy">
+                      <el-radio label="2">个人</el-radio>
+                      <el-radio label="3">企业管理员</el-radio>
+                    </el-radio-group>
+                  </el-form-item>
+                  <!-- <el-form-item label="个人/法人">
+                  <el-radio v-model="forms.is_qy" label="0">个人</el-radio>
+                  <el-radio v-model="forms.is_qy" label="1">法人</el-radio>
+                </el-form-item> -->
+                  <el-form-item label="身份证正面">
+                    <upload :limit="1" :data="forms.cardfile_a" type="cardfile_a" :url="'/files/cardfilea/upload'" @upload="uploadSuccess"></upload>
+                  </el-form-item>
+                  <el-form-item label="身份证背面">
+                    <upload :limit="1" :data="forms.cardfile_b" type="cardfile_b" :url="'/files/cardfileb/upload'" @upload="uploadSuccess"></upload>
+                  </el-form-item>
+                  <el-form-item label="组织机构图片" v-if="forms.role == '3'">
+                    <upload :limit="1" :data="forms.img_qy" type="img_qy" :url="'/files/imgqy/upload'" @upload="uploadSuccess"></upload>
+                  </el-form-item>
+                  <el-form-item label="简介" placeholder="请输入简介">
+                    <el-input type="textarea" v-model="forms.resume"></el-input>
+                  </el-form-item>
+                  <el-form-item label="专业领域" placeholder="请输入专业领域">
+                    <el-input v-model="forms.major"></el-input>
+                  </el-form-item>
+                  <template v-if="forms.role == '3'">
+                    <el-form-item label="机构类型" placeholder="请输入机构类型">
+                      <el-input v-model="forms.institution_type"></el-input>
+                    </el-form-item>
+                    <el-form-item label="机构名称" placeholder="请输入机构名称">
+                      <el-input v-model="forms.institution_name"></el-input>
+                    </el-form-item>
+                    <el-form-item label="机构代码" placeholder="请输入机构代码">
+                      <el-input v-model="forms.institution_code"></el-input>
+                    </el-form-item>
+                    <el-form-item label="机构性质" placeholder="请输入机构性质">
+                      <el-input v-model="forms.institution_nature"></el-input>
+                    </el-form-item>
+                  </template>
+                  <el-form-item label="办公电话" placeholder="请输入办公电话">
+                    <el-input v-model="forms.office_phone"></el-input>
+                  </el-form-item>
+                  <el-form-item label="所属行业" placeholder="请输入所属行业">
+                    <el-input v-model="forms.profession"></el-input>
+                  </el-form-item>
+                  <el-col :span="24" class="loginSubmit"><el-button type="primary" @click="registerSubmit">注册</el-button></el-col>
+                </el-form>
+              </el-col>
+            </el-tab-pane>
+          </el-tabs>
+        </el-col>
+        <el-col :span="6" class="info"></el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import upload from '@/components/upload.vue';
+export default {
+  name: 'loginMain',
+  props: {
+    form: null,
+    forms: null,
+  },
+  components: {
+    upload,
+  },
+  data: () => ({
+    activeName: 'first',
+  }),
+  created() {},
+  computed: {},
+  methods: {
+    handleClick(tab, event) {
+      console.log(tab, event);
+    },
+    loginSubmit() {
+      this.$emit('submitDate', this.form);
+    },
+    registerSubmit() {
+      this.$emit('submitDates', { data: this.forms, id: this.forms.id });
+    },
+    uploadSuccess({ type, data }) {
+      this.$set(this.forms, `${type}`, data.uri);
+    },
+    setIsQy(data) {
+      let val = '0';
+      data == '2' ? (val = '0') : (val = '1');
+      this.$set(this.forms, `is_qy`, val);
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.loginMains {
+  min-height: 800px;
+  padding: 40px 0;
+  background-color: #fff;
+}
+.top {
+  width: 100%;
+}
+.info {
+  width: 25%;
+  height: 800px;
+}
+.context {
+  width: 50%;
+}
+
+/deep/.el-tabs__header {
+  margin: 0;
+}
+/deep/.el-tabs__nav-wrap::after {
+  background-color: transparent;
+}
+/deep/.el-tabs--top .el-tabs__item.is-top:nth-child(2) {
+  padding-left: 50px;
+}
+/deep/.el-tabs--top .el-tabs__item.is-top:last-child {
+  padding-right: 50px;
+}
+/deep/.el-tabs__active-bar {
+  background-color: transparent;
+}
+/deep/.el-tabs__nav {
+  margin: 0 130px;
+}
+/deep/.el-tabs__item {
+  padding: 0 60px;
+  height: 70px;
+  line-height: 70px;
+  font-size: 30px;
+}
+.loginSubmit {
+  text-align: center;
+}
+</style>

+ 209 - 0
src/layout/supermarket/detali.vue

@@ -0,0 +1,209 @@
+<template>
+  <div id="policyrightcont">
+    <el-row>
+      <el-col :span="24" class="info">
+        <el-col :span="24" class="infoTop">
+          <span>详情页面</span>
+        </el-col>
+        <el-col :span="24" class="infoMiddle">
+          <el-col :span="8" class="infoImage">
+            <el-carousel trigger="click" height="400px">
+              <template v-if="policyInfo.image && policyInfo.image.length > 0">
+                <el-carousel-item v-for="(item, index) in policyInfo.image" :key="index">
+                  <el-image :src="item.url"> </el-image>
+                </el-carousel-item>
+              </template>
+              <template v-if="policyInfo.image && policyInfo.image.length == 0"><h1 style="text-align:center;line-height:370px;">暂无图片</h1></template>
+            </el-carousel>
+          </el-col>
+          <el-col :span="14" class="infoRight">
+            <p>{{ policyInfo.name }}</p>
+            <p class="infoType">
+              <span>总分类:</span
+              ><span>{{ policyInfo.totaltype === '0' ? '技术' : policyInfo.totaltype === '1' ? '产品' : policyInfo.totaltype === '2' ? '服务' : '暂无' }}</span>
+              <span>类型名称:</span>
+              <span>{{ policyInfo.product_type_name }}</span>
+            </p>
+            <p class="infoPrice">
+              <span>收费标准:</span><span>{{ policyInfo.price }}元/</span><span>{{ policyInfo.priceunit }}</span>
+            </p>
+            <p class="infoStatus">
+              <span>交易方式:</span
+              ><span>{{ policyInfo.business === '0' ? '公用' : policyInfo.business === '1' ? '转让' : policyInfo.business === '2' ? '竞价' : '暂无' }}</span
+              ><span>状态:</span
+              ><span>{{
+                policyInfo.status === '0' ? '待审核' : policyInfo.status === '1' ? '通过审核' : policyInfo.status === '2' ? '审核拒绝' : '暂无'
+              }}</span>
+            </p>
+            <p class="infoStatus">
+              <span>研发阶段:</span><span>{{ policyInfo.phase === '0' ? '阶段成果' : policyInfo.phase === '1' ? '最终成果' : '暂无' }}</span
+              ><span>供/需:</span
+              ><span>{{ policyInfo.business === '0' ? '公用' : policyInfo.business === '1' ? '供' : policyInfo.business === '2' ? '需' : '暂无' }}</span>
+            </p>
+            <p class="infoType">
+              <span>联系人:</span><span>{{ policyInfo.contact_user }}</span
+              ><span>联系电话:</span><span>{{ policyInfo.contact_tel }}</span>
+            </p>
+          </el-col>
+        </el-col>
+        <el-col :span="24" class="infoDown">
+          <el-form label-width="150px">
+            <el-form-item label="应用领域:">
+              <span>{{ policyInfo.field }}</span>
+            </el-form-item>
+            <el-form-item label="市场前景:">
+              <span>{{ policyInfo.prospect }}</span>
+            </el-form-item>
+            <el-form-item label="电子合同:">
+              <span>{{ policyInfo.contract }}</span>
+            </el-form-item>
+            <el-form-item label="服务范围:">
+              <span>{{ policyInfo.scope }}</span>
+            </el-form-item>
+            <el-form-item label="描述:">
+              <span>{{ policyInfo.description }}</span>
+            </el-form-item>
+            <el-form-item label="知识产权:">
+              <span>{{ policyInfo.property }}</span>
+            </el-form-item>
+            <el-form-item label="简介:">
+              <span>{{ policyInfo.introduction }}</span>
+            </el-form-item>
+            <el-form-item label="产品参数:">
+              <el-table :data="policyInfo.product_args" border style="width: 100%">
+                <el-table-column prop="arg_name" label="参数名称"> </el-table-column>
+                <el-table-column prop="memo" label="参数内容"> </el-table-column>
+              </el-table>
+            </el-form-item>
+          </el-form>
+        </el-col>
+        <el-col :span="4" class="infoButton"> <el-button @click="onSubmit">立即创建</el-button></el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'policyrightcont',
+  props: { policyInfo: { type: Object, required: true, default: () => {} } },
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {
+    onSubmit() {
+      console.log(this.policyInfo);
+      this.$emit('onSubmit', this.policyInfo);
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+p {
+  padding: 0;
+  margin: 0;
+}
+.infoTop {
+  height: 60px;
+  border-bottom: 1px solid #22529a;
+}
+.infoTop span:only-child {
+  width: 15%;
+  height: 60px;
+  background-color: #22529a;
+  color: #fff;
+  text-align: center;
+  line-height: 60px;
+  font-size: 20px;
+  display: block;
+}
+.infoMiddle {
+  margin: 20px;
+  padding-bottom: 20px;
+  border-bottom: 1px dashed #ccc;
+}
+.infoImage {
+  width: 40%;
+}
+.infoImage .el-image {
+  width: 100%;
+  height: 100%;
+}
+.infoRight {
+  float: right;
+  font-family: 微软雅黑;
+  color: rgba(1, 1, 1, 0.7);
+  width: 57%;
+}
+.infoRight p:first-child {
+  font-size: 25px;
+  margin: 20px 0 30px 0;
+}
+.infoType {
+  font-size: 20px;
+}
+.infoType span:first-child {
+  font-weight: bolder;
+}
+.infoType span:nth-child(2) {
+  display: inline-block;
+  width: 35%;
+}
+.infoType span:nth-child(3) {
+  font-weight: bolder;
+}
+.infoPrice {
+  background-color: rgba(1, 1, 1, 0.1);
+  line-height: 60px;
+  margin: 30px 0 30px 0;
+  width: 90%;
+  padding: 0 30px;
+  font-size: 28px;
+  color: #fe0000;
+}
+.infoPrice span:first-child {
+  color: rgba(1, 1, 1, 0.7);
+  font-size: 18px;
+}
+.infoStatus {
+  margin: 30px 0 30px 0;
+}
+.infoStatus span:nth-child(2) {
+  display: inline-block;
+  width: 35%;
+}
+.infoDown {
+  margin: 10px 20px;
+}
+/deep/.el-form-item__label {
+  color: rgba(1, 1, 1, 0.7);
+  font-size: 18px;
+}
+/deep/.el-form-item__content {
+  color: rgba(1, 1, 1, 0.7);
+  font-size: 18px;
+}
+/deep/.el-table th {
+  background-color: #f3f3f3;
+  color: rgba(1, 1, 1, 0.5);
+  font-size: 18px;
+  text-align: center;
+}
+/deep/.el-table td {
+  color: rgba(1, 1, 1, 0.7);
+  font-size: 18px;
+  text-align: center;
+}
+.infoButton {
+  margin: 20px auto;
+  float: none;
+}
+/deep/.el-button {
+  width: 100px;
+  background-color: #22529a;
+  border-radius: 0;
+  color: white;
+}
+</style>

+ 113 - 0
src/layout/supermarket/listcontext.vue

@@ -0,0 +1,113 @@
+<template>
+  <div id="rightcont">
+    <el-col class="zhengce">
+      <el-col :span="24" class="topTitle">
+        {{ columnName }}
+      </el-col>
+      <el-col :span="24" class="info">
+        <ul>
+          <li v-for="(item, index) in contentList" :key="index" @click="$emit('fetch', item.id)">
+            <el-col :span="21" class="title textOver">{{ item.name }}</el-col>
+            <el-col :span="3" class="date">
+              {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
+            </el-col>
+          </li>
+        </ul>
+        <el-col class="page" :span="24">
+          <el-pagination
+            @size-change="handleSizeChange"
+            @current-change="handleCurrentChange"
+            :current-page="currentPage"
+            layout="total,  prev, pager, next, jumper"
+            :total="total"
+          >
+          </el-pagination>
+        </el-col>
+      </el-col>
+    </el-col>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'rightcont',
+  props: {
+    columnName: null,
+    contentList: null,
+    total: null,
+  },
+  components: {},
+  data: () => ({
+    currentPage: 0,
+    pageSize: 10,
+  }),
+  created() {},
+  computed: {},
+  methods: {
+    handleSizeChange(pageSize) {
+      // this.$emit('handleSizeChange', pageSize);
+    },
+    handleCurrentChange(currentPage) {
+      console.log(currentPage);
+      this.$emit('handleCurrentChange', { skip: (currentPage - 1) * this.pageSize, limit: this.pageSize, currentPage });
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+ul {
+  margin: 0;
+}
+li {
+  padding: 0;
+  margin: 0;
+  color: #a8abb7;
+}
+.zhengce {
+  height: 660px;
+  padding: 20px;
+  overflow: hidden;
+}
+.topTitle {
+  font-size: 22px;
+  color: #22529a;
+  margin: 0 0 20px 0;
+}
+.info {
+  height: 570px;
+  overflow: hidden;
+}
+.info ul {
+  height: 510px;
+  overflow: hidden;
+  padding: 0 0 0 20px;
+}
+.info ul li {
+  float: left;
+  width: 100%;
+  padding: 0 0 13px 0;
+}
+.info ul li .title {
+  font-size: 16px;
+  color: #60636d;
+}
+.info ul li .date {
+  font-size: 16px;
+  color: #a8abb7;
+  text-align: right;
+}
+.info ul li:hover {
+  cursor: pointer;
+}
+.info ul li:hover .title {
+  color: #22529a;
+}
+.info ul li:hover .date {
+  color: #22529a;
+}
+.page {
+  padding: 11px 0;
+  text-align: center;
+}
+</style>

+ 43 - 0
src/router/index.js

@@ -8,6 +8,11 @@ const live = [
     name: 'live',
     component: () => import('../views/index.vue'),
     children: [
+      {
+        path: '/login',
+        meta: { title: '登陆' },
+        component: () => import('../views/login.vue'),
+      },
       {
         path: '/live/detail',
         meta: { title: '信息详情', subSite: true },
@@ -89,6 +94,44 @@ const live = [
         name: 'enterprisefabu',
         component: () => import('../views/enterprise/enterprisefabu.vue'),
       },
+      //企业-基本信息
+      {
+        path: '/enterprise/enterprisejb',
+        name: 'enterprisefabu',
+        component: () => import('../views/enterprise/enterprisejb.vue'),
+      },
+      //企业-信息管理
+      {
+        path: '/enterprise/enterprisexx',
+        name: 'enterprisexuqiu',
+        component: () => import('../views/enterprise/enterprisexx.vue'),
+      },
+
+      // 企业-需求发布
+      {
+        path: '/enterprise/enterprisexuqiu',
+        name: 'enterprisexuqiu',
+        component: () => import('../views/enterprise/enterprisexuqiu.vue'),
+      },
+      //企业-订购
+      {
+        path: '/enterprise/enterprisedg',
+        name: 'enterprisedg',
+        component: () => import('../views/enterprise/enterprisedg.vue'),
+      },
+      //科技超市列表
+      {
+        path: '/supermaket/supermarketlist',
+        name: 'supermarketuct',
+        component: () => import('../views/supermaket/supermarketlist.vue'),
+      },
+
+      //xiangqing
+      {
+        path: '/supermaket/supermarketdetail',
+        name: 'supermarketdetail',
+        component: () => import('../views/supermaket/supermarketdetail.vue'),
+      },
     ],
   },
   {

+ 4 - 0
src/store/index.js

@@ -14,6 +14,8 @@ import * as ustate from '@common/store/user/state';
 import * as umutations from '@common/store/user/mutations';
 import personalchat from '@common/store/live/personalchat';
 import personalroom from '@common/store/live/personalroom';
+import markettype from '@common/store/market/markettype';
+import enterpriseproject from '@common/store/market/enterpriseproject';
 Vue.use(Vuex);
 
 export default new Vuex.Store({
@@ -33,5 +35,7 @@ export default new Vuex.Store({
     personalchat,
     personalroom,
     transaction,
+    markettype,
+    enterpriseproject,
   },
 });

+ 117 - 0
src/views/enterprise/enterprisedg.vue

@@ -0,0 +1,117 @@
+<template>
+  <div id="adviserList">
+    <enterprisedg-detail
+      :liebiaoList="liebiaoList"
+      :dinggou1="dinggou1"
+      :dinggou2="dinggou2"
+      :dinggou3="dinggou3"
+      @onsave="onsaveClick"
+      :total1="total1"
+      :total2="total2"
+      :total3="total3"
+      @handleCurrentChange="change1"
+      @handleCurrentChange1="change2"
+      @handleCurrentChange2="change3"
+      @deletes="deleteData"
+    ></enterprisedg-detail>
+  </div>
+</template>
+
+<script>
+import enterprisedgDetail from '@/components/enterprise/enterpisedg.vue';
+import { createNamespacedHelpers, mapGetters } from 'vuex';
+
+const { mapActions: transaction } = createNamespacedHelpers('transaction');
+export default {
+  name: 'adviserList',
+  props: {},
+  components: {
+    enterprisedgDetail,
+  },
+  data: () => ({
+    liebiaoList: [{ name: '基本信息' }, { name: '消息管理' }, { name: '我的发布' }, { name: '我的订购' }, { name: '注销账号' }],
+    total1: 1,
+    total2: 1,
+    total3: 1,
+    dinggou1: [],
+    dinggou2: [],
+    dinggou3: [],
+    skip: '',
+  }),
+  created() {
+    this.jiaoyi1();
+    this.jiaoyi2();
+    this.jiaoyi3();
+  },
+  computed: {},
+  methods: {
+    ...transaction({ transactionList: 'query', transactiondtetle: 'delete' }),
+    // 查询
+    async jiaoyi1({ skip = 0, limit = 3, ...info } = {}) {
+      let status = 1;
+      skip = this.skip;
+      console.log();
+      const res = await this.transactionList({ skip, limit, status, ...info });
+      console.log(res);
+      if (this.$checkRes(res)) {
+        this.$set(this, `dinggou1`, res.data);
+        this.$set(this, `total1`, res.total);
+      }
+    },
+    async jiaoyi2({ skip = 0, limit = 3, ...info } = {}) {
+      let status = 2;
+      skip = this.skip;
+      console.log();
+      const res = await this.transactionList({ skip, limit, status, ...info });
+      console.log(res);
+      if (this.$checkRes(res)) {
+        this.$set(this, `dinggou2`, res.data);
+        this.$set(this, `total2`, res.total);
+      }
+    },
+    async jiaoyi3({ skip = 0, limit = 3, ...info } = {}) {
+      let status = 3;
+      skip = this.skip;
+      console.log();
+      const res = await this.transactionList({ skip, limit, status, ...info });
+      console.log(res);
+      if (this.$checkRes(res)) {
+        this.$set(this, `dinggou3`, res.data);
+        this.$set(this, `total3`, res.total);
+      }
+    },
+
+    async change1({ skip, limit, currentPage }) {
+      this.$set(this, `skip`, skip);
+      this.jiaoyi1();
+    },
+    async change2({ skip, limit, currentPage }) {
+      this.$set(this, `skip`, skip);
+      this.jiaoyi2();
+    },
+    async change3({ skip, limit, currentPage }) {
+      this.$set(this, `skip`, skip);
+      this.jiaoyi3();
+    },
+
+    async deleteData({ item }) {
+      const res = await this.transactiondtetle(item.id);
+      this.$checkRes(res, '删除成功', '删除失败');
+    },
+    async onsaveClick({ id }) {
+      console.log(id);
+      if (id === '基本信息') {
+        this.$router.push({ path: '/enterprise/enterprisejb' });
+      } else if (id === '消息管理') {
+        this.$router.push({ path: '/enterprise/enterprisexx' });
+      } else if (id === '我的发布') {
+        this.$router.push({ path: '/enterprise/enterprisefabu' });
+      } else if (id === '我的订购') {
+        this.$router.push({ path: '/enterprise/enterprisedg' });
+      }
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped></style>

+ 54 - 0
src/views/enterprise/enterprisejb.vue

@@ -0,0 +1,54 @@
+<template>
+  <div id="adviserList">
+    <enterprisejb-detail :info="info" :liebiaoList="liebiaoList" @onsave="onsaveClick" :userinfo="userinfo"></enterprisejb-detail>
+  </div>
+</template>
+
+<script>
+import enterprisejbDetail from '@/components/enterprise/enterprisejb.vue';
+import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
+
+const { mapActions: market } = createNamespacedHelpers('market');
+export default {
+  name: 'adviserList',
+  props: {},
+  components: {
+    enterprisejbDetail,
+  },
+  data: () => ({
+    info: {},
+    liebiaoList: [{ name: '基本信息' }, { name: '消息管理' }, { name: '我的发布' }, { name: '我的订购' }, { name: '注销账号' }],
+    userinfo: {},
+  }),
+  created() {
+    this.searchInfo();
+  },
+  computed: {
+    ...mapState(['user']),
+  },
+  methods: {
+    ...market(['fetch']),
+    // 查询基本信息
+    async searchInfo() {
+      let res = await this.fetch(this.user.userid);
+      if (res.errcode === 0) {
+        this.$set(this, `userinfo`, res.data);
+      }
+    },
+    async onsaveClick({ id }) {
+      console.log(id);
+      if (id === '基本信息') {
+        this.$router.push({ path: '/enterprise/enterprisejb' });
+      } else if (id === '消息管理') {
+        this.$router.push({ path: '/enterprise/enterprisexx' });
+      } else if (id === '我的发布') {
+        this.$router.push({ path: '/enterprise/enterprisefabu' });
+      } else if (id === '我的订购') {
+        this.$router.push({ path: '/enterprise/enterprisedg' });
+      }
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped></style>

+ 108 - 0
src/views/enterprise/enterprisexuqiu.vue

@@ -0,0 +1,108 @@
+<template>
+  <div id="adviserList">
+    <enterprisexuqiu-detail
+      :info="info"
+      :liebiaoList="liebiaoList"
+      @onsave="onsaveClick"
+      :demandForm="demandForm"
+      @demandSubmit="demandSubmit"
+      :columnList="columnList"
+      @changeType="changeType"
+      :totaltype="totaltype"
+    ></enterprisexuqiu-detail>
+  </div>
+</template>
+
+<script>
+import enterprisexuqiuDetail from '@/components/enterprise/enterprisexuqiu.vue';
+import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
+const { mapActions: mapMarkettype } = createNamespacedHelpers('markettype');
+const { mapActions: mapMarketproduct } = createNamespacedHelpers('marketproduct');
+
+export default {
+  name: 'adviserList',
+  props: {},
+  components: {
+    enterprisexuqiuDetail,
+  },
+  data: () => ({
+    info: {},
+    liebiaoList: [{ name: '基本信息' }, { name: '消息管理' }, { name: '我的发布' }, { name: '我的订购' }, { name: '注销账号' }],
+    demandForm: {
+      image: {},
+      product_args: [],
+    },
+    columnList: [],
+    totaltype: 0,
+  }),
+  created() {
+    this.maarkettype();
+    this.searchInfo();
+  },
+  computed: {
+    ...mapState(['user']),
+
+    id() {
+      return this.$route.query.id;
+    },
+    keyWord() {
+      let meta = this.$route.meta;
+      let main = meta.title || '';
+      return main;
+    },
+  },
+  methods: {
+    ...mapMarkettype({ markettypeList: 'query' }),
+    ...mapMarketproduct({ productFetch: 'fetch', productCreate: 'create', productUpdate: 'update' }),
+
+    async searchInfo() {
+      if (this.$route.query.id) {
+        const res = await this.productFetch(this.id);
+        this.$set(this, `demandForm`, res.data);
+      }
+    },
+    async demandSubmit(demandForm) {
+      let data = this.demandForm;
+      console.log(data);
+      data.userid = this.user.uid;
+      console.log(data.userid);
+
+      let res;
+      let msg;
+      if (data.id) {
+        res = await this.productUpdate(data);
+        msg = `${this.keyWord}修改成功`;
+      } else {
+        res = await this.productCreate(data);
+        msg = `${this.keyWord}添加成功`;
+      }
+      if (this.$checkRes(res, msg)) this.$router.push({ path: '/enterprise/enterprisefabu' });
+    },
+    // 查询类型
+    async maarkettype({ category = 123, ...info } = {}) {
+      const res = await this.markettypeList({ category, ...info });
+      if (this.$checkRes(res)) {
+        this.$set(this, `columnList`, res.data);
+      }
+    },
+    // 栏目跳转
+    async onsaveClick({ id }) {
+      if (id === '基本信息') {
+        this.$router.push({ path: '/enterprise/enterprisejb' });
+      } else if (id === '消息管理') {
+        this.$router.push({ path: '/enterprise/enterprisexx' });
+      } else if (id === '我的发布') {
+        this.$router.push({ path: '/enterprise/enterprisefabu' });
+      } else if (id === '我的订购') {
+        this.$router.push({ path: '/enterprise/enterprisedg' });
+      }
+    },
+    changeType(item) {
+      console.log(item);
+      this.$set(this, `totaltype`, item);
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped></style>

+ 40 - 0
src/views/enterprise/enterprisexx.vue

@@ -0,0 +1,40 @@
+<template>
+  <div id="adviserList">
+    <enterprisexx-detail :liebiaoList="liebiaoList" @onsave="onsaveClick"></enterprisexx-detail>
+  </div>
+</template>
+
+<script>
+import enterprisexxDetail from '@/components/enterprise/enterprisexx.vue';
+import { createNamespacedHelpers, mapGetters } from 'vuex';
+const { mapActions: mapSite } = createNamespacedHelpers('site');
+export default {
+  name: 'adviserList',
+  props: {},
+  components: {
+    enterprisexxDetail,
+  },
+  data: () => ({
+    info: {},
+    liebiaoList: [{ name: '基本信息' }, { name: '消息管理' }, { name: '我的发布' }, { name: '我的订购' }, { name: '注销账号' }],
+  }),
+  created() {},
+  computed: {},
+  methods: {
+    async onsaveClick({ id }) {
+      console.log(id);
+      if (id === '基本信息') {
+        this.$router.push({ path: '/enterprise/enterprisejb' });
+      } else if (id === '消息管理') {
+        this.$router.push({ path: '/enterprise/enterprisexx' });
+      } else if (id === '我的发布') {
+        this.$router.push({ path: '/enterprise/enterprisefabu' });
+      } else if (id === '我的订购') {
+        this.$router.push({ path: '/enterprise/enterprisedg' });
+      }
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped></style>

+ 58 - 0
src/views/login.vue

@@ -0,0 +1,58 @@
+<template>
+  <div id="login">
+    <login-detail :info="info" :form="form" @submitDate="submitLogin" :forms="forms" @submitDates="submitRegister"></login-detail>
+  </div>
+</template>
+
+<script>
+import loginDetail from '@/layout/login.vue';
+import { mapState, createNamespacedHelpers, mapGetters } from 'vuex';
+const { mapActions: mapMarket } = createNamespacedHelpers('market');
+const { mapActions: login } = createNamespacedHelpers('login');
+export default {
+  name: 'login',
+  props: {},
+  components: { loginDetail },
+  data: () => {
+    return {
+      info: {},
+      form: {},
+      forms: {},
+    };
+  },
+  created() {},
+  methods: {
+    // ...mapSite(['showInfo', 'toGetUser']),
+    ...mapMarket({ userFetch: 'fetch', userCreate: 'create', userUpdate: 'update' }),
+    ...login({ toLogin: 'login' }),
+    async submitLogin(form) {
+      const res = await this.toLogin({ user: form });
+      console.log(res);
+      if (res.uid) {
+        if (res.role == 1 || res.role == 4) window.location.href = 'http://free.liaoningdoupo.com/platadmin';
+        // else window.location.href = 'http://free.liaoningdoupo.com/platlive/home.html';
+      }
+    },
+    async submitRegister(forms) {
+      let data = this.forms;
+      let res = await this.userCreate(data);
+      let msg = `注册成功`;
+      this.$checkRes(res, msg);
+    },
+  },
+  computed: {
+    ...mapState(['user']),
+    pageTitle() {
+      return `${this.$route.meta.title}`;
+    },
+    redirect_uri() {
+      return `${this.$route.query.redirect_uri}`;
+    },
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+};
+</script>
+
+<style lang="less" scoped></style>

+ 92 - 0
src/views/supermaket/supermarketdetail.vue

@@ -0,0 +1,92 @@
+<template>
+  <div id="policy">
+    <supermarketlist-detail
+      @handleCurrentChange="handleCurrentChange"
+      :contentList="contentList"
+      :total="total"
+      :columnName="columnName"
+      @fetch="fetchInfo"
+      :display="display"
+      :policyInfo="policyInfo"
+      @onSubmit="onSubmit"
+    ></supermarketlist-detail>
+  </div>
+</template>
+
+<script>
+import supermarketlistDetail from '@/components/supermaket/supermarketlistDetail.vue';
+import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
+import _ from 'loadsh';
+
+const { mapActions: mapEnterpriseproject } = createNamespacedHelpers('enterpriseproject');
+const { mapActions: transaction } = createNamespacedHelpers('transaction');
+const { mapActions: tranaudit } = createNamespacedHelpers('tranaudit');
+
+export default {
+  name: 'policy',
+  props: {},
+  components: {
+    supermarketlistDetail,
+  },
+  data: () => ({
+    policyInfo: {},
+    display: 'detail',
+    columnName: '',
+    contentList: [],
+    total: 1,
+    skip: '',
+  }),
+  async created() {
+    this.searchinfos();
+  },
+  computed: {
+    id() {
+      return this.$route.query.id;
+    },
+    ...mapState(['user']),
+    totaltype() {
+      return this.$route.query.totaltype;
+    },
+  },
+  methods: {
+    ...mapEnterpriseproject({ list: 'query', fetch: 'fetch' }),
+    ...transaction({ transactioncreate: 'create', transactionfetch: 'fetch' }),
+    ...tranaudit({ tranauditcreate: 'create' }),
+    fetchInfo() {},
+    async searchinfos() {
+      console.log(this.id);
+
+      this.display = 'detail';
+      const res = await this.fetch(this.id);
+      this.$set(this, `policyInfo`, res.data);
+    },
+    async handleCurrentChange({ skip, limit, currentPage }) {
+      this.$set(this, `skip`, skip);
+      this.search();
+    },
+    async onSubmit() {
+      console.log(this.user.uid);
+      let form = {};
+      form.userid = this.user.uid;
+      form.username = this.user.name;
+      form.product_id = this.policyInfo.id;
+      form.product_name = this.policyInfo.name;
+      form.market_userid = this.policyInfo.userid;
+      form.market_username = this.policyInfo.contact_user;
+      form.status = '0';
+      console.log(form);
+      let res = await this.transactioncreate(form);
+      this.$checkRes(res, '发起交易成功', '交易失败');
+      let shenhe = {};
+      shenhe.result = '0';
+      shenhe.transaction_id = res.data.id;
+      shenhe.userid = this.policyInfo.userid;
+      shenhe.product_id = this.policyInfo.userid;
+      console.log(shenhe);
+      let ress = await this.tranauditcreate(shenhe);
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped></style>

+ 108 - 0
src/views/supermaket/supermarketlist.vue

@@ -0,0 +1,108 @@
+<template>
+  <div id="policy">
+    <supermarketlist-detail
+      @handleCurrentChange="handleCurrentChange"
+      :contentList="contentList"
+      :total="total"
+      :columnName="columnName"
+      @fetch="fetchInfo"
+      :display="display"
+      :policyInfo="policyInfo"
+      @onSubmit="onSubmit"
+    ></supermarketlist-detail>
+  </div>
+</template>
+
+<script>
+import supermarketlistDetail from '@/components/supermaket/supermarketlistDetail.vue';
+import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
+import _ from 'loadsh';
+const { mapActions: mapSite } = createNamespacedHelpers('site');
+const { mapActions: mapEnterpriseproject } = createNamespacedHelpers('enterpriseproject');
+const { mapActions: transaction } = createNamespacedHelpers('transaction');
+const { mapActions: tranaudit } = createNamespacedHelpers('tranaudit');
+
+export default {
+  name: 'policy',
+  props: {},
+  components: {
+    supermarketlistDetail,
+  },
+  data: () => ({
+    policyInfo: {},
+    display: 'list',
+    columnName: '',
+    contentList: [],
+    total: 1,
+    skip: '',
+    tableData: {},
+  }),
+  async created() {
+    this.search();
+  },
+  computed: {
+    ...mapState(['user']),
+    totaltype() {
+      return this.$route.query.totaltype;
+    },
+  },
+  methods: {
+    ...mapEnterpriseproject({ list: 'query', fetch: 'fetch' }),
+    ...transaction({ transactioncreate: 'create', transactionfetch: 'fetch' }),
+    ...transaction({ transactioncreate: 'create', transactionfetch: 'fetch' }),
+    ...tranaudit({ tranauditcreate: 'create' }),
+
+    async search({ skip = 0, limit = 10 } = {}) {
+      let totaltype = this.totaltype;
+      skip = this.skip;
+      const res = await this.list({ skip, limit, totaltype });
+      console.log(res.data);
+      console.log(res.data);
+      for (const val of res.data) {
+        if (val.totaltype == 0) {
+          this.$set(this, `columnName`, '技术供求');
+        } else if (val.totaltype == 1) {
+          this.$set(this, `columnName`, '产品供求');
+        } else if (val.totaltype == 2) {
+          this.$set(this, `columnName`, '服务供求');
+        }
+      }
+      this.$set(this, `contentList`, res.data);
+      this.$set(this, `total`, res.total);
+    },
+
+    async fetchInfo(id) {
+      this.display = 'detail';
+      const res = await this.fetch(id);
+      this.$set(this, `policyInfo`, res.data);
+    },
+    async handleCurrentChange({ skip, limit, currentPage }) {
+      this.$set(this, `skip`, skip);
+      this.search();
+    },
+    async onSubmit() {
+      console.log(this.user.uid);
+      let form = {};
+      form.userid = this.user.uid;
+      form.username = this.user.name;
+      form.product_id = this.policyInfo.id;
+      form.product_name = this.policyInfo.name;
+      form.market_userid = this.policyInfo.userid;
+      form.market_username = this.policyInfo.contact_user;
+      form.status = '0';
+      console.log(form);
+      let res = await this.transactioncreate(form);
+      this.$checkRes(res, '发起交易成功', '交易失败');
+      let shenhe = {};
+      shenhe.result = '0';
+      shenhe.transaction_id = res.data.id;
+      shenhe.userid = this.policyInfo.userid;
+      shenhe.product_id = this.policyInfo.userid;
+      console.log(shenhe);
+      let ress = await this.tranauditcreate(shenhe);
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped></style>