+
liuyg
2021-11-04 708cc8873878f11355a6c104c36f06908fa79fdd
+
5 files modified
134 ■■■■ changed files
public/grabOrdersMap/js/vueMain.js 3 ●●●● patch | view | raw | blame | history
public/grabOrdersMap/xcxmap.html 7 ●●●● patch | view | raw | blame | history
src/store/modules/user.js 2 ●●● patch | view | raw | blame | history
src/styles/element-ui.scss 4 ●●●● patch | view | raw | blame | history
src/views/activitys/real.vue 118 ●●●● patch | view | raw | blame | history
public/grabOrdersMap/js/vueMain.js
@@ -136,7 +136,8 @@
                serid: "1123598821738675201,",
                time: "无数据",
                url: "http://223.82.109.183:2081/zhba/upload/20211102/07fe327a76a43fa8d3431c73febade22.jpg",
                type: "0"
                buttype: "0",
                type:'1'
            }
            //url解码
            this.data = this.getQueryVariable('data') || data;
public/grabOrdersMap/xcxmap.html
@@ -138,7 +138,12 @@
                <div class="once-c">
                    <!-- <el-button :type="data.type==1?'success':'primary'" >{{data.type==1?'我参与':'我反馈'}}</el-button> -->
                    <!-- <el-button :type="data.num==data.jnum?'info':(data.type==1?'success':'primary')" @click="openAPP(data.type)" :disabled="data.num==data.jnum">{{data.num==data.jnum?"人数已满":(data.type==1?'我参与':'我反馈')}}</el-button> -->
                    <el-button :type="data.type==1?(data.num==data.jnum?'info':'success'):'primary'" @click="openAPP(data.type)" :disabled="(data.num==data.jnum)&& data.type==1">{{data.type==1?(data.num==data.jnum?"人数已满":'我参与'):'我反馈'}}</el-button>
                    <el-button
                        :type="data.buttype==1?(data.num==data.jnum||data.type==1?'info':'success'):'primary'"
                        @click="openAPP(data.buttype)"
                        :disabled="(data.num==data.jnum)&& data.buttype==1 ||data.type == 1">
                        {{data.buttype==1?(data.num==data.jnum?"人数已满":'我参与'):(data.type == 1?'完成反馈':'上传反馈')}}
                    </el-button>
                </div>
            </div>
            <!-- </div>
