|
@@ -156,6 +156,15 @@
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog :title="titleLongitude" :visible.sync="showLongitude" append-to-body>
|
|
|
+ <el-input v-show="false" v-model="form.longitude"></el-input>
|
|
|
+ <el-input v-show="false" v-model="form.latitude"></el-input>
|
|
|
+ <supermap style="width: 100%;height: 500px;" :mapDiv="'farmMapPlant'" :mapSite="{doubleClickZoom:false}"
|
|
|
+ :codes="['9fa5']" :isSideBySide="false" :showLatLng="showLatLng"></supermap>
|
|
|
+ <el-button type="primary" @click="showLongitude=false">确定</el-button>
|
|
|
+ </el-dialog>
|
|
|
+ <ISuperMap ref="ISuperMap" v-if="ISuperMapvisible" @send="send"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -166,10 +175,13 @@ import {treeselect} from "@/api/system/dept";
|
|
|
import {checkLat, checkLon} from "@/api/rules/rules";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import {format_date} from "@/views/data/common/dateExport";
|
|
|
+import supermap from "@/views/components/supermap";
|
|
|
+import ISuperMap from "@/views/data/common/ISuperMap";
|
|
|
+import deptselector from '@/views/components/deptselector'
|
|
|
|
|
|
export default {
|
|
|
name: "Plant",
|
|
|
- components: {Treeselect},
|
|
|
+ components: {ISuperMap, supermap, Treeselect,deptselector},
|
|
|
data() {
|
|
|
return {
|
|
|
// 部门树选项
|
|
@@ -178,6 +190,10 @@ export default {
|
|
|
loading: true,
|
|
|
// 选中数组
|
|
|
ids: [],
|
|
|
+ sign: 1,
|
|
|
+ ISuperMapvisible: false,
|
|
|
+ showLongitude: false,
|
|
|
+ titleLongitude: '经纬度',
|
|
|
// 非单个禁用
|
|
|
single: true,
|
|
|
// 非多个禁用
|
|
@@ -256,6 +272,19 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ send(val) {
|
|
|
+ debugger
|
|
|
+ if (val===true){
|
|
|
+ this.ISuperMapvisible = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.sign === 1) {
|
|
|
+ this.form.longitude = val.longitude;
|
|
|
+ this.form.latitude = val.latitude;
|
|
|
+ }
|
|
|
+ if (this.sign === 2 || this.sign === 3) this.form.longitude = val.xiantude;//this.form.longitude 换成对应的线或区域的字段
|
|
|
+ this.ISuperMapvisible = false
|
|
|
+ },
|
|
|
/** 查询野生植物列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|