|
@@ -133,8 +133,7 @@ class IndexMap {
|
|
|
});
|
|
});
|
|
|
let style3 = new Style({
|
|
let style3 = new Style({
|
|
|
text: new Text({
|
|
text: new Text({
|
|
|
- // text: '2.18 农事1',
|
|
|
|
|
- text: feature.get('farmArea') + '亩',
|
|
|
|
|
|
|
+ text: feature.get('totalArea') ? feature.get('totalArea').toFixed(2) + '亩' : '--',
|
|
|
offsetX: 0,
|
|
offsetX: 0,
|
|
|
offsetY: -30,
|
|
offsetY: -30,
|
|
|
font: "bold 12px sans-serif",
|
|
font: "bold 12px sans-serif",
|
|
@@ -143,8 +142,7 @@ class IndexMap {
|
|
|
});
|
|
});
|
|
|
let style4 = new Style({
|
|
let style4 = new Style({
|
|
|
text: new Text({
|
|
text: new Text({
|
|
|
- // text: '2.18 农事1',
|
|
|
|
|
- text: feature.get('addressName'),
|
|
|
|
|
|
|
+ text: feature.get('districtName'),
|
|
|
offsetX: 0,
|
|
offsetX: 0,
|
|
|
offsetY: -6,
|
|
offsetY: -6,
|
|
|
font: "bold 14px sans-serif",
|
|
font: "bold 14px sans-serif",
|
|
@@ -215,282 +213,6 @@ class IndexMap {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
initData(taskList) {
|
|
initData(taskList) {
|
|
|
- // const gardenList = [{
|
|
|
|
|
- // "consequenceText": "如果不做本次农事,会导致您的产量、质量下降15%,管理得分降低5分",
|
|
|
|
|
- // "id": "274655",
|
|
|
|
|
- // "reCheckText": "本次农事复核成效优异,作物产量潜力实现大幅增长,虫害风险控制优异,未发现虫害风险",
|
|
|
|
|
- // "farmName": "荔枝博览园",
|
|
|
|
|
- // "farmPoint": "POINT(113.61652616170711 23.58399613872042)",
|
|
|
|
|
- // "orderId": "745923635683790848",
|
|
|
|
|
- // "area": 2.719998598098755,
|
|
|
|
|
- // "expert": 91356,
|
|
|
|
|
- // "orderStatus": 4,
|
|
|
|
|
- // "activeStatus": 0,
|
|
|
|
|
- // "farmId": 766,
|
|
|
|
|
- // "regionId": 2,
|
|
|
|
|
- // "speciesId": "1",
|
|
|
|
|
- // "speciesName": "荔枝",
|
|
|
|
|
- // "agriculturalId": 24,
|
|
|
|
|
- // "farmWorkId": "699343457474318336",
|
|
|
|
|
- // "farmWorkLibId": "699343457474318336",
|
|
|
|
|
- // "farmWorkLibName": "梢期防虫",
|
|
|
|
|
- // "farmWorkName": "梢期防虫",
|
|
|
|
|
- // "expertIcon": "https://birdseye-img.sysuimars.com/birdseye-look-vue/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250411150343.png",
|
|
|
|
|
- // "expertName": "韦帮稳",
|
|
|
|
|
- // "expertUserIcon": "",
|
|
|
|
|
- // "expertUserName": "韦帮稳",
|
|
|
|
|
- // "icon": 4,
|
|
|
|
|
- // "indexChart": [],
|
|
|
|
|
- // "indexName": "",
|
|
|
|
|
- // "beforeExecuteDate": "2024-12-03",
|
|
|
|
|
- // "checkDate": null,
|
|
|
|
|
- // "executeDate": "2025-08-15",
|
|
|
|
|
- // "indexJson": "",
|
|
|
|
|
- // "code": "BZ-BC-04-SQFC-20",
|
|
|
|
|
- // "expertPrescription": "",
|
|
|
|
|
- // "condition": "单树嫩叶率大于20.0%",
|
|
|
|
|
- // "solarName": "",
|
|
|
|
|
- // "reCheck": null,
|
|
|
|
|
- // "menu": 1,
|
|
|
|
|
- // "isEdit": 0,
|
|
|
|
|
- // "isMaster": null,
|
|
|
|
|
- // "num": null,
|
|
|
|
|
- // "purpose": "",
|
|
|
|
|
- // "selfExec": null,
|
|
|
|
|
- // "defaultFarmWork": 0,
|
|
|
|
|
- // "farmWorkType": 3,
|
|
|
|
|
- // "farmWorkTypeName": "病虫",
|
|
|
|
|
- // "type": 1,
|
|
|
|
|
- // "execute": 4,
|
|
|
|
|
- // "updateDate0": "2025-08-20",
|
|
|
|
|
- // "updateDate1": null,
|
|
|
|
|
- // "updateDate2": null,
|
|
|
|
|
- // "updateDate3": null,
|
|
|
|
|
- // "updateDate4": null,
|
|
|
|
|
- // "updateDate5": null,
|
|
|
|
|
- // "usageMode": "叶面施",
|
|
|
|
|
- // "serviceMain": "广州泽秾丰农资有限公司",
|
|
|
|
|
- // "updateDate6": null,
|
|
|
|
|
- // "confirmPicture": [],
|
|
|
|
|
- // "executeMain": "广州泽秾丰农资有限公司",
|
|
|
|
|
- // "storeShortName": "泽秾丰",
|
|
|
|
|
- // "weatherWarningMsg": "",
|
|
|
|
|
- // "executeEvidence": [],
|
|
|
|
|
- // "userEvaluation": null,
|
|
|
|
|
- // "reviewDate": null,
|
|
|
|
|
- // "reviewDate2": null,
|
|
|
|
|
- // "reviewImage": [],
|
|
|
|
|
- // "reviewImage2": [],
|
|
|
|
|
- // "serviceRegion": "广州市从化区荔枝博览园",
|
|
|
|
|
- // "cost": null,
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // "consequenceText": "如果不做本次农事,会导致您的产量、质量下降15%,管理得分降低5分",
|
|
|
|
|
- // "id": "274656",
|
|
|
|
|
- // "reCheckText": "本次农事复核成效优异,作物产量潜力实现大幅增长,控梢情况优秀,叶芽绿在5%以内",
|
|
|
|
|
- // "farmName": "荔枝博览园",
|
|
|
|
|
- // "farmPoint": "POINT(113.61767554789421 23.590079887444034)",
|
|
|
|
|
- // "orderId": "745923638623997952",
|
|
|
|
|
- // "area": 2.719998598098755,
|
|
|
|
|
- // "expert": 91356,
|
|
|
|
|
- // "orderStatus": 4,
|
|
|
|
|
- // "activeStatus": 0,
|
|
|
|
|
- // "farmId": 766,
|
|
|
|
|
- // "regionId": 2,
|
|
|
|
|
- // "speciesId": "1",
|
|
|
|
|
- // "speciesName": "荔枝",
|
|
|
|
|
- // "agriculturalId": 24,
|
|
|
|
|
- // "farmWorkId": "699343457474318337",
|
|
|
|
|
- // "farmWorkLibId": "699343457474318337",
|
|
|
|
|
- // "farmWorkLibName": "控梢",
|
|
|
|
|
- // "farmWorkName": "控梢",
|
|
|
|
|
- // "expertIcon": "https://birdseye-img.sysuimars.com/birdseye-look-vue/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250411150343.png",
|
|
|
|
|
- // "expertName": "韦帮稳",
|
|
|
|
|
- // "expertUserIcon": "",
|
|
|
|
|
- // "expertUserName": "韦帮稳",
|
|
|
|
|
- // "icon": 4,
|
|
|
|
|
- // "indexChart": [],
|
|
|
|
|
- // "indexName": "",
|
|
|
|
|
- // "beforeExecuteDate": "2024-12-15",
|
|
|
|
|
- // "checkDate": null,
|
|
|
|
|
- // "executeDate": "2024-12-03",
|
|
|
|
|
- // "indexJson": "",
|
|
|
|
|
- // "code": "YJ-TJ-04-KS-14",
|
|
|
|
|
- // "expertPrescription": "",
|
|
|
|
|
- // "condition": "园区叶芽率大于10.0%",
|
|
|
|
|
- // "solarName": "",
|
|
|
|
|
- // "reCheck": null,
|
|
|
|
|
- // "menu": 1,
|
|
|
|
|
- // "isEdit": 0,
|
|
|
|
|
- // "isMaster": null,
|
|
|
|
|
- // "num": null,
|
|
|
|
|
- // "purpose": "",
|
|
|
|
|
- // "selfExec": null,
|
|
|
|
|
- // "defaultFarmWork": 0,
|
|
|
|
|
- // "farmWorkType": 1,
|
|
|
|
|
- // "farmWorkTypeName": "调节",
|
|
|
|
|
- // "type": 0,
|
|
|
|
|
- // "execute": 4,
|
|
|
|
|
- // "updateDate0": "2025-08-20",
|
|
|
|
|
- // "updateDate1": null,
|
|
|
|
|
- // "updateDate2": null,
|
|
|
|
|
- // "updateDate3": null,
|
|
|
|
|
- // "updateDate4": null,
|
|
|
|
|
- // "updateDate5": null,
|
|
|
|
|
- // "usageMode": "叶面施",
|
|
|
|
|
- // "serviceMain": "广州泽秾丰农资有限公司",
|
|
|
|
|
- // "updateDate6": null,
|
|
|
|
|
- // "confirmPicture": [],
|
|
|
|
|
- // "executeMain": "广州泽秾丰农资有限公司",
|
|
|
|
|
- // "storeShortName": "泽秾丰",
|
|
|
|
|
- // "weatherWarningMsg": "",
|
|
|
|
|
- // "executeEvidence": [],
|
|
|
|
|
- // "userEvaluation": null,
|
|
|
|
|
- // "reviewDate": null,
|
|
|
|
|
- // "reviewDate2": null,
|
|
|
|
|
- // "reviewImage": [],
|
|
|
|
|
- // "reviewImage2": [],
|
|
|
|
|
- // "serviceRegion": "广州市从化区荔枝博览园",
|
|
|
|
|
- // "cost": null,
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // "consequenceText": "如果不做本次农事,会导致您的产量、质量下降50%,管理得分降低15分",
|
|
|
|
|
- // "id": "274657",
|
|
|
|
|
- // "reCheckText": "本次农事复核成效优异,作物产量潜力实现大幅增长,树体营养较充足,土壤肥力增加",
|
|
|
|
|
- // "farmName": "荔枝博览园",
|
|
|
|
|
- // "farmPoint": "POINT(113.62757101477101 23.590796948574365)",
|
|
|
|
|
- // "orderId": "745923641274798080",
|
|
|
|
|
- // "area": 2.719998598098755,
|
|
|
|
|
- // "expert": 91356,
|
|
|
|
|
- // "orderStatus": 4,
|
|
|
|
|
- // "activeStatus": 0,
|
|
|
|
|
- // "farmId": 766,
|
|
|
|
|
- // "regionId": 2,
|
|
|
|
|
- // "speciesId": "1",
|
|
|
|
|
- // "speciesName": "荔枝",
|
|
|
|
|
- // "agriculturalId": 24,
|
|
|
|
|
- // "farmWorkId": "699343457474318338",
|
|
|
|
|
- // "farmWorkLibId": "699343457474318338",
|
|
|
|
|
- // "farmWorkLibName": "基肥",
|
|
|
|
|
- // "farmWorkName": "基肥",
|
|
|
|
|
- // "expertIcon": "https://birdseye-img.sysuimars.com/birdseye-look-vue/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250411150343.png",
|
|
|
|
|
- // "expertName": "韦帮稳",
|
|
|
|
|
- // "expertUserIcon": "",
|
|
|
|
|
- // "expertUserName": "韦帮稳",
|
|
|
|
|
- // "icon": 4,
|
|
|
|
|
- // "indexChart": [],
|
|
|
|
|
- // "indexName": "",
|
|
|
|
|
- // "beforeExecuteDate": "2024-12-15",
|
|
|
|
|
- // "checkDate": null,
|
|
|
|
|
- // "executeDate": "2024-12-15",
|
|
|
|
|
- // "indexJson": "",
|
|
|
|
|
- // "code": "BZ-YY-04-JF-300",
|
|
|
|
|
- // "expertPrescription": "",
|
|
|
|
|
- // "condition": "基肥日期大于1215",
|
|
|
|
|
- // "solarName": "",
|
|
|
|
|
- // "reCheck": null,
|
|
|
|
|
- // "menu": 1,
|
|
|
|
|
- // "isEdit": 0,
|
|
|
|
|
- // "isMaster": null,
|
|
|
|
|
- // "num": null,
|
|
|
|
|
- // "purpose": "",
|
|
|
|
|
- // "selfExec": null,
|
|
|
|
|
- // "defaultFarmWork": 0,
|
|
|
|
|
- // "farmWorkType": 2,
|
|
|
|
|
- // "farmWorkTypeName": "营养",
|
|
|
|
|
- // "type": 1,
|
|
|
|
|
- // "execute": 4,
|
|
|
|
|
- // "updateDate0": "2025-08-20",
|
|
|
|
|
- // "updateDate1": null,
|
|
|
|
|
- // "updateDate2": null,
|
|
|
|
|
- // "updateDate3": null,
|
|
|
|
|
- // "updateDate4": null,
|
|
|
|
|
- // "updateDate5": null,
|
|
|
|
|
- // "usageMode": "根部施",
|
|
|
|
|
- // "serviceMain": "广州泽秾丰农资有限公司",
|
|
|
|
|
- // "updateDate6": null,
|
|
|
|
|
- // "confirmPicture": [],
|
|
|
|
|
- // "executeMain": "广州泽秾丰农资有限公司",
|
|
|
|
|
- // "storeShortName": "泽秾丰",
|
|
|
|
|
- // "weatherWarningMsg": "",
|
|
|
|
|
- // "executeEvidence": [],
|
|
|
|
|
- // "userEvaluation": null,
|
|
|
|
|
- // "reviewDate": null,
|
|
|
|
|
- // "reviewDate2": null,
|
|
|
|
|
- // "reviewImage": [],
|
|
|
|
|
- // "reviewImage2": [],
|
|
|
|
|
- // "serviceRegion": "广州市从化区荔枝博览园",
|
|
|
|
|
- // "cost": null,
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // "consequenceText": "如果不做本次农事,会导致您的产量、质量下降10%,管理得分降低3分",
|
|
|
|
|
- // "id": "274658",
|
|
|
|
|
- // "reCheckText": "本次农事复核成效优异,作物产量潜力实现大幅增长,病虫害基数得到大幅下降,未发现病虫害风险",
|
|
|
|
|
- // "farmName": "荔枝博览园",
|
|
|
|
|
- // "farmPoint": "POINT(113.62240816252164 23.59499176519138)",
|
|
|
|
|
- // "orderId": "745923644080787456",
|
|
|
|
|
- // "area": 2.719998598098755,
|
|
|
|
|
- // "expert": 91356,
|
|
|
|
|
- // "orderStatus": 4,
|
|
|
|
|
- // "activeStatus": 0,
|
|
|
|
|
- // "farmId": 766,
|
|
|
|
|
- // "regionId": 2,
|
|
|
|
|
- // "speciesId": "1",
|
|
|
|
|
- // "speciesName": "荔枝",
|
|
|
|
|
- // "agriculturalId": 24,
|
|
|
|
|
- // "farmWorkId": "699343457474318339",
|
|
|
|
|
- // "farmWorkLibId": "699343457474318339",
|
|
|
|
|
- // "farmWorkLibName": "清园",
|
|
|
|
|
- // "farmWorkName": "清园",
|
|
|
|
|
- // "expertIcon": "https://birdseye-img.sysuimars.com/birdseye-look-vue/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250411150343.png",
|
|
|
|
|
- // "expertName": "韦帮稳",
|
|
|
|
|
- // "expertUserIcon": "",
|
|
|
|
|
- // "expertUserName": "韦帮稳",
|
|
|
|
|
- // "icon": 4,
|
|
|
|
|
- // "indexChart": [],
|
|
|
|
|
- // "indexName": "",
|
|
|
|
|
- // "beforeExecuteDate": "2024-12-27",
|
|
|
|
|
- // "checkDate": null,
|
|
|
|
|
- // "executeDate": "2024-12-15",
|
|
|
|
|
- // "indexJson": "",
|
|
|
|
|
- // "code": "BZ-BC-04-QY-100",
|
|
|
|
|
- // "expertPrescription": "",
|
|
|
|
|
- // "condition": "清园日期大于1215",
|
|
|
|
|
- // "solarName": "",
|
|
|
|
|
- // "reCheck": null,
|
|
|
|
|
- // "menu": 1,
|
|
|
|
|
- // "isEdit": 0,
|
|
|
|
|
- // "isMaster": null,
|
|
|
|
|
- // "num": null,
|
|
|
|
|
- // "purpose": "",
|
|
|
|
|
- // "selfExec": null,
|
|
|
|
|
- // "defaultFarmWork": 0,
|
|
|
|
|
- // "farmWorkType": 3,
|
|
|
|
|
- // "farmWorkTypeName": "病虫",
|
|
|
|
|
- // "type": 1,
|
|
|
|
|
- // "execute": 4,
|
|
|
|
|
- // "updateDate0": "2025-08-20",
|
|
|
|
|
- // "updateDate1": null,
|
|
|
|
|
- // "updateDate2": null,
|
|
|
|
|
- // "updateDate3": null,
|
|
|
|
|
- // "updateDate4": null,
|
|
|
|
|
- // "updateDate5": null,
|
|
|
|
|
- // "usageMode": "叶面施",
|
|
|
|
|
- // "serviceMain": "广州泽秾丰农资有限公司",
|
|
|
|
|
- // "updateDate6": null,
|
|
|
|
|
- // "confirmPicture": [],
|
|
|
|
|
- // "executeMain": "广州泽秾丰农资有限公司",
|
|
|
|
|
- // "storeShortName": "泽秾丰",
|
|
|
|
|
- // "weatherWarningMsg": "",
|
|
|
|
|
- // "executeEvidence": [],
|
|
|
|
|
- // "userEvaluation": null,
|
|
|
|
|
- // "reviewDate": null,
|
|
|
|
|
- // "reviewDate2": null,
|
|
|
|
|
- // "reviewImage": [],
|
|
|
|
|
- // "reviewImage2": [],
|
|
|
|
|
- // "serviceRegion": "广州市从化区荔枝博览园",
|
|
|
|
|
- // "cost": null,
|
|
|
|
|
- // }]
|
|
|
|
|
this.gardenPointLayer.source.clear();
|
|
this.gardenPointLayer.source.clear();
|
|
|
if (taskList.length > 0) { // 如果任务列表不为空,则添加任务点
|
|
if (taskList.length > 0) { // 如果任务列表不为空,则添加任务点
|
|
|
for (let item of taskList) {
|
|
for (let item of taskList) {
|
|
@@ -509,7 +231,7 @@ class IndexMap {
|
|
|
this.gardenHallLayer.source.clear();
|
|
this.gardenHallLayer.source.clear();
|
|
|
if (taskList.length > 0) { // 如果任务列表不为空,则添加任务点
|
|
if (taskList.length > 0) { // 如果任务列表不为空,则添加任务点
|
|
|
for (let item of taskList) {
|
|
for (let item of taskList) {
|
|
|
- this.gardenHallLayer.source.addFeature(newPoint(item, "point", "hallGarden"))
|
|
|
|
|
|
|
+ this.gardenHallLayer.source.addFeature(newPoint(item, "centerPoint", "hallGarden"))
|
|
|
}
|
|
}
|
|
|
this.kmap.getView().fit(this.gardenHallLayer.source.getExtent(), { padding: [60, 40, 30, 40] });
|
|
this.kmap.getView().fit(this.gardenHallLayer.source.getExtent(), { padding: [60, 40, 30, 40] });
|
|
|
const finalZoom = this.kmap.getView().getZoom();
|
|
const finalZoom = this.kmap.getView().getZoom();
|