From 0bde17887fc7c55b9f86fd1f6fbda53555cc4ba7 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Tue, 10 Dec 2019 17:55:43 +0800
Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E7=BA=A7=E5=BB=B6=E7=BB=AD=E4=BF=9D?=
=?UTF-8?q?=E6=8A=A4=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../newMap/newMapdraft/dataRelation/index.vue | 12 +--
.../dataRelation/protectoperate/detail.vue | 21 ++++-
.../dataRelation/routeoperate/route.vue | 88 ++++---------------
.../dataRelation/turnedoperate/route.vue | 79 +++++------------
4 files changed, 59 insertions(+), 141 deletions(-)
diff --git a/src/views/newMap/newMapdraft/dataRelation/index.vue b/src/views/newMap/newMapdraft/dataRelation/index.vue
index 319539a7e..c514d7ee5 100644
--- a/src/views/newMap/newMapdraft/dataRelation/index.vue
+++ b/src/views/newMap/newMapdraft/dataRelation/index.vue
@@ -30,12 +30,12 @@
/>
-
-
-
-
-
-
+
{ return this.showType !== 'select'; }
},
{
name: this.$t('map.deleteObj'),
handleClick: this.deleteObj,
- type: 'danger'
+ type: 'danger',
+ showControl: () => { return this.showType !== 'select'; }
+ },
+ {
+ name: '选择',
+ handleClick: this.selectedObj,
+ showControl: () => { return this.showType === 'select'; }
}
]
}
@@ -94,9 +102,12 @@ export default {
mounted() {
},
methods: {
- doShow() {
+ doShow(type) {
this.show = true;
this.reloadTable();
+ if (type) {
+ this.showType = type;
+ }
},
doClose() {
this.show = false;
@@ -137,6 +148,10 @@ export default {
if (this.queryList && this.queryList.reload) {
this.queryList.reload();
}
+ },
+ selectedObj(index, row) {
+ this.$emit('setOverlapCode', row.code);
+ this.show = false;
}
}
};
diff --git a/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
index 1d7ad78cd..aceeefe2f 100644
--- a/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
+++ b/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
@@ -188,65 +188,9 @@
/>
-
-
-
-
- {{ $t('map.activate') }}
-
-
-
-
-
- {{ $t('map.activate') }}
- {{ $t('map.add') }}
-
-
-
-
-
-
-
- {{ swictchName(scope.row.switchCode) }}
-
-
-
-
-
-
- {{ $t('map.remove') }}
-
-
-
-
+
+
+ 选择
@@ -271,15 +215,20 @@
+