赣州市洪水风险预警系统三维版本
guoshilong
2023-02-27 4d8c6dd77427e8e581fda17b6b65ba86bfb7a815
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
define([
        'dojo/_base/declare',
        'dojo/_base/lang',
        'dojo/_base/html',
        "dojo/topic",
        'dijit/_WidgetBase',
        'dijit/_TemplatedMixin',
        "dojo/text!./GeologicalDisasterPanel.html"
    ],
    function (
        declare,
        lang,
        html,
        topic,
        _WidgetBase,
        _TemplatedMixin,
        template
    ) {
        return declare('GeologicalDisasterPanel',[_WidgetBase, _TemplatedMixin], {
 
            templateString: template,
            width:270,
            constructor: function (args) {
                declare.safeMixin(this, args);
            },
 
            postCreate: function () {
                this.crainfall.innerHTML = this.data.crainfall || "--";
                this.cenconding.innerHTML = this.data.cenconding || "--";
                this.arainfall.innerHTML = this.data.arainfall || "--";
                this.aconding.innerHTML = this.data.aconding || "--";
                this.township.innerHTML = this.data.township || "--";
                this.village.innerHTML = this.data.village || "--";
                this.village_group.innerHTML = this.data.village_group || "--";
                this.dj.innerHTML = this.data.dj || "--";
                this.bw.innerHTML = this.data.bw || "--";
                this.fyear.innerHTML = this.data.fyear|| "--";
                this.tyear.innerHTML = this.data.tyear|| "--";
                this.oyear.innerHTML = this.data.oyear|| "--";
                this.county.innerHTML = this.data.county|| "--";
            }
 
        });
    });