odc.xiaohui
2023-01-11 d942877495ceea1575e64fb6d4e2972f6da10cac
src/views/operate/disposal/casepool/escalation/updateUser/index.vue
@@ -1,234 +1,174 @@
<template>
    <div class="view">
        <div class="view-data">
            <div class="data-item">
                <div class="data-item__left">
                    <label class="data-title">
                        问题类型:
                    </label>
                    <span class="data-detail">违规</span>
                </div>
                <div class="data-item__right">
                    <label class="data-title">
                        大类名称:
                    </label>
                    <span class="data-detail">xxx</span>
                </div>
    <div class="updateUser">
        <main>
            <div class="mainContent">
                <el-form ref="user" label-width="140px" autoComplete="on" :model="things" label-position="right">
                    <!-- 违规事项编号 -->
                    <el-form-item class="optionItem" label="违规事项编号:" prop="number">
                        <el-input v-model="things.number" placeholder="请填写违规事项编号" :disabled="!updateFlag"></el-input>
                    </el-form-item>
                    <!-- 所属类型 -->
                    <el-form-item class="optionItems" label="所属类型:" prop="typeThird">
                        <el-select v-model="things.typeThird" placeholder="请选择所属类型" disabled>
                            <el-option v-for="item in typeThirdList" :key="item.id" :label="item.name"
                                :value="item.id">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <!-- 所属大类 -->
                    <el-form-item class="optionItem" label="所属大类:" prop="typeSecond">
                        <el-select v-model="things.typeSecond" placeholder="请选择所属类型" disabled>
                            <el-option v-for="item in typeSecondList" :key="item.id" :label="item.name"
                                :value="item.id">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <!-- 所属小类 -->
                    <el-form-item class="optionItem" label="所属小类:" prop="typeFirst">
                        <el-select v-model="things.typeFirst" placeholder="请选择所属类型" disabled>
                            <el-option v-for="item in typeFirstList" :key="item.id" :label="item.name"
                                :value="item.id">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <!-- 案由 -->
                    <el-form-item class="optionItem" label="案由:" prop="type">
                        <el-input type="textarea" autosize v-model="things.type" placeholder="请输入案由描述内容"
                            :disabled="!updateFlag" ></el-input>
                    </el-form-item>
                    <!-- <el-form-item v-if="updateFlag">
                        <div class="optionBtn">
                            <el-button type="primary" class="btn submit" @click.native.prevent="handleUser">确认
                            </el-button>
                        </div>
                    </el-form-item> -->
                </el-form>
            </div>
            <div class="data-item">
                <div class="data-item__left">
                    <label class="data-title">
                        小类名称:
                    </label>
                    <span class="data-detail">xxx</span>
                </div>
                <div class="data-item__right">
                    <label class="data-title">
                        事件等级:
                    </label>
                    <span class="data-detail">xxx</span>
                </div>
            </div>
            <div class="data-item">
                <div class="data-item__left">
                    <label class="data-title">
                        案由:
                    </label>
                    <span class="data-detail">xxx</span>
                </div>
            </div>
            <div class="data-item">
                <div class="data-item__left">
                    <label class="data-title">
                        所属区县:
                    </label>
                    <span class="data-detail">xxx</span>
                </div>
                <div class="data-item__right">
                    <label class="data-title">
                        所属社区:
                    </label>
                    <span class="data-detail">xxx</span>
                </div>
            </div>
            <div class="data-item">
                <div class="data-item__left">
                    <label class="data-title">
                        所属街道:
                    </label>
                    <span class="data-detail">xxx</span>
                </div>
            </div>
            <div class="data-item">
                <div class="data-item__left">
                    <label class="data-title">
                        事发地点:
                    </label>
                    <span class="data-detail">xxx</span>
                </div>
            </div>
            <div class="data-item">
                <div class="data-item__left">
                    <label class="data-title">
                        关联商铺名称:
                    </label>
                    <span class="data-detail">xxx</span>
                </div>
            </div>
            <div class="data-item">
                <div class="data-item__left">
                    <label class="data-title">
                        问题描述:
                    </label>
                    <span class="data-detail">xxx</span>
                </div>
            </div>
            <div class="data-user">
                <div class="data-item">
                    <div class="data-item__left">
                        <label class="data-title">
                            反映人:
                        </label>
                        <span class="data-detail">张二</span>
                    </div>
                    <div class="data-item__right">
                        <label class="data-title">
                            联系方式:
                        </label>
                        <span class="data-detail">12345678901</span>
                    </div>
                </div>
                <div class="data-item">
                    <div class="data-item__left">
                        <label class="data-title">
                            身份证号:
                        </label>
                        <span class="data-detail">123456789987654321</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="view-process">
            <div class="process-header">
                <div class="process-title-item" v-for="item in titleList" :key="item.title"
                    @click="changeComponent(item.index)">
                    <div :class="['process-title',activeIndex===item.index ? 'title-active' : '' ]">{{item.title}}</div>
                    <div :class="['under-line',activeIndex===item.index ? 'line-active' : '' ]"></div>
                </div>
            </div>
            <div class="show-item">
                <div class="show-wrap">
                    <MyProcess v-if="activeIndex === 1"></MyProcess>
                    <MyFilePicture v-else-if="activeIndex === 2"></MyFilePicture>
                    <MySovleProblem v-else-if="activeIndex === 3"></MySovleProblem>
                    <MyScene v-else></MyScene>
                </div>
            </div>
        </div>
        </main>
    </div>
