zhanghua
2024-01-21 e1aa0ecffbabd618c71e4ad94370fb8dffe6ee1c
src/views/operate/disposal/casepool/escalation/createUser/ill/index.vue
@@ -55,7 +55,7 @@
                                    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>
@@ -64,7 +64,7 @@
                                    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 />
@@ -114,7 +114,8 @@
    </div>
</template>
<script>
import MyMap from '@/components/map'
// import MyMap from "@/components/map";
import MyMap from "@/components/map/leafletMap.vue";
export default {
    components: {
        MyMap
@@ -338,19 +339,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',
@@ -389,25 +386,27 @@
                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;
        }
    },
@@ -439,15 +438,15 @@
        .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;
@@ -488,4 +487,4 @@
        flex: 1;
    }
}
</style>
</style>