wuhongyu 5 éve
szülő
commit
c823d1c4ee

+ 93 - 0
src/components/enterprise/appointment.vue

@@ -0,0 +1,93 @@
+<template>
+  <div id="adviserList">
+    <el-row>
+      <el-col :span="24" class="main">
+        <el-col :span="24" class="top">
+          <heads></heads>
+        </el-col>
+        <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>
+          <el-col :span="19" class="right">
+            <appointment v-on="$listeners" :resultTable="resultTable"></appointment>
+          </el-col>
+        </div>
+        <el-col :span="24" class="foots">
+          <foot></foot>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import heads from '@/layout/enterprise/heads.vue';
+import mainMenu from '@/layout/enterprise/mainMenu.vue';
+import appointment from '@/layout/enterprise/appointment.vue';
+import foot from '@/layout/live/foot.vue';
+
+export default {
+  name: 'adviserList',
+  props: {
+    info: null, //站点信息
+    liebiaoList: null, //分类导航
+    form: null,
+    resultTable: null,
+  },
+  components: {
+    heads,
+    mainMenu, //分类导航
+    appointment, //右侧
+    foot,
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+.w_1200 {
+  width: 80%;
+  margin: 0 auto;
+}
+
+.menu {
+  height: 70px;
+  overflow: hidden;
+}
+.main {
+  min-height: 520px;
+  overflow: hidden;
+  padding: 10px 0;
+  background: #e9edf6;
+  background-attachment: fixed;
+  background-size: cover;
+  background-position: center center;
+}
+.left {
+  min-height: 520px;
+  margin: 0 10px 0 0;
+  width: 20%;
+}
+
+.leftTop {
+  background: #fff;
+  height: 520px;
+  overflow: hidden;
+  margin: 0 0 10px 0;
+}
+.right {
+  width: 79%;
+  min-height: 520px;
+  overflow: hidden;
+  background-color: #fff;
+}
+.foots {
+  margin: 10px 0 0 0;
+}
+</style>

+ 10 - 10
src/components/enterprise/useredit.vue

@@ -12,7 +12,7 @@
             </el-col>
           </el-col>
           <el-col :span="19" class="right">
-            <contextedit v-on="$listeners" :forms="forms" :totaltype="totaltype" :columnList="columnList"></contextedit>
+            <duijiecontext v-on="$listeners" :options="options" :form="form" :liebiaoList="liebiaoList"></duijiecontext>
           </el-col>
         </div>
         <el-col :span="24" class="foots">
@@ -26,20 +26,20 @@
 <script>
 import heads from '@/layout/enterprise/heads.vue';
 import mainMenu from '@/layout/enterprise/mainMenu.vue';
-import contextedit from '@/layout/enterprise/contextedit.vue';
+import duijiecontext from '@/layout/enterprise/duijiecontext.vue';
 import foot from '@/layout/live/foot.vue';
 export default {
   name: 'adviserList',
   props: {
+    info: null, //站点信息
     liebiaoList: null, //分类导航
-    forms: null, //需求发布
-    columnList: null, //类型列表
-    totaltype: null, //判断
+    options: null,
+    form: null,
   },
   components: {
     heads,
     mainMenu, //分类导航
-    contextedit, //列表
+    duijiecontext, //基本信息
     foot,
   },
   data: () => ({}),
@@ -60,7 +60,7 @@ export default {
   overflow: hidden;
 }
 .main {
-  min-height: 1920px;
+  min-height: 740px;
   overflow: hidden;
   padding: 10px 0 0 0;
   background: #e9edf6;
@@ -69,20 +69,20 @@ export default {
   background-position: center center;
 }
 .left {
-  height: 900px;
+  min-height: 900px;
   margin: 0 10px 0 0;
   width: 20%;
 }
 
 .leftTop {
   background: #fff;
-  height: 480px;
+  height: 520px;
   overflow: hidden;
   margin: 0 0 10px 0;
 }
 .right {
   width: 79%;
-  min-height: 1720px;
+  min-height: 1140px;
   overflow: hidden;
   background-color: #fff;
 }

+ 1 - 1
src/components/enterprise/enterpisedg.vue

@@ -93,7 +93,7 @@ export default {
 
 .leftTop {
   background: #fff;
-  height: 480px;
+  height: 520px;
   overflow: hidden;
   margin: 0 0 10px 0;
 }

+ 1 - 1
src/components/enterprise/enterprisefabu.vue

@@ -104,7 +104,7 @@ export default {
 
 .leftTop {
   background: #fff;
-  height: 480px;
+  height: 520px;
   overflow: hidden;
   margin: 0 0 10px 0;
 }

+ 1 - 1
src/components/enterprise/enterprisejb.vue

@@ -76,7 +76,7 @@ export default {
 
 .leftTop {
   background: #fff;
-  height: 480px;
+  height: 520px;
   overflow: hidden;
   margin: 0 0 10px 0;
 }

+ 1 - 1
src/components/enterprise/enterprisexuqiu.vue

@@ -76,7 +76,7 @@ export default {
 
 .leftTop {
   background: #fff;
-  height: 480px;
+  height: 520px;
   overflow: hidden;
   margin: 0 0 10px 0;
 }

+ 1 - 1
src/components/enterprise/enterprisexx.vue

@@ -74,7 +74,7 @@ export default {
 
 .leftTop {
   background: #fff;
-  height: 480px;
+  height: 520px;
   overflow: hidden;
   margin: 0 0 10px 0;
 }

+ 3 - 3
src/components/enterprise/xiugai.vue

@@ -69,20 +69,20 @@ export default {
   background-position: center center;
 }
 .left {
-  min-height: 480px;
+  height: 520px;
   margin: 0 10px 0 0;
   width: 20%;
 }
 
 .leftTop {
   background: #fff;
-  height: 480px;
+  height: 520px;
   overflow: hidden;
   margin: 0 0 10px 0;
 }
 .right {
   width: 79%;
-  min-height: 480px;
+  min-height: 520px;
   overflow: hidden;
   background-color: #fff;
 }

+ 177 - 0
src/layout/enterprise/appointment.vue

@@ -0,0 +1,177 @@
+<template>
+  <div id="technical">
+    <el-col :span="24" class="main">
+      <el-col :span="24" class="left">
+        <el-col :span="24" class="downLeftTop">
+          <el-image :src="downLeftTopImage"></el-image>
+          <span class="topText">
+            <span>展会预约</span>
+            <span
+              ><p>A</p>
+              <p>ppointment</p></span
+            >
+            <span @click="add()">创建对接会</span>
+          </span>
+        </el-col>
+        <el-col :span="24" class="infoLeft">
+          <el-table :data="resultTable" stripe style="width: 96%" border>
+            <el-table-column prop="title" label="对接会标题"> </el-table-column>
+            <el-table-column prop="start_time" label="开始时间" :show-overflow-tooltip="true"> </el-table-column>
+            <el-table-column prop="join_end" label="报名截止时间" :show-overflow-tooltip="true"> </el-table-column>
+            <el-table-column prop="place" label="地址" :show-overflow-tooltip="true"> </el-table-column>
+            <el-table-column label="审核状态" align="center">
+              <template slot-scope="scoped">
+                {{ scoped.row.is_allowed === '0' ? '未审核' : scoped.row.is_allowed === '1' ? '审核通过' : '审核拒绝' }}
+              </template>
+            </el-table-column>
+            <el-table-column label="对接会状态" align="center">
+              <template slot-scope="scoped">
+                {{ scoped.row.status === '1' ? '开始' : scoped.row.status === '2' ? '结束' : '准备中' }}
+              </template>
+            </el-table-column>
+            <el-table-column prop="desc" label="简介" :show-overflow-tooltip="true"> </el-table-column>
+
+            <el-table-column label="操作">
+              <template slot-scope="scope">
+                <el-button size="mini" type="text" @click.prevent="handleEdit(scope.row.id)">编辑</el-button>
+                <el-button size="mini" type="text" @click.prevent="deleteRow(scope.row.id)">删除</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-col>
+      </el-col>
+    </el-col>
+  </div>
+</template>
+
+<script>
+import _ from 'lodash';
+import { mapState, createNamespacedHelpers } from 'vuex';
+const { mapActions: news } = createNamespacedHelpers('news');
+export default {
+  name: 'technical',
+  props: {
+    resultTable: null,
+  },
+  components: {},
+  data: () => ({
+    downLeftTopImage: require('@/assets/live/square_big.png'),
+    jishuImage: require('@/assets/live/main3.png'),
+  }),
+  created() {
+    this.searchInfo();
+  },
+  computed: {
+    pageTitle() {
+      return `${this.$route.meta.title}`;
+    },
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+
+  methods: {
+    ...news(['query']),
+    async searchInfo() {},
+    add() {
+      this.$router.push({ path: '/enterprise/duijiedetail' });
+    },
+    handleEdit(id) {
+      console.log(id);
+      this.$router.push({ path: '/enterprise/duijiedetail', query: { id: id } });
+    },
+
+    deleteRow(id) {
+      this.$emit('deleteRow', id);
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.jishuImage {
+  width: 100%;
+  height: 100%;
+}
+.main {
+  width: 100%;
+  margin: 0 auto;
+  float: none;
+}
+.left {
+  float: left;
+  height: 500px;
+  overflow: hidden;
+  margin: 0 auto;
+  padding: 20px 20px 20px 20px;
+}
+.leftTitle {
+  text-align: center;
+  position: relative;
+}
+.topText {
+  width: 94%;
+  border-bottom: 2.5px solid #044b79;
+  display: inline-block;
+  position: relative;
+  top: -10px;
+  margin: 0 0 0 5px;
+}
+.topText span:first-child {
+  font-size: 24px;
+  font-weight: 700;
+  color: #000000;
+  padding: 0 10px;
+  top: 4px;
+}
+
+.topText span p:first-child {
+  font-weight: 800;
+  font-size: 34px;
+  color: #92959a;
+  top: 11px;
+  display: inline-block;
+}
+
+.topText span p:last-child {
+  display: inline-block;
+  font-weight: 700;
+  font-size: 18px;
+  color: #92959a;
+}
+.topText span:last-child {
+  float: right;
+  font-size: 16px;
+  font-weight: 700;
+  color: #044b79;
+  position: relative;
+  top: 20px;
+  cursor: pointer;
+}
+.infoLeft {
+  height: 480px;
+  padding: 20px 20px;
+  margin: 1px 0 0 0;
+}
+.leftListDown {
+  position: relative;
+}
+.leftListDown span:first-child {
+  display: inline-block;
+  width: 80%;
+  height: 3px;
+  background: rgba(4, 75, 121, 0.37);
+  margin: 0 10px 0 0;
+  position: absolute;
+  left: -10px;
+  top: 10px;
+}
+.leftListDown span:last-child {
+  font-size: 16px;
+  float: right;
+  padding: 0 15px 0 0;
+  color: #044b79;
+  font-weight: 700;
+  cursor: pointer;
+}
+</style>

+ 102 - 0
src/layout/enterprise/duijiecontext.vue

@@ -0,0 +1,102 @@
+<template>
+  <div id="rightcont">
+    <el-col class="zhengce">
+      <el-col :span="24" class="topTitle"> <span>基本信息</span></el-col>
+      <el-col :span="24" class="info">
+        <el-col :span="24" class="messgae">
+          <el-form ref="form" :model="form" label-width="120px">
+            <el-form-item label="对接会标题">
+              <el-input v-model="form.title"></el-input>
+            </el-form-item>
+            <el-form-item label="开始时间">
+              <el-date-picker v-model="form.start_time" type="datetime" placeholder="请选择开始时间" format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm">
+              </el-date-picker>
+            </el-form-item>
+            <template>
+              <el-form-item label="地址">
+                <el-select v-model="form.place" placeholder="请选择地址">
+                  <el-option v-for="item in options" :key="item.name" :label="item.name" :value="item.name"> </el-option>
+                </el-select>
+              </el-form-item>
+            </template>
+            <el-form-item label="报名截止时间">
+              <el-date-picker
+                v-model="form.join_end"
+                type="datetime"
+                placeholder="请选择报名截止时间"
+                format="yyyy-MM-dd HH:mm"
+                value-format="yyyy-MM-dd HH:mm"
+              >
+              </el-date-picker>
+            </el-form-item>
+            <el-form-item label="简介">
+              <el-input type="textarea" v-model="form.desc"></el-input>
+            </el-form-item>
+            <el-form-item>
+              <el-button type="primary" @click="onSubmit()">提交</el-button>
+            </el-form-item>
+          </el-form>
+        </el-col>
+      </el-col>
+    </el-col>
+  </div>
+</template>
+
+<script>
+import { mapState, createNamespacedHelpers } from 'vuex';
+
+export default {
+  name: 'rightcont',
+  props: {
+    userinfo: null,
+    form: null,
+    options: null,
+  },
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {
+    ...mapState(['user']),
+  },
+  methods: {
+    onSubmit() {
+      console.log(this.form);
+      this.$emit('onSubmit', { data: this.form });
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+p {
+  padding: 0;
+  margin: 0;
+}
+.zhengce {
+  padding: 20px;
+}
+.zhengce .topTitle {
+  font-size: 22px;
+  color: #22529a;
+  margin: 0 0 20px 0;
+}
+
+.zhengce .info {
+  float: left;
+  width: 100%;
+}
+.zhengce .info p {
+  float: left;
+  width: 100%;
+  padding: 10px 0;
+}
+.zhengce .info p span {
+  float: left;
+  margin: 0 10px 0 0;
+}
+.zhengce .info p image {
+  float: left;
+  width: 100px;
+  height: 100px;
+}
+</style>

+ 1 - 1
src/layout/enterprise/mainMenu.vue

@@ -93,7 +93,7 @@ export default {
 }
 .menu {
   float: left;
-  height: 480px;
+  height: 520px;
   width: 100%;
   // background: no-repeat bottom right;
   // background-image: url(../../assets/live/menu_back.jpg);

+ 10 - 3
src/layout/live/head.vue

@@ -10,9 +10,11 @@
             欢迎来到吉林省计算中心科技平台
           </p>
           <p>
-            <span v-if="user && user.name">{{ user.name }}</span>
-            <button type="button" class="logininfo" @click="btnLogin">登录</button>
-            <button type="button" class="logininfo" @click="btnLogin">注册</button>
+            <span v-if="user && user.name" @click="stnmae">{{ user.name }}</span>
+            <span v-else>
+              <button type="button" class="logininfo" @click="btnLogin">登录</button>
+              <button type="button" class="logininfo" @click="btnLogin">注册</button>
+            </span>
           </p>
         </div>
       </div>
@@ -86,6 +88,11 @@ export default {
     btnLogin() {
       this.$router.push({ path: '/login' });
     },
+    stnmae() {
+      if (this.user.role == '2' || this.user.role == '3') {
+        this.$router.push({ path: '/enterprise/enterprisejb' });
+      }
+    },
   },
   computed: {
     ...mapState(['user']),

+ 14 - 7
src/router/index.js

@@ -154,19 +154,26 @@ const live = [
     name: 'enterprisedg',
     component: () => import('../views/enterprise/xiugai.vue'),
   },
-
+  //展会预约
+  {
+    path: '/enterprise/appointment',
+    name: 'exhibitionappointment_',
+    meta: { title: '展会预约', subSite: true },
+    component: () => import('../views/enterprise/appointment.vue'),
+  },
+  //展会预约-创建
+  {
+    path: '/enterprise/duijiedetail',
+    name: 'exhibitioduijiedetail',
+    meta: { title: '对接会', subSite: true },
+    component: () => import('../views/enterprise/duijiedetail.vue'),
+  },
   //企业-基本信息
   {
     path: '/enterprise/enterprisejb',
     name: 'enterprisefabu',
     component: () => import('../views/enterprise/enterprisejb.vue'),
   },
-  //企业-基本信息
-  {
-    path: '/enterprise/useredit',
-    name: 'enterpriseuseredit',
-    component: () => import('../views/enterprise/useredit.vue'),
-  },
 
   // //企业-发布信息列表
   {

+ 2 - 0
src/store/index.js

@@ -17,6 +17,7 @@ import personalroom from '@common/store/live/personalroom';
 import markettype from '@common/store/market/markettype';
 import enterpriseproject from '@common/store/market/enterpriseproject';
 import newmarketproduct from '@common/store/market/newmarketproduct';
+import palce from '@common/store/palce/palce';
 
 Vue.use(Vuex);
 
@@ -40,5 +41,6 @@ export default new Vuex.Store({
     markettype,
     enterpriseproject,
     newmarketproduct,
+    palce,
   },
 });

+ 87 - 0
src/views/enterprise/appointment.vue

@@ -0,0 +1,87 @@
+<template>
+  <div id="adviserList">
+    <appointment-detail :liebiaoList="liebiaoList" @deleteRow="deleteRow" :resultTable="resultTable" @onsave="onsaveClick"></appointment-detail>
+  </div>
+</template>
+
+<script>
+import appointmentDetail from '@/components/enterprise/appointment.vue';
+import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
+const { mapActions: dock } = createNamespacedHelpers('dock');
+const { mapActions: login } = createNamespacedHelpers('login');
+export default {
+  name: 'adviserList',
+  props: {},
+  components: {
+    appointmentDetail,
+  },
+  data: () => ({
+    info: {},
+    liebiaoList: [
+      { name: '基本信息' },
+      { name: '消息管理' },
+      { name: '我的发布' },
+      { name: '事项管理' },
+      { name: '展会预约' },
+      { name: '返回首页' },
+      { name: '修改密码' },
+      { name: '注销账号' },
+    ],
+    resultTable: [],
+    form: {},
+  }),
+  created() {
+    this.search();
+  },
+  computed: {
+    ...mapState(['user']),
+  },
+  methods: {
+    ...dock(['query', 'delete', 'update']),
+    ...login({ logout: 'logout', transactiondtetle: 'delete' }),
+    //查询
+    async search() {
+      let res = await this.query();
+      console.log(res.data);
+      this.$set(this, `resultTable`, res.data);
+      console.log();
+    },
+    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' });
+      } else if (id === '展会预约') {
+        this.$router.push({ path: '/enterprise/appointment' });
+      } else if (id === '修改密码') {
+        this.$router.push({ path: '/enterprise/xiugai' });
+      } else if (id === '返回首页') {
+        this.$router.push({ path: '/home' });
+      } else if (id === '注销账号') {
+        this.logout();
+        this.$message({
+          message: '注销成功',
+          type: 'success',
+        });
+        this.toLogin();
+      }
+    },
+
+    async toLogin() {
+      this.$router.push({ path: '/' });
+    },
+
+    async deleteRow(id) {
+      const res = await this.delete(id);
+      if (this.$checkRes(res, '删除成功', res.errmsg || '删除失败')) this.search();
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped></style>

+ 39 - 45
src/views/enterprise/useredit.vue

@@ -1,53 +1,49 @@
 <template>
   <div id="adviserList">
-    <useredit-detail
+    <duijiedetail-detail
       :info="info"
+      :options="options"
+      :form="form"
+      @onSubmit="onSubmit"
       :liebiaoList="liebiaoList"
       @onsave="onsaveClick"
-      :forms="forms"
-      @demandSubmit="demandSubmit"
-      :columnList="columnList"
-      @changeType="changeType"
-      :totaltype="totaltype"
-    ></useredit-detail>
+    ></duijiedetail-detail>
   </div>
 </template>
 
 <script>
-import usereditDetail from '@/components/enterprise/useredit.vue';
+import duijiedetailDetail from '@/components/enterprise/duijiedetail.vue';
 import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
-const { mapActions: mapMarkettype } = createNamespacedHelpers('markettype');
-const { mapActions: mapMarketproduct } = createNamespacedHelpers('marketproduct');
 const { mapActions: login } = createNamespacedHelpers('login');
-
+const { mapActions: dock } = createNamespacedHelpers('dock');
+const { mapActions: palce } = createNamespacedHelpers('palce');
 export default {
   name: 'adviserList',
   props: {},
   components: {
-    usereditDetail,
+    duijiedetailDetail,
   },
   data: () => ({
+    form: {},
     info: {},
+    options: [],
     liebiaoList: [
       { name: '基本信息' },
       { name: '消息管理' },
       { name: '我的发布' },
       { name: '事项管理' },
+      { name: '展会预约' },
       { name: '返回首页' },
       { name: '修改密码' },
       { name: '注销账号' },
     ],
-    forms: {},
-    columnList: [],
-    totaltype: 0,
   }),
   created() {
-    this.maarkettype();
     this.searchInfo();
+    this.search();
   },
   computed: {
     ...mapState(['user']),
-
     id() {
       return this.$route.query.id;
     },
@@ -58,41 +54,42 @@ export default {
     },
   },
   methods: {
-    ...mapMarkettype({ markettypeList: 'query' }),
-    ...mapMarketproduct({ productFetch: 'fetch', productCreate: 'create', productUpdate: 'update' }),
+    ...dock(['query', 'delete', 'update', 'create', 'fetch']),
+    ...palce({ palcequery: 'query', transactiondtetle: 'delete' }),
+
     ...login({ logout: 'logout', transactiondtetle: 'delete' }),
+    // 查询基本信息
     async searchInfo() {
-      if (this.$route.query.id) {
-        const res = await this.productFetch(this.id);
-        this.$set(this, `demandForm`, res.data);
+      if (this.id) {
+        let res = await this.fetch(this.id);
+        if (res.errcode === 0) {
+          this.$set(this, `form`, res.data);
+        }
       }
     },
-    async demandSubmit(demandForm) {
-      let data = this.demandForm;
-      console.log(data);
-      data.userid = this.user.uid;
-      console.log(data.userid);
+    async search() {
+      let parent = 220000;
+      let level = 2;
+      let res = await this.palcequery({ parent, level });
+
+      this.$set(this, `options`, res.data);
+    },
 
+    async onSubmit({ data }) {
       let res;
       let msg;
+      data.user_id = this.user.uid;
       if (data.id) {
-        res = await this.productUpdate(data);
-        msg = `${this.keyWord}修改成功`;
+        res = await this.update(data);
+        this.$checkRes(res, '修改成功', res.errmsg || '删除失败');
       } else {
-        res = await this.productCreate(data);
-        msg = `${this.keyWord}添加成功`;
+        res = await this.create(data);
+        this.$checkRes(res, '添加成功', res.errmsg || '删除失败');
       }
-      if (this.$checkRes(res, msg)) this.$router.push({ path: '/enterprise/enterprisefabu' });
+      this.$router.push({ path: '/enterprise/appointment' });
     },
-    // 查询类型
-    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 }) {
+      console.log(id);
       if (id === '基本信息') {
         this.$router.push({ path: '/enterprise/enterprisejb' });
       } else if (id === '消息管理') {
@@ -101,6 +98,8 @@ export default {
         this.$router.push({ path: '/enterprise/enterprisefabu' });
       } else if (id === '事项管理') {
         this.$router.push({ path: '/enterprise/enterprisedg' });
+      } else if (id === '展会预约') {
+        this.$router.push({ path: '/enterprise/appointment' });
       } else if (id === '修改密码') {
         this.$router.push({ path: '/enterprise/xiugai' });
       } else if (id === '返回首页') {
@@ -114,14 +113,9 @@ export default {
         this.toLogin();
       }
     },
-
     async toLogin() {
       this.$router.push({ path: '/' });
     },
-    changeType(item) {
-      console.log(item);
-      this.$set(this, `totaltype`, item);
-    },
   },
 };
 </script>

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

@@ -41,6 +41,7 @@ export default {
       { name: '消息管理' },
       { name: '我的发布' },
       { name: '事项管理' },
+      { name: '展会预约' },
       { name: '返回首页' },
       { name: '修改密码' },
       { name: '注销账号' },
@@ -171,6 +172,8 @@ export default {
           type: 'success',
         });
         this.toLogin();
+      } else if (id === '展会预约') {
+        this.$router.push({ path: '/enterprise/appointment' });
       }
     },
     async toLogin() {

+ 3 - 2
src/views/enterprise/enterprisefabu.vue

@@ -58,6 +58,7 @@ export default {
       { name: '消息管理' },
       { name: '我的发布' },
       { name: '事项管理' },
+      { name: '展会预约' },
       { name: '返回首页' },
       { name: '修改密码' },
       { name: '注销账号' },
@@ -243,9 +244,9 @@ export default {
       } else if (id === '我的发布') {
         this.$router.push({ path: '/enterprise/enterprisefabu' });
       } else if (id === '事项管理') {
-        console.log('bbb');
-
         this.$router.push({ path: '/enterprise/enterprisedg' });
+      } else if (id === '展会预约') {
+        this.$router.push({ path: '/enterprise/appointment' });
       } else if (id === '修改密码') {
         this.$router.push({ path: '/enterprise/xiugai' });
       } else if (id === '返回首页') {

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

@@ -30,6 +30,7 @@ export default {
       { name: '消息管理' },
       { name: '我的发布' },
       { name: '事项管理' },
+      { name: '展会预约' },
       { name: '返回首页' },
       { name: '修改密码' },
       { name: '注销账号' },
@@ -68,6 +69,8 @@ export default {
         this.$router.push({ path: '/enterprise/enterprisefabu' });
       } else if (id === '事项管理') {
         this.$router.push({ path: '/enterprise/enterprisedg' });
+      } else if (id === '展会预约') {
+        this.$router.push({ path: '/enterprise/appointment' });
       } else if (id === '修改密码') {
         this.$router.push({ path: '/enterprise/xiugai' });
       } else if (id === '返回首页') {

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

@@ -33,6 +33,7 @@ export default {
       { name: '消息管理' },
       { name: '我的发布' },
       { name: '事项管理' },
+      { name: '展会预约' },
       { name: '返回首页' },
       { name: '修改密码' },
       { name: '注销账号' },
@@ -90,6 +91,8 @@ export default {
     // 查询类型
     async maarkettype({ category = 123, ...info } = {}) {
       const res = await this.markettypeList({ category, ...info });
+      console.log(res.data);
+
       if (this.$checkRes(res)) {
         this.$set(this, `columnList`, res.data);
       }
@@ -106,6 +109,8 @@ export default {
         this.$router.push({ path: '/enterprise/enterprisedg' });
       } else if (id === '修改密码') {
         this.$router.push({ path: '/enterprise/xiugai' });
+      } else if (id === '展会预约') {
+        this.$router.push({ path: '/enterprise/appointment' });
       } else if (id === '返回首页') {
         this.$router.push({ path: '/' });
       } else if (id === '注销账号') {

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

@@ -22,6 +22,7 @@ export default {
       { name: '消息管理' },
       { name: '我的发布' },
       { name: '事项管理' },
+      { name: '展会预约' },
       { name: '返回首页' },
       { name: '修改密码' },
       { name: '注销账号' },
@@ -45,6 +46,8 @@ export default {
         this.$router.push({ path: '/enterprise/xiugai' });
       } else if (id === '返回首页') {
         this.$router.push({ path: '/' });
+      } else if (id === '展会预约') {
+        this.$router.push({ path: '/enterprise/appointment' });
       } else if (id === '注销账号') {
         this.logout();
         this.$message({

+ 3 - 0
src/views/enterprise/xiugai.vue

@@ -23,6 +23,7 @@ export default {
       { name: '消息管理' },
       { name: '我的发布' },
       { name: '事项管理' },
+      { name: '展会预约' },
       { name: '返回首页' },
       { name: '修改密码' },
       { name: '注销账号' },
@@ -57,6 +58,8 @@ export default {
           type: 'success',
         });
         this.toLogin();
+      } else if (id === '展会预约') {
+        this.$router.push({ path: '/enterprise/appointment' });
       }
     },
     async toLogin() {

+ 25 - 3
src/views/service/index.vue

@@ -9,7 +9,7 @@
                 <el-col class="lefttop" :span="24"><span class="title"> |</span> 本地服务</el-col>
                 <ul>
                   <li class="zhengwuList" v-for="(item, index) in zhengwuList" :key="index">
-                    <a href="">
+                    <a @click="bendiservice(item)">
                       <el-image style="width:64px;height:64px;" :src="item.pic"></el-image>
                       <p>{{ item.title }}</p>
                     </a>
@@ -20,7 +20,7 @@
                 <div class="lefttop"><span class="title"> |</span> 合作服务</div>
                 <ul>
                   <li class="serviceList" v-for="(item, index) in serviceList" :key="index">
-                    <a href="">
+                    <a @click="bendiservice(item)">
                       <el-image style="width:64px;height:64px;" :src="item.pic"></el-image>
                       <p>{{ item.title }}</p>
                     </a>
@@ -139,7 +139,29 @@ export default {
     };
   },
   created() {},
-  methods: {},
+  methods: {
+    bendiservice(item) {
+      console.log(item);
+      if (item.title == '智慧推荐') {
+      } else if (item.title == '展会预约') {
+        console.log('d');
+
+        this.$router.push({ path: '/exhibition/appointment' });
+      } else if (item.title == '科技评估') {
+      } else if (item.title == '合同在线') {
+      } else if (item.title == '信誉认证') {
+      } else if ((item.title = '绩效评价')) {
+      } else if (item.title == '知识产权') {
+      } else if (item.title == '项目申报') {
+      } else if (item.title == '科技金融') {
+      } else if (item.title == '科技文献') {
+      } else if (item.title == '科技孵化') {
+      } else if (item.title == '成果登记') {
+      } else if (item.title == '技术合同') {
+      } else if (item.title == '高企认定') {
+      }
+    },
+  },
   computed: {
     ...mapState(['user']),
     pageTitle() {