| | |
| | | action="/sccg/file/medias" :headers="getToken()" multiple |
| | | :limit="50" :on-success="handleSuccess"> |
| | | <img v-if="ill.positive === ''" |
| | | src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__15f765432d579a14b8f6591c100d30e3.svg" |
| | | src="../../../../../../../assets/icons/svg/100d30e3.svg" |
| | | alt=""> |
| | | <span class="text" v-if="ill.positive === ''">身份证正面</span> |
| | | <img :src="ill.positive" alt="" class="img" v-else> |
| | |
| | | action="/sccg/file/medias" :headers="getToken()" multiple |
| | | :limit="50" :on-success="handleSuccess2"> |
| | | <img v-if="ill.negative === '' " |
| | | src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__15f765432d579a14b8f6591c100d30e3.svg" |
| | | src="../../../../../../../assets/icons/svg/100d30e3.svg" |
| | | alt=""> |
| | | <span class="text" v-if="ill.negative === ''">身份证反面</span> |
| | | <img :src="ill.negative" alt="" class="img" v-else /> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import MyMap from '@/components/map' |
| | | // import MyMap from "@/components/map"; |
| | | import MyMap from "@/components/map/leafletMap.vue"; |
| | | export default { |
| | | components: { |
| | | MyMap |
| | |
| | | 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 |
| | | getToken() { |
| | | console.log('666666666666') |
| | | const token = sessionStorage.getItem('token'); |
| | | const tokenHead = sessionStorage.getItem('tokenHead'); |
| | | this.handleSuccess() |
| | | if (token && tokenHead) { |
| | | return { Authorization: tokenHead + token }; |
| | | } |
| | | |
| | | }, |
| | | handleSuccess(res, file, filelist) { |
| | | const baseUrl = 'http://140.143.152.226:8410/'; |
| | | const baseUrl = ''; |
| | | this.ill.positive = baseUrl + res.data.url1; |
| | | |
| | | }, |
| | | handleSuccess2(res, file, filelist) { |
| | | const baseUrl = 'http://140.143.152.226:8410/'; |
| | | const baseUrl = ''; |
| | | this.ill.negative = baseUrl + res.data.url1; |
| | | } |
| | | }, |
| | |
| | | |
| | | .input-form { |
| | | |
| | | &::v-deep .el-input__inner { |
| | | background-color: #09152f; |
| | | border: 1px solid #17324c; |
| | | } |
| | | // &::v-deep .el-input__inner { |
| | | // background-color: #09152f; |
| | | // border: 1px solid #17324c; |
| | | // } |
| | | |
| | | &::v-deep .el-textarea__inner { |
| | | background-color: #09152f; |
| | | border: 1px solid #17324c; |
| | | } |
| | | // &::v-deep .el-textarea__inner { |
| | | // background-color: #09152f; |
| | | // border: 1px solid #17324c; |
| | | // } |
| | | |
| | | .upload-demo { |
| | | position: relative; |
| | |
| | | flex: 1; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |