///////////////////////////////////////////////////////////////////////////
|
// 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);
|
}
|
|
});
|
});
|