赣州市洪水风险预警系统三维版本
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.inherited(arguments);
                $('#onto').click(function () {
                   // alert(123)
                })
                // 县
                this.county.innerHTML = this.data.cnnm || "--";
                // 乡
                this.country.innerHTML = this.data.adnm || "--";
                // 行政区
                this.district.innerHTML = this.data.vtnm || "--";
                // 断面代码
                this.section.innerHTML = this.data.adcd || "--";
                // 流域名称
                this.basin.innerHTML = this.data.name || "--";
            }
 
        });
    });