shuishen
2021-06-09 c358fd31d1bb2fd0e37c8414b677a3194697dbd9
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
///////////////////////////////////////////////////////////////////////////
// Copyright © 2019 zhongsong. All Rights Reserved.
// 模块描述:显示坐标
///////////////////////////////////////////////////////////////////////////
define([
    'dojo/_base/declare',
    'dojo/_base/lang',
    'dojo/_base/array',
    'dojo/_base/html',
    'dojo/topic',
    'jimu/BaseWidget',
    'jimu/utils',
    'jimu/css!libs/zTree_v3/css/zTreeStyle/zTreeStyle.css',
    'libs/zTree_v3/js/jquery.ztree.all'
],
    function (declare,
        lang,
        array,
        html,
        topic,
        BaseWidget,
        aspect,
        string,
        utils
    ) {
        return declare([BaseWidget], {
            baseClass: 'jimu-widget-searchTabaPopup',
            name: 'searchTabaPopup',
            layers: {},
            startup: function () {
                // 暴露在外的接
                $('.cloce').click(() => {
                    $('.jimu-widget-searchTabaPopup').css({ 'display': 'none' })
                })
 
            },
 
            closeToolBox: function (item) {
                // if (item != this.name) {
                //     $('.tool-y-box').hide();
                // }
            },
 
            onOpen: function () {
                //面板打开的时候触发 (when open this panel trigger)
                // cc
 
                // $('.jimu-widget-searchTabaPopup').css({ 'display': 'block' });
                // $('.jimu-widget-searchTabaPopup').find('.p-main').eq(1).css({ 'display': 'block' }).siblings().css({ 'display': 'none' });
            //     var str = '';
            //     var XQDom = $('.jimu-widget-searchTabaPopup').find('.xiangqing');
            //     XQDom.empty();
 
            //     str += '<table border="1" cellpadding="100">';
            //     str += `<tr>
            //     <th>测站名称:</th>
            //     <td>南矶山战备湖</td>
            //     <th>建设类型:</th>
            //     <td>建设</td>
            // </tr>
            // <tr>
            //     <th>经度:</th>
            //     <td>116.280167</td>
            //     <th>纬度:</th>
            //     <td>28.918818</td>
            // </tr>
            // <tr>
            //     <th>建站时间:</th>
            //     <td>2021-05-23 09:52:48</td>
            //     <th>纬度:</th>
            //     <td>2021-05-23 09:52:48</td>
            // </tr>
            // <tr>
            //     <th>所属保护区:</th>
            //     <td>鄱阳湖南矶湿地国家级自然保护区</td>
            //     <th>地址:</th>
            //     <td>暂无</td>
            // </tr>
            // <tr>
            //     <th>全景地址:</th>
            //     <td colspan="3">北深湖(http://vr.jxpskj.com/pyhyjpt/njsdgjzrbhq/bshenh/</td>
            // </tr>
            // <tr>
            //     <th>测站简介:</th>
            //     <td class="left" colspan="3">南矶山保护区为国家级湿地自然保护区。位于江西省南昌市新建县南矶乡境内,由南矶山自然保护区管理站管理。南矶山省级自然保护区成立于1997年,2005年晋升为国家级自然保护区。保护对象为候乌及湿地生态系统。南矶山省级自然保护区成立于1997年,2005年晋升为国家级自然保护区。保护对象为候鸟及湿地生态系统。保护区总面积333平方千米,其中核心区面积175平方千米,缓冲区面积55平方千米,实验区面积103平方千米。
            //     </td>
            // </tr>
            // <tr>
            //     <th>图片:</th>
            //     <td class="left" colspan="3"></td>
            // </tr>`;
            //     str += '</table>';
 
            //     XQDom.append(str);
 
 
                layui.use('laydate', function () {
                    var laydate = layui.laydate;
 
                    laydate.render({
                        elem: '#test6'
                        //设置开始日期、日期日期的 input 选择器
                        //数组格式为 2.6.6 开始新增,之前版本直接配置 true 或任意分割字符即可
                        , range: ['#test-startDate-1', '#test-endDate-1']
                    });
                });
            },
 
            onClose: function () {
                //面板关闭的时候触发 (when this panel is closed trigger)
            },
 
            onMinimize: function () {
                this.resize();
            },
 
            onMaximize: function () {
                this.resize();
            },
 
            resize: function () {
 
            },
 
            destroy: function () {
                //销毁的时候触发
                //todo
                //do something before this func
                this.inherited(arguments);
            }
 
        });
    });