Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/jczz_web
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getPatrolGroupTree = () => { |
| | | return request({ |
| | | url: '/api/patrol/patrolGroup/getPatrolGroupTree', |
| | | method: 'get', |
| | | }) |
| | | } |
| | |
| | | <el-drawer title="巡查详情" :visible.sync="isDetail" :append-to-body="true" size="60%" direction="rtl"> |
| | | |
| | | <el-card class="trackClass" style="overflow-y: auto"> |
| | | <el-form :model="form" label-position="right" size="mini" class="taskinfoForm" label-width="70px"> |
| | | |
| | | <el-collapse v-model="activeNames" @change="handleChange"> |
| | | <div v-for="(item, index) in 10" :key="index"> |
| | | <el-collapse-item title="一致性 Consistency" name="1"> |
| | | <div>{{index}} |
| | | |
| | | <el-collapse v-model="activeNames" @change="handleChange"> |
| | | <div v-for="(item, index) in 3" :key="index"> |
| | | <el-collapse-item title="er致性 Consistency" name="1"> |
| | | <div>在界面中一致:所有的元素和结构需保持一致,比如:设计样式、图标和文本、元素的位置等。{{index}}</div> |
| | | </el-collapse-item> |
| | | </div> |
| | | </el-collapse> |
| | | </div> |
| | | </el-collapse-item> |
| | | </div> |
| | | </el-collapse> |
| | | |
| | | <!-- <el-form :model="form" label-position="right" size="mini" class="taskinfoForm" label-width="70px"> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="巡检状态"> |
| | | <el-input :disabled="true" v-model="form.$status" autocomplete="off"></el-input> |
| | | <el-form-item label="巡查内容"> |
| | | <el-input :disabled="true" v-model="form.content" autocomplete="off"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="巡查内容"> |
| | | <el-input :disabled="true" v-model="form.content" autocomplete="off"></el-input> |
| | | <el-form-item label="巡检状态"> |
| | | <el-input :disabled="true" v-model="form.$status" autocomplete="off"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | </el-form> --> |
| | | |
| | | </el-card> |
| | | |
| | | <!-- <DcMap v-if="isDetail" :is-detail="isDetail" :range="form.taskRoute" :patrolRoute="form.patrolRoute"> |
| | |
| | | import { |
| | | getList, |
| | | remove, |
| | | update, |
| | | add, |
| | | getNotice, |
| | | upcomment |
| | | update, |
| | | getDetail, |
| | | getPatrolGroupTree |
| | | } from "@/api/patrol/placeChek" |
| | | |
| | | import { |
| | | addPd, |
| | | } from "@/api/discuss/publicDiscuss" |
| | | |
| | | import website from '@/config/website' |
| | | |
| | | |
| | | import { |
| | | getDistrictTree |
| | | } from "@/api/district/index" |
| | | // import { |
| | | // getDistrictTree |
| | | // } from "@/api/district/index" |
| | | |
| | | import { |
| | | mapGetters |
| | |
| | | }, |
| | | data: [], |
| | | |
| | | districtTree: [], |
| | | patrolTree: [], |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.loading = false |
| | | this.selectionClear() |
| | | }) |
| | | getDistrictTree({ |
| | | filterFlag: 1 |
| | | }).then((res) => { |
| | | getPatrolGroupTree({}).then((res) => { |
| | | const data = res.data.data |
| | | this.districtTree = data |
| | | const column = this.findObject(this.option.column, "articleList") |
| | | column.dicData = res.data.data |
| | | this.patrolTree = data |
| | | // const column = this.findObject(this.option.column, "articleList") |
| | | // column.dicData = res.data.data |
| | | this.loading = false |
| | | }) |
| | | }, |
| | |
| | | type: 'warning', |
| | | message: "请输入审批意见!", |
| | | }) |
| | | |
| | | return |
| | | } |
| | | |
| | | setCheckPlaceExt({ |
| | |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | menuWidth: 210, |
| | | |
| | | header: false, |
| | | height: "auto", |
| | | calcHeight: 54, |
| | | dialogWidth: 950, |
| | |
| | | <style> |
| | | .avue-upload__icon { |
| | | line-height: 6; |
| | | }</style> |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div class="cur-container-box"> |
| | | <div v-if="applyType == 1"> |
| | | <div class="content-box"> |
| | | 审核当前项 |
| | | </div> |
| | | <div class="footer-btn-box"> |
| | | <el-button type="primary" size="small" @click="auditPass(2)">通 过</el-button> |
| | | <el-button size="small" @click="auditPass(3)">驳 回</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="cur-container-box"> |
| | | <div v-if="applyType == 1"> |
| | | <div class="content-box"> |
| | | 审核当前项 |
| | | </div> |
| | | <div class="footer-btn-box"> |
| | | <el-button type="primary" size="small" @click="auditPass(2)">通 过</el-button> |
| | | <el-button size="small" @click="auditPass(3)">驳 回</el-button> |
| | | </div> |
| | | </div> |
| | | |
| | | <avue-form v-else :option="option" v-model="form"></avue-form> |
| | | </div> |
| | | <avue-form v-else :option="option" v-model="form"></avue-form> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { |
| | | import { |
| | | getDetail, |
| | | update |
| | | } from "@/api/task/labelReporting" |
| | | import website from '@/config/website' |
| | | export default { |
| | | data() { |
| | | return { |
| | | form: {}, |
| | | applyType: '', |
| | | option: { |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | column: [{ |
| | | label: '房屋名称', |
| | | prop: 'houseName', |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '手机号', |
| | | prop: 'phoneNumber', |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '对象电话', |
| | | prop: 'transactionObjectTel', |
| | | disabled: true, |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '交易金额', |
| | | prop: 'transactionMoney', |
| | | disabled: true, |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '物品数量', |
| | | prop: 'goodsNums', |
| | | disabled: true, |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '发生时间', |
| | | prop: 'happenTime', |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '审核时间', |
| | | prop: 'confirmTime', |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '位置', |
| | | prop: 'localtion', |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '审核意见', |
| | | prop: 'confirmNotion', |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '审核状态', |
| | | prop: 'confirmFlag', |
| | | type: 'select', |
| | | dicData: [{ |
| | | label: '待审核', |
| | | value: '1' |
| | | }, { |
| | | label: '审核通过', |
| | | value: '2' |
| | | }, { |
| | | label: '审核不通过', |
| | | value: '3' |
| | | }], |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '交易对象', |
| | | prop: 'transactionObject', |
| | | disabled: true, |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '交易过程', |
| | | prop: 'transactionProcess', |
| | | disabled: true, |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '物品照片', |
| | | prop: 'goodsImageUrls', |
| | | fileType: 'img', |
| | | type: "upload", |
| | | listType: "picture-card", |
| | | dataType: "string", |
| | | disabled: true, |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | width: 110, |
| | | label: '身份证图片', |
| | | prop: 'imageUrls', |
| | | fileType: 'img', |
| | | type: "upload", |
| | | listType: "picture-card", |
| | | dataType: "string", |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, ] |
| | | } from "@/api/task/labelReporting" |
| | | import website from '@/config/website' |
| | | export default { |
| | | data () { |
| | | return { |
| | | form: {}, |
| | | applyType: '', |
| | | option: { |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | column: [{ |
| | | label: '用户姓名', |
| | | prop: 'owner', |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '身份证号', |
| | | prop: 'idCard', |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '手机号', |
| | | prop: 'phoneNumber', |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '对象电话', |
| | | prop: 'transactionObjectTel', |
| | | disabled: true, |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '交易金额', |
| | | prop: 'transactionMoney', |
| | | disabled: true, |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '物品数量', |
| | | prop: 'goodsNums', |
| | | disabled: true, |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '发生时间', |
| | | prop: 'happenTime', |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '审核时间', |
| | | prop: 'confirmTime', |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '位置', |
| | | prop: 'localtion', |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '审核意见', |
| | | prop: 'confirmNotion', |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '审核状态', |
| | | prop: 'confirmFlag', |
| | | type: 'select', |
| | | dicData: [{ |
| | | label: '待审核', |
| | | value: '1' |
| | | }, { |
| | | label: '审核通过', |
| | | value: '2' |
| | | }, { |
| | | label: '审核不通过', |
| | | value: '3' |
| | | }], |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '交易对象', |
| | | prop: 'transactionObject', |
| | | disabled: true, |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '交易过程', |
| | | prop: 'transactionProcess', |
| | | disabled: true, |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | label: '物品照片', |
| | | prop: 'goodsImageUrls', |
| | | fileType: 'img', |
| | | type: "upload", |
| | | listType: "picture-card", |
| | | dataType: "string", |
| | | disabled: true, |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | }, { |
| | | width: 110, |
| | | label: '身份证图片', |
| | | prop: 'imageUrls', |
| | | fileType: 'img', |
| | | type: "upload", |
| | | listType: "picture-card", |
| | | dataType: "string", |
| | | disabled: true, |
| | | span: 8, |
| | | labelWidth: 120, |
| | | },] |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | auditPass(type) { |
| | | update({ |
| | | status: type, |
| | | taskId: this.form.taskId, |
| | | id: this.form.id |
| | | }).then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | this.$emit('colseDetail') |
| | | }) |
| | | }, |
| | | init(data, applyType) { |
| | | this.applyType = applyType |
| | | this.getTaskDetail(data.id) |
| | | }, |
| | | auditPass (type) { |
| | | update({ |
| | | status: type, |
| | | taskId: this.form.taskId, |
| | | id: this.form.id |
| | | }).then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | this.$emit('colseDetail') |
| | | }) |
| | | }, |
| | | init (data, applyType) { |
| | | this.applyType = applyType |
| | | this.getTaskDetail(data.id) |
| | | }, |
| | | |
| | | getTaskDetail(taskId) { |
| | | getDetail({ |
| | | taskId: taskId |
| | | }).then((res) => { |
| | | this.form = res.data.data |
| | | if (this.form.imageUrls) { |
| | | this.form.imageUrls = website.minioUrl + this.form.imageUrls |
| | | } |
| | | if (this.form.goodsImageUrls) { |
| | | this.form.goodsImageUrls = website.minioUrl + this.form.goodsImageUrls |
| | | } |
| | | getTaskDetail (taskId) { |
| | | getDetail({ |
| | | taskId: taskId |
| | | }).then((res) => { |
| | | this.form = res.data.data |
| | | if (this.form.imageUrls) { |
| | | this.form.imageUrls = website.minioUrl + this.form.imageUrls |
| | | } |
| | | if (this.form.goodsImageUrls) { |
| | | this.form.goodsImageUrls = website.minioUrl + this.form.goodsImageUrls |
| | | } |
| | | |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .cur-container-box { |
| | | .cur-container-box { |
| | | padding: 50px; |
| | | |
| | | .content-box { |
| | | margin: 0 4px; |
| | | padding: 0 16px; |
| | | height: 0; |
| | | flex: 1; |
| | | overflow: hidden; |
| | | overflow-y: auto; |
| | | margin: 0 4px; |
| | | padding: 0 16px; |
| | | height: 0; |
| | | flex: 1; |
| | | overflow: hidden; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | .footer-btn-box { |
| | | margin-top: 10px; |
| | | display: flex; |
| | | justify-content: center; |
| | | margin-top: 10px; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel" |
| | | v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" |
| | | @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" |
| | | @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <basic-container> |
| | | <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel" |
| | | v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" |
| | | :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset" |
| | | @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad"> |
| | | |
| | | <template slot-scope="scope" slot="menu"> |
| | | <el-button type="text" size="small" icon="el-icon-view" plain @click="lookDetail(scope.row)">查 看 |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="scope" slot="menu"> |
| | | <el-button type="text" size="small" icon="el-icon-view" plain @click="lookDetail(scope.row)">查 看 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="regionName"> |
| | | <el-button :size="size" type="text" @click="lookDetail(row)"> |
| | | {{ row.regionName }} |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row, size}" slot="regionName"> |
| | | <el-button :size="size" type="text" @click="lookDetail(row)"> |
| | | {{ row.regionName }} |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="number1"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, '19')"> |
| | | {{ row.number1 }} |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row, size}" slot="number1"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, '19')"> |
| | | {{ row.number1 }} |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="number2"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, '20')"> |
| | | {{ row.number2}} |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row, size}" slot="number2"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, '20')"> |
| | | {{ row.number2 }} |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="number3"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, '22')"> |
| | | {{ row.number3}} |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row, size}" slot="number4"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, '23')"> |
| | | {{ row.number4}} |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row, size}" slot="number5"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, '1025')"> |
| | | {{ row.number5 }} |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <template slot-scope="{row, size}" slot="number3"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, '22')"> |
| | | {{ row.number3 }} |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row, size}" slot="number4"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, '23')"> |
| | | {{ row.number4 }} |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row, size}" slot="number5"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, '1025')"> |
| | | {{ row.number5 }} |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | <el-dialog title="" append-to-body :visible.sync="auditBasePopup" width="80%"> |
| | | <communityKeyNotePersonnel ref="communityKeyNotePersonnel"></communityKeyNotePersonnel> |
| | | </el-dialog> |
| | | <el-dialog title="" append-to-body :visible.sync="auditBasePopup" width="80%"> |
| | | <communityKeyNotePersonnel ref="communityKeyNotePersonnel"></communityKeyNotePersonnel> |
| | | </el-dialog> |
| | | |
| | | <el-dialog title="" append-to-body :visible.sync="userPopup" width="80%"> |
| | | <userHouseList ref="userHouseList"></userHouseList> |
| | | </el-dialog> |
| | | <el-dialog title="" append-to-body :visible.sync="userPopup" width="80%"> |
| | | <userHouseList ref="userHouseList"></userHouseList> |
| | | </el-dialog> |
| | | |
| | | </basic-container> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | import { |
| | | statisticalLabels |
| | | } from "@/api/userHouse/list/userHouseList" |
| | | } from "@/api/userHouse/list/userHouseList" |
| | | |
| | | |
| | | import { |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | | } from "vuex" |
| | | |
| | | import userHouseList from './components/userHouseList.vue' |
| | | import userHouseList from './components/userHouseList.vue' |
| | | |
| | | import communityKeyNotePersonnel from './components/communityKeyNotePersonnel.vue' |
| | | import communityKeyNotePersonnel from './components/communityKeyNotePersonnel.vue' |
| | | |
| | | import website from '@/config/website' |
| | | import website from '@/config/website' |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | taskType: 0, |
| | | curRow: {}, |
| | | roleBox: false, |
| | | export default { |
| | | data () { |
| | | return { |
| | | taskType: 0, |
| | | curRow: {}, |
| | | roleBox: false, |
| | | |
| | | form: {}, |
| | | query: {}, |
| | | loading: true, |
| | | form: {}, |
| | | query: {}, |
| | | loading: true, |
| | | |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | datetime: "", |
| | | selectionList: [], |
| | | option: { |
| | | height: "auto", |
| | | calcHeight: 54, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | // menuWidth: 280, |
| | | menu: false, |
| | | border: true, |
| | | //stripe:true, |
| | | index: true, |
| | | // viewBtn: true, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | addBtn: false, |
| | | // selection: true, |
| | | dialogClickModal: false, |
| | | column: [{ |
| | | span: 12, |
| | | label: "行政区域", |
| | | prop: "regionName", |
| | | searchSpan: 4, |
| | | align: 'center', |
| | | // search: true, |
| | | // hide: true, |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | // { |
| | | // span: 12, |
| | | // label: "所属社区", |
| | | // prop: "communityName", |
| | | // align: 'center', |
| | | // searchSpan: 4, |
| | | // search: true, |
| | | // // hide: true, |
| | | // }, |
| | | { |
| | | span: 12, |
| | | label: "刑释解教人员", |
| | | prop: "number1", |
| | | align: 'center', |
| | | searchSpan: 4, |
| | | datetime: "", |
| | | selectionList: [], |
| | | option: { |
| | | height: "auto", |
| | | calcHeight: 54, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | // menuWidth: 280, |
| | | menu: false, |
| | | border: true, |
| | | //stripe:true, |
| | | index: true, |
| | | // viewBtn: true, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | addBtn: false, |
| | | // selection: true, |
| | | header: false, |
| | | dialogClickModal: false, |
| | | column: [{ |
| | | span: 12, |
| | | label: "行政区域", |
| | | prop: "regionName", |
| | | searchSpan: 4, |
| | | align: 'center', |
| | | // search: true, |
| | | // hide: true, |
| | | }, |
| | | // { |
| | | // span: 12, |
| | | // label: "所属社区", |
| | | // prop: "communityName", |
| | | // align: 'center', |
| | | // searchSpan: 4, |
| | | // search: true, |
| | | // // hide: true, |
| | | // }, |
| | | { |
| | | span: 12, |
| | | label: "刑释解教人员", |
| | | prop: "number1", |
| | | align: 'center', |
| | | searchSpan: 4, |
| | | }, |
| | | { |
| | | span: 12, |
| | | label: "肇事肇祸精神障碍患者", |
| | | prop: "number2", |
| | | align: 'center', |
| | | searchSpan: 4, |
| | | }, |
| | | { |
| | | span: 12, |
| | | label: "一般精神障碍患者", |
| | | prop: "number3", |
| | | align: 'center', |
| | | searchSpan: 4, |
| | | }, |
| | | { |
| | | span: 12, |
| | | label: "重点对象", |
| | | prop: "number4", |
| | | align: 'center', |
| | | searchSpan: 4, |
| | | }, |
| | | { |
| | | span: 12, |
| | | label: "取保候审", |
| | | prop: "number5", |
| | | align: 'center', |
| | | searchSpan: 4, |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | span: 12, |
| | | label: "肇事肇祸精神障碍患者", |
| | | prop: "number2", |
| | | align: 'center', |
| | | searchSpan: 4, |
| | | }, |
| | | { |
| | | span: 12, |
| | | label: "一般精神障碍患者", |
| | | prop: "number3", |
| | | align: 'center', |
| | | searchSpan: 4, |
| | | }, |
| | | { |
| | | span: 12, |
| | | label: "重点对象", |
| | | prop: "number4", |
| | | align: 'center', |
| | | searchSpan: 4, |
| | | }, |
| | | { |
| | | span: 12, |
| | | label: "取保候审", |
| | | prop: "number5", |
| | | align: 'center', |
| | | searchSpan: 4, |
| | | }, |
| | | ], |
| | | }, |
| | | data: [], |
| | | data: [], |
| | | |
| | | auditBasePopup: false, |
| | | userPopup: false, |
| | | } |
| | | auditBasePopup: false, |
| | | userPopup: false, |
| | | } |
| | | }, |
| | | |
| | | provide() { |
| | | return { |
| | | placeElement: this, |
| | | } |
| | | provide () { |
| | | return { |
| | | placeElement: this, |
| | | } |
| | | }, |
| | | |
| | | components: { |
| | | communityKeyNotePersonnel, |
| | | userHouseList, |
| | | // labelReporting, |
| | | communityKeyNotePersonnel, |
| | | userHouseList, |
| | | // labelReporting, |
| | | }, |
| | | |
| | | watch: {}, |
| | | |
| | | computed: { |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.place_add, true), |
| | | viewBtn: this.vaildData(this.permission.place_view, true), |
| | | delBtn: this.vaildData(this.permission.place_delete, true), |
| | | editBtn: this.vaildData(this.permission.place_edit, true), |
| | | } |
| | | }, |
| | | ids() { |
| | | let ids = [] |
| | | this.selectionList.forEach((ele) => { |
| | | ids.push(ele.id) |
| | | }) |
| | | return ids.join(",") |
| | | }, |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList () { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.place_add, true), |
| | | viewBtn: this.vaildData(this.permission.place_view, true), |
| | | delBtn: this.vaildData(this.permission.place_delete, true), |
| | | editBtn: this.vaildData(this.permission.place_edit, true), |
| | | } |
| | | }, |
| | | ids () { |
| | | let ids = [] |
| | | this.selectionList.forEach((ele) => { |
| | | ids.push(ele.id) |
| | | }) |
| | | return ids.join(",") |
| | | }, |
| | | |
| | | }, |
| | | methods: { |
| | | |
| | | colseDetail() { |
| | | this.auditBasePopup = false |
| | | this.onLoad(this.page) |
| | | }, |
| | | |
| | | showStringDispose(row, type) { |
| | | row.labelId = type |
| | | this.userPopup = true |
| | | var that = this |
| | | this.$nextTick(() => { |
| | | that.$refs.userHouseList.init(row) |
| | | }) |
| | | }, |
| | | |
| | | lookDetail(row) { |
| | | this.auditBasePopup = true |
| | | var that = this |
| | | this.$nextTick(() => { |
| | | that.$refs.communityKeyNotePersonnel.init(row) |
| | | }) |
| | | }, |
| | | |
| | | |
| | | auditCur(row) { |
| | | this.curAuditRow = row |
| | | this.auditBasePopup = true |
| | | }, |
| | | |
| | | roleBoxClose() { |
| | | this.curRow = {} |
| | | }, |
| | | |
| | | ManageTenants(item) { |
| | | this.curRow = item |
| | | this.roleBox = true |
| | | }, |
| | | |
| | | rowSave(row, done, loading) { |
| | | if (row.imageUrls.length > 0) { |
| | | var urls = [] |
| | | var split = row.imageUrls.split(",").filter(item => item != '') |
| | | split.forEach(url => { |
| | | var names = url.split("jczz/") |
| | | urls.push(names[1]) |
| | | }) |
| | | row.imageUrls = urls.join(",") |
| | | } |
| | | |
| | | let label = row.label |
| | | |
| | | if (row.smallLabel != '') { |
| | | label = label + ',' + row.smallLabel |
| | | } |
| | | |
| | | delete row.smallLabel |
| | | |
| | | add({ |
| | | ...row, |
| | | label |
| | | }).then( |
| | | () => { |
| | | colseDetail () { |
| | | this.auditBasePopup = false |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }, |
| | | |
| | | showStringDispose (row, type) { |
| | | row.labelId = type |
| | | this.userPopup = true |
| | | var that = this |
| | | this.$nextTick(() => { |
| | | that.$refs.userHouseList.init(row) |
| | | }) |
| | | done() |
| | | }, |
| | | (error) => { |
| | | window.console.log(error) |
| | | loading() |
| | | } |
| | | ) |
| | | }, |
| | | }, |
| | | |
| | | rowUpdate(row, index, done, loading) { |
| | | if (row.imageUrls.length > 0) { |
| | | var urls = [] |
| | | var split = row.imageUrls.split(",").filter(item => item != '') |
| | | split.forEach(url => { |
| | | var names = url.split("jczz/") |
| | | urls.push(names[1]) |
| | | }) |
| | | row.imageUrls = urls.join(",") |
| | | } |
| | | |
| | | let label = row.label |
| | | |
| | | if (row.smallLabel != '') { |
| | | label = label + ',' + row.smallLabel |
| | | } |
| | | |
| | | delete row.smallLabel |
| | | |
| | | update({ |
| | | ...row, |
| | | label |
| | | }).then( |
| | | () => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | lookDetail (row) { |
| | | this.auditBasePopup = true |
| | | var that = this |
| | | this.$nextTick(() => { |
| | | that.$refs.communityKeyNotePersonnel.init(row) |
| | | }) |
| | | done() |
| | | }, |
| | | (error) => { |
| | | window.console.log(error) |
| | | loading() |
| | | } |
| | | ) |
| | | }, |
| | | }, |
| | | |
| | | rowDel(row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | row.isDeleted = 1 |
| | | return removeTask(row) |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page) |
| | | |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | }) |
| | | }, |
| | | searchReset() { |
| | | this.query = {} |
| | | this.onLoad(this.page) |
| | | }, |
| | | searchChange(params, done) { |
| | | this.query = params |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page, params) |
| | | done() |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = [] |
| | | this.$nextTick(() => { |
| | | this.$refs.crud && this.$refs.crud.toggleSelection() |
| | | }) |
| | | }, |
| | | handleDelete() { |
| | | if (this.selectionList.length === 0) { |
| | | this.$message.warning("请选择至少一条数据") |
| | | return |
| | | } |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(this.ids) |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | this.$refs.crud.toggleSelection() |
| | | }) |
| | | }, |
| | | auditCur (row) { |
| | | this.curAuditRow = row |
| | | this.auditBasePopup = true |
| | | }, |
| | | |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | // getPlace(this.form.id).then((res) => { |
| | | // this.form = res.data.data |
| | | // if (this.form.imageUrls.length) { |
| | | // this.form.imageUrls = this.form.imageUrls.split(",").filter(item => item != '').map(item => website |
| | | // .minioUrl + item).join(',') |
| | | // } |
| | | // if (this.form.placePoiLabelVOList.length) { |
| | | // let lebelTwo = this.form.placePoiLabelVOList.find(item => { |
| | | // return item.type == 2 |
| | | // }) |
| | | // if (lebelTwo) this.form.label = String(lebelTwo.poiCode) |
| | | // let lebelThree = this.form.placePoiLabelVOList.find(item => { |
| | | // return item.type == 3 |
| | | // }) |
| | | // if (lebelThree) this.form.smallLabel = String(lebelThree.poiCode) |
| | | // } |
| | | // done() |
| | | // }) |
| | | } else { |
| | | done() |
| | | } |
| | | }, |
| | | roleBoxClose () { |
| | | this.curRow = {} |
| | | }, |
| | | |
| | | currentChange(currentPage) { |
| | | this.page.currentPage = currentPage |
| | | }, |
| | | sizeChange(pageSize) { |
| | | this.page.pageSize = pageSize |
| | | }, |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query) |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | const { |
| | | dateTime |
| | | } = this.query |
| | | let values = { |
| | | ...params, |
| | | } |
| | | this.loading = true |
| | | statisticalLabels(page.currentPage, page.pageSize, values).then((res) => { |
| | | const data = res.data.data |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.data.forEach(item => { |
| | | if (item.imageUrls && item.imageUrls != '' && item.imageUrls != null && item.imageUrls.length) { |
| | | var urls = [] |
| | | var names = item.imageUrls.split(",").filter(item => item != '') |
| | | names.forEach(name => { |
| | | urls.push(website.minioUrl + name) |
| | | }) |
| | | item.imageUrls = urls.join(",") |
| | | ManageTenants (item) { |
| | | this.curRow = item |
| | | this.roleBox = true |
| | | }, |
| | | |
| | | rowSave (row, done, loading) { |
| | | if (row.imageUrls.length > 0) { |
| | | var urls = [] |
| | | var split = row.imageUrls.split(",").filter(item => item != '') |
| | | split.forEach(url => { |
| | | var names = url.split("jczz/") |
| | | urls.push(names[1]) |
| | | }) |
| | | row.imageUrls = urls.join(",") |
| | | } |
| | | }) |
| | | this.loading = false |
| | | this.selectionClear() |
| | | }) |
| | | } |
| | | |
| | | let label = row.label |
| | | |
| | | if (row.smallLabel != '') { |
| | | label = label + ',' + row.smallLabel |
| | | } |
| | | |
| | | delete row.smallLabel |
| | | |
| | | add({ |
| | | ...row, |
| | | label |
| | | }).then( |
| | | () => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | done() |
| | | }, |
| | | (error) => { |
| | | window.console.log(error) |
| | | loading() |
| | | } |
| | | ) |
| | | }, |
| | | |
| | | rowUpdate (row, index, done, loading) { |
| | | if (row.imageUrls.length > 0) { |
| | | var urls = [] |
| | | var split = row.imageUrls.split(",").filter(item => item != '') |
| | | split.forEach(url => { |
| | | var names = url.split("jczz/") |
| | | urls.push(names[1]) |
| | | }) |
| | | row.imageUrls = urls.join(",") |
| | | } |
| | | |
| | | let label = row.label |
| | | |
| | | if (row.smallLabel != '') { |
| | | label = label + ',' + row.smallLabel |
| | | } |
| | | |
| | | delete row.smallLabel |
| | | |
| | | update({ |
| | | ...row, |
| | | label |
| | | }).then( |
| | | () => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | done() |
| | | }, |
| | | (error) => { |
| | | window.console.log(error) |
| | | loading() |
| | | } |
| | | ) |
| | | }, |
| | | |
| | | rowDel (row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | row.isDeleted = 1 |
| | | return removeTask(row) |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page) |
| | | |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | }) |
| | | }, |
| | | searchReset () { |
| | | this.query = {} |
| | | this.onLoad(this.page) |
| | | }, |
| | | searchChange (params, done) { |
| | | this.query = params |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page, params) |
| | | done() |
| | | }, |
| | | selectionChange (list) { |
| | | this.selectionList = list |
| | | }, |
| | | selectionClear () { |
| | | this.selectionList = [] |
| | | this.$nextTick(() => { |
| | | this.$refs.crud && this.$refs.crud.toggleSelection() |
| | | }) |
| | | }, |
| | | handleDelete () { |
| | | if (this.selectionList.length === 0) { |
| | | this.$message.warning("请选择至少一条数据") |
| | | return |
| | | } |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(this.ids) |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | this.$refs.crud.toggleSelection() |
| | | }) |
| | | }, |
| | | |
| | | beforeOpen (done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | // getPlace(this.form.id).then((res) => { |
| | | // this.form = res.data.data |
| | | // if (this.form.imageUrls.length) { |
| | | // this.form.imageUrls = this.form.imageUrls.split(",").filter(item => item != '').map(item => website |
| | | // .minioUrl + item).join(',') |
| | | // } |
| | | // if (this.form.placePoiLabelVOList.length) { |
| | | // let lebelTwo = this.form.placePoiLabelVOList.find(item => { |
| | | // return item.type == 2 |
| | | // }) |
| | | // if (lebelTwo) this.form.label = String(lebelTwo.poiCode) |
| | | // let lebelThree = this.form.placePoiLabelVOList.find(item => { |
| | | // return item.type == 3 |
| | | // }) |
| | | // if (lebelThree) this.form.smallLabel = String(lebelThree.poiCode) |
| | | // } |
| | | // done() |
| | | // }) |
| | | } else { |
| | | done() |
| | | } |
| | | }, |
| | | |
| | | currentChange (currentPage) { |
| | | this.page.currentPage = currentPage |
| | | }, |
| | | sizeChange (pageSize) { |
| | | this.page.pageSize = pageSize |
| | | }, |
| | | refreshChange () { |
| | | this.onLoad(this.page, this.query) |
| | | }, |
| | | onLoad (page, params = {}) { |
| | | const { |
| | | dateTime |
| | | } = this.query |
| | | let values = { |
| | | ...params, |
| | | } |
| | | this.loading = true |
| | | statisticalLabels(page.currentPage, page.pageSize, values).then((res) => { |
| | | const data = res.data.data |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.data.forEach(item => { |
| | | if (item.imageUrls && item.imageUrls != '' && item.imageUrls != null && item.imageUrls.length) { |
| | | var urls = [] |
| | | var names = item.imageUrls.split(",").filter(item => item != '') |
| | | names.forEach(name => { |
| | | urls.push(website.minioUrl + name) |
| | | }) |
| | | item.imageUrls = urls.join(",") |
| | | } |
| | | }) |
| | | this.loading = false |
| | | this.selectionClear() |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .avue-upload__icon { |
| | | .avue-upload__icon { |
| | | line-height: 6; |
| | | } |
| | | } |
| | | |
| | | .cur-container-box { |
| | | .cur-container-box { |
| | | display: flex; |
| | | flex-direction: column; |
| | | width: 100%; |
| | |
| | | overflow: hidden; |
| | | |
| | | .content-box { |
| | | margin: 0 4px; |
| | | padding: 0 16px; |
| | | height: 0; |
| | | flex: 1; |
| | | overflow: hidden; |
| | | overflow-y: auto; |
| | | margin: 0 4px; |
| | | padding: 0 16px; |
| | | height: 0; |
| | | flex: 1; |
| | | overflow: hidden; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | .footer-btn-box { |
| | | margin-top: 10px; |
| | | display: flex; |
| | | justify-content: center; |
| | | margin-top: 10px; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | @click="lookDetail(row, 0)">查 看 |
| | | </el-button> |
| | | <el-button type="text" :size="size" icon="el-icon-s-check" v-if="permission.place_check && row.status == 1"" plain |
| | | @click=" goAudit(row)">审 核 |
| | | @click=" goAudit(row)">审 核 |
| | | </el-button> |
| | | <el-button type="text" :size="size" icon="el-icon-delete" v-if="permission.place_del" plain |
| | | @click="rowDel(row)">删 除 |
| | |
| | | editBtn: false, |
| | | delBtn: false, |
| | | selection: true, |
| | | header: false, |
| | | dialogClickModal: false, |
| | | column: [{ |
| | | span: 12, |
| | |
| | | var data = { |
| | | ...this.query |
| | | } |
| | | data.isNine = 1 |
| | | data = Qs.stringify(data) |
| | | exportBlob( |
| | | `/api/blade-place/place/exportNineType?${this.website.tokenHeader}=${getToken()}&` + data |
| | |
| | | |
| | | // 九小类型转换 |
| | | switchNineType (type) { |
| | | return this.nineTypeList.find(item => item.key === type).title |
| | | return this.nineTypeList.find(item => item.key === type) ? this.nineTypeList.find(item => item.key === type).title : '' |
| | | }, |
| | | |
| | | // 获取问题类型 |
| | |
| | | editBtn: false, |
| | | delBtn: false, |
| | | selection: true, |
| | | header: false, |
| | | dialogClickModal: false, |
| | | column: [{ |
| | | span: 12, |
| | |
| | | var data = { |
| | | ...this.query |
| | | } |
| | | data.isFront = 1 |
| | | data = Qs.stringify(data) |
| | | exportBlob( |
| | | `/api/blade-place/place/exportNineType?${this.website.tokenHeader}=${getToken()}&` + data |
| | |
| | | rowUpdate(row, index, done) { |
| | | const column = this.findObject(this.option.column, "parentId") |
| | | column.value = row.id |
| | | update(row).then( |
| | | () => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | done() |
| | | }, |
| | | (error) => { |
| | | window.console.log(error) |
| | | loading() |
| | | } |
| | | ) |
| | | done(row) |
| | | }, |
| | | |