Merge branch 'master' of http://42.193.1.25:9521/r/sccg_ui
| | |
| | | return http.get('/sccg/sccg_region/list', params); |
| | | }, |
| | | |
| | | // 查询违规大类 |
| | | getCategoryList: (params) => { |
| | | return http.get('/sccg/violations/query/type_second', params); |
| | | }, |
| | | |
| | | //查询违规小类 |
| | | getTypeList: (params) => { |
| | | return http.get('/sccg/violations/query/type_third', params); |
| | | } |
| | | |
| | | } |
| | |
| | | <label class="data-title"> |
| | | 问题类型: |
| | | </label> |
| | | <span class="data-detail">违规</span> |
| | | <span class="data-detail">{{ getCategoryLabel(baseCase.category) }}</span> |
| | | </div> |
| | | <div class="data-item__right"> |
| | | <label class="data-title"> |
| | |
| | | </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__left"> |
| | | <label class="data-title"> |
| | | 所属街道: |
| | |
| | | <span class="data-detail">{{baseCase.communityText}}</span> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="data-item"> |
| | | <div class="data-item__left"> |
| | | <label class="data-title"> |
| | | 所属街道: |
| | | </label> |
| | | <span class="data-detail">{{baseCase.streetText}}</span> |
| | | </div> |
| | | </div> --> |
| | | <div class="data-item"> |
| | | <div class="data-item__left"> |
| | | <label class="data-title"> |
| | |
| | | import MyFilePicture from '@/components/filePictrue' |
| | | import MySovleProblem from '@/components/solveProblem' |
| | | import MyScene from '@/components/scene' |
| | | import { CATEGOTY } from "@/utils/helper"; |
| | | |
| | | export default { |
| | | components: { |
| | | MyProcess, MyFilePicture, MySovleProblem, MyScene |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | const {info} = this; |
| | | this.baseCase = info.baseCase; |
| | | this.handlePassVo = info.handlePassVo; |
| | | this.currentSitVo = info.currentSitVo; |
| | | this.filesPictureVo = info.filesPictureVo; |
| | | console.log(info); |
| | | this.baseCase = this.info.baseCase; |
| | | this.handlePassVo = this.info.handlePassVo; |
| | | this.currentSitVo = this.info.currentSitVo; |
| | | this.filesPictureVo = this.info.filesPictureVo; |
| | | }, |
| | | methods: { |
| | | changeComponent(index) { |
| | | this.activeIndex = index; |
| | | }, |
| | | getCategoryLabel(category) { |
| | | return CATEGOTY.find(item => item.value === category).label; |
| | | } |
| | | }, |
| | | props: ['info','mycode'] |
| | | } |
| | |
| | | <el-select |
| | | v-model="dispatch.enforcementTeam" |
| | | placeholder="选择中队" |
| | | :disabled=" |
| | | squadronOptions.length !== 0 && squadronOptions ? false : true |
| | | " |
| | | :disabled="!(squadronOptions.length !== 0 && squadronOptions)" |
| | | @change="handleMidChange" |
| | | > |
| | | <el-option |
| | |
| | | <el-select |
| | | v-model="dispatch.lawEnforcer" |
| | | placeholder="请选择人员" |
| | | :disabled=" |
| | | personOptions.length !== 0 && personOptions ? false : true |
| | | " |
| | | :disabled="!(personOptions.length !== 0 && personOptions)" |
| | | @change="handlePerChange" |
| | | > |
| | | <el-option |
| | |
| | | </template> |
| | | <script> |
| | | import MyMap from "@/components/map"; |
| | | import { parseTime } from "@/utils/index"; |
| | | export default { |
| | | components: { |
| | | MyMap, |
| | | }, |
| | | props: ["id", "changeDialog", "refresh", "mytype"], |
| | | props: ["id", "changeDialog", "refresh", "mytype", "isGetData"], |
| | | created() { |
| | | // 判断车辆类型 |
| | | this.mytype === 1 ? this.getLawCarList() : this.getSoilCarList(); |
| | | this.isGetDispatchData = this.isGetData ? this.isGetData : false; |
| | | this.getDepartList(); |
| | | }, |
| | | data() { |
| | |
| | | callback(); |
| | | } else { |
| | | callback(new Error("派遣意见不能为空")); |
| | | } |
| | | }; |
| | | const checkDistance = (rule, value, callback) => { |
| | | if (value) { |
| | | callback(); |
| | | } else { |
| | | callback(new Error("距离不能为空")); |
| | | } |
| | | }; |
| | | const checkTeam = (rule, value, callback) => { |
| | |
| | | dispatchOpinion: [ |
| | | { required: true, trigger: "change", validator: checkOpinion }, |
| | | ], |
| | | // distance: [ |
| | | // { required: true, trigger: "change", validator: checkDistance }, |
| | | // ], |
| | | // enforcementTeam: [ |
| | | // { required: true, trigger: 'change', validator: checkTeam } |
| | | // ], |
| | | lawEnforcer: [ |
| | | { required: true, trigger: "change", validator: checkPerson }, |
| | | ], |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | carOptions: [ |
| | | { |
| | | label: "车辆一", |
| | | value: 1, |
| | | }, |
| | | { |
| | | label: "车辆二", |
| | | value: 2, |
| | | }, |
| | | ], |
| | | carOptions: [], |
| | | departOptions: [], |
| | | carOptions: [ |
| | | { |
| | | label: "车辆一", |
| | | value: 1, |
| | | }, |
| | | { |
| | | label: "车辆二", |
| | | value: 2, |
| | | }, |
| | | ], |
| | | squadronOptions: [], |
| | | personOptions: [], |
| | | isGetDispatchData: true |
| | | }; |
| | | }, |
| | | methods: { |
| | | // 执行调度 |
| | | handleDispatch() { |
| | | console.log(this.dispatch); |
| | | this.$refs.form.validate((valid) => { |
| | | console.log(valid); |
| | | if (valid) { |
| | | const { dispatch, id } = this; |
| | | // dispatch.disposeDate = new Date(); |
| | | console.log(id); |
| | | dispatch.baseCaseId = id; |
| | | console.log(dispatch); |
| | | this.$axios({ |
| | | method: "post", |
| | | url: `sccg/dispatch_handle/dispatch`, |
| | | data: dispatch, |
| | | }).then((res) => { |
| | | this.$message({ |
| | | type: res.code === 200 ? "success" : "error", |
| | | message: res.code === 200 ? "调度成功" : res.message, |
| | | if (this.isGetDispatchData) { |
| | | this.$emit('getDispatchData', this.dispatch); |
| | | } else { |
| | | const { dispatch, id } = this; |
| | | dispatch.baseCaseId = id; |
| | | this.$axios({ |
| | | method: "post", |
| | | url: `sccg/dispatch_handle/dispatch`, |
| | | data: dispatch, |
| | | }).then((res) => { |
| | | this.$message({ |
| | | type: res.code === 200 ? "success" : "error", |
| | | message: res.code === 200 ? "调度成功" : res.message, |
| | | }); |
| | | this.refresh(); |
| | | }); |
| | | this.$emit("changeDialog", { flag: false }); |
| | | this.refresh(); |
| | | }); |
| | | } |
| | | this.$emit("changeDialog", { flag: false }); |
| | | } else { |
| | | return false; |
| | | this.$message.warning('请检查必填项'); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | url: `sccg/car_Manage/query_enforce?current=1&size=1000`, |
| | | }).then((res) => { |
| | | this.carOptions = res.data.records; |
| | | console.log(res, this.carOptions); |
| | | }); |
| | | }, |
| | | // 获取渣土车辆 |
| | |
| | | }, |
| | | // 获取中队 |
| | | async getTeamList(id) { |
| | | console.log(id); |
| | | await this.$axios({ |
| | | method: "get", |
| | | url: `sccg/depart/query_father_children?fatherId=${id}`, |
| | |
| | | this.squadronOptions = res.data; |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err); |
| | | }); |
| | | }, |
| | | // 获取部门下的用户 |
| | | async getDepartUserList(id) { |
| | | console.log(id); |
| | | await this.$axios({ |
| | | method: "get", |
| | | url: `sccg/admin/getDepartUser/${id}`, |
| | |
| | | this.dispatch.contactWay = ""; |
| | | this.dispatch.lawEnforcerName = ""; |
| | | await this.getTeamList(id); |
| | | // if (this.squadronOptions.length === 0) { |
| | | // await this.getDepartUserList(id); |
| | | // } |
| | | }, |
| | | // 中队更改 |
| | | async handleMidChange(id) { |
| | |
| | | watch: { |
| | | "squadronOptions.length": { |
| | | handler(newval, oldval) { |
| | | console.log(newval); |
| | | if (newval === 0) { |
| | | console.log(1); |
| | | this.$message({ |
| | | type: "warning", |
| | | message: "该部门下没有中队", |
| | |
| | | this.loading = false; |
| | | }) |
| | | .catch(err => { |
| | | this.loading = false; |
| | | this.$message.error(err); |
| | | }) |
| | | }, |
| | |
| | | // 如果请求还在队列里,说明还在处理,没有回包 |
| | | if (this.urlList.includes(url)) { |
| | | const errorMessage = `请求 ${url} 正在处理,请稍后再试!` |
| | | console.error(errorMessage) |
| | | const error = { |
| | | status: { |
| | | code: 1007, // 临时写的 |
| | |
| | | <span>报警记录</span> |
| | | <span>乱停乱放违法占道</span> |
| | | </div> |
| | | <el-form ref="currentEvent" label-width="120px" :model="currentEvent" :rules="rules"> |
| | | <el-form ref="currentEvent" label-width="120px" :model="eventInfoData" :rules="rules"> |
| | | <el-form-item label="事件编号:"> |
| | | <span>{{ currentEvent.code }}</span> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="持续时间:"> |
| | | <span>{{ currentEvent.conntinueTime }}</span> |
| | | </el-form-item> |
| | | <el-form-item label="关联店铺" prop="store"> |
| | | <el-select v-model="eventInfoData.store" @change="selectStoreChange" placeholder="请选择关联店铺"> |
| | | <el-option v-for="store in storeList" :value="store.id" :label="store.storeName" :key="store.id" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item v-if="eventInfoData.store" label="店铺得分:"> |
| | | <span>{{ selectStoreChange(eventInfoData.store).storeScore }}</span> |
| | | </el-form-item> |
| | | <el-form-item label="处理意见:" prop="advice"> |
| | | <el-radio-group v-model="currentEvent.advice"> |
| | | <el-radio-group v-model="eventInfoData.advice"> |
| | | <el-radio :label="item.id" v-for="item in adviceList" :key="item.id">{{ item.label }}</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="大类名称:" prop="categoryId"> |
| | | <el-input v-model="currentEvent.categoryId" placeholder="请选择大类名称"></el-input> |
| | | <el-select v-model="eventInfoData.categoryId" placeholder="请选择大类名称" @change="categoryChange"> |
| | | <el-option v-for="category in categoryOptions" :key="category.id" :value="category.id" :label="category.name" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="小类名称:" prop="typeId"> |
| | | <el-input v-model="currentEvent.typeId" placeholder="请选择小类名称"></el-input> |
| | | <el-select v-model="eventInfoData.typeId" placeholder="请选择小类名称"> |
| | | <el-option v-for="type in typeOptions" :key="type.id" :value="type.id" :label="type.name" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="车牌号:" prop="carNumber"> |
| | | <el-input v-model="currentEvent.carNumber" placeholder="请填写车牌号码"></el-input> |
| | | <el-input v-model="eventInfoData.carNumber" placeholder="请填写车牌号码"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="备注:" prop="description"> |
| | | <el-input type="textarea" :rows="5" v-model="currentEvent.description"></el-input> |
| | | <el-input type="textarea" :rows="5" v-model="eventInfoData.description"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button @click="pageChange('prev')">上一条</el-button> |
| | | <el-button :disabled="currentPage === 1" @click="pageChange('prev')">上一条</el-button> |
| | | <el-button @click.native.prevent="handleConfirm">确认</el-button> |
| | | <el-button @click="pageChange('next')">下一条</el-button> |
| | | </el-form-item> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-dialog :visible="isShowDialog" title="调度信息"> |
| | | <MyDispatch v-if="isShowDialog" :mytype="1" @confirmInspection="handleConfirm" :isGetData="true" @changeDialog="closeDialog"></MyDispatch> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import basecase from "@/api/operate/basecase"; |
| | | import baseInfo from "@/api/baseInfo"; |
| | | import { getStoreInfoList } from "@/api/operate/storeManagement"; |
| | | import { FILE_ORIGINAL_URL } from "@/utils"; |
| | | import { validateCarNum } from "@/utils/validate"; |
| | | import MyDispatch from '@/components/dispatch'; |
| | | |
| | | export default { |
| | | components: { MyDispatch }, |
| | | created() { |
| | | this.getInspectionData(); |
| | | this.initEventParams(); |
| | | basecase.getInspectionCountData() |
| | | .then(res => { |
| | | this.countData = res; |
| | | }) |
| | | .catch(err => this.$message.error(err)) |
| | | |
| | | getStoreInfoList({ current: 1, size: 100 }) |
| | | .then(({ list }) => { |
| | | this.storeList = list; |
| | | }) |
| | | .catch(err => { |
| | | this.$message.error(err) |
| | | }) |
| | | |
| | | baseInfo.getCategoryList() |
| | | .then(res => { |
| | | this.categoryOptions = res; |
| | | }) |
| | | .catch(err => this.$message.error(err)) |
| | | |
| | | baseInfo.getTypeList() |
| | | .then(res => { |
| | | this.typeList = res; |
| | | }) |
| | | .catch(err => this.$message.error(err)) |
| | | }, |
| | | data() { |
| | | const validateCarNumber = (rule, value, callback) => { |
| | | if (value) { |
| | | if (validateCarNum(value)) { |
| | | callback(); |
| | | } else { |
| | | callback(new Error('请输入正确的车牌号')); |
| | | } |
| | | } else { |
| | | callback(); |
| | | } |
| | | }; |
| | | return { |
| | | eventList: [], |
| | | countData: { |
| | |
| | | currentEvent: {}, |
| | | adviceList: [ |
| | | { |
| | | id: 1, |
| | | id: 2, |
| | | label: '上报', |
| | | }, |
| | | { |
| | | id: 2, |
| | | id: 6, |
| | | label: '调度', |
| | | }, |
| | | { |
| | |
| | | label: '暂不处理', |
| | | }, |
| | | ], |
| | | eventInfoData: null, |
| | | rules:{ |
| | | advice:[ |
| | | { |
| | |
| | | required: true, trigger:['blur', 'change'], message: '小类名称不能为空' |
| | | } |
| | | ], |
| | | carNumber:[ |
| | | { |
| | | required: true, trigger:['blur', 'change'], message: '车牌号不能为空' |
| | | } |
| | | ] |
| | | carNumber:[{ trigger:['blur', 'change'], validator: validateCarNumber }] |
| | | }, |
| | | imageList: [], |
| | | currentPage: 1 |
| | | currentPage: 1, |
| | | categoryOptions: [], |
| | | typeOptions: [], |
| | | storeList: [], |
| | | typeList: [], |
| | | isShowDialog: false |
| | | } |
| | | }, |
| | | methods:{ |
| | | pageChange(type) { |
| | | if (this.eventList.length === this.currentPage) { |
| | | this.$message.warning('当前已是最后一页'); |
| | | return; |
| | | } |
| | | if (type === 'next') { |
| | | this.currentPage += 1; |
| | | } else { |
| | | this.currentPage -= 1; |
| | | } |
| | | this.currentEvent = this.eventList[this.currentPage - 1]; |
| | | this.getInspectionData(); |
| | | }, |
| | | |
| | | getInspectionData() { |
| | | basecase.getInspectionData({ current: this.currentPage }) |
| | | .then(({ records }) => { |
| | | this.eventList = records; |
| | | this.eventList.forEach(item => { |
| | | if (item.picData) { |
| | | const imageUrls = item.picData.split(','); |
| | | this.imageList = imageUrls.map(url => `${FILE_ORIGINAL_URL}${url}`); |
| | | } |
| | | }) |
| | | this.currentEvent = this.eventList[this.currentPage - 1]; |
| | | this.currentEvent = this.eventList[0]; |
| | | if (this.currentEvent?.picData) { |
| | | this.imageList = this.currentEvent.picData.split(',').map(item => `${FILE_ORIGINAL_URL}${item}`); |
| | | } |
| | | }) |
| | | .catch(err => this.$message.error(err)) |
| | | }, |
| | |
| | | handleConfirm(){ |
| | | this.$refs.currentEvent.validate((flag)=>{ |
| | | if(flag){ |
| | | basecase.confirmInspection(this.currentEvent) |
| | | .then(() => { |
| | | this.$message.success('操作成功'); |
| | | this.getInspectionData(); |
| | | }) |
| | | .catch(err => this.$message.error(err)) |
| | | this.eventInfoData.baseId = this.currentEvent.code; |
| | | |
| | | // 调度 |
| | | if (this.eventInfoData.advice === 6) { |
| | | this.isShowDialog = true; |
| | | } else { |
| | | this.confirmInspection(); |
| | | } |
| | | } else { |
| | | this.$message.warning('请检查必填项') |
| | | this.$message.warning('请检查必填项'); |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | initEventParams() { |
| | | this.eventInfoData = { |
| | | baseId: null, |
| | | store: null, |
| | | advice: null, |
| | | categoryId: null, |
| | | typeId: null, |
| | | carNumber: null, |
| | | description: null, |
| | | linkShop: 0, |
| | | shopName: null |
| | | } |
| | | }, |
| | | |
| | | categoryChange(id) { |
| | | this.typeOptions = this.typeList.filter(type => type.parentId === id); |
| | | }, |
| | | |
| | | confirmInspection(data) { |
| | | basecase.confirmInspection({ ...this.eventInfoData, ...data }) |
| | | .then(() => { |
| | | this.$message.success('操作成功'); |
| | | this.getInspectionData(); |
| | | this.initEventParams(); |
| | | }) |
| | | .catch(err => this.$message.error(err)) |
| | | }, |
| | | |
| | | closeDialog() { |
| | | this.isShowDialog = false; |
| | | }, |
| | | |
| | | selectStoreChange(id) { |
| | | const selectedStore = this.storeList.find(store => store.id === id); |
| | | this.eventInfoData.shopName = selectedStore.storeName; |
| | | this.eventInfoData.linkShop = 1; |
| | | return selectedStore; |
| | | } |
| | | } |
| | | } |
| | |
| | | this.updatePasswordParam.oldPassword=this.password.oldPassword; |
| | | this.updatePasswordParam.username=sessionStorage.getItem('name'); |
| | | this.updatePasswordParam.newPassword=this.password.newPassword; |
| | | console.log(this.updatePasswordParam); |
| | | users.updatePassword(this.updatePasswordParam) |
| | | .then(() => { |
| | | this.$message.success('修改密码成功, 即将重新登录'); |
| | |
| | | parentId:'', |
| | | level:'', |
| | | }, |
| | | parentList: [], |
| | | createIll: { |
| | | name: [ |
| | | { required: true, trigger: 'blur', validator: checkName } |
| | |
| | | }, |
| | | // 提交新增违规类型 |
| | | handleSubmit() { |
| | | console.log(this.things); |
| | | this.$refs.user.validate((valid) => { |
| | | console.log(valid); |
| | | if (valid) { |
| | | const { things,selectOrg } = this; |
| | | this.$axios({ |
| | |
| | | |
| | | }else{ |
| | | this.parentList = await this.getTypeThird() |
| | | // this.parentList = this.addChildren(await this.getTypeThird(), await this.getTypeSecond()); |
| | | } |
| | | }, |
| | | // addChildren(parentArr, childArr) { |
| | | // // console.log(parentArr.length,childArr); |
| | | // parentArr.forEach(item => { |
| | | // item.children = []; |
| | | // childArr.forEach(child => { |
| | | // if (item.id === child.parentId) { |
| | | // item.children.push(child); |
| | | // } |
| | | // }) |
| | | // }) |
| | | // console.log(parentArr); |
| | | // return parentArr; |
| | | // }, |
| | | handleCheck(data, checked) { |
| | | this.things.parentId = data.name; |
| | | console.log(this.selectOrg.orgsid); |
| | | // 获取当前选择的id在数组中的索引 |
| | | const indexs = this.selectOrg.orgsid.indexOf(data.id) |
| | | // 如果不存在数组中,并且数组中已经有一个id并且checked为true的时候,代表不能再次选择。 |
| | |
| | | background-color: #09152f; |
| | | |
| | | main { |
| | | // border: 1px solid #fff; |
| | | text-align: left; |
| | | padding: 0 55px; |
| | | background-color: #09152f; |
| | |
| | | methods: { |
| | | // 批量删除 |
| | | mulDelete(idArr){ |
| | | console.log(idArr); |
| | | this.$axios({ |
| | | method:'delete', |
| | | url:'sccg/illegal_building/batch_delete?ids='+idArr, |
| | |
| | | // 监听表格选中状态 |
| | | tableChange(list) { |
| | | this.tempList = list; |
| | | if (list.length === this.tableData.length) { |
| | | this.all = true; |
| | | } else { |
| | | this.all = false |
| | | } |
| | | this.all = list.length === this.tableData.length; |
| | | }, |
| | | // 全选 |
| | | selectAll() { |
| | |
| | | }, |
| | | // 删除单条数据 |
| | | handleDelete({ number }) { |
| | | console.log(number); |
| | | this.$confirm('确认删除?') |
| | | .then(_ => { |
| | | console.log(1); |
| | | this.$axios({ |
| | | method: 'delete', |
| | | url: `sccg/illegal_building/delete?id=${number}`, |
| | |
| | | this.getUserList(); |
| | | }) |
| | | }) |
| | | .catch(_ => { console.log(2) }); |
| | | .catch(_ => { }); |
| | | }, |
| | | // 获取用户列表 |
| | | getUserList() { |
| | |
| | | }, |
| | | // 设置表格斑马纹 |
| | | tableRowClassName({ row, rowIndex }) { |
| | | if ((rowIndex + 1) % 2 == 0) { |
| | | if ((rowIndex + 1) % 2 === 0) { |
| | | return 'warning-row'; |
| | | } else { |
| | | return 'success-row'; |
| | | } |
| | | return ''; |
| | | }, |
| | | // 查看用户信息(不可修改) |
| | | handleFind(rowData) { |
| | |
| | | |
| | | header { |
| | | background-color: #09152f; |
| | | border: 1pox solid #fff; |
| | | |
| | | .headerContent { |
| | | padding: 0 40px; |
| | |
| | | background-color: #09152f; |
| | | margin-top: 20px; |
| | | padding-bottom: 50px; |
| | | border: 1pox solid #fff; |
| | | |
| | | .mainTitle { |
| | | line-height: 60px; |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo); |
| | | this.things = JSON.parse(JSON.stringify(this.userInfo)); |
| | | // 获取所属类型列表 |
| | | this.getTypeFirst(); |
| | |
| | | methods: { |
| | | // 批量删除 |
| | | mulDelete(idArr) { |
| | | console.log(idArr); |
| | | this.$axios({ |
| | | method: 'delete', |
| | | url: 'sccg/violations/batch_delete?ids=' + idArr, |
| | |
| | | }, |
| | | // 删除单条数据 |
| | | handleDelete({ number }) { |
| | | console.log(number); |
| | | this.$confirm('确认删除?') |
| | | .then(_ => { |
| | | console.log(1); |
| | | this.$axios({ |
| | | method: 'delete', |
| | | url: `sccg/violations/delete?id=${number}`, |
| | |
| | | this.getUserList(); |
| | | }) |
| | | }) |
| | | .catch(_ => { console.log(2) }); |
| | | .catch(_ => { }); |
| | | }, |
| | | // 获取用户列表 |
| | | getUserList() { |
| | |
| | | this.totalNum = res.data.total; |
| | | }) |
| | | }, |
| | | // search() { |
| | | // const that = this; |
| | | // const { currentPage, pageSize, context } = this; |
| | | // // 获取所有用户信息 |
| | | // 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) { |
| | |
| | | |
| | | header { |
| | | background-color: #09152f; |
| | | border: 1pox solid #fff; |
| | | |
| | | .headerContent { |
| | | padding: 0 40px; |
| | |
| | | background-color: #09152f; |
| | | margin-top: 20px; |
| | | padding-bottom: 50px; |
| | | border: 1pox solid #fff; |
| | | |
| | | .mainTitle { |
| | | line-height: 60px; |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo); |
| | | this.things = JSON.parse(JSON.stringify(this.userInfo)); |
| | | // 获取所属类型列表 |
| | | this.getTypeThird(); |
| | |
| | | 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', { flag: false }); |
| | | // }) |
| | | // } else { |
| | | // return false; |
| | | // } |
| | | // }) |
| | | // }, |
| | | // 查询所属类型 |
| | | getTypeThird() { |
| | | this.$axios({ |
| | |
| | | this.getUserList(); |
| | | }) |
| | | }) |
| | | .catch(_ => { console.log(2) }); |
| | | .catch(_ => { }); |
| | | }, |
| | | // 获取用户列表 |
| | | getUserList() { |
| | |
| | | } else { |
| | | evidenceForm.validate((flag) => { |
| | | if (!flag) { |
| | | console.log(bookForm); |
| | | bookForm.validate((bookFlag) => { |
| | | console.log(bookFlag); |
| | | if (!bookFlag) { |
| | | return false; |
| | | } |
| | |
| | | methods: { |
| | | handleUser() { |
| | | const that = this; |
| | | // console.log(this.$refs); |
| | | this.$refs.user.validate((valid) => { |
| | | console.log(valid) |
| | | if (valid) { |
| | | that.$refs.condition.validate((flag) => { |
| | | console.log(flag); |
| | | if (flag) { |
| | | const { ill } = this; |
| | | ill.buildingLength = parseFloat(ill.buildingLength); |
| | | ill.buildingHigh = parseFloat(ill.buildingHigh); |
| | | ill.buildingWidth = parseFloat(ill.buildingWidth); |
| | | ill.buildingArea = parseFloat(ill.buildingArea); |
| | | console.log(ill); |
| | | that.$axios({ |
| | | method: 'post', |
| | | url: 'sccg/base-case/addition_illegal_building', |
| | |
| | | url: 'sccg/illegal_building/query/type_second' |
| | | }).then(res => { |
| | | this.bigKindList = res.data; |
| | | // console.log(res); |
| | | }) |
| | | }, |
| | | // 获取行政区域 |
| | |
| | | .then(_ => { |
| | | this.$emit('getPageProp',{flag:false,type:idx}); |
| | | }) |
| | | .catch(_ => { console.log('err') }); |
| | | .catch(_ => { }); |
| | | } |
| | | }, |
| | | props:['getPageProp'] |
| | |
| | | }, |
| | | created() { |
| | | const { getBigKind, getEventLevel, getSmallKind } = this; |
| | | console.log(this.mytype); |
| | | this.vio.category = this.mytype + 1; |
| | | getBigKind(); |
| | | getSmallKind(); |
| | |
| | | url: 'sccg/violations/query/type_first' |
| | | }).then(res => { |
| | | this.bigKindList = res.data; |
| | | // console.log(res); |
| | | }) |
| | | }, |
| | | // 获取小类列表 |
| | |
| | | this.$refs.user.validate((valid) => { |
| | | if (valid) { |
| | | const { vio } = this; |
| | | console.log(vio); |
| | | this.$axios({ |
| | | method: 'post', |
| | | url: 'sccg/base-case/addition_violation', |
| | |
| | | }, |
| | | methods: { |
| | | setMystatus(value) { |
| | | console.log(value); |
| | | this.statusArr[1] = value; |
| | | this.changeTypeChecked(value - 1); |
| | | this.getUserList(); |
| | |
| | | }, |
| | | // 批量删除 |
| | | mulDelete(idArr) { |
| | | console.log(idArr instanceof Array); |
| | | const { statusArr } = this; |
| | | this.$confirm("您确定要批量删除案件吗?") |
| | | .then((_) => { |
| | |
| | | }); |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err); |
| | | }); |
| | | }, |
| | | // 执行下拉框操作 |
| | | selectChange(list) { |
| | | console.log(this.tempList); |
| | | if (this.tempList.length !== 0) { |
| | | if (list === 3) { |
| | | this.preMyIdx = list; |
| | |
| | | // 更改一级标签的选中 |
| | | changeNavChecked(idx) { |
| | | this.tagList.forEach((item, index) => { |
| | | if (index === idx) { |
| | | item.checked = true; |
| | | } else { |
| | | item.checked = false; |
| | | } |
| | | item.checked = index === idx; |
| | | }); |
| | | this.typeList[0].checked = true; |
| | | this.typeList[1].checked = false; |
| | |
| | | // 更改违规/违建 |
| | | changeTypeChecked(idx) { |
| | | this.typeList.forEach((item, index) => { |
| | | if (index === idx) { |
| | | item.checked = true; |
| | | } else { |
| | | item.checked = false; |
| | | } |
| | | item.checked = index === idx; |
| | | }); |
| | | this.mystatus = idx + 1; |
| | | this.statusArr[1] = this.typeList[idx].value; |
| | |
| | | }, |
| | | // 获取案件信息 |
| | | getEventInfo(code) { |
| | | console.log("获取具体案件信息", code); |
| | | this.$axios({ |
| | | method: "get", |
| | | url: `sccg/base_case/baseCaseDetail/${code}`, |
| | |
| | | |
| | | header { |
| | | background-color: #09152f; |
| | | border: 1pox solid #fff; |
| | | |
| | | .headerContent { |
| | | padding: 0 40px; |
| | |
| | | background-color: #09152f; |
| | | margin-top: 20px; |
| | | padding-bottom: 50px; |
| | | border: 1pox solid #fff; |
| | | |
| | | .mainTitle { |
| | | line-height: 60px; |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo); |
| | | this.things = JSON.parse(JSON.stringify(this.userInfo)); |
| | | // 获取所属类型列表 |
| | | this.getTypeThird(); |
| | |
| | | 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({ |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo); |
| | | this.things = JSON.parse(JSON.stringify(this.userInfo)); |
| | | // 获取所属类型列表 |
| | | this.getTypeThird(); |
| | |
| | | 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({ |
| | |
| | | <!-- 详情页展示 --> |
| | | <el-dialog :visible.sync="dialogView" width="80%" title="基础信息(人工)" v-if="dialogView" |
| | | :before-close="handleClose"> |
| | | <MyDetail :info=info v-if="mystatus==1 ? true:false"></MyDetail> |
| | | <MyDetail :info=info v-if="mystatus === 1"></MyDetail> |
| | | <MyIllDetail :info=info v-else></MyIllDetail> |
| | | </el-dialog> |
| | | <!-- 上传页面 --> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | // import updateUser from "./updateUser" |
| | | import uploadVio from './updateUser/uploadResult/vio' |
| | | import uploadIll from "./updateUser/uploadResult/ill" |
| | | import MyDetail from '@/components/detail' |
| | |
| | | import helper from '@/utils/mydate' |
| | | export default { |
| | | components: { |
| | | // updateUser, |
| | | uploadVio, uploadIll, MyDetail, MyIllDetail |
| | | }, |
| | | data() { |
| | |
| | | methods: { |
| | | // 顶部下拉框 |
| | | setMystatus(value) { |
| | | console.log(value); |
| | | this.statusArr[1] = value; |
| | | this.changeTypeChecked(value - 1); |
| | | this.getUserList(); |
| | | }, |
| | | // 批量删除 |
| | | mulDelete(idArr) { |
| | | console.log(idArr); |
| | | this.$axios({ |
| | | method: 'delete', |
| | | url: 'sccg/violations/batch_delete?ids=' + idArr, |
| | |
| | | }, |
| | | // 执行下拉框操作 |
| | | selectChange(list) { |
| | | console.log(this.tempList); |
| | | if (this.tempList.length !== 0) { |
| | | if (list === 3) { |
| | | this.preMyIdx = list; |
| | |
| | | list.forEach(item => { |
| | | this.tempList.push(item.code); |
| | | }) |
| | | if (list.length === this.tableData.length) { |
| | | this.all = true; |
| | | } else { |
| | | this.all = false |
| | | } |
| | | this.all = list.length === this.tableData.length; |
| | | }, |
| | | // 全选 |
| | | selectAll() { |
| | |
| | | }, |
| | | // 删除单条数据 |
| | | handleDelete({ number }) { |
| | | console.log(number); |
| | | this.$confirm('确认删除?') |
| | | .then(_ => { |
| | | console.log(1); |
| | | this.$axios({ |
| | | method: 'delete', |
| | | url: `sccg/violations/delete?id=${number}`, |
| | |
| | | this.getUserList(); |
| | | }) |
| | | }) |
| | | .catch(_ => { console.log(2) }); |
| | | .catch(_ => { }); |
| | | }, |
| | | // 获取用户列表 |
| | | getUserList() { |
| | |
| | | // 更改违规/违建 |
| | | changeTypeChecked(idx) { |
| | | this.typeList.forEach((item, index) => { |
| | | if (index === idx) { |
| | | item.checked = true; |
| | | } else { |
| | | item.checked = false; |
| | | } |
| | | item.checked = index === idx; |
| | | }) |
| | | this.mystatus = idx + 1; |
| | | this.statusArr[1] = this.typeList[idx].value; |
| | |
| | | }, |
| | | // 设置表格斑马纹 |
| | | tableRowClassName({ row, rowIndex }) { |
| | | if ((rowIndex + 1) % 2 == 0) { |
| | | if ((rowIndex + 1) % 2 === 0) { |
| | | return 'warning-row'; |
| | | } else { |
| | | return 'success-row'; |
| | | } |
| | | return ''; |
| | | }, |
| | | // 当前页改变触发事件 |
| | | changeCurrentPage(page) { |
| | |
| | | this.dialogView = true; |
| | | }) |
| | | }, |
| | | // opernDialog(data){ |
| | | // this.dialogUpload = true; |
| | | // this.caseId = data.id; |
| | | // // console.log(data); |
| | | // }, |
| | | |
| | | // 重新处置 |
| | | handleReset({ id }) { |
| | | console.log(id); |
| | | this.$axios({ |
| | | method: 'put', |
| | | url: 'sccg/base_case/case_status_update?caseId=' + id + '&state=0' |
| | |
| | | |
| | | header { |
| | | background-color: #09152f; |
| | | border: 1pox solid #fff; |
| | | |
| | | .headerContent { |
| | | padding: 0 40px; |
| | |
| | | background-color: #09152f; |
| | | margin-top: 20px; |
| | | padding-bottom: 50px; |
| | | border: 1pox solid #fff; |
| | | |
| | | .btn span:hover { |
| | | cursor: pointer; |
| | |
| | | }, |
| | | // 检验user |
| | | checkUser() { |
| | | // console.log(this.$refs.userForm.validate); |
| | | this.$refs.userForm.validate((valid) => { |
| | | console.log(valid); |
| | | if (valid) { |
| | | this.evidence.userInfo = true; |
| | | this.userFlag = false; |
| | |
| | | }, |
| | | props:['caseId'], |
| | | created(){ |
| | | console.log(this.caseId); |
| | | }, |
| | | methods:{ |
| | | handleSubmit(){ |
| | |
| | | }, |
| | | props: ['caseId', 'closeDialog'], |
| | | created() { |
| | | console.log(this.caseId); |
| | | }, |
| | | methods: { |
| | | handleSubmit() { |
| | | const { arrive, evidence } = this.$refs; |
| | | const { arriveForm } = arrive.$refs; |
| | | const { evidenceForm } = evidence.$refs; |
| | | // console.log(evidence.$refs); |
| | | arriveForm.validate((valid) => { |
| | | // console.log(valid); |
| | | if (valid) { |
| | | evidenceForm.validate((flag) => { |
| | | if (flag) { |
| | | // arrive.arrive;evidence.user;evidence.evidence; |
| | | this.$axios({ |
| | | method: 'post', |
| | | url: `sccg/dispatch_handle/addition_dispose_result/${this.caseId}/${1}`, |
| | |
| | | }, |
| | | // 获得arrive的信息 |
| | | getArrive(obj) { |
| | | console.log(obj); |
| | | }, |
| | | // 获得evidence对象 |
| | | getEvidence(obj) { |
| | | console.log(obj); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo); |
| | | this.things = JSON.parse(JSON.stringify(this.userInfo)); |
| | | // 获取所属类型列表 |
| | | this.getTypeThird(); |
| | |
| | | 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({ |
| | |
| | | methods: { |
| | | // 顶部下拉框 |
| | | setMystatus(value) { |
| | | console.log(value); |
| | | this.statusArr[1] = value; |
| | | this.changeTypeChecked(value - 1); |
| | | this.getUserList(); |
| | | }, |
| | | // 批量删除 |
| | | mulDelete(idArr){ |
| | | console.log(idArr); |
| | | this.$axios({ |
| | | method:'delete', |
| | | url:'sccg/violations/batch_delete?ids='+idArr, |
| | |
| | | }, |
| | | // 执行下拉框操作 |
| | | selectChange(list) { |
| | | console.log(this.tempList); |
| | | if (this.tempList.length !== 0) { |
| | | if (list === 3) { |
| | | this.preMyIdx = list; |
| | |
| | | }, |
| | | // 删除单条数据 |
| | | handleDelete({ number }) { |
| | | console.log(number); |
| | | this.$confirm('确认删除?') |
| | | .then(_ => { |
| | | console.log(1); |
| | | this.$axios({ |
| | | method: 'delete', |
| | | url: `sccg/violations/delete?id=${number}`, |
| | |
| | | this.getUserList(); |
| | | }) |
| | | }) |
| | | .catch(_ => { console.log(2) }); |
| | | .catch(_ => { }); |
| | | }, |
| | | // 获取用户列表 |
| | | getUserList() { |
| | |
| | | opernDialog(data){ |
| | | this.dialogUpload = true; |
| | | this.caseId = data.id; |
| | | // console.log(data); |
| | | }, |
| | | // 重新处置 |
| | | handleReset({id}){ |
| | | console.log(id); |
| | | this.$axios({ |
| | | method:'put', |
| | | url:'sccg/base_case/case_status_update?caseId='+id+'&state=0' |
| | |
| | | }, |
| | | // 检验user |
| | | checkUser() { |
| | | // console.log(this.$refs.userForm.validate); |
| | | this.$refs.userForm.validate((valid) => { |
| | | console.log(valid); |
| | | if (valid) { |
| | | this.evidence.userInfo = true; |
| | | this.userFlag = false; |
| | |
| | | }, |
| | | props:['caseId'], |
| | | created(){ |
| | | console.log(this.caseId); |
| | | }, |
| | | methods:{ |
| | | handleSubmit(){ |
| | |
| | | }, |
| | | // 获得arrive的信息 |
| | | getArrive(obj) { |
| | | console.log(obj); |
| | | }, |
| | | // 获得evidence对象 |
| | | getEvidence(obj) { |
| | | console.log(obj); |
| | | } |
| | | } |
| | | } |
| | |
| | | }, |
| | | // 街道更改 |
| | | handleStreet(id) { |
| | | console.log(id); |
| | | this.ill.communityId = ''; |
| | | // this.communityList = getcommunityList(1,'11') |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: `sccg/sccg_region/getChildren/${id}` |
| | | }) |
| | | .then(res => { |
| | | console.log(res.data) |
| | | this.communityList = res.data; |
| | | }) |
| | | }, |
| | |
| | | </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> --> |
| | | <div class="user-item"> |
| | | <!-- 所属街道 --> |
| | | <el-form-item class="optionItems" label="所属街道:" prop="streetId"> |
| | |
| | | }, |
| | | created() { |
| | | const { setBigKindList, getStreetList, getEventLevel } = this; |
| | | console.log(this.mytype); |
| | | this.vio.category = this.mytype + 1; |
| | | setBigKindList(); |
| | | getStreetList(0); |
| | |
| | | return item; |
| | | } |
| | | }) |
| | | console.log(this.anYouList); |
| | | }, |
| | | // 查询大类列表 |
| | | async getBigKind() { |
| | |
| | | }, |
| | | // 街道更改 |
| | | handleStreet(id) { |
| | | console.log(id); |
| | | this.vio.communityId = ''; |
| | | // this.communityList = getTypeList(1,'11') |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: `sccg/sccg_region/getChildren/${id}` |
| | |
| | | selectBlur(e) { |
| | | if (e.target.value) { |
| | | this.vio.actionCause = e.target.value; |
| | | console.log(e.target.value); |
| | | } |
| | | } |
| | | }, |
| | |
| | | default:{}, |
| | | }, |
| | | created(){ |
| | | console.log(this.viewData); |
| | | } |
| | | } |
| | | </script> |
| | |
| | | }, |
| | | methods: { |
| | | search() { |
| | | console.log('search'); |
| | | }, |
| | | |
| | | reset() { |
| | |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err); |
| | | }); |
| | | } else { |
| | | return false; |
| | |
| | | } |
| | | |
| | | }) |
| | | .catch(err => { console.log(err) }); |
| | | .catch(err => { }); |
| | | }else{ |
| | | return false; |
| | | } |
| | |
| | | } |
| | | |
| | | }) |
| | | .catch(err => { console.log(err) }); |
| | | .catch(err => { }); |
| | | }else{ |
| | | return false; |
| | | } |
| | |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err); |
| | | |
| | | }); |
| | | } else { |
| | | return false; |
| | |
| | | }, |
| | | // 删除单条数据 |
| | | handleDelete({ number }) { |
| | | console.log(number); |
| | | this.$confirm('确认删除?') |
| | | .then(_ => { |
| | | this.$axios({ |
| | |
| | | this.getUserList(); |
| | | }) |
| | | }) |
| | | .catch(_ => { console.log(2) }); |
| | | .catch(_ => { }); |
| | | }, |
| | | // 获取用户列表 |
| | | getUserList() { |
| | |
| | | background-color: #09152f; |
| | | margin-top: 20px; |
| | | padding-bottom: 50px; |
| | | border: 1pox solid #fff; |
| | | .btn span:hover{ |
| | | cursor: pointer; |
| | | } |
| | |
| | | if (value) { |
| | | callback(); |
| | | } else { |
| | | // const rep = /^[\u4E00-\u9FA5]{2,4}$/; |
| | | // if (!rep.test(value)) { |
| | | // callback("请输入正确的用户姓名"); |
| | | // } |
| | | callback(); |
| | | } |
| | | }; |
| | |
| | | handleCancel(){ |
| | | this.$emit('closeDialog',{flag:false,index:0}); |
| | | } |
| | | // 获取创建用户信息 |
| | | // async getCreaterInfo(){ |
| | | // let id; |
| | | // const name = sessionStorage.getItem('name'); |
| | | // await this.$axios({ |
| | | // method:'get', |
| | | // url:'sccg/admin/info?name='+'name' |
| | | // }) |
| | | // .then(res=>{ |
| | | // console.log(res); |
| | | // if(res.code ===200){ |
| | | |
| | | // } |
| | | // }) |
| | | // } |
| | | }, |
| | | props: ['closeDialog'] |
| | | } |
| | |
| | | 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({ |
| | |
| | | // 删除第三方接口 |
| | | handleDelete({ id }) { |
| | | this.dialogUpdate=true; |
| | | console.log(id); |
| | | } |
| | | // // 当前页改变触发事件 |
| | | // changeCurrentPage(page) { |
| | | // this.currentPage = page; |
| | | // this.getUserList(); |
| | | // }, |
| | | // // 上一页点击事件 |
| | | // handlePrev(page) { |
| | | // this.currentPage = page; |
| | | // this.getUserList(); |
| | | // }, |
| | | // // 下一页点击事件 |
| | | // handleNext(page) { |
| | | // this.currentPage = page; |
| | | // this.getUserList(); |
| | | // }, |
| | | } |
| | | } |
| | | </script> |
| | | <!-- sccg/system/portal/thirdApp/search --> |
| | | <style lang="scss" scoped> |
| | | .otherInterface { |
| | | header { |
| | |
| | | methods: { |
| | | // 关闭弹窗 |
| | | handleCancel() { |
| | | console.log(1); |
| | | this.$emit("closeDialog", { flag: false, index: 0 }); |
| | | }, |
| | | //保存 |
| | | handleSave() { |
| | | const { myInterface } = this; |
| | | this.$refs.survey.validate((flag)=>{ |
| | | console.log(flag) |
| | | if(flag){ |
| | | |
| | | }else{ |
| | | return false |
| | | } |
| | | }) |
| | | // this.$axios |
| | | // .post("sccg/system/portal/thirdApp/add", { |
| | | // websiteUrl: myInterface.websiteUrl, |
| | | // applicationIconUrl: myInterface.applicationIconUrl, |
| | | // applicationType: 0, |
| | | // description: myInterface.description, |
| | | // applicationName: myInterface.applicationName, |
| | | // }) |
| | | // .then((res) => { |
| | | // console.log(res); |
| | | // // if (res.code === 200) { |
| | | // // this.refresh(); |
| | | // // } |
| | | // }); |
| | | }, |
| | | }, |
| | | props: ['refresh','closeDialog'], |
| | |
| | | .catch((_) => {}); |
| | | }, |
| | | closeDialog({ flag, index }) { |
| | | console.log(flag); |
| | | index === 1 ? "" : ""; |
| | | this.dialogCreate = flag; |
| | | }, |
| | | // 创建查看弹窗 |
| | | handleView(rowData) { |
| | | console.log(rowData); |
| | | this.userInfo = rowData; |
| | | this.dialogUpdate = true; |
| | | }, |
| | | // 删除第三方接口 |
| | | handleDelete({ id }) { |
| | | console.log(id); |
| | | this.$axios |
| | | .delete("sccg/system/portal/thirdApp/delete", { |
| | | params: { |
| | |
| | | } |
| | | |
| | | }) |
| | | .catch(err => { console.log(err) }); |
| | | .catch(err => { }); |
| | | } else { |
| | | return false; |
| | | } |
| | |
| | | } |
| | | |
| | | }) |
| | | .catch(err => { console.log(err) }); |
| | | .catch(err => { }); |
| | | }else{ |
| | | return false; |
| | | } |
| | |
| | | } |
| | | |
| | | }) |
| | | .catch(err => { console.log(err) }); |
| | | .catch(err => { }); |
| | | }else{ |
| | | return false; |
| | | } |
| | |
| | | } |
| | | |
| | | }) |
| | | .catch(err => { console.log(err) }); |
| | | .catch(err => { }); |
| | | } else { |
| | | return false; |
| | | } |
| | |
| | | > |
| | | <el-table-column prop="code" label="事件编号" min-width="18"> |
| | | <template slot-scope="scope"> |
| | | <el-link>{{ scope.row.code }}</el-link> |
| | | <el-link @click="handleView(scope.row)">{{ scope.row.code }}</el-link> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="category" label="问题类别" min-width="8"> |
| | |
| | | closeDialog({ flag }) { |
| | | this.dialogExamine = flag; |
| | | this.dialogClosure = flag; |
| | | this.dialogView = false; |
| | | this.getList(); |
| | | }, |
| | | |
| | | async handleView(rowData) { |
| | | this.info = await casequery.getBaseCaseDetail(rowData.code); |
| | | this.dialogView = true; |
| | | }, |
| | | |
| | | filterTime(time) { |
| | | return helper(time); |
| | | }, |
| | |
| | | this.$emit('getSearch', { text: this.search }) |
| | | }, |
| | | sendDialog(flag) { |
| | | console.log(flag); |
| | | this.dialogCreate = flag.flag; |
| | | this.$emit('setDialog', { flag: true }) |
| | | }, |
| | |
| | | <style lang="scss" scoped> |
| | | header { |
| | | background-color: #09152f; |
| | | border: 1pox solid #fff; |
| | | |
| | | .headerContent { |
| | | padding: 0 40px; |
| | |
| | | }, |
| | | methods: { |
| | | async selectChange(list) { |
| | | console.log(this.tempList); |
| | | if (this.tempList.length !== 0) { |
| | | this.preMyIdx = list; |
| | | if (list === 3) { |
| | |
| | | list.forEach(item => { |
| | | this.tempList.push(item.id); |
| | | }) |
| | | if (list.length === this.tableData.length) { |
| | | this.all = true; |
| | | } else { |
| | | this.all = false |
| | | } |
| | | this.all = list.length === this.tableData.length; |
| | | }, |
| | | // 批量删除用户信息 |
| | | mulDelte(idArr) { |
| | | console.log(idArr); |
| | | this.$confirm("您确定要进行批量删除用户吗?") |
| | | .then(_ => { |
| | | this.$axios({ |
| | |
| | | } |
| | | }) |
| | | }) |
| | | .catch(err => { console.log(err) }) |
| | | .catch(err => { }) |
| | | }, |
| | | // 批量修改账号 |
| | | mulUpdateStatus(idArr, flag) { |
| | | console.log(flag); |
| | | this.$confirm(flag === 1 ? "您确定要进行批量启用用户吗?" : '您确定要进行批量禁用用户吗?') |
| | | .then(_ => { |
| | | this.$axios({ |
| | |
| | | } |
| | | }) |
| | | }) |
| | | .catch(err => { console.log(err) }) |
| | | .catch(err => { }) |
| | | }, |
| | | changeTime({ createTime }) { |
| | | return helper(createTime); |
| | |
| | | this.dialogUpdate = true; |
| | | this.updateFlag = true; |
| | | for (let key in this.flag) { |
| | | if (key == mykey) { |
| | | if (key === mykey) { |
| | | this.flag[key] = true; |
| | | } else { |
| | | this.flag[key] = false; |
| | |
| | | // 修改用户状态 |
| | | handleChangeStatus(obj) { |
| | | let { id, status } = obj; |
| | | status == true ? status = 1 : status = 0; |
| | | status === true ? status = 1 : status = 0; |
| | | this.$axios.post(`sccg/admin/updateStatus/` + id + '?status=' + status).then(res => { |
| | | }) |
| | | }, |
| | |
| | | this.$axios.get(`sccg/admin/list?keyword=${search}¤t=${currentPage}&pageSize=${pageSize}`).then(res => { |
| | | if (res.code === 200) { |
| | | res.data.records.forEach(item => { |
| | | item.status == 1 ? item.status = true : item.status = false; |
| | | item.status === 1 ? item.status = true : item.status = false; |
| | | }) |
| | | that.totalNum = res.data.total; |
| | | that.tableData = res.data.records; |
| | |
| | | }, |
| | | // 设置表格斑马纹 |
| | | tableRowClassName({ row, rowIndex }) { |
| | | if ((rowIndex + 1) % 2 == 0) { |
| | | if ((rowIndex + 1) % 2 === 0) { |
| | | return 'warning-row'; |
| | | } else { |
| | | return 'success-row'; |
| | | } |
| | | return ''; |
| | | }, |
| | | // 处理用户所属角色 |
| | | filterRole(arr){ |
| | |
| | | watch: { |
| | | refresh: { |
| | | handler(newValue, oldValue) { |
| | | if (newValue == true) { |
| | | if (newValue) { |
| | | this.search = ''; |
| | | if (this.keyword != '') { |
| | | if (this.keyword !== '') { |
| | | this.search = this.keyword; |
| | | } |
| | | this.currentPage = 1; |
| | |
| | | }, |
| | | // 获取刷新结果 |
| | | changeDialog({ flag }) { |
| | | console.log(flag); |
| | | this.isFresh = flag; |
| | | }, |
| | | // 重置isFresh |
| | | resetFresh({ flag }) { |
| | | this.isFresh = flag; |
| | | console.log(this.isFresh); |
| | | }, |
| | | } |
| | | } |
| | |
| | | }, |
| | | // 修改状态 |
| | | handleChangeStatus(data) { |
| | | console.log(data); |
| | | let { isStart, relationId } = data; |
| | | isStart ? isStart = 1 : isStart = 0; |
| | | this.$axios({ |
| | |
| | | }, |
| | | // 拖拽 |
| | | handleDrop(before, after, inner, event) { |
| | | console.log(before) |
| | | console.log(after) |
| | | console.log(inner) |
| | | console.log(event); |
| | | }, |
| | | // 获取是否可以放置 |
| | | allowDrop(before, inner, next) { |