Kaynağa Gözat

Merge branch 'master' of http://git.cc-lotus.info/service-platform/web-website

guhongwei 5 yıl önce
ebeveyn
işleme
4eee31420c

+ 124 - 0
src/components/enterprise/enterprisefabu.vue

@@ -0,0 +1,124 @@
+<template>
+  <div id="adviserList">
+    <el-row>
+      <el-col :span="24" class="top">
+        <top></top>
+      </el-col>
+      <el-col :span="24" class="logo">
+        <div class="w_1200">
+          <logo :info="info"></logo>
+        </div>
+      </el-col>
+      <el-col :span="24" class="menu">
+        <div class="w_1200">
+          <menuInfo></menuInfo>
+        </div>
+      </el-col>
+      <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">
+            <contextfabus v-on="$listeners" :columnName="columnName" :recruitData="recruitData"></contextfabus>
+          </el-col>
+        </div>
+      </el-col>
+      <el-col :span="24" class="foot">
+        <div class="w_1200">
+          <foot :info="info"></foot>
+        </div>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import top from '@/layout/index/top.vue';
+import logo from '@/layout/index/logo.vue';
+import menuInfo from '@/layout/index/menuInfo.vue';
+import foot from '@/layout/index/foot.vue';
+import examine from '@/layout/personCenter/question.vue';
+import mainMenu from '@/layout/enterprise/mainMenu.vue';
+import contextfabus from '@/layout/enterprise/contextfabus.vue';
+export default {
+  name: 'adviserList',
+  props: {
+    info: null, //站点信息
+    liebiaoList: null, //分类导航
+    columnName: null, //栏目名称
+    recruitData: null,
+    total: null,
+  },
+  components: {
+    top, //头部
+    logo, //logo
+    menuInfo, //导航
+    foot, //底部
+    examine, //网上调查
+    mainMenu, //分类导航
+    contextfabus, //列表
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+.w_1200 {
+  width: 1200px;
+  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 {
+  height: 900px;
+  overflow: hidden;
+  margin: 10px 0;
+}
+.left {
+  height: 900px;
+  margin: 0 10px 0 0;
+}
+.leftDiao {
+  background: #fff;
+  height: 530px;
+  overflow: hidden;
+}
+.leftTop {
+  background: #fff;
+  height: 360px;
+  overflow: hidden;
+  margin: 0 0 10px 0;
+}
+.right {
+  width: 940px;
+  height: 900px;
+  background: #fff;
+  overflow: hidden;
+}
+.foot {
+  float: left;
+  width: 100%;
+  height: 120px;
+  overflow: hidden;
+}
+</style>

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

@@ -0,0 +1,124 @@
+<template>
+  <div id="adviserList">
+    <el-row>
+      <el-col :span="24" class="top">
+        <top></top>
+      </el-col>
+      <el-col :span="24" class="logo">
+        <div class="w_1200">
+          <logo :info="info"></logo>
+        </div>
+      </el-col>
+      <el-col :span="24" class="menu">
+        <div class="w_1200">
+          <menuInfo></menuInfo>
+        </div>
+      </el-col>
+      <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" :columnName="columnName" :recruitData="recruitData"></contextfabu>
+          </el-col>
+        </div>
+      </el-col>
+      <el-col :span="24" class="foot">
+        <div class="w_1200">
+          <foot :info="info"></foot>
+        </div>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import top from '@/layout/index/top.vue';
+import logo from '@/layout/index/logo.vue';
+import menuInfo from '@/layout/index/menuInfo.vue';
+import foot from '@/layout/index/foot.vue';
+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: {
+    info: null, //站点信息
+    liebiaoList: null, //分类导航
+    columnName: null, //栏目名称
+    recruitData: null,
+    total: null,
+  },
+  components: {
+    top, //头部
+    logo, //logo
+    menuInfo, //导航
+    foot, //底部
+    examine, //网上调查
+    mainMenu, //分类导航
+    contextfabu, //列表
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+.w_1200 {
+  width: 1200px;
+  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 {
+  height: 900px;
+  overflow: hidden;
+  margin: 10px 0;
+}
+.left {
+  height: 900px;
+  margin: 0 10px 0 0;
+}
+.leftDiao {
+  background: #fff;
+  height: 530px;
+  overflow: hidden;
+}
+.leftTop {
+  background: #fff;
+  height: 360px;
+  overflow: hidden;
+  margin: 0 0 10px 0;
+}
+.right {
+  width: 940px;
+  height: 900px;
+  background: #fff;
+  overflow: hidden;
+}
+.foot {
+  float: left;
+  width: 100%;
+  height: 120px;
+  overflow: hidden;
+}
+</style>

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

@@ -0,0 +1,124 @@
+<template>
+  <div id="adviserList">
+    <el-row>
+      <el-col :span="24" class="top">
+        <top></top>
+      </el-col>
+      <el-col :span="24" class="logo">
+        <div class="w_1200">
+          <logo :info="info"></logo>
+        </div>
+      </el-col>
+      <el-col :span="24" class="menu">
+        <div class="w_1200">
+          <menuInfo></menuInfo>
+        </div>
+      </el-col>
+      <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">
+            <contextfabuxx v-on="$listeners" :columnName="columnName" :recruitData="recruitData"></contextfabuxx>
+          </el-col>
+        </div>
+      </el-col>
+      <el-col :span="24" class="foot">
+        <div class="w_1200">
+          <foot :info="info"></foot>
+        </div>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import top from '@/layout/index/top.vue';
+import logo from '@/layout/index/logo.vue';
+import menuInfo from '@/layout/index/menuInfo.vue';
+import foot from '@/layout/index/foot.vue';
+import examine from '@/layout/personCenter/question.vue';
+import mainMenu from '@/layout/enterprise/mainMenu.vue';
+import contextfabuxx from '@/layout/enterprise/contextfabuxx.vue';
+export default {
+  name: 'adviserList',
+  props: {
+    info: null, //站点信息
+    liebiaoList: null, //分类导航
+    columnName: null, //栏目名称
+    recruitData: null,
+    total: null,
+  },
+  components: {
+    top, //头部
+    logo, //logo
+    menuInfo, //导航
+    foot, //底部
+    examine, //网上调查
+    mainMenu, //分类导航
+    contextfabuxx, //列表
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+.w_1200 {
+  width: 1200px;
+  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 {
+  height: 900px;
+  overflow: hidden;
+  margin: 10px 0;
+}
+.left {
+  height: 900px;
+  margin: 0 10px 0 0;
+}
+.leftDiao {
+  background: #fff;
+  height: 530px;
+  overflow: hidden;
+}
+.leftTop {
+  background: #fff;
+  height: 360px;
+  overflow: hidden;
+  margin: 0 0 10px 0;
+}
+.right {
+  width: 940px;
+  height: 900px;
+  background: #fff;
+  overflow: hidden;
+}
+.foot {
+  float: left;
+  width: 100%;
+  height: 120px;
+  overflow: hidden;
+}
+</style>

+ 105 - 6
src/layout/enterprise/context.vue

@@ -10,11 +10,29 @@
           <el-col> 我的订购</el-col>
         </el-col>
         <el-col :span="24" class="fbList">
-          <el-col class="fbListTop">信息号</el-col>
-          <el-col class="fbListCenter"></el-col>
-        </el-col>
-        <el-col :span="24">
-          <el-table :data="recruitData" style="width: 100%" border>
+          <el-col class="fbListTop">信息号 <el-col class="fbListTopR"> </el-col></el-col>
+          <el-col class="fbListCenter">
+            <el-col class="fbListCenterL">图片</el-col>
+            <el-col :span="24" class="fbListCenterC">
+              <el-col class="listName">名字</el-col>
+              <el-col class="listName">类别</el-col>
+              <el-col class="listMoney">名字</el-col>
+            </el-col>
+
+            <el-col :span="24" class="fbListCenterTwo">
+              <el-col :span="24" class="faTop">交易说明</el-col>
+              <el-col :span="24" class="faTxt"> 我要买</el-col>
+            </el-col>
+            <el-col :span="24" class="fbListCenterR"> </el-col>
+          </el-col>
+          <el-col :span="24"> </el-col>
+          <el-col v-for="(item, index) in recruitData" :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>
+          </el-col>
+          <!-- <el-table :data="recruitData" style="width: 100%" border>
             <el-table-column label="名称" align="center">
               <template slot-scope="scoped">
                 <el-tooltip effect="dark" content="点击显示详情" placement="left">
@@ -24,7 +42,7 @@
             </el-table-column>
             <el-table-column prop="infotype" label="信息类型" align="center"> </el-table-column>
             <el-table-column prop="user_name" label="发布人" align="center"> </el-table-column>
-          </el-table>
+          </el-table> -->
         </el-col>
       </el-col>
     </el-row>
@@ -114,6 +132,87 @@ export default {
   height: 119px;
   margin: 20px 0 0 12px;
 }
+
+.fbListTopR {
+  float: right;
+}
+
+.fbListCenterL {
+  width: 100px;
+  height: 100px;
+  background-color: #ffffff;
+}
+.listName {
+  width: 196px;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+  overflow: hidden;
+  height: 30px;
+  font-size: 16px;
+  color: #555555;
+}
+.fbListCenterC {
+  width: 196px;
+  border-right: 1px solid #ccc;
+  float: left;
+  padding-right: 20px;
+  height: 100px;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+  overflow: hidden;
+}
+.listMoney {
+  height: 30px;
+  font-size: 16px;
+  color: #fe0000;
+  width: 196px;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+  overflow: hidden;
+}
+
+.fbListCenterTwo {
+  width: 385px;
+  float: left;
+  margin-left: 10px;
+  margin-right: 10px;
+  background: #fafafa;
+  height: 100px;
+}
+.faTop {
+  padding-left: 10px;
+  width: 374px;
+  font-size: 14px;
+  height: 35px;
+  line-height: 35px;
+  color: #215299;
+}
+
+.faTxt {
+  padding-left: 10px;
+  width: 374px;
+  height: 55px;
+  font-size: 14px;
+  word-break: break-all;
+  text-overflow: ellipsis;
+  display: -webkit-box;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 3;
+  overflow: hidden;
+}
+.fbListCenterR {
+  border-left: 1px solid #ccc;
+  width: 125px;
+  height: 100px;
+  float: left;
+}
+
+.fbListCenterR {
+  margin-left: 20px;
+  font-size: 14px;
+  color: #215299;
+  float: left;
+}
 .page {
   padding: 11px 0 0 0;
   text-align: center;

+ 189 - 0
src/layout/enterprise/contextfabu.vue

@@ -0,0 +1,189 @@
+<template>
+  <el-col>
+    <el-col :span="24" class="rightTop">
+      <template>
+        <el-tabs v-model="activeName" @tab-click="handleClick">
+          <el-tab-pane label="需求发布" name="first">
+            <el-form ref="form" :model="form" label-width="80px">
+              <el-form-item label="类别">
+                <el-select v-model="form.totaltype" placeholder="请选择类别" @change="indexSelect">
+                  <el-option label="服务" value="0" selected></el-option>
+                  <el-option label="产品" value="1"></el-option>
+                  <el-option label="技术" value="2"></el-option>
+                </el-select>
+              </el-form-item>
+              <el-col class="mingcheng" :span="24">
+                <el-form-item label="名称">
+                  <el-input v-model="form.totaltype" placeholder="请选择名称"></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col class="mingcheng" :span="24">
+                <el-form-item label="类别">
+                  <el-select v-model="form.type" placeholder="请选择类型">
+                    <el-option label="服务" value="shanghai"></el-option>
+                    <el-option label="产品" value="beijing"></el-option>
+                    <el-option label="技术" value="beijings"></el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
+
+              <el-col :v-if="form.totaltype == 1">
+                <el-col class="mingcheng" :span="24">
+                  <el-form-item label="应用领域">
+                    <el-input v-model="form.name" placeholder="请选择名称"></el-input>
+                  </el-form-item>
+                </el-col>
+                <el-col class="mingcheng" :span="24">
+                  <el-form-item label="服务范围">
+                    <el-input type="textarea" v-model="form.desc"></el-input>
+                  </el-form-item>
+                </el-col>
+              </el-col>
+              <el-col :v-else-if="form.totaltype == 0">
+                <el-col class="tables" :span="24">
+                  <el-form-item label="产品参数">
+                    <el-table :data="tableData" style="width: 100%">
+                      <el-table-column prop="date" label="参数名称" width="180"> </el-table-column>
+                      <el-table-column prop="name" label="参数内容" width="180"> </el-table-column>
+                    </el-table>
+                    <el-button type="primary">添加</el-button>
+                  </el-form-item>
+                </el-col>
+              </el-col>
+              <el-col :v-else="form.totaltype == 2">
+                <el-col class="mingcheng" :span="24">
+                  <el-form-item label="应用领域">
+                    <el-input v-model="form.name" placeholder="请选择名称"></el-input>
+                  </el-form-item>
+                </el-col>
+                <el-col class="tables" :span="24">
+                  <el-form-item label="产品参数">
+                    <el-table :data="tableData" style="width: 100%">
+                      <el-table-column prop="date" label="参数名称" width="180"> </el-table-column>
+                      <el-table-column prop="name" label="参数内容" width="180"> </el-table-column>
+                    </el-table>
+                    <el-button type="primary">添加</el-button>
+                  </el-form-item>
+                </el-col>
+                <el-col class="mingcheng" :span="24">
+                  <el-form-item label="市场前景">
+                    <el-input type="textarea" v-model="form.desc"></el-input>
+                  </el-form-item>
+                </el-col>
+              </el-col>
+
+              <el-col class="danjia" :span="24">
+                <el-form-item label="单价">
+                  <el-input v-model="form.name" placeholder="请选择名称"></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col class="mingcheng" :span="24">
+                <el-form-item label="单位">
+                  <el-select v-model="form.region" placeholder="请选择类型" id="select">
+                    <el-option label="公斤" value="shanghai"></el-option>
+                    <el-option label="套" value="beijing"></el-option>
+                    <el-option label="件" value="beijings"></el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
+              <el-col class="jiaoyi" :span="24">
+                <el-form-item label="交易方式">
+                  <el-radio-group v-model="form.resource">
+                    <el-radio label="转让"></el-radio>
+                    <el-radio label="共用"></el-radio>
+                    <el-radio label="竞价"></el-radio>
+                  </el-radio-group>
+                </el-form-item>
+              </el-col>
+              <el-col class="mingcheng" :span="24">
+                <el-form-item label="简介">
+                  <el-input type="textarea" v-model="form.desc"></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col class="mingcheng" :span="24">
+                <el-form-item>
+                  <el-button type="primary" @click="onSubmit">发布</el-button>
+                </el-form-item>
+              </el-col>
+            </el-form>
+          </el-tab-pane>
+          <el-tab-pane label="供给发布" name="second">配置管理</el-tab-pane>
+        </el-tabs>
+      </template>
+    </el-col>
+  </el-col>
+</template>
+
+<script>
+export default {
+  name: 'contextfabu',
+  props: {},
+  components: {},
+  data: () => ({
+    tableData: [{}],
+    form: {},
+    activeName: 'first',
+  }),
+  created() {},
+  computed: {},
+  methods: {
+    indexSelect() {
+      let optionV = document.getElementById('select').value;
+      console.log(optionV);
+    },
+
+    onSubmit() {
+      console.log('submit!');
+    },
+    handleClick(tab, event) {
+      console.log(tab, event);
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.rightTop {
+  height: 60px;
+  width: 950px;
+}
+
+.rightTopL {
+  width: 130px;
+  height: 60px;
+  background: #215299;
+  float: left;
+  color: #fff;
+  font-size: 18px;
+  text-align: center;
+  font-family: '微软雅黑', Tahoma, Arial, Helvetica, STHeiti;
+}
+
+/deep/.el-tabs__item.is-active {
+  color: #ffffff;
+  background-color: blue;
+}
+
+.el-tabs__active-bar {
+  position: absolute;
+  bottom: 0;
+  left: 0;
+  height: 2px;
+  background-color: blue;
+  z-index: 1;
+}
+.mingcheng {
+  width: 700px;
+}
+.tables {
+  width: 500px;
+  padding: 0 0 0 30px;
+  min-height: 50px;
+}
+.jiaoyi {
+  width: 400px;
+}
+.danjia {
+  width: 500px;
+}
+</style>

+ 19 - 0
src/layout/enterprise/contextfabus.vue

@@ -0,0 +1,19 @@
+<template>
+  <div id="contextfabusvue">
+    <p>contextfabusvue</p>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'contextfabusvue',
+  props: {},
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped></style>

+ 19 - 0
src/layout/enterprise/contextfabuxx.vue

@@ -0,0 +1,19 @@
+<template>
+  <div id="">
+    <p>contextfabuxxvue</p>
+  </div>
+</template>
+
+<script>
+export default {
+  name: '',
+  props: {},
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped></style>

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

@@ -7,7 +7,7 @@
     <el-col>
       <el-menu default-active="1" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" text-color="#215299" active-text-color="#215299">
         <el-menu-item index="1" v-for="(item, index) in liebiaoList" :key="index"
-          ><span slot="title" @click="clickUrl(item.id)">{{ item.name }}</span></el-menu-item
+          ><span slot="title" @click="clickUrl(item.name)">{{ item.name }}</span></el-menu-item
         >
       </el-menu>
     </el-col>
@@ -30,6 +30,7 @@ export default {
     clickUrl(id) {
       this.$emit('onsave', { id });
     },
+
     handleOpen(key, keyPath) {
       console.log(key, keyPath);
     },

+ 11 - 0
src/router/index.js

@@ -261,6 +261,17 @@ const routes = [
     name: 'enterprisefabu',
     component: () => import('../views/enterprise/enterprisejb.vue'),
   },
+  {
+    path: '/enterprise/enterprisexuqiu',
+    name: 'enterprisexuqiu',
+    component: () => import('../views/enterprise/enterprisexuqiu.vue'),
+  },
+  //xx
+  {
+    path: '/enterprise/enterprisexx',
+    name: 'enterprisexuqiu',
+    component: () => import('../views/enterprise/enterprisexx.vue'),
+  },
 ];
 
 const router = new VueRouter({

+ 38 - 0
src/store/enterpriseproject.js

@@ -0,0 +1,38 @@
+import Vue from 'vue';
+import Vuex from 'vuex';
+import _ from 'lodash';
+Vue.use(Vuex);
+const api = {
+  columnInfo: `/api/market/product`,
+};
+const state = () => ({});
+const mutations = {};
+
+const actions = {
+  async query({ commit }, { skip = 0, limit, column_id, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.columnInfo}`, { skip, limit, column_id, ...info });
+    return res;
+  },
+  async create({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.columnInfo}`, payload);
+    return res;
+  },
+  async fetch({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.columnInfo}/${payload}`);
+    return res;
+  },
+  async update({ commit }, { id, ...data }) {
+    const res = await this.$axios.$post(`${api.columnInfo}/update/${id}`, data);
+    return res;
+  },
+  async delete({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.columnInfo}/${payload}`);
+    return res;
+  },
+};
+export default {
+  namespaced: true,
+  state,
+  mutations,
+  actions,
+};

+ 2 - 0
src/store/index.js

@@ -16,6 +16,7 @@ import policiesxinxi from './policiesxinxi';
 import policieszhuanjia from './policieszhuanjia';
 import policiesjbxx from './policiesjbxx';
 import market from './market';
+import enterpriseproject from './enterpriseproject';
 
 Vue.use(Vuex);
 
@@ -37,6 +38,7 @@ export default new Vuex.Store({
     policieszhuanjia,
     policiesjbxx,
     market,
+    enterpriseproject,
   },
   state: {},
   mutations: {},

+ 18 - 34
src/views/enterprise/enterprisedg.vue

@@ -2,12 +2,10 @@
   <div id="adviserList">
     <enterprisedg-detail
       :info="info"
-      @detailcm="clickDetailcm"
       :recruitData="recruitData"
       :liebiaoList="liebiaoList"
       @onsave="onsaveClick"
       :columnName="columnName"
-      :total="total"
     ></enterprisedg-detail>
   </div>
 </template>
@@ -16,8 +14,8 @@
 import enterprisedgDetail from '@/components/enterprise/enterpisedg.vue';
 import { createNamespacedHelpers, mapGetters } from 'vuex';
 const { mapActions: mapSite } = createNamespacedHelpers('site');
-const { mapActions: mapColumn } = createNamespacedHelpers('policiesColumn');
-const { mapActions: mapRecruit } = createNamespacedHelpers('policiesjbxx');
+
+const { mapActions: mapRecruit } = createNamespacedHelpers('enterpriseproject');
 export default {
   name: 'adviserList',
   props: {},
@@ -26,20 +24,17 @@ export default {
   },
   data: () => ({
     info: {},
-    liebiaoList: [],
+    liebiaoList: [{ name: '基本信息' }, { name: '消息管理' }, { name: '我的发布' }, { name: '我的订购' }, { name: '注销账号' }],
     columnName: '',
     recruitData: [],
   }),
   created() {
     this.searchSite();
     this.searchColumn();
-    this.searchName();
-    this.searchList();
   },
   computed: {},
   methods: {
     ...mapSite(['showInfo']),
-    ...mapColumn({ columnList: 'query', columnInfo: 'fetch' }),
     ...mapRecruit({ recruitList: 'query' }),
     // 查询站点信息
     async searchSite() {
@@ -52,38 +47,27 @@ export default {
       }
     },
     // 查询科技政务栏目
-    async searchColumn({ ...info } = {}) {
-      const res = await this.columnList({ ...info });
-      this.$set(this, `liebiaoList`, res.data);
-    },
-    async onsaveClick({ id }) {
-      const res = await this.columnInfo(id);
-      if (res.data.name === '招聘信息') {
-        this.$router.push({ path: '/personnel/recruitList', query: { id: id } });
-      } else if (res.data.name === '就业指导') {
-        this.$router.push({ path: '/personnel/guidanceList', query: { id: id } });
-      } else if (res.data.name === '学习实践') {
-        this.$router.push({ path: '/personnel/practiceList', query: { id: id } });
-      } else if (res.data.name === '勤工俭学') {
-        this.$router.push({ path: '/personnel/diligenceList', query: { id: id } });
-      } else if (res.data.name === '工作顾问') {
-        this.$router.push({ path: '/personnel/adviserList', query: { id: id } });
-      }
-    },
-    async searchName() {
-      let nameId = this.$route.query.id;
-      const res = await this.columnInfo(nameId);
-      this.$set(this, `columnName`, res.data.name);
-    },
-    async searchList({ skip = 0, limit = 10, column_id } = {}) {
+
+    async searchColumn({ skip = 0, limit = 10, column_id } = {}) {
       const res = await this.recruitList({ skip, limit, column_id: this.$route.query.id });
+      console.log();
       if (this.$checkRes(res)) {
         this.$set(this, `recruitData`, res.data);
         console.log(res.data);
       }
     },
-    clickDetailcm({ data }) {
-      this.$router.push({ path: '/personnel/personnelcmdetail', query: { id: data.id } });
+
+    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' });
+      }
     },
   },
 };

+ 49 - 8
src/views/enterprise/enterprisefabu.vue

@@ -1,19 +1,60 @@
 <template>
-  <div id="enterprisefabu">
-    <p>enterprisefabu</p>
+  <div id="adviserList">
+    <enterprisexx-detail :info="info" :liebiaoList="liebiaoList" @onsave="onsaveClick"></enterprisexx-detail>
+    <!-- @detailcm="clickDetailcm" -->
   </div>
 </template>
 
 <script>
+import enterprisexxDetail from '@/components/enterprise/enterprisexx.vue';
+import { createNamespacedHelpers, mapGetters } from 'vuex';
+const { mapActions: mapSite } = createNamespacedHelpers('site');
+const { mapActions: mapRecruit } = createNamespacedHelpers('market');
 export default {
-  name: 'enterprisefabu',
+  name: 'adviserList',
   props: {},
-  components: {},
-  data: () => ({}),
-  created() {},
+  components: {
+    enterprisexxDetail,
+  },
+  data: () => ({
+    info: {},
+    liebiaoList: [{ name: '基本信息' }, { name: '消息管理' }, { name: '我的发布' }, { name: '我的订购' }, { name: '注销账号' }],
+    columnName: '',
+    recruitData: [],
+  }),
+  created() {
+    this.searchSite();
+  },
   computed: {},
-  methods: {},
+  methods: {
+    ...mapSite(['showInfo']),
+    ...mapRecruit({ columnList: 'query', columnInfo: 'fetch' }),
+
+    // 查询站点信息
+    async searchSite() {
+      let res = await this.showInfo();
+      let object = JSON.parse(JSON.stringify(res.data));
+      if (object) {
+        this.$set(this, `info`, res.data);
+      } else {
+        this.$message.error(res.errmsg ? res.errmsg : 'error');
+      }
+    },
+
+    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="scss" scoped></style>
+<style lang="less" scoped></style>

+ 14 - 1
src/views/enterprise/enterprisejb.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="adviserList">
-    <enterprisejb-detail :info="info" :recruitData="recruitData" :liebiaoList="liebiaoList"></enterprisejb-detail>
+    <enterprisejb-detail :info="info" :recruitData="recruitData" @onsave="onsaveClick" :liebiaoList="liebiaoList"></enterprisejb-detail>
     <!-- @detailcm="clickDetailcm" -->
   </div>
 </template>
@@ -46,6 +46,19 @@ export default {
       const res = await this.fetch(detailId);
       console.log(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>

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

@@ -0,0 +1,60 @@
+<template>
+  <div id="adviserList">
+    <enterprisexuqiu-detail :info="info" :liebiaoList="liebiaoList" @onsave="onsaveClick"></enterprisexuqiu-detail>
+    <!-- @detailcm="clickDetailcm" -->
+  </div>
+</template>
+
+<script>
+import enterprisexuqiuDetail from '@/components/enterprise/enterprisexuqiu.vue';
+import { createNamespacedHelpers, mapGetters } from 'vuex';
+const { mapActions: mapSite } = createNamespacedHelpers('site');
+const { mapActions: mapRecruit } = createNamespacedHelpers('market');
+export default {
+  name: 'adviserList',
+  props: {},
+  components: {
+    enterprisexuqiuDetail,
+  },
+  data: () => ({
+    info: {},
+    liebiaoList: [{ name: '基本信息' }, { name: '消息管理' }, { name: '我的发布' }, { name: '我的订购' }, { name: '注销账号' }],
+    columnName: '',
+    recruitData: [],
+  }),
+  created() {
+    this.searchSite();
+  },
+  computed: {},
+  methods: {
+    ...mapSite(['showInfo']),
+    ...mapRecruit({ columnList: 'query', columnInfo: 'fetch' }),
+
+    // 查询站点信息
+    async searchSite() {
+      let res = await this.showInfo();
+      let object = JSON.parse(JSON.stringify(res.data));
+      if (object) {
+        this.$set(this, `info`, res.data);
+      } else {
+        this.$message.error(res.errmsg ? res.errmsg : 'error');
+      }
+    },
+
+    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>

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

@@ -0,0 +1,60 @@
+<template>
+  <div id="adviserList">
+    <enterprisexx-detail :info="info" :liebiaoList="liebiaoList" @onsave="onsaveClick"></enterprisexx-detail>
+    <!-- @detailcm="clickDetailcm" -->
+  </div>
+</template>
+
+<script>
+import enterprisexxDetail from '@/components/enterprise/enterprisexx.vue';
+import { createNamespacedHelpers, mapGetters } from 'vuex';
+const { mapActions: mapSite } = createNamespacedHelpers('site');
+const { mapActions: mapRecruit } = createNamespacedHelpers('market');
+export default {
+  name: 'adviserList',
+  props: {},
+  components: {
+    enterprisexxDetail,
+  },
+  data: () => ({
+    info: {},
+    liebiaoList: [{ name: '基本信息' }, { name: '消息管理' }, { name: '我的发布' }, { name: '我的订购' }, { name: '注销账号' }],
+    columnName: '',
+    recruitData: [],
+  }),
+  created() {
+    this.searchSite();
+  },
+  computed: {},
+  methods: {
+    ...mapSite(['showInfo']),
+    ...mapRecruit({ columnList: 'query', columnInfo: 'fetch' }),
+
+    // 查询站点信息
+    async searchSite() {
+      let res = await this.showInfo();
+      let object = JSON.parse(JSON.stringify(res.data));
+      if (object) {
+        this.$set(this, `info`, res.data);
+      } else {
+        this.$message.error(res.errmsg ? res.errmsg : 'error');
+      }
+    },
+
+    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>