Browse Source

修正内容发布

lipengtao 6 years ago
parent
commit
9d49cccd2a
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/contentPub/publish.vue

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

146
          if (response.success && response.data) {
146
          if (response.success && response.data) {
147
            const info = response.data
147
            const info = response.data
148
            this.ruleForm2 = {
148
            this.ruleForm2 = {
149
              catalog: info.catalog,
149
              catalog: info.catalog || '',
150
              cnt: info.cnt,
150
              cnt: info.cnt,
151
              title: info.title,
151
              title: info.title,
152
              source: info.source,
152
              source: info.source,
228
        this.ruleForm2.professors = [value]
228
        this.ruleForm2.professors = [value]
229
      },
229
      },
230
      change(value) {
230
      change(value) {
231
        if (!value) {
232
          this.$refs.ruleForm2.validateField('title')
233
          return
234
        }
231
        if (this.ruleForm2.title) {
235
        if (this.ruleForm2.title) {
232
          this.$refs.ruleForm2.validateField('title')
236
          this.$refs.ruleForm2.validateField('title')
233
        }
237
        }
321
        }
325
        }
322
      },
326
      },
323
      submitForm(formName) {
327
      submitForm(formName) {
328
        this.change()
324
        this.ruleForm2.cnt = this.$refs.ueBox.getUEContent()
329
        this.ruleForm2.cnt = this.$refs.ueBox.getUEContent()
325
        this.$refs[formName].validate((valid) => {
330
        this.$refs[formName].validate((valid) => {
326
          if (valid) {
331
          if (valid) {