</template>
<script>
import MyProcess from './process'
import MyFilePicture from './filePictrue'
import MySovleProblem from './solveProblem'
import MyScene from './scene'
export default {
    components: {
        MyProcess, MyFilePicture, MySovleProblem, MyScene
    },
    data() {
        return {
            myInfo: {
            things: {
                number: 0,
                type: '',
                typeFirst: '',
                typeSecond: '',
                typeThird: '',
            },
            activeIndex: 1,
            titleList: [
                {
                    title: '办理经过',
                    index: 1,
                },
                {
                    title: '案卷图片',
                    index: 2,
                },
                {
                    title: '问题处理',
                    index: 3,
                },
                {
                    title: '现场情况',
                    index: 4,
                },
            ]
            roleList: [],
            typeThirdList:[],
            typeSecondList:[],
            typeFirstList:[],
        }
    },
    created() {
        this.things = JSON.parse(JSON.stringify(this.userInfo));
        // 获取所属类型列表
        this.getTypeThird();
        this.getTypeSecond();
        this.getTypeFirst();
    },
    methods: {
        changeComponent(index) {
            this.activeIndex = index;
        // 查询所属类型
        getTypeThird() {
            this.$axios({
                method: 'get',
                url: "sccg/violations/query/type_first",
            })
                .then(res => {
                    this.typeThirdList = res.data;
                })
        },
        // 查询所属大类
        getTypeSecond(){
            this.$axios({
                method: 'get',
                url: "sccg/violations/query/type_second",
            })
                .then(res => {
                    this.typeSecondList = res.data;
                })
        },
        // 查询所属小类
        getTypeFirst(){
            this.$axios({
                method: 'get',
                url: "sccg/violations/query/type_third",
            })
                .then(res => {
                    this.typeFirstList = res.data;
                })
        }
    },
    props: ['info']
    props: ['userInfo', 'updateFlag', 'getUserList', 'changeDialog']
}
</script>
<style lang="scss" scoped>
.view {
    display: flex;
    padding: 20px;
.updateUser {
    border-radius: 1px;
    // background-color: #09152f;
    .view-data {
        color: #4b9bb7;
        flex: 4;
        padding: 0 30px 0 20px;
    main {
        // border: 1px solid #fff;
        text-align: left;
        padding: 0 55px;
        // background-color: #09152f;
        padding-bottom: 50px;
        .data-item {
        .mainContent {
            display: flex;
            justify-content: space-between;
            line-height: 40px;
        }
            justify-content: center;
            padding-top: 50px;
        border: 1px solid #17324c;
    }
            .el-form-item__content {
                width: 400px;
    .view-process {
        flex: 6;
        margin-left: 20px;
        .process-header {
            display: flex;
            line-height: 40px;
            .process-title-item {
                width: 120px;
                text-align: center;
                .under-line {
                    height: 2px;
                .el-select {
                    width: 100%;
                }
            }
                .title-active {
                    color: #4b9bb7;
            .optionHandleSp {
                display: flex;
                .areaNumber,
                .moreNumber {
                    flex: 1;
                }
                .line-active {
                    background-color: #4b9bb7;
                    border-radius: 20px;
                .telNumber {
                    flex: 2;
                }
            }
        }
        .show-item {
            overflow: hidden;
            height: 600px;
            position: relative;
            .show-wrap{
                overflow: scroll;
                height: 600px;
            .optionBtn {
                display: flex;
                margin-top: 20px;
                .btn {
                    padding: 12px 50px;
                }
            }
        }
    }
    // &::v-deep .el-textarea__inner {
    //     background-color: #09152f;
    //     border: 1px solid #17324c;
    // }
    // ::v-deep .el-form-item__label {
    //     color: #4b9bb7;
    // }
    // ::v-deep .el-input__inner {
    //     background-color: #09152f;
    //     border: 1px solid #17324c;
    // }
}
</style>