guoshilong
2022-09-22 1f055395e53198dd6b6e45bda18b2cc919c8d3db
src/views/taskinfo/taskinfoPlan.vue
@@ -18,6 +18,9 @@
               @size-change="sizeChange"
               @refresh-change="refreshChange"
               @on-load="onLoad">
      <template slot="routeRangeForm">
        <open-layers-map ref="OpenLayersMap" @toData="toData" :routeRange="form.routeRange"></open-layers-map>
      </template>
      <template slot="menuLeft">
        <el-button type="danger"
                   size="small"
@@ -69,9 +72,10 @@
  import option from "@/const/taskinfo/taskinfoPlan";
  import {mapGetters} from "vuex";
  import TaskplanUser from "@/views/taskinfo/taskplanUser";
  import OpenLayersMap from "@/components/OpenLayersMap/index";
  export default {
    components: {TaskplanUser},
    components: {TaskplanUser,OpenLayersMap},
    data() {
      return {
        isSetPlanUser:false,
@@ -176,6 +180,9 @@
        if (["edit", "view"].includes(type)) {
          getDetail(this.form.id).then(res => {
            this.form = res.data.data;
            console.log( this.form.routeRange,123456)
            // this.form.routeRange = '\'' + this.form.routeRange + '\''
          });
        } else {
          this.form.status = 2
@@ -216,6 +223,7 @@
          this.data = data.records;
          this.loading = false;
          this.selectionClear();
          console.log(this.data)
        });
      },
      isChangeStatus(id,status) {
@@ -230,11 +238,15 @@
      },
      goToTaskplanUser(planId) {
        // this.$router.push({ path: "/taskinfo/taskplanUser", query: {planId:planId} });
        this.$refs.taskplanUser.getUserList();
        this.setPlanUser()
      },
      setPlanUser() {
        this.isSetPlanUser = !this.isSetPlanUser
      }
      },
      toData(toData) {
        this.form.routeRange = toData
      },
    }
  };
</script>