| | |
| | | @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" |
| | |
| | | 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, |
| | |
| | | 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 |
| | |
| | | this.data = data.records; |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | console.log(this.data) |
| | | }); |
| | | }, |
| | | isChangeStatus(id,status) { |
| | |
| | | }, |
| | | 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> |