guanqb
2024-02-19 eb8f0649d29048badc90f6f05f0fcd3b0b8247b5
src/views/publicSecurity/ninePlaceManage/patrolRecord.vue
@@ -15,6 +15,10 @@
                    详情
                </el-button>
            </template>
            <template slot="menuLeft">
                <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出
                </el-button>
            </template>
        </avue-crud>
@@ -329,6 +333,28 @@
    },
    methods: {
        handleExport () {
            this.$confirm("是否导出档案管理数据?", "提示", {
                confirmButtonText: "确定",
                cancelButtonText: "取消",
                type: "warning"
            }).then(() => {
                NProgress.start()
                var data = {
                    ...this.query
                }
                // data.isNine = 1
                data = Qs.stringify(data)
                exportBlob(
                    `/api/blade-place/place/exportNineType?${this.website.tokenHeader}=${getToken()}&` + data
                ).then(res => {
                    console.log('exportBlob', res)
                    downloadXls(res.data, `档案管理${dateNow()}.xlsx`)
                    NProgress.done()
                })
            })
        },
        showStringDispose (row, type) {
            row[type] = !row[type]
        },