From 1f055395e53198dd6b6e45bda18b2cc919c8d3db Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Thu, 22 Sep 2022 11:43:21 +0800
Subject: [PATCH] 任务计划提交修改
---
src/views/taskinfo/taskinfoPlan.vue | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/views/taskinfo/taskinfoPlan.vue b/src/views/taskinfo/taskinfoPlan.vue
index b79cafb..42831ee 100644
--- a/src/views/taskinfo/taskinfoPlan.vue
+++ b/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>
--
Gitblit v1.9.3