linwe
2024-07-08 dae2ccae8efacabe026424c86bde21ddcb36bb8c
src/views/publicSecurity/positionManage/TransactRegist.vue
@@ -63,7 +63,7 @@
  import {
    getList,
    getDetail,
    removeTask,
    remove as removeTask,
    update,
    add,
  } from "@/api/task/labelReporting"
@@ -159,6 +159,40 @@
          selection: true,
          dialogClickModal: false,
          column: [{
              label: "发生时间",
              prop: "dateRange",
              type: "daterange",
              format: "yyyy-MM-dd",
              valueFormat: "yyyy-MM-dd",
              searchRange: true,
              startPlaceholder: '开始日期',
              endPlaceholder: '结束日期',
              align: 'center',
              search: true,
              hide: true,
              searchSpan: 5,
              searchLabelWidth: 76,
            }, {
              width: 110,
              span: 12,
              label: "街道名称",
              prop: "streetName",
              searchSpan: 4,
              searchLabelWidth: 100,
              search: true,
              align: 'center',
              labelWidth: 110,
            }, {
              width: 110,
              span: 12,
              label: "社区名称",
              prop: "communityName",
              searchSpan: 4,
              searchLabelWidth: 100,
              search: true,
              align: 'center',
              labelWidth: 110,
            }, {
              width: 110,
              span: 12,
              label: "场所名称",
@@ -199,6 +233,7 @@
              align: 'center',
              width: 120,
              labelWidth: 110,
              dataType: "number"
            },
            {
              width: 110,
@@ -311,6 +346,7 @@
              prop: "communityName",
              align: 'center',
              labelWidth: 110,
              row: true,
            },
            {
              width: 100,
@@ -627,8 +663,8 @@
            type: "warning",
          })
          .then(() => {
            row.isDeleted = 1
            return removeTask(row)
            // row.isDeleted = 1
            return removeTask(row.id)
          })
          .then(() => {
            this.onLoad(this.page)
@@ -647,6 +683,12 @@
      searchChange(params, done) {
        this.query = params
        this.page.currentPage = 1
        let dateRange = params.dateRange
        if (params.dateRange) {
          params.startTime = dateRange[0] + " 00:00:00"
          params.endTime = dateRange[1] + " 23:59:59"
          delete params.dateRange
        }
        this.onLoad(this.page, params)
        done()
      },