瀏覽代碼

工作台

LIPENGTAO1313 6 年之前
父節點
當前提交
cba1444262

+ 175 - 27
src/components/bench-views/ArticleTemplate.vue

@ -1,42 +1,190 @@
1 1
<template>
2
  <div class="list-item">
3
    <div class="list-head"></div>
4
    <div class="list-info">
5
      <div class="list-tit">2017年“浙江杰出青年”揭晓,祝贺中科院宁波材料所王立平研究员上榜中科院宁波材料所王立平研究员上榜!</div>
6
       <ul class="list-tag">
7
        <li>企业名称</li>
8
        <li>发布于5月8日 18:00</li>
9
        <li>阅读量 1000</li>
10
        <li>赞 99</li>
11
        <li>留言 109</li>
12
      </ul>
13
      <ul class="list-tag">
14
        <li>发布于5月8日 18:00</li>
15
        <li>阅读量 1000</li>
16
        <li>赞 99</li>
17
        <li>留言 109</li>
18
      </ul>
19
      <ul class="list-tag">
20
        <li>修改于5月8日 18:00</li>
21
        <li class="coRed">草稿</li>
22
        <li class="coRed">将在 4月3日 08:00 定时发布</li>
23
      </ul>
24
    </div>
25
    <div class="dele">
26
      <el-button type="primary" size="small">修改</el-button>
27
      <el-button type="danger" icon="el-icon-delete" circle></el-button>
2
  <div class="searchList">
3
    <ul>
4
      <li class="list-item" v-for="(item, index) in dataList" :key="index" @click="kexiuExpert(item.articleId)">
5
        <div class="list-head" :style="{ backgroundImage: 'url('+ imageDis+')'}" ></div>
6
        <div class="list-info">
7
          <div class="list-tit">{{item.articleTitle}}</div>
8
          <ul class="list-tag" v-if="flag!=1">
9
            <li>{{item.company}}</li>
10
            <li>发布于 {{timeChage(item)}}</li>
11
            <li>阅读量 {{item.pageViews}}</li>
12
            <li>赞 {{item.articleAgree}}</li>
13
            <li>留言 {{item.leverNumber}}</li>
14
          </ul>
15
          <ul class="list-tag" v-if="(flag==1) && (item.status==1)">
16
            <li>发布于</li>
17
            <li>阅读量 {{item.pageViews}}</li>
18
            <li>赞 {{item.articleAgree}}</li>
19
            <li>留言 {{item.leverNumber}}</li>
20
          </ul>
21
          <ul class="list-tag" v-if="(flag==1) && (item.status==2)">
22
            <li v-show="item.status">修改于{{timeChage(item)}}</li>
23
            <li class="coRed">草稿</li>
24
            <li class="coRed">将在 定时发布</li>
25
          </ul>
26
          <ul class="list-tag" v-if="(flag==1) && (item.status==0)">
27
            <li v-show="item.status">修改于</li>
28
            <li class="coRed">草稿</li>
29
          </ul>
30
        </div>
31
        <div class="dele" v-if="flag === 1">
32
          <el-button type="primary" size="small" v-if="(item.status == 0 || item.status == 2)">修改</el-button>
33
          <el-button type="danger" icon="el-icon-delete" circle  @click="dele(item.articleId,index)></el-button>
34
        </div>
35
        <div class="dele" v-else-if="flag === 2">
36
          <el-button type="danger" icon="el-icon-delete" circle @click="dele(item.articleId,index)"></el-button>
37
        </div>
38
        <div class="dele" v-else-if="flag === 2">
39
          <el-button type="primary" size="small" @click.once="add(item.articleId)">{{addText}}</el-button>
40
        </div>
41
      </li>
42
    </ul>
43
    <div class="taglist">
44
      <el-pagination background layout="prev, pager, next" :total="total" :page-size="10" @current-change="handleCurrentChange">
45
      </el-pagination>
28 46
    </div>
29 47
  </div>
30 48
</template>
31 49

32 50
<script type="text/ecmascript-6">
51
  import Cookies from 'js-cookie';
52
  import httpUrl from '@/libs/http';
53
  import util from '@/libs/util';
