Browse Source

修正发布相关企业

lipengtao 6 years ago
parent
commit
d1cc73c9f1
2 changed files with 3 additions and 5 deletions
  1. 2 4
      src/components/searchBar/index.vue
  2. 1 1
      src/views/contentPub/publish.vue

+ 2 - 4
src/components/searchBar/index.vue

@ -34,13 +34,11 @@ export default {
34 34
        if (that.relevant.prop === 'comps') {
35 35
          request.get(that.relevant.url, {
36 36
            name: query,
37
            actived: 1,
38
            pageSize: 10,
39
            pageNo: 1
37
            size: 10
40 38
          }, function(res) {
41 39
            that.loading = false
42 40
            if (res.success && res.data) {
43
              const obj = res.data.data
41
              const obj = res.data
44 42
              that.optionsList = obj.map(item => {
45 43
                return { value: item.id, label: item.name }
46 44
              })

+ 1 - 1
src/views/contentPub/publish.vue

@ -110,7 +110,7 @@
110 110
          prop: 'orgs'
111 111
        },
112 112
        relevantCompanies: {
113
          url: '/ajax/company/pq',
113
          url: '/ajax/company/name',
114 114
          placeholder: '请选择关联企业',
115 115
          label: '相关企业',
116 116
          prop: 'comps'