com.ld.igds.models.WeatherInfo 主键ID 组织编码 所属分库 所属城市 温度(℃) 湿度 风级 风速 风向 天气 雨量 PM2.5 空气质量 大气压 气象来源 ${dorado.getDataProvider("weatherConfPR#triggerSource").getResult()} code name 能见度 DateTime 更新时间 Y-m-d H:i 更新时间 com.ld.igds.models.WeatherConf 主键 组织编码 所属分库 ${dorado.getDataProvider("deptPR#loadParents").getResult()} id name true 配置名称 IP地址 Integer 端口号 设备状态 所属协议 ${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("PROTOCOL")} code name 外网地址 气象城市 气象城市 外网气象 账号 密码 com.ld.igds.models.WeatherCity 城市编码 城市编码 城市名称 省份编码 省份名称 坐标 坐标 /** * 刷新HTML实时气象 */ flushWeatherHtml = function(){ var cur = view.get("#dataSetConf.data"); if(!cur) return; if(!cur.get("cityId")) return; console.log(cur.get("cityId")); var htmlWeather = view.get("#htmlWeather"); var content = "<iframe scrolling='no' src='https://tianqiapi.com/api.php?style=tw&skin=peach&cityid="+cur.get('cityId')+"' frameborder='0' width='380' height='500' allowtransparency='true' style='padding-left:15px;'></iframe>"; htmlWeather.set("content",content); } font-awesome,css-common weatherInfoPR#getInfoData [dtMain] 20 flushWeatherHtml(); weatherInfoPR#getConfData2 dataTypeConf bg-color 400 right bg-color hidden 50 dsMain true updateTime center 130 weather center temp center humidity center windSpeed center windDirection center pm25 center airLevel center city dsMain <!-- <iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tr&skin=yahoo&city=许昌" frameborder="0" width="380" height="225" allowtransparency="true" style="padding-left:15px;"></iframe> --> <iframe id="htmlWeatherInframe" scrolling="no" src="https://tianqiapi.com/api.php?style=tw&skin=peach&city=郑州" frameborder="0" width="380" height="500" allowtransparency="true" style="padding-left:15px;"></iframe> bg-color hidden 45 dataSetConf * true deptId deptId name name macStatus macStatus protocol protocol wanTag wanTag 启用 Y 不启用 N city city flushWeatherHtml() 气象配置信息 1000 650 bg-color 55 hidden bg-color
基础信息 dataSetConf *,* right 100 name name deptId deptId
库区气象配置 dataSetConf *,* right 100 ip ip port port protocol protocol macStatus macStatus account account password password
外部气象局接口 dataSetConf *,* right 100 wanTag wanTag 启用 Y 不启用 N city city cddCity cityId cityId
weatherInfoPR#saveConfData 350 300 city=cityZh,cityId=id 20 [dtWeatherCity] weatherInfoPR#getCity -- 中文或拼音 -- var data = arg.data; view.get("#cddCity").close(data); dsCity true id cityZh provinceZh