“dzb”
2022-09-29 dc04c05b22a5323925218092a0687555a2a5c9c1
上报管理界面,案件池的违规、违建登记页面
12个文件已修改
6个文件已添加
2744 ■■■■ 已修改文件
src/App.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/layout/components/Menu/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/baseSetting/threepack/createUser/index.vue 177 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/baseSetting/threepack/index.vue 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/escalation/createUser/index.vue 195 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/escalation/index.vue 615 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/escalation/updateUser/filePictrue/index.vue 93 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/escalation/updateUser/index.vue 234 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/escalation/updateUser/process/index.vue 144 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/escalation/updateUser/scene/index.vue 182 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/escalation/updateUser/solveProblem/index.vue 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/pool/createUser/ill/index.vue 304 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/pool/createUser/index.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/pool/createUser/vio/index.vue 380 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/pool/index.vue 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/systemSetting/baseSetting/role/index.vue 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/systemSetting/baseSetting/role/updateUser/index.vue 204 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/App.vue
@@ -69,4 +69,28 @@
.el-tree-node:focus>.el-tree-node__content{
  background-color: #09152f !important;
}
/*定义滚动条高宽及背景
 高宽分别对应横竖滚动条的尺寸*/
 ::-webkit-scrollbar
{
    width:4px;
    height:4px;
    background-color:#070f22;
}
/*定义滚动条轨道
 内阴影+圆角*/
::-webkit-scrollbar-track
{
    -webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3);
    border-radius:10px;
    background-color:#070f22;
}
/*定义滑块
 内阴影+圆角*/
::-webkit-scrollbar-thumb
{
    border-radius:10px;
    -webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);
    background-color:#555;
}
</style>
src/views/layout/components/Menu/index.vue
@@ -84,10 +84,10 @@
                <span class="secondSpan">事项处理管理</span>
              </template>
              <el-menu-item index="/home/operate/casepool/pool">案件池</el-menu-item>
              <!-- <el-menu-item index="/home/operate/casepool/escalation">上报管理</el-menu-item>
              <el-menu-item index="/home/operate/casepool/dispatch">调度管理</el-menu-item> -->
              <!-- <el-menu-item index="/home/operate/casepool">再学习管理</el-menu-item> -->
              <!-- <el-menu-item index="/home/operate/casepool/notDeal">暂不处理</el-menu-item> -->
              <el-menu-item index="/home/operate/casepool/escalation">上报管理</el-menu-item>
              <el-menu-item index="/home/operate/casepool/dispatch">调度管理</el-menu-item>
              <el-menu-item index="/home/operate/casepool">再学习管理</el-menu-item>
              <el-menu-item index="/home/operate/casepool/notDeal">暂不处理</el-menu-item>
            </el-submenu>
            <el-menu-item index="/home/operate/myWait">我的待办</el-menu-item>
            <el-submenu index="/home/operate/rectification" class="secondMenu">
