8个文件已修改
3 文件已复制
10个文件已添加
5 文件已重命名
| New file |
| | |
| | | <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">{{baseCase.category}}</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">{{baseCase.streetId}}</span> |
| | | </div> |
| | | </div> |
| | | <div class="data-item"> |
| | | <div class="data-item__left"> |
| | | <label class="data-title"> |
| | | 事发地点: |
| | | </label> |
| | | <span class="data-detail">{{baseCase.site}}</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">{{baseCase.createUser}}</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" :handlePassVo="handlePassVo"></MyProcess> |
| | | <MyFilePicture v-else-if="activeIndex === 2" :currentSitVo="currentSitVo" ></MyFilePicture> |
| | | <MySovleProblem v-else-if="activeIndex === 3" :problemProVo="problemProVo"></MySovleProblem> |
| | | <MyScene v-else></MyScene> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import MyProcess from '@/components/process' |
| | | import MyFilePicture from '@/components/filePictrue' |
| | | import MySovleProblem from '@/components/solveProblem' |
| | | import MyScene from '@/components/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, |
| | | }, |
| | | ], |
| | | baseCase:{}, |
| | | handlePassVo:{}, |
| | | currentSitVo:{}, |
| | | problemProVo:{}, |
| | | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log('created'); |
| | | const {info} = this; |
| | | this.baseCase = info.baseCase; |
| | | this.handlePassVo = info.handlePassVo; |
| | | this.currentSitVo = info.currentSitVo; |
| | | this.problemProVo = info.currentSitVo; |
| | | console.log(info); |
| | | }, |
| | | 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> |
copy from src/views/operate/disposal/casepool/escalation/updateUser/filePictrue/index.vue
copy to src/components/filePictrue/index.vue
| New file |
| | |
| | | <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', |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | props:['handlePassVo'], |
| | | created(){ |
| | | console.log('process'); |
| | | console.log(this.handlePassVo); |
| | | } |
| | | } |
| | | </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> |
copy from src/views/operate/disposal/casepool/escalation/updateUser/scene/index.vue
copy to src/components/scene/index.vue
copy from src/views/operate/disposal/casepool/escalation/updateUser/solveProblem/index.vue
copy to src/components/solveProblem/index.vue
| | |
| | | path: '/home', |
| | | name: 'home', |
| | | component: () => import('@/views/layout'), |
| | | meta:{ |
| | | needLogin:true, |
| | | meta: { |
| | | needLogin: true, |
| | | }, |
| | | children: [ |
| | | { |
| | |
| | | path: 'rectification', |
| | | name: 'rectification', |
| | | component: () => import('@/views/operate/rectification'), |
| | | children:[ |
| | | children: [ |
| | | { |
| | | path:"taskList", |
| | | name:'taskList', |
| | | path: "taskList", |
| | | name: 'taskList', |
| | | component: () => import('@/views/operate/rectification/taskList'), |
| | | }, |
| | | { |
| | | path:"surveyList", |
| | | name:'surveyList', |
| | | path: "surveyList", |
| | | name: 'surveyList', |
| | | component: () => import('@/views/operate/rectification/surveyList'), |
| | | }, |
| | | { |
| | | path:"renovationList", |
| | | name:'renovationList', |
| | | path: "renovationList", |
| | | name: 'renovationList', |
| | | component: () => import('@/views/operate/rectification/renovationList'), |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path:'lawEnforcement', |
| | | name:'lawEnforcement', |
| | | component:()=>import('@/views/operate/lawEnforcement') |
| | | path: 'lawEnforcement', |
| | | name: 'lawEnforcement', |
| | | component: () => import('@/views/operate/lawEnforcement') |
| | | }, |
| | | { |
| | | path: 'management', |
| | | name: 'management', |
| | | component: () => import('@/views/operate/management'), |
| | | redirect:'/home/operate/management/myIndex', |
| | | children: [ |
| | | { |
| | | path: 'myIndex', |
| | | name: 'myIndex', |
| | | component: () => import('@/views/operate/management/myIndex'), |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | }, |
| | |
| | | <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/management">审核管理</el-menu-item> |
| | | <el-menu-item index="/home/operate/myWait">我的待办</el-menu-item> |
| | | <el-submenu index="/home/operate/rectification" class="secondMenu"> |
| | | <template slot="title"> |
| New file |
| | |
| | | <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> |
| | |
| | | <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> |
| | | </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="code" label="事件编号" min-width="10"> |
| | | <template slot-scope="scope"> |
| | | <el-link @click="JumpView(scope.row)">{{scope.row.code}}</el-link> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="eventSource" label="问题来源" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="category" label="大类名称" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="小类名称" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="actionCause" label="案由" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="site" label="报警点位" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="streetId" label="所属区域" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="alarmTime" label="报警时间" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="continueTime" label="持续时间" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="operation" label="操作" min-width="20"> |
| | | <template> |
| | | <div class="btn"> |
| | | <span>调度</span> |
| | | <span class="line">|</span> |
| | | <span @click="opernDialog">上传处置结果</span> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- 查看修改页面 --> |
| | | <el-dialog :visible.sync="dialogUpdate" width="80%" title="基础信息(人工)" |
| | | v-if="dialogUpdate" :before-close="handleClose"> |
| | | <updateUser :info=info /> |
| | | </el-dialog> |
| | | <!-- 上传页面 --> |
| | | <el-dialog :visible.sync="dialogUpload" width="45%" title="上传处置结果" |
| | | v-if="dialogUpload" :before-close="handleClose"> |
| | | <!-- <uploadVio></uploadVio>违规 --> |
| | | <uploadIll></uploadIll> |
| | | </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" |
| | | import uploadVio from './updateUser/uploadResult/vio' |
| | | import uploadIll from "./updateUser/uploadResult/ill" |
| | | export default { |
| | | components: { |
| | | // checkIn, |
| | | updateUser,uploadVio,uploadIll |
| | | }, |
| | | data() { |
| | | return { |
| | | tagList: [ |
| | | // { |
| | | // name: '待处理', |
| | | // value: 0, |
| | | // }, |
| | | // { |
| | | // name: '已上报', |
| | | // value: 0, |
| | | // }, |
| | | // { |
| | | // name: '已调度', |
| | | // value: 0, |
| | | // }, |
| | | // { |
| | | // name: '在学习', |
| | | // value: 0, |
| | | // }, |
| | | // { |
| | | // name: '暂不处理', |
| | | // value: 0, |
| | | // }, |
| | | tableData: [], |
| | | context: "", |
| | | dialogUpload:false, |
| | | 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: [ |
| | | tagList: [ |
| | | { |
| | | id: 13413114, |
| | | source: '人工上报/视频巡查', |
| | | appendTime: '2022-01-09 14:52' |
| | | } |
| | | name: '待处理', |
| | | value: 7, |
| | | checked: true |
| | | }, |
| | | { |
| | | name: '已上报', |
| | | value: 1, |
| | | checked: false |
| | | }, |
| | | { |
| | | name: '已调度', |
| | | value: 3, |
| | | checked: false |
| | | }, |
| | | { |
| | | name: '在学习', |
| | | value: 4, |
| | | checked: false |
| | | }, |
| | | { |
| | | name: '暂不处理', |
| | | value: 4, |
| | | checked: false |
| | | }, |
| | | ], |
| | | visible: false, |
| | | statusArr:[], |
| | | } |
| | | }, |
| | | created() { |
| | | this.tagList.forEach(item => { |
| | | if (item.checked) { |
| | | this.statusArr[0] = item.value; |
| | | } |
| | | }) |
| | | this.typeList.forEach(item => { |
| | | if (item.checked) { |
| | | this.statusArr[1] = item.value; |
| | | } |
| | | }) |
| | | 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, statusArr } = this; |
| | | console.log(statusArr); |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: `sccg/base-case/query/${statusArr[1]}?state=${statusArr[0]}¤t=${currentPage}&size=${pageSize}&resource=2` |
| | | }).then(res => { |
| | | this.totalNum = res.data.total; |
| | | this.tableData = res.data.records; |
| | | console.log(res); |
| | | }) |
| | | }, |
| | | // 更改违规/违建 |
| | | 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) { |
| | |
| | | } |
| | | 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.dialogUpload = false; |
| | | this.dialogUpdate = false; |
| | | done(); |
| | | }) |
| | | .catch(_ => { }); |
| | | }, |
| | | async JumpView(data){ |
| | | await this.getEventInfo(data.code); |
| | | this.dialogView = true; |
| | | }, |
| | | // 获取案件信息 |
| | | getEventInfo(code){ |
| | | this.$axios({ |
| | | method:'get', |
| | | url:`sccg/base-case/baseCaseDetail/${code}` |
| | | }) |
| | | .then(res=>{ |
| | | this.info = res.data; |
| | | }) |
| | | }, |
| | | opernDialog(){ |
| | | this.dialogUpload = true; |
| | | } |
| | | } |
| | | } |
| | | </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; |
| | | } |
| | | } |
| | | .line{ |
| | | padding: 0 5px; |
| | | } |
| | | &::v-deep .el-dialog__header, |
| | | &::v-deep .el-dialog__body { |
| | | background-color: #06122c; |
| | | } |
| | | |
| | | footer { |
| | | &::v-deep .el-dialog__header { |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #fff; |
| | | padding: 20px; |
| | | line-height: 60px; |
| | | } |
| | | |
| | | &::v-deep .el-dialog__header, |
| | | &::v-deep .el-dialog__body { |
| | | background-color: #06122c; |
| | | } |
| | | &::v-deep .el-dialog__title { |
| | | color: #4b9bb7; |
| | | } |
| | | |
| | | &::v-deep .el-dialog__header { |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #fff; |
| | | padding: 20px; |
| | | line-height: 60px; |
| | | } |
| | | &::v-deep .el-dialog__close { |
| | | width: 20px; |
| | | height: 20px; |
| | | // color: #fff; |
| | | } |
| | | |
| | | &::v-deep .el-dialog__title { |
| | | color: #4b9bb7; |
| | | } |
| | | |
| | | &::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> |
| New file |
| | |
| | | <template> |
| | | <div class="vio"> |
| | | <div class="arrive"> |
| | | <div class="arrive-title">到大现场情况</div> |
| | | <div class="arrive-form"> |
| | | <el-form ref="arriveForm" label-width="160px" :model="arrive" :rules="arriveRules" autoComplete="on"> |
| | | <!-- 到达时间 --> |
| | | <el-form-item label="到达时间" prop="arriveTime"> |
| | | <el-input v-model="arrive.arriveTime"></el-input> |
| | | </el-form-item> |
| | | <!-- 到达地址 --> |
| | | <el-form-item label="到达地址" prop="arriveAddr"> |
| | | <el-input v-model="arrive.arriveAddr"></el-input> |
| | | </el-form-item> |
| | | <!-- 现场情况说明 --> |
| | | <el-form-item label="现场情况说明" prop="arriveCondition"> |
| | | <el-input type="textarea" v-model="arrive.arriveCondition"></el-input> |
| | | </el-form-item> |
| | | <!-- 信访回复说明 --> |
| | | <el-form-item label="信访回复说明" prop="arriveLetter"> |
| | | <el-input v-model="arrive.arriveLetter"></el-input> |
| | | </el-form-item> |
| | | <!-- 现场情况照片 --> |
| | | <el-form-item label="现场情况照片" prop="arrivePhoto"> |
| | | <el-input v-model="arrive.arrivePhoto"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div class="evidence"> |
| | | <div class="evidence-title">调查取证</div> |
| | | <div class="evidence-form"> |
| | | <el-form ref="evidenceForm" label-width="160px" :model="evidence" :rules="evidenceRules" |
| | | autoComplete="on"> |
| | | <!-- 文书种类 --> |
| | | <el-form-item label="文书种类" prop="team"> |
| | | <el-input v-model="evidence.team"></el-input> |
| | | </el-form-item> |
| | | <!-- 协办队员 --> |
| | | <el-form-item label="协办队员" prop="helper"> |
| | | <el-input v-model="evidence.helper"></el-input> |
| | | </el-form-item> |
| | | <!-- 时间 --> |
| | | <el-form-item label="时间" prop="time"> |
| | | <el-input v-model="evidence.time"></el-input> |
| | | </el-form-item> |
| | | <!-- 地址 --> |
| | | <el-form-item label="地址" prop="address"> |
| | | <el-input v-model="evidence.address"></el-input> |
| | | </el-form-item> |
| | | <!-- 案由 --> |
| | | <el-form-item label="案由" prop="cause"> |
| | | <el-input v-model="evidence.cause"></el-input> |
| | | </el-form-item> |
| | | <!-- 文书种类 --> |
| | | <el-form-item label="文书种类" prop="team"> |
| | | <el-input v-model="evidence.team"></el-input> |
| | | </el-form-item> |
| | | <!-- 当事人信息 --> |
| | | <el-form-item label="当事人信息" prop="appender"> |
| | | <el-input v-model="evidence.appender"></el-input> |
| | | </el-form-item> |
| | | <!-- 情况描述 --> |
| | | <el-form-item label="情况描述" prop="description"> |
| | | <el-input v-model="evidence.description"></el-input> |
| | | </el-form-item> |
| | | <!-- 照片附件 --> |
| | | <el-form-item label="照片附件" prop="photo"> |
| | | <el-input v-model="evidence.photo"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div class="book"> |
| | | <div class="book-title">文种书类</div> |
| | | <div class="book-form"> |
| | | <el-form ref="bookForm" label-width="160px" :model="book" :rules="bookRules" |
| | | autoComplete="on"> |
| | | <!-- 文书种类 --> |
| | | <el-form-item label="文书种类" prop="kind"> |
| | | <el-input v-model="book.kind"></el-input> |
| | | </el-form-item> |
| | | <!-- 文书编号 --> |
| | | <el-form-item label="文书编号" prop="id"> |
| | | <el-input v-model="book.id"></el-input> |
| | | </el-form-item> |
| | | <!-- 违法类型 --> |
| | | <el-form-item label="违法类型" prop="vioKind"> |
| | | <el-input v-model="book.vioKind"></el-input> |
| | | </el-form-item> |
| | | <!-- 文书发放时间 --> |
| | | <el-form-item label="文书发放时间" prop="giveTime"> |
| | | <el-input v-model="book.giveTime"></el-input> |
| | | </el-form-item> |
| | | <!-- 文书限定时间 --> |
| | | <el-form-item label="文书限定时间" prop="limitTime"> |
| | | <el-input v-model="book.limitTime"></el-input> |
| | | </el-form-item> |
| | | <!-- 文书发放内容 --> |
| | | <el-form-item label="文书发放内容" prop="content"> |
| | | <el-input v-model="book.content"></el-input> |
| | | </el-form-item> |
| | | <!-- 实际整改时间 --> |
| | | <el-form-item label="实际整改时间" prop="updateTime"> |
| | | <el-input v-model="book.updateTime"></el-input> |
| | | </el-form-item> |
| | | <!-- 整改情况 --> |
| | | <el-form-item label="整改情况" prop="condition"> |
| | | <el-input v-model="book.condition"></el-input> |
| | | </el-form-item> |
| | | <!-- 备注 --> |
| | | <el-form-item label="备注" prop="note"> |
| | | <el-input v-model="book.note"></el-input> |
| | | </el-form-item> |
| | | <!-- 文书照片上传 --> |
| | | <el-form-item label="文书照片上传" prop="bookPhoto"> |
| | | <el-input v-model="book.bookPhoto"></el-input> |
| | | </el-form-item> |
| | | <!-- 整改前照片 --> |
| | | <el-form-item label="整改前照片" prop="beforeUpdate"> |
| | | <el-input v-model="book.beforeUpdate"></el-input> |
| | | </el-form-item> |
| | | <!-- 整改后照片 --> |
| | | <el-form-item label="整改后照片" prop="afterUpdate"> |
| | | <el-input v-model="book.afterUpdate"></el-input> |
| | | </el-form-item> |
| | | <!-- 其他照片 --> |
| | | <el-form-item label="其他" prop="other"> |
| | | <el-input v-model="book.other"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div class="footer"> |
| | | <el-button>确定</el-button> |
| | | <el-button>返回</el-button> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | arrive: { |
| | | |
| | | }, |
| | | arriveRules: { |
| | | |
| | | }, |
| | | evidence: { |
| | | |
| | | }, |
| | | evidenceRules: { |
| | | |
| | | }, |
| | | book:{ |
| | | |
| | | }, |
| | | bookRules:{ |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .vio { |
| | | padding: 50px 100px; |
| | | |
| | | .arrive-title, |
| | | .evidence-title { |
| | | line-height: 40px; |
| | | font-weight: 650; |
| | | font-size: 20px; |
| | | width: 160px; |
| | | padding-right: 12px; |
| | | text-align: right; |
| | | color: #4b9bb7; |
| | | } |
| | | |
| | | .footer { |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | } |
| | | |
| | | ::v-deep .el-input__inner { |
| | | background-color: #09152f; |
| | | border: 1px solid #17324c; |
| | | } |
| | | |
| | | ::v-deep .el-textarea__inner { |
| | | background-color: #09152f; |
| | | border: 1px solid #17324c; |
| | | } |
| | | |
| | | ::v-deep .el-form-item__label { |
| | | color: #4b9bb7; |
| | | } |
| | | } |
| | | </style> |
| New file |
| | |
| | | <template> |
| | | <div class="vio"> |
| | | <div class="arrive"> |
| | | <div class="arrive-title">到大现场情况</div> |
| | | <div class="arrive-form"> |
| | | <el-form ref="arriveForm" label-width="160px" :model="arrive" :rules="arriveRules" autoComplete="on"> |
| | | <!-- 到达时间 --> |
| | | <el-form-item label="到达时间" prop="arriveTime"> |
| | | <el-input v-model="arrive.arriveTime"></el-input> |
| | | </el-form-item> |
| | | <!-- 到达地址 --> |
| | | <el-form-item label="到达地址" prop="arriveAddr"> |
| | | <el-input v-model="arrive.arriveAddr"></el-input> |
| | | </el-form-item> |
| | | <!-- 现场情况说明 --> |
| | | <el-form-item label="现场情况说明" prop="arriveCondition"> |
| | | <el-input type="textarea" v-model="arrive.arriveCondition"></el-input> |
| | | </el-form-item> |
| | | <!-- 信访回复说明 --> |
| | | <el-form-item label="信访回复说明" prop="arriveLetter"> |
| | | <el-input v-model="arrive.arriveLetter"></el-input> |
| | | </el-form-item> |
| | | <!-- 现场情况照片 --> |
| | | <el-form-item label="现场情况照片" prop="arrivePhoto"> |
| | | <el-input v-model="arrive.arrivePhoto"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div class="evidence"> |
| | | <div class="evidence-title">调查取证</div> |
| | | <div class="evidence-form"> |
| | | <el-form ref="evidenceForm" label-width="160px" :model="evidence" :rules="evidenceRules" autoComplete="on"> |
| | | <!-- 承办队员 --> |
| | | <el-form-item label="承办队员" prop="team"> |
| | | <el-input v-model="evidence.team"></el-input> |
| | | </el-form-item> |
| | | <!-- 协办队员 --> |
| | | <el-form-item label="协办队员" prop="helper"> |
| | | <el-input v-model="evidence.helper"></el-input> |
| | | </el-form-item> |
| | | <!-- 时间 --> |
| | | <el-form-item label="时间" prop="time"> |
| | | <el-input v-model="evidence.time"></el-input> |
| | | </el-form-item> |
| | | <!-- 地址 --> |
| | | <el-form-item label="地址" prop="address"> |
| | | <el-input v-model="evidence.address"></el-input> |
| | | </el-form-item> |
| | | <!-- 案由 --> |
| | | <el-form-item label="案由" prop="cause"> |
| | | <el-input v-model="evidence.cause"></el-input> |
| | | </el-form-item> |
| | | <!-- 承办队员 --> |
| | | <el-form-item label="承办队员" prop="team"> |
| | | <el-input v-model="evidence.team"></el-input> |
| | | </el-form-item> |
| | | <!-- 当事人信息 --> |
| | | <el-form-item label="当事人信息" prop="appender"> |
| | | <el-input v-model="evidence.appender"></el-input> |
| | | </el-form-item> |
| | | <!-- 情况描述 --> |
| | | <el-form-item label="情况描述" prop="description"> |
| | | <el-input v-model="evidence.description"></el-input> |
| | | </el-form-item> |
| | | <!-- 照片附件 --> |
| | | <el-form-item label="照片附件" prop="photo"> |
| | | <el-input v-model="evidence.photo"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div class="footer"> |
| | | <el-button>确定</el-button> |
| | | <el-button>返回</el-button> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | arrive:{ |
| | | |
| | | }, |
| | | arriveRules:{ |
| | | |
| | | }, |
| | | evidence:{ |
| | | |
| | | }, |
| | | evidenceRules:{ |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .vio{ |
| | | padding: 50px 100px; |
| | | .arrive-title,.evidence-title{ |
| | | line-height: 40px; |
| | | font-weight: 650; |
| | | font-size: 20px; |
| | | width: 160px; |
| | | padding-right: 12px; |
| | | text-align: right; |
| | | color: #4b9bb7; |
| | | } |
| | | .footer{ |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | } |
| | | ::v-deep .el-input__inner{ |
| | | background-color: #09152f; |
| | | border: 1px solid #17324c; |
| | | } |
| | | ::v-deep .el-textarea__inner{ |
| | | background-color: #09152f; |
| | | border: 1px solid #17324c; |
| | | } |
| | | ::v-deep .el-form-item__label{ |
| | | color:#4b9bb7; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import updateUser from "./updateUser" |
| | | import updateUser from "@/components/detail" |
| | | export default { |
| | | components: { |
| | | updateUser |
| | |
| | | <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-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> --> |
| | | <!-- 大类名称 --> |
| | | <el-form-item class="optionItems" label="大类名称:" prop="categoryId"> |
| | | <el-select v-model="vio.categoryId" placeholder="请选择大类名称"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- 事件等级 --> |
| | | <el-form-item class="optionItems" label="事件等级:" prop="status"> |
| | | <el-select v-model="vio.level" placeholder="请选择案件等级"> |
| | | <el-form-item class="optionItems" label="事件等级:" prop="gradeId"> |
| | | <el-select v-model="vio.gradeId" placeholder="请选择案件等级"> |
| | | <el-option v-for="item in eventLevelList" :key="item.id" :label="item.name" :value="item.id" |
| | | :disabled="item.disabled"> |
| | | </el-option> |
| | |
| | | }; |
| | | 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//小类 |
| | | actionCause:"dasdas",//案由 |
| | | carNumber:"川k123456",//车牌号 |
| | | // category:1,//1:违规2:违建 |
| | | categoryId:0,//大类 |
| | | communityId:0,//所属社区 |
| | | description:"大撒大撒",//问题描述 |
| | | informant:"大苏打",//反映人 |
| | | informantIdCard:"51102519910082831",//身份证号码 |
| | | informantPhoneCode:"17844631885",//反映人联系方式 |
| | | linkShop:0,//是否关联商铺(0否1是) |
| | | shopName:"",//关联商铺名称 |
| | | site:'新地方',//事发地点 |
| | | streetId:0,//所属街道 |
| | | typeId:0,//小类 |
| | | gradeId:'' |
| | | }, |
| | | createRoleRules: { |
| | | name: [ |
| | |
| | | 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(); |
| | | }, |
| | |
| | | url: 'sccg/violations/query/type_second' |
| | | }) |
| | | .then(res => { |
| | | console.log(res); |
| | | this.smallKindList = res.data; |
| | | }) |
| | | }, |
| | |
| | | url: 'sccg/violations/query/event_type' |
| | | }) |
| | | .then(res => { |
| | | console.log(res); |
| | | this.eventLevelList = res.data; |
| | | }) |
| | | }, |
| | |
| | | // 提交注册信息 |
| | | handleSubmit() { |
| | | const { vio } = this; |
| | | console.log(vio); |
| | | this.$axios({ |
| | | method:'post', |
| | | url:'sccg/base-case/addition_violation', |
| | | data:vio |
| | | }) |
| | | .then(res=>{ |
| | | console.log(res); |
| | | if(res.code === 200){ |
| | | this.$message({ |
| | | type:'success', |
| | | message:res.message |
| | | }) |
| | | this.$emit('changeDialog',{dialogView:false}); |
| | | }else{ |
| | | this.$message({ |
| | | type:'warning', |
| | | message:res.message, |
| | | }) |
| | | } |
| | | }) |
| | | // 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'] |
| | | props: ['mytype','changeDialog'] |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | |
| | | <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 /> |
| | | <MyIll v-if="newAddType === 1" :mytype=newAddType @changeDialog=changeDialog /> |
| | | <myVio v-else :mytype=newAddType @changeDialog=changeDialog /> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | |
| | | @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="code" label="事件编号" min-width="10"> |
| | | <template slot-scope="scope"> |
| | | <el-link @click="JumpView(scope.row)">{{scope.row.code}}</el-link> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="typeThird" label="问题来源" min-width="10"> |
| | | <el-table-column prop="eventSource" label="问题来源" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="typeSecond" label="大类名称" min-width="10"> |
| | | <el-table-column prop="category" label="大类名称" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="typeFirst" label="小类名称" min-width="10"> |
| | | <el-table-column prop="type" label="小类名称" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="案由" min-width="10"> |
| | | <el-table-column prop="actionCause" label="案由" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="报警点位" min-width="10"> |
| | | <el-table-column prop="site" label="报警点位" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="所属区域" min-width="10"> |
| | | <el-table-column prop="streetId" label="所属区域" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="报警时间" min-width="10"> |
| | | <el-table-column prop="alarmTime" label="报警时间" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="持续时间" min-width="10"> |
| | | <el-table-column prop="continueTime" label="持续时间" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="operation" label="操作" min-width="20"> |
| | | <template slot-scope="scope"> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- 查看修改页面 --> |
| | | <el-dialog :visible.sync="dialogUpdate" width="45%" :title="updateFlag ? '权限设置' :'查看角色信息'" |
| | | v-if="dialogUpdate" :before-close="handleClose"> |
| | | <updateUser :updateFlag="updateFlag" :userInfo=userInfo |
| | | :getUserList=" context ? getUserList : getUserList" @changeDialog="changeDialog" /> |
| | | <!-- 详情页展示 --> |
| | | <el-dialog :visible.sync="dialogView" width="80%" title="基础信息(人工)" |
| | | v-if="dialogView" :before-close="handleClose"> |
| | | <!-- <updateUser :updateFlag="updateFlag" :userInfo=userInfo |
| | | :getUserList=" context ? getUserList : getUserList" @changeDialog="changeDialog" /> --> |
| | | <MyDetail :info=info ></MyDetail> |
| | | </el-dialog> |
| | | <!-- tools --> |
| | | <div class="tools"> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import updateUser from "./updateUser" |
| | | // import updateUser from "./updateUser" |
| | | import MyDetail from '@/components/detail' |
| | | import createUser from "./createUser" |
| | | import MyIll from './createUser/ill' |
| | | import MyVio from './createUser/vio' |
| | | export default { |
| | | components: { |
| | | updateUser, createUser,MyIll,MyVio |
| | | // updateUser |
| | | createUser,MyIll,MyVio,MyDetail |
| | | }, |
| | | data() { |
| | | return { |
| | | tableData: [], |
| | | tableData: [ |
| | | // { |
| | | // code:1, |
| | | // eventSource:1, |
| | | // category:1, |
| | | // type:1, |
| | | // actionCause:'案由1111', |
| | | // site:'你好', |
| | | // streetId:1, |
| | | // alarmTime:'2022-21-20', |
| | | // continueTime:'8小时', |
| | | // } |
| | | ], |
| | | context: "", |
| | | dialogCreate: false, |
| | | dialogUpdate: false, |
| | | dialogView: false, |
| | | dialogNewAdd:false, |
| | | newAddType:0, |
| | | updateFlag: false, |
| | | userInfo: '', |
| | | totalNum: null, |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | all: false, |
| | | unsame: false, |
| | | myIdx: 0, |
| | | info:{}, |
| | | options: [ |
| | | { |
| | | value: 0, |
| | |
| | | this.dialogCreate = flag; |
| | | this.dialogNewAdd = true; |
| | | this.newAddType = type; |
| | | console.log(flag,type); |
| | | }, |
| | | // 批量删除 |
| | | mulDelete(idArr) { |
| | |
| | | console.log(statusArr); |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: `sccg/base-case/query/${statusArr[1]}?state=${statusArr[0]}¤t=${currentPage}&size=${pageSize}&resource=1` |
| | | url: `sccg/base-case/query/${statusArr[1]}?state=${statusArr[0]}¤t=${currentPage}&size=${pageSize}&resource=2` |
| | | }).then(res => { |
| | | this.totalNum = res.data.total; |
| | | this.tableData = res.data.records; |
| | | console.log(res); |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | // 查看用户信息(不可修改) |
| | | handleFind(rowData) { |
| | | this.dialogUpdate = true; |
| | | this.dialogView = true; |
| | | this.updateFlag = false; |
| | | this.userInfo = rowData; |
| | | }, |
| | |
| | | this.getUserList(); |
| | | }, |
| | | changeDialog(val) { |
| | | this.dialogUpdate = val.dialogUpdate; |
| | | console.log(val); |
| | | this.dialogNewAdd = val.dialogView; |
| | | this.dialogCreate = val.dialogView; |
| | | this.dialogView = val.dialogView; |
| | | this.getUserList(); |
| | | }, |
| | | handleClose(done) { |
| | | this.$confirm('确认关闭?') |
| | | .then(_ => { |
| | | this.dialogCreate = false; |
| | | this.dialogUpdate = false; |
| | | this.dialogView = false; |
| | | done(); |
| | | }) |
| | | .catch(_ => { }); |
| | |
| | | } |
| | | }) |
| | | }, |
| | | async JumpView(data){ |
| | | await this.getEventInfo(data.code); |
| | | this.dialogView = true; |
| | | }, |
| | | // 获取案件信息 |
| | | getEventInfo(code){ |
| | | this.$axios({ |
| | | method:'get', |
| | | url:`sccg/base-case/baseCaseDetail/${code}` |
| | | }) |
| | | .then(res=>{ |
| | | this.info = res.data; |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| New file |
| | |
| | | <template> |
| | | <router-view></router-view> |
| | | </template> |
| New file |
| | |
| | | <template> |
| | | <div class="userList"> |
| | | <header> |
| | | <div class="problem"> |
| | | <el-radio-group v-model="radio"> |
| | | <el-radio :label="1">违规</el-radio> |
| | | <el-radio :label="2">违建</el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | </header> |
| | | <main> |
| | | <div class="mainContent"> |
| | | <!-- 数据展示 --> |
| | | <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="name" label="角色名称" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="sort" label="角色类型" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="adminCount" label="默认角色" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="description" label="备注" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="启用" min-width="5"> |
| | | <template slot-scope="scope"> |
| | | <el-switch class="switchStyle" v-model="scope.row.status" active-text="开" inactive-text="关" |
| | | active-color="#3fef9a" inactive-color="#000212" @change="handleChangeStatus(scope.row)"> |
| | | </el-switch> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="operation" label="操作" min-width="15"> |
| | | <template slot-scope="scope"> |
| | | <div class="operation"> |
| | | <span>查看</span> |
| | | <span class="line">|</span> |
| | | <span>结案</span> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- 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> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import helper from "@/utils/mydate.js" |
| | | export default { |
| | | data() { |
| | | return { |
| | | tableData: [], |
| | | dialogCreate: false, |
| | | totalNum: null, |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | all: false, |
| | | unsame: false, |
| | | myIdx: 0, |
| | | preMyIdx: 0, |
| | | options: [ |
| | | { |
| | | value: 0, |
| | | label: '批量操作', |
| | | disabled: true, |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: '批量启用', |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: '批量禁用', |
| | | }, |
| | | { |
| | | value: 3, |
| | | label: '批量删除', |
| | | } |
| | | ], |
| | | tempList: [], |
| | | radio:1, |
| | | } |
| | | }, |
| | | created() { |
| | | this.getUserList(); |
| | | }, |
| | | methods: { |
| | | selectChange(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.forEach(item => { |
| | | this.tempList.push(item.id); |
| | | }) |
| | | if (list.length === this.tableData.length) { |
| | | this.all = true; |
| | | } else { |
| | | this.all = false |
| | | } |
| | | }, |
| | | changeTime({ createTime }) { |
| | | return helper(createTime); |
| | | }, |
| | | selectAll() { |
| | | this.$refs.multipleTable.toggleAllSelection(); |
| | | }, |
| | | disSame(list) { |
| | | list.forEach(row => { |
| | | this.$refs.multipleTable.toggleRowSelection(row) |
| | | }) |
| | | }, |
| | | handleDelete(id) { |
| | | const that = this; |
| | | // let arr = []; |
| | | // arr.push(id); |
| | | this.$confirm('确认删除?') |
| | | .then(_ => { |
| | | that.$axios({ |
| | | method: 'post', |
| | | url: 'sccg/role/delete?ids=' + id, |
| | | }) |
| | | .then(res => { |
| | | this.myIdx = 0; |
| | | this.preMyIdx = 0; |
| | | console.log(res); |
| | | this.$message({ |
| | | type: 'success', |
| | | message: res.message |
| | | }) |
| | | |
| | | this.getUserList(); |
| | | }) |
| | | }) |
| | | .catch(_ => { }); |
| | | }, |
| | | // 修改角色 |
| | | handleChangeRole(obj) { |
| | | this.dialogUpdate = true |
| | | this.user = obj; |
| | | // console.log(obj) |
| | | }, |
| | | // 修改用户状态 |
| | | handleChangeStatus(obj) { |
| | | let { id, status } = obj; |
| | | status == true ? status = 1 : status = 0; |
| | | console.log(id, status); |
| | | this.$axios.post(`/sccg/role/updateStatus/` + id + '?status=' + status).then(res => { |
| | | console.log(res); |
| | | }) |
| | | }, |
| | | // 获取用户列表 |
| | | getUserList() { |
| | | const that = this; |
| | | this.dialogCreate = false; |
| | | // 获取所有用户信息 |
| | | this.$axios.get('sccg/role/listAll').then(res => { |
| | | this.totalNum = res.data.length; |
| | | this.search(); |
| | | }) |
| | | }, |
| | | search() { |
| | | const that = this; |
| | | const { currentPage, pageSize, context } = this; |
| | | this.dialogCreate = false; |
| | | // 获取所有用户信息 |
| | | if (context == '') { |
| | | this.$axios.get('sccg/role/list?keyword=' + '&pageNum=' + currentPage + '&pageSize=' + pageSize).then(res => { |
| | | if (res.code === 200) { |
| | | console.log(res); |
| | | res.data.list.forEach(item => { |
| | | // item.createTime = helper(item.createTime); |
| | | item.status == 1 ? item.status = true : item.status = false; |
| | | }) |
| | | that.tableData = res.data.list; |
| | | this.totalNum = res.data.list.length; |
| | | } |
| | | }) |
| | | } else { |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: 'sccg/role/list?keyword=' + context + '&pageNum=' + currentPage + '&pageSize=' + pageSize, |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | res.data.list.forEach(item => { |
| | | item.status == 1 ? item.status = true : item.status = false; |
| | | }) |
| | | that.tableData = res.data.list |
| | | this.totalNum = res.data.list.length; |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | // 设置表格斑马纹 |
| | | tableRowClassName({ row, rowIndex }) { |
| | | if ((rowIndex + 1) % 2 == 0) { |
| | | return 'warning-row'; |
| | | } else { |
| | | return 'success-row'; |
| | | } |
| | | return ''; |
| | | }, |
| | | // 查看用户信息(不可修改) |
| | | handleFind(rowData) { |
| | | this.dialogUpdate = true; |
| | | this.updateFlag = false; |
| | | this.userInfo = rowData; |
| | | }, |
| | | // 修改用户部门信息 |
| | | handleUpdate(rowData) { |
| | | this.dialogUpdate = true; |
| | | this.updateFlag = true; |
| | | this.userInfo = rowData |
| | | }, |
| | | // 当前页改变触发事件 |
| | | changeCurrentPage(page) { |
| | | this.currentPage = page; |
| | | this.search(); |
| | | }, |
| | | // 上一页点击事件 |
| | | handlePrev(page) { |
| | | this.currentPage = page; |
| | | this.search(); |
| | | }, |
| | | // 下一页点击事件 |
| | | handleNext(page) { |
| | | this.currentPage = page; |
| | | this.search(); |
| | | }, |
| | | changeDialog(val) { |
| | | this.dialogUpdate = val.dialogUpdate; |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '更改成功', |
| | | }) |
| | | }, |
| | | handleClose(done) { |
| | | this.$confirm('确认关闭?') |
| | | .then(_ => { |
| | | this.dialogUpdate = false; |
| | | this.dialogCreate = false; |
| | | done(); |
| | | }) |
| | | .catch(_ => { }); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .userList { |
| | | text-align: left; |
| | | margin: 10px 20px; |
| | | color: #4b9bb7; |
| | | |
| | | header { |
| | | background-color: #09152f; |
| | | border: 1pox solid #fff; |
| | | } |
| | | |
| | | main { |
| | | background-color: #09152f; |
| | | margin-top: 20px; |
| | | padding-bottom: 50px; |
| | | border: 1pox solid #fff; |
| | | |
| | | .mainTitle { |
| | | line-height: 60px; |
| | | } |
| | | |
| | | .tools { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | padding: 0 20px; |
| | | |
| | | .funs { |
| | | display: flex; |
| | | |
| | | .funsItem { |
| | | line-height: 28px; |
| | | display: flex; |
| | | align-items: center; |
| | | border: 1px solid #17324c; |
| | | border-radius: 4px; |
| | | font-size: 12px; |
| | | margin-left: 10px; |
| | | |
| | | .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; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | .pagination { |
| | | margin-top: 50px; |
| | | display: flex; |
| | | line-height: 50px; |
| | | justify-content: center; |
| | | |
| | | .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 .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; |
| | | } |
| | | } |
| | | |
| | | &::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__title { |
| | | color: #4b9bb7; |
| | | } |
| | | |
| | | &::v-deep .el-dialog__close { |
| | | width: 20px; |
| | | height: 20px; |
| | | // color: #fff; |
| | | } |
| | | |
| | | &::v-deep .el-dialog__body { |
| | | padding: 0; |
| | | } |
| | | } |
| | | </style> |
| New file |
| | |
| | | <template> |
| | | <div> |
| | | 详情页 |
| | | </div> |
| | | </template> |
| New file |
| | |
| | | <template> |
| | | <div> |
| | | 结案 |
| | | </div> |
| | | </template> |
| | |
| | | :title="updateFlag ? flag.role ? '修改用户角色信息' : flag.depart ? '修改用户部门信息': '修改用户密码' :'查看用户信息'" |
| | | :before-close="handleClose"> |
| | | <updateUser :updateFlag="updateFlag" :userInfo=userInfo :flag=flag @closeDialog="closeDialog" |
| | | :getUserList="getUserList" /> |
| | | :getUserList="getUserList" v-if="!flag.password" /> |
| | | <MyPwd v-else :userInfo=userInfo @closeDialog="closeDialog"></MyPwd> |
| | | </el-dialog> |
| | | <!-- tools --> |
| | | <div class="tools"> |
| | |
| | | <script> |
| | | import helper from '@/utils/mydate' |
| | | import updateUser from '../updateUser'; |
| | | import MyPwd from '../password' |
| | | export default { |
| | | components: { |
| | | updateUser |
| | | updateUser,MyPwd |
| | | }, |
| | | data() { |
| | | return { |
| New file |
| | |
| | | <template> |
| | | <div class="password"> |
| | | <el-form ref="pwd" label-width="140px" autoComplete="on" :model="user" :rules="passrules"> |
| | | <!-- 初始密码 --> |
| | | <el-form-item class="optionItem" label="初始密码:" prop="password"> |
| | | <el-input v-model="user.password" type="password" placeholder="请填写初始密码"></el-input> |
| | | </el-form-item> |
| | | <!-- 新密码 --> |
| | | <el-form-item class="optionItem" label="新密码:" prop="newPwd"> |
| | | <el-input v-model="user.newPwd" type="password" placeholder="请填写新密码"></el-input> |
| | | </el-form-item> |
| | | <!-- 新密码 --> |
| | | <el-form-item class="optionItem" label="确认新密码:" prop="secondPwd"> |
| | | <el-input v-model="user.secondPwd" type="password" placeholder="确认您的新密码"></el-input> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | <div class="pwd-footer"> |
| | | <el-button @click="resetForm">取消</el-button> |
| | | <el-button type="primary" @click="handleSubmit">提交</el-button> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | export default { |
| | | data() { |
| | | const checkPwd = (rule, value, callback) => { |
| | | if (!value) { |
| | | callback(new Error('初始密码不能为空')) |
| | | } else { |
| | | callback(); |
| | | } |
| | | } |
| | | const checkNewPwd = (rule, value, callback) => { |
| | | if (!value) { |
| | | callback(new Error('新密码不能为空')) |
| | | }else if(value === this.user.password){ |
| | | callback(new Error('新密码不能和旧密码一样')) |
| | | } else { |
| | | callback(); |
| | | } |
| | | } |
| | | const checkSame = (rule, value, callback) => { |
| | | if (!value) { |
| | | callback(new Error('确认密码不能为空')) |
| | | } else if (value !== this.user.newPwd) { |
| | | console.log(111); |
| | | callback(new Error('您输入的两次密码结果不同')); |
| | | } else { |
| | | |
| | | callback(); |
| | | } |
| | | } |
| | | return { |
| | | user: { |
| | | password: '', |
| | | secondPwd: '', |
| | | newPwd: '', |
| | | }, |
| | | passrules: { |
| | | password: [ |
| | | { |
| | | required: true, |
| | | trigger: 'blur', |
| | | validator: checkPwd |
| | | }, |
| | | ], |
| | | secondPwd: [ |
| | | { |
| | | required: true, |
| | | trigger: 'blur', |
| | | validator: checkSame |
| | | } |
| | | ], |
| | | newPwd: [ |
| | | { |
| | | required: true, |
| | | trigger: 'blur', |
| | | validator: checkNewPwd |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | props: ['userInfo', 'closeDialog'], |
| | | created() { |
| | | |
| | | }, |
| | | methods: { |
| | | // 提交 |
| | | handleSubmit() { |
| | | const { userInfo,user } = this; |
| | | this.$refs.pwd.validate((valid) => { |
| | | if (valid) { |
| | | this.$axios({ |
| | | method:'post', |
| | | url:'sccg/admin/updatePassword', |
| | | data:{ |
| | | newPassword:user.newPwd, |
| | | oldPassword:user.password, |
| | | username:userInfo.username |
| | | } |
| | | }) |
| | | .then(res=>{ |
| | | if(res.code === 200){ |
| | | this.$emit('closeDialog',{flag:false}); |
| | | this.$message({ |
| | | type:'success', |
| | | message:'密码修改成功' |
| | | }) |
| | | }else{ |
| | | this.$message({ |
| | | type:'warning', |
| | | message:res.message |
| | | }) |
| | | } |
| | | }) |
| | | } else { |
| | | return false; |
| | | } |
| | | }) |
| | | }, |
| | | // 清空表单 |
| | | resetForm() { |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .password { |
| | | padding: 50px 100px; |
| | | |
| | | ::v-deep .el-input__inner { |
| | | background-color: #09152f; |
| | | border: 1px solid #17324c; |
| | | } |
| | | |
| | | .pwd-footer { |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <!-- 用户密码 --> |
| | | <el-form-item class="optionItems" label="用户密码:" prop="password"> |
| | | <el-input v-model="user.password" type="password" placeholder="请输入用户密码" |
| | | :disabled="!flag.password"> |
| | | disabled> |
| | | </el-input> |
| | | </el-form-item> |
| | | <!-- 所属用户姓名 --> |