| | |
| | | <template> |
| | | <div class="idcard"> |
| | | <el-upload class="upload-demo" :show-file-list="false" |
| | | action="http://42.193.1.25:8082/sccg/file/medias" :headers="getToken()" multiple |
| | | 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" |
| | |
| | | <img :src="ill.positive" alt="" class="img" v-else> |
| | | </el-upload> |
| | | <el-upload class="upload-demo" :show-file-list="false" |
| | | action="http://42.193.1.25:8082/sccg/file/medias" :headers="getToken()" multiple |
| | | 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" |
| | |
| | | </template> |
| | | <script> |
| | | import MyMap from '@/components/map' |
| | | import {parseTime} from '@/utils/index' |
| | | import { validateName, validatePhone, validateCardId, validateNum } from '@/utils/validate' |
| | | export default { |
| | | components: { |
| | |
| | | that.$axios({ |
| | | method: 'post', |
| | | url: 'sccg/base_case/addition_illegal_building', |
| | | data: ill, |
| | | data: { |
| | | ...ill, |
| | | alarmTime:parseTime(ill.alarmTime) |
| | | }, |
| | | }) |
| | | .then(res => { |
| | | if (res.code === 200) { |
| | |
| | | }, |
| | | handleSuccess(res, file, filelist) { |
| | | const baseUrl = 'http://140.143.152.226:8410/'; |
| | | console.log(res); |
| | | // if(res.code === 500){ |
| | | // console.log('err'); |
| | | // return; |
| | | // } |
| | | this.ill.positive = baseUrl + res.data.url1; |
| | | |
| | | }, |
| | |
| | | |
| | | .upload-demo { |
| | | position: relative; |
| | | |
| | | margin-right: 20px; |
| | | .text { |
| | | position: absolute; |
| | | top: 22%; |