lyn7568 6 gadi atpakaļ
vecāks
revīzija
886ddacbb4
1 mainītis faili ar 15 papildinājumiem un 4 dzēšanām
  1. 15 4
      src/pages/center/views/myDemands/DemandIssue.vue

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

@ -136,14 +136,13 @@
136 136
            { max: 1000, message: '不得超过1000个字', trigger: 'blur' }
137 137
          ],
138 138
          city: [
139
            { required: true, message: '请选择所在城市', trigger: 'blur' }
139
            { required: true, message: '请选择所在城市', trigger: ['blur', 'change'] }
140 140
          ],
141 141
          invalidDay: [
142 142
            { required: true, validator: delayValidate, trigger: 'blur' }
143 143
          ],
144 144
          linkOrg: [
145
            { required: true, message: '请填写您所在的企业名称', trigger: 'blur' },
146
            { max: 50, message: '不得超过50个字', trigger: 'blur' }
145
            { required: true, message: '请填写您所在的企业名称', trigger: 'blur' }
147 146
          ],
148 147
          linkPhone: [
149 148
            { required: true, message: '请填写您的联系电话', trigger: 'blur' }
@ -182,7 +181,19 @@
182 181
          this.demandId = id
183 182
          this.getDemandInfo()
184 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 197
          const curphone = localStorage.getItem('curphone')
187 198
          const curcomp = localStorage.getItem('curcomp')
188 199
          this.ruleFormDem.linkPhone = (curphone && curphone !== 'undefined') ? curphone : ''