jxdnsong
2020-10-23 a7929e6b3ec9ac17233f39e55a2b8ac63ea75f42
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
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);
                this.name.innerHTML = this.data.name||"--"; 
                this.location.innerHTML = this.data.location||"--";  
                this.creator.innerHTML = this.data.creator||"--";
                this.nt.innerHTML = this.data.nt||"--";
            }
 
        });
    });