33 54
  export default {
34

55
    props: ['keyValue', 'url', 'flag'],
56
    data() {
57
      return {
58
        expertParameters: {},
59
        dataList: [],
60
        total: 0,
61
        orgDefaultImage: util.defaultSet.img.article,
62
        orgImageAddId: util.ImageUrl('article/', true),
63
        platId: '',
64
        addText: '添加'
65
      };
66
    },
67
    watch: {
68
      keyValue: function () {
69
        this.expertParameters.key = this.keyValue;
70
        this.expertList();
71
      }
72
    },
73
    computed: {
74
      imageDis: function (item) {
75
        return (item.hasOrgLogo) ? this.orgImageAddId + item.articleImg  : this.orgDefaultImage;
76
      }
77
    },
78
    created() {
79
      this.platId = Cookies.get('platId');
80
      this.expertParameters = {
81
        key: this.keyValue,
82
        pageSize: 10,
83
        pageNo: 1
84
      };
85
      if (this.flag === 1) {
86
        this.expertParameters.ownerId = this.platId;
87
        this.expertParameters.articleType = 3;
88
      } else {
89
        this.expertParameters.pid = this.platId;
90
      }
91
      this.expertList();
92
    },
93
    methods: {
94
      timeChage(item) {
95
        var nowTimg = new Date();
96
        var startTime = (item.status !== 1) ? item.modifyTime : item.publishTime;
97
          if (item.status == 2) {
98
            startTime = item.publishTime;
99
          }
100
          if (nowTimg.getFullYear() === startTime.substring(0, 4)) {
101
            return startTime.substring(4, 6).replace(/\b(0+)/gi, '') + '月' + startTime.substring(6, 8).replace(/\b(0+)/gi, '') + '日 ' + startTime.substring(8, 10) + ':' + startTime.substring(10, 12);
102
          } else {
103
            return startTime.substring(0, 4) + "年" + startTime.substring(4, 6).replace(/\b(0+)/gi, '') + '月' + startTime.substring(6, 8).replace(/\b(0+)/gi, '') + '日 ' + startTime.substring(8, 10) + ':' + startTime.substring(10, 12);
104
          }
105
      },
106
      expertList() {
107
        this.dataList = [];
108
        this.$axios.get(util.ekexiuUrl + this.url, {
109
          params: this.expertParameters
110
        }).then((res) => {
111
          if (res.success) {
112
            this.dataList = [];
113
            this.dataList = res.data.data;
114
            this.total = res.data.total;
115
            for (let i=0 ; i< res.data.data.length; i++) {
116
              if (this.flag !== 1) {
117
                this.leaveWordTotal(res.data.data[i]);
118
                this.companyName(res.data.data[i]);
119
              } else {
120
                if (res.data.data[i].status === 1) {
121
                  this.leaveWordTotal(res.data.data[i]);
122
                }
123
              }
124
            }
125
          }
126
        });
127
      },
128
      leaveWordTotal($data) {
129
         this.$axios.get(util.ekexiuUrl + '/ajax/leavemsg/count', {
130
          params: {
131
            sid: $data.articleId,
132
            stype: 1
133
          }
134
        }).then((res) => {
135
          if (res.success) {
136
            $data.leverNumber = res.data;
137
            this.$forceUpdate();
138
          }
139
        });
140
      },
141
      companyName($data) {
142
          this.$axios.get(util.ekexiuUrl + '/ajax/org/' + $data.ownerId, {
143
            }).then((res) => {
144
            if (res.success) {
145
              $data.company = (res.data.forShort) ? res.data.forShort : res.data.name;
146
              this.$forceUpdate();
147
            }
148
         });
149
      },
150
      kexiuExpert(id) {
151
        window.open(util.defaultSet.link.article + id);
152
      },
153
      handleCurrentChange(val) {
154
        this.expertParameters.pageNo = val;
155
        this.expertList();
156
      },
157
      dele(id, index) {
158
        this.$axios.post(httpUrl.hQuery.orgTrends.del, {
159
            params: {
160
              pid: this.platId,
161
              aid: id
162
            }
163
          }).then((res) => {
164
            if (res.success) {
165
              this.dataList.splice(index, 1);
166
            }
167
          });
168
      },
169
      add(id) {
170
        this.$axios.post(httpUrl.hQuery.orgTrends.add, {
171
            params: {
172
              pid: this.platId,
173
              aid: id
174
            }
175
          }).then((res) => {
176
            if (res.success) {
177
              this.addText = '已添加';
178
            }
179
          });
180
      }
181
    }
35 182
  };
