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

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

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