zhongrj
2023-06-27 d74b495736f0c04522ec54274b70fed0ded2878d
src/views/activitys/real_xc.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
@@ -189,6 +189,7 @@
          {
            label: "宣传标题",
            prop: "rname",
            overHidden: true,
            search: true,
            searchSpan: 4,
            span: 12,
@@ -281,6 +282,7 @@
          {
            label: "宣传内容",
            prop: "content",
            overHidden: true,
            span: 24,
          },
          // {
@@ -331,6 +333,7 @@
          {
            label: "所属辖区",
            prop: "jurisdiction",
            sortable:true,
            searchLabelWidth: 80,
            search: true,
            searchSpan: 4,
@@ -450,6 +453,8 @@
            label: "任务状态",
            prop: "rtype",
            type: "select",
            search: true,
            searchSpan: 4,
            value: "2",
            rules: [
              {
@@ -460,7 +465,7 @@
            ],
            dicData: [
              {
                label: "任务开始",
                label: "任务待开始",
                value: "2",
              },
              {
@@ -894,9 +899,7 @@
        });
    },
    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 +913,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 +936,9 @@
    },
    onLoad(page, params = {}) {
      params["tasktype"] = "1"; // 治安义务宣传
      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;
@@ -1327,7 +1338,7 @@
        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=1`
        );
      });
    },