From 7e32d3d7ab3b116ceef1dfaa4a6216ed1d0fbf7b Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Tue, 20 Jul 2021 18:51:33 +0800
Subject: [PATCH] 位置选择
---
src/views/realTimePolice/real.vue | 81 ++++++++++++++++++++++++----------------
1 files changed, 49 insertions(+), 32 deletions(-)
diff --git a/src/views/realTimePolice/real.vue b/src/views/realTimePolice/real.vue
index cec2529..d6c012d 100644
--- a/src/views/realTimePolice/real.vue
+++ b/src/views/realTimePolice/real.vue
@@ -116,7 +116,17 @@
>派发
</el-button>
</template>
+
+ <template slot-scope="{type,disabled}" slot="xllxzsForm">
+ <div style="width: 200px;height: 200px">
+ <Map ref="modalForm" />
+ </div>
+ </template>
+
+
</avue-crud>
+
+
<real-popup ref="realPopupView"></real-popup>
<el-drawer title="电子地图" append-to-body="true" :visible.sync="showMap">
<iframe
@@ -400,18 +410,26 @@
editDisplay: true,
viewDisplay: true,
},
- // {
- // label: "巡逻路线",
- // prop: "xllx",
- // hide: true,
- // display: true,
- // type: "tree",
- // filter: false,
- // dicUrl: "/api/routeIn/routein/tree",
- // props: {
- // label: "title",
- // },
- // },
+ {
+ label: "巡逻路线",
+ prop: "xllx",
+ hide: true,
+ display: true,
+ type: "tree",
+ dicUrl: "/api/routeIn/routein/tree",
+ props: {
+ label: "title",
+ },
+ },
+ {
+ label: "路线展示",
+ labelWidth: "0",
+ prop: "xllxzs",
+ className: "cityreal3",
+ hide: true,
+ display: true,
+ formslot:true,
+ },
],
},
data: [],
@@ -475,25 +493,25 @@
},
immediate: true,
},
- // "form.alarmType": {
- // handler(val) {
- // var xllx = this.findObject(this.option.column, "xllx");
- // if (val === "巡逻任务") {
- // xllx.display = true;
- // xllx.rules = [
- // {
- // required: true,
- // message: "请选择巡逻路线",
- // trigger: "blur",
- // },
- // ];
- // } else {
- // xllx.display = false;
- // xllx.rules = [];
- // }
- // },
- // immediate: true,
- // },
+ "form.alarmType": {
+ handler(val) {
+ var xllx = this.findObject(this.option.column, "xllx");
+ if (val === "巡逻任务") {
+ xllx.display = true;
+ xllx.rules = [
+ {
+ required: true,
+ message: "请选择巡逻路线",
+ trigger: "blur",
+ },
+ ];
+ } else {
+ xllx.display = false;
+ xllx.rules = [];
+ }
+ },
+ immediate: true,
+ },
},
computed: {
...mapGetters(["permission", "flowRoutes"]),
@@ -517,7 +535,6 @@
this.dateTime = this.getDate();
},
mounted(){
- debugger
var xb = JSON.parse(window.sessionStorage.getItem('sjsb'));
var data = this.$route.query;
if (xb == 1){
--
Gitblit v1.9.3