36 183
</script>
37 184
<style lang="stylus" rel="stylesheet/stylus">
38 185
  @import '../../common/stylus/listitem';
39 186
    .list-item
187
      cursor: pointer
40 188
      &:hover
41 189
        background: #EEEEEE
42 190
      &:hover .dele

+ 91 - 9
src/components/bench-views/BusTemplate.vue

@ -1,24 +1,106 @@
1 1
<template>
2 2
  <ul>
3
    <li class="list-item">
4
      <div class="list-head"></div>
3
    <li class="list-item" v-for="(item, index) in dataList" :key="index" @click="kexiuExpert(item.id)">
4
      <div class="list-head" :style="{ backgroundImage: 'url('+ imageDis+')'}"></div>
5 5
      <div class="list-info">
6 6
        <div class="list-tit list-tig">
7
          北京科大材料分析检测中心限公司
8
          <em class="authicon icon-com"></em>
7
          {{(item.forShort) ? item.forShort : item.name}}
8
          <em class="authicon icon-com" v-bind:class="{ active: (item.authStatus == 3)}"></em>
9
          {{keyValue}}
9 10
        </div>
10 11
        <ul class="list-tag">
11
          <li>企业类型</li>
12
          <li>所属行业 | 所属行业 | 所属行业</li>
12
          <li>{{(item.orgType == 2) ? '上市企业' : ''}}</li>
13
          <li>{{(item.industry) ? item.industry.split(',').join(' | ') : '' }}</li>
13 14
        </ul>
14 15
      </div>
15
      <div class="dele">
16
        <el-button type="danger" icon="el-icon-delete" circle></el-button>
16
      <div class="dele" v-show="(flag == 1)">
17
        <el-button type="danger" icon="el-icon-delete" circle @click="dele(item.id)"></el-button>
17 18
      </div>
18 19
    </li>
19 20
    <div class="taglist">
20
      <el-pagination background layout="prev, pager, next" :total="100">
21
      <el-pagination background layout="prev, pager, next" :total="total" :page-size="10" @current-change="handleCurrentChange">
21 22
      </el-pagination>
22 23
    </div>
23 24
  </ul>
24 25
</template>
26

27
<script type="text/ecmascript-6">
28
  import Cookies from 'js-cookie';
29
  import httpUrl from '@/libs/http';
30
  import util from '@/libs/util';
31
  export default {
32
    props: ['keyValue', 'url', 'flag'],
33
    data() {
34
      return {
35
        expertParameters: {},
36
        dataList: [],
37
        total: 0,
38
        orgDefaultImage: util.defaultSet.img.org,
39
        orgImageAddId: util.ImageUrl('org/', true),
40
        platId: ''
41
      };
42
    },
43
    watch: {
44
      keyValue: function () {
45
        this.expertParameters.key = this.keyValue;
46
        this.expertList();
47
      }
48
    },
49
    computed: {
50
      imageDis: function (item) {
51
        return (item.hasOrgLogo) ? this.orgImageAddId + item.id + '.jpg' : this.orgDefaultImage;
52
      }
53
    },
54
    created() {
55
      this.platId = Cookies.get('platId');
56
      this.expertParameters = {
57
        pid: this.platId,
58
        pageSize: 10,
59
        pageNo: 1
60
      };
61
      if (this.flag === 1) {
62
        this.expertParameters.key = this.keyValue;
63
      }
64
      this.expertList();
65
    },
66
    methods: {
67
      expertList() {
68
        this.dataList = [];
69
        this.$axios.get(util.ekexiuUrl + this.url, {
70
          params: this.expertParameters
71
        }).then((res) => {
72
          if (res.success) {
73
            this.dataList = [];
74
            this.dataList = res.data.data;
75
            this.total = res.data.total;
76
          }
77
        });
78
      },
79
      kexiuExpert(id) {
80
        window.open(util.defaultSet.link.org + id);
81
      },
82
      handleCurrentChange(val) {
83
        this.expertParameters.pageNo = val;
84
        this.expertList();
85
      },
86
      dele(id, index) {
87
        this.$axios.post(httpUrl.hQuery.residentOrgs.del, {
88
            params: {
89
              pid: this.platId,
90
              oid: id
91
            }
92
          }).then((res) => {
93
            if (res.success) {
94
              this.dataList.splice(index, 1);
95
            }
96
          });
97
        }
98
    }
99
  };
