|
@@ -181,24 +181,24 @@ export default {
|
|
|
institution (val) {
|
|
|
this.institution = val
|
|
|
},
|
|
|
- 'task.institution' () {
|
|
|
- if (this.task.institution) {
|
|
|
- this.$refs.addFormProvince.resetProviceCity()
|
|
|
- this.task.location = {provinceCode: '', cityCode: ''}
|
|
|
- }
|
|
|
- },
|
|
|
- 'task.location' () {
|
|
|
- if (this.task.location.provinceCode || this.task.location.cityCode) {
|
|
|
- this.task.institution = ''
|
|
|
- }
|
|
|
- },
|
|
|
- 'task.resource' () {
|
|
|
- if (this.task.resource == '广场') {
|
|
|
- this.$refs.addFormProvince.resetProviceCity()
|
|
|
- this.task.institution = ''
|
|
|
- this.task.location = {provinceCode: '', cityCode: ''}
|
|
|
- }
|
|
|
- },
|
|
|
+ // 'task.institution' () {
|
|
|
+ // if (this.task.institution) {
|
|
|
+ // this.$refs.addFormProvince.resetProviceCity()
|
|
|
+ // this.task.location = {provinceCode: '', cityCode: ''}
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // 'task.location' () {
|
|
|
+ // if (this.task.location.provinceCode || this.task.location.cityCode) {
|
|
|
+ // this.task.institution = ''
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // 'task.resource' () {
|
|
|
+ // if (this.task.resource == '广场') {
|
|
|
+ // this.$refs.addFormProvince.resetProviceCity()
|
|
|
+ // this.task.institution = ''
|
|
|
+ // this.task.location = {provinceCode: '', cityCode: ''}
|
|
|
+ // }
|
|
|
+ // },
|
|
|
deep: true
|
|
|
},
|
|
|
mounted () {
|
|
@@ -327,6 +327,7 @@ export default {
|
|
|
return isDOC || isEXCEL || isPDF || isTXT || isXLS || isXLSX
|
|
|
},
|
|
|
uploadRequireDoc (param) {
|
|
|
+ this.showLoading()
|
|
|
const formData = new FormData()
|
|
|
let config = {
|
|
|
//添加请求头
|
|
@@ -334,9 +335,13 @@ export default {
|
|
|
}
|
|
|
formData.append('file', param.file)
|
|
|
Http.upload(Apis.FILE.REQUIREMENT_FILE.replace('{userId}', this.user.userVO.id), formData, config).then((res) => {
|
|
|
- console.log('上传成功')
|
|
|
+ this.hideLoading()
|
|
|
+ notify('success','上传成功')
|
|
|
this.task.requireDocUrl = res.data
|
|
|
console.log(res.data)
|
|
|
+ }).catch((error)=>{
|
|
|
+ this.hideLoading()
|
|
|
+ notify('error','上传失败:'+error.data)
|
|
|
})
|
|
|
},
|
|
|
setServiceType () {
|