guanqb
2024-02-06 c703b9fdaa118315f28c86db9a9796e413a030c9
src/views/publicSecurity/ninePlaceManage/situationRectification.vue
@@ -14,6 +14,11 @@
                <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出
                </el-button>
            </template>
            <template slot-scope="{row, size}" slot="status">
                <el-tag :size="size" :type="showConfirmFlag(row.status).type">{{ showConfirmFlag(row.status).text
                }}</el-tag>
            </template>
            <template slot-scope="{type,size,row }" slot="menu">
                <el-button icon="el-icon-detail" :size="size" :type="type" @click.stop="getDetail(row)">
                    详情
@@ -192,6 +197,7 @@
                searchShow: true,
                searchMenuSpan: 3,
                menu: true,
                menuWidth: 120,
                border: true,
                index: true,
                editBtn: false,
@@ -283,6 +289,31 @@
                    searchSpan: 4,
                    searchLabelWidth: 106,
                }, {
                    label: "审核状态",
                    prop: "status",
                    align: 'center',
                    dicData: [
                        {
                            label: "待审核",
                            value: 1,
                        },
                        {
                            label: "审核通过",
                            value: 2,
                        },
                        {
                            label: "审核不通过",
                            value: 3,
                        },
                        {
                            label: "待上报",
                            value: 4,
                        }
                    ],
                    search: true,
                    searchSpan: 4,
                    searchLabelWidth: 106,
                }, {
                    label: "检查时间",
                    prop: "dateRange",
                    type: "daterange",
@@ -324,6 +355,37 @@
            return ids.join(",")
        },
        showConfirmFlag () {
            return (data) => {
                let tags = {
                    text: '',
                    type: ''
                }
                if (data == 1) {
                    tags = {
                        text: '待审核',
                        type: 'warning'
                    }
                } else if (data == 2) {
                    tags = {
                        text: '审核通过',
                        type: 'success'
                    }
                } else if (data == 3) {
                    tags = {
                        text: '审核不通过',
                        type: 'danger'
                    }
                } else if (data == 4) {
                    tags = {
                        text: '待上报',
                        type: 'info'
                    }
                }
                return tags
            }
        }
    },
    created () {
@@ -634,10 +696,12 @@
        onLoad (page, params = {}) {
            this.loading = true
            if (this.typeStatus == 3) {
            if (this.typeStatus == 1) {
                this.query.status = '1'
            } else if (this.typeStatus == 2) {
                this.query.status = '2'
            } else if (this.typeStatus == 3) {
                this.query.status = ''
            } else {
                this.query.status = this.typeStatus
            }
            getZGQKList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
                console.log('getZGQKList', res.data.data)