lyn7568 лет назад: 6
Родитель
Сommit
886ddacbb4
1 измененных файлов с 15 добавлено и 4 удалено
  1. 15 4
      src/pages/center/views/myDemands/DemandIssue.vue

+ 15 - 4
src/pages/center/views/myDemands/DemandIssue.vue

136
            { max: 1000, message: '不得超过1000个字', trigger: 'blur' }
136
            { max: 1000, message: '不得超过1000个字', trigger: 'blur' }
137
          ],
137
          ],
138
          city: [
138
          city: [
139
            { required: true, message: '请选择所在城市', trigger: 'blur' }
139
            { required: true, message: '请选择所在城市', trigger: ['blur', 'change'] }
140
          ],
140
          ],
141
          invalidDay: [
141
          invalidDay: [
142
            { required: true, validator: delayValidate, trigger: 'blur' }
142
            { required: true, validator: delayValidate, trigger: 'blur' }
143
          ],
143
          ],
144
          linkOrg: [
144
          linkOrg: [
145
            { required: true, message: '请填写您所在的企业名称', trigger: 'blur' },
146
            { max: 50, message: '不得超过50个字', trigger: 'blur' }
145
            { required: true, message: '请填写您所在的企业名称', trigger: 'blur' }
147
          ],
146
          ],
148
          linkPhone: [
147
          linkPhone: [
149
            { required: true, message: '请填写您的联系电话', trigger: 'blur' }
148
            { required: true, message: '请填写您的联系电话', trigger: 'blur' }
182
          this.demandId = id
181
          this.demandId = id
183
          this.getDemandInfo()
182
          this.getDemandInfo()
184
        } else {
183
        } else {
185
          this.ruleFormDem = {}
184
          this.ruleFormDem = {
185
            title: '',
186
            descp: '',
187
            city: '',
188
            invalidDay: '',
189
            linkPhone: '',
190
            linkOrg: '',
191
            cost: '',
192
            duration: '',
193
            cityStr: '',
194
            costStr: '',
195
            durationStr: ''
196
          }
186
          const curphone = localStorage.getItem('curphone')
197
          const curphone = localStorage.getItem('curphone')
187
          const curcomp = localStorage.getItem('curcomp')
198
          const curcomp = localStorage.getItem('curcomp')
188
          this.ruleFormDem.linkPhone = (curphone && curphone !== 'undefined') ? curphone : ''
199
          this.ruleFormDem.linkPhone = (curphone && curphone !== 'undefined') ? curphone : ''