| | |
| | | methods: { |
| | | handleUser() { |
| | | const that = this; |
| | | // console.log(this.$refs); |
| | | this.$refs.user.validate((valid) => { |
| | | console.log(valid) |
| | | if (valid) { |
| | | that.$refs.condition.validate((flag) => { |
| | | console.log(flag); |
| | | if (flag) { |
| | | const { ill } = this; |
| | | ill.buildingLength = parseFloat(ill.buildingLength); |
| | | ill.buildingHigh = parseFloat(ill.buildingHigh); |
| | | ill.buildingWidth = parseFloat(ill.buildingWidth); |
| | | ill.buildingArea = parseFloat(ill.buildingArea); |
| | | console.log(ill); |
| | | that.$axios({ |
| | | method: 'post', |
| | | url: 'sccg/base_case/addition_illegal_building', |
| | |
| | | url: 'sccg/illegal_building/query/type_second' |
| | | }).then(res => { |
| | | this.bigKindList = res.data; |
| | | // console.log(res); |
| | | }) |
| | | }, |
| | | // 获取token |
| | |
| | | }, |
| | | handleSuccess(res, file, filelist) { |
| | | const baseUrl = 'http://140.143.152.226:8410/'; |
| | | // if(res.code === 500){ |
| | | // console.log('err'); |
| | | // return; |
| | | // } |
| | | this.ill.positive = baseUrl + res.data.url1; |
| | | |
| | | }, |
| | | handleSuccess2(res, file, filelist) { |
| | | const baseUrl = 'http://140.143.152.226:8410/'; |
| | | console.log(res); |
| | | this.ill.negative = baseUrl + res.data.url1; |
| | | }, |
| | | // 查询社区 |
| | |
| | | url: 'sccg/dict/query_type?level=1&typeCode=' + '10' |
| | | }) |
| | | .then(res => { |
| | | console.log(res); |
| | | }) |
| | | }, |
| | | // 获取街道信息 |