ソースを参照

数据渲染交互

luyanan 6 年 前
コミット
6b189c202b
共有39 個のファイルを変更した707 個の追加624 個の削除を含む
  1. 1 1
      config/dev.env.js
  2. 3 1
      config/index.js
  3. 0 5
      src/components/Breadcrumb/index.vue
  4. 3 1
      src/libs/axios.js
  5. 45 0
      src/libs/axiosk.js
  6. 4 3
      src/libs/queryBase.js
  7. 3 3
      src/libs/queryDict.js
  8. 4 9
      src/libs/request.js
  9. 1 0
      src/libs/util.js
  10. 42 28
      src/router/index.js
  11. 10 1
      src/styles/listitem.scss
  12. 1 1
      src/styles/mixin.scss
  13. 69 117
      src/views/frontviews/Dashboard.vue
  14. 1 5
      src/views/frontviews/ViewAboutUs.vue
  15. 1 1
      src/views/frontviews/ViewFindResource/list.vue
  16. 14 20
      src/views/frontviews/ViewFindResult/list.vue
  17. 1 1
      src/views/frontviews/ViewFindServe/list.vue
  18. 14 0
      src/views/frontviews/ViewPlatTrend/index.vue
  19. 95 0
      src/views/frontviews/ViewPlatTrend/list.vue
  20. 29 30
      src/views/frontviews/platTrend/ViewPlatTrendNews.vue
  21. 86 6
      src/views/frontviews/ViewRegCompany/list.vue
  22. 0 88
      src/views/frontviews/platTrend/ViewPlatTrend.vue
  23. 0 68
      src/views/frontviews/platTrend/ViewPlatTrendTrends.vue
  24. 65 51
      src/views/infoshow/compShow/comp.vue
  25. 89 0
      src/views/infoshow/contentShow/index.vue
  26. 1 1
      src/views/infoshow/expertShow/index.vue
  27. 3 3
      src/views/infoshow/resourceShow/index.vue
  28. 5 5
      src/views/infoshow/resultShow/patent.vue
  29. 1 1
      src/views/layout/Layout.vue
  30. 7 7
      src/views/layout/components/TheHeader.vue
  31. 2 13
      src/views/sub-component/BaseAgency.vue
  32. 12 48
      src/views/sub-component/BaseArticle.vue
  33. 42 28
      src/views/sub-component/BaseCompany.vue
  34. 2 2
      src/views/sub-component/BaseExpert.vue
  35. 13 13
      src/views/sub-component/BaseResource.vue
  36. 4 29
      src/views/sub-component/BaseResult.vue
  37. 14 14
      src/views/sub-component/BaseService.vue
  38. BIN
      static/comimg/default-patent.jpg
  39. 20 20
      static/plat-info.js

+ 1 - 1
config/dev.env.js

@ -6,6 +6,6 @@ module.exports = merge(prodEnv, {
6 6
  NODE_ENV: '"development"',
7 7
  ENV_CONFIG:'"dev"',
8 8
  PLAT_ID: '"9619237FAF5E4B908F0F88A5845C8C9F"',
9
  BASE_API: '"http://localhost:7070"',
9
  BASE_API: '""',
10 10
  KX_API: '"http://192.168.3.233:81"'
11 11
})

+ 3 - 1
config/index.js

@ -10,7 +10,9 @@ module.exports = {
10 10
    // Paths
11 11
    assetsSubDirectory: 'static',
12 12
    assetsPublicPath: '/',
13
    proxyTable: {},
13
    proxyTable: {
14
      changeOrigin: true
15
    },
14 16
15 17
    // Various Dev Server settings
16 18
    host: 'localhost', // can be overwritten by process.env.HOST

+ 0 - 5
src/components/Breadcrumb/index.vue

@ -20,11 +20,6 @@ export default {
20 20
      levelList: null
21 21
    };
22 22
  },
23
  watch: {
24
    $route() {
25
      this.getBreadcrumb();
26
    }
27
  },
