lyn7568 6 anni fa
parent
commit
c61b2a72c5

+ 1 - 1
src/utils/validator.js

38
// 邮编,限制只能输入数字,20个字
38
// 邮编,限制只能输入数字,20个字
39
export function checkInterNum(rule, value, callback) {
39
export function checkInterNum(rule, value, callback) {
40
  const reg = /^[0-9]*$/
40
  const reg = /^[0-9]*$/
41
  if (!value && !reg.test(value)) {
41
  if (value && !reg.test(value)) {
42
    return callback(new Error('请输入正确邮编'))
42
    return callback(new Error('请输入正确邮编'))
43
  } else {
43
  } else {
44
    callback()
44
    callback()

+ 0 - 9
src/views/companyCen/noactive/compInfo.vue

2
  <div class="app-container">
2
  <div class="app-container">
3
    <div class="box-container">
3
    <div class="box-container">
4
      <div class="contain-title">企业信息</div>
4
      <div class="contain-title">企业信息</div>
5
      <div class="contian-operate" v-if="companyId">
6
        <el-button type="primary" @click="queryCompanyProduct">企业产品</el-button>
7
      </div>
8
    </div>
5
    </div>
9
    <div class="content-container">
6
    <div class="content-container">
10
      <div class="main-info">
7
      <div class="main-info">
382
          }
379
          }
383
        })
380
        })
384
      },
381
      },
385
      queryCompanyProduct() {
386
        this.$router.replace({
387
          name: 'compProduct',
388
          query: { cid: this.companyId }
389
        })
390
      },
391
      turnIndustryTags(msg) {
382
      turnIndustryTags(msg) {
392
        this.formObj.industry = msg
383
        this.formObj.industry = msg
393
      },
384
      },

+ 3 - 3
src/views/companyCen/noactive/compProduct.vue

168
      })
168
      })
169
    },
169
    },
170
    addProductInfo() {
170
    addProductInfo() {
171
      this.$router.replace({
171
      this.$router.push({
172
        name: 'productInfo',
172
        name: 'productInfo',
173
        query: { cid: this.companyId }
173
        query: { cid: this.companyId }
174
      })
174
      })
175
    },
175
    },
176
    handelEdit(row) {
176
    handelEdit(row) {
177
      this.$router.replace({
177
      this.$router.push({
178
        name: 'productInfo',
178
        name: 'productInfo',
179
        query: { id: row.id, cid: row.companyId }
179
        query: { id: row.id, cid: row.companyId }
180
      })
180
      })
227
      }
227
      }
228
    },
228
    },
229
    compChanged(val) {
229
    compChanged(val) {
230
      this.$router.replace({
230
      this.$router.push({
231
        name: 'compProduct',
231
        name: 'compProduct',
232
        query: { cid: val }
232
        query: { cid: val }
233
      })
233
      })

+ 3 - 3
src/views/companyCen/noactive/noactiveList.vue

217
      })
217
      })
218
    },
218
    },
219
    queryCompanyInfo() {
219
    queryCompanyInfo() {
220
      this.$router.replace({ name: 'compInfo' })
220
      this.$router.push({ name: 'compInfo' })
221
    },
221
    },
222
    handelEdit(id) {
222
    handelEdit(id) {
223
      this.$router.replace({
223
      this.$router.push({
224
        name: 'compInfo',
224
        name: 'compInfo',
225
        query: { id: id }
225
        query: { id: id }
226
      })
226
      })
227
    },
227
    },
228
    handelProduct(id) {
228
    handelProduct(id) {
229
      this.$router.replace({
229
      this.$router.push({
230
        name: 'compProduct',
230
        name: 'compProduct',
231
        query: { cid: id }
231
        query: { cid: id }
232
      })
232
      })

+ 1 - 1
src/views/demandCen/preview.vue

353
                    type: 'success'
353
                    type: 'success'
354
                  })
354
                  })
355
                  setTimeout(function() {
355
                  setTimeout(function() {
356
                    that.$router.replace({ name: 'publishedList' })
356
                    that.$router.push({ name: 'publishedList' })
357
                  }, 0)
357
                  }, 0)
358
                }
358
                }
359
              })
359
              })

+ 1 - 1
src/views/layout/components/Sidebar/SidebarItem.vue

23
            <!-- </router-link>
23
            <!-- </router-link>
24
          </div> -->
24
          </div> -->
25
25
26
          <router-link v-else :to="resolvePath(child.path)" :key="child.name" replace>
26
          <router-link v-else :to="resolvePath(child.path)" :key="child.name">
27
            <el-menu-item :index="resolvePath(child.path)">
27
            <el-menu-item :index="resolvePath(child.path)">
28
              <svg-icon v-if="child.meta&&child.meta.icon" :icon-class="child.meta.icon"></svg-icon>
28
              <svg-icon v-if="child.meta&&child.meta.icon" :icon-class="child.meta.icon"></svg-icon>
29
              <span v-if="child.meta&&child.meta.title" slot="title">{{child.meta.title}}</span>
29
              <span v-if="child.meta&&child.meta.title" slot="title">{{child.meta.title}}</span>

+ 1 - 1
src/views/layout/components/TopNavbar.vue

24
  },
24
  },
25
  methods: {
25
  methods: {
26
    toHome() {
26
    toHome() {
27
      this.$router.replace({ path: '/' })
27
      this.$router.push({ path: '/' })
28
    },
28
    },
29
    logout() {
29
    logout() {
30
      MessageBox.confirm('您确认要退出登录吗?', '提示', {
30
      MessageBox.confirm('您确认要退出登录吗?', '提示', {