Lou
2024-02-22 a6cabbfd238128b89fe19ea6a2533335a4b56b5b
Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/jczz_web
3 files modified
118 ■■■■ changed files
src/api/publicSecurity/keynoteManage.js 9 ●●●●● patch | view | raw | blame | history
src/views/publicSecurity/keynotePlaceManage.vue 94 ●●●● patch | view | raw | blame | history
src/views/publicSecurity/ninePlaceManage/patrolRecord.vue 15 ●●●●● patch | view | raw | blame | history
src/api/publicSecurity/keynoteManage.js
@@ -7,3 +7,12 @@
        data
    })
}
// 列表详情
export const getTaskPlaceSelfCheckInfo = (params) => {
    return request({
        url: "/api/blade-taskPlaceSelfCheck/taskPlaceSelfCheck/getInfo",
        method: "get",
        params
    })
}
src/views/publicSecurity/keynotePlaceManage.vue
@@ -49,7 +49,7 @@
            custom-class="flow-design-dialog" :before-close="handleClose">
            <audit-base @handleSubmit="submitAudit"></audit-base>
        </el-dialog>
        <el-drawer title="巡查详情" :visible.sync="isDetail" :append-to-body="true" size="40%" direction="rtl">
        <el-drawer title="消防自查详情" :visible.sync="isDetail" :append-to-body="true" size="40%" direction="rtl">
            <div class="title">
                <div class="icon">{{ refreshNum }}</div>
                基础信息
@@ -147,8 +147,12 @@
    mapGetters
} from "vuex"
import {
    applyTaskExamine
    applyTaskExamine,
    getTaskPlaceSelfCheckInfo
} from "@/api/publicSecurity/keynoteManage"
import {
    getPatrolGroupTree, getDictBizTree
} from "@/api/publicSecurity/ninePlaceManage"
import website from '@/config/website'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
@@ -248,6 +252,20 @@
                        searchSpan: 4,
                        searchLabelWidth: 46,
                        overHidden: true,
                        align: 'center'
                    }, {
                        label: "场所类别",
                        prop: "nineType",
                        align: 'center',
                        dicUrl: "/api/blade-system/dict-biz/tree?code=nineType",
                        props: {
                            label: "title",
                            value: "key",
                        },
                        type: 'select',
                        search: true,
                        searchSpan: 4,
                        searchLabelWidth: 96,
                        align: 'center'
                    }, {
                        label: "所属街道",
@@ -355,6 +373,11 @@
    watch: {},
    created () {
        this.getPatrolGroupTree()
        this.getDictBizTree()
    },
    computed: {
        ...mapGetters(["permission", "userInfo"]),
        permissionList () {
@@ -430,14 +453,30 @@
            }, {})
        },
        // 九小类型字典接口
        getDictBizTree () {
            getDictBizTree({ code: 'nineType' }).then(res => {
                this.nineTypeList = res.data.data
            })
        },
        // 九小类型转换
        switchNineType (type) {
            return this.nineTypeList.find(item => item.key === type) ? this.nineTypeList.find(item => item.key === type).title : ''
        },
        getDetail (row) {
            if (row.patrolRecordVOList) {
                row.patrolRecordVOList.forEach(item => {
        // 获取问题类型
        getPatrolGroupTree () {
            getPatrolGroupTree().then(res => {
                this.questionTypeList = res.data.data
            })
        },
        getDetail (rowData) {
            getTaskPlaceSelfCheckInfo({ taskId: rowData.taskId }).then(res => {
                let row = res.data.data
                if (row.taskPlaceRecordVOList) {
                    row.taskPlaceRecordVOList.forEach(item => {
                    item.imageUrlsList = []
                    item.rectificationImageUrlsList = []
                    if (item.imageUrls) {
@@ -462,9 +501,9 @@
                    })
                })
            }
            if (row.patrolRecordVOList) {
                if (row.taskPlaceRecordVOList) {
                // 把相同类型问题分组
                let obj = this.groupBy(row.patrolRecordVOList, 'qType')
                    let obj = this.groupBy(row.taskPlaceRecordVOList, 'qType')
                let arr = Object.entries(obj)
                let newArr = []
                arr.forEach(part => {
@@ -476,29 +515,30 @@
            row.nineTypeName = this.switchNineType(row.nineType)
            this.rowDetail = row
            this.isDetail = true
            })
        },
        handleExport () {
            this.$message.warning('正在开发中..')
            // this.$confirm("是否导出场所检查数据?", "提示", {
            //     confirmButtonText: "确定",
            //     cancelButtonText: "取消",
            //     type: "warning"
            // }).then(() => {
            //     NProgress.start()
            //     var data = {
            //         ...this.query
            //     }
            //     // data.isNine = 1
            //     data = Qs.stringify(data)
            //     exportBlob(
            //         `/api/blade-placeCheck/placeCheck/export-placeCheck?${this.website.tokenHeader}=${getToken()}&` + data
            //     ).then(res => {
            //         console.log('exportBlob', res)
            //         downloadXls(res.data, `场所检查${dateNow()}.xlsx`)
            //         NProgress.done()
            //     })
            // })
            this.$confirm("是否导出场所检查数据?", "提示", {
                confirmButtonText: "确定",
                cancelButtonText: "取消",
                type: "warning"
            }).then(() => {
                NProgress.start()
                var data = {
                    ...this.query
                }
                // data.isNine = 1
                data = Qs.stringify(data)
                exportBlob(
                    `/api/blade-taskPlaceSelfCheck/taskPlaceSelfCheck/export-taskPlaceSelfCheck?${this.website.tokenHeader}=${getToken()}&` + data
                ).then(res => {
                    console.log('exportBlob', res)
                    downloadXls(res.data, `消防自查${dateNow()}.xlsx`)
                    NProgress.done()
                })
            })
        },
        showStringDispose (row, type) {
src/views/publicSecurity/ninePlaceManage/patrolRecord.vue
@@ -204,6 +204,21 @@
                        searchLabelWidth: 46,
                        overHidden: true,
                        align: 'center'
                    },
                    {
                        label: "场所类别",
                        prop: "nineType",
                        align: 'center',
                        dicUrl: "/api/blade-system/dict-biz/tree?code=nineType",
                        props: {
                            label: "title",
                            value: "key",
                        },
                        type: 'select',
                        search: true,
                        searchSpan: 4,
                        searchLabelWidth: 96,
                        align: 'center'
                    }, {
                        label: "所属街道",
                        prop: "streetName",