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 | 63 +++++++++++++++++++++++--------
1 files changed, 47 insertions(+), 16 deletions(-)
diff --git a/src/views/realTimePolice/real.vue b/src/views/realTimePolice/real.vue
index d6c012d..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"
@@ -118,8 +118,8 @@
</template>
<template slot-scope="{type,disabled}" slot="xllxzsForm">
- <div style="width: 200px;height: 200px">
- <Map ref="modalForm" />
+ <div class="mapClassMain" style="width: 860px;height: 400px">
+ <Map ref="modalForm"/>
</div>
</template>
@@ -172,7 +172,7 @@
size: "mini",
border: false,
//stripe:true,
- menuWidth: 240,
+ menuWidth: 260,
dialogWidth: 950,
tip: false,
searchShow: true,
@@ -200,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,
@@ -304,6 +303,7 @@
label: "省份",
prop: "province",
search: true,
+ width: 100,
searchSpan: 2,
searchLabelWidth: 45,
placeholder: "省份",
@@ -324,6 +324,7 @@
label: "地市",
prop: "city",
type: "select",
+ width: 100,
searchPlaceholder: "地市",
placeholder: "地市",
searchLabelWidth: 1,
@@ -345,6 +346,7 @@
label: "区县",
searchSpan: 2,
searchLabelWidth: 1,
+ width: 100,
searchPlaceholder: "区县",
placeholder: "区县",
search: true,
@@ -368,7 +370,7 @@
width: 96,
search: true,
slot: true,
- addDisplay: false,
+ value: "0",
searchPlaceholder: "请选择",
prop: "jtype",
type: "select",
@@ -425,10 +427,10 @@
label: "路线展示",
labelWidth: "0",
prop: "xllxzs",
- className: "cityreal3",
+ className: "mapClass",
hide: true,
display: true,
- formslot:true,
+ formslot: true,
},
],
},
@@ -496,8 +498,10 @@
"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,
@@ -507,11 +511,21 @@
];
} 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"]),
@@ -534,10 +548,10 @@
created() {
this.dateTime = this.getDate();
},
- mounted(){
+ 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');
@@ -553,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") {
@@ -581,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 = "";
@@ -756,7 +780,6 @@
};
}
}
-
if (releaseTimeRange) {
values = {
...params,
@@ -1169,7 +1192,7 @@
},
//打开新增窗体
- openAdd(){
+ openAdd() {
this.$refs.crud.rowAdd();
},
@@ -1221,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