1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
| /*
| * @Description:
| * @Version: 1.0
| * @Author: yangsx
| * @Date: 2019-12-09 19:01:40
| * @LastEditors: yangsx
| * @LastEditTime: 2019-12-14 10:00:41
| */
| define([], function() {
| var config = {
| data: [
| {
| id: 3507001001,
| name: "天麟山监控点",
| lat: 118.17095896070343,
| lon: 26.650162659933308,
| stcd: stcd,
| type: ""
| },
| {
| id: 3507001001,
| name: "古木名树监控点",
| lat: 118.25178653922401,
| lon: 26.58675222838184,
| stcd: stcd,
| type: ""
| },
| {
| id: 3507001001,
| name: "龙景山监控点",
| lat: 118.24648649,
| lon: 26.58795201,
| stcd: stcd,
| type: ""
| },
| {
| id: 3507001001,
| name: "南平气象土壤点装一起",
| lat: 118.24636174656598,
| lon: 26.58771866633729,
| stcd: stcd,
| type: "气象土壤"
| },
| {
| id: 3507001001,
| name: "南平水质点",
| lat: 118.25021049,
| lon: 26.58678738,
| stcd: stcd,
| type: "水质"
| }
| ],
| type: [
| { name: "气象", type: ["温湿度", "气压", "风向", "降雨量", "风速"] },
| { name: "水质", type: ["电导率", "溶解氧", "水温", "水质浊度"] },
| {
| name: "土壤",
| type: ["土壤温湿度", "土壤电导率", "土壤PH值", "含水量"]
| },
| {
| name: "大气",
| type: ["二氧化硫", "二氧化氮", "二氧化碳", "PM2.5", "PM10"]
| }
| ]
| };
|
| console.log(123, config);
|
|
| // $.ajax({
| // type: "get",
| // url: host2 + "/zhsd/staVideo/findStaVideoByStcd",
| // async: "true",
| // contentType: "application/x-www-form-urlencoded; charset=UTF-8",
| // headers: {
| // token: token
| // },
| // data: { stcd: stcd },
| // success: function(res) {
| // var data = [];
| // for (var i = 0; i < res.data.length; i++) {
| // data.push({
| // id: res.data[i].id,
| // name: res.data[i].videoName,
| // lat: res.data[i].lat,
| // lon: res.data[i].lon,
| // stcd: stcd,
| // type: ""
| // });
| // }
| // // config.data = data;
| // }
| // });
| console.log(config);
|
| return config;
| });
|
|