100
</script>
101

102
<style lang="stylus" rel="stylesheet/stylus">
103
  ul
104
    .list-tag
105
      cursor: pointer
106
</style>

+ 4 - 2
src/components/bench-views/abutmentService/ButtService.vue

@ -7,7 +7,8 @@
7 7
          <ExpertAdvisor></ExpertAdvisor>
8 8
        </el-tab-pane>
9 9
        <el-tab-pane label="合作机构" name="second">
10
          <BusTemplate></BusTemplate>
10
          <BusTemplate :url='url' :flag='2'>
11
          </BusTemplate>
11 12
        </el-tab-pane>
12 13
      </el-tabs>
13 14
    </div>
@ -21,7 +22,8 @@
21 22
  export default {
22 23
    data() {
23 24
      return {
24
        activeName: 'first'
25
        activeName: 'first',
26
        url: '/ajax/platform/info/pqButtedOrgs'
25 27
      };
26 28
    },
27 29
    components: {

+ 98 - 6
src/components/bench-views/abutmentService/ExpertAdvisor.vue

@ -1,32 +1,124 @@
1 1
<template>
2 2
  <ul>
3
    <li class="list-item">
4
      <div class="list-head header"></div>
3
    <li class="list-item" v-for="(item,index) in dataList" :key="index" @click="kexiuExpert(item.id)">
4
      <div class="list-head header" :style="{ backgroundImage: 'url('+ item.image +')'}"></div>
5 5
      <div class="list-info">
6
        <div class="list-tit">专家姓名 <em class="authicon icon-pro"></em></div>
6
        <div class="list-tit list-tig">{{item.name}} <em class="authicon" :class='item.className'></em></div>
7 7
        <ul class="list-tag">
8
          <li>职称/职位,所在机构</li>
8
          <li>{{item.offt}}</li>
9 9
        </ul>
10 10
        <ul class="list-tag headerTag">
11
          <li>度假酒店几点交定金的就及点击但渐渐地就记得记得就到家就的家具家电渐渐地就家电家具度假酒店几点交定金的就及点击但渐渐地就记得记得就到家就的家具家电渐渐地就家电家具度假酒店几点交定金的就及点击但渐渐地就记得记得就到家就的家具家电渐渐地就家电家具度假酒店几点交定金的就及点击但渐渐地就记得记得就到家就的家具家电渐渐地就家电家具</li>
11
          <li>研究方向:{{item.reserachs}}</li>
12 12
        </ul>
13 13
      </div>
14 14
    </li>
15 15
    <div class="taglist">
16
      <el-pagination background layout="prev, pager, next" :total="100">
16
      <el-pagination background layout="prev, pager, next" :total="total" :page-size="10" @current-change="handleCurrentChange">
17 17
      </el-pagination>
18 18
    </div>
19 19
  </ul>
20 20
</template>
21 21

22
<script type="text/ecmascript-6">
23
  import Cookies from 'js-cookie';
24
  import httpUrl from '@/libs/http';
25
  import util from '@/libs/util';
26
  export default {
27
    data() {
28
      return {
29
        expertParameters: {},
30
        dataList: [],
31
        total: 0
32
      };
33
    },
34
    created() {
35
      const platId = Cookies.get('platId');
36
      this.expertParameters = {
37
        pid: platId,
38
        pageSize: 10,
39
        pageNo: 1
40
      };
41
      this.expertList();
42
    },
43
    mounted() {
44

45
    },
46
    methods: {
47
      expertList() {
48
        this.dataList = [];
49
        this.$axios.get(httpUrl.hQuery.buttedProfessors.pq, {
50
          params: this.expertParameters
51
        }).then((res) => {
52
          if (res.success) {
53
            this.disposeData(res.data.data);
54
            this.total = res.data.total;
55
          }
56
        });
57
      },
58
      disposeData($data) {
59
        this.dataList = $data;
60
        for (let i = 0; i < $data.length; i++) {
61
          if ($data[i].title) {
62
            if ($data[i].orgName) {
63
              $data[i].offt = $data[i].title + ',' + $data[i].orgName;
64
            } else {
65
              $data[i].offt = $data[i].title;
66
            }
67
          } else {
68
            if ($data[i].office) {
69
              if ($data[i].orgName) {
70
                $data[i].offt = $data[i].office + ',' + $data[i].orgName;
71
              } else {
72
                $data[i].offt = $data[i].office;
73
              }
74
            } else {
75
              $data[i].offt = '';
76
            }
77
          }
78
          $data[i].className = util.autho($data[i].authType, $data[i].orgAuth, $data[i].authStatus);
79
          if ($data[i].hasHeadImage) {
80
            $data[i].image = util.ImageUrl('head/' + $data[i].id + '_l.jpg', true);
81
          } else {
82
            $data[i].image = util.defaultSet.expert;
83
          }
84
          this.$axios.get(httpUrl.utilUrl + '/researchArea/' + $data[i].id).then(res => {
85
            const $info = res.data;
86
            let arr = [];
87
            for (let j = 0; j < $info.length; j++) {
88
              arr.push($info[i].caption);
89
              if (j === $info.length - 1) {
90
                $data[i].reserachs = arr.join(',');
91
                this.$forceUpdate();
92
              }
93
            }
94
            if ($info.lenth === 0) {
95
              $data[i].reserachs = '';
96
            }
97
          });
98
        }
99
      },
100
      kexiuExpert(id) {
101
        window.open(util.defaultSet.link.expert + id);
102
      },
103
      handleCurrentChange(val) {
104
        this.expertParameters.pageNo = val;
105
        this.expertList();
106
      }
107
    }
108
  };
109
</script>
110

22 111
<style lang="stylus" rel="stylesheet/stylus">
23 112
ul
24 113
  .list-item
114
    cursor: pointer
25 115
    .header
26 116
      width: 80px
27 117
      height: 80px
28 118
      border-radius: 50%
29 119
    .list-info
120
      .list-tig
121
        height: 30px
30 122
      .headerTag
31 123
        margin-top: 0px
32 124
</style>

+ 15 - 3
src/components/bench-views/businessManagement/BusRight.vue

@ -2,12 +2,12 @@
2 2
  <div class="listMain">
3 3
    <div class="search">
4 4
      <div class="search-wrapper">
5
        <el-input placeholder="输入关键词"></el-input>
6
        <el-button type="primary" icon="el-icon-search">搜索</el-button>
5
        <el-input placeholder="输入关键词" v-model="inValue"></el-input>
6
        <el-button type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7 7
      </div>
8 8
    </div>
9 9
    <div class="searchList">
10
      <BusTemplate></BusTemplate>
10
      <BusTemplate :url='url' :keyValue='keyValue' :flag='1'></BusTemplate>
11 11
    </div>
12 12
  </div>
13 13
</template>
@ -15,8 +15,20 @@
15 15
<script>
16 16
  import BusTemplate from '../BusTemplate.vue';
17 17
  export default {
18
    data() {
19
      return {
20
        keyValue: '',
21
        url: '/ajax/platform/info/pqResidentOrgs',
22
        inValue: ''
23
      };
24
    },
18 25
    components: {
19 26
      BusTemplate
27
    },
28
    methods: {
29
      search() {
30
        this.keyValue = this.inValue;
31
      }
20 32
    }
21 33
  };
22 34
</script>

+ 15 - 11
src/components/bench-views/contentManagement/AlertBox.vue

@ -2,27 +2,31 @@
2 2
  <div>
3 3
    <div class="search">
4 4
       <div class="search-wrapper">
5
         <el-input placeholder="输入关键词"></el-input>
6
         <el-button type="primary" icon="el-icon-search">搜索</el-button>
5
         <el-input placeholder="输入关键词" v-model="inValue"></el-input>
6
         <el-button type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7 7
       </div>
8 8
    </div>
9
    <div class="searchList">
10
      <ul>
11
        <ArticleTemplate></ArticleTemplate>
12
      </ul>
13
      <div class="taglist">
14
        <el-pagination background layout="prev, pager, next" :total="100">
15
        </el-pagination>
16
      </div>
17
    </div>
9
    <ArticleTemplate :url='url' :keyValue='keyValue' :flag='3'></ArticleTemplate>
18 10
  </div>
19 11
</template>
20 12

21 13
<script>
22 14
  import ArticleTemplate from '../ArticleTemplate.vue';
23 15
   export default {
16
     data() {
17
      return {
18
        keyValue: '',
19
        url: '/ajax/article/pgPublishNotInPlatform',
20
        inValue: ''
21
       };
22
     },
24 23
     components: {
25 24
      ArticleTemplate
25
     },
26
     methods: {
27
       search() {
28
         this.keyValue = this.inValue;
29
       }
26 30
     }
27 31
	};
28 32
</script>

+ 10 - 12
src/components/bench-views/contentManagement/Dynamic.vue

@ -2,22 +2,14 @@
2 2
  <div class="listMain">
3 3
    <div class="search">
4 4
      <div class="search-wrapper">
5
        <el-input placeholder="输入关键词"></el-input>
6
        <el-button type="primary" icon="el-icon-search">搜索</el-button>
5
        <el-input placeholder="输入关键词" v-model="inValue"></el-input>
6
        <el-button type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7 7
        <el-button type="primary" icon="el-icon-edit" @click="dialogVisible = true">
8 8
        添加文章
9 9
        </el-button>
10 10
      </div>
11 11
    </div>
12
    <div class="searchList">
13
      <ul>
14
        <ArticleTemplate></ArticleTemplate>
15
      </ul>
16
      <div class="taglist">
17
        <el-pagination background layout="prev, pager, next" :total="100">
18
        </el-pagination>
19
      </div>
20
    </div>
12
    <ArticleTemplate :url='url' :keyValue='keyValue' :flag='2'></ArticleTemplate>
21 13
    <el-dialog title="添加企业发布的文章至【企业动态】栏目" :visible.sync="dialogVisible" width="930px">
22 14
        <AlertBox></AlertBox>
23 15
    </el-dialog>
@ -30,7 +22,10 @@
30 22
  export default {
31 23
    data() {
32 24
      return {
33
        dialogVisible: false
25
        dialogVisible: false,
26
        keyValue: '',
27
        url: '/ajax/article/pgPublishInPlatform',
28
        inValue: ''
34 29
      };
35 30
    },
36 31
    components: {
@ -38,6 +33,9 @@
38 33
      AlertBox
39 34
    },
40 35
    methods: {
36
      search() {
37
        this.keyValue = this.inValue;
38
      }
41 39
    }
42 40
 };
43 41
</script>

+ 15 - 11
src/components/bench-views/contentManagement/News.vue

@ -2,28 +2,32 @@
2 2
  <div class="listMain">
3 3
    <div class="search">
4 4
      <div class="search-wrapper">
5
        <el-input placeholder="输入关键词"></el-input>
6
        <el-button type="primary" icon="el-icon-search">搜索</el-button>
5
        <el-input placeholder="输入关键词" v-model="inValue"></el-input>
6
        <el-button type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7 7
        <el-button type="primary" icon="el-icon-edit">发布文章</el-button>
8 8
      </div>
9 9
    </div>
10
    <div class="searchList">
11
      <ul>
12
        <ArticleTemplate></ArticleTemplate>
13
      </ul>
14
      <div class="taglist">
15
        <el-pagination background layout="prev, pager, next" :total="100">
16
        </el-pagination>
17
      </div>
18
    </div>
10
    <ArticleTemplate :url='url' :keyValue='keyValue' :flag='1'></ArticleTemplate>
19 11
  </div>
20 12
</template>
21 13

22 14
<script>
23 15
  import ArticleTemplate from '../ArticleTemplate.vue';
24 16
   export default {
17
     data() {
18
      return {
19
        keyValue: '',
20
        url: '/ajax/article/pageQueryPublish',
21
        inValue: ''
22
       };
23
     },
25 24
     components: {
26 25
          ArticleTemplate
26
     },
27
     methods: {
28
       search() {
29
         this.keyValue = this.inValue;
30
       }
27 31
     }
28 32
   };
29 33
</script>

+ 1 - 9
src/components/bench-views/demandSearch/DemandComplete.vue

@ -30,15 +30,7 @@
30 30
        </el-select>
31 31
      </div>
32 32
    </div>
33
    <div class="searchList">
34
      <ul>
35
        <DemandTemplate></DemandTemplate>
36
      </ul>
37
      <div class="taglist">
38
        <el-pagination background layout="prev, pager, next" :total="100">
39
        </el-pagination>
40
      </div>
41
    </div>
33
    <DemandTemplate></DemandTemplate>
42 34
  </div>
43 35
</template>
44 36


+ 7 - 10
src/components/bench-views/demandSearch/DemandPublish.vue

@ -9,7 +9,7 @@
9 9
    <div class="select">
10 10
      <div class="week">
11 11
        <span class="weekText">周期:</span>
12
        <el-select v-model="value" placeholder="请选择">
12
        <el-select v-model="value" placeholder="请选择" change="change">
13 13
          <el-option
14 14
            v-for="item in options"
15 15
            :key="item.value"
@ -41,15 +41,7 @@
41 41
        </el-select>
42 42
      </div>
43 43
    </div>
44
    <div class="searchList">
45
      <ul>
46
        <DemandTemplate></DemandTemplate>
47
      </ul>
48
      <div class="taglist">
49
        <el-pagination background layout="prev, pager, next" :total="100">
50
        </el-pagination>
51
      </div>
52
    </div>
44
    <DemandTemplate></DemandTemplate>
53 45
  </div>
54 46
</template>
55 47

@ -110,6 +102,11 @@
110 102
     },
111 103
     components: {
112 104
         DemandTemplate
105
     },
106
     methods:{
107
       change() {
108
         alert(this.value)
109
       }
113 110
     }
114 111
   };