src/views/login/index.vue
@@ -125,6 +125,7 @@
        })
        .then(function (response) {
          if (response.code === 200) {
            // 设置toke时间
            // 保存token
            console.log(response);
            sessionStorage.setItem('token',response.data.token);
@@ -135,7 +136,10 @@
          }else{
            that.$refs.loginForm.validate((valid)=>{
              if(valid){
                that.$message.error(response.data.message);
                that.$message({
                  type:'warning',
                  message:response.message
                })
              }
            })
          }
src/views/operate/baseSetting/threepack/createUser/index.vue
@@ -2,41 +2,42 @@
    <div class="createUser">
        <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="请填写违规事项编号"></el-input>
                <el-form ref="user" label-width="140px" autoComplete="on" :rules="storeRules" :model="storeInfo"
                    label-position="right">
                    <!-- 门店主人 -->
                    <el-form-item class="optionItem" label="门店主人:" prop="owner">
                        <el-input v-model="storeInfo.owner" placeholder="请填写门店主人"></el-input>
                    </el-form-item>
                    <!-- 所属类型 -->
                    <el-form-item class="optionItems" label="所属类型:" prop="typeThird">
                        <el-select v-model="things.typeThird" placeholder="请选择所属类型" >
                            <el-option v-for="item in typeThirdList" :key="item.id" :label="item.name"
                                :value="item.id">
                            </el-option>
                        </el-select>
                    <!-- 身份证信息 -->
                    <el-form-item class="optionItems" label="身份证信息:" prop="idcardinfo">
                        <el-input placeholder="请填写身份证信息" v-model="storeInfo.idcardinfo"></el-input>
                    </el-form-item>
                    <!-- 所属大类 -->
                    <el-form-item class="optionItem" label="所属大类:" prop="typeSecond">
                        <el-select v-model="things.typeSecond" placeholder="请选择所属类型" >
                            <el-option v-for="item in typeSecondList" :key="item.id" :label="item.name"
                                :value="item.id">
                            </el-option>
                        </el-select>
                    <!-- 联系方式 -->
                    <el-form-item class="optionItem" label="联系方式:" prop="contact">
                        <el-input placeholder="请填写门店联系方式" v-model="storeInfo.contact"></el-input>
                    </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 class="optionItem" label="门店地址:" prop="storeaddr">
                        <el-input placeholder="请填写门店地址" v-model="storeInfo.storeaddr"></el-input>
                    </el-form-item>
                    <!-- 案由 -->
                    <el-form-item class="optionItem" label="案由:" prop="type">
                        <el-input type="textarea" autosize v-model="things.type" placeholder="请输入案由描述内容"
                            :disabled="!updateFlag" disabled></el-input>
                    <!-- 门店照片 -->
                    <el-form-item class="optionItem" label="门店照片:" prop="storephoto">
                        <el-upload class="upload-demo" :show-file-list="false"
                            action="http://42.193.1.25:8082/sccg/file/medias" :headers="getToken()" multiple
                            :limit="50">
                            <el-button type="primary" v-if="storeInfo.storephoto === '' ">上传门店图片</el-button>
                            <img :src="storeInfo.storephoto" alt="" v-else>
                        </el-upload>
                    </el-form-item>
                    <el-form-item v-if="updateFlag">
                    <!-- 门店名称 -->
                    <el-form-item class="optionItem" label="门店名称:" prop="storename">
                        <el-input type="textarea" v-model="storeInfo.storename" placeholder="请输入门店名称描述内容"></el-input>
                    </el-form-item>
                    <!-- 门店积分 -->
                    <el-form-item class="optionItem" label="门店积分:" prop="storescore">
                        <el-input v-model="storeInfo.storescore" placeholder="请输入门店名称描述内容"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <div class="optionBtn">
                            <el-button type="primary" class="btn submit" @click.native.prevent="handleUser">确认
                            </el-button>
@@ -51,78 +52,68 @@
<script>
export default {
    data() {
        // 用户姓名验证规则
        const checkName = (rule,value,callback)=>{
            console.log(rule,value,callback);
            if(!value){
            }
        }
        return {
            things: {
                number: 0,
                type: '',
                typeFirst: '',
                typeSecond: '',
                typeThird: '',
            storeInfo: {
                contact: '',
                idcardinfo: '',
                owner: '',
                storeaddr: '',
                storename: '',
                storephoto: '',
                storescore: '',
            },
            roleList: [],
            typeThirdList:[],
            typeSecondList:[],
            typeFirstList:[],
            storeRules: {
                owner: [
                    { required: true, trigger: 'blur', validator: checkName },
                ]
            }
        }
    },
    created() {
        console.log(this.userInfo);
        this.things = JSON.parse(JSON.stringify(this.userInfo));
        // 获取所属类型列表
        this.getTypeThird();
        this.getTypeSecond();
        this.getTypeFirst();
    },
    methods: {
        // handleUser() {
        //     this.$refs.user.validate((valid) => {
        //         if (valid) {
        //             const { role } = this;
        //             console.log(role);
        //             this.$axios.post('/sccg/role/update/' + role.id, {
        //                 id: role.id,
        //                 status: role.status,
        //                 description: role.description,
        //                 name: role.name,
        //                 sort: 0
        //             }).then(res => {
        //                 this.$emit('changeDialog', { dialogUpdate: false });
        //                 this.getUserList();
        //             })
        //         } else {
        //             return false;
        //         }
        //     })
        // },
        // 查询所属类型
        getTypeThird() {
            this.$axios({
                method: 'get',
                url: "sccg/violations/query/type_first",
        handleUser() {
            this.$refs.user.validate((valid) => {
                if (valid) {
                    const { storeInfo } = this;
                    console.log(storeInfo);
                    // this.$axios({
                    //     method: 'post',
                    //     url: 'sccg/store/storeinfo/add',
                    //     data: storeInfo
                    // }).then(res => {
                    //     console.log(res);
                    // })
                    // this.$axios.post('/sccg/role/update/', {
                    //     id: role.id,
                    //     status: role.status,
                    //     description: role.description,
                    //     name: role.name,
                    //     sort: 0
                    // }).then(res => {
                    //     this.$emit('changeDialog', { dialogUpdate: false });
                    //     this.getUserList();
                    // })
                } else {
                    return false;
                }
            })
                .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;
                })
        // 获取token
        getToken() {
            const token = sessionStorage.getItem('token');
            const tokenHead = sessionStorage.getItem('tokenHead');
            if (token && tokenHead) {
                return { Authorization: tokenHead + token };
            }
        }
    },
    props: ['getUserList']
src/views/operate/baseSetting/threepack/index.vue
@@ -13,11 +13,11 @@
                    </div>
                </div>
                <div class="addUser">
                    <el-button class="addBtn" type="primary" @click="dialogCreate = true">新建角色</el-button>
                    <!-- <el-dialog :visible.sync="dialogCreate" title="新增角色" width="45%" v-if="dialogCreate"
                    <el-button class="addBtn" type="primary" @click="dialogCreate = true">新增门店</el-button>
                    <el-dialog :visible.sync="dialogCreate" title="新增门店" width="45%" v-if="dialogCreate"
                        :before-close="handleClose">
                        <createUser :refresh="getUserList" />
                    </el-dialog> -->
                    </el-dialog>
                </div>
            </div>
        </header>
@@ -30,15 +30,19 @@
                    @selection-change="tableChange">
                    <el-table-column type="selection" min-width="5">
                    </el-table-column>
                    <el-table-column prop="number" label="违规事项编号" min-width="10">
                    <el-table-column prop="id" label="门店编号" min-width="10">
                    </el-table-column>
                    <el-table-column prop="typeThird" label="所属类型" min-width="10">
                    <el-table-column prop="storePhoto" label="门店照片" min-width="10">
                    </el-table-column>
                    <el-table-column prop="typeSecond" label="所属大类" min-width="10">
                    <el-table-column prop="sotreName" label="门店名称" min-width="10">
                    </el-table-column>
                    <el-table-column prop="typeFirst" label="所属小类" min-width="10">
                    <el-table-column prop="owner" label="姓名" min-width="10">
                    </el-table-column>
                    <el-table-column prop="type" label="案由" min-width="45">
                    <el-table-column prop="storeAddress" label="地址" min-width="10">
                    </el-table-column>
                    <el-table-column prop="contact" label="联系方式" min-width="10">
                    </el-table-column>
                    <el-table-column prop="storeScore" label="门店积分" min-width="10">
                    </el-table-column>
                    <el-table-column prop="operation" label="操作" min-width="10">
                        <template slot-scope="scope">
@@ -209,7 +213,7 @@
            // 获取所有用户信息
            this.$axios({
                method: 'get',
                url: `sccg/violations/query?current=${currentPage}&size=${pageSize}&keyWord=${context}`,
                url: `sccg/store/storeinfo/list?pageNum=${currentPage}&size=${pageSize}&keyword=${context}`,
            })
                .then(res => {
                    this.tableData = res.data.records;
src/views/operate/disposal/casepool/escalation/createUser/index.vue
New file
@@ -0,0 +1,195 @@
<template>
    <div class="createUser">
        <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="请填写违规事项编号"></el-input>
                    </el-form-item>
                    <!-- 所属类型 -->
                    <el-form-item class="optionItems" label="所属类型:" prop="typeThird">
                        <el-select v-model="things.typeThird" placeholder="请选择所属类型" >
                            <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="请选择所属类型" >
                            <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" disabled></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>
        </main>
    </div>
</template>
<script>
export default {
    data() {
        return {
            things: {
                number: 0,
                type: '',
                typeFirst: '',
                typeSecond: '',
                typeThird: '',
            },
            roleList: [],
            typeThirdList:[],
            typeSecondList:[],
            typeFirstList:[],
        }
    },
    created() {
        console.log(this.userInfo);
        this.things = JSON.parse(JSON.stringify(this.userInfo));
        // 获取所属类型列表
        this.getTypeThird();
        this.getTypeSecond();
        this.getTypeFirst();
    },
    methods: {
        // handleUser() {
        //     this.$refs.user.validate((valid) => {
        //         if (valid) {
        //             const { role } = this;
        //             console.log(role);
        //             this.$axios.post('/sccg/role/update/' + role.id, {
        //                 id: role.id,
        //                 status: role.status,
        //                 description: role.description,
        //                 name: role.name,
        //                 sort: 0
        //             }).then(res => {
        //                 this.$emit('changeDialog', { dialogUpdate: false });
        //                 this.getUserList();
        //             })
        //         } else {
        //             return false;
        //         }
        //     })
        // },
        // 查询所属类型
        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: ['getUserList']
}
</script>
<style lang="scss" scoped>
.createUser {
    border-radius: 1px;
    background-color: #09152f;
    main {
        // border: 1px solid #fff;
        text-align: left;
        padding: 0 55px;
        background-color: #09152f;
        padding-bottom: 50px;
        .mainContent {
            display: flex;
            justify-content: center;
            padding-top: 50px;
            .el-form-item__content {
                width: 400px;
                .el-select {
                    width: 100%;
                }
            }
            .optionHandleSp {
                display: flex;
                .areaNumber,
                .moreNumber {
                    flex: 1;
                }
                .telNumber {
                    flex: 2;
                }
            }
            .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>
src/views/operate/disposal/casepool/escalation/index.vue
@@ -1,123 +1,237 @@
<template>
    <div class="casepool">
        <!-- 查询添加 -->
    <div class="userList">
        <header>
            <div class="search">
                <span>来源查询:</span>
                <el-input placeholder="请输入问题来源"></el-input>
            <div class="headerContent">
                <div class="search">
                    <span>筛选条件:</span>
                    <el-input placeholder="请输入内容" v-model="context"></el-input>
                    <div class="findBtn">
                        <el-button type="primary" @click="getUserList">查询</el-button>
                    </div>
                </div>
            </div>
            <!-- <div class="add">
                <el-button type="primary" icon="el-icon-plus" @click="handleOpenDialog">添加</el-button>
            </div> -->
        </header>
        <!-- 主体展示 -->
        <main>
            <div class="mainContent">
                <!-- 导航状态标签 -->
                <div class="nav">
                    <el-tabs type="border-card">
                        <el-tab-pane :label="item.name" v-for="item in tagList" :key="item.name">
                        </el-tab-pane>
                    </el-tabs>
                    <!-- 数据渲染 -->
                    <el-table ref="multipleTable"
                                :header-cell-style="{background:'#06122c','font-size':'12px',color:'#4b9bb7','font-weight':'650','line-height':'45px'}"
                                :data="tableData" style="width: 100%" :row-class-name="tableRowClassName">
                                <el-table-column type="selection" min-width="5">
                                </el-table-column>
                                <el-table-column label="事件编号" min-width="6">
                                    <template slot-scope="scope">{{ scope.row.id }}</template>
                                </el-table-column>
                                <el-table-column prop="source" label="问题来源" min-width="10">
                                </el-table-column>
                                <el-table-column prop="bigKind" label="大类名称" min-width="6">
                                </el-table-column>
                                <el-table-column prop="samllKind" label="小类名称" min-width="6">
                                </el-table-column>
                                <el-table-column prop="reson" label="案由" min-width="10">
                                </el-table-column>
                                <el-table-column prop="location" label="报警点位" min-width="10">
                                </el-table-column>
                                <el-table-column prop="area" label="所属区域" min-width="10">
                                </el-table-column>
                                <el-table-column prop="appendTime" label="报警时间" min-width="10">
                                </el-table-column>
                                <el-table-column prop="duration" label="持续时间" min-width="6">
                                </el-table-column>
                                <el-table-column prop="operation" label="操作" min-width="15">
                                    <!-- <template slot-scope="scope">
                                        <div class="operation">
                                            <span @click="handleFind(scope.row)">上报</span>
                                            <span class="line">|</span>
                                            <span @click="handleUpdate(scope.row)">调度</span>
                                            <span class="line">|</span>
                                            <span>再学习</span>
                                            <span class="line">|</span>
                                            <span>暂不处理</span>
                                        </div>
                                    </template> -->
                                </el-table-column>
                            </el-table>
                <div class="type-nav">
                    <div @click="changeTypeChecked(index)" v-for="(item,index) in typeList" :key="item.name"
                        :class="[item.checked ? 'is-active':'','type-item']">{{item.name}}</div>
                </div>
                <!-- 数据展示 -->
                <el-table ref="multipleTable"
                    :header-cell-style="{background:'#06122c','font-size':'12px',color:'#4b9bb7','font-weight':'650','line-height':'45px'}"
                    :data="tableData" style="width: 100%" :row-class-name="tableRowClassName"
                    @selection-change="tableChange">
                    <el-table-column type="selection" min-width="5">
                    </el-table-column>
                    <el-table-column prop="number" label="事件编号" min-width="10">
                        <template slot-scope="scope">
                            <el-link @click="JumpView(scope.row)">{{scope.row.number}}</el-link>
                        </template>
                    </el-table-column>
                    <el-table-column prop="typeThird" label="事件来源" min-width="10">
                    </el-table-column>
                    <el-table-column prop="typeSecond" label="大类名称" min-width="10">
                    </el-table-column>
                    <el-table-column prop="typeFirst" label="小类名称" min-width="10">
                    </el-table-column>
                    <el-table-column prop="type" label="案由" min-width="10">
                    </el-table-column>
                    <el-table-column prop="type" label="报警点位" min-width="10">
                    </el-table-column>
                    <el-table-column prop="type" label="所属区域" min-width="10">
                    </el-table-column>
                    <el-table-column prop="type" label="报警时间" min-width="10">
                    </el-table-column>
                    <el-table-column prop="type" label="持续时间" min-width="10">
                    </el-table-column>
                    <el-table-column prop="operation" label="操作" min-width="5">
                    </el-table-column>
                </el-table>
                <!-- 查看修改页面 -->
                <el-dialog :visible.sync="dialogUpdate" width="80%" title="基础信息(人工)"
                    v-if="dialogUpdate" :before-close="handleClose">
                    <updateUser :info=info />
                </el-dialog>
                <!-- tools -->
                <div class="tools">
                    <div class="funs">
                        <div class="funsItem">
                            <el-checkbox v-model="all" @change="selectAll()">全选</el-checkbox>
                        </div>
                        <div class="funsItem">
                            <el-checkbox v-model="unsame" @change="disSame(tableData)">反选</el-checkbox>
                        </div>
                        <div class="funsItem">
                            <el-select v-model="myIdx" placeholder="批量操作" @change="selectChange">
                                <el-option v-for="item in options" :key="item.value" :label="item.label"
                                    :value="item.value" :disabled="item.disabled">
                                </el-option>
                            </el-select>
                        </div>
                    </div>
                    <div class="pagination">
                        <el-pagination background :current-page="currentPage" layout="prev, pager, next"
                            :total="totalNum" :page-size="pageSize" @current-change="changeCurrentPage"
                            @prev-click="handlePrev" @next-click="handleNext">
                        </el-pagination>
                    </div>
                </div>
            </div>
        </main>
        <!-- 组件区 -->
        <footer>
            <!-- <el-dialog v-if="visible" :visible.async="visible" title="问题登记" width="60%" :before-close="handleClose">
                <checkIn></checkIn>
            </el-dialog> -->
        </footer>
    </div>
</template>
<script>
// import checkIn from './compenents/checkIn';
import updateUser from "./updateUser"
export default {
    components: {
        // checkIn,
        updateUser
    },
    data() {
        return {
            tagList: [
                // {
                //     name: '待处理',
                //     value: 0,
                // },
                // {
                //     name: '已上报',
                //     value: 0,
                // },
                // {
                //     name: '已调度',
                //     value: 0,
                // },
                // {
                //     name: '在学习',
                //     value: 0,
                // },
                // {
                //     name: '暂不处理',
                //     value: 0,
                // },
            tableData: [],
            context: "",
            dialogUpdate: false,
            info: {},
            totalNum: null,
            pageSize: 10,
            currentPage: 1,
            all: false,
            unsame: false,
            myIdx: 0,
            options: [
                {
                    value: 0,
                    label: '批量操作',
                    disabled: true,
                },
                {
                    value: 1,
                    label: '批量启用',
                },
                {
                    value: 2,
                    label: '批量禁用',
                },
                {
                    value: 3,
                    label: '批量删除',
                }
            ],
            tempList: [],
            typeList: [
                {
                    name: '违规',
                    value: 0,
                    value: 1,
                    checked: true
                },
                {
                    name: '违建',
                    value: 0,
                    value: 2,
                    checked: false,
                },
            ],
            tableData: [
                {
                    id: 13413114,
                    source: '人工上报/视频巡查',
                    appendTime: '2022-01-09 14:52'
                }
            ],
            visible: false,
        }
    },
    created() {
        this.getUserList();
    },
    methods: {
        // 批量删除
        mulDelete(idArr){
            console.log(idArr);
            this.$axios({
                method:'delete',
                url:'sccg/violations/batch_delete?ids='+idArr,
            }).then(res=>{
                this.getUserList();
                this.$message({
                    message:res.message,
                    type:res.code === 200 ? 'success' : 'warning'
                })
            })
        },
        // 执行下拉框操作
        selectChange(val) {
            let ids = [];
            this.tempList.forEach(item => {
                ids.push(item.number);
            })
            if (ids.length !== 0) {
                if (val === 3) {
                    this.mulDelete(ids);
                }
            } else {
                this.$message({
                    type: 'warning',
                    message: '您还没选中任何数据',
                })
            }
        },
        // 监听表格选中状态
        tableChange(list) {
            this.tempList = list;
            if (list.length === this.tableData.length) {
                this.all = true;
            } else {
                this.all = false
            }
        },
        // 全选
        selectAll() {
            this.$refs.multipleTable.toggleAllSelection();
        },
        // 反选
        disSame(list) {
            list.forEach(row => {
                this.$refs.multipleTable.toggleRowSelection(row)
            })
        },
        // 删除单条数据
        handleDelete({ number }) {
            console.log(number);
            this.$confirm('确认删除?')
                .then(_ => {
                    console.log(1);
                    this.$axios({
                        method: 'delete',
                        url: `sccg/violations/delete?id=${number}`,
                    })
                        .then(res => {
                            console.log(res);
                            this.$message({
                                type: res.code === 200 ? 'success' : 'warning',
                                message: res.message
                            })
                            this.getUserList();
                        })
                })
                .catch(_ => { console.log(2) });
        },
        // 获取用户列表
        getUserList() {
            const { currentPage, pageSize, context } = this;
            // 获取所有用户信息
            this.$axios({
                method: 'get',
                url: `sccg/violations/query?current=${currentPage}&size=${pageSize}&keyWord=${context}`,
            })
                .then(res => {
                    this.tableData = res.data.records;
                    this.totalNum = res.data.total;
                })
        },
        // 更改违规/违建
        changeTypeChecked(idx) {
            this.typeList.forEach((item, index) => {
                if (index === idx) {
                    item.checked = true;
                } else {
                    item.checked = false;
                }
            })
        },
        // 设置表格斑马纹
        tableRowClassName({ row, rowIndex }) {
            if ((rowIndex + 1) % 2 == 0) {
@@ -127,141 +241,284 @@
            }
            return '';
        },
        // 打开添加页
        handleOpenDialog() {
            this.visible = true;
        // 当前页改变触发事件
        changeCurrentPage(page) {
            this.currentPage = page;
            this.getUserList();
        },
        // 关闭对话框
        // 上一页点击事件
        handlePrev(page) {
            this.currentPage = page;
            this.getUserList();
        },
        // 下一页点击事件
        handleNext(page) {
            this.currentPage = page;
            this.getUserList();
        },
        handleClose(done) {
        this.$confirm('确认关闭?')
          .then(_ => {
            this.visible = false;
            done();
          })
          .catch(_ => {});
      }
            this.$confirm('确认关闭?')
                .then(_ => {
                    this.dialogUpdate = false;
                    done();
                })
                .catch(_ => { });
        },
        JumpView(data){
            this.info = data;
            this.dialogUpdate = true;
            console.log(data);
        }
    }
}
</script>
<style lang="scss" scoped>
.casepool {
.userList {
    text-align: left;
    margin: 10px 20px;
    color: #4b9bb7;
    header {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
        line-height: 60px;
        background-color: #09152f;
        border: 1pox solid #fff;
        .search {
        .headerContent {
            padding: 0 40px;
            display: flex;
            line-height: 100px;
            justify-content: space-between;
            align-items: center;
            span {
                flex: 2;
            .search {
                display: flex;
                justify-content: flex-start;
                span {
                    flex: 1;
                }
                .el-input {
                    flex: 2;
                    color: #1d3f57;
                    &::v-deep .el-input__inner {
                        background-color: #09152f;
                        border: 1px solid #17324c;
                    }
                }
            }
            .el-input {
                flex: 5;
            .findBtn {
                line-height: 100px;
                margin-left: 15px;
                display: flex;
                align-items: center;
                margin-top: -2px;
                &::v-deep .el-input__inner {
                    background-color: #09152f;
                    border: 1px solid #17324c;
                .el-button {
                    padding: 12px 25px;
                    border-radius: 20px;
                }
            }
        }
        .add {
            .el-button {
            .addBtn {
                background-color: #eb5d01;
                border: none;
                border-radius: 20px;
                padding: 12px 30px;
            }
        }
    }
    main {
        .mainContent {
            .nav {
                &::v-deep .el-tabs--border-card {
                    border: none;
                }
        background-color: #09152f;
        margin-top: 20px;
        padding-bottom: 50px;
        border: 1pox solid #fff;
                &::v-deep .el-tabs--border-card>.el-tabs__content {
                    background-color: #09152f;
                }
        .type-nav {
            display: flex;
            line-height: 40px;
            margin-left: 30px;
            padding-top: 10px;
            margin-bottom: 10px;
                &::v-deep .el-tabs__nav-scroll {
                    background-color: #09152f;
                }
            .type-item {
                width: 80px;
                text-align: center;
                &::v-deep .el-tabs__header {
                    line-height: 60px;
                &:hover {
                    cursor: pointer;
                }
            }
                &::v-deep .el-tabs--border-card>.el-tabs__header .el-tabs__item {
                    color: #fff;
                }
            .is-active {
                background-color: #070f22;
                border-radius: 4px;
                color: #fff;
            }
        }
                &::v-deep .el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active {
                    color: #4b9bb7;
                    background-color: #071f39;
                    border: none;
                }
        .tools {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
                .el-table {
            .funs {
                display: flex;
                .funsItem {
                    line-height: 28px;
                    display: flex;
                    align-items: center;
                    border: 1px solid #17324c;
                    border-radius: 4px;
                    font-size: 12px;
                    color: #4b9bb7;
                    margin-left: 10px;
                    .line {
                        padding: 0 5px;
                    .el-checkbox {
                        width: 80px;
                        padding: 0 10px;
                    }
                    .el-select {
                        width: 120px;
                    }
                    &::v-deep .el-input__inner {
                        border: none;
                        background-color: #09152f;
                    }
                    &:hover {
                        border: 1px solid #4b9bb7;
                    }
                    &:hover .el-checkbox {
                        color: #4b9bb7;
                    }
                }
                &::v-deep .el-table__empty-block {
                    background-color: #09152f;
                    color: #4b9bb7;
                }
            }
                .el-table::v-deep .warning-row {
                    background: #06122c;
                }
            .pagination {
                margin-top: 50px;
                display: flex;
                line-height: 50px;
                justify-content: center;
                .el-table::v-deep .success-row {
                    background: #071f39;
                .el-pagination {
                    &::v-deep li,
                    &::v-deep .btn-prev,
                    &::v-deep .btn-next {
                        background-color: #071f39;
                        color: #4b9bb7;
                    }
                    &::v-deep .active {
                        background-color: #409eff;
                        color: #fff;
                    }
                }
            }
        }
        .el-table {
            color: #4b9bb7;
            font-size: 10px;
            &::v-deep .cell {
                text-overflow: ellipsis;
                white-space: nowrap;
                overflow: hidden;
            }
            &::v-deep .el-table__empty-block {
                background-color: #09152f;
            }
            &::v-deep .el-table__empty-block {
                color: #4b9bb7;
            }
            .operation {
                display: flex;
                .line {
                    padding: 0 5px;
                }
                span:hover {
                    cursor: pointer;
                }
            }
        }
        .el-table::v-deep .warning-row {
            background: #06122c;
        }
        .el-table::v-deep .success-row {
            background: #071f39;
        }
        &::v-deep .switchStyle .el-switch__label {
            position: absolute;
            display: none;
            color: #fff;
        }
        &::v-deep .el-switch__core {
            background-color: rgba(166, 166, 166, 1);
        }
        &::v-deep .switchStyle .el-switch__label--left {
            z-index: 9;
            left: 20px;
        }
        &::v-deep .switchStyle .el-switch__label--right {
            z-index: 9;
            left: 4px;
        }
        &::v-deep .switchStyle .el-switch__label.is-active {
            display: block;
        }
        &::v-deep .switchStyle.el-switch .el-switch__core,
        &::v-deep .el-switch .el-switch__label {
            width: 50px !important;
        }
    }
    footer {
    &::v-deep .el-dialog__header,
    &::v-deep .el-dialog__body {
        background-color: #06122c;
    }
        &::v-deep .el-dialog__header,
        &::v-deep .el-dialog__body {
            background-color: #06122c;
        }
    &::v-deep .el-dialog__header {
        display: flex;
        align-items: center;
        background-color: #fff;
        padding: 20px;
        line-height: 60px;
    }
        &::v-deep .el-dialog__header {
            display: flex;
            align-items: center;
            background-color: #fff;
            padding: 20px;
            line-height: 60px;
        }
    &::v-deep .el-dialog__title {
        color: #4b9bb7;
    }
        &::v-deep .el-dialog__title {
            color: #4b9bb7;
        }
    &::v-deep .el-dialog__close {
        width: 20px;
        height: 20px;
        // color: #fff;
    }
        &::v-deep .el-dialog__close {
            width: 20px;
            height: 20px;
            // color: #fff;
        }
        &::v-deep .el-dialog__body {
            padding: 0;
        }
    &::v-deep .el-dialog__body {
        padding: 0;
    }
}
</style>
src/views/operate/disposal/casepool/escalation/updateUser/filePictrue/index.vue
New file
@@ -0,0 +1,93 @@
<template>
    <div class="file-picture">
        <div class="file-tell">
            <div class="tell-title">上报</div>
            <div class="tell-show">
                <el-upload class="upload-demo" :show-file-list="false" action="http://42.193.1.25:8082/sccg/file/medias"
                    :headers="getToken()" multiple :limit="50">
                    <div class="my-demo">
                        <img src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__ef98ada722c616eccb097d1352880862.svg"
                            alt="">
                        <div class="tip">
                            <div>【图片类型】上报</div>
                            <div>【上报时间】2022-09-08 14:23:34</div>
                        </div>
                    </div>
                </el-upload>
                <img src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__ef98ada722c616eccb097d1352880862.svg"
                    alt="">
            </div>
        </div>
        <div class="file-deal">
            <div class="tell-title">处置</div>
            <div class="tell-show">
                <el-upload class="upload-demo" :show-file-list="false" action="http://42.193.1.25:8082/sccg/file/medias"
                    :headers="getToken()" multiple :limit="50">
                    <div class="my-demo">
                        <img src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__ef98ada722c616eccb097d1352880862.svg"
                            alt="">
                        <div class="tip">
                            <div>【图片类型】处置</div>
                            <div>【上报时间】2022-09-08 14:23:34</div>
                        </div>
                    </div>
                </el-upload>
                <img src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__ef98ada722c616eccb097d1352880862.svg"
                    alt="">
            </div>
        </div>
    </div>
</template>
<script>
export default {
    data() {
        return {
        }
    },
    methods: {
        // 获取token
        getToken() {
            const token = sessionStorage.getItem('token');
            const tokenHead = sessionStorage.getItem('tokenHead');
            if (token && tokenHead) {
                return { Authorization: tokenHead + token };
            }
        }
    }
}
</script>
<style lang="scss" scoped>
.file-picture {
    padding-top: 50px;
    .file-tell,.file-deal {
        .tell-title {
            line-height: 40px;
        }
        .tell-show {
            display: flex;
            .upload-demo {
                height: 159px;
                .my-demo {
                    position: relative;
                    height: 100%;
                }
                .tip {
                    div {
                        line-height: 20px;
                    }
                    text-align: left;
                    position: absolute;
                    bottom: 80px;
                }
            }
        }
    }
}
</style>
src/views/operate/disposal/casepool/escalation/updateUser/index.vue
New file
@@ -0,0 +1,234 @@
<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>
            <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>
    </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: {
            },
            activeIndex: 1,
            titleList: [
                {
                    title: '办理经过',
                    index: 1,
                },
                {
                    title: '案卷图片',
                    index: 2,
                },
                {
                    title: '问题处理',
                    index: 3,
                },
                {
                    title: '现场情况',
                    index: 4,
                },
            ]
        }
    },
    created() {
    },
    methods: {
        changeComponent(index) {
            this.activeIndex = index;
        }
    },
    props: ['info']
}
</script>
<style lang="scss" scoped>
.view {
    display: flex;
    padding: 20px;
    .view-data {
        color: #4b9bb7;
        flex: 4;
        padding: 0 30px 0 20px;
        .data-item {
            display: flex;
            justify-content: space-between;
            line-height: 40px;
        }
        border: 1px solid #17324c;
    }
    .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;
                    width: 100%;
                }
                .title-active {
                    color: #4b9bb7;
                }
                .line-active {
                    background-color: #4b9bb7;
                    border-radius: 20px;
                }
            }
        }
        .show-item {
            overflow: hidden;
            height: 600px;
            position: relative;
            .show-wrap{
                overflow: scroll;
                height: 600px;
            }
        }
    }
}
</style>
src/views/operate/disposal/casepool/escalation/updateUser/process/index.vue
New file
@@ -0,0 +1,144 @@
<template>
    <div class="my-process">
        <div class="my-pro-header">
            <div class="pro-step" v-for="(item,index) in list" :key="item.title">
                <div class="pro-step-top">
                    <div
                        :class="['circle',active === item.index ? 'in-process' : active > item.index ? 'finish' : 'wait' ]">
                    </div>
                    <div :class="['line',active > item.index ? 'finish-line' :'']"
                        v-if="index<list.length-1 ? true:false"></div>
                </div>
                <div
                    :class="['pro-step-name',active === item.index ? 'in-process' : active > item.index ? 'finish' : 'wait' ]">
                    {{item.title}}</div>
            </div>
        </div>
        <div class="my-pro-main">
            <div class="pro-step-ver" v-for="(item,index) in list" :key="item.title">
                <div
                    :class="['pro-step-name',active === item.index ? 'in-process' : active > item.index ? 'finish' : 'wait' ]">
                    {{item.title}}</div>
                <div class="pro-step-top">
                    <div
                        :class="['circle',active === item.index ? 'in-process' : active > item.index ? 'finish' : 'wait' ]">
                    </div>
                    <div :class="['line',active > item.index ? 'finish-line' :'']"
                        v-if="index<list.length-1 ? true:false"></div>
                </div>
                <div class="desc">
                    <div class="desc-title">环节用时:</div>
                    <div class="desc-content" v-if="active > index+1">
                        <div class="desc-content-message">1111111</div>
                        <div class="desc-content-endtime">22.09.06 16:40</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    data() {
        return {
            active: 2,
            list: [
                {
                    title: '上报',
                    status: 'success',
                },
                {
                    title: '立案',
                    status: 'process',
                },
                {
                    title: '派遣',
                    status: 'process',
                },
                {
                    title: '处置',
                    status: 'process',
                },
                {
                    title: '核查',
                    status: 'process',
                },
                {
                    title: '结案',
                    status: 'process',
                }
            ]
        }
    }
}
</script>
<style lang="scss" scoped>
.my-process {
    padding-top: 50px;
    .my-pro-header {
        display: flex;
        .pro-step {
            flex: 1;
            .pro-step-top {
                display: flex;
                align-items: center;
                .line {
                    flex: 1;
                    height: 2px;
                }
            }
            .pro-step-name {
                line-height: 20px;
            }
        }
    }
    .my-pro-main {
        .pro-step-ver {
            display: flex;
            align-items: flex-start;
            .line {
                width: 2px;
                height: 100px;
            }
        }
        .pro-step-top{
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .pro-step-name {
            line-height: 24px;
            margin-right: 10px;
        }
        .desc{
            flex: 1;
            line-height: 24px;
            margin-left: 10px;
            .desc-content-endtime{
                display: flex;
                justify-content: flex-end;
            }
        }
    }
    .circle {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background-color: #fff;
    }
    .line {
        background-color: #c0c4cc;
    }
    .finish-line {
        background-color: #4b9bb7;
    }
}
</style>
src/views/operate/disposal/casepool/escalation/updateUser/scene/index.vue
New file
@@ -0,0 +1,182 @@
<template>
    <div class="scene">
        <div class="nav">
            <div class="nav-item" v-for="o in list" :key="o.index" @click="changeActive(o.index)">
                <div class="outer" >
                    <div :class="['inner',active === o.index ? 'inner-active' : '']"></div>
                </div>
                <div class="innet-title">{{o.label}}</div>
            </div>
        </div>
        <div class="scene-item" v-if="active === 1">
            <el-form label-position="right" label-width="120px" :model="sceneObj">
                <el-form-item label="到达时间:">
                    <el-input v-model="sceneObj.name"></el-input>
                </el-form-item>
                <el-form-item label="到达地址:">
                    <el-input v-model="sceneObj.region"></el-input>
                </el-form-item>
                <el-form-item label="现场情况说明:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="信访回复说明:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="现场情况照片:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
            </el-form>
        </div>
        <div class="scene-item" v-if="active === 2">
            <el-form label-position="right" label-width="120px" :model="sceneObj">
                <el-form-item label="承办队员:">
                    <el-input v-model="sceneObj.name"></el-input>
                </el-form-item>
                <el-form-item label="协办队员:">
                    <el-input v-model="sceneObj.region"></el-input>
                </el-form-item>
                <el-form-item label="时间:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="地址:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="案由:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="当事人信息:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="情况描述:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="照片附件:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="类型:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="当事人姓名:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="手机号码:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="证件类型:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="证件号码:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="文化程度:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="职业:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="工作单位及职务:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="名族:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="籍贯:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="现住址:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
                <el-form-item label="户籍所在地:">
                    <el-input v-model="sceneObj.type"></el-input>
                </el-form-item>
            </el-form>
            <el-button>返回</el-button>
        </div>
        <div class="scene-item" v-if="active === 3">
            <el-form label-position="right" label-width="120px" :model="sceneObj">
                <el-form-item label="类型:">
                    <el-input v-model="sceneObj.name"></el-input>
                </el-form-item>
            </el-form>
        </div>
    </div>
</template>
<script>
export default {
    data() {
        return {
            active: 1,
            list: [
                {
                    index: 1,
                    label: '到达现场情况'
                },
                {
                    index: 2,
                    label: '调查取证'
                },
                {
                    index: 3,
                    label: '告知违法'
                }
            ],
            sceneObj: {},
        }
    },
    methods: {
        changeActive(idx) {
            this.active = idx;
        }
    }
}
</script>
<style lang="scss" scoped>
.scene {
    .nav {
        padding: 20px 100px;
        display: flex;
        justify-content: space-between;
        .nav-item{
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .outer {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: #0101ff;
        }
        .inner {
            background-color: #0101ff;
            border-radius: 50%;
            width: 30px;
            height: 30px;
        }
        .innet-title {
            line-height: 20px;
            padding-top: 20px;
        }
        .inner-active {
            background-color: #fff;
        }
    }
    .scene-item {
        padding: 20px 100px;
        ::v-deep .el-input__inner {
            background-color: #09152f;
            border: 1px solid #17324c;
        }
    }
}
</style>
src/views/operate/disposal/casepool/escalation/updateUser/solveProblem/index.vue
New file
@@ -0,0 +1,67 @@
<template>
    <div class="sovle-problem">
        <div class="sovle-header">
            <div class="sovle-limit">处理时限:1工作日</div>
            <div class="sovle-limit">剩余时间:23小时</div>
        </div>
        <div class="sovle-timeline">
            <el-timeline>
                <el-timeline-item :color="mycolor">
                    <div class="title">
                        <div class="title-left">【派遣】派遣员:xxx</div>
                        <div class="title-right">22.09.06 16:40</div>
                    </div>
                    <div class="message">【派遣意见】请相关执法队员及时前往现场进行处置</div>
                </el-timeline-item>
                <el-timeline-item :color="mycolor">
                    <div class="title">
                        <div class="title-left">【处理】处理人:xxx</div>
                        <div class="title-right">22.09.06 16:40</div>
                    </div>
                    <div class="message">【处理结果】请相关执法队员及时前往现场进行处置</div>
                </el-timeline-item>
                <el-timeline-item :color="mycolor">
                    <div class="title">
                        <div class="title-left">【评定】评定人:xxx</div>
                        <div class="title-right">22.09.06 16:40</div>
                    </div>
                    <div class="message">【评定结果】请相关执法队员及时前往现场进行处置</div>
                </el-timeline-item>
            </el-timeline>
        </div>
    </div>
</template>
<script>
    export default{
        data(){
            return{
                mycolor:'#02a7f0'
            }
        }
    }
</script>
<style lang="scss" scoped>
    .sovle-problem{
        .sovle-header{
            padding: 0 200px;
            display: flex;
            line-height: 60px;
            justify-content: space-between;
        }
        .title{
            display: flex;
            justify-content: space-between;
            line-height: 40px;
            padding: 0 20px;
            color: #4b9bb7;
            font-size: 16px;
        }
        .message{
            padding: 20px;
            background-color: #070f22;
            color: #4b9bb7;
            line-height: 20px;
            font-size: 10px;
        }
    }
</style>
src/views/operate/disposal/casepool/pool/createUser/ill/index.vue
@@ -1,3 +1,303 @@
<template>
    <div>2</div>
</template>
    <div class="ill">
        <div class="input-area">
            <div class="input-header">
                <div class="input-header__title">基础信息</div>
                <div class="input-header__tip">填写事件基础信息</div>
            </div>
            <div class="input-form">
                <el-form ref="user" label-width="160px" autoComplete="on" :model="role" :rules="createRoleRules"
                    label-position="right">
                    <!-- 问题类型 -->
                    <el-form-item class="optionItem" label="问题类型:" prop="name">
                        <el-select v-model="role.type" placeholder="违建">
                            <el-option v-for="item in typeList" :key="item.name" :label="item.name" :value="item.value"
                                :disabled="item.disabled">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <!-- 违建类别 -->
                    <el-form-item class="optionItems" label="违建类别:" prop="status">
                        <el-select v-model="role.big" placeholder="请选择违建类别" size="small">
                            <el-option v-for="item in bigKindList" :key="item.id" :label="item.name" :value="item.id"
                                :disabled="item.disabled">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <!-- 当事人姓名 -->
                    <el-form-item class="optionItems" label="当事人姓名:" prop="status">
                        <el-input placeholder="请填写当事人姓名"></el-input>
                    </el-form-item>
                    <!-- 当事人身份证号 -->
                    <el-form-item class="optionItems" label="当事人身份证号:" prop="status">
                        <el-input placeholder="请填写当事人身份证号"></el-input>
                    </el-form-item>
                    <!-- 当事人联系电话 -->
                    <el-form-item class="optionItem" label="当事人联系电话:" prop="description">
                        <el-input v-model="role.description" placeholder="请填写当事人联系电话"></el-input>
                    </el-form-item>
                    <!-- 违建地点 -->
                    <el-form-item class="optionItems" label="违建地点:" prop="status">
                        <el-input placeholder="请填写违建地点"></el-input>
                    </el-form-item>
                    <!-- 所属社区 -->
                    <el-form-item class="optionItems" label="所属社区:" prop="status">
                        <el-select v-model="role.type" placeholder="请选择所属社区">
                            <el-option v-for="item in typeList" :key="item.name" :label="item.name" :value="item.value"
                                :disabled="item.disabled">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <!-- 身份证正反面照片 -->
                    <el-form-item class="optionItems" label="身份证正反面照片:" prop="status">
                        <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 :limit="50">
                                    <img src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__15f765432d579a14b8f6591c100d30e3.svg"
                                        alt="">
                                        <span class="text">身份证正面</span>
                                </el-upload>
                                <el-upload class="upload-demo"
                                    :show-file-list = "false"
                                    action="http://42.193.1.25:8082/sccg/file/medias"
                                    :headers="getToken()" multiple :limit="50">
                                    <img src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__15f765432d579a14b8f6591c100d30e3.svg"
                                        alt="">
                                    <span class="text">身份证反面</span>
                                </el-upload>
                            </div>
                        </template>
                    </el-form-item>
                </el-form>
            </div>
            <div class="not-need">
                <div class="not-need__header">
                    执法违建情况
                </div>
                <div class="not-need-item">
                    <label>违建具体位置:</label>
                    <input type="text" class="not-need__inner">
                </div>
                <div class="not-need-item">
                    <label>违法建设长、宽、高:</label>
                    <input type="text" class="not-need__inner">
                </div>
                <div class="not-need-item">
                    <label>违法建设面积:</label>
                    <input type="text" class="not-need__inner">
                </div>
                <div class="not-need-item">
                    <label>违法建筑材料:</label>
                    <input type="text" class="not-need__inner">
                </div>
            </div>
            <div class="input-footer">
                <el-button type="primary" class="confirm">确定</el-button>
                <el-button class="back">返回</el-button>
            </div>
        </div>
        <div class="map-area">
            <!-- <MyMap /> -->
        </div>
    </div>
</template>
<script>
import MyMap from '@/components/map'
export default {
    components: {
        MyMap
    },
    data() {
        const validateNickname = (rule, value, callback) => {
            if (!value) {
                callback(new Error("请填写问题类型"));
            } else {
                callback();
            }
        };
        const validatePass = (rule, value, callback) => {
            if (!value) {
                callback();
            } else {
                // const rep = /^\w+$/;
                // if (!rep.test(value)) {
                //     callback(new Error("密码只能是以数字、26个英文字母或者下划线组成的字符串"));
                // }
                callback();
            }
        };
        const validateTruename = (rule, value, callback) => {
            if (value) {
                callback();
            } else {
                // const rep = /^[\u4E00-\u9FA5]{2,4}$/;
                // if (!rep.test(value)) {
                //     callback("请输入正确的用户姓名");
                // }
                callback();
            }
        };
        return {
            role: {
                name: '',
                type: '',
                description: '',
            },
            createRoleRules: {
                name: [
                    { required: true, trigger: "blur", validator: validateNickname },
                ],
                type: [
                    { required: false, trigger: "blur", validator: validatePass },
                ],
                description: [
                    { required: false, trigger: "blur", validator: validateTruename },
                ],
            },
            bigKindList: [],
            typeList: [],
        }
    },
    created() {
        const { getBigKind, getEventLevel, getSmallKind } = this;
        getBigKind();
    },
    methods: {
        handleUser() {
            this.$refs['user'].validate((valid) => {
                console.log(valid);
                if (valid) {
                    const { role } = this;
                    console.log(role);
                    this.$axios.post('sccg/role/create', {
                        description: role.description, name: role.name, type: role.type
                    }).then(res => {
                        if (res.code === 200) {
                            this.refresh();
                        }
                    })
                } else {
                    return false;
                }
            })
        },
        handleStop() {
            this.refresh();
        },
        // 获取大类列表
        getBigKind() {
            this.$axios({
                method: 'get',
                url: 'sccg/illegal_building/query/type_second'
            }).then(res => {
                this.bigKindList = res.data;
                // console.log(res);
            })
        },
        // 获取行政区域
        // 获取token
        getToken() {
            const token = sessionStorage.getItem('token');
            const tokenHead = sessionStorage.getItem('tokenHead');
            if (token && tokenHead) {
                return { Authorization: tokenHead + token };
            }
        }
    }
}
</script>
<style lang="scss" scoped>
.ill {
    display: flex;
    .input-area {
        flex: 1;
        padding: 10px 20px;
        .input-header {
            color: #4b9bb7;
            .input-header__title {
                line-height: 60px;
                font-weight: 650;
                font-size: 20px;
            }
            .input-header__tip {
                line-height: 40px;
            }
        }
        .input-form {
            &::v-deep .el-input__inner {
                background-color: #09152f;
                border: 1px solid #17324c;
            }
            &::v-deep .el-textarea__inner {
                background-color: #09152f;
                border: 1px solid #17324c;
            }
            .upload-demo{
                position: relative;
                .text{
                    position: absolute;
                    top: 22%;
                    left: 20%;
                }
            }
            .idcard {
                display: flex;
            }
            .idCardZ {
                width: 200px;
                height: 200px;
            }
        }
        .input-footer {
            display: flex;
            justify-content: center;
        }
    }
    .map-area {
        flex: 1;
    }
    .not-need {
        .not-need__header {
            line-height: 40px;
        }
        .not-need-item {
            line-height: 40px;
            margin-bottom: 22px;
            display: flex;
            label {
                width: 160px;
                padding-right: 12px;
                text-align: right;
            }
            .not-need__inner {
                flex: 1;
                line-height: 40px;
                padding: 0 15px;
                border-radius: 4px;
                color: #fff;
                // outline: #409eff solid 1px;
                outline: none;
                background-color: #09152f;
                border: 1px solid #17324c;
            }
        }
    }
}
</style>
src/views/operate/disposal/casepool/pool/createUser/index.vue
@@ -1,26 +1,15 @@
<template>
    <div class="createUser">
        <div class="chooseArea" v-if="flag">
        <div class="chooseArea">
            <el-button type="primary" @click="toShow(0,'违规')">违规登记</el-button>
            <el-button type="primary" @click="toShow(1,'违建')">违建登记</el-button>
        </div>
        <div class="inputArea" v-else>
            <MyIll v-if="index===0" />
            <MyVio v-else />
        </div>
    </div>
</template>
<script>
import MyVio from './vio';
import MyIll from './ill';
export default {
    components: {
        MyIll, MyVio
    },
    data() {
        return {
            flag: true,
            index: 0,//0:违规,1:违建
        }
    },
    created() {
@@ -30,13 +19,12 @@
        toShow(idx, lab) {
            this.$confirm('您确定要去上报' + lab + '事件')
                .then(_ => {
                    console.log(1);
                    this.index = idx;
                    this.flag = false;
                    this.$emit('getPageProp',{flag:false,type:idx});
                })
                .catch(_ => { console.log('err') });
        }
    },
    props:['getPageProp']
}
</script>
<style lang="scss" scoped>
src/views/operate/disposal/casepool/pool/createUser/vio/index.vue
@@ -1,3 +1,379 @@
<template>
    <div>1</div>
</template>
    <div class="vio">
        <div class="input-area">
            <div class="input-header">
                <div class="input-header__title">基础信息</div>
                <div class="input-header__tip">填写事件基础信息</div>
            </div>
            <div class="input-form">
                <el-form ref="user" label-width="100px" autoComplete="on" :model="vio" :rules="createRoleRules"
                    label-position="right">
                    <!-- 问题类型 -->
                    <el-form-item class="optionItem" label="问题类型:" prop="category">
                        <el-select v-model="vio.category" placeholder="违规" disabled>
                            <el-option v-for="item in typeList" :key="item.label" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <!-- 大类名称 -->
                    <el-form-item class="optionItems" label="大类名称:" prop="categoryId">
                        <el-select v-model="vio.categoryId" placeholder="请选择大类名称">
                            <el-option v-for="item in bigKindList" :key="item.id" :label="item.name" :value="item.id">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <!-- 小类名称 -->
                    <el-form-item class="optionItems" label="小类名称:" prop="typeId">
                        <el-select v-model="vio.typeId" placeholder="请选择小类名称">
                            <el-option v-for="item in smallKindList" :key="item.id" :label="item.name" :value="item.id"
                                :disabled="item.disabled">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <!-- 事件等级 -->
                    <el-form-item class="optionItems" label="事件等级:" prop="status">
                        <el-select v-model="vio.level" placeholder="请选择案件等级">
                            <el-option v-for="item in eventLevelList" :key="item.id" :label="item.name" :value="item.id"
                                :disabled="item.disabled">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <!-- 案由 -->
                    <el-form-item class="optionItem" label="案由:" prop="actionCause">
                        <el-input v-model="vio.actionCause" placeholder="请输入案由"></el-input>
                    </el-form-item>
                    <!-- 所属区县 -->
                    <!-- <el-form-item class="optionItems" label="所属区县:" prop="status">
                        <el-select v-model="vio.type" placeholder="请选择所属区县">
                            <el-option v-for="item in typeList" :key="item.name" :label="item.name" :value="item.value"
                                :disabled="item.disabled">
                            </el-option>
                        </el-select>
                    </el-form-item> -->
                    <!-- 所属社区 -->
                    <!-- <el-form-item class="optionItems" label="所属社区:" prop="status">
                        <el-select v-model="vio.type" placeholder="请选择所属社区">
                            <el-option v-for="item in typeList" :key="item.name" :label="item.name" :value="item.value"
                                :disabled="item.disabled">
                            </el-option>
                        </el-select>
                    </el-form-item> -->
                    <!-- 所属街道 -->
                    <!-- <el-form-item class="optionItems" label="所属街道:" prop="status">
                        <el-select v-model="vio.type" placeholder="请选择所属街道">
                            <el-option v-for="item in typeList" :key="item.name" :label="item.name" :value="item.value"
                                :disabled="item.disabled">
                            </el-option>
                        </el-select>
                    </el-form-item> -->
                    <!-- 事发地点 -->
                    <el-form-item class="optionItems" label="事发地点:" prop="site">
                        <el-input placeholder="请输入事发地详细位置" v-model="vio.site"></el-input>
                    </el-form-item>
                    <!-- 是否关联商铺 -->
                    <el-form-item class="optionItems" label="是否关联商铺:" prop="linkShop">
                        <el-radio-group v-model="vio.linkShop">
                            <el-radio :label="1">是</el-radio>
                            <el-radio :label="0">否</el-radio>
                        </el-radio-group>
                    </el-form-item>
                    <!-- 关联商铺名称 -->
                    <el-form-item class="optionItems" label="关联商铺名称:" prop="shopName">
                        <el-input placeholder="请填写关联商铺名称" v-model="vio.shopName" :disabled="vio.linkShop === 1 ?false : true"></el-input>
                    </el-form-item>
                    <!-- 填写车牌号 -->
                    <el-form-item class="optionItems" label="填写车牌号:" prop="carNumber">
                        <el-input placeholder="请填写车牌号" v-model="vio.carNumber"></el-input>
                    </el-form-item>
                    <!-- 问题描述 -->
                    <el-form-item class="optionItems" label="问题描述:" prop="description">
                        <el-input type="textarea" placeholder="请输入内容200字以内" v-model="vio.description"></el-input>
                    </el-form-item>
                </el-form>
            </div>
            <div class="not-need">
                <div class="not-need__header">
                    填写反映人信息
                </div>
                <div class="not-need-item">
                    <label>反映人:</label>
                    <input type="text" class="not-need__inner">
                </div>
                <div class="not-need-item">
                    <label>联系方式:</label>
                    <input type="text" class="not-need__inner">
                </div>
                <div class="not-need-item">
                    <label>身份证号:</label>
                    <input type="text" class="not-need__inner">
                </div>
            </div>
            <div class="input-footer">
                <el-button type="primary" class="confirm" @click="handleSubmit">确定</el-button>
                <el-button class="back">返回</el-button>
            </div>
        </div>
        <div class="map-area">
            <!-- <MyMap /> -->
        </div>
    </div>
</template>
<script>
import MyMap from '@/components/map'
export default {
    components: {
        MyMap
    },
    data() {
        const validateNickname = (rule, value, callback) => {
            if (!value) {
                callback(new Error("请填写问题类型"));
            } else {
                callback();
            }
        };
        const validatePass = (rule, value, callback) => {
            if (!value) {
                callback();
            } else {
                // const rep = /^\w+$/;
                // if (!rep.test(value)) {
                //     callback(new Error("密码只能是以数字、26个英文字母或者下划线组成的字符串"));
                // }
                callback();
            }
        };
        const validateTruename = (rule, value, callback) => {
            if (value) {
                callback();
            } else {
                // const rep = /^[\u4E00-\u9FA5]{2,4}$/;
                // if (!rep.test(value)) {
                //     callback("请输入正确的用户姓名");
                // }
                callback();
            }
        };
        return {
            vio: {
                actionCause: "dasdas",//案由
                carNumber: "川k123456",//车牌号
                category: '',//1:违规2:违建
                categoryId: 0,//大类
                communityId: 0,//所属社区
                description: "大撒大撒",//问题描述
                informant: "大苏打",//反映人
                informantIdCard: "51102519910082831",//身份证号码
                informantPhoneCode: "17844631885",//反映人联系方式
                linkShop: 0,//是否关联商铺(0否1是)
                shopName: "",//关联商铺名称
                site: "小地方",//事发地点
                streetId: 0,//所属街道
                typeId: 0//小类
            },
            createRoleRules: {
                name: [
                    { required: true, trigger: "blur", validator: validateNickname },
                ],
                type: [
                    { required: false, trigger: "blur", validator: validatePass },
                ],
                description: [
                    { required: false, trigger: "blur", validator: validateTruename },
                ],
            },
            bigKindList: [],
            smallKindList: [],
            eventLevelList: [],
            typeList: [
                {
                    label: '违规',
                    value: 1.
                },
                {
                    label: '违建',
                    value: 2.
                }
            ]
        }
    },
    created() {
        const { getBigKind, getEventLevel, getSmallKind } = this;
        console.log(this.mytype);
        this.vio.category = this.mytype + 1;
        getBigKind();
        getSmallKind();
        getEventLevel();
    },
    methods: {
        // handleUser() {
        //     this.$refs['user'].validate((valid) => {
        //         console.log(valid);
        //         if (valid) {
        //             const { role } = this;
        //             console.log(role);
        //             this.$axios.post('sccg/role/create', {
        //                 description: role.description, name: role.name, type: role.type
        //             }).then(res => {
        //                 if (res.code === 200) {
        //                     this.refresh();
        //                 }
        //             })
        //         } else {
        //             return false;
        //         }
        //     })
        // },
        handleStop() {
            this.refresh();
        },
        // 获取大类列表
        getBigKind() {
            this.$axios({
                method: 'get',
                url: 'sccg/violations/query/type_first'
            }).then(res => {
                this.bigKindList = res.data;
                // console.log(res);
            })
        },
        // 获取小类列表
        getSmallKind() {
            this.$axios({
                method: 'get',
                url: 'sccg/violations/query/type_second'
            })
                .then(res => {
                    this.smallKindList = res.data;
                })
        },
        // 获取案件等级列表
        getEventLevel() {
            this.$axios({
                method: 'get',
                url: 'sccg/violations/query/event_type'
            })
                .then(res => {
                    this.eventLevelList = res.data;
                })
        },
        // 获取行政区域
        getRegion() {
            this.$axios({
                method: 'get',
                url: 'sccg/sccg-region/getTree',
            })
                .then(res => {
                    // this.
                })
        },
        // 提交注册信息
        handleSubmit() {
            const { vio } = this;
            console.log(vio);
            this.$axios({
                method:'post',
                url:'sccg/base-case/addition_violation',
                data:vio
            })
            .then(res=>{
                console.log(res);
            })
            // this.$axios.post('sccg/role/create', {
            //     description: role.description, name: role.name, type: role.type
            // }).then(res => {
            //     if (res.code === 200) {
            //         this.refresh();
            //     }
            // })
        }
    },
    props: ['mytype']
}
</script>
<style lang="scss" scoped>
.vio {
    display: flex;
    .input-area {
        flex: 1;
        padding: 10px 20px;
        .input-header {
            color: #4b9bb7;
            .input-header__title {
                line-height: 60px;
                font-weight: 650;
                font-size: 20px;
            }
            .input-header__tip {
                line-height: 40px;
            }
        }
        .input-form {
            .el-form {
                &::v-deep .el-form-item__label {
                    color: #4b9bb7;
                }
                &::v-deep .el-input__inner {
                    background-color: #09152f;
                    border: 1px solid #17324c;
                }
                &::v-deep .el-textarea__inner {
                    background-color: #09152f;
                    border: 1px solid #17324c;
                }
            }
        }
        .input-footer {
            display: flex;
            justify-content: center;
        }
    }
    .map-area {
        flex: 1;
    }
    .not-need {
        color: #4b9bb7;
        .not-need__header {
            line-height: 40px;
        }
        .not-need-item {
            line-height: 40px;
            margin-bottom: 22px;
            display: flex;
            label {
                width: 100px;
                padding-right: 12px;
                text-align: right;
            }
            .not-need__inner {
                flex: 1;
                line-height: 40px;
                padding: 0 15px;
                border-radius: 4px;
                color: #fff;
                // outline: #409eff solid 1px;
                outline: none;
                background-color: #09152f;
                border: 1px solid #17324c;
            }
        }
    }
}
</style>
src/views/operate/disposal/casepool/pool/index.vue
@@ -12,7 +12,11 @@
                <div class="addUser">
                    <el-button class="addBtn" type="primary" @click="dialogCreate = true">添加</el-button>
                    <el-dialog :before-close="handleClose" :visible.sync="dialogCreate" title="请选择上报事件类型" width="45%" v-if="dialogCreate">
                        <createUser />
                        <createUser @getPageProp=setDialog />
                    </el-dialog>
                    <el-dialog :before-close="handleClose" :visible.sync="dialogNewAdd" :title="newAddType === 0 ? '违规事件登记' : '违建事件登记' " width="45%" v-if="dialogNewAdd">
                        <MyIll v-if="newAddType === 1" :mytype=newAddType />
                        <myVio v-else :mytype=newAddType />
                    </el-dialog>
                </div>
            </div>
@@ -104,9 +108,11 @@
<script>
import updateUser from "./updateUser"
import createUser from "./createUser"
import MyIll from './createUser/ill'
import MyVio from './createUser/vio'
export default {
    components: {
        updateUser, createUser
        updateUser, createUser,MyIll,MyVio
    },
    data() {
        return {
@@ -114,6 +120,8 @@
            context: "",
            dialogCreate: false,
            dialogUpdate: false,
            dialogNewAdd:false,
            newAddType:0,
            updateFlag: false,
            userInfo: '',
            totalNum: null,
@@ -183,6 +191,7 @@
            ],
            mystatus:0,
            statusArr:[],
        }
    },
    created() {
@@ -196,9 +205,15 @@
                this.statusArr[1] = item.value;
            }
        })
        // this.getUserList();
        this.getUserList();
    },
    methods: {
        setDialog({flag,type}){
            this.dialogCreate = flag;
            this.dialogNewAdd = true;
            this.newAddType = type;
            console.log(flag,type);
        },
        // 批量删除
        mulDelete(idArr) {
            console.log(idArr);
@@ -277,19 +292,10 @@
            console.log(statusArr);
            this.$axios({
                method: 'get',
                url: `sccg/base-case/query/${statusArr[1]}?status=` + statusArr[0]
                url: `sccg/base-case/query/${statusArr[1]}?state=${statusArr[0]}&current=${currentPage}&size=${pageSize}&resource=1`
            }).then(res => {
                console.log(res);
            })
            // 获取所有用户信息
            // this.$axios({
            //     method: 'get',
            //     url: `sccg/violations/query?current=${currentPage}&size=${pageSize}&keyWord=${context}`,
            // })
            //     .then(res => {
            //         this.tableData = res.data.records;
            //         this.totalNum = res.data.total;
            //     })
        },
        // 设置表格斑马纹
        tableRowClassName({ row, rowIndex }) {
src/views/systemSetting/baseSetting/role/index.vue
@@ -57,7 +57,7 @@
                                <span class="line">|</span>
                                <span @click="handleStop(scope.row)">停用</span>
                                <span class="line">|</span>
                                <span @click="handleDelete(scope.row)">删除</span>
                                <span @click="handleDelete([scope.row.id])">删除</span>
                            </div>
                        </template>
                    </el-table-column>
@@ -118,6 +118,7 @@
            all: false,
            unsame: false,
            myIdx: 0,
            preMyIdx: 0,
            options: [
                {
                    value: 0,
@@ -145,11 +146,25 @@
    },
    methods: {
        selectChange(list) {
            console.log(list);
            console.log(this.tempList);
            if (this.tempList.length !== 0) {
                if (list === 3) {
                    this.preMyIdx = list;
                    this.handleDelete(this.tempList);
                }
            } else {
                this.myIdx = this.preMyIdx;
                this.$message({
                    type: 'warning',
                    message: '您还没选中任何数据',
                })
            }
        },
        tableChange(list) {
            this.tempList = list;
            this.tempList = [];
            list.forEach(item => {
                this.tempList.push(item.id);
            })
            if (list.length === this.tableData.length) {
                this.all = true;
            } else {
@@ -160,27 +175,26 @@
            return helper(createTime);
        },
        selectAll() {
            this.$refs.multipleTable.toggleAllSelection();
        },
        disSame(list) {
            // console.log(this.$refs.multipleTable);
            // const row = this.$refs.table.data
            list.forEach(row => {
                this.$refs.multipleTable.toggleRowSelection(row)
            })
        },
        handleDelete({ id }) {
        handleDelete(id) {
            const that = this;
            let arr = [];
            arr.push(id);
            // let arr = [];
            // arr.push(id);
            this.$confirm('确认删除?')
                .then(_ => {
                    that.$axios({
                        method: 'post',
                        url: 'sccg/role/delete?ids=' + arr,
                        url: 'sccg/role/delete?ids=' + id,
                    })
                        .then(res => {
                            this.myIdx = 0;
                            this.preMyIdx = 0;
                            console.log(res);
                            this.$message({
                                type: 'success',
@@ -295,7 +309,10 @@
        },
        changeDialog(val) {
            this.dialogUpdate = val.dialogUpdate;
            console.log(val);
            this.$message({
                type:'success',
                message:'更改成功',
            })
        },
        handleClose(done) {
            this.$confirm('确认关闭?')
src/views/systemSetting/baseSetting/role/updateUser/index.vue
@@ -2,36 +2,19 @@
    <div class="updateUser">
        <main>
            <div class="mainContent">
                <el-form ref="user" label-width="140px" autoComplete="on" :model="role" :rules="createRoleRules"
                    label-position="right">
                    <!-- 角色名称 -->
                    <el-form-item class="optionItem" label="角色名称:" prop="name">
                        <el-input v-model="role.name" placeholder="请填写角色名称" :disabled="!updateFlag"></el-input>
                    </el-form-item>
                    <!-- 角色类型 -->
                    <el-form-item class="optionItems" label="角色类型:" prop="sort">
                        <!-- <el-input v-model="role.sort" placeholder="请选择角色类型" :disabled="!updateFlag"></el-input> -->
                        <el-select v-model="role.sort" placeholder="请选择角色类型">
                            <!-- v-for="item in roleList" :key="item.id" :label="item.departName"
                                :value="item.id" -->
                            <el-option :value="treeId" :label="treeLabel">
                                <el-tree :data="roleList" :props="defaultProps" @node-click="handleNodeClick"></el-tree>
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <!-- 角色描述 -->
                    <el-form-item class="optionItem" label="角色描述:" prop="description">
                        <el-input type="textarea" v-model="role.description" placeholder="请输入描述内容200字以内"
                            :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 class="my-tree">
                    <div class="my-tree__wrap">
                        <el-tree :data="roleList" :props="defaultProps" @node-click="handleNodeClick" show-checkbox
                            @check-change="handleCheckChange" default-expand-all node-key="id">
                        </el-tree>
                    </div>
                    <div class="my-tree__bottom"></div>
                    <div class="my-tree__right"></div>
                </div>
                <div class="selection">
                    <el-button class="cancel" @click="resetRole">取消</el-button>
                    <el-button class="save" @click="saveRole">保存</el-button>
                </div>
            </div>
        </main>
    </div>
@@ -39,65 +22,25 @@
<script>
export default {
    data() {
        const validateNickname = (rule, value, callback) => {
            if (!value) {
                callback(new Error("请填写角色名称"));
            } else {
                callback();
            }
        };
        const validatePass = (rule, value, callback) => {
            if (!value) {
                callback();
            } else {
                // const rep = /^\w+$/;
                // if (!rep.test(value)) {
                //     callback(new Error("密码只能是以数字、26个英文字母或者下划线组成的字符串"));
                // }
                callback();
            }
        };
        const validateTruename = (rule, value, callback) => {
            if (value) {
                callback();
            } else {
                // const rep = /^[\u4E00-\u9FA5]{2,4}$/;
                // if (!rep.test(value)) {
                //     callback("请输入正确的用户姓名");
                // }
                callback();
            }
        };
        return {
            role: {
                name: '',
                sort: '',
                description: '',
            },
            createRoleRules: {
                name: [
                    { required: true, trigger: "blur", validator: validateNickname },
                ],
                sort: [
                    { required: false, trigger: "blur", validator: validatePass },
                ],
                description: [
                    { required: false, trigger: "blur", validator: validateTruename },
                ],
            },
            roleList: [],
            defaultProps: {
                children: 'children',
                label: 'title'
            },
            treeLabel:'',
            treeId:23
            treeLabel: '',
            treeId: 23,
            checkedIds: [],
            resCheckedIds: [],
        }
    },
    created() {
        const that = this;
        this.userInfo.status ? this.userInfo.status = 1 : this.userInfo.status = 0;
        this.role = JSON.parse(JSON.stringify(that.userInfo));
        this.getMenuList();
    },
    methods: {
@@ -133,12 +76,38 @@
                })
        },
        // 点击树节点
        handleNodeClick({title,id}) {
        handleNodeClick({ title, id }) {
            // console.log(obj);
            this.role.sort = title;
            this.treeLabel = title;
            this.treeId = id;
        },
        // 树形控件选中更改
        handleCheckChange(data, checked, indeterminate) {
            // console.log(data,checked,indeterminate);
            if (checked) {
                this.checkedIds.push(data.id);
            } else {
                let index = 0;
                this.checkedIds.forEach((item, idx) => {
                    if (item.id === data.id) {
                        index = idx;
                    }
                })
                this.checkedIds.splice(index, 1);
            }
            console.log(this.checkedIds);
        },
        // 保存role
        saveRole() {
            this.resCheckedIds = [];
            this.resCheckedIds = this.checkedIds;
            this.$emit('changeDialog',{dialogUpdate:false});
        },
        // 消除role
        resetRole() {
            this.resCheckedIds = []
        }
    },
    props: ['userInfo', 'updateFlag', 'getUserList', 'changeDialog']
@@ -148,49 +117,39 @@
.updateUser {
    border-radius: 1px;
    background-color: #09152f;
    main {
        // border: 1px solid #fff;
        text-align: left;
        padding: 0 55px;
        padding: 50px 55px;
        background-color: #09152f;
        padding-bottom: 50px;
        .mainContent {
            display: flex;
            justify-content: center;
            padding-top: 50px;
            .el-form-item__content {
                width: 400px;
                .el-select {
            .my-tree {
                height: 200px;
                overflow: hidden;
                background-color: #17324c;
                position: relative;
                border-radius: 4px;
                .my-tree__wrap{
                    overflow: scroll;
                    height: 200px;
                }
                .my-tree__bottom{
                    position: absolute;
                    left: 0px;
                    bottom: 0px;
                    background-color: #17324c;
                    width: 100%;
                    height: 20px;
                    border-bottom-left-radius: 4px;
                }
                .my-tree__right{
                    position: absolute;
                    right: 0px;
                    top: 0px;
                    background-color: #17324c;
                    width: 20px;
                    height: 100%;
                }
            }
            .optionHandleSp {
                display: flex;
                .areaNumber,
                .moreNumber {
                    flex: 1;
                }
                .telNumber {
                    flex: 2;
                }
            }
            .optionBtn {
                display: flex;
                margin-top: 20px;
                .btn {
                    padding: 12px 50px;
                }
            }
        }
    }
@@ -199,14 +158,29 @@
        border: 1px solid #17324c;
    }
    ::v-deep .el-form-item__label {
        color: #4b9bb7;
    }
    ::v-deep .el-input__inner {
        background-color: #09152f;
        border: 1px solid #17324c;
    }
}
.selection {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    .el-button {
        padding: 10px 20px;
        border-radius: 4px;
    }
    .save {
        background-color: #409eff;
        color: #fff;
    }
    .cancel {
        background-color: #09152f;
        color: #4b9bb7;
    }
}
</style>