linwe
2024-06-17 0de386bb42ce0ed08bbdd44c36a831323062e7e8
入户宣传导出即查询优化
2 files modified
39 ■■■■ changed files
src/views/backblask/BackblastPubRecord.vue 33 ●●●● patch | view | raw | blame | history
src/views/cGovernance/statisticalAnalysis/index.vue 6 ●●●●● patch | view | raw | blame | history
src/views/backblask/BackblastPubRecord.vue
@@ -10,6 +10,12 @@
        </el-button>
      </template>
      <template slot="menuLeft">
        <el-button type="warning" size="small" plain v-if="permission.household_export" icon="el-icon-download"
          @click="handleExport">导出
        </el-button>
      </template>
      <template slot-scope="{row, size,index}" slot="peopleForm">
        <el-table :data="form.backblastPubPersonEntityList" v-if="form.backblastPubPersonEntityList">
          <el-table-column width="100" property="name" label="姓名" label-class-name="workOrderStyle"></el-table-column>
@@ -103,16 +109,32 @@
              row: true,
              span: 24,
            }, {
              label: "小区名称",
              prop: "aoiName",
              labelWidth: 120,
              // align: 'center',
              // type: "textarea",
              row: true,
              span: 24,
              overHidden: true,
            }, {
              label: "户室信息",
              prop: "houseName",
              labelWidth: 120,
              // align: 'center',
              // type: "textarea",
              row: true,
              span: 24,
              overHidden: true,
            }, {
              label: "宣防内容",
              prop: "pubContent",
              labelWidth: 120,
              // align: 'center',
              type: "textarea",
              row: true,
              span: 24,
              overHidden: true,
            },
            {
              label: "是否下载国家反诈app",
              prop: "isFzApp",
@@ -269,7 +291,7 @@
    },
    methods: {
      handleExport() {
        this.$confirm("是否导出档案管理数据?", "提示", {
        this.$confirm("是否导出入户宣传数据?", "提示", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
@@ -281,10 +303,11 @@
          data.isNine = 1
          data = Qs.stringify(data)
          exportBlob(
            `/api/blade-place/place/exportNineType?${this.website.tokenHeader}=${getToken()}&` + data
            `/api/blade-backblastPubRecord/backblastPubRecord/export?${this.website.tokenHeader}=${getToken()}&` +
            data
          ).then(res => {
            console.log('exportBlob', res)
            downloadXls(res.data, `档案管理${dateNow()}.xlsx`)
            downloadXls(res.data, `入户宣传${dateNow()}.xlsx`)
            NProgress.done()
          })
        })
src/views/cGovernance/statisticalAnalysis/index.vue
@@ -91,9 +91,9 @@
          tip: false,
          border: true,
          //stripe:true,
          index: true,
          // index: true,
          viewBtn: true,
          selection: true,
          // selection: true,
          // excelBtn: true,
          dialogClickModal: false,
          column: [{
@@ -240,6 +240,8 @@
    methods: {
      handleOrg(tagMain) {
        console.log("***************" + tagMain)
        this.page.currentPage = 1
        this.data = []
        if (tagMain === '主办单位') {
          this.query.tagMain = "Y"
          this.query.mainFlag = 1