115 112
</script>

+ 26 - 18
src/components/bench-views/demandSearch/DemandTemplate.vue

@ -1,22 +1,30 @@
1 1
<template>
2
  <div class="list-item">
3
    <div class="list-info">
4
      <div class="list-tit list-tig">2017年“浙江杰出青年”揭晓,祝贺中科院宁波材料所王立平研究员上榜中科院宁波材料所王立平研究员上榜!</div>
5
      <ul class="list-tag">
6
        <li>北京科袖科技有限公司</li>
7
        <li>发布于</li>
8
        <li>5月8日 18:00</li>
9
        <li>浏览量 1000</li>
10
      </ul>
11
      <ul class="list-tag list-tagl">
12
        <li>北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司11</li>
13
      </ul>
14
      <ul class="list-tag list-tagy">
15
        <li>所在城市:北京市</li>
16
        <li>预计周期:1个月内</li>
17
        <li>费用预算:1万元以内</li>
18
        <li class="coRed">有效期至:2018年8月17日</li>
19
      </ul>
2
  <div class="searchList">
3
    <ul>
4
      <li class="list-item">
5
        <div class="list-info">
6
          <div class="list-tit list-tig">2017年“浙江杰出青年”揭晓,祝贺中科院宁波材料所王立平研究员上榜中科院宁波材料所王立平研究员上榜!</div>
7
          <ul class="list-tag">
8
            <li>北京科袖科技有限公司</li>
9
            <li>发布于</li>
10
            <li>5月8日 18:00</li>
11
            <li>浏览量 1000</li>
12
          </ul>
13
          <ul class="list-tag list-tagl">
14
            <li>北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司11</li>
15
          </ul>
16
          <ul class="list-tag list-tagy">
17
            <li>所在城市:北京市</li>
18
            <li>预计周期:1个月内</li>
19
            <li>费用预算:1万元以内</li>
20
            <li class="coRed">有效期至:2018年8月17日</li>
21
          </ul>
22
        </div>
23
      </li>
24
    </ul>
25
    <div class="taglist">
26
      <el-pagination background layout="prev, pager, next" :total="100">
27
      </el-pagination>
20 28
    </div>
21 29
  </div>
22 30
</template>