zhongrj
2023-06-27 d74b495736f0c04522ec54274b70fed0ded2878d
src/views/activitys/real.vue
@@ -64,7 +64,7 @@
        </el-button>
      </template> -->
      <!-- <template slot="menuLeft">
      <template slot="menuLeft">
        <el-button
          type="warning"
          size="mini"
@@ -73,15 +73,15 @@
          @click="handleExport"
          >导出
        </el-button>
        <el-button
        <!-- <el-button
          type="warning"
          size="mini"
          plain
          icon="el-icon-pie-chart"
          @click="handleExportStatis"
          >导出报表
        </el-button>
      </template> -->
        </el-button> -->
      </template>
      <template slot-scope="{ row }" slot="jtype">
        <el-tag
@@ -190,6 +190,7 @@
            label: "巡查标题",
            prop: "rname",
            search: true,
            overHidden: true,
            searchSpan: 4,
            span: 12,
            rules: [
@@ -280,6 +281,7 @@
          {
            label: "巡查内容",
            prop: "content",
            overHidden: true,
            span: 24,
          },
          // {
@@ -329,6 +331,7 @@
          // },
          {
            label: "所属辖区",
            sortable:true,
            prop: "jurisdiction",
            searchLabelWidth: 80,
            search: true,
@@ -450,6 +453,8 @@
            prop: "rtype",
            type: "select",
            value: "2",
            search: true,
            searchSpan: 4,
            rules: [
              {
                required: true,
@@ -459,7 +464,7 @@
            ],
            dicData: [
              {
                label: "任务开始",
                label: "任务待开始",
                value: "2",
              },
              {
@@ -536,6 +541,33 @@
            editDisplay: true,
            viewDisplay: true,
          },
          // {
          //   label: "积分数值",
          //   prop: "integral",
          //   type: "select",
          //   dicData: [
          //     {
          //       label: "5",
          //       value: "5",
          //     },
          //     {
          //       label: "10",
          //       value: "10",
          //     },
          //     {
          //       label: "15",
          //       value: "15",
          //     },
          //   ],
          //   width: 72,
          //   // hide: true,
          //   minRows: 1,
          //   value: 5,
          //   // leafOnly: "",
          //   addDisplay: true,
          //   editDisplay: true,
          //   viewDisplay: true,
          // },
          {
            label: "接收人数",
            prop: "jnum",
@@ -817,6 +849,7 @@
      let that = this;
      row.time = row.timeList[0];
      row.endtime = row.timeList[1];
      debugger
      update(row).then(
        () => {
          this.onLoad(this.page);
@@ -894,9 +927,6 @@
        });
    },
    beforeOpen(done, type) {
      this.form.timeList = [];
      this.form["timeList"][0]= this.form["time"];
      this.form["timeList"][1]= this.form["endtime"];
      // console.log(type, "this.formthis.formthis.form");
      // console.log(type);
      // if (["edit", "view"].includes(type)) {
@@ -910,6 +940,11 @@
        done();
        return;
      }
      this.form.timeList = [];
      this.form["timeList"][0]= this.form["time"];
      this.form["timeList"][1]= this.form["endtime"];
      if (this.form.line != "" && this.form != undefined) {
        this.form["haveMap"] = "已绘制路径!";
      } else {
@@ -928,6 +963,9 @@
    },
    onLoad(page, params = {}) {
      params["tasktype"] = "0"; // 治安巡查
      if (this.userInfo.role_name != "administrator"){
        params["jurisdiction"] = this.userInfo.workjurisdiction;
      }
      getList(page.currentPage, page.pageSize, params).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;
@@ -1321,13 +1359,13 @@
    //数据导出
    handleExport() {
      this.$confirm("是否导出实时警情数据?", "提示", {
      this.$confirm("是否导出任务数据?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      }).then(() => {
        window.open(
          `/api/alarm/alarm/export-alarm?beginTime=${this.$route.query.startTime}&endTime=${this.$route.query.endTime}&waringType=${this.$route.query.waringType}&timeDesc=${this.$route.query.timeDesc}`
          `/api/taskqd/export-task?rname=${this.$route.query.rname}&jurisdiction=${this.$route.query.jurisdiction}&rtype=${this.$route.query.rtype}&tasktype=0`
        );
      });
    },