|
@@ -5,7 +5,7 @@
|
|
|
<span class="pange_textVector">{{ title }}</span>
|
|
|
<slot name="title"></slot>
|
|
|
<span class="clearBtn" @click="cockpit" v-if="!cockpit_vector.mapType">
|
|
|
- <i class="el-icon-thumb" ></i>
|
|
|
+ <i class="el-icon-thumb"></i>
|
|
|
图斑详情查询
|
|
|
</span>
|
|
|
<i class="el-icon-close" v-if="$route.path == '/overview'" @click="close"></i>
|
|
@@ -47,10 +47,11 @@
|
|
|
:label="item">
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column fixed="right" label="操作" width="50">
|
|
|
+ <el-table-column fixed="right" label="操作" :width="cockpit_vector.action ? 100 : 50">
|
|
|
<template slot-scope="scope">
|
|
|
<!-- <el-button @click="info(scope.row)" type="text" size="small">详情</el-button> -->
|
|
|
<el-button @click="go(scope.row)" type="text" size="small">定位</el-button>
|
|
|
+ <el-button v-if="cockpit_vector.action" @click="start(scope.row)" type="text" size="small">开工</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -71,6 +72,7 @@
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
+ <startWork ref="startWorkRef"></startWork>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -83,11 +85,13 @@ import * as turf from "@turf/turf";
|
|
|
import { loadGeoJSON } from "@/utils/MapHelper/help.js";
|
|
|
import * as pick_cockpit_vector from "@/components/Query/clickQuery/pick_cockpit_vector.js";
|
|
|
import CockpitVector from "@/components/Query/clickQuery/CockpitVector.vue";
|
|
|
+import startWork from "./startWorkModal.vue";
|
|
|
let BoxCommonVector_entity = null;
|
|
|
let layerSources = {};
|
|
|
export default {
|
|
|
components: {
|
|
|
CockpitVector,
|
|
|
+ startWork,
|
|
|
},
|
|
|
props: {
|
|
|
islist: {
|
|
@@ -114,6 +118,9 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ start(item) {
|
|
|
+ this.$refs.startWorkRef.Init(item);
|
|
|
+ },
|
|
|
closeIsShallow() {
|
|
|
this.isShallow = false;
|
|
|
this.details = [];
|