zengh
2022-02-21 5dc0d282bbd96a449255d81fbcf6deb3734d931a
src/views/activitys/real.vue
@@ -306,7 +306,31 @@
          //   span: 5,
          // },
          {
            label: "所属辖区",
            prop: "jurisdiction",
            searchLabelWidth: 80,
            search: true,
            searchSpan: 4,
            overHidden: true,
            parent: false,
            type: "tree",
            dicUrl: "/api/jurisdiction/lazy-tree",
            props: {
              label: "title",
              value: "id"
            },
            checkStrictly: true,
            rules: [
              {
                required: true,
                message: "请选择所属辖区",
                trigger: "click"
              }
            ]
          },
          {
            label: "省份",
            hide: true,
            prop: "province",
            // search: true,
            width: 100,
@@ -329,6 +353,7 @@
          },
          {
            label: "地市",
            hide: true,
            prop: "city",
            type: "select",
            width: 100,
@@ -352,6 +377,7 @@
          },
          {
            label: "区县",
            hide: true,
            searchSpan: 2,
            searchLabelWidth: 1,
            width: 100,
@@ -376,7 +402,6 @@
            label: "任务状态",
            prop: "rtype",
            type: "select",
            span: 6,
            value: "2",
            dicData: [
              {
@@ -432,7 +457,6 @@
            // props: {
            //   label: "title",
            // },
            span: 6,
            width: 72,
            // hide: true,
            minRows: 1,
@@ -451,7 +475,6 @@
            // props: {
            //   label: "title",
            // },
            span: 6,
            width: 72,
            // hide: true,
            minRows: 1,
@@ -460,33 +483,6 @@
            addDisplay: true,
            editDisplay: true,
            viewDisplay: true,
          },
          {
            label: "所属辖区",
            prop: "jurisdiction",
            hide: true,
            searchLabelWidth: 80,
            search: true,
            searchSpan: 4,
            overHidden: true,
            span: 9,
            width: 72,
            parent: false,
            type: "tree",
            dicUrl: "/api/jurisdiction/lazy-tree",
            props: {
              label: "title",
              value: "id"
            },
            checkStrictly: true,
            slot: true,
            rules: [
              {
                required: true,
                message: "请选择所属辖区",
                trigger: "click"
              }
            ]
          },
          // {
          //   label: "巡逻路线",
@@ -504,7 +500,6 @@
            label: "请在下方地图中,建立路径!",
            labelWidth: "0",
            className: "mapClass",
            span: 8,
            prop: "haveMap",
            hide: true,
            display: true,
@@ -839,7 +834,7 @@
      this.onLoad(this.page, this.query);
    },
    onLoad(page, params = {}) {
      getList(page.currentPage, page.pageSize).then((res) => {
      getList(page.currentPage, page.pageSize,params).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;