odc.xiaohui
2023-02-27 3e5dec4aa07ae4be854737fdda12a714ad9eeee6
src/views/operate/disposal/casepool/pool/createUser/ill/index.vue
@@ -63,7 +63,7 @@
                        </el-form-item>
                    </div>
                    <!-- 身份证正反面照片 -->
                    <el-form-item class="optionItems" label="身份证正反面照片:" prop="positive">
                    <el-form-item class="optionItems" label="身份证正、反面照片:" prop="positive">
                        <template>
                            <div class="idcard">
                                <el-upload class="upload-demo" :show-file-list="false"
@@ -109,7 +109,7 @@
                        </el-form-item>
                        <el-form-item class="optionItems" label-width='0px' prop="buildingWidth">
                            <el-input placeholder="单位米" v-model="ill.buildingWidth"></el-input>
                        </el-form-item>
                        </el-form-item>
                        <el-form-item class="optionItems" label-width='0px' prop="buildingHigh">
                            <el-input placeholder="单位米" v-model="ill.buildingHigh"></el-input>
                        </el-form-item>
@@ -133,7 +133,8 @@
    </div>
</template>
<script>
import MyMap from '@/components/map'
// import MyMap from "@/components/map";
import MyMap from "@/components/map/leafletMap.vue";
import {parseTime} from '@/utils/index'
import { validateName, validatePhone, validateCardId, validateNum } from '@/utils/validate'
export default {
@@ -359,7 +360,7 @@
    created() {
        const { getBigKind, getCommityList,getStreetList } = this;
        getStreetList(0);
        // this.ill.category = this.mytype + 1;
        getBigKind();
        getCommityList();
@@ -367,19 +368,15 @@
    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',
@@ -419,7 +416,6 @@
                url: 'sccg/illegal_building/query/type_second'
            }).then(res => {
                this.bigKindList = res.data;
                // console.log(res);
            })
        },
        // 获取token
@@ -432,16 +428,11 @@
        },
        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;
        },
        // 查询社区
@@ -451,7 +442,6 @@
                url: 'sccg/dict/query_type?level=1&typeCode=' + '10'
            })
                .then(res => {
                    console.log(res);
                })
        },
        // 获取街道信息
@@ -470,15 +460,12 @@
        },
        // 街道更改
        handleStreet(id) {
            console.log(id);
            this.ill.communityId = '';
            // this.communityList = getcommunityList(1,'11')
            this.$axios({
                method: 'get',
                url: `sccg/sccg_region/getChildren/${id}`
            })
                .then(res => {
                    console.log(res.data)
                    this.communityList = res.data;
                })
        },
@@ -534,23 +521,23 @@
            }
        }
        .el-form {
                &::v-deep .el-form-item__label {
                    color: #4b9bb7;
                }
                // &::v-deep .el-form-item__label {
                //     color: #4b9bb7;
                // }
                &::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;
                // }
            }
        .input-form {
            .upload-demo {
                position: relative;
                margin-right: 20px;
@@ -590,4 +577,4 @@
        flex: 2;
    }
}
</style>
</style>