src/store/modules/user.js
@@ -180,7 +180,7 @@
      return new Promise(resolve => {
        getRoutes(topMenuId).then((res) => {
          console.log(res);
          // console.log(res);
          const data = res.data.data
          let menu = deepClone(data);
src/styles/element-ui.scss
@@ -448,3 +448,7 @@
.el-time-spinner__item.active:not(.disabled) {
  color: #fff !important;
}
// .activitys .el-form-item__content {
//   width: 200px !important;
// }
src/views/activitys/real.vue
@@ -1,5 +1,5 @@
<template>
  <basic-container>
  <basic-container class="activitys">
    <avue-crud
      :option="option"
      :table-loading="loading"
@@ -37,7 +37,7 @@
        </el-button>
      </template>
      <template slot="menuLeft">
      <!-- <template slot="menuLeft">
        <el-button
          v-bind:class="activeClass == 0 ? 'btn-color' : ''"
          size="mini"
@@ -62,9 +62,9 @@
          @click="getQBdata(3)"
          >全部
        </el-button>
      </template>
      </template> -->
      <template slot="menuLeft">
      <!-- <template slot="menuLeft">
        <el-button
          type="warning"
          size="mini"
@@ -81,7 +81,7 @@
          @click="handleExportStatis"
          >导出报表
        </el-button>
      </template>
      </template> -->
      <template slot-scope="{ row }" slot="jtype">
        <el-tag
@@ -189,8 +189,8 @@
          {
            label: "任务标题",
            prop: "rname",
            search: false,
            searchSpan: 3,
            search: true,
            searchSpan: 4,
            span: 12,
            rules: [
              {
@@ -307,7 +307,7 @@
          {
            label: "省份",
            prop: "province",
            search: true,
            // search: true,
            width: 100,
            searchSpan: 2,
            searchLabelWidth: 45,
@@ -336,7 +336,7 @@
            searchLabelWidth: 1,
            value: "3601",
            searchSpan: 2,
            search: true,
            // search: true,
            props: {
              label: "name",
              value: "code",
@@ -356,7 +356,7 @@
            width: 100,
            searchPlaceholder: "区县",
            placeholder: "区县",
            search: true,
            // search: true,
            prop: "district",
            type: "select",
            props: {
@@ -601,6 +601,7 @@
    },
    rotesData() {
      // console.log(this.rotesData, "rotesDatarotesDatarotesData");
      console.log(this.rotesData, "this.rotesDatathis.rotesData");
      if (this.rotesData) {
        // var haveMap = (this.option.column[9].value = "已选择路径!");
        // haveMap.value = "已选择路径!";
@@ -660,7 +661,7 @@
        content: row.content, //内容
        rtype: row.rtype, //任务状态
      };
      console.log(d);
      // console.log(d);
      // done();
      // return;
      let that = this;
@@ -671,7 +672,6 @@
            type: "success",
            message: "操作成功!",
          });
          that.$store.commit("setRotesData", false); //用vuex传最终数据 清除
          done();
        },
        (error) => {
@@ -684,10 +684,14 @@
      var that = this;
      if (this.$refs.modalForm == undefined) {
        setTimeout(function () {
          try {
          that.$refs.modalForm.addLinesDraw(val);
          } catch (error) {}
        }, 1500);
      } else {
        try {
        that.$refs.modalForm.addLinesDraw(val);
        } catch (error) {}
      }
    },
    rowUpdate(row, index, done, loading) {
@@ -699,7 +703,6 @@
            type: "success",
            message: "操作成功!",
          });
          that.$store.commit("setRotesData", false); //用vuex传最终数据 清除
          done();
        },
        (error) => {
@@ -770,6 +773,7 @@
        });
    },
    beforeOpen(done, type) {
      // console.log(type, "this.formthis.formthis.form");
      // console.log(type);
      // if (["edit", "view"].includes(type)) {
      //   getclient(this.form.id).then((res) => {
@@ -777,6 +781,11 @@
      //   });
      // }
      // console.log(this.form);
      if (type == "add") {
        this.$store.commit("setRotesData", false); //用vuex传最终数据 清除
        done();
        return;
      }
      if (this.form.line != "" && this.form != undefined) {
        this.form["haveMap"] = "已绘制路径!";
      } else {
@@ -794,89 +803,6 @@
      this.onLoad(this.page, this.query);
    },
    onLoad(page, params = {}) {
      // const { releaseTimeRange } = this.query;
      // let values = {
      //   ...params,
      // };
      // if (
      //   this.$route.query.waringType &&
      //   this.$route.query != undefined &&
      //   this.$route.query != null &&
      //   this.$route.query != ""
      // ) {
      //   if (
      //     this.$route.query.status != undefined &&
      //     this.$route.query.status != null &&
      //     this.$route.query.status == ""
      //   ) {
      //     this.activeClass = this.$route.query.status;
      //     this.page.currentPage = 1;
      //     if (this.$route.query.status == 0) {
      //       params = {
      //         waringType: this.$route.query.waringType,
      //         beginTime: this.dateTime.day.beginTime,
      //         endTime: this.dateTime.day.endTime,
      //       };
      //     } else if (this.$route.query.status == 1) {
      //       params = {
      //         waringType: this.$route.query.waringType,
      //         beginTime: this.dateTime.week.beginTime,
      //         endTime: this.dateTime.week.endTime,
      //       };
      //     } else if (this.$route.query.status == 2) {
      //       params = {
      //         waringType: this.$route.query.waringType,
      //         beginTime: this.dateTime.month.beginTime,
      //         endTime: this.dateTime.month.endTime,
      //       };
      //     }
      //   } else {
      //     this.activeClass = 0;
      //     this.page.currentPage = 1;
      //     params = {
      //       waringType: this.$route.query.waringType,
      //       beginTime: this.dateTime.day.beginTime,
      //       endTime: this.dateTime.day.endTime,
      //     };
      //   }
      //   if (
      //     this.$route.query.startTime != undefined &&
      //     this.$route.query.startTime != null &&
      //     this.$route.query.startTime != ""
      //   ) {
      //     params = {
      //       waringType: this.$route.query.waringType,
      //       beginTime: this.$route.query.startTime,
      //       endTime: this.$route.query.endTime,
      //     };
      //   }
      // }
      // if (releaseTimeRange) {
      //   values = {
      //     ...params,
      //     beginTime: releaseTimeRange[0],
      //     endTime: releaseTimeRange[1],
      //     ...this.query,
      //   };
      //   values.releaseTimeRange = null;
      // } else {
      //   values = {
      //     ...params,
      //     ...this.query,
      //   };
      // }
      // if (this.$route.query.timeDesc) {
      //   values = {
      //     ...params,
      //     timeDesc: this.$route.query.timeDesc,
      //     ...this.query,
      //   };
      // }
      // this.loading = true;
      getList(page.currentPage, page.pageSize).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;