diff --git a/.env.development b/.env.development
index 605bb4a..91f061a 100644
--- a/.env.development
+++ b/.env.development
@@ -2,15 +2,15 @@
ENV='development'
# base api
-#VUE_APP_BASE_API = http://192.168.60.99:9004/
-#VUE_APP_UPLOAD_API = http://192.168.60.99:9004/api/admin/upload-file
-#VUE_APP_OA_URL = http://192.168.60.18:2021
-#VUE_APP_OA_URL_TYPE = '{"领用":"37","处置":"38","应急":"39"}'
+VUE_APP_BASE_API = http://192.168.60.99:9004/
+VUE_APP_UPLOAD_API = http://192.168.60.99:9004/api/admin/upload-file
+VUE_APP_OA_URL = http://192.168.60.18:2021
+VUE_APP_OA_URL_TYPE = '{"领用":"37","处置":"38","应急":"39"}'
-VUE_APP_BASE_API = http://192.168.60.99:8004/
-VUE_APP_UPLOAD_API = http://192.168.60.99:8004/api/admin/upload-file
-VUE_APP_OA_URL= http://suzhouhedaooa.langye.net
-VUE_APP_OA_URL_TYPE = '{"领用":"31","处置":"32","应急":"33"}'
+#VUE_APP_BASE_API = http://192.168.60.99:8004/
+#VUE_APP_UPLOAD_API = http://192.168.60.99:8004/api/admin/upload-file
+#VUE_APP_OA_URL= http://suzhouhedaooa.langye.net
+#VUE_APP_OA_URL_TYPE = '{"领用":"31","处置":"32","应急":"33"}'
diff --git a/package.json b/package.json
index eabce83..a0214af 100644
--- a/package.json
+++ b/package.json
@@ -24,6 +24,7 @@
"element-ui": "2.15.13",
"file-saver": "^2.0.5",
"js-cookie": "2.2.0",
+ "less": "^3.13.1",
"less-loader": "^5.0.0",
"moment": "^2.29.2",
"normalize.css": "7.0.0",
diff --git a/src/views/books/index.vue b/src/views/books/index.vue
index 2d8b90c..99809f2 100644
--- a/src/views/books/index.vue
+++ b/src/views/books/index.vue
@@ -2,8 +2,18 @@
-
抢险队伍
-
防汛仓库
+
抢险队伍
+
+
+
+
+ 防汛仓库
+
+
+ {{item.value}}
+
+
+
@@ -62,7 +72,10 @@
import {
index,
destroy
- } from "@/api/system/baseForm.js"
+ } from "@/api/system/baseForm.js"
+ import {
+ getparameteritem
+ } from "@/api/system/dictionary.js"
export default {
data() {
return {
@@ -74,10 +87,12 @@
makerObj: {
teams: [],
storages: []
- },
+ },
+ areaList:[],
infoWindow: null,
openData: [],
- materList: [],
+ materList: [],
+ quyu_id:'',
loading: true,
total: 0,
addCur: false,
@@ -205,13 +220,19 @@
]
}
},
- created() {
+ created() {
+ this.getArea()
this.initHeight()
this.$nextTick(function() {
this.mapInit()
})
},
- methods: {
+ methods: {
+ getArea(){
+ getparameteritem("area").then(res=>{
+ this.areaList = res.detail
+ })
+ },
initHeight() {
let winHeight = document.body.clientHeight
this.mapHeight = winHeight - 50 - 20
@@ -239,7 +260,7 @@
offset: new AMap.Pixel(-10, -10)
})
this.getTeams()
- this.getStorages()
+ // this.getStorages()
// this.setMapMarker()
},
changeMask(type) {
@@ -247,8 +268,10 @@
this.addCur = false
this.setMapMarker("teams", this.makerObj.teams)
} else if (type == 2) {
- this.addCur = true
- this.setMapMarker("storages", this.makerObj.storages)
+ this.addCur = true
+ this.quyu_id = ''
+ this.getStorages()
+ // this.setMapMarker("storages", this.makerObj.storages)
}
},
async getTeams() {
@@ -268,14 +291,32 @@
...item
})
})
- this.setMapMarker("teams", this.makerObj.teams)
+ this.setMapMarker("teams", this.makerObj.teams)
+ this.loadingFull.close();
})
+ },
+ clickQuyu(e){
+ console.log("e",e)
+ this.quyu_id = e
+ this.getStorages()
},
- async getStorages() {
+ async getStorages() {
+ this.loadingFull = this.$loading({
+ lock: true,
+ text: '',
+ spinner: 'el-icon-loading',
+ background: 'rgba(0, 0, 0, 0.7)'
+ });
+ this.makerObj.storages = []
await index({
page: 1,
page_size: 9999,
- table_name: 'flood_storages'
+ table_name: 'flood_storages',
+ filter: [{
+ key:'quyu_id',
+ op:'eq',
+ value:this.quyu_id
+ }],
}).then(res => {
let markers = []
if (res.data.length < 1) {
@@ -288,6 +329,7 @@
...item
})
})
+ this.setMapMarker("storages", this.makerObj.storages)
this.loadingFull.close();
})
},
@@ -363,7 +405,7 @@
}
-