28 23
  methods: {
29 24
    getBreadcrumb() {
30 25
      const bridgeName = Cookies.get('bridgeName');

+ 3 - 1
src/libs/axios.js

@ -1,7 +1,9 @@
1 1
import axios from 'axios';
2 2
import qs from 'qs';
3 3
4
let axiosUtil = axios.create();
4
let axiosUtil = axios.create({
5
    baseURL: process.env.BASE_API
6
});
5 7
6 8
axiosUtil.interceptors.request.use(function (config) {
7 9
    // 配置config

+ 45 - 0
src/libs/axiosk.js

@ -0,0 +1,45 @@
1
import axios from 'axios';
2
import qs from 'qs';
3
4
let axiosUtil = axios.create({
5
    baseURL: process.env.KX_API
6
});
7
8
axiosUtil.interceptors.request.use(function (config) {
9
    // 配置config
10
    config.headers.Accept = 'application/json';
11
    if (config.method === 'post') {
12
      config.data = qs.stringify(config.data, {arrayFormat: 'repeat'});
13
      // 处理后后台无需添加RequestBody
14
      config.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
15
    };
16
    return config;
17
});
18
19
axiosUtil.interceptors.response.use(function (response) {
20
    let data = response.data;
21
    let status = response.status;
22
    if (status === 200) {
23
        if (response.data === undefined) {
24
            // 解决IE9数据问题
25
            data = response.request.responseText;
26
        } else {
27
            data = response.data;
28
        }
29
        if (!(data instanceof Object)) {
30
            // 判断data不是Object时,解析成Object
31
            data = JSON.parse(data);
32
        }
33
        return data;
34
    } else {
35
        // 业务异常
36
        console.log(response);
37
        return Promise.resolve(response);
38
    }
39
}, function (error) {
40
    // 系统异常(后期统一处理)
41
    console.log(error);
42
    return Promise.reject(error);
43
});
44
45
export default axiosUtil;

+ 4 - 3
src/libs/queryBase.js

@ -3,7 +3,8 @@
3 3
 * professer, organization
4 4
 */
5 5
/* eslint-disable one-var */
6
import request from './request'
6
import Vue from 'vue'
7
7 8
var objCache = {
8 9
  professor: {},
9 10
  organization: {}
@ -15,7 +16,7 @@ var objHcache = {
15 16
var objCacheHandler = {
16 17
  professor: function(id) {
17 18
    var hc = objHcache.professor[id]
18
    request.getk('/ajax/professor/baseInfo/' + id, {
19
    Vue.axios.getk('/ajax/professor/baseInfo/' + id, {
19 20
    }, function(data) {
20 21
      delete objHcache.professor[id]
21 22
      if (data.success) {
@ -36,7 +37,7 @@ var objCacheHandler = {
36 37
  },
37 38
  organization: function(id) {
38 39
    var hc = objHcache.organization[id]
39
    request.getk('/ajax/org/' + id, {
40
    Vue.axios.getk('/ajax/org/' + id, {
40 41
    }, function(data) {
41 42
      delete objHcache.organization[id]
42 43
      if (data.success) {

+ 3 - 3
src/libs/queryDict.js

@ -1,11 +1,11 @@
1 1
/**
2
 * Created by luyanan on 18/11/22.
2
 * Created by luyanan on 18/12/22.
3 3
 * 'QYGM'----'企业规模'
4 4
 * 'QYLX'----'企业类型'
5 5
 * 'XZQH'----'城市级联'
6 6
 */
7 7
/* eslint-disable one-var */
8
import request from '@/utils/request'
8
import Vue from 'vue'
9 9
10 10
var cacheDict = {
11 11
    bool: [
@ -24,7 +24,7 @@ var cacheDict = {
24 24
    }
25 25
  },
26 26
  loadDict = function(code) {
27
    request.get(uri, {
27
    Vue.axios.get(uri, {
28 28
      dict: code
29 29
    }, function(res) {
30 30
      setDict(code, res.data)

+ 4 - 9
src/libs/request.js

@ -1,14 +1,9 @@
1 1
import Vue from 'vue';
2
import axiosUtil from './axios';
3
4
let requestP = axiosUtil
5
let requestK = axiosUtil
6
7
requestP.defaults.baseURL = process.env.BASE_API
8
requestK.defaults.baseURL = process.env.KX_API
2
import requestP from './axios';
3
import requestK from './axiosk';
9 4
10 5
var ret = {
11
  getp: function(url, data, sh, eh) {
6
  get: function(url, data, sh, eh) {
12 7
    requestP({
13 8
      method: 'get',
14 9
      url: url,
@ -19,7 +14,7 @@ var ret = {
19 14
      if (eh) eh(err);
20 15
    });
21 16
  },
22
  postp: function(url, data, sh, eh) {
17
  post: function(url, data, sh, eh) {
23 18
    requestP({
24 19
      method: 'post',
25 20
      url: url,

+ 1 - 0
src/libs/util.js

@ -18,6 +18,7 @@ util.defaultSet = {
18 18
    article: '/static/comimg/default-article.jpg',
19 19
    resource: '/static/comimg/default-resource.jpg',
20 20
    service: '/static/comimg/default-service.jpg',
21
    patent: '/static/comimg/default-patent.jpg',
21 22
    plat: '/static/comimg/default-plat.jpg'
22 23
  },
23 24
  link: {

+ 42 - 28
src/router/index.js

@ -22,33 +22,47 @@ const constantRouterMap = [
22 22
    }]
23 23
  },
24 24
  {
25
    path: '/platTrends',
25
    path: '',
26 26
    component: Layout,
27 27
    children: [{
28
      path: '',
29
      component: () => import('@/views/frontviews/platTrend/ViewPlatTrend'),
30
      name: 'platTrends',
31
      meta: { title: '平台动态' }
28
      path: '/trends',
29
      name: 'trends',
30
      redirect: { name: 'con_list' },
31
      component: () => import('@/views/frontviews/ViewPlatTrend/index'),
32
      meta: { title: '平台动态' },
33
      children: [
34
        {
35
          name: 'con_list',
36
          path: 'con_list',
37
          component: () => import('@/views/frontviews/ViewPlatTrend/list')
38
        },
39
        {
40
          path: 'con_show',
41
          name: 'con_show',
42
          component: () => import('@/views/infoshow/contentShow'),
43
          meta: { title: '内容名称' }
44
        }
45
      ]
32 46
    }]
33 47
  },
34 48
  {
35
    path: '/findServe',
49
    path: '',
36 50
    component: Layout,
37 51
    children: [
38 52
      {
39
        name: 'findServe',
40
        path: '',
53
        name: 'serve',
54
        path: '/serve',
41 55
        redirect: { name: 'serve_list' },
42 56
        component: () => import('@/views/frontviews/ViewFindServe/index'),
43 57
        meta: { title: '找服务' },
44 58
        children: [
45 59
          {
46 60
            name: 'serve_list',
47
            path: '/serve_list',
61
            path: 'serve_list',
48 62
            component: () => import('@/views/frontviews/ViewFindServe/list')
49 63
          },
50 64
          {
51
            path: '/serve_show',
65
            path: 'serve_show',
52 66
            name: 'serve_show',
53 67
            component: () => import('@/views/infoshow/serviceShow'),
54 68
            meta: { title: '服务名称' }
@ -62,19 +76,19 @@ const constantRouterMap = [
62 76
    component: Layout,
63 77
    children: [
64 78
      {
65
        name: 'findResource',
66
        path: '/findResource',
79
        name: 'reso',
80
        path: '/reso',
67 81
        redirect: { name: 'reso_list' },
68 82
        component: () => import('@/views/frontviews/ViewFindResource/index'),
69 83
        meta: { title: '找资源' },
70 84
        children: [
71 85
          {
72 86
            name: 'reso_list',
73
            path: '/reso_list',
87
            path: 'reso_list',
74 88
            component: () => import('@/views/frontviews/ViewFindResource/list')
75 89
          },
76 90
          {
77
            path: '/reso_show',
91
            path: 'reso_show',
78 92
            name: 'reso_show',
79 93
            component: () => import('@/views/infoshow/resourceShow'),
80 94
            meta: { title: '资源名称' }
@ -88,15 +102,15 @@ const constantRouterMap = [
88 102
    component: Layout,
89 103
    children: [
90 104
      {
91
        name: 'findResult',
92
        path: '/findResult',
105
        name: 'resu',
106
        path: '/resu',
93 107
        redirect: { name: 'resu_list' },
94 108
        component: () => import('@/views/frontviews/ViewFindResult/index'),
95 109
        meta: { title: '找成果' },
96 110
        children: [
97 111
          {
98 112
            name: 'resu_list',
99
            path: '/resu_list',
113
            path: 'resu_list',
100 114
            component: () => import('@/views/frontviews/ViewFindResult/list')
101 115
          },
102 116
          {
@ -107,7 +121,7 @@ const constantRouterMap = [
107 121
            meta: { title: '专利' },
108 122
            children: [
109 123
              {
110
                path: '/resu_patent',
124
                path: 'resu_patent',
111 125
                name: 'resu_patent',
112 126
                component: () => import('@/views/infoshow/resultShow/patent'),
113 127
                meta: { title: '专利名称' }
@ -123,19 +137,19 @@ const constantRouterMap = [
123 137
    component: Layout,
124 138
    children: [
125 139
      {
126
        path: '/expertPool',
127
        name: 'expertPool',
140
        path: '/exp',
141
        name: 'exp',
128 142
        redirect: { name: 'exp_list' },
129 143
        component: () => import('@/views/frontviews/ViewExpertPool/index'),
130 144
        meta: { title: '专家库' },
131 145
        children: [
132 146
          {
133
            path: '/exp_list',
147
            path: 'exp_list',
134 148
            name: 'exp_list',
135 149
            component: () => import('@/views/frontviews/ViewExpertPool/list')
136 150
          },
137 151
          {
138
            path: '/exp_show',
152
            path: 'exp_show',
139 153
            name: 'exp_show',
140 154
            component: () => import('@/views/infoshow/expertShow'),
141 155
            meta: { title: '专家姓名' }
@ -149,19 +163,19 @@ const constantRouterMap = [
149 163
    component: Layout,
150 164
    children: [
151 165
      {
152
        path: '/CoAgency',
153
        name: 'CoAgency',
166
        path: '/org',
167
        name: 'org',
154 168
        redirect: { name: 'org_list' },
155 169
        component: () => import('@/views/frontviews/ViewOrganization/index'),
156 170
        meta: { title: '服务机构' },
157 171
        children: [
158 172
          {
159
            path: '/org_list',
173
            path: 'org_list',
160 174
            name: 'org_list',
161 175
            component: () => import('@/views/frontviews/ViewOrganization/list')
162 176
          },
163 177
          {
164
            path: '/org_show',
178
            path: 'org_show',
165 179
            name: 'org_show',
166 180
            component: () => import('@/views/infoshow/orgShow'),
167 181
            meta: { title: '机构名称' }
@ -175,8 +189,8 @@ const constantRouterMap = [
175 189
    component: Layout,
176 190
    children: [
177 191
      {
178
        path: '/regCompany',
179
        name: 'regCompany',
192
        path: '/comp',
193
        name: 'comp',
180 194
        redirect: { name: 'comp_list' },
181 195
        component: () => import('@/views/frontviews/ViewRegCompany/index'),
182 196
        meta: { title: '入驻企业' },

+ 10 - 1
src/styles/listitem.scss

@ -83,7 +83,7 @@
83 83
  padding:20px;
84 84
  @include border-1px();
85 85
  &:last-child{
86
    @include border-none();
86
    content:none;
87 87
  }
88 88
  .list-head{
89 89
    @include center-items(162px,108px);
@ -119,4 +119,13 @@
119 119
    }
120 120
  }
121 121
}
122
.list-item-info{
123
  .list-head{
124
    display: none
125
  }
126
  .list-info{
127
    flex: 1 1 0;
128
    padding-left: 0;
129
  }
130
}
122 131
/*list*/

+ 1 - 1
src/styles/mixin.scss

@ -60,7 +60,7 @@ $mainColor:$--color-primary;
60 60
}
61 61
@mixin border-none(){
62 62
  &:after{
63
    display:none;
63
    border:none;
64 64
  }
65 65
}
66 66
/*border-about e*/

+ 69 - 117
src/views/frontviews/Dashboard.vue

@ -40,81 +40,36 @@
40 40
      <div class="wrapper-left">
41 41
        <div class="content-wrapper plat-news">
42 42
          <div class="content-title" style="display: block;">
43
            <el-tabs v-model="activeName">
44
              <el-tab-pane label="平台新闻" name="first" class="content">
45
                <ul class="maincon maincon2">
46
                  <li v-for="item in orgTrends" :key="item.index">
47
                    <a :href="linkArticle(item)" target="_blank">
48
                      <span class="topic">{{item.articleTitle}}</span>
49
                      <span class="owner">{{item.ownerName}}</span>
50
                      <span class="time">{{formTime(item)}}</span>
51
                    </a>
52
                  </li>
53
                </ul>
54
              </el-tab-pane>
55
              <el-tab-pane label="采访专栏" name="second" class="content">
56
                <ul class="maincon maincon2">
57
                  <li v-for="item in orgTrends" :key="item.index">
58
                    <a :href="linkArticle(item)" target="_blank">
59
                      <span class="topic">{{item.articleTitle}}</span>
60
                      <span class="owner">{{item.ownerName}}</span>
61
                      <span class="time">{{formTime(item)}}</span>
62
                    </a>
63
                  </li>
64
                </ul>
65
              </el-tab-pane>
66
              <el-tab-pane label="政策法规" name="third" class="content">
67
                <ul class="maincon maincon2">
68
                  <li v-for="item in orgTrends" :key="item.index">
69
                    <a :href="linkArticle(item)" target="_blank">
70
                      <span class="topic">{{item.articleTitle}}</span>
71
                      <span class="owner">{{item.ownerName}}</span>
72
                      <span class="time">{{formTime(item)}}</span>
73
                    </a>
74
                  </li>
75
                </ul>
76
              </el-tab-pane>
77
              <el-tab-pane label="通知公告" name="fourth" class="content">
78
                <ul class="maincon maincon2">
79
                  <li v-for="item in orgTrends" :key="item.index">
80
                    <a :href="linkArticle(item)" target="_blank">
81
                      <span class="topic">{{item.articleTitle}}</span>
82
                      <span class="owner">{{item.ownerName}}</span>
83
                      <span class="time">{{formTime(item)}}</span>
84
                    </a>
43
            <el-tabs v-model="activeName" @tab-click="queryPaltNews">
44
              <el-tab-pane v-for="cata in conCatalog" :key="cata.index" :label="cata.tit" :name="cata.val" class="content">
45
                <ul class="maincon">
46
                  <li v-for="item in paltNews" :key="item.index">
47
                    <router-link  :to="{name:'con_show',query:{id:item.id}}" target="_blank">
48
                      <span class="topic">{{item.title}}</span>
49
                      <span class="time">{{item.modifyTime}}</span>
50
                    </router-link>
85 51
                  </li>
86 52
                </ul>
87 53
              </el-tab-pane>
88 54
            </el-tabs>
89
            <router-link class="content-more" to="/platTrends?flag=first">更多</router-link>
55
            <router-link class="content-more" to="trends">更多</router-link>
90 56
          </div>
91
          <!-- <div class="content">
92
            <div class="pictures" v-if="paltNews.length" :style="{backgroundImage: 'url(' + articleUrl(paltNews[0]) + ')'}"></div>
93
            <ul class="maincon">
94
              <li v-for="item in paltNews" :key="item.index">
95
                <a :href="linkArticle(item)" target="_blank">
96
                  <span class="topic">{{item.articleTitle}}</span>
97
                  <span class="time">{{formTime(item)}}</span>
98
                </a>
99
              </li>
100
            </ul>
101
          </div> -->
102 57
        </div>
103 58
        <div class="content-wrapper full-wrapper" style="margin-top:20px">
104 59
          <div class="content-title">
105
              <span>最新入驻企业</span>
106
              <router-link class="content-more" to="/regAgency">更多</router-link>
60
            <span>最新入驻企业</span>
61
            <router-link class="content-more" to="comp">更多</router-link>
107 62
          </div>
108 63
          <div class="swiper-container" ref="latestCmp">
109 64
            <div class="swiper-wrapper">
110
              <a class="swiper-slide" v-for="item in residentOrgs" :key="item.index" :href="linkOrg(item)" target="_blank">
65
              <router-link class="swiper-slide" v-for="item in residentComps" :key="item.index" :to="{name:'comp_show',query:{id:item.id}}" target="_blank">
111 66
                <div class="item-block">
112 67
                  <div class="item-pic">
113
                    <img :src="orgsUrl(item)">
68
                    <img :src="item.logo">
114 69
                  </div>
115 70
                  <div class="item-text item-left">{{item.name}}</div>
116 71
                </div>
117
              </a>
72
              </router-link>
118 73
            </div>
119 74
          </div>
120 75
        </div>
@ -128,26 +83,6 @@
128 83
      </div>
129 84
    </div>
130 85
131
    <!-- <div class="block-wrapper">
132
      <div class="content-wrapper full-wrapper">
133
        <div class="content-title">
134
            <span>最新入驻企业</span>
135
        </div>
136
        <div class="swiper-container" ref="latestCmp">
137
          <div class="swiper-wrapper">
138
            <a class="swiper-slide" v-for="item in residentOrgs" :key="item.index" :href="linkOrg(item)" target="_blank">
139
              <div class="item-block">
140
                <div class="item-pic">
141
                  <img :src="orgsUrl(item)">
142
                </div>
143
                <div class="item-text item-left">{{item.name}}</div>
144
              </div>
145
            </a>
146
          </div>
147
        </div>
148
      </div>
149
    </div> -->
150
151 86
    <div class="block-wrapper">
152 87
      <div class="content-wrapper full-wrapper">
153 88
        <div class="content-title">
@ -220,7 +155,7 @@
220 155
      <div class="content-wrapper full-wrapper">
221 156
        <div class="content-title">
222 157
            <span>特约专家</span>
223
            <router-link class="content-more" to="/expertPool">查看全部</router-link>
158
            <router-link class="content-more" to="exp">查看全部</router-link>
224 159
        </div>
225 160
        <baseExpert :num="6"></baseExpert>
226 161
      </div>
@ -230,7 +165,7 @@
230 165
      <div class="content-wrapper full-wrapper">
231 166
        <div class="content-title">
232 167
            <span>合作机构</span>
233
            <router-link class="content-more" to="/cooperationAgency">查看全部</router-link>
168
            <router-link class="content-more" to="org">查看全部</router-link>
234 169
        </div>
235 170
        <baseAgency :num="3"></baseAgency>
236 171
      </div>
@ -260,12 +195,30 @@
260 195
    },
261 196
    data() {
262 197
      return {
263
        activeName: 'first',
198
        activeName: '1',
199
        conCatalog: [
200
          {
201
            val: '1',
202
            tit: '平台新闻'
203
          },
204
          {
205
            val: '2',
206
            tit: '采访专栏'
207
          },
208
          {
209
            val: '3',
210
            tit: '政策法规'
211
          },
212
          {
213
            val: '4',
214
            tit: '通知公告'
215
          }
216
        ],
264 217
        platId: '',
265 218
        rows: 20,
266 219
        orgTrends: '',
267 220
        paltNews: '',
268
        residentOrgs: '',
221
        residentComps: '',
269 222
        platResources: '',
270 223
        platWares: '',
271 224
        ownerInfo: '',
@ -280,7 +233,7 @@
280 233
       this.getAboutUs();
281 234
       this.queryPaltNews();
282 235
       this.queryOrgTrends();
283
       this.queryResidentOrgs();
236
       this.queryResidentComps();
284 237
       this.queryPlatResources();
285 238
       this.queryPlatWares();
286 239
    },
@ -343,22 +296,26 @@
343 296
      //   this.$refs.issueDemand.submitForm('ruleForm');
344 297
      // },
345 298
      queryPaltNews() {
346
        this.$axios.getp('/ajax/article/qa', {
347
          ownerId: this.platId,
348
          articleType: '3',
349
          status: 1,
350
          rows: 4
299
        var that = this
300
        this.$axios.get('/ajax/article/pq', {
301
          catalog: that.activeName,
302
          published: 1,
303
          pageSize: 4,
304
          pageNo: 1
351 305
        }, (res) => {
352 306
          if (res.success) {
353
            var $info = res.data;
354
            this.paltNews = $info;
307
            var $info = res.data.data;
308
            for (let i = 0; i < $info.length; ++i) {
309
              if ($info[i].modifyTime) {
310
                $info[i].modifyTime = util.commenTime($info[i].modifyTime, true)
311
              }
312
            }
313
            that.paltNews = $info;
355 314
          };
356 315
        });
357 316
      },
358 317
      queryOrgTrends() {
359
        this.$axios.getp('/ajax/article/publishInPlatform', {
360
          pid: this.platId,
361
          rows: 4
318
        this.$axios.get('/ajax/org/list', {
362 319
        }, (res) => {
363 320
          if (res.success) {
364 321
            var _this = this;
@ -372,19 +329,24 @@
372 329
          };
373 330
        });
374 331
      },
375
      queryResidentOrgs() {
376
        this.$axios.getp('/ajax/platform/info/residentOrgs', {
377
          pid: this.platId,
378
          rows: this.rows
332
      queryResidentComps() {
333
        this.$axios.get('/ajax/company/pq', {
334
          pageSize: 20,
335
          pageNo: 1
379 336
        }, (res) => {
380 337
          if (res.success) {
381
            var $info = res.data;
382
            this.residentOrgs = $info;
338
            var $info = res.data.data;
339
            for (let i = 0; i < $info.length; ++i) {
340
              if ($info[i].logo === '') {
341
                $info[i].logo = util.defaultSet.img.org
342
              }
343
            }
344
            this.residentComps = $info;
383 345
          };
384 346
        });
385 347
      },
386 348
      queryPlatResources() {
387
        this.$axios.getp('/ajax/platform/info/resources', {
349
        this.$axios.getk('/ajax/platform/info/resources', {
388 350
          pid: this.platId,
389 351
          rows: this.rows
390 352
        }, (res) => {
@ -401,7 +363,7 @@
401 363
        });
402 364
      },
403 365
      queryPlatWares() {
404
        this.$axios.getp('/ajax/platform/info/wares', {
366
        this.$axios.getk('/ajax/platform/info/wares', {
405 367
          pid: this.platId,
406 368
          rows: this.rows
407 369
        }, (res) => {
@ -418,8 +380,7 @@
418 380
        });
419 381
      },
420 382
      getAboutUs() {
421
        this.$axios.getp('/ajax/platform/info', {
422
          id: this.platId
383
        this.$axios.get('/ajax/platform/get', {
423 384
        }, (res) => {
424 385
          if (res.data) {
425 386
            if (res.data.descp) {
@ -438,7 +399,7 @@
438 399
        return item.images ? util.ImageUrl('ware' + item.images.split(',')[0]) : util.defaultSet.img.service;
439 400
      },
440 401
      orgsUrl(item) {
441
        return item.hasOrgLogo ? util.ImageUrl(('org/' + item.id + '.jpg'), true) : util.defaultSet.img.org;
402
        return item.logo || util.defaultSet.img.org;
442 403
      },
443 404
      linkResource(item) {
444 405
        return util.defaultSet.link.resource + item.id;
@ -511,7 +472,7 @@
511 472
  };
512 473
</script>
513 474
514
<style rel="stylesheet/scss" lang="scss" scoped>
475
<style rel="stylesheet/scss" lang="scss">
515 476
  .home-main{
516 477
    .block-wrapper{
517 478
      display: flex;
@ -580,7 +541,7 @@
580 541
          .pictures{
581 542
            @include center-items();
582 543
          }
583
          .maincon.maincon2{
544
          .maincon{
584 545
            flex:1 0 180px;
585 546
            padding-left:15px;
586 547
            height:120px;
@ -591,7 +552,7 @@
591 552
              line-height:30px;
592 553
              .topic{
593 554
                display:inline-block;
594
                width:400px;
555
                width: 560px;
595 556
                @include text-ellipsis();
596 557
              }
597 558
              .time{
@ -600,15 +561,6 @@
600 561
                color:$secondaryFont;
601 562
              }
602 563
            }
603
            &.maincon2{
604
              width:100%;
605
              padding:0;
606
              .owner{
607
                display:inline-block;
608
                width:180px;
609
                @include text-ellipsis();
610
              }
611
            }
612 564
          }
613 565
        }
614 566
      }

+ 1 - 5
src/views/frontviews/ViewAboutUs.vue

@ -7,24 +7,20 @@
7 7
</template>
8 8
9 9
<script type="text/javascript">
10
  import Cookies from 'js-cookie';
11 10
  import util from '@/libs/util';
12 11
13 12
  export default {
14 13
    data() {
15 14
      return {
16
        platId: '',
17 15
        aboutUs: ''
18 16
      };
19 17
    },
20 18
    created() {
21
       this.platId = Cookies.get('platId');
22 19
       this.getAboutUs();
23 20
    },
24 21
    methods: {
25 22
      getAboutUs() {
26
        this.$axios.getp('/ajax/platform/info', {
27
          id: this.platId
23
        this.$axios.get('/ajax/platform/get', {
28 24
        }, (res) => {
29 25
          this.aboutUs = util.getFormatCode(res.data.descp);
30 26
        });

+ 1 - 1
src/views/frontviews/ViewFindResource/list.vue

@ -70,7 +70,7 @@
70 70
    },
71 71
    methods: {
72 72
      searchResource() {
73
        this.$axios.getp('/ajax/platform/info/resources', {
73
        this.$axios.getk('/ajax/platform/info/resources', {
74 74
          key: this.keyVal,
75 75
          pid: this.platId,
76 76
          shareId: this.dataO.bShareId,

+ 14 - 20
src/views/frontviews/ViewFindResult/list.vue

@ -2,21 +2,14 @@
2 2
  <div class="main-content">
3 3
    <div class="wrapper-left">
4 4
      <div class="block-wrapper search-wrapper">
5
        <el-input v-model="keyVal" @keyup.enter.native="keywordSearch" placeholder="请输入资源名称、用途、发布者或相关关键词" class="input-with-select">
5
        <el-input v-model="keyVal" @keyup.enter.native="keywordSearch" placeholder="请输入专利名称、发明人或相关关键词" class="input-with-select">
6 6
          <el-button slot="append" icon="el-icon-search" @click="keywordSearch">搜索</el-button>
7 7
        </el-input>
8 8
      </div>
9 9
      <div class="block-wrapper">
10
        <!-- <div class="content-wrapper tab-wrapper">
11
          <div class="tab-lable">资源类型:</div>
12
          <ul class="tab-sort">
13
            <li>不限</li>
14
            <li>检测服务</li>
15
          </ul>
16
        </div> -->
17 10
        <div class="tab-contain">
18 11
          <div v-show="!ifDefault">
19
            <baseResource v-if="platResources.length" v-for="item in platResources" :key="item.index" :itemSingle="item"></baseResource>
12
            <baseResult v-if="platResources.length" v-for="item in platResources" :key="item.index" :itemSingle="item"></baseResult>
20 13
            <Loading v-show="loadingModalShow" :loadingComplete="loadingComplete" :isLoading="isLoading" v-on:upup="searchLower"></Loading>
21 14
          </div>
22 15
          <defaultPage v-show="ifDefault"></defaultPage>
@ -36,10 +29,9 @@
36 29
37 30
<script>
38 31
  import Cookies from 'js-cookie';
39
  import httpUrl from '@/libs/http';
40 32
  import util from '@/libs/util';
41 33
42
  import baseResource from '@/views/sub-component/BaseResult';
34
  import baseResult from '@/views/sub-component/BaseResult';
43 35
44 36
  export default {
45 37
    props: {
@ -52,8 +44,9 @@
52 44
        platId: '',
53 45
        rows: 20,
54 46
        dataO: {
55
          bShareId: '',
56
          bTime: ''
47
          patSortNum: '',
48
          patCreateTime: '',
49
          patId: ''
57 50
        },
58 51
        keyVal: '',
59 52
        platResources: [],
@ -71,18 +64,19 @@
71 64
    },
72 65
    methods: {
73 66
      searchResource() {
74
        this.$axios.get(httpUrl.hQuery.queryResource, {
67
        this.$axios.getk('/ajax/ppatent/index/search', {
75 68
          key: this.keyVal,
76
          pid: this.platId,
77
          shareId: this.dataO.bShareId,
78
          time: this.dataO.bTime,
69
          sortNum: this.dataO.patSortNum,
70
          createTime: this.dataO.patCreateTime,
71
          id: this.dataO.patId,
79 72
          rows: this.rows
80 73
        }, (res) => {
81 74
          if (res.success) {
82 75
            var $info = res.data;
83 76
            if ($info.length > 0) {
84
              this.dataO.bShareId = $info[$info.length - 1].shareId;
85
              this.dataO.bTime = $info[$info.length - 1].time;
77
              this.dataO.patSortNum = $info[$info.length - 1].sortNum;
78
              this.dataO.patCreateTime = $info[$info.length - 1].createTime;
79
              this.dataO.patId = $info[$info.length - 1].id;
86 80
              this.platResources = this.isFormSearch ? this.platResources.concat($info) : $info;
87 81
              this.isFormSearch = true;
88 82
            };
@ -126,7 +120,7 @@
126 120
      }
127 121
    },
128 122
    components: {
129
      baseResource
123
      baseResult
130 124
    }
131 125
  };
132 126
</script>

+ 1 - 1
src/views/frontviews/ViewFindServe/list.vue

@ -70,7 +70,7 @@
70 70
    },
71 71
    methods: {
72 72
      searchService() {
73
        this.$axios.getp('/ajax/platform/info/wares', {
73
        this.$axios.getk('/ajax/platform/info/wares', {
74 74
            key: this.keyVal,
75 75
            pid: this.platId,
76 76
            shareId: this.dataO.bShareId,

+ 14 - 0
src/views/frontviews/ViewPlatTrend/index.vue

@ -0,0 +1,14 @@
1
<template>
2
  <div>
3
    <router-view :plat="plat"></router-view>
4
  </div>
5
</template>
6
<script>
7
  export default {
8
    props: {
9
      plat: {
10
        type: Object
11
      }
12
    }
13
  };
14
</script>

+ 95 - 0
src/views/frontviews/ViewPlatTrend/list.vue

@ -0,0 +1,95 @@
1
<template>
2
  <div class="main-content">
3
		<div class="wrapper-left">
4
			<div class="block-wrapper">
5
				<img :src="plat.platimgurl" width="800" height="280">
6
			</div>
7
			<div class="block-wrapper">
8
				<div class="content-wrapper tab-wrapper">
9
					<el-tabs v-model="activeName">
10
            <el-tab-pane v-for="cata in conCatalog" :key="cata.index" :label="cata.tit" :name="cata.val">
11
              <platNews :activeTab="cata.val"></platNews>
12
            </el-tab-pane>
13
					</el-tabs>
14
				</div>
15
			</div>
16
		</div>
17
		<div class="wrapper-right">
18
      <div class="block-wrapper" v-if="plat.adinfo.length" v-for="item in plat.adinfo" :key="item.index">
19
        <a class="ad-wrapper" :href="item.adUrl" target="_blank">
20
          <img :src="item.imgUrl" width="280" height="200">
21
        </a>
22
      </div>
23
    </div>
24
		<BackTop></BackTop>
25
  </div>
26
</template>
27
28
<script>
29
	import platNews from './news';
30
31
	export default {
32
    props: {
33
      plat: {
34
        type: Object
35
      }
36
    },
37
    data() {
38
      return {
39
        activeName: '1',
40
        conCatalog: [
41
          {
42
            val: '1',
43
            tit: '平台新闻'
44
          },
45
          {
46
            val: '2',
47
            tit: '采访专栏'
48
          },
49
          {
50
            val: '3',
51
            tit: '政策法规'
52
          },
53
          {
54
            val: '4',
55
            tit: '通知公告'
56
          }
57
        ]
58
      };
59
    },
60
    components: {
61
      platNews
62
    }
63
  };
64
</script>
65
66
<style rel="stylesheet/scss" lang="scss">
67
  .tab-wrapper{
68
    padding:10px 20px;
69
    color: $commonFont;
70
    li{
71
      display:inline-block;
72
      margin-right:20px;
73
      cursor: pointer;
74
      &.active{
75
        color: $mainColor;
76
      }
77
    }
78
    .el-tabs{
79
      width:100%;
80
    }
81
    .el-tabs__header{
82
      margin: 0 0 4px;
83
    }
84
    .el-tabs__nav-wrap::after{
85
      content:none;
86
    }
87
    .el-tabs__content{
88
      margin:0 -20px;
89
      .tab-contain{
90
        width:100%;
91
        border-top:20px solid #f4f6f8;
92
      }
93
    }
94
  }
95
</style>

+ 29 - 30
src/views/frontviews/platTrend/ViewPlatTrendNews.vue

@ -5,21 +5,18 @@
5 5
	</div>
6 6
</template>
7 7
8
<script type="text/ecmascript-6">
8
<script>
9 9
  import Cookies from 'js-cookie';
10
  import httpUrl from '@/libs/http';
11
10
  import util from '@/libs/util';
12 11
	import baseArticle from '@/views/sub-component/BaseArticle';
13 12
14 13
	export default {
14
    props: ['activeTab'],
15 15
    data() {
16 16
      return {
17 17
        platId: '',
18
        rows: 20,
19
        dataO: {
20
          bId: '',
21
          bTime: ''
22
        },
18
        pageSize: 20,
19
        pageNo: 1,
23 20
        paltNews: [],
24 21
        loadingModalShow: true, // 是否显示按钮
25 22
        loadingComplete: false, // 是否全部加载
@ -27,44 +24,46 @@
27 24
        isLoading: false // button style...
28 25
      };
29 26
    },
27
    components: {
28
      baseArticle
29
    },
30 30
    created() {
31
       this.platId = Cookies.get('platId');
32
       this.queryPaltNews();
31
      this.platId = Cookies.get('platId');
32
      this.queryPaltNews();
33 33
    },
34 34
    methods: {
35 35
      queryPaltNews() {
36
        this.$axios.get(httpUrl.hQuery.platNews.nopq, {
37
          ownerId: this.platId,
38
          articleType: '3',
39
          status: 1,
40
          rows: this.rows,
41
          publishTime: this.dataO.bTime,
42
          articleId: this.dataO.bId
36
        var that = this
37
        this.$axios.get('/ajax/article/pq', {
38
          catalog: that.activeTab,
39
          published: 1,
40
          pageSize: that.pageSize,
41
          pageNo: that.pageNo
43 42
        }, (res) => {
44
          console.log(res);
45 43
          if (res.success) {
46
            var $info = res.data;
44
            var $info = res.data.data;
47 45
            if ($info.length > 0) {
48
              this.dataO.bId = $info[$info.length - 1].articleId;
49
              this.dataO.bTime = $info[$info.length - 1].publishTime;
50
              this.paltNews = this.isFormSearch ? this.paltNews.concat($info) : $info;
51
              this.isFormSearch = true;
52
             };
53
            if ($info.length < this.rows) {
54
              this.loadingModalShow = false;
55
              this.isFormSearch = false;
46
              for (let i = 0; i < $info.length; ++i) {
47
                if ($info[i].modifyTime) {
48
                  $info[i].modifyTime = util.commenTime($info[i].modifyTime, true)
49
                }
50
               }
51
              that.paltNews = that.isFormSearch ? that.paltNews.concat($info) : $info;
52
              that.isFormSearch = true;
53
            }
54
            if ($info.length < that.pageSize) {
55
              that.loadingModalShow = false;
56
              that.isFormSearch = false;
56 57
            };
57 58
          };
58 59
        });
59 60
      },
60 61
      loadLower() {
61 62
        if (this.loadingModalShow && !this.isLoading) {
63
          this.pageNo++;
62 64
          this.queryPaltNews();
63 65
        }
64 66
      }
65
    },
66
    components: {
67
      baseArticle
68 67
    }
69 68
  };
70 69
</script>

+ 86 - 6
src/views/frontviews/ViewRegCompany/list.vue

@ -1,19 +1,99 @@
1 1
<template>
2 2
	<div class="cooperation">
3 3
		<div class="content-wrapper block-wrapper">
4
			<div class="content-title content-title-center">平台合作机构</div>
5
			<baseCompany></baseCompany>
4
			<div class="block-container">
5
				<router-link class="block-item org-item" v-for="item in orgData" :key="item.index" :to="{name:'comp_show',query:{id:item.id}}" target="_blank">
6
					<div class="item-block-org">
7
						<div class="item-pic-org">
8
							<img :src="item.logo">
9
						</div>
10
						<div class="item-text-org">
11
							<div class="item-tit-org"><span>{{item.name}}</span></div>
12
							<p class="item-tag-org" v-if="item.industry">{{item.industry.join(' | ')}}</p>
13
						</div>
14
					</div>
15
				</router-link>
16
			</div>
17
			<Loading v-show="loadingModalShow" :loadingComplete="loadingComplete" :isLoading="isLoading" v-on:upup="loadLower" v-if="!num"></Loading>
6 18
		</div>
7 19
		<BackTop></BackTop>
8 20
	</div>
9 21
</template>
10 22
11 23
<script>
12
	import baseCompany from '@/views/sub-component/BaseCompany';
24
	import util from '@/libs/util';
13 25
14
	export default {
15
    components: {
16
      baseCompany
26
  export default {
27
    props: {
28
      num: {
29
        type: Number
30
      }
31
    },
32
    data() {
33
      return {
34
        pageSize: 30,
35
        pageNo: 1,
36
        orgData: [],
37
        loadingModalShow: true, // 是否显示按钮
38
        loadingComplete: false, // 是否全部加载
39
        isFormSearch: false, // 数据加载
40
        isLoading: false // button style...
41
      };
42
    },
43
    created() {
44
       this.ResidentOrgs();
45
    },
46
    methods: {
47
      ResidentOrgs() {
48
        var that = this
49
        this.$axios.get('/ajax/company/pq', {
50
          pageSize: that.pageSize,
51
          pageNo: that.pageNo
52
        }, (res) => {
53
          if (res.success) {
54
            var $info = res.data.data;
55
            if ($info.length > 0) {
56
              for (let i = 0; i < $info.length; ++i) {
57
                if ($info[i].logo === '') {
58
                  $info[i].logo = util.defaultSet.img.org
59
                }
60
                $info[i].industry = that.getCompanyKeyword($info[i].id)
61
                that.$forceUpdate()
62
              }
63
              that.isFormSearch = true;
64
              that.orgData = that.orgData.concat($info);
65
            };
66
            if ($info.length < that.pageSize) {
67
              that.loadingModalShow = false;
68
              that.isFormSearch = false;
69
            };
70
          };
71
        });
72
      },
73
      getCompanyKeyword(id) {
74
        var that = this
75
        var objKey = []
76
        that.$axios.get('/ajax/company/qo/keyword', {
77
          id: id,
78
          type: 1
79
        }, function(res) {
80
          if (res.success && res.data) {
81
            const str = res.data
82
            if (str.length > 0) {
83
              str.map(item => {
84
                objKey.push(item.value)
85
              })
86
            }
87
          }
88
        })
89
        return objKey
90
      },
91
      loadLower() {
92
        if (this.loadingModalShow && !this.isLoading) {
93
          this.pageNo++;
94
          this.ResidentOrgs();
95
        }
96
      }
17 97
    }
18 98
  };
19 99
</script>

+ 0 - 88
src/views/frontviews/platTrend/ViewPlatTrend.vue

@ -1,88 +0,0 @@
1
<template>
2
  <div class="main-content">
3
		<div class="wrapper-left">
4
			<div class="block-wrapper">
5
				<img :src="plat.platimgurl" width="800" height="280">
6
			</div>
7
			<div class="block-wrapper">
8
				<div class="content-wrapper tab-wrapper">
9
					<el-tabs v-model="activeName">
10
						<el-tab-pane label="平台新闻" name="first">
11
							<platNews></platNews>
12
						</el-tab-pane>
13
						<el-tab-pane label="采访专栏" name="second">
14
							<platTrends></platTrends>
15
						</el-tab-pane>
16
            <el-tab-pane label="政策法规" name="third">
17
              <platTrends></platTrends>
18
            </el-tab-pane>
19
            <el-tab-pane label="通知公告" name="fourth">
20
              <platTrends></platTrends>
21
            </el-tab-pane>
22
					</el-tabs>
23
				</div>
24
			</div>
25
		</div>
26
		<div class="wrapper-right">
27
      <div class="block-wrapper" v-if="plat.adinfo.length" v-for="item in plat.adinfo" :key="item.index">
28
        <a class="ad-wrapper" :href="item.adUrl" target="_blank">
29
          <img :src="item.imgUrl" width="280" height="200">
30
        </a>
31
      </div>
32
    </div>
33
		<BackTop></BackTop>
34
  </div>
35
</template>
36
37
<script>
38
	import platNews from './ViewPlatTrendNews';
39
  import platTrends from './ViewPlatTrendTrends';
40
41
	export default {
42
    props: {
43
      plat: {
44
        type: Object
45
      }
46
    },
47
    data() {
48
      return {
49
        activeName: 'first'
50
      };
51
    },
52
    watch: {
53
     '$route' (to, from) {
54
        if (this.$route.query.flag) {
55
          this.activeName = this.$route.query.flag; // 监听flag变化
56
        }
57
      }
58
    },
59
    components: {
60
      platNews,
61
      platTrends
62
    }
63
  };
64
</script>
65
66
<style lang="stylus" rel="stylesheet/stylus">
67
68
  .tab-wrapper
69
    padding:10px 20px
70
    color: $commonFont
71
    li
72
      display:inline-block
73
      margin-right:20px
74
      cursor: pointer
75
      &.active
76
        color: $mainColor
77
    .el-tabs
78
      width:100%
79
    .el-tabs__header
80
      margin: 0 0 4px
81
    .el-tabs__nav-wrap::after
82
      content:none
83
    .el-tabs__content
84
      margin:0 -20px
85
      .tab-contain
86
        width:100%
87
        border-top:20px solid #f4f6f8
88
</style>

+ 0 - 68
src/views/frontviews/platTrend/ViewPlatTrendTrends.vue

@ -1,68 +0,0 @@
1
<template>
2
	<div class="tab-contain">
3
		<baseArticle v-for="item in orgTrends" :key="item.index" :itemSingle="item" :showOwner="true"></baseArticle>
4
		<Loading v-show="loadingModalShow" :loadingComplete="loadingComplete" :isLoading="isLoading" v-on:upup="loadLower"></Loading>
5
	</div>
6
</template>
7
8
<script type="text/ecmascript-6">
9
  import Cookies from 'js-cookie';
10
  import httpUrl from '@/libs/http';
11
12
	import baseArticle from '@/views/sub-component/BaseArticle';
13
14
	export default {
15
    data() {
16
      return {
17
        platId: '',
18
        rows: 20,
19
        dataO: {
20
          bShareId: '',
21
          bTime: ''
22
        },
23
        orgTrends: '',
24
        loadingModalShow: true, // 是否显示按钮
25
        loadingComplete: false, // 是否全部加载
26
        isFormSearch: false, // 数据加载
27
        isLoading: false // button style...
28
      };
29
    },
30
    created() {
31
      this.platId = Cookies.get('platId');
32
      this.queryOrgTrends();
33
    },
34
    methods: {
35
      queryOrgTrends(id) {
36
        this.$axios.get(httpUrl.hQuery.orgTrends.nopq, {
37
          pid: this.platId,
38
          rows: this.rows,
39
          publishTime: this.dataO.bTime,
40
          shareId: this.dataO.bShareId
41
        }, (res) => {
42
          console.log(res);
43
          if (res.success) {
44
            var $info = res.data;
45
            if ($info.length > 0) {
46
              this.dataO.bShareId = $info[$info.length - 1].shareId;
47
              this.dataO.bTime = $info[$info.length - 1].publishTime;
48
              this.orgTrends = this.isFormSearch ? this.orgTrends.concat($info) : $info;
49
              this.isFormSearch = true;
50
            };
51
            if ($info.length < this.rows) {
52
              this.loadingModalShow = false;
53
              this.isFormSearch = false;
54
            };
55
          };
56
        });
57
      },
58
      loadLower() {
59
        if (this.loadingModalShow && !this.isLoading) {
60
          this.queryOrgTrends();
61
        }
62
      }
63
    },
64
    components: {
65
      baseArticle
66
    }
67
  };
68
</script>

+ 65 - 51
src/views/infoshow/compShow/comp.vue

@ -4,13 +4,13 @@
4 4
      <div class="content-wrapper">
5 5
        <div class="headcon-box org-head">
6 6
          <div class="show-head headimg-box">
7
            <img :src="orgLogoUrl(orgInfo)">
7
            <img :src="orgInfo.logo">
8 8
          </div>
9 9
          <div class="show-info reInfo-box">
10
            <div class="info-tit">{{orgInfo.forShort ? orgInfo.forShort : orgInfo.name}}<em class="authicon" :class="{'icon-com': orgInfo.authStatus==='3'}"></em></div>
11
            <div class="info-tag"><span v-if="orgInfo.title" style="margin-right:10px">{{orgInfo.orgType}}</span> {{orgInfo.industry ? orgInfo.industry.replace(/,/gi, " | ") : ''}}</div>
10
            <div class="info-tit">{{orgInfo.name}}</div>
11
            <div class="info-tag"><span v-if="orgInfo.type === '1'" style="margin-right:10px">{{compType[orgInfo.type]}}</span> {{keywordObj[1] ? keywordObj[1].join(" | ") : ''}}</div>
12 12
            <div class="info-operate">
13
              <div class="addr">{{orgInfo.city}}</div>
13
              <div class="addr">{{orgInfo.addr}}</div>
14 14
              <shareOut :tUrl="elurl"></shareOut>
15 15
            </div>
16 16
          </div>
@ -45,7 +45,7 @@
45 45
                </div>
46 46
                <div class="content">
47 47
                  <el-row class="tag-item">
48
                    <el-tag v-for="sub in orgInfo.subject" :key="sub.index">{{sub}}</el-tag>
48
                    <el-tag v-for="sub in keywordObj[2]" :key="sub.index">{{sub}}</el-tag>
49 49
                  </el-row>
50 50
                </div>
51 51
              </div>
@ -66,36 +66,36 @@
66 66
                      <el-col :span="6">企业名称:</el-col>
67 67
                      <el-col :span="18">{{orgInfo.name}}</el-col>
68 68
                    </el-col>
69
                    <el-col :span="12" v-if="orgInfo.orgSize">
69
                    <el-col :span="12" v-if="orgInfo.size">
70 70
                      <el-col :span="6">企业规模:</el-col>
71
                      <el-col :span="18">{{orgInfo.orgSize}}</el-col>
71
                      <el-col :span="18">{{numRanger[orgInfo.size]}}</el-col>
72 72
                    </el-col>
73
                    <el-col :span="12" v-if="orgInfo.orgType">
73
                    <el-col :span="12" v-if="orgInfo.type">
74 74
                      <el-col :span="6">企业类型:</el-col>
75
                      <el-col :span="18">{{orgInfo.orgType}}</el-col>
75
                      <el-col :span="18">{{compType[orgInfo.type]}}</el-col>
76 76
                    </el-col>
77
                    <el-col :span="12" v-if="orgInfo.addr">
77
                    <el-col :span="12" v-if="orgInfo.location">
78 78
                      <el-col :span="6">企业地址:</el-col>
79
                      <el-col :span="18">{{orgInfo.addr}}</el-col>
79
                      <el-col :span="18">{{orgInfo.location}}</el-col>
80 80
                    </el-col>
81
                    <el-col :span="12" v-if="orgInfo.foundTime">
81
                    <el-col :span="12" v-if="orgInfo.foundYear">
82 82
                      <el-col :span="6">创立时间:</el-col>
83
                      <el-col :span="18">{{orgInfo.foundTime}}</el-col>
83
                      <el-col :span="18">{{orgInfo.foundYear}}</el-col>
84 84
                    </el-col>
85
                    <el-col :span="12" v-if="orgInfo.orgUrl">
85
                    <el-col :span="12" v-if="orgInfo.url">
86 86
                      <el-col :span="6">企业官网:</el-col>
87
                      <el-col :span="18">{{orgInfo.orgUrl}}</el-col>
87
                      <el-col :span="18">{{orgInfo.url}}</el-col>
88 88
                    </el-col>
89 89
                  </el-row>
90 90
                </div>
91 91
              </div>
92
              <div class="inner-wrapper" v-if="orgInfo.qualification && orgInfo.qualification.length">
92
              <div class="inner-wrapper" v-if="keywordObj[2] && keywordObj[2].length">
93 93
                <div class="content-title">
94 94
                  <span>企业资质</span>
95 95
                </div>
96 96
                <div class="content">
97 97
                   <div class="ulM">
98
                    <div class="liM" v-for="item in orgInfo.qualification" :key="item.index">
98
                    <div class="liM" v-for="item in keywordObj[2]" :key="item.index">
99 99
                      <div class="liM-tit">{{item}}</div>
100 100
                    </div>
101 101
                  </div>
@ -129,10 +129,10 @@
129 129
</template>
130 130
131 131
<script>
132
  import '@/common/stylus/listitem.styl';
133
  import '@/common/stylus/browse.styl';
132
  import '@/styles/listitem.scss';
133
  import '@/styles/browse.scss';
134 134
  import util from '@/libs/util';
135
  import httpUrl from '@/libs/http';
135
  import queryDict from '@/libs/queryDict';
136 136
137 137
  import shareOut from '../components/ShareOut';
138 138
  import baseService from '@/views/sub-component/BaseService';
@ -143,15 +143,18 @@
143 143
        activeIndex: '1',
144 144
        activeName: 'first',
145 145
        orgInfo: '',
146
        orgRegInfo: '',
147 146
        elurl: '',
147
        keywordObj: [],
148
        numRanger: [],
149
        compType: [],
148 150
        platServices: [],
149 151
        platResources: []
150 152
      };
151 153
    },
152 154
    created() {
153
      this.orgId = util.urlParse('id');
155
      this.companyId = util.urlParse('id');
154 156
      this.elurl = window.location.href;
157
      this.getDictoryData();
155 158
      this.getorgInfo();
156 159
    },
157 160
    components: {
@ -159,42 +162,53 @@
159 162
      baseService
160 163
    },
161 164
    methods: {
165
      getDictoryData() {
166
        const that = this
167
        queryDict.applyDict('QYGM', function(dictData) {
168
          dictData.map(item => {
169
            that.numRanger.push({ value: item.code, label: item.caption })
170
          })
171
        }) // 企业规模
172
        queryDict.applyDict('QYLX', function(dictData) {
173
          dictData.map(item => {
174
            that.compType.push({ value: item.code, label: item.caption })
175
          })
176
        }) // 企业类型
177
      },
162 178
      getorgInfo() {
163
        this.$axios.get(httpUrl.kxQurey.org.query + this.orgId, {
179
        this.$axios.get('/ajax/company/qo', {
180
          id: this.companyId
164 181
        }, (res) => {
165 182
          if (res.success) {
166
            var $info = res.data;
167
            if ($info.subject) {
168
              $info.subject = util.strToArr($info.subject);
169
            }
170
            if ($info.qualification) {
171
              $info.qualification = util.strToArr($info.qualification});
172
            }
173
            if ($info.foundTime) {
174
              $info.foundTime = util.TimeTr($info.foundTime);
183
            const obj = res.data
184
            if (obj.logo === '') {
185
              obj.logo = util.defaultSet.img.org
175 186
            }
176
            if ($info.orgSize) {
177
              $info.orgSize = util.orgSizeShow[$info.orgSize];
178
            }
179
            if ($info.orgType) {
180
              $info.orgType = util.orgTypeShow[$info.orgType];
181
            }
182
            this.orgInfo = $info;
187
            this.orgInfo = obj
183 188
          };
184 189
        });
185 190
      },
186
      getorgRegInfo(oName) {
187
        this.$axios.get(httpUrl.kxQurey.org.reg, {
188
          name: oName
189
        }, (res) => {
190
          if (res.success) {
191
            var $info = res.data;
192
            this.orgRegInfo = $info;
193
           var objKey = {};
194
        });
195
      },
196
      orgLogoUrl(item) {
197
        return item.hasOrgLogo ? util.ImageUrl(('org/' + item.id + '.jpg'), true) : util.defaultSet.img.org;
191
      getCompanyKeyword() {
192
        var that = this
193
        that.$axios.get('/ajax/company/qo/keyword', {
194
          id: that.companyId
195
        }, function(res) {
196
          if (res.success && res.data) {
197
            const str = res.data
198
            var objKey = { var objKey = {}
199
            if (str.length > 0) {
200
              str.map(item => {
201
                if (!objKey[item.type]) {
202
                  objKey[item.type] = []
203
                  objKey[item.type].push(item.value)
204
                } else {
205
                  objKey[item.type].push(item.value)
206
                }
207
              })
208
            }
209
            that.keywordObj = objKey
210
          }
211
        })
198 212
      }
199 213
    }
200 214
  };

+ 89 - 0
src/views/infoshow/contentShow/index.vue

@ -0,0 +1,89 @@
1
<template>
2
  <div class="browse-main">
3
    <div class="block-wrapper">
4
      <div class="wrapper-left left-main">
5
        <div class="content-wrapper">
6
          <div class="inner-wrapper">
7
            <div class="headcon-box detail-box">
8
              <div class="show-info">
9
                <div class="info-tit info-tit-big">{{contentInfo.title}}</div>
10
                <div class="info-operate zoom-operate">
11
                  <ul class="list-tag">
12
                    <li>{{contentInfo.modifyTime}}</li>
13
                    <li>作者/来源:{{contentInfo.source}}</li>
14
                  </ul>
15
                </div>
16
              </div>
17
            </div>
18
          </div>
19
          <div class="inner-wrapper">
20
            <div class="content" v-html="contentInfo.cnt"></div>
21
          </div>
22
          <div class="inner-wrapper">
23
            <div class="content-title">
24
              <span>您可能感兴趣的专利</span>
25
            </div>
26
            <div class="content">
27
              <!-- <baseService v-if="platServices.length" v-for="item in platServices" :key="item.index" :itemSingle="item"></baseService> -->
28
            </div>
29
          </div>
30
        </div>
31
      </div>
32
      <div class="wrapper-right">
33
        <div class="wrapper-right">
34
          <div class="block-wrapper" v-if="plat.adinfo.length" v-for="item in plat.adinfo" :key="item.index">
35
            <a class="ad-wrapper" :href="item.adUrl" target="_blank">
36
              <img :src="item.imgUrl" width="280" height="200">
37
            </a>
38
          </div>
39
        </div>
40
      </div>
41
    </div>
42
    <BackTop></BackTop>
43
  </div>
44
</template>
45
46
<script>
47
  import '@/common/stylus/listitem.styl';
48
  import '@/common/stylus/browse.styl';
49
  import util from '@/libs/util';
50
51
  import baseService from '@/views/sub-component/BaseService';
52
53
  export default {
54
    props: {
55
      plat: {
56
        type: Object
57
      }
58
    },
59
    data() {
60
      return {
61
        contentInfo: '',
62
        platServices: [],
63
        platPatents: []
64
      };
65
    },
66
    created() {
67
      this.contentId = util.urlParse('id');
68
      this.getContentInfo();
69
    },
70
    components: {
71
      baseService
72
    },
73
    methods: {
74
     getContentInfo() {
75
        this.$axios.get('/ajax/article/qo', {
76
          id: this.contentId
77
        }, (res) => {
78
          if (res.success) {
79
            var $info = res.data;
80
            if ($info.modifyTime) {
81
              $info.modifyTime = util.commenTime($info.modifyTime, true)
82
            }
83
            this.contentInfo = $info;
84
          };
85
        });
86
      }
87
    }
88
  };
89
</script>

+ 1 - 1
src/views/infoshow/expertShow/index.vue

@ -192,7 +192,7 @@
192 192
193 193
  import shareOut from '../components/ShareOut';
194 194
  import baseService from '@/views/sub-component/BaseService';
195
  import baseResult from '@/views/sub-component/baseResult';
195
  import baseResult from '@/views/sub-component/BaseResult';
196 196
197 197
  export default {
198 198
    data() {

+ 3 - 3
src/views/infoshow/resourceShow/index.vue

@ -80,8 +80,8 @@
80 80
</template>
81 81
82 82
<script>
83
  import '@/common/stylus/listitem.styl';
84
  import '@/common/stylus/browse.styl';
83
  import '@/styles/listitem.scss';
84
  import '@/styles/browse.scss';
85 85
  import util from '@/libs/util';
86 86
  import httpUrl from '@/libs/http';
87 87
@ -118,7 +118,7 @@
118 118
    },
119 119
    methods: {
120 120
      getResourceInfo() {
121
        this.$axios.get(httpUrl.kxQurey.resource.query, {
121
        this.$axios.getk('/ajax/resource/queryOne', {
122 122
          resourceId: this.resourceId
123 123
        }, (res) => {
124 124
          if (res.success) {

+ 5 - 5
src/views/infoshow/resultShow/patent.vue

@ -90,8 +90,8 @@
90 90
</template>
91 91
92 92
<script>
93
  import '@/common/stylus/listitem.styl';
94
  import '@/common/stylus/browse.styl';
93
  import '@/styles/listitem.scss';
94
  import '@/styles/browse.scss';
95 95
  import util from '@/libs/util';
96 96
  import httpUrl from '@/libs/http';
97 97
@ -118,7 +118,7 @@
118 118
    created() {
119 119
      this.patentId = util.urlParse('id');
120 120
      this.elurl = window.location.href;
121
      this.getExpertInfo();
121
      this.getPatentInfo();
122 122
    },
123 123
    components: {
124 124
      shareOut,
@ -126,8 +126,8 @@
126 126
      baseService
127 127
    },
128 128
    methods: {
129
      getExpertInfo() {
130
        this.$axios.get(httpUrl.kxQurey.patent.query, {
129
      getPatentInfo() {
130
        this.$axios.getk('/ajax/ppatent/qo', {
131 131
          id: this.patentId
132 132
        }, (res) => {
133 133
          if (res.success) {

+ 1 - 1
src/views/layout/Layout.vue

@ -1,7 +1,7 @@
1 1
<template>
2 2
  <div class="main Site">
3 3
    <TheHeader></TheHeader>
4
    <Navbar></Navbar>
4
    <!-- <Navbar></Navbar> -->
5 5
    <div class="Site-content">
6 6
      <div class="contain-wrapper">
7 7
        <AppMain></AppMain>

+ 7 - 7
src/views/layout/components/TheHeader.vue

@ -39,13 +39,13 @@
39 39
      <div class="contain-wrapper">
40 40
        <ul>
41 41
          <router-link to="/home" active-class="active" tag="li">首页</router-link>
42
          <router-link to="/platTrends" active-class="active" tag="li">平台动态</router-link>
43
          <router-link to="/findServe" active-class="active" tag="li">找服务</router-link>
44
          <router-link to='/findResource' active-class="active" tag="li">找资源</router-link>
45
          <router-link to="/findResult" active-class="active" tag="li">找成果</router-link>
46
          <router-link to='/expertPool' active-class="active" tag="li">专家库</router-link>
47
          <router-link to='/CoAgency' active-class="active" tag="li">服务机构</router-link>
48
          <router-link to='/regCompany' active-class="active" tag="li">入驻企业</router-link>
42
          <router-link to="/trends" active-class="active" tag="li">平台动态</router-link>
43
          <router-link to="/serve" active-class="active" tag="li">找服务</router-link>
44
          <router-link to='/reso' active-class="active" tag="li">找资源</router-link>
45
          <router-link to="/resu" active-class="active" tag="li">找成果</router-link>
46
          <router-link to='/exp' active-class="active" tag="li">专家库</router-link>
47
          <router-link to='/org' active-class="active" tag="li">服务机构</router-link>
48
          <router-link to='/comp' active-class="active" tag="li">入驻企业</router-link>
49 49
          <router-link to='/about' active-class="active" tag="li">关于平台</router-link>
50 50
        </ul>
51 51
      </div>

+ 2 - 13
src/views/sub-component/BaseAgency.vue

@ -1,7 +1,7 @@
1 1
<template>
2 2
  <div>
3 3
    <div class="block-container">
4
      <router-link class="block-item org-item" v-for="item in orgData" :key="item.index" :to="'org_show?id='+item.id" target="_blank">
4
      <router-link class="block-item org-item" v-for="item in orgData" :key="item.index"  :to="{name:'org_show',query:{id:itemSingle.id}}" target="_blank">
5 5
        <div class="item-block-org">
6 6
          <div class="item-pic-org">
7 7
            <img :src="orgLogoUrl(item)">
@ -32,10 +32,6 @@
32 32
        platId: '',
33 33
        rows: 30,
34 34
        orgData: [],
35
        dataO: {
36
          bOid: '',
37
          bTime: ''
38
        },
39 35
        loadingModalShow: true, // 是否显示按钮
40 36
        loadingComplete: false, // 是否全部加载
41 37
        isFormSearch: false, // 数据加载
@ -48,17 +44,10 @@
48 44
    },
49 45
    methods: {
50 46
      ResidentOrgs(id) {
51
        this.$axios.getp('/ajax/platform/info/buttedOrgs', {
52
          pid: this.platId,
53
          oid: this.dataO.bOid,
54
          time: this.dataO.bTime,
55
          rows: this.num ? this.num : this.rows
56
        }, (res) => {
47
        this.$axios.get('/ajax/org/list', {}, (res) => {
57 48
          if (res.success) {
58 49
            var $info = res.data;
59 50
            if ($info.length > 0) {
60
              this.dataO.bOid = $info[$info.length - 1].id;
61
              this.dataO.bTime = $info[$info.length - 1].buttedTime;
62 51
              this.isFormSearch = true;
63 52
              this.orgData = this.orgData.concat($info);
64 53
            };

+ 12 - 48
src/views/sub-component/BaseArticle.vue

@ -1,71 +1,35 @@
1 1
<template>
2
  <a class="list-item" :href="linkway" target="_blank">
2
  <router-link class="list-item" :class="isShowImg(itemSingle.catalog)" :to="{name:'con_show',query:{id:itemSingle.id}}" target="_blank">
3 3
    <div class="list-head" :style="{backgroundImage: 'url(' + imgUrl + ')'}"></div>
4 4
    <div class="list-info">
5
      <div class="list-tit">{{itemSingle.articleTitle}}</div>
5
      <div class="list-tit">{{itemSingle.title}}</div>
6 6
      <ul class="list-tag">
7
        <li v-if="showOwner">{{ownerName}}</li>
8
        <li>{{formTime}}</li>
9
        <li v-if="itemSingle.pageViews>0">阅读量 {{itemSingle.pageViews}}</li>
10
        <li v-if="itemSingle.articleAgree>0">赞 {{itemSingle.articleAgree}}</li>
11
        <li v-if="leverNumber>0">留言 {{leverNumber}}</li>
7
        <li>{{itemSingle.modifyTime}}</li>
12 8
      </ul>
13 9
    </div>
14
  </a>
10
  </router-link>
15 11
</template>
16 12
17
<script type="text/ecmascript-6">
13
<script>
18 14
  import util from '@/libs/util';
19
20 15
  export default {
21 16
    props: {
22 17
      itemSingle: {
23 18
        type: Object
24
      },
25
      showOwner: {
26
        type: Boolean
27 19
      }
28 20
    },
29 21
    data() {
30 22
      return {
31
        linkway: util.pageUrl('a', this.itemSingle),
32
        imgUrl: this.itemSingle.articleImg ? util.ImageUrl('article/' + this.itemSingle.articleImg) : util.defaultSet.img.article,
33
        formTime: util.commenTime(this.itemSingle.publishTime),
34
        ownerName: '',
35
        leverNumber: ''
36
      };
37
    },
38
    created() {
39
      if (this.showOwner) {
40
        this.ownerByond(this.itemSingle);
23
        imgUrl: this.itemSingle.imgUrl || util.defaultSet.img.article
41 24
      };
42
      this.leaveWordTotal(this.itemSingle);
43 25
    },
44 26
    methods: {
45
      leaveWordTotal(item) {
46
        var _this = this;
47
         this.$axios.getk('/ajax/leavemsg/count', {
48
          sid: item.articleId,
49
          stype: 1
50
        }, (res) => {
51
          if (res.success) {
52
            _this.leverNumber = res.data;
53
            _this.$forceUpdate();
54
          }
55
        });
56
      },
57
      ownerByond(item) {
58
        var _this = this;
59
        if (item.articleType) {
60
          this.$axios.getk('/ajax/org/' + item.ownerId, {
61
            }, (res) => {
62
            if (res.success) {
63
              let $info = res.data;
64
              _this.ownerName = $info.forShort ? $info.forShort : $info.name;
65
              _this.$forceUpdate();
66
            }
67
          });
68
        };
27
      isShowImg(catalog) {
28
        if (catalog === '1' || catalog === '2') {
29
          return ''
30
        } else {
31
          return 'list-item-info'
32
        }
69 33
      }
70 34
    }
71 35
  };

+ 42 - 28
src/views/sub-component/BaseCompany.vue

@ -1,14 +1,14 @@
1 1
<template>
2 2
  <div>
3 3
    <div class="block-container">
4
      <router-link class="block-item org-item" v-for="item in orgData" :key="item.index" :to="'comp_show?id='+item.id" target="_blank">
4
      <router-link class="block-item org-item" v-for="item in orgData" :key="item.index" :to="{name:'comp_show',query:{id:item.id}}" target="_blank">
5 5
        <div class="item-block-org">
6 6
          <div class="item-pic-org">
7
            <img :src="orgLogoUrl(item)">
7
            <img :src="item.logo">
8 8
          </div>
9 9
          <div class="item-text-org">
10
            <div class="item-tit-org"><span>{{item.name}}</span><em class="authicon" :class="{'icon-com': item.authStatus==='3'}"></em></div>
11
            <p class="item-tag-org">{{item.industry.replace(/,/gi, ' | ')}}</p>
10
            <div class="item-tit-org"><span>{{item.name}}</span></div>
11
            <p class="item-tag-org" v-if="item.industry">{{item.industry.join(' | ')}}</p>
12 12
          </div>
13 13
        </div>
14 14
      </router-link>
@ -18,7 +18,6 @@
18 18
</template>
19 19
20 20
<script>
21
  import Cookies from 'js-cookie';
22 21
  import util from '@/libs/util';
23 22
24 23
  export default {
@ -29,13 +28,9 @@
29 28
    },
30 29
    data() {
31 30
      return {
32
        platId: '',
33
        rows: 30,
31
        pageSize: 30,
32
        pageNo: 1,
34 33
        orgData: [],
35
        dataO: {
36
          bOid: '',
37
          bTime: ''
38
        },
39 34
        loadingModalShow: true, // 是否显示按钮
40 35
        loadingComplete: false, // 是否全部加载
41 36
        isFormSearch: false, // 数据加载
@ -43,38 +38,57 @@
43 38
      };
44 39
    },
45 40
    created() {
46
       this.platId = Cookies.get('platId');
47 41
       this.ResidentOrgs();
48 42
    },
49 43
    methods: {
50 44
      ResidentOrgs() {
51
        this.$axios.getp('/ajax/platform/info/buttedOrgs', {
52
          pid: this.platId,
53
          oid: this.dataO.bOid,
54
          time: this.dataO.bTime,
55
          rows: this.num ? this.num : this.rows
45
        var that = this
46
        this.$axios.get('/ajax/company/pq', {
47
          pageSize: that.pageSize,
48
          pageNo: that.pageNo
56 49
        }, (res) => {
57 50
          if (res.success) {
58
            var $info = res.data;
51
            var $info = res.data.data;
59 52
            if ($info.length > 0) {
60
              this.dataO.bOid = $info[$info.length - 1].id;
61
              this.dataO.bTime = $info[$info.length - 1].buttedTime;
62
              this.isFormSearch = true;
63
              this.orgData = this.orgData.concat($info);
53
              for (let i = 0; i < $info.length; ++i) {
54
                if ($info[i].logo === '') {
55
                  $info[i].logo = util.defaultSet.img.org
56
                }
57
                $info[i].industry = that.getCompanyKeyword($info[i].id)
58
                that.$forceUpdate()
59
              }
60
              that.isFormSearch = true;
61
              that.orgData = that.orgData.concat($info);
64 62
            };
65
            if ($info.length < this.rows) {
66
              this.loadingModalShow = false;
67
              this.isFormSearch = false;
63
            if ($info.length < that.pageSize) {
64
              that.loadingModalShow = false;
65
              that.isFormSearch = false;
68 66
            };
69 67
          };
70 68
        });
71 69
      },
72
      orgLogoUrl(item) {
73
        return item.hasOrgLogo ? util.ImageUrl(('org/' + item.id + '.jpg'), true) : util.defaultSet.img.org;
70
      getCompanyKeyword(id) {
71
        var that = this
72
        var objKey = []
73
        that.$axios.get('/ajax/company/qo/keyword', {
74
          id: id,
75
          type: 1
76
        }, function(res) {
77
          if (res.success && res.data) {
78
            const str = res.data
79
            if (str.length > 0) {
80
              str.map(item => {
81
                objKey.push(item.value)
82
              })
83
            }
84
          }
85
        })
86
        return objKey
74 87
      },
75 88
      loadLower() {
76 89
        if (this.loadingModalShow && !this.isLoading) {
77
          this.ResidentOrgs(this.platId);
90
          this.pageNo++;
91
          this.ResidentOrgs();
78 92
        }
79 93
      }
80 94
    }

+ 2 - 2
src/views/sub-component/BaseExpert.vue

@ -1,7 +1,7 @@
1 1
<template>
2 2
  <div>
3 3
    <div class="block-container">
4
      <router-link class="block-item" v-for="item in userData" :key="item.index" :to="'exp_show?id='+item.id" target="_blank">
4
      <router-link class="block-item" v-for="item in userData" :key="item.index" :to="{name:'exp_show',query:{id:itemSingle.id}}" target="_blank">
5 5
        <div class="show-head" :style="{backgroundImage:'url('+ headUrl(item) +')'}"></div>
6 6
        <div class="show-info">
7 7
          <div class="info-tit">{{item.name}}<em class="authicon" :class="headIcon(item)"></em></div>
@ -45,7 +45,7 @@
45 45
    },
46 46
    methods: {
47 47
      buttedProfessors(id) {
48
        this.$axios.getp('/ajax/platform/info/buttedProfessors', {
48
        this.$axios.getk('/ajax/platform/info/buttedProfessors', {
49 49
          pid: this.platId,
50 50
          uid: this.dataO.bUid,
51 51
          time: this.dataO.bTime,

+ 13 - 13
src/views/sub-component/BaseResource.vue

@ -1,5 +1,5 @@
1 1
<template>
2
  <router-link class="list-item" :to="'reso_show?id='+itemSingle.id" target="_blank">
2
  <router-link class="list-item"  :to="{name:'reso_show',query:{id:itemSingle.id}}" target="_blank">
3 3
    <div class="list-head" :style="{backgroundImage: 'url(' + imgUrl + ')'}"></div>
4 4
    <div class="list-info">
5 5
      <div class="list-tit list-topic">{{itemSingle.name}}</div>
@ -11,6 +11,7 @@
11 11
12 12
<script>
13 13
  import util from '@/libs/util';
14
  import queryBase from '@/libs/queryBase';
14 15
15 16
  export default {
16 17
    props: {
@ -31,22 +32,21 @@
31 32
    },
32 33
    methods: {
33 34
      ownerByond(item) {
35
        var _this = this
34 36
        if (item.otype === '1') {
35
          this.$axios.getk('/ajax/professor/baseInfo/' + item.oid, {
36
            }, (res) => {
37
            if (res.success) {
38
              let $info = res.data;
39
              this.ownerName = $info.name;
40
              this.ownerAuth = util.autho($info.authType, $info.orgAuth, $info.authStatus);
37
          queryBase.getProfessor(item.oid, function(sc, value) {
38
            if (sc) {
39
              _this.ownerName = value.name;
40
              _this.ownerAuth = util.autho(value.authType, value.orgAuth, value.authStatus);
41
              _this.$forceUpdate();
41 42
            }
42 43
          });
43 44
        } else if (item.otype === '2') {
44
          this.$axios.getk('/ajax/org/' + item.oid, {
45
            }, (res) => {
46
            if (res.success) {
47
              let $info = res.data;
48
              this.ownerName = $info.forShort ? $info.forShort : $info.name;
49
              this.ownerAuth = $info.authStatus === '3' ? 'icon-com' : '';
45
          queryBase.getOrganization(item.oid, function(sc, value) {
46
            if (sc) {
47
              _this.ownerName = value.forShort ? value.forShort : value.name;
48
              _this.ownerAuth = value.authStatus === '3' ? 'icon-com' : '';
49
              _this.$forceUpdate();
50 50
            }
51 51
          });
52 52
        }

+ 4 - 29
src/views/sub-component/BaseResult.vue

@ -1,10 +1,10 @@
1 1
<template>
2
  <router-link class="list-item" :to="'resu_patent?id='+itemSingle.id" target="_blank">
2
  <router-link class="list-item" :to="{name:'resu_show',query:{id:itemSingle.id}}" target="_blank">
3 3
    <div class="list-head" :style="{backgroundImage: 'url(' + imgUrl + ')'}"></div>
4 4
    <div class="list-info">
5 5
      <div class="list-tit list-topic">{{itemSingle.name}}</div>
6
      <div class="list-owner">{{ownerName}}<em class="authicon" :class="ownerAuth"></em></div>
7
      <div class="list-desc" v-if="itemSingle.cnt">用途:{{itemSingle.cnt}}</div>
6
      <div class="list-owner">发明人:{{itemSingle.authors.substring(0, itemSingle.authors.length - 1)}}</div>
7
      <div class="list-desc">申请人:{{itemSingle.reqPerson}}</div>
8 8
    </div>
9 9
  </router-link>
10 10
</template>
@ -20,37 +20,12 @@
20 20
    },
21 21
    data() {
22 22
      return {
23
        linkway: util.defaultSet.link.resource + this.itemSingle.id,
24
        imgUrl: (this.itemSingle && this.itemSingle.images) ? util.ImageUrl('resource/' + this.itemSingle.images.split(',')[0]) : util.defaultSet.img.resource,
25
        ownerName: '',
26
        ownerAuth: ''
23
        imgUrl: util.defaultSet.img.patent
27 24
      };
28 25
    },
29 26
    created() {
30
      this.ownerByond(this.itemSingle);
31 27
    },
32 28
    methods: {
33
      ownerByond(item) {
34
        if (item.otype === '1') {
35
          this.$axios.getk('/ajax/professor/baseInfo/' + item.oid, {
36
            }, (res) => {
37
            if (res.success) {
38
              let $info = res.data;
39
              this.ownerName = $info.name;
40
              this.ownerAuth = util.autho($info.authType, $info.orgAuth, $info.authStatus);
41
            }
42
          });
43
        } else if (item.otype === '2') {
44
          this.$axios.getk('/ajax/org/' + item.oid, {
45
            }, (res) => {
46
            if (res.success) {
47
              let $info = res.data;
48
              this.ownerName = $info.forShort ? $info.forShort : $info.name;
49
              this.ownerAuth = $info.authStatus === '3' ? 'icon-com' : '';
50
            }
51
          });
52
        }
53
      }
54 29
    }
55 30
  };
56 31
</script>

+ 14 - 14
src/views/sub-component/BaseService.vue

@ -1,5 +1,5 @@
1 1
<template>
2
  <router-link class="list-item" :to="'serve_show?id='+itemSingle.id" target="_blank">
2
  <router-link class="list-item" :to="{name:'serve_show',query:{id:itemSingle.id}}" target="_blank">
3 3
    <div class="list-head" :style="{backgroundImage: 'url(' + imgUrl + ')'}"></div>
4 4
    <div class="list-info">
5 5
      <div class="list-tit list-topic">{{itemSingle.name}}</div>
@ -9,8 +9,9 @@
9 9
  </router-link>
10 10
</template>
11 11
12
<script type="text/ecmascript-6">
12
<script>
13 13
  import util from '@/libs/util';
14
  import queryBase from '@/libs/queryBase';
14 15
15 16
  export default {
16 17
    props: {
@ -31,22 +32,21 @@
31 32
    },
32 33
    methods: {
33 34
      ownerByond(item) {
35
        var _this = this
34 36
        if (item.otype === '1') {
35
          this.$axios.getk('/ajax/professor/baseInfo/' + item.oid, {
36
            }, (res) => {
37
            if (res.success) {
38
              let $info = res.data;
39
              this.ownerName = $info.name;
40
              this.ownerAuth = util.autho($info.authType, $info.orgAuth, $info.authStatus);
37
          queryBase.getProfessor(item.oid, function(sc, value) {
38
            if (sc) {
39
              _this.ownerName = value.name;
40
              _this.ownerAuth = util.autho(value.authType, value.orgAuth, value.authStatus);
41
              _this.$forceUpdate();
41 42
            }
42 43
          });
43 44
        } else if (item.otype === '2') {
44
          this.$axios.getk('/ajax/org/' + item.oid, {
45
            }, (res) => {
46
            if (res.success) {
47
              let $info = res.data;
48
              this.ownerName = $info.forShort ? $info.forShort : $info.name;
49
              this.ownerAuth = $info.authStatus === '3' ? 'icon-com' : '';
45
          queryBase.getOrganization(item.oid, function(sc, value) {
46
            if (sc) {
47
              _this.ownerName = value.forShort ? value.forShort : value.name;
48
              _this.ownerAuth = value.authStatus === '3' ? 'icon-com' : '';
49
              _this.$forceUpdate();
50 50
            }
51 51
          });
52 52
        }

BIN
static/comimg/default-patent.jpg


+ 20 - 20
static/plat-info.js

@ -1,29 +1,29 @@
1 1
var PLAT = {}
2 2
3 3
PLAT.info = {
4
  "source":"xttjpt",
5
  "title": "邢台科技条件平台",
6
  "name": "邢台经济开发区",
7
  "website": "http://www.xtkfq.gov.cn",
8
  "adminsite": "http://www.xtkfq.gov.cn",
9
  "address": "中国河北省邢台市中兴东大街1888号",
10
  "tel": "010-62343359",
11
  "fax": "86-319-3636111",
12
  "zipcode": "054001",
13
  "mailbox": "service@ekexiu.com",
14
  "logourl": "/static/xtkfq/icon-logo.png",
15
  "bannerurl": "/static/xtkfq/banner.jpg",
16
  "platimgurl": "/static/xtkfq/platimg.jpg",
17
  "adinfo":[
4
  'source': 'xttjpt',
5
  'title': '邢台科技条件平台',
6
  'name': '邢台经济开发区',
7
  'website': 'http://www.xtkfq.gov.cn',
8
  'adminsite': 'http://www.xtkfq.gov.cn',
9
  'address': '中国河北省邢台市中兴东大街1888号',
10
  'tel': '010-62343359',
11
  'fax': '86-319-3636111',
12
  'zipcode': '054001',
13
  'mailbox': 'service@ekexiu.com',
14
  'logourl': '/static/xtkfq/icon-logo.png',
15
  'bannerurl': '/static/xtkfq/banner.jpg',
16
  'platimgurl': '/static/xtkfq/platimg.jpg',
17
  'adinfo':[
18 18
    // {
19
    //   "adUrl": "javascript:void(0)",
20
    //   "imgUrl": "/static/xtkfq/ad/xtfh.jpg"
19
    //   'adUrl': 'javascript:void(0)',
20
    //   'imgUrl': '/static/xtkfq/ad/xtfh.jpg'
21 21
    // }
22 22
  ],
23
  "foot_cl": "2016-2018 邢台市科智创新服务中心",
24
  "foot_cn": "冀ICP备18020508号",
25
  "foot_bl": "",
26
  "foot_bn": ""
23
  'foot_cl': '2016-2018 邢台市科智创新服务中心',
24
  'foot_cn': '冀ICP备18020508号',
25
  'foot_bl': '',
26
  'foot_bn': ''
27 27
};
28 28
29 29
window.PLAT = PLAT;