linwe
2024-08-09 5e2aafeede13d337380f736567caf74f49713be7
src/views/publicSecurity/campusExclusion.vue
@@ -102,16 +102,8 @@
      }
      return {
        auditRules: {
          status: [{
            required: true,
            message: "必填"
          }],
          remark: [{
            required: true,
            message: "必填"
          }],
        },
        type: '',
        visible: false,
        taskType: 0,
        curRow: {},
@@ -129,7 +121,7 @@
        datetime: "",
        selectionList: [],
        option: {
          labelWidth: 96,
          labelWidth: 110,
          searchLabelWidth: 96,
          searchShow: true,
          searchMenuSpan: 3,
@@ -151,7 +143,21 @@
          selection: true,
          dialogClickModal: false,
          column: [{
              width: 110,
              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: 130,
              span: 12,
              label: "姓名",
              prop: "name",
@@ -166,7 +172,7 @@
              label: "图片",
              prop: "images",
              type: "upload",
              labelWidth: 120,
              labelWidth: 110,
              listType: "picture-img",
              action: "/api/blade-resource/oss/endpoint/put-file",
              propsHttp: {
@@ -176,16 +182,82 @@
              },
              span: 24,
            }, {
              width: 110,
              span: 12,
              width: 140,
              span: 24,
              label: "描述",
              type: 'textarea',
              prop: "remark",
              searchSpan: 4,
              searchLabelWidth: 60,
              search: true,
              align: 'center',
              labelWidth: 110,
              overHidden: true,
            }, {
              label: '是否问题',
              align: 'center',
              prop: 'isProblem',
              type: 'radio',
              slot: true,
              dicData: [{
                label: '是',
                value: "1"
              }, {
                label: '否',
                value: "2"
              }],
              width: 90,
            },
            {
              label: '是否处理',
              align: 'center',
              prop: 'isHandle',
              type: 'radio',
              slot: true,
              dicData: [{
                label: '是',
                value: "1"
              }, {
                label: '否',
                value: "2"
              }],
              width: 90,
            },
            {
              label: '是否上报',
              align: 'center',
              prop: 'isReporting',
              type: 'radio',
              slot: true,
              dicData: [{
                label: '是',
                value: "1"
              }, {
                label: '否',
                value: "2"
              }],
              width: 90,
            }, {
              width: 110,
              span: 12,
              label: "校园名称",
              prop: "placeName",
              searchSpan: 4,
              searchLabelWidth: 100,
              search: true,
              align: 'center',
              labelWidth: 110,
            },
            // {
            //   label: "类型",
            //   prop: "type",
            //   align: 'center',
            //   dicUrl: "/api/blade-system/dict-biz/tree?code=xyaqyw",
            //   props: {
            //     label: "title",
            //     value: "key",
            //   },
            // },
            {
              width: 120,
              span: 12,
@@ -217,7 +289,7 @@
            {
              width: 140,
              span: 12,
              label: "创建时间",
              label: "上报时间",
              prop: "createTime",
              align: 'center',
              labelWidth: 110,
@@ -230,7 +302,8 @@
              prop: "streetName",
              align: 'center',
              labelWidth: 110,
            }, {
            },
            {
              width: 156,
              parent: false,
              searchSpan: 4,
@@ -250,13 +323,13 @@
              slot: true,
              dicData: [{
                label: '待审核',
                value: 1
                value: "1"
              }, {
                label: '通过',
                value: 2
                value: "2"
              }, {
                label: '驳回',
                value: 3
                value: "3"
              }],
              align: 'center',
              labelWidth: 110,
@@ -267,6 +340,7 @@
        auditBasePopup: false,
      }
    },
    provide() {
      return {
@@ -377,7 +451,7 @@
      // 确认提交审核
      submitAudit(form) {
        let auditForm = {
          confirmFlag: form.status == '1' ? 3 : 4,
          confirmFlag: form.status == '1' ? 2 : 3,
          confirmNotion: form.confirmNotion,
        }
        updateAuditing(Object.assign(this.auditParams, auditForm)).then(res => {
@@ -539,6 +613,12 @@
      searchChange(params, done) {
        this.query = params
        this.page.currentPage = 1
        let dateRange = params.dateRange
        if (params.dateRange) {
          params.startTime = dateRange[0]
          params.endTime = dateRange[1]
          delete params.dateRange
        }
        this.onLoad(this.page, params)
        done()
      },
@@ -601,6 +681,7 @@
        const {
          dateTime
        } = this.query
        params.type = 1
        let values = {
          ...params,
        }