diff --git a/src/api/common.js b/src/api/common.js
index d4ab267..ec25b5d 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -1,31 +1,39 @@
-import request from '@/utils/request'
+import request from '@/utils/request'
-export function listCommondepartment(params) {
- return request({
- url: '/api/admin/other/admin-department-list',
- method: 'get',
- params:params
- })
+export function listCommondepartment(params) {
+ return request({
+ url: '/api/admin/other/admin-department-list',
+ method: 'get',
+ params:params
+ })
}
-export function listCommonuser(params) {
- return request({
- url: '/api/admin/other/admin-user-list',
- method: 'get',
- params:params
- })
+export function listCommonuser(params) {
+ return request({
+ url: '/api/admin/other/admin-user-list',
+ method: 'get',
+ params:params
+ })
}
-export function remoteStatistic(params) {
- return request({
- url: '/api/admin/other/remot-statistic',
- method: 'get',
- params:params
- })
+export function remoteStatistic(params) {
+ return request({
+ url: '/api/admin/other/remot-statistic',
+ method: 'get',
+ params:params
+ })
+}
+
+export function sendSms (params) {
+ return request({
+ url: "/api/admin/auth/send-sms",
+ method: "get",
+ params
+ })
}
diff --git a/src/store/modules/bigdata.js b/src/store/modules/bigdata.js
index 2009784..0d83671 100644
--- a/src/store/modules/bigdata.js
+++ b/src/store/modules/bigdata.js
@@ -5,6 +5,8 @@ const state = {
leases: [],
adventLeases: [],
safety: [],
+ safetyPlan: [],
+ adventSafetyPlan: [],
type: 1,
}
let config = {}
@@ -19,6 +21,12 @@ const mutations = {
SET_ADVENT_LEASES: (state, adventLeases) => {
state.adventLeases = adventLeases
},
+ SET_SAFETY_PLAN: (state, safetyPlan) => {
+ state.safetyPlan = safetyPlan
+ },
+ SET_ADVENT_SAFETY_PLAN: (state, adventSafetyPlan) => {
+ state.adventSafetyPlan = adventSafetyPlan
+ },
SET_TYPE: (state, type) => {
state.type = type
},
@@ -130,6 +138,73 @@ const actions = {
reject(err)
})
})
+ },
+ getSafetyPlan({ commit, state }) {
+ return new Promise((resolve, reject) => {
+ index({
+ table_name: "asset_safety_plans",
+ page: 1,
+ page_size: 999,
+ filter: [
+ {
+ key: "jihuajieshushijian",
+ op: "range",
+ value: `${$moment().format("YYYY-MM-DD")},2999-12-31`
+ },
+ {
+ key: "jihuakaishishijian",
+ op: "range",
+ value: `${$moment(0).format("YYYY-MM-DD")},${$moment().format("YYYY-MM-DD")}`
+ }
+ ]
+ }).then(res => {
+ commit("SET_SAFETY_PLAN", res.data)
+ resolve(res)
+ }).catch(err => {
+ reject(err)
+ })
+ })
+ },
+ async getAdventSafetyPlan({ commit, state }) {
+ if (!config.time || !config.unit) {
+ const res = await index({
+ table_name: 'warnings',
+ filter: [
+ {
+ key: 'flag',
+ op: 'eq',
+ value: 'contract'
+ }
+ ]
+ },false)
+ config.time = Number(res.data[0]?.time);
+ config.unit = res.data[0]?.unit;
+ }
+ return new Promise((resolve, reject) => {
+ let preDate = $moment().add(config.time, config.unit).format("YYYY-MM-DD")
+ index({
+ table_name: "asset_safety_plans",
+ page: 1,
+ page_size: 999,
+ filter: [
+ {
+ key: "jihuajieshushijian",
+ op: "range",
+ value: `${$moment().format("YYYY-MM-DD")},${preDate}`
+ },
+ {
+ key: "jihuakaishishijian",
+ op: "range",
+ value: ``
+ }
+ ]
+ }).then(res => {
+ commit("SET_ADVENT_SAFETY_PLAN", res.data)
+ resolve(res)
+ }).catch(err => {
+ reject(err)
+ })
+ })
}
}
diff --git a/src/views/dataShow/index.vue b/src/views/dataShow/index.vue
index feddf5a..d69a55a 100644
--- a/src/views/dataShow/index.vue
+++ b/src/views/dataShow/index.vue
@@ -7,13 +7,13 @@
-
+
-
+
-
-
+
+
@@ -32,6 +32,7 @@
import drawMixin from "@/mixin/drawMixin";
import MapComponent from "./map.vue";
import Map1Component from "./map1.vue";
+import Map2Component from "./map2.vue";
import HeaderComponent from "./header.vue";
import right1 from "./right1.vue";
import right2 from "./right2.vue";
@@ -44,6 +45,7 @@ export default {
components: {
MapComponent,
Map1Component,
+ Map2Component,
HeaderComponent,
right1,
right2,
@@ -65,20 +67,27 @@ export default {
getAssets: "getAssets",
getAdventLeases: "getAdventLeases",
getSafety: "getSafety",
+ getSafetyPlan: "getSafetyPlan",
+ getAdventSafetyPlan: "getAdventSafetyPlan"
})
},
computed: {
+ type () {
+ return this.$store.state.bigdata.type;
+ }
},
mounted() {
setTimeout(() => {
this.loading = false;
- },500)
+ },1000)
},
created() {
this.getAssets()
this.getLeases()
this.getAdventLeases()
this.getSafety()
+ this.getSafetyPlan()
+ this.getAdventSafetyPlan()
}
}
diff --git a/src/views/dataShow/map.vue b/src/views/dataShow/map.vue
index 6a9e06e..530a597 100644
--- a/src/views/dataShow/map.vue
+++ b/src/views/dataShow/map.vue
@@ -206,5 +206,6 @@ export default {
#map {
width: 100%;
height: 100%;
+ background: linear-gradient(to bottom, #00000022 , #61b9ac66);
}
diff --git a/src/views/dataShow/map1.vue b/src/views/dataShow/map1.vue
index 0a9824b..ea55757 100644
--- a/src/views/dataShow/map1.vue
+++ b/src/views/dataShow/map1.vue
@@ -1,5 +1,33 @@
-
+
+
+
+
+
+
+
+ {{ row.dikuaimingcheng }}
+
+
+ {{ row.chuzufang }}
+
+
+ {{ row.chengzufang }}
+
+
+ {{ row.zulinkaishiqixian }}
+
+
+ {{ row.zulinjieshuqixian }}
+
+
+ {{ row.nianzujindanjia }}
+
+
+ {{ row.shishouzujin }}
+
+
+
@@ -7,8 +35,10 @@
export default {
data() {
return {
+ isShowWindow: false,
markerList: [],
- cluster: ""
+ cluster: "",
+ row: {}
}
},
computed: {
@@ -18,18 +48,18 @@ export default {
},
methods: {
pickRow({ row }) {
- //this.isShowInfoWindow = true;
- //this.openData = row;
+ this.row = row;
+ this.isShowWindow = true;
let location = row.land_id_lands_id_relation ? row.land_id_lands_id_relation.zichanweizhi : row.house_id_houses_id_relation.zichanweizhi;
if (location) {
let lat, lng;
[lng, lat] = location.split(",");
this.map.panTo([lng, lat]);
this.map.setZoom(30);
- // this.infoWindow.open(this.map, [lng, lat]);
+ this.infoWindow.open(this.map, [lng, lat]);
} else {
this.map.panTo(this.center);
- //this.infoWindow.open(this.map, this.center);
+ this.infoWindow.open(this.map, this.center);
}
},
init(adcode = ["320200"]) {
@@ -42,6 +72,14 @@ export default {
zoom: 20,
mapStyle: "amap://styles/blue"
});
+ this.infoWindow = new AMap.InfoWindow({
+ isCustom: true,
+ autoMove: true,
+ avoid: [20, 20, 20, 20],
+ content: this.$refs["leaseInfoWindow"],
+ closeWhenClickMap: true,
+ offset: new AMap.Pixel(-10, -10),
+ });
this.map.on('click',e => {
console.log(e)
})
@@ -145,6 +183,10 @@ export default {
+
diff --git a/src/views/dataShow/map2.vue b/src/views/dataShow/map2.vue
new file mode 100644
index 0000000..5fbc184
--- /dev/null
+++ b/src/views/dataShow/map2.vue
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+ {{ row.zichanmingcheng }}
+
+
+ {{ row.jianchajilu }}
+
+
+ {{ (row.land_id_lands_id_relation && row.house_id_houses_id_relation) ? (row.land_id ? row.land_id_lands_id_relation.name : row.house_id_houses_id_relation.name) : "" }}
+
+
+ {{ row.zichanleixing }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/dataShow/right1.vue b/src/views/dataShow/right1.vue
index fabd431..9afa0d3 100644
--- a/src/views/dataShow/right1.vue
+++ b/src/views/dataShow/right1.vue
@@ -5,10 +5,11 @@
-
{{ type === 1 ? '土地资产' : '合约中' }}
+
{{ title }}
-
+
+
@@ -25,6 +26,24 @@ export default {
},
methods: {},
computed: {
+ config () {
+ return {
+ header: ['年度', '月度', '计划名称'],
+ data: this.$store.state.bigdata.safetyPlan.map(i => [i.niandu, i.yuedu, i.jihuamingcheng])
+ }
+ },
+ title () {
+ switch (this.type) {
+ case 1:
+ return '土地资产'
+ case 2:
+ return '合约中'
+ case 3:
+ return '安全检查计划'
+ default:
+ return '土地资产'
+ }
+ },
type () {
return this.$store.state.bigdata.type
},
@@ -71,6 +90,11 @@ export default {
.ranking {
padding: 20px 10px;
width: 100%;
+ .dv-scr-board {
+ width: 346px;
+ height: 180px;
+ padding: 10px;
+ }
.dv-scr-rank-board {
height: 180px;
padding: 10px 20px;
diff --git a/src/views/dataShow/right2.vue b/src/views/dataShow/right2.vue
index d3f5317..e5898ea 100644
--- a/src/views/dataShow/right2.vue
+++ b/src/views/dataShow/right2.vue
@@ -8,7 +8,8 @@
{{ type === 1 ? '房屋资产' : '临期' }}
-
+
+
@@ -25,6 +26,12 @@ export default {
},
methods: {},
computed: {
+ config () {
+ return {
+ header: ['年度', '月度', '计划名称'],
+ data: this.$store.state.bigdata.adventSafetyPlan.map(i => [i.niandu, i.yuedu, i.jihuamingcheng])
+ }
+ },
type () {
return this.$store.state.bigdata.type
},
@@ -71,7 +78,11 @@ export default {
.ranking {
padding: 20px 10px;
width: 100%;
-
+ .dv-scr-board {
+ width: 346px;
+ height: 180px;
+ padding: 10px;
+ }
.dv-scr-rank-board {
height: 180px;
padding: 10px 20px;
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index d50357a..d922e18 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -1,251 +1,272 @@
-
-
-
-
-
-
-
-
-
{{title}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 登录
-
-
-
-
-
-
-
-
-
-
-
+
+
diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index dd59bdf..0ac1804 100644
--- a/src/views/system/user.vue
+++ b/src/views/system/user.vue
@@ -61,6 +61,9 @@
+
+
+
@@ -116,6 +119,7 @@
username: "",
password: "",
department_id: "",
+ mobile: ""
},
rules: {
name: [{
@@ -134,6 +138,15 @@
required: true,
message: '请输入密码',
trigger: 'blur',
+ }],
+ mobile: [{
+ required: true,
+ message: '请输入手机号',
+ trigger: 'blur',
+ },{
+ pattern: /^1[3456789]\d{9}$/,
+ message: "手机号格式不正确",
+ trigger: "blur",
}]
},
tableHeight: 0,