From 63ad2c3598400370dd7da5534659fd7e768a0a4a Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Mon, 16 May 2022 17:29:46 +0800
Subject: [PATCH] 地址替换
---
src/views/realTimePolice/real.vue | 136 ++++++++++++++++++++++++++++++--------------
1 files changed, 92 insertions(+), 44 deletions(-)
diff --git a/src/views/realTimePolice/real.vue b/src/views/realTimePolice/real.vue
index cec2529..3c0ae05 100644
--- a/src/views/realTimePolice/real.vue
+++ b/src/views/realTimePolice/real.vue
@@ -26,7 +26,7 @@
>
<template slot="menuLeft">
<el-button
- type="danger"
+
v-show="true"
size="mini"
icon="el-icon-delete"
@@ -116,7 +116,17 @@
>派发
</el-button>
</template>
+
+ <template slot-scope="{type,disabled}" slot="xllxzsForm">
+ <div class="mapClassMain" style="width: 860px;height: 400px">
+ <Map ref="modalForm"/>
+ </div>
+ </template>
+
+
</avue-crud>
+
+
<real-popup ref="realPopupView"></real-popup>
<el-drawer title="电子地图" append-to-body="true" :visible.sync="showMap">
<iframe
@@ -162,7 +172,7 @@
size: "mini",
border: false,
//stripe:true,
- menuWidth: 240,
+ menuWidth: 260,
dialogWidth: 950,
tip: false,
searchShow: true,
@@ -190,9 +200,8 @@
dicUrl:
"/api/blade-system/dict-biz/child-list?parentId=1356523651644043266",
control: (val, form) => {
- if (val) {
- debugger;
- }
+ // if (val) {
+ // }
return {
text2: {
display: true,
@@ -294,6 +303,7 @@
label: "省份",
prop: "province",
search: true,
+ width: 100,
searchSpan: 2,
searchLabelWidth: 45,
placeholder: "省份",
@@ -314,6 +324,7 @@
label: "地市",
prop: "city",
type: "select",
+ width: 100,
searchPlaceholder: "地市",
placeholder: "地市",
searchLabelWidth: 1,
@@ -335,6 +346,7 @@
label: "区县",
searchSpan: 2,
searchLabelWidth: 1,
+ width: 100,
searchPlaceholder: "区县",
placeholder: "区县",
search: true,
@@ -358,7 +370,7 @@
width: 96,
search: true,
slot: true,
- addDisplay: false,
+ value: "0",
searchPlaceholder: "请选择",
prop: "jtype",
type: "select",
@@ -400,18 +412,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: "mapClass",
+ hide: true,
+ display: true,
+ formslot: true,
+ },
],
},
data: [],
@@ -475,25 +495,37 @@
},
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");
+ var xllxzs = this.findObject(this.option.column, "xllxzs");
+ if (val === "巡逻任务") {
+ xllx.display = true;
+ xllxzs.display = true;
+ xllx.rules = [
+ {
+ required: true,
+ message: "请选择巡逻路线",
+ trigger: "blur",
+ },
+ ];
+ } else {
+ xllx.display = false;
+ xllxzs.display = false;
+ xllx.rules = [];
+ }
+ },
+ immediate: true,
+ },
+ "form.xllx":{
+ handler(val) {
+ if (val){
+ this.getxllx(val)
+ }
+
+ },
+ immediate: true,
+ }
},
computed: {
...mapGetters(["permission", "flowRoutes"]),
@@ -516,11 +548,10 @@
created() {
this.dateTime = this.getDate();
},
- mounted(){
- debugger
+ mounted() {
var xb = JSON.parse(window.sessionStorage.getItem('sjsb'));
var data = this.$route.query;
- if (xb == 1){
+ if (xb == 1) {
this.form = data;
this.openAdd();
window.sessionStorage.removeItem('sjsb');
@@ -536,7 +567,7 @@
row.securityArr = security.substring(0, security.length - 1);
}
var userId = JSON.parse(
- window.localStorage.getItem("群防群控后台管理系统-userInfo")
+ window.localStorage.getItem("洪城义警后台管理系统-userInfo")
).content.nick_name;
if (row.jtype != "2") {
@@ -564,9 +595,19 @@
}
);
},
+ getxllx(val){
+ var that = this;
+ if (this.$refs.modalForm == undefined) {
+ setTimeout(function () {
+ that.$refs.modalForm.addLines(val);
+ }, 1500)
+ } else {
+ that.$refs.modalForm.addLines(val);
+ }
+ },
rowUpdate(row, index, done, loading) {
var userId = JSON.parse(
- window.localStorage.getItem("群防群控后台管理系统-userInfo")
+ window.localStorage.getItem("洪城义警后台管理系统-userInfo")
).content.nick_name;
if (typeof row.securityArr != "string") {
var security = "";
@@ -739,7 +780,6 @@
};
}
}
-
if (releaseTimeRange) {
values = {
...params,
@@ -1152,7 +1192,7 @@
},
//打开新增窗体
- openAdd(){
+ openAdd() {
this.$refs.crud.rowAdd();
},
@@ -1204,6 +1244,14 @@
width: 12%;
}
+ .mapClass div label {
+ display: none;
+ }
+
+ .mapClassMain {
+ padding-left: 25px !important;
+ }
+
.cityreal2 div label,
.cityreal3 div label {
display: none;
--
Gitblit v1.9.3