app.7ac7f944c6fa22904ce3.js 1.0 MB

12
  1. webpackJsonp([1],{"+2TD":function(e,t){},"+aT9":function(e,t){e.exports=AMap},"+yGY":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjYwNjI5MEM1MzdDNjExRURCM0MzOTU4MDA5ODMyOTFGIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjYwNjI5MEM2MzdDNjExRURCM0MzOTU4MDA5ODMyOTFGIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNl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dMsOeyoaZuiaL/1qyUor+Bt9+B+uscVLc7djPOoZ8QRHA6MfW/7RoLXDu/RHbdiJUDK/EIQ2QpeK9yLVs98HwsMnIZctv7k5HL2hUK1lsWFgFyYLiXY7AoyrzV1LHA6h/JTIy0gxtviHwUQ497ZVbrKbDTvcY4PFmEn3s4AtOAATzrV/Dool26pFvUvh/DwkMWJu8tjsphmY4cwsSaaWaYZXAqb1cy8xsGJyAntdB7Z2U3sz0cDWzONvHD08e+MSNruSPgCbejXPL+KHYw6xgjWbNIwDsmL//vhwX9vbeYq7L9IQ6TAUSqopI7uRglXcg3tTARuBiR88XCrO3byY9htEhC40tV+8Uw0dlJU+Y5M2hlyEgkoiKloUN+t69c5ju885zGby2UbFlNJ8RwwgOcbmWz+1N6VgqcSfgZnfLFcPNLCZc8r8w054A4aoo4mRXvSe/PBKyczLkwoWtgND9IZEK428OveUO2zzpIGFzbC99Q5Mm4bjfIzz7ZODlm/7Nrfdcmonx8qzamtn968TAZpshK2dzlt2ZOLi9k9eZch91M/hDdtgI2ztSGZHEt40a4axRzjh1m8H1kBQ8sXc09IRJVNXuRZkkCnwv3u9tXvUPAtb2hFUYsBByhos8T+hYo4LLJ4NG1qlnsQhHSVO6Nfj4EseaRQcRy0EfG28Olc5qKB6CtgKcRwFqgRf40nrJFBUPRt8jUcmHCsVVQtDcA7K/qJWYq+TN+0vasmUJi9VGd8MdQTbahpfxQMzxg3dVu1/AQYA+BeH0QhgGRQAAAAASUVORK5CYII="},"/AM0":function(e,t){},"/fQO":function(e,t){},"/jd6":function(e,t){},"/spB":function(e,t){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.Color"),a=function(e,t){e.find("#preview")[0].getEl().style.background=t},i=function(e,i){var n=t(i),l=n.toRgb();e.fromJSON({r:l.r,g:l.g,b:l.b,hex:n.toHex().substr(1)}),a(e,n.toHex())},n=function(e,t,n){var l=e.windowManager.open({title:"Color",items:{type:"container",layout:"flex",direction:"row",align:"stretch",padding:5,spacing:10,items:[{type:"colorpicker",value:n,onchange:function(){var e=this.rgb();l&&(l.find("#r").value(e.r),l.find("#g").value(e.g),l.find("#b").value(e.b),l.find("#hex").value(this.value().substr(1)),a(l,this.value()))}},{type:"form",padding:0,labelGap:5,defaults:{type:"textbox",size:7,value:"0",flex:1,spellcheck:!1,onchange:function(){var e,t,a=l.find("colorpicker")[0];if(e=this.name(),t=this.value(),"hex"===e)return i(l,t="#"+t),void a.value(t);t={r:l.find("#r").value(),g:l.find("#g").value(),b:l.find("#b").value()},a.value(t),i(l,t)}},items:[{name:"r",label:"R",autofocus:1},{name:"g",label:"G"},{name:"b",label:"B"},{name:"hex",label:"#",value:"000000"},{name:"preview",type:"container",border:1}]}]},onSubmit:function(){t("#"+l.toJSON().hex)}});i(l,n)};e.add("colorpicker",function(e){e.settings.color_picker_callback||(e.settings.color_picker_callback=function(t,a){n(e,t,a)})})}()},0:function(e,t){},"1/VS":function(e,t,a){e.exports=a.p+"static/img/deviceRight.6f23c8e.png"},"1stn":function(e,t){},"2n9Y":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAyCAYAAAAqRkmtAAAABHNCSVQICAgIfAhkiAAABSRJREFUaIG1Wb124kYU/ma8Fu5C3kB5gmW7PZhzgp9gcZcuuEuHUoxQt6QDqVjSpTN+gnW6dMYFPifV2l26wBtA5zM+mknBSIyGkZBA+Rr0c3Xn45ure++MzlAzGGP9TqfjLhaLf+r0e1anM8bYgBDyB4Cf2u32+unp6e+6fJO6HA2Hw1spZT/jnJDZZDK5qcN/LYraSCq0VBj8eeoYJxMtIJmgFrInES1BMkGr0+l8v1gs/jp2rKOJViCZ4GO73V49PT09HzPeUUSHw+FUSvlL1ecIIb1jyVZ+6xljfULIbdXndFBKr8bj8bzKM5WI1kFSYS2lvIqiqLSypYkyxlqEkAcAzaOo7WNNKf0wHo+XZYxpGSPP85o1kwSAphDiq+d5pXweJOp5XtNxn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6pSQh5sKyzAGz7YbVbqPuf6zZ7OyWc815RgwDsqymEsBIwyQohHnzfX2JbBJ6x7dpayMb2i23Dw7pTojqqZ1gahP8ZeR2WfdtxPB4vpZRdFPeJdeOFUtrL67Byu6coip455y7KxeypuOOcd4u2yUvt4astHA/1h8IKgGfbFDNR+mODamyn2C62TiW8ATAKw/DgTnOCyt+ZFOE+gD4KMoMNqiLdv7293Rd1+zac9Blcke5il2Jcw2QJYEkpnVf9AGbiP6aUY2heZY4AAAAAAElFTkSuQmCC"},"4Uvm":function(e,t,a){a("wbKn")},"5ydu":function(e,t,a){e.exports=a.p+"static/img/noimage.689b20a.png"},"67Va":function(e,t){!function(){"use strict";var e,t=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},i=function(e,t){return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];return e(t.apply(null,arguments))}},n=function(e){return function(){return e}},l=function(e){return e},s=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];for(var i=new Array(arguments.length-1),n=1;n<arguments.length;n++)i[n-1]=arguments[n];return function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];for(var n=new Array(arguments.length),l=0;l<n.length;l++)n[l]=arguments[l];var s=i.concat(n);return e.apply(null,s)}},r=function(e){return function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return!e.apply(null,arguments)}},o=function(e){return e()},u=n(!1),c=n(!0),d=u,m=c,h=function(){return f},f=function(){var e=function(e){return e.isNone()},t=function(e){return e()},a=function(e){return e},i={fold:function(e,t){return e()},is:d,isSome:d,isNone:m,getOr:a,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){},or:a,orThunk:t,map:h,ap:h,each:function(){},bind:h,flatten:h,exists:d,forall:m,filter:h,equals:e,equals_:e,toArray:function(){return[]},toString:n("none()")};return Object.freeze&&Object.freeze(i),i}(),v=function(e){var t=function(){return e},a=function(){return n},i=function(t){return t(e)},n={fold:function(t,a){return a(e)},is:function(t){return e===t},isSome:m,isNone:d,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:a,orThunk:a,map:function(t){return v(t(e))},ap:function(t){return t.fold(h,function(t){return v(t(e))})},each:function(t){t(e)},bind:i,flatten:t,exists:i,forall:i,filter:function(t){return t(e)?n:f},equals:function(t){return t.is(e)},equals_:function(t,a){return t.fold(d,function(t){return a(e,t)})},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return n},p={some:v,none:h,from:function(e){return null===e||void 0===e?f:v(e)}},g=function(e){return function(t){return function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&Array.prototype.isPrototypeOf(e)?"array":"object"===t&&String.prototype.isPrototypeOf(e)?"string":t}(t)===e}},b=g("string"),_=g("array"),y=g("boolean"),w=g("function"),x=g("number"),C=void 0===(e=Array.prototype.indexOf)?function(e,t){return P(e,t)}:function(t,a){return e.call(t,a)},A=function(e,t){return C(e,t)>-1},k=function(e,t){return M(e,t).isSome()},E=function(e,t){for(var a=e.length,i=new Array(a),n=0;n<a;n++){var l=e[n];i[n]=t(l,n,e)}return i},D=function(e,t){for(var a=0,i=e.length;a<i;a++)t(e[a],a,e)},S=function(e,t){for(var a=[],i=0,n=e.length;i<n;i++){var l=e[i];t(l,i,e)&&a.push(l)}return a},I=function(e,t,a){return function(e,t){for(var a=e.length-1;a>=0;a--)t(e[a],a,e)}(e,function(e){a=t(a,e)}),a},T=function(e,t,a){return D(e,function(e){a=t(a,e)}),a},B=function(e,t){for(var a=0,i=e.length;a<i;a++){var n=e[a];if(t(n,a,e))return p.some(n)}return p.none()},M=function(e,t){for(var a=0,i=e.length;a<i;a++)if(t(e[a],a,e))return p.some(a);return p.none()},P=function(e,t){for(var a=0,i=e.length;a<i;++a)if(e[a]===t)return a;return-1},L=Array.prototype.push,R=function(e){for(var t=[],a=0,i=e.length;a<i;++a){if(!Array.prototype.isPrototypeOf(e[a]))throw new Error("Arr.flatten item "+a+" was not an array, input: "+e);L.apply(t,e[a])}return t},N=function(e,t){var a=E(e,t);return R(a)},O=function(e,t){for(var a=0,i=e.length;a<i;++a)if(!0!==t(e[a],a,e))return!1;return!0},q=Array.prototype.slice,z=function(e){var t=q.call(e,0);return t.reverse(),t},F=(w(Array.from)&&Array.from,Object.keys),U=function(e,t){for(var a=F(e),i=0,n=a.length;i<n;i++){var l=a[i];t(e[l],l,e)}},W=function(e,t){return V(e,function(e,a,i){return{k:a,v:t(e,a,i)}})},V=function(e,t){var a={};return U(e,function(i,n){var l=t(i,n,e);a[l.k]=l.v}),a},j=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];if(e.length!==t.length)throw new Error('Wrong number of arguments to struct. Expected "['+e.length+']", got '+t.length+" arguments");var i={};return D(e,function(e,a){i[e]=n(t[a])}),i}},H=function(e){return e.slice(0).sort()},K=function(e,t){throw new Error("All required keys ("+H(e).join(", ")+") were not specified. Specified keys were: "+H(t).join(", ")+".")},Y=function(e){throw new Error("Unsupported keys for object: "+H(e).join(", "))},Q=function(e,t){if(!_(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");D(t,function(t){if(!b(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")})},G=function(e){var t=H(e);B(t,function(e,a){return a<t.length-1&&e===t[a+1]}).each(function(e){throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+t.join(", ")+"].")})},J=function(e,t){var a=e.concat(t);if(0===a.length)throw new Error("You must specify at least one required or optional field.");return Q("required",e),Q("optional",t),G(a),function(i){var l=F(i);O(e,function(e){return A(l,e)})||K(e,l);var s=S(l,function(e){return!A(a,e)});s.length>0&&Y(s);var r={};return D(e,function(e){r[e]=n(i[e])}),D(t,function(e){r[e]=n(Object.prototype.hasOwnProperty.call(i,e)?p.some(i[e]):p.none())}),r}},X=j("width","height"),Z=j("rows","columns"),$=j("row","column"),ee=j("x","y"),te=j("element","rowspan","colspan"),ae=j("element","rowspan","colspan","isNew"),ie={dimensions:X,grid:Z,address:$,coords:ee,extended:j("element","rowspan","colspan","row","column"),detail:te,detailnew:ae,rowdata:j("element","cells","section"),elementnew:j("element","isNew"),rowdatanew:j("element","cells","section","isNew"),rowcells:j("cells","section"),rowdetails:j("details","section"),bounds:j("startRow","startCol","finishRow","finishCol")},ne=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:n(e)}},le={fromHtml:function(e,t){var a=(t||document).createElement("div");if(a.innerHTML=e,!a.hasChildNodes()||a.childNodes.length>1)throw console.error("HTML does not have a single root node",e),"HTML must have a single root node";return ne(a.childNodes[0])},fromTag:function(e,t){var a=(t||document).createElement(e);return ne(a)},fromText:function(e,t){var a=(t||document).createTextNode(e);return ne(a)},fromDom:ne,fromPoint:function(e,t,a){var i=e.dom();return p.from(i.elementFromPoint(t,a)).map(ne)}},se={ATTRIBUTE:Node.ATTRIBUTE_NODE,CDATA_SECTION:Node.CDATA_SECTION_NODE,COMMENT:Node.COMMENT_NODE,DOCUMENT:Node.DOCUMENT_NODE,DOCUMENT_TYPE:Node.DOCUMENT_TYPE_NODE,DOCUMENT_FRAGMENT:Node.DOCUMENT_FRAGMENT_NODE,ELEMENT:Node.ELEMENT_NODE,TEXT:Node.TEXT_NODE,PROCESSING_INSTRUCTION:Node.PROCESSING_INSTRUCTION_NODE,ENTITY_REFERENCE:Node.ENTITY_REFERENCE_NODE,ENTITY:Node.ENTITY_NODE,NOTATION:Node.NOTATION_NODE},re=se.ELEMENT,oe=se.DOCUMENT,ue=function(e){return e.nodeType!==re&&e.nodeType!==oe||0===e.childElementCount},ce={all:function(e,t){var a=void 0===t?document:t.dom();return ue(a)?[]:E(a.querySelectorAll(e),le.fromDom)},is:function(e,t){var a=e.dom();if(a.nodeType!==re)return!1;if(void 0!==a.matches)return a.matches(t);if(void 0!==a.msMatchesSelector)return a.msMatchesSelector(t);if(void 0!==a.webkitMatchesSelector)return a.webkitMatchesSelector(t);if(void 0!==a.mozMatchesSelector)return a.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},one:function(e,t){var a=void 0===t?document:t.dom();return ue(a)?p.none():p.from(a.querySelector(e)).map(le.fromDom)}},de=function(e,t){var a=[],i=function(e){return a.push(e),t(e)},n=t(e);do{n=n.bind(i)}while(n.isSome());return a},me="undefined"!=typeof window?window:Function("return this;")(),he=function(e,t){return function(e,t){for(var a=void 0!==t&&null!==t?t:me,i=0;i<e.length&&void 0!==a&&null!==a;++i)a=a[e[i]];return a}(e.split("."),t)},fe=function(e,t){var a=function(e,t){return he(e,t)}(e,t);if(void 0===a||null===a)throw e+" not available on this browser";return a},ve=function(){return fe("Node")},pe=function(e,t,a){return 0!=(e.compareDocumentPosition(t)&a)},ge=function(e,t){return pe(e,t,ve().DOCUMENT_POSITION_CONTAINED_BY)},be=function(e){var t,a=!1;return function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return a||(a=!0,t=e.apply(null,i)),t}},_e=function(){return ye(0,0)},ye=function(e,t){return{major:e,minor:t}},we={nu:ye,detect:function(e,t){var a=String(t).toLowerCase();return 0===e.length?_e():function(e,t){var a=function(e,t){for(var a=0;a<e.length;a++){var i=e[a];if(i.test(t))return i}}(e,t);if(!a)return{major:0,minor:0};var i=function(e){return Number(t.replace(a,"$"+e))};return ye(i(1),i(2))}(e,a)},unknown:_e},xe=function(e,t){return function(){return t===e}},Ce=function(e){var t=e.current;return{current:t,version:e.version,isEdge:xe("Edge",t),isChrome:xe("Chrome",t),isIE:xe("IE",t),isOpera:xe("Opera",t),isFirefox:xe("Firefox",t),isSafari:xe("Safari",t)}},Ae={unknown:function(){return Ce({current:void 0,version:we.unknown()})},nu:Ce,edge:n("Edge"),chrome:n("Chrome"),ie:n("IE"),opera:n("Opera"),firefox:n("Firefox"),safari:n("Safari")},ke=function(e,t){return function(){return t===e}},Ee=function(e){var t=e.current;return{current:t,version:e.version,isWindows:ke("Windows",t),isiOS:ke("iOS",t),isAndroid:ke("Android",t),isOSX:ke("OSX",t),isLinux:ke("Linux",t),isSolaris:ke("Solaris",t),isFreeBSD:ke("FreeBSD",t)}},De={unknown:function(){return Ee({current:void 0,version:we.unknown()})},nu:Ee,windows:n("Windows"),ios:n("iOS"),android:n("Android"),linux:n("Linux"),osx:n("OSX"),solaris:n("Solaris"),freebsd:n("FreeBSD")},Se=function(e,t){var a=String(t).toLowerCase();return B(e,function(e){return e.search(a)})},Ie=function(e,t){return Se(e,t).map(function(e){var a=we.detect(e.versionRegexes,t);return{current:e.name,version:a}})},Te=function(e,t){return Se(e,t).map(function(e){var a=we.detect(e.versionRegexes,t);return{current:e.name,version:a}})},Be=function(e,t){return-1!==e.indexOf(t)},Me=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Pe=function(e){return function(t){return Be(t,e)}},Le=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Be(e,"edge/")&&Be(e,"chrome")&&Be(e,"safari")&&Be(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Me],search:function(e){return Be(e,"chrome")&&!Be(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Be(e,"msie")||Be(e,"trident")}},{name:"Opera",versionRegexes:[Me,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Pe("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Pe("firefox")},{name:"Safari",versionRegexes:[Me,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Be(e,"safari")||Be(e,"mobile/"))&&Be(e,"applewebkit")}}],Re=[{name:"Windows",search:Pe("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Be(e,"iphone")||Be(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Pe("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Pe("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Pe("linux"),versionRegexes:[]},{name:"Solaris",search:Pe("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Pe("freebsd"),versionRegexes:[]}],Ne={browsers:n(Le),oses:n(Re)},Oe=function(e){var t=Ne.browsers(),a=Ne.oses(),i=Ie(t,e).fold(Ae.unknown,Ae.nu),l=Te(a,e).fold(De.unknown,De.nu);return{browser:i,os:l,deviceType:function(e,t,a){var i=e.isiOS()&&!0===/ipad/i.test(a),l=e.isiOS()&&!i,s=e.isAndroid()&&3===e.version.major,r=e.isAndroid()&&4===e.version.major,o=i||s||r&&!0===/mobile/i.test(a),u=e.isiOS()||e.isAndroid(),c=u&&!o,d=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(a);return{isiPad:n(i),isiPhone:n(l),isTablet:n(o),isPhone:n(c),isTouch:n(u),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:n(d)}}(l,i,e)}},qe={detect:be(function(){var e=navigator.userAgent;return Oe(e)})},ze=function(e,t){return e.dom()===t.dom()},Fe=qe.detect().browser.isIE()?function(e,t){return ge(e.dom(),t.dom())}:function(e,t){var a=e.dom(),i=t.dom();return a!==i&&a.contains(i)},Ue={eq:ze,isEqualNode:function(e,t){return e.dom().isEqualNode(t.dom())},member:function(e,t){return k(t,s(ze,e))},contains:Fe,is:ce.is},We=function(e){var t=e.dom();return p.from(t.parentNode).map(le.fromDom)},Ve=function(e){var t=e.dom();return p.from(t.previousSibling).map(le.fromDom)},je=function(e){var t=e.dom();return p.from(t.nextSibling).map(le.fromDom)},He=function(e){var t=e.dom();return E(t.childNodes,le.fromDom)},Ke=function(e,t){var a=e.dom().childNodes;return p.from(a[t]).map(le.fromDom)},Ye=j("element","offset"),Qe={owner:function(e){return le.fromDom(e.dom().ownerDocument)},defaultView:function(e){var t=e.dom().ownerDocument.defaultView;return le.fromDom(t)},documentElement:function(e){return le.fromDom(e.dom().ownerDocument.documentElement)},parent:We,findIndex:function(e){return We(e).bind(function(t){var a=He(t);return M(a,function(t){return Ue.eq(e,t)})})},parents:function(e,t){for(var a=w(t)?t:n(!1),i=e.dom(),l=[];null!==i.parentNode&&void 0!==i.parentNode;){var s=i.parentNode,r=le.fromDom(s);if(l.push(r),!0===a(r))break;i=s}return l},siblings:function(e){return We(e).map(He).map(function(t){return S(t,function(t){return!Ue.eq(e,t)})}).getOr([])},prevSibling:Ve,offsetParent:function(e){var t=e.dom();return p.from(t.offsetParent).map(le.fromDom)},prevSiblings:function(e){return z(de(e,Ve))},nextSibling:je,nextSiblings:function(e){return de(e,je)},children:He,child:Ke,firstChild:function(e){return Ke(e,0)},lastChild:function(e){return Ke(e,e.dom().childNodes.length-1)},childNodesCount:function(e){return e.dom().childNodes.length},hasChildNodes:function(e){return e.dom().hasChildNodes()},leaf:function(e,t){var a=He(e);return a.length>0&&t<a.length?Ye(a[t],0):Ye(e,t)}},Ge=function(e,t,a){return N(Qe.children(e),function(e){return ce.is(e,t)?a(e)?[e]:[]:Ge(e,t,a)})},Je={firstLayer:function(e,t){return Ge(e,t,n(!0))},filterFirstLayer:Ge},Xe=function(e){return e.dom().nodeName.toLowerCase()},Ze=function(e){return e.dom().nodeType},$e=function(e){return function(t){return Ze(t)===e}},et=$e(se.ELEMENT),tt=$e(se.TEXT),at=$e(se.DOCUMENT),it={name:Xe,type:Ze,value:function(e){return e.dom().nodeValue},isElement:et,isText:tt,isDocument:at,isComment:function(e){return Ze(e)===se.COMMENT||"#comment"===Xe(e)}},nt=function(e,t,a){if(!(b(a)||y(a)||x(a)))throw console.error("Invalid call to Attr.set. Key ",t,":: Value ",a,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,a+"")},lt=function(e,t,a){nt(e.dom(),t,a)},st=function(e,t){var a=e.dom().getAttribute(t);return null===a?void 0:a},rt=function(e,t){var a=e.dom();return!(!a||!a.hasAttribute)&&a.hasAttribute(t)},ot={clone:function(e){return T(e.dom().attributes,function(e,t){return e[t.name]=t.value,e},{})},set:lt,setAll:function(e,t){var a=e.dom();U(t,function(e,t){nt(a,t,e)})},get:st,has:rt,remove:function(e,t){e.dom().removeAttribute(t)},hasNone:function(e){var t=e.dom().attributes;return void 0===t||null===t||0===t.length},transfer:function(e,t,a){it.isElement(e)&&it.isElement(t)&&D(a,function(a){!function(e,t,a){rt(e,a)&&!rt(t,a)&&lt(t,a,st(e,a))}(e,t,a)})}},ut=be(function(){return ct(le.fromDom(document))}),ct=function(e){var t=e.dom().body;if(null===t||void 0===t)throw"Body is not available yet";return le.fromDom(t)},dt={body:ut,getBody:ct,inBody:function(e){var t=it.isText(e)?e.dom().parentNode:e.dom();return void 0!==t&&null!==t&&t.ownerDocument.body.contains(t)}},mt=function(e,t){var a=[];return D(Qe.children(e),function(e){t(e)&&(a=a.concat([e])),a=a.concat(mt(e,t))}),a},ht={all:function(e){return mt(dt.body(),e)},ancestors:function(e,t,a){return S(Qe.parents(e,a),t)},siblings:function(e,t){return S(Qe.siblings(e),t)},children:function(e,t){return S(Qe.children(e),t)},descendants:mt},ft={all:function(e){return ce.all(e)},ancestors:function(e,t,a){return ht.ancestors(e,function(e){return ce.is(e,t)},a)},siblings:function(e,t){return ht.siblings(e,function(e){return ce.is(e,t)})},children:function(e,t){return ht.children(e,function(e){return ce.is(e,t)})},descendants:function(e,t){return ce.all(t,e)}};function vt(e,t,a,i,n){return e(a,i)?p.some(a):w(n)&&n(a)?p.none():t(a,i,n)}var pt=function(e,t,a){for(var i=e.dom(),l=w(a)?a:n(!1);i.parentNode;){i=i.parentNode;var s=le.fromDom(i);if(t(s))return p.some(s);if(l(s))break}return p.none()},gt=function(e,t){return B(e.dom().childNodes,i(t,le.fromDom)).map(le.fromDom)},bt=function(e,t){var a=function(e){for(var i=0;i<e.childNodes.length;i++){if(t(le.fromDom(e.childNodes[i])))return p.some(le.fromDom(e.childNodes[i]));var n=a(e.childNodes[i]);if(n.isSome())return n}return p.none()};return a(e.dom())},_t={first:function(e){return bt(dt.body(),e)},ancestor:pt,closest:function(e,t,a){return vt(function(e){return t(e)},pt,e,t,a)},sibling:function(e,t){var a=e.dom();return a.parentNode?gt(le.fromDom(a.parentNode),function(a){return!Ue.eq(e,a)&&t(a)}):p.none()},child:gt,descendant:bt},yt=function(e,t,a){return _t.ancestor(e,function(e){return ce.is(e,t)},a)},wt={first:function(e){return ce.one(e)},ancestor:yt,sibling:function(e,t){return _t.sibling(e,function(e){return ce.is(e,t)})},child:function(e,t){return _t.child(e,function(e){return ce.is(e,t)})},descendant:function(e,t){return ce.one(t,e)},closest:function(e,t,a){return vt(ce.is,yt,e,t,a)}},xt=function(e,t,a){var i=void 0!==a?a:n(!1);return i(t)?p.none():A(e,it.name(t))?p.some(t):wt.ancestor(t,e.join(","),function(e){return ce.is(e,"table")||i(e)})},Ct=function(e,t){return Qe.parent(t).map(function(t){return ft.children(t,e)})},At=function(e,t){return parseInt(ot.get(e,t),10)},kt={cell:function(e,t){return xt(["td","th"],e,t)},firstCell:function(e){return wt.descendant(e,"th,td")},cells:function(e){return Je.firstLayer(e,"th,td")},neighbourCells:s(Ct,"th,td"),table:function(e,t){return wt.closest(e,"table",t)},row:function(e,t){return xt(["tr"],e,t)},rows:function(e){return Je.firstLayer(e,"tr")},notCell:function(e,t){return xt(["caption","tr","tbody","tfoot","thead"],e,t)},neighbourRows:s(Ct,"tr"),attr:At,grid:function(e,t,a){var i=At(e,t),n=At(e,a);return ie.grid(i,n)}},Et=function(e){var t=kt.rows(e);return E(t,function(e){var t=e,a=Qe.parent(t).map(function(e){var t=it.name(e);return"tfoot"===t||"thead"===t||"tbody"===t?t:"tbody"}).getOr("tbody"),i=E(kt.cells(e),function(e){var t=ot.has(e,"rowspan")?parseInt(ot.get(e,"rowspan"),10):1,a=ot.has(e,"colspan")?parseInt(ot.get(e,"colspan"),10):1;return ie.detail(e,t,a)});return ie.rowdata(t,i,a)})},Dt=function(e,t){return E(e,function(e){var a=E(kt.cells(e),function(e){var t=ot.has(e,"rowspan")?parseInt(ot.get(e,"rowspan"),10):1,a=ot.has(e,"colspan")?parseInt(ot.get(e,"colspan"),10):1;return ie.detail(e,t,a)});return ie.rowdata(e,a,t.section())})},St=function(e,t){return e+","+t},It=function(e,t){var a=N(e.all(),function(e){return e.cells()});return S(a,t)},Tt={generate:function(e){var t={},a=[],i=e.length,l=0;D(e,function(e,i){var n=[];D(e.cells(),function(e,a){for(var s=0;void 0!==t[St(i,s)];)s++;for(var r=ie.extended(e.element(),e.rowspan(),e.colspan(),i,s),o=0;o<e.colspan();o++)for(var u=0;u<e.rowspan();u++){var c=s+o,d=St(i+u,c);t[d]=r,l=Math.max(l,c+1)}n.push(r)}),a.push(ie.rowdata(e.element(),n,e.section()))});var s=ie.grid(i,l);return{grid:n(s),access:n(t),all:n(a)}},getAt:function(e,t,a){var i=e.access()[St(t,a)];return void 0!==i?p.some(i):p.none()},findItem:function(e,t,a){var i=It(e,function(e){return a(t,e.element())});return i.length>0?p.some(i[0]):p.none()},filterItems:It,justCells:function(e){var t=E(e.all(),function(e){return e.cells()});return R(t)}},Bt={isSupported:function(e){return void 0!==e.style}},Mt=function(e,t,a){if(!b(a))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",a,":: Element ",e),new Error("CSS value must be a string: "+a);Bt.isSupported(e)&&e.style.setProperty(t,a)},Pt=function(e,t){Bt.isSupported(e)&&e.style.removeProperty(t)},Lt=function(e,t,a){var i=e.dom();Mt(i,t,a)},Rt=function(e,t){return Bt.isSupported(e)?e.style.getPropertyValue(t):""},Nt=function(e,t){var a=e.dom(),i=Rt(a,t);return p.from(i).filter(function(e){return e.length>0})},Ot={copy:function(e,t){var a=e.dom(),i=t.dom();Bt.isSupported(a)&&Bt.isSupported(i)&&(i.style.cssText=a.style.cssText)},set:Lt,preserve:function(e,t){var a=ot.get(e,"style"),i=t(e);return(void 0===a?ot.remove:ot.set)(e,"style",a),i},setAll:function(e,t){var a=e.dom();U(t,function(e,t){Mt(a,t,e)})},setOptions:function(e,t){var a=e.dom();U(t,function(e,t){e.fold(function(){Pt(a,t)},function(e){Mt(a,t,e)})})},remove:function(e,t){var a=e.dom();Pt(a,t),ot.has(e,"style")&&""===ot.get(e,"style").replace(/^\s+|\s+$/g,"")&&ot.remove(e,"style")},get:function(e,t){var a=e.dom(),i=window.getComputedStyle(a).getPropertyValue(t),n=""!==i||dt.inBody(e)?i:Rt(a,t);return null===n?void 0:n},getRaw:Nt,getAllRaw:function(e){var t={},a=e.dom();if(Bt.isSupported(a))for(var i=0;i<a.style.length;i++){var n=a.style.item(i);t[n]=a.style[n]}return t},isValidValue:function(e,t,a){var i=le.fromTag(e);return Lt(i,t,a),Nt(i,t).isSome()},reflow:function(e){return e.dom().offsetWidth},transfer:function(e,t,a){it.isElement(e)&&it.isElement(t)&&D(a,function(a){!function(e,t,a){Nt(e,a).each(function(e){Nt(t,a).isNone()&&Lt(t,a,e)})}(e,t,a)})}},qt=function(e,t){Qe.parent(e).each(function(a){a.dom().insertBefore(t.dom(),e.dom())})},zt=function(e,t){e.dom().appendChild(t.dom())},Ft={before:qt,after:function(e,t){Qe.nextSibling(e).fold(function(){Qe.parent(e).each(function(e){zt(e,t)})},function(e){qt(e,t)})},prepend:function(e,t){Qe.firstChild(e).fold(function(){zt(e,t)},function(a){e.dom().insertBefore(t.dom(),a.dom())})},append:zt,appendAt:function(e,t,a){Qe.child(e,a).fold(function(){zt(e,t)},function(e){qt(e,t)})},wrap:function(e,t){qt(e,t),zt(t,e)}},Ut={before:function(e,t){D(t,function(t){Ft.before(e,t)})},after:function(e,t){D(t,function(a,i){var n=0===i?e:t[i-1];Ft.after(n,a)})},prepend:function(e,t){D(t.slice().reverse(),function(t){Ft.prepend(e,t)})},append:function(e,t){D(t,function(t){Ft.append(e,t)})}},Wt=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},Vt={empty:function(e){e.dom().textContent="",D(Qe.children(e),function(e){Wt(e)})},remove:Wt,unwrap:function(e){var t=Qe.children(e);t.length>0&&Ut.before(e,t),Wt(e)}},jt=j("minRow","minCol","maxRow","maxCol"),Ht=function(e,t){var a=e.grid().columns(),i=e.grid().rows(),n=a,l=0,s=0;return U(e.access(),function(e){if(t(e)){var a=e.row(),r=a+e.rowspan()-1,o=e.column(),u=o+e.colspan()-1;a<i?i=a:r>l&&(l=r),o<n?n=o:u>s&&(s=u)}}),jt(i,n,l,s)},Kt=function(e,t,a){var i=e[a].element(),n=le.fromTag("td");Ft.append(n,le.fromTag("br")),(t?Ft.append:Ft.prepend)(i,n)},Yt=function(e,t){var a=function(e){return ce.is(e.element(),t)},i=Et(e),n=Tt.generate(i),l=Ht(n,a),s="th:not("+t+"),td:not("+t+")",r=Je.filterFirstLayer(e,"th,td",function(e){return ce.is(e,s)});return D(r,Vt.remove),function(e,t,a,i){for(var n=t.grid().columns(),l=t.grid().rows(),s=0;s<l;s++)for(var r=!1,o=0;o<n;o++)s<a.minRow()||s>a.maxRow()||o<a.minCol()||o>a.maxCol()||(Tt.getAt(t,s,o).filter(i).isNone()?Kt(e,r,s):r=!0)}(i,n,l,a),function(e,t){var a=S(Je.firstLayer(e,"tr"),function(e){return 0===e.dom().childElementCount});D(a,Vt.remove),t.minCol()!==t.maxCol()&&t.minRow()!==t.maxRow()||D(Je.firstLayer(e,"th,td"),function(e){ot.remove(e,"rowspan"),ot.remove(e,"colspan")}),ot.remove(e,"width"),ot.remove(e,"height"),Ot.remove(e,"width"),Ot.remove(e,"height")}(e,l),e},Qt=function(e,t){return le.fromDom(e.dom().cloneNode(t))},Gt=function(e){return Qt(e,!0)},Jt=function(e,t){var a=le.fromTag(t),i=ot.clone(e);return ot.setAll(a,i),a},Xt=function(e){return Qt(e,!1)},Zt=Gt,$t=function(e,t){var a=Jt(e,t),i=Qe.children(Gt(e));return Ut.append(a,i),a},ea=function(e,t){var a=function(t){return e(t)?p.from(t.dom().nodeValue):p.none()},i=qe.detect().browser,n=i.isIE()&&10===i.version.major?function(e){try{return a(e)}catch(e){return p.none()}}:a;return{get:function(a){if(!e(a))throw new Error("Can only get "+t+" value of a "+t+" node");return n(a).getOr("")},getOption:n,set:function(a,i){if(!e(a))throw new Error("Can only set raw "+t+" value of a "+t+" node");a.dom().nodeValue=i}}}(it.isText,"text"),ta={get:function(e){return ea.get(e)},getOption:function(e){return ea.getOption(e)},set:function(e,t){ea.set(e,t)}},aa=function(e){return"img"===it.name(e)?1:ta.getOption(e).fold(function(){return Qe.children(e).length},function(e){return e.length})},ia=["img","br"],na=aa,la=function(e){var t;return t=e,ta.getOption(t).filter(function(e){return 0!==e.trim().length||e.indexOf(" ")>-1}).isSome()||A(ia,it.name(e))},sa=function(e,t){var a=function(e){for(var i=Qe.children(e),n=i.length-1;n>=0;n--){var l=i[n];if(t(l))return p.some(l);var s=a(l);if(s.isSome())return s}return p.none()};return a(e)},ra={first:function(e){return _t.descendant(e,la)},last:function(e){return sa(e,la)}},oa=function(){var e=le.fromTag("td");return Ft.append(e,le.fromTag("br")),e},ua=function(e,t,a){var i=$t(e,t);return U(a,function(e,t){null===e?ot.remove(i,t):ot.set(i,t,e)}),i},ca=function(e){return e},da=function(e){return function(){return le.fromTag("tr",e.dom())}},ma=function(e,t,a){return{row:da(t),cell:function(t){var i=Qe.owner(t.element()),n=le.fromTag(it.name(t.element()),i.dom()),l=a.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),s=l.length>0?function(e,t,a){return ra.first(e).map(function(i){var n=a.join(","),l=ft.ancestors(i,n,function(t){return Ue.eq(t,e)});return I(l,function(e,t){var a=Xt(t);return ot.remove(a,"contenteditable"),Ft.append(e,a),a},t)}).getOr(t)}(t.element(),n,l):n;return Ft.append(s,le.fromTag("br")),Ot.copy(t.element(),n),Ot.remove(n,"height"),1!==t.colspan()&&Ot.remove(t.element(),"width"),e(t.element(),n),n},replace:ua,gap:oa}},ha=function(e){return{row:da(e),cell:oa,replace:ca,gap:oa}},fa=function(e,t){var a=(t||document).createElement("div");return a.innerHTML=e,Qe.children(le.fromDom(a))},va=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function pa(){return{up:n({selector:wt.ancestor,closest:wt.closest,predicate:_t.ancestor,all:Qe.parents}),down:n({selector:ft.descendants,predicate:ht.descendants}),styles:n({get:Ot.get,getRaw:Ot.getRaw,set:Ot.set,remove:Ot.remove}),attrs:n({get:ot.get,set:ot.set,remove:ot.remove,copyTo:function(e,t){var a=ot.clone(e);ot.setAll(t,a)}}),insert:n({before:Ft.before,after:Ft.after,afterAll:Ut.after,append:Ft.append,appendAll:Ut.append,prepend:Ft.prepend,wrap:Ft.wrap}),remove:n({unwrap:Vt.unwrap,remove:Vt.remove}),create:n({nu:le.fromTag,clone:function(e){return le.fromDom(e.dom().cloneNode(!1))},text:le.fromText}),query:n({comparePosition:function(e,t){return e.dom().compareDocumentPosition(t.dom())},prevSibling:Qe.prevSibling,nextSibling:Qe.nextSibling}),property:n({children:Qe.children,name:it.name,parent:Qe.parent,isText:it.isText,isComment:it.isComment,isElement:it.isElement,getText:ta.get,setText:ta.set,isBoundary:function(e){return!!it.isElement(e)&&("body"===it.name(e)||A(va,it.name(e)))},isEmptyTag:function(e){return!!it.isElement(e)&&A(["br","img","hr","input"],it.name(e))}}),eq:Ue.eq,is:Ue.is}}var ga=j("left","right"),ba=function(e,t,a){var i=e.property().children(t);return M(i,s(e.eq,a)).map(function(e){return{before:n(i.slice(0,e)),after:n(i.slice(e+1))}})},_a=function(e,t,a){return ba(e,t,a).map(function(i){var n=e.create().clone(t);return e.insert().appendAll(n,i.before().concat([a])),e.insert().appendAll(t,i.after()),e.insert().before(t,n),ga(n,t)})},ya=function(e,t,a){return ba(e,t,a).map(function(a){var i=e.create().clone(t);return e.insert().appendAll(i,a.after()),e.insert().after(t,i),ga(t,i)})},wa=function(e,t,a,i){var n=j("first","second","splits"),l=function(t,s,r){var o=n(t,p.none(),r);return a(t)?n(t,s,r):e.property().parent(t).bind(function(n){return i(e,n,t).map(function(e){var t=[{first:e.left,second:e.right}],i=a(n)?n:e.left();return l(i,p.some(e.right()),r.concat(t))}).getOr(o)})};return l(t,p.none(),[])},xa=function(e,t,a,i){var n=t(e,a);return I(i,function(a,i){var n=t(e,i);return Ca(e,a,n)},n)},Ca=function(e,t,a){return t.bind(function(t){return a.filter(s(e.eq,t))})},Aa=function(e,t,a){return a.length>0?function(e,t,a,i){return i(e,t,a[0],a.slice(1))}(e,t,a,xa):p.none()},ka=function(e,t){return s(e.eq,t)},Ea=function(e,t,a,i){var l=void 0!==i?i:n(!1),s=[t].concat(e.up().all(t)),r=[a].concat(e.up().all(a)),o=function(e){return M(e,l).fold(function(){return e},function(t){return e.slice(0,t+1)})},u=o(s),c=o(r),d=B(u,function(t){return k(c,ka(e,t))});return{firstpath:n(u),secondpath:n(c),shared:n(d)}},Da=function(e,t,a){var i=Ea(e,t,a);return i.shared().bind(function(t){return function(e,t,a,i){var n=e.property().children(t);if(e.eq(t,a[0]))return p.some([a[0]]);if(e.eq(t,i[0]))return p.some([i[0]]);var l=function(a){var i=z(a),l=M(i,ka(e,t)).getOr(-1),s=l<i.length-1?i[l+1]:i[l];return M(n,ka(e,s))},s=l(a),r=l(i);return s.bind(function(e){return r.map(function(t){var a=Math.min(e,t),i=Math.max(e,t);return n.slice(a,i+1)})})}(e,t,i.firstpath(),i.secondpath())})},Sa=Ea,Ia=function(e,t,a){return Aa(e,t,a)},Ta=function(e,t,a){return Da(e,t,a)},Ba=function(e,t,a,i){return Sa(e,t,a,i)},Ma=function(e,t,a){return _a(e,t,a)},Pa=function(e,t,a){return ya(e,t,a)},La=function(e,t,a,i){return wa(e,t,a,i)},Ra=pa(),Na={sharedOne:function(e,t){return Ia(Ra,function(t,a){return e(a)},t)},subset:function(e,t){return Ta(Ra,e,t)},ancestors:function(e,t,a){return Ba(Ra,e,t,a)},breakToLeft:function(e,t){return Ma(Ra,e,t)},breakToRight:function(e,t){return Pa(Ra,e,t)},breakPath:function(e,t,a){return La(Ra,e,t,function(e,t,i){return a(t,i)})}},Oa=function(e,t){return t.column()>=e.startCol()&&t.column()+t.colspan()-1<=e.finishCol()&&t.row()>=e.startRow()&&t.row()+t.rowspan()-1<=e.finishRow()},qa=function(e,t){var a=t.column(),i=t.column()+t.colspan()-1,n=t.row(),l=t.row()+t.rowspan()-1;return a<=e.finishCol()&&i>=e.startCol()&&n<=e.finishRow()&&l>=e.startRow()},za=function(e,t){for(var a=!0,i=s(Oa,t),n=t.startRow();n<=t.finishRow();n++)for(var l=t.startCol();l<=t.finishCol();l++)a=a&&Tt.getAt(e,n,l).exists(i);return a?p.some(t):p.none()},Fa=function(e,t,a){var i=Tt.findItem(e,t,Ue.eq),n=Tt.findItem(e,a,Ue.eq);return i.bind(function(e){return n.map(function(t){return a=e,i=t,ie.bounds(Math.min(a.row(),i.row()),Math.min(a.column(),i.column()),Math.max(a.row()+a.rowspan()-1,i.row()+i.rowspan()-1),Math.max(a.column()+a.colspan()-1,i.column()+i.colspan()-1));var a,i})})},Ua=Fa,Wa=function(e,t,a){return Fa(e,t,a).bind(function(t){return za(e,t)})},Va=function(e,t,a,i){return Tt.findItem(e,t,Ue.eq).bind(function(t){var n=a>0?t.row()+t.rowspan()-1:t.row(),l=i>0?t.column()+t.colspan()-1:t.column();return Tt.getAt(e,n+a,l+i).map(function(e){return e.element()})})},ja=function(e,t,a){return Ua(e,t,a).map(function(t){var a=Tt.filterItems(e,s(qa,t));return E(a,function(e){return e.element()})})},Ha=function(e,t){return Tt.findItem(e,t,function(e,t){return Ue.contains(t,e)}).bind(function(e){return e.element()})},Ka=function(e){var t=Et(e);return Tt.generate(t)},Ya=function(e,t,a){return kt.table(e).bind(function(i){var n=Ka(i);return Va(n,e,t,a)})},Qa=function(e,t,a){var i=Ka(e);return ja(i,t,a)},Ga=function(e,t,a,i,n){var l=Ka(e),s=Ue.eq(e,a)?t:Ha(l,t),r=Ue.eq(e,n)?i:Ha(l,i);return ja(l,s,r)},Ja=function(e,t,a){var i=Ka(e);return Wa(i,t,a)},Xa=function(e,t){return wt.ancestor(e,"table")},Za=J(["boxes","start","finish"],[]),$a=function(e,t,a){var i=function(e){return function(t){return a(t)||Ue.eq(t,e)}};return Ue.eq(e,t)?p.some(Za({boxes:p.some([e]),start:e,finish:t})):Xa(e).bind(function(n){return Xa(t).bind(function(l){if(Ue.eq(n,l))return p.some(Za({boxes:Qa(n,e,t),start:e,finish:t}));if(Ue.contains(n,l)){var s=(r=ft.ancestors(t,"td,th",i(n))).length>0?r[r.length-1]:t;return p.some(Za({boxes:Ga(n,e,n,t,l),start:e,finish:s}))}if(Ue.contains(l,n)){var r,o=(r=ft.ancestors(e,"td,th",i(l))).length>0?r[r.length-1]:e;return p.some(Za({boxes:Ga(l,e,n,t,l),start:e,finish:o}))}return Na.ancestors(e,t).shared().bind(function(s){return wt.closest(s,"table",a).bind(function(a){var s=ft.ancestors(t,"td,th",i(a)),r=s.length>0?s[s.length-1]:t,o=ft.ancestors(e,"td,th",i(a)),u=o.length>0?o[o.length-1]:e;return p.some(Za({boxes:Ga(a,e,n,t,l),start:u,finish:r}))})})})})},ei={identify:$a,retrieve:function(e,t){var a=ft.descendants(e,t);return a.length>0?p.some(a):p.none()},shiftSelection:function(e,t,a,i,l){return function(e,t){return B(e,function(e){return ce.is(e,t)})}(e,l).bind(function(e){return Ya(e,t,a).bind(function(e){return function(e,t){return wt.ancestor(e,"table").bind(function(a){return wt.descendant(a,t).bind(function(t){return $a(t,e).bind(function(e){return e.boxes().map(function(t){return{boxes:n(t),start:n(e.start()),finish:n(e.finish())}})})})})}(e,i)})})},getEdges:function(e,t,a){return wt.descendant(e,t).bind(function(t){return wt.descendant(e,a).bind(function(e){return Na.sharedOne(Xa,[t,e]).map(function(a){return{first:n(t),last:n(e),table:n(a)}})})})}},ti=function(e,t){return ei.retrieve(e,t)},ai=function(e,t,a){return ei.getEdges(e,t,a).bind(function(t){var a=function(t){return Ue.eq(e,t)},i=wt.ancestor(t.first(),"thead,tfoot,tbody,table",a),n=wt.ancestor(t.last(),"thead,tfoot,tbody,table",a);return i.bind(function(e){return n.bind(function(a){return Ue.eq(e,a)?Ja(t.table(),t.first(),t.last()):p.none()})})})},ii="data-mce-selected",ni={selected:n(ii),selectedSelector:n("td[data-mce-selected],th[data-mce-selected]"),attributeSelector:n("[data-mce-selected]"),firstSelected:n("data-mce-first-selected"),firstSelectedSelector:n("td[data-mce-first-selected],th[data-mce-first-selected]"),lastSelected:n("data-mce-last-selected"),lastSelectedSelector:n("td[data-mce-last-selected],th[data-mce-last-selected]")},li=function(e){if(!_(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],a={};return D(e,function(i,n){var l=F(i);if(1!==l.length)throw new Error("one and only one name per case");var s=l[0],r=i[s];if(void 0!==a[s])throw new Error("duplicate key detected:"+s);if("cata"===s)throw new Error("cannot have a case named cata (sorry)");if(!_(r))throw new Error("case arguments must be an array");t.push(s),a[s]=function(){var a=arguments.length;if(a!==r.length)throw new Error("Wrong number of arguments to case "+s+". Expected "+r.length+" ("+r+"), got "+a);for(var i=new Array(a),l=0;l<i.length;l++)i[l]=arguments[l];return{fold:function(){if(arguments.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+arguments.length);return arguments[n].apply(null,i)},match:function(e){var a=F(e);if(t.length!==a.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+a.join(","));if(!O(t,function(e){return A(a,e)}))throw new Error("Not all branches were specified when using match. Specified: "+a.join(", ")+"\nRequired: "+t.join(", "));return e[s].apply(null,i)},log:function(e){}}}}),a},si=li([{none:[]},{multiple:["elements"]},{single:["selection"]}]),ri={cata:function(e,t,a,i){return e.fold(t,a,i)},none:si.none,multiple:si.multiple,single:si.single},oi=function(e,t){return ri.cata(t.get(),n([]),l,n([e]))},ui=function(e,t){return ri.cata(t.get(),p.none,function(t,a){return 0===t.length?p.none():ai(e,ni.firstSelectedSelector(),ni.lastSelectedSelector()).bind(function(e){return t.length>1?p.some({bounds:n(e),cells:n(t)}):p.none()})},p.none)},ci=function(e,t){var a=oi(e,t);return a.length>0&&O(a,function(e){return ot.has(e,"rowspan")&&parseInt(ot.get(e,"rowspan"),10)>1||ot.has(e,"colspan")&&parseInt(ot.get(e,"colspan"),10)>1})?p.some(a):p.none()},di=oi,mi=function(e){return{element:n(e),mergable:p.none,unmergable:p.none,selection:n([e])}},hi=j("element","clipboard","generators"),fi={noMenu:mi,forMenu:function(e,t,a){return{element:n(a),mergable:n(ui(t,e)),unmergable:n(ci(a,e)),selection:n(di(a,e))}},notCell:function(e){return mi(e)},paste:hi,pasteRows:function(e,t,a,i,l){return{element:n(a),mergable:p.none,unmergable:p.none,selection:n(di(a,e)),clipboard:n(i),generators:n(l)}}},vi={registerEvents:function(e,t,i,n){e.on("BeforeGetContent",function(i){!0===i.selection&&ri.cata(t.get(),a,function(t){i.preventDefault(),function(e){return kt.table(e[0]).map(Zt).map(function(e){return[Yt(e,ni.attributeSelector())]})}(t).each(function(t){i.content=E(t,function(t){return function(e,t){return e.selection.serializer.serialize(t.dom(),{})}(e,t)}).join("")})},a)}),e.on("BeforeSetContent",function(t){!0===t.selection&&!0===t.paste&&p.from(e.dom.getParent(e.selection.getStart(),"th,td")).each(function(a){var l=le.fromDom(a);kt.table(l).bind(function(a){var s=S(fa(t.content),function(e){return"meta"!==it.name(e)});if(1===s.length&&"table"===it.name(s[0])){t.preventDefault();var r=le.fromDom(e.getDoc()),o=ha(r),u=fi.paste(l,s[0],o);i.pasteCells(a,u).each(function(t){e.selection.setRng(t),e.focus(),n.clear(a)})}})})})}};function pi(e,t){var a=function(a){var i=t(a);if(i<=0||null===i){var n=Ot.get(a,e);return parseFloat(n)||0}return i},i=function(e,t){return T(t,function(t,a){var i=Ot.get(e,a),n=void 0===i?0:parseInt(i,10);return isNaN(n)?t:t+n},0)};return{set:function(t,a){if(!x(a)&&!a.match(/^[0-9]+$/))throw e+".set accepts only positive integer values. Value was "+a;var i=t.dom();Bt.isSupported(i)&&(i.style[e]=a+"px")},get:a,getOuter:a,aggregate:i,max:function(e,t,a){var n=i(e,a);return t>n?t-n:0}}}var gi=pi("height",function(e){var t=e.dom();return dt.inBody(e)?t.getBoundingClientRect().height:t.offsetHeight}),bi=function(e){return gi.get(e)},_i=function(e){return gi.getOuter(e)},yi=pi("width",function(e){return e.dom().offsetWidth}),wi=function(e){return yi.get(e)},xi=function(e){return yi.getOuter(e)},Ci=qe.detect(),Ai=function(e,t,a){return function(e,t){var a=parseFloat(e);return isNaN(a)?t:a}(Ot.get(e,t),a)},ki=function(e){return Ci.browser.isIE()||Ci.browser.isEdge()?function(e){var t=Ai(e,"padding-top",0),a=Ai(e,"padding-bottom",0),i=Ai(e,"border-top-width",0),n=Ai(e,"border-bottom-width",0),l=e.dom().getBoundingClientRect().height;return"border-box"===Ot.get(e,"box-sizing")?l:l-t-a-(i+n)}(e):Ai(e,"height",bi(e))},Ei=/(\d+(\.\d+)?)(\w|%)*/,Di=/(\d+(\.\d+)?)%/,Si=/(\d+(\.\d+)?)px|em/,Ii=function(e,t){Ot.set(e,"height",t+"px")},Ti=function(e,t,a,i){var n,l,s=parseInt(e,10);return function(e,t,a){return""===t||!(e.length<t.length)&&e.substr(a,a+t.length)===t}(n=e,l="%",n.length-l.length)&&"table"!==it.name(t)?function(e,t,a,i){var n=kt.table(e).map(function(e){var i=a(e);return Math.floor(t/100*i)}).getOr(t);return i(e,n),n}(t,s,a,i):s},Bi=function(e){var t=function(e){return Ot.getRaw(e,"height").getOrThunk(function(){return ki(e)+"px"})}(e);return t?Ti(t,e,bi,Ii):bi(e)},Mi=function(e,t){return ot.has(e,t)?parseInt(ot.get(e,t),10):1},Pi=function(e){return Ot.getRaw(e,"width").fold(function(){return p.from(ot.get(e,"width"))},function(e){return p.some(e)})},Li=function(e,t){return e/t.pixelWidth()*100},Ri={percentageBasedSizeRegex:n(Di),pixelBasedSizeRegex:n(Si),setPixelWidth:function(e,t){Ot.set(e,"width",t+"px")},setPercentageWidth:function(e,t){Ot.set(e,"width",t+"%")},setHeight:Ii,getPixelWidth:function(e,t){return Pi(e).fold(function(){return wi(e)},function(a){return function(e,t,a){if(Si.test(t)){var i=Si.exec(t);return parseInt(i[1],10)}if(Di.test(t)){var n=Di.exec(t);return function(e,t){return e/100*t.pixelWidth()}(parseFloat(n[1]),a)}return wi(e)}(e,a,t)})},getPercentageWidth:function(e,t){return Pi(e).fold(function(){var a=wi(e);return Li(a,t)},function(a){return function(e,t,a){if(Di.test(t)){var i=Di.exec(t);return parseFloat(i[1])}var n=wi(e);return Li(n,a)}(e,a,t)})},getGenericWidth:function(e){return Pi(e).bind(function(e){if(Ei.test(e)){var t=Ei.exec(e);return p.some({width:n(t[1]),unit:n(t[3])})}return p.none()})},setGenericWidth:function(e,t,a){Ot.set(e,"width",t+a)},getHeight:function(e){return function(e,t,a){return a(e)/Mi(e,t)}(e,"rowspan",Bi)},getRawWidth:Pi},Ni=function(e,t){Ri.getGenericWidth(e).each(function(a){var i=a.width()/2;Ri.setGenericWidth(e,i,a.unit()),Ri.setGenericWidth(t,i,a.unit())})},Oi=function(e,t){var a=t||le.fromDom(document.documentElement);return _t.ancestor(e,s(Ue.eq,a)).isSome()},qi=function(e){var t=e.dom();return t===t.window&&e instanceof Window?e:it.isDocument(e)?t.defaultView||t.parentWindow:null},zi=function(e,t){return{left:n(e),top:n(t),translate:function(a,i){return zi(e+a,t+i)}}},Fi=zi,Ui=function(e,t){return void 0!==e?e:void 0!==t?t:0},Wi=function(e){var t=e.dom(),a=t.ownerDocument,i=a.body,n=le.fromDom(a.documentElement);return i===t?Fi(i.offsetLeft,i.offsetTop):Oi(e,n)?function(e){var t=e.getBoundingClientRect();return Fi(t.left,t.top)}(t):Fi(0,0)},Vi=function(e){var t=e.dom().ownerDocument,a=t.body,i=qi(le.fromDom(t)),n=t.documentElement,l=Ui(i.pageYOffset,n.scrollTop),s=Ui(i.pageXOffset,n.scrollLeft),r=Ui(n.clientTop,a.clientTop),o=Ui(n.clientLeft,a.clientLeft);return Wi(e).translate(s-o,l-r)},ji=j("row","y"),Hi=j("col","x"),Ki=function(e){return Vi(e).left()+xi(e)},Yi=function(e){return Vi(e).left()},Qi=function(e,t){return Hi(e,Yi(t))},Gi=function(e,t){return Hi(e,Ki(t))},Ji=function(e){return Vi(e).top()},Xi=function(e,t,a){if(0===a.length)return[];var i=E(a.slice(1),function(t,a){return t.map(function(t){return e(a,t)})}),n=a[a.length-1].map(function(e){return t(a.length-1,e)});return i.concat([n])},Zi={delta:l,positions:s(Xi,function(e,t){return ji(e,Ji(t))},function(e,t){return ji(e,Ji(t)+_i(t))}),edge:Ji},$i={delta:l,edge:Yi,positions:s(Xi,Qi,Gi)},en={height:Zi,rtl:{delta:function(e,t){return-e},edge:Ki,positions:s(Xi,Gi,Qi)},ltr:$i},tn={ltr:en.ltr,rtl:en.rtl};function an(e){var t=function(t){return e(t).isRtl()?tn.rtl:tn.ltr};return{delta:function(e,a){return t(a).delta(e,a)},edge:function(e){return t(e).edge(e)},positions:function(e,a){return t(a).positions(e,a)}}}var nn,ln=function(e){var t=Et(e);return Tt.generate(t).grid()},sn=function(e){var t=e,a=function(){return t};return{get:a,set:function(e){t=e},clone:function(){return sn(a())}}},rn=function(e,t,a){if(0===t.length)throw new Error("You must specify at least one required field.");return Q("required",t),G(t),function(i){var n=F(i);O(t,function(e){return A(n,e)})||K(t,n),e(t,n);var l=S(t,function(e){return!a.validate(i[e],e)});return l.length>0&&function(e,t){throw new Error("All values need to be of type: "+t+". Keys ("+H(e).join(", ")+") were not.")}(l,a.label),i}},on=function(e,t){var a=S(t,function(t){return!A(e,t)});a.length>0&&Y(a)},un=function(e){return function(e,t){return rn(e,t,{validate:w,label:"function"})}(on,e)},cn=function(e){var t=ot.has(e,"colspan")?parseInt(ot.get(e,"colspan"),10):1,a=ot.has(e,"rowspan")?parseInt(ot.get(e,"rowspan"),10):1;return{element:n(e),colspan:n(t),rowspan:n(a)}},dn=un(["cell","row","replace","gap"]),mn=function(e,t){dn(e);var a=sn(p.none()),i=void 0!==t?t:cn,n=function(t){return function(t){return e.cell(t)}(i(t))},l=function(e){var t=n(e);return a.get().isNone()&&a.set(p.some(t)),s=p.some({item:e,replacement:t}),t},s=p.none();return{getOrInit:function(e,t){return s.fold(function(){return l(e)},function(a){return t(e,a.item)?a.replacement:l(e)})},cursor:a.get}},hn=function(e,t){return function(a){var i=sn(p.none());dn(a);var n=[],l=function(l){var s=a.replace(l,t,{scope:e});return n.push({item:l,sub:s}),i.get().isNone()&&i.set(p.some(s)),s};return{replaceOrInit:function(e,t){return function(e,t){return B(n,function(a){return t(a.item,e)})}(e,t).fold(function(){return l(e)},function(a){return t(e,a.item)?a.sub:l(e)})},cursor:i.get}}},fn=function(e){dn(e);var t=sn(p.none());return{combine:function(a){return t.get().isNone()&&t.set(p.some(a)),function(){var t=e.cell({element:n(a),colspan:n(1),rowspan:n(1)});return Ot.remove(t,"width"),Ot.remove(a,"width"),t}},cursor:t.get}},vn=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],pn=function(e,t){var a=e.property().name(t);return A(vn,a)},gn=function(e,t){return A(["br","img","hr","input"],e.property().name(t))},bn=pn,_n=function(e,t){var a=e.property().name(t);return A(["ol","ul"],a)},yn=gn,wn=pa(),xn=function(e){return bn(wn,e)},Cn=function(e){return _n(wn,e)},An=function(e){return yn(wn,e)},kn=function(e){var t,a=function(e){return"br"===it.name(e)},i=function(e){return ra.last(e).bind(function(t){var i,n=(i=t,Qe.nextSibling(i).map(function(e){return!!xn(e)||(An(e)?"img"!==it.name(e):void 0)}).getOr(!1));return Qe.parent(t).map(function(i){return!0===n||(l=i,"li"===it.name(l)||_t.ancestor(l,Cn).isSome())||a(t)||xn(i)&&!Ue.eq(e,i)?[]:[le.fromTag("br")];var l})}).getOr([])},n=0===(t=N(e,function(e){var t=Qe.children(e);return function(e){return O(e,function(e){return a(e)||it.isText(e)&&0===ta.get(e).trim().length})}(t)?[]:t.concat(i(e))})).length?[le.fromTag("br")]:t;Vt.empty(e[0]),Ut.append(e[0],n)},En=Object.prototype.hasOwnProperty,Dn=(nn=function(e,t){return t},function(){for(var e=new Array(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];if(0===e.length)throw new Error("Can't merge zero objects");for(var a={},i=0;i<e.length;i++){var n=e[i];for(var l in n)En.call(n,l)&&(a[l]=nn(a[l],n[l]))}return a}),Sn=function(e){for(var t=[],a=function(e){t.push(e)},i=0;i<e.length;i++)e[i].each(a);return t},In=function(e,t){for(var a=0;a<e.length;a++){var i=t(e[a],a);if(i.isSome())return i}return p.none()},Tn=function(e,t){return ie.rowcells(t,e.section())},Bn=function(e,t){return e.cells()[t]},Mn={addCell:function(e,t,a){var i=e.cells(),n=i.slice(0,t),l=i.slice(t),s=n.concat([a]).concat(l);return Tn(e,s)},setCells:Tn,mutateCell:function(e,t,a){e.cells()[t]=a},getCell:Bn,getCellElement:function(e,t){return Bn(e,t).element()},mapCells:function(e,t){var a=e.cells(),i=E(a,t);return ie.rowcells(i,e.section())},cellLength:function(e){return e.cells().length}},Pn=function(e,t){if(0===e.length)return 0;var a=e[0];return M(e,function(e){return!t(a.element(),e.element())}).fold(function(){return e.length},function(e){return e})},Ln=function(e,t,a,i){var l=function(e,t){return e[t]}(e,t).cells().slice(a),s=Pn(l,i),r=function(e,t){return E(e,function(e){return Mn.getCell(e,t)})}(e,a).slice(t),o=Pn(r,i);return{colspan:n(s),rowspan:n(o)}},Rn=function(e,t){var a=E(e,function(e,t){return E(e.cells(),function(e,t){return!1})});return E(e,function(i,n){var l=N(i.cells(),function(i,l){if(!1===a[n][l]){var s=Ln(e,n,l,t);return function(e,t,i,n){for(var l=e;l<e+i;l++)for(var s=t;s<t+n;s++)a[l][s]=!0}(n,l,s.rowspan(),s.colspan()),[ie.detailnew(i.element(),s.rowspan(),s.colspan(),i.isNew())]}return[]});return ie.rowdetails(l,i.section())})},Nn=function(e,t,a){for(var i=[],n=0;n<e.grid().rows();n++){for(var l=[],s=0;s<e.grid().columns();s++){var r=Tt.getAt(e,n,s).map(function(e){return ie.elementnew(e.element(),a)}).getOrThunk(function(){return ie.elementnew(t.gap(),!0)});l.push(r)}var o=ie.rowcells(l,e.all()[n].section());i.push(o)}return i},On=function(e,t,a,i){a===i?ot.remove(e,t):ot.set(e,t,a)},qn=function(e,t){var a=[],i=[],l=function(t,n){t.length>0?function(t,n){var l=wt.child(e,n).getOrThunk(function(){var t=le.fromTag(n,Qe.owner(e).dom());return Ft.append(e,t),t});Vt.empty(l);var s=E(t,function(e){e.isNew()&&a.push(e.element());var t=e.element();return Vt.empty(t),D(e.cells(),function(e){e.isNew()&&i.push(e.element()),On(e.element(),"colspan",e.colspan(),1),On(e.element(),"rowspan",e.rowspan(),1),Ft.append(t,e.element())}),t});Ut.append(l,s)}(t,n):function(t){wt.child(e,t).each(Vt.remove)}(n)},s=[],r=[],o=[];return D(t,function(e){switch(e.section()){case"thead":s.push(e);break;case"tbody":r.push(e);break;case"tfoot":o.push(e)}}),l(s,"thead"),l(r,"tbody"),l(o,"tfoot"),{newRows:n(a),newCells:n(i)}},zn=function(e){return E(e,function(e){var t=Xt(e.element());return D(e.cells(),function(e){var a=Zt(e.element());On(a,"colspan",e.colspan(),1),On(a,"rowspan",e.rowspan(),1),Ft.append(t,a)}),t})},Fn=function(e,t){for(var a=[],i=0;i<e;i++)a.push(t(i));return a},Un=function(e,t){for(var a=[],i=e;i<t;i++)a.push(i);return a},Wn=function(e,t){if(t<0||t>=e.length-1)return p.none();var a=e[t].fold(function(){var a=z(e.slice(0,t));return In(a,function(e,t){return e.map(function(e){return{value:e,delta:t+1}})})},function(e){return p.some({value:e,delta:0})}),i=e[t+1].fold(function(){var a=e.slice(t+1);return In(a,function(e,t){return e.map(function(e){return{value:e,delta:t+1}})})},function(e){return p.some({value:e,delta:1})});return a.bind(function(e){return i.map(function(t){var a=t.delta+e.delta;return Math.abs(t.value-e.value)/a})})},Vn=function(e,t,a){var i=e();return B(i,t).orThunk(function(){return p.from(i[0]).orThunk(a)}).map(function(e){return e.element()})},jn=function(e){var t=e.grid(),a=Un(0,t.columns()),i=Un(0,t.rows());return E(a,function(t){return Vn(function(){return N(i,function(a){return Tt.getAt(e,a,t).filter(function(e){return e.column()===t}).fold(n([]),function(e){return[e]})})},function(e){return 1===e.colspan()},function(){return Tt.getAt(e,0,t)})})},Hn=function(e){var t=e.grid(),a=Un(0,t.rows()),i=Un(0,t.columns());return E(a,function(t){return Vn(function(){return N(i,function(a){return Tt.getAt(e,t,a).filter(function(e){return e.row()===t}).fold(n([]),function(e){return[e]})})},function(e){return 1===e.rowspan()},function(){return Tt.getAt(e,t,0)})})},Kn=function(e,t,a,i,n){var l=le.fromTag("div");return Ot.setAll(l,{position:"absolute",left:t-i/2+"px",top:a+"px",height:n+"px",width:i+"px"}),ot.setAll(l,{"data-column":e,role:"presentation"}),l},Yn=function(e,t,a,i,n){var l=le.fromTag("div");return Ot.setAll(l,{position:"absolute",left:t+"px",top:a-n/2+"px",height:n+"px",width:i+"px"}),ot.setAll(l,{"data-row":e,role:"presentation"}),l},Qn=function(e){var t=e.replace(/\./g,"-");return{resolve:function(e){return t+"-"+e}}},Gn={resolve:Qn("ephox-snooker").resolve},Jn=function(e,t){var a=ot.get(e,t);return void 0===a||""===a?[]:a.split(" ")},Xn=Jn,Zn=function(e,t,a){var i=Jn(e,t).concat([a]);return ot.set(e,t,i.join(" ")),!0},$n=function(e,t,a){var i=S(Jn(e,t),function(e){return e!==a});return i.length>0?ot.set(e,t,i.join(" ")):ot.remove(e,t),!1},el=function(e){return Xn(e,"class")},tl=function(e,t){return Zn(e,"class",t)},al=function(e,t){return $n(e,"class",t)},il=el,nl=tl,ll=al,sl=function(e,t){return A(el(e),t)?al(e,t):tl(e,t)},rl=function(e){return void 0!==e.dom().classList},ol=function(e,t){return rl(e)&&e.dom().classList.contains(t)},ul={add:function(e,t){rl(e)?e.dom().classList.add(t):nl(e,t)},remove:function(e,t){rl(e)?e.dom().classList.remove(t):ll(e,t),function(e){0===(rl(e)?e.dom().classList:il(e)).length&&ot.remove(e,"class")}(e)},toggle:function(e,t){return rl(e)?e.dom().classList.toggle(t):sl(e,t)},toggler:function(e,t){var a=rl(e),i=e.dom().classList;return function(e,t,a){var i=a||!1,n=function(){t(),i=!0},l=function(){e(),i=!1};return{on:n,off:l,toggle:function(){(i?l:n)()},isOn:function(){return i}}}(function(){a?i.remove(t):ll(e,t)},function(){a?i.add(t):nl(e,t)},ol(e,t))},has:ol},cl=Gn.resolve("resizer-bar"),dl=Gn.resolve("resizer-rows"),ml=Gn.resolve("resizer-cols"),hl=function(e){var t=ft.descendants(e.parent(),"."+cl);D(t,Vt.remove)},fl=function(e,t,a){var i=e.origin();D(t,function(t,n){t.each(function(t){var n=a(i,t);ul.add(n,cl),Ft.append(e.parent(),n)})})},vl=function(e,t,a,i,n,l){var s=Vi(t);!function(e,t,a,i){fl(e,t,function(e,t){var n=Yn(t.row(),a.left()-e.left(),t.y()-e.top(),i,7);return ul.add(n,dl),n})}(e,a.length>0?n.positions(a,t):[],s,xi(t)),function(e,t,a,i){fl(e,t,function(e,t){var n=Kn(t.col(),t.x()-e.left(),a.top()-e.top(),7,i);return ul.add(n,ml),n})}(e,i.length>0?l.positions(i,t):[],s,_i(t))},pl=function(e,t){var a=ft.descendants(e.parent(),"."+cl);D(a,t)},gl={refresh:function(e,t,a,i){hl(e);var n=Et(t),l=Tt.generate(n),s=Hn(l),r=jn(l);vl(e,t,s,r,a,i)},hide:function(e){pl(e,function(e){Ot.set(e,"display","none")})},show:function(e){pl(e,function(e){Ot.set(e,"display","block")})},destroy:hl,isRowBar:function(e){return ul.has(e,dl)},isColBar:function(e){return ul.has(e,ml)}},bl=function(e,t){return E(e,function(e){var a=function(e){return In(e,function(e){return Qe.parent(e.element()).map(function(e){var t=Qe.parent(e).isNone();return ie.elementnew(e,t)})}).getOrThunk(function(){return ie.elementnew(t.row(),!0)})}(e.details());return ie.rowdatanew(a.element(),e.details(),e.section(),a.isNew())})},_l=function(e,t){var a=Rn(e,Ue.eq);return bl(a,t)},yl=function(e,t){var a=R(E(e.all(),function(e){return e.cells()}));return B(a,function(e){return Ue.eq(t,e.element())})},wl=function(e,t,a,i,l){return function(s,r,o,u,c){var d=Et(r),m=Tt.generate(d);return t(m,o).map(function(t){var a=function(e,t){return Nn(e,t,!1)}(m,u),i=e(a,t,Ue.eq,l(u)),s=_l(i.grid(),u);return{grid:n(s),cursor:i.cursor}}).fold(function(){return p.none()},function(e){var t=qn(r,e.grid());return a(r,e.grid(),c),i(r),gl.refresh(s,r,en.height,c),p.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})})}},xl=_l,Cl=function(e,t){return kt.cell(t.element()).bind(function(t){return yl(e,t)})},Al=function(e,t){var a=E(t.selection(),function(t){return kt.cell(t).bind(function(t){return yl(e,t)})}),i=Sn(a);return i.length>0?p.some(i):p.none()},kl=function(e,t){return kt.cell(t.element()).bind(function(a){return yl(e,a).map(function(e){return Dn(e,{generators:t.generators,clipboard:t.clipboard})})})},El=function(e,t){var a=E(t.selection(),function(t){return kt.cell(t).bind(function(t){return yl(e,t)})}),i=Sn(a);return i.length>0?p.some(Dn({cells:i},{generators:t.generators,clipboard:t.clipboard})):p.none()},Dl=function(e,t){return t.mergable()},Sl=function(e,t){return t.unmergable()},Il=function(e){return{is:function(t){return e===t},isValue:c,isError:u,getOr:n(e),getOrThunk:n(e),getOrDie:n(e),or:function(t){return Il(e)},orThunk:function(t){return Il(e)},fold:function(t,a){return a(e)},map:function(t){return Il(t(e))},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOption:function(){return p.some(e)}}},Tl=function(e){return{is:u,isValue:u,isError:c,getOr:l,getOrThunk:function(e){return e()},getOrDie:function(){return(t=String(e),function(){throw new Error(t)})();var t},or:function(e){return e},orThunk:function(e){return e()},fold:function(t,a){return t(e)},map:function(t){return Tl(e)},each:a,bind:function(t){return Tl(e)},exists:u,forall:c,toOption:p.none}},Bl={value:Il,error:Tl},Ml=function(e,t){return E(e,function(){return ie.elementnew(t.cell(),!0)})},Pl=function(e,t,a){return e.concat(Fn(t,function(t){return Mn.setCells(e[e.length-1],Ml(e[e.length-1].cells(),a))}))},Ll=function(e,t,a){return E(e,function(e){return Mn.setCells(e,e.cells().concat(Ml(Un(0,t),a)))})},Rl=function(e,t,a){if(e.row()>=t.length||e.column()>Mn.cellLength(t[0]))return Bl.error("invalid start address out of table bounds, row: "+e.row()+", column: "+e.column());var i=t.slice(e.row()),l=i[0].cells().slice(e.column()),s=Mn.cellLength(a[0]),r=a.length;return Bl.value({rowDelta:n(i.length-r),colDelta:n(l.length-s)})},Nl=function(e,t){var a=Mn.cellLength(e[0]),i=Mn.cellLength(t[0]);return{rowDelta:n(0),colDelta:n(a-i)}},Ol=function(e,t,a){var i=t.colDelta()<0?Ll:l;return(t.rowDelta()<0?Pl:l)(i(e,Math.abs(t.colDelta()),a),Math.abs(t.rowDelta()),a)},ql=function(e,t,a,i){if(0===e.length)return e;for(var n=t.startRow();n<=t.finishRow();n++)for(var l=t.startCol();l<=t.finishCol();l++)Mn.mutateCell(e[n],l,ie.elementnew(i(),!1));return e},zl=function(e,t,a,i){for(var n=!0,l=0;l<e.length;l++)for(var s=0;s<Mn.cellLength(e[0]);s++){var r=a(Mn.getCellElement(e[l],s),t);!0===r&&!1===n?Mn.mutateCell(e[l],s,ie.elementnew(i(),!0)):!0===r&&(n=!1)}return e},Fl=function(e,t,a,i){if(t>0&&t<e.length){var n=function(e,t){return T(e,function(e,a){return k(e,function(e){return t(e.element(),a.element())})?e:e.concat([a])},[])}(e[t-1].cells(),a);D(n,function(n){for(var l=p.none(),s=t;s<e.length;s++)for(var r=0;r<Mn.cellLength(e[0]);r++){var o=e[s].cells()[r];a(o.element(),n.element())&&(l.isNone()&&(l=p.some(i())),l.each(function(t){Mn.mutateCell(e[s],r,ie.elementnew(t,!0))}))}})}return e},Ul=function(e,t,a,i){var n=Mn.getCell(e[t],a),l=s(i,n.element()),r=e[t];return e.length>1&&Mn.cellLength(r)>1&&(a>0&&l(Mn.getCellElement(r,a-1))||a<r.length-1&&l(Mn.getCellElement(r,a+1))||t>0&&l(Mn.getCellElement(e[t-1],a))||t<e.length-1&&l(Mn.getCellElement(e[t+1],a)))},Wl=function(e,t,a,i,n){return Rl(e,t,a).map(function(l){var s=Ol(t,l,i);return function(e,t,a,i,n){for(var l=e.row(),s=e.column(),r=l+a.length,o=s+Mn.cellLength(a[0]),u=l;u<r;u++)for(var c=s;c<o;c++){Ul(t,u,c,n)&&zl(t,Mn.getCellElement(t[u],c),n,i.cell);var d=Mn.getCellElement(a[u-l],c-s),m=i.replace(d);Mn.mutateCell(t[u],c,ie.elementnew(m,!0))}return t}(e,s,a,i,n)})},Vl=function(e,t,a,i,n){Fl(t,e,n,i.cell);var l=Nl(a,t),s=Ol(a,l,i),r=Nl(t,s),o=Ol(t,r,i);return o.slice(0,e).concat(s).concat(o.slice(e,o.length))},jl=function(e,t,a,i,n){var l=e.slice(0,t),s=e.slice(t),r=Mn.mapCells(e[a],function(a,l){return t>0&&t<e.length&&i(Mn.getCellElement(e[t-1],l),Mn.getCellElement(e[t],l))?Mn.getCell(e[t],l):ie.elementnew(n(a.element(),i),!0)});return l.concat([r]).concat(s)},Hl=function(e,t,a,i,n){return E(e,function(e){var l=t>0&&t<Mn.cellLength(e)&&i(Mn.getCellElement(e,t-1),Mn.getCellElement(e,t))?Mn.getCell(e,t):ie.elementnew(n(Mn.getCellElement(e,a),i),!0);return Mn.addCell(e,t,l)})},Kl=function(e,t,a,i,n){var l=a+1;return E(e,function(e,s){var r=s===t?ie.elementnew(n(Mn.getCellElement(e,a),i),!0):Mn.getCell(e,a);return Mn.addCell(e,l,r)})},Yl=function(e,t,a,i,n){var l=t+1,s=e.slice(0,l),r=e.slice(l),o=Mn.mapCells(e[t],function(e,t){return t===a?ie.elementnew(n(e.element(),i),!0):e});return s.concat([o]).concat(r)},Ql=function(e,t,a){return e.slice(0,t).concat(e.slice(a+1))},Gl=function(e,t,a){var i=E(e,function(e){var i=e.cells().slice(0,t).concat(e.cells().slice(a+1));return ie.rowcells(i,e.section())});return S(i,function(e){return e.cells().length>0})},Jl=function(e,t,a,i){return E(e,function(e){return Mn.mapCells(e,function(e){return function(e){return k(t,function(t){return a(e.element(),t.element())})}(e)?ie.elementnew(i(e.element(),a),!0):e})})},Xl=function(e,t,a,i){return void 0!==Mn.getCellElement(e[t],a)&&t>0&&i(Mn.getCellElement(e[t-1],a),Mn.getCellElement(e[t],a))},Zl=function(e,t,a){return t>0&&a(Mn.getCellElement(e,t-1),Mn.getCellElement(e,t))},$l=function(e,t,a,i){var n=N(e,function(i,n){return Xl(e,n,t,a)||Zl(i,t,a)?[]:[Mn.getCell(i,t)]});return Jl(e,n,a,i)},es=function(e,t,a,i){var n=e[t],l=N(n.cells(),function(i,l){return Xl(e,t,l,a)||Zl(n,l,a)?[]:[i]});return Jl(e,l,a,i)},ts=function(e){return{fold:e}},as=function(){return ts(function(e,t,a,i,n){return e()})},is=function(e){return ts(function(t,a,i,n,l){return a(e)})},ns=function(e,t){return ts(function(a,i,n,l,s){return n(e,t)})},ls=function(e,t,a){return ts(function(i,n,l,s,r){return s(e,t,a)})},ss=function(e,t){return ts(function(a,i,n,l,s){return s(e,t)})},rs=function(e,t,a,i){var l=e.slice(0),s=function(e,t){return 0===e.length?as():1===e.length?is(0):0===t?ns(0,1):t===e.length-1?ss(t-1,t):t>0&&t<e.length-1?ls(t-1,t,t+1):as()}(e,t),r=function(e){return E(e,n(0))},o=n(r(l)),u=function(e,t){if(a>=0){var n=Math.max(i.minCellWidth(),l[t]-a);return r(l.slice(0,e)).concat([a,n-l[t]]).concat(r(l.slice(t+1)))}var s=Math.max(i.minCellWidth(),l[e]+a),o=l[e]-s;return r(l.slice(0,e)).concat([s-l[e],o]).concat(r(l.slice(t+1)))},c=u;return s.fold(o,function(e){return i.singleColumnWidth(l[e],a)},c,function(e,t,a){return u(t,a)},function(e,t){if(a>=0)return r(l.slice(0,t)).concat([a]);var n=Math.max(i.minCellWidth(),l[t]+a);return r(l.slice(0,t)).concat([n-l[t]])})},os=function(e,t){return ot.has(e,t)&&parseInt(ot.get(e,t),10)>1},us={hasColspan:function(e){return os(e,"colspan")},hasRowspan:function(e){return os(e,"rowspan")},minWidth:n(10),minHeight:n(10),getInt:function(e,t){return parseInt(Ot.get(e,t),10)}},cs=function(e,t,a){return Ot.getRaw(e,t).fold(function(){return a(e)+"px"},function(e){return e})},ds=function(e){return cs(e,"width",Ri.getPixelWidth)},ms=function(e){return cs(e,"height",Ri.getHeight)},hs=function(e,t,a,i,n){var l=jn(e),s=E(l,function(e){return e.map(t.edge)});return E(l,function(e,t){return e.filter(r(us.hasColspan)).fold(function(){var e=Wn(s,t);return i(e)},function(e){return a(e,n)})})},fs=function(e){return e.map(function(e){return e+"px"}).getOr("")},vs=function(e,t,a,i){var n=Hn(e),l=E(n,function(e){return e.map(t.edge)});return E(n,function(e,t){return e.filter(r(us.hasRowspan)).fold(function(){var e=Wn(l,t);return i(e)},function(e){return a(e)})})},ps={getRawWidths:function(e,t){return hs(e,t,ds,fs)},getPixelWidths:function(e,t,a){return hs(e,t,Ri.getPixelWidth,function(e){return e.getOrThunk(a.minCellWidth)},a)},getPercentageWidths:function(e,t,a){return hs(e,t,Ri.getPercentageWidth,function(e){return e.fold(function(){return a.minCellWidth()},function(e){return e/a.pixelWidth()*100})},a)},getPixelHeights:function(e,t){return vs(e,t,Ri.getHeight,function(e){return e.getOrThunk(us.minHeight)})},getRawHeights:function(e,t){return vs(e,t,ms,fs)}},gs=function(e,t,a){for(var i=0,n=e;n<t;n++)i+=void 0!==a[n]?a[n]:0;return i},bs=function(e,t){var a=Tt.justCells(e);return E(a,function(e){var a=gs(e.column(),e.column()+e.colspan(),t);return{element:e.element,width:n(a),colspan:e.colspan}})},_s=function(e,t){var a=Tt.justCells(e);return E(a,function(e){var a=gs(e.row(),e.row()+e.rowspan(),t);return{element:e.element,height:n(a),rowspan:e.rowspan}})},ys=function(e,t){return E(e.all(),function(e,a){return{element:e.element,height:n(t[a])}})},ws=function(e){var t=parseInt(e,10),a=l;return{width:n(t),pixelWidth:n(t),getWidths:ps.getPixelWidths,getCellDelta:a,singleColumnWidth:function(e,t){return[Math.max(us.minWidth(),e+t)-e]},minCellWidth:us.minWidth,setElementWidth:Ri.setPixelWidth,setTableWidth:function(e,t,a){var i=I(t,function(e,t){return e+t},0);Ri.setPixelWidth(e,i)}}},xs=function(e,t){if(Ri.percentageBasedSizeRegex().test(t))return function(e,t){var a=parseFloat(e),i=wi(t);return{width:n(a),pixelWidth:n(i),getWidths:ps.getPercentageWidths,getCellDelta:function(e){return e/i*100},singleColumnWidth:function(e,t){return[100-e]},minCellWidth:function(){return us.minWidth()/i*100},setElementWidth:Ri.setPercentageWidth,setTableWidth:function(e,t,i){var n=a+i;Ri.setPercentageWidth(e,n)}}}(Ri.percentageBasedSizeRegex().exec(t)[1],e);if(Ri.pixelBasedSizeRegex().test(t)){var a=Ri.pixelBasedSizeRegex().exec(t);return ws(a[1])}var i=wi(e);return ws(i)},Cs=function(e){return Ri.getRawWidth(e).fold(function(){var t=wi(e);return ws(t)},function(t){return xs(e,t)})},As=function(e){return Tt.generate(e)},ks=function(e){var t=Et(e);return As(t)},Es={adjustWidth:function(e,t,a,i){var n=Cs(e),l=n.getCellDelta(t),s=ks(e),r=n.getWidths(s,i,n),o=rs(r,a,l,n),u=E(o,function(e,t){return e+r[t]}),c=bs(s,u);D(c,function(e){n.setElementWidth(e.element(),e.width())}),a===s.grid().columns()-1&&n.setTableWidth(e,u,l)},adjustHeight:function(e,t,a,i){var n=ks(e),l=ps.getPixelHeights(n,i),s=E(l,function(e,i){return a===i?Math.max(t+e,us.minHeight()):e}),r=_s(n,s),o=ys(n,s);D(o,function(e){Ri.setHeight(e.element(),e.height())}),D(r,function(e){Ri.setHeight(e.element(),e.height())});var u=I(s,function(e,t){return e+t},0);Ri.setHeight(e,u)},adjustWidthTo:function(e,t,a){var i=Cs(e),n=As(t),l=i.getWidths(n,a,i),s=bs(n,l);D(s,function(e){i.setElementWidth(e.element(),e.width())});var r=I(l,function(e,t){return t+e},0);s.length>0&&i.setElementWidth(e,r)}},Ds=function(e){0===kt.cells(e).length&&Vt.remove(e)},Ss=j("grid","cursor"),Is=function(e,t,a){return Ts(e,t,a).orThunk(function(){return Ts(e,0,0)})},Ts=function(e,t,a){return p.from(e[t]).bind(function(e){return p.from(e.cells()[a]).bind(function(e){return p.from(e.element())})})},Bs=function(e,t,a){return Ss(e,Ts(e,t,a))},Ms=function(e){return T(e,function(e,t){return k(e,function(e){return e.row()===t.row()})?e:e.concat([t])},[]).sort(function(e,t){return e.row()-t.row()})},Ps=function(e){return T(e,function(e,t){return k(e,function(e){return e.column()===t.column()})?e:e.concat([t])},[]).sort(function(e,t){return e.column()-t.column()})},Ls=function(e,t,a){var i=Dt(e,a),n=Tt.generate(i);return Nn(n,t,!0)},Rs=Es.adjustWidthTo,Ns={insertRowBefore:wl(function(e,t,a,i){var n=t.row(),l=t.row(),s=jl(e,l,n,a,i.getOrInit);return Bs(s,l,t.column())},Cl,a,a,mn),insertRowsBefore:wl(function(e,t,a,i){var n=t[0].row(),l=t[0].row(),s=Ms(t),r=T(s,function(e,t){return jl(e,l,n,a,i.getOrInit)},e);return Bs(r,l,t[0].column())},Al,a,a,mn),insertRowAfter:wl(function(e,t,a,i){var n=t.row(),l=t.row()+t.rowspan(),s=jl(e,l,n,a,i.getOrInit);return Bs(s,l,t.column())},Cl,a,a,mn),insertRowsAfter:wl(function(e,t,a,i){var n=Ms(t),l=n[n.length-1].row(),s=n[n.length-1].row()+n[n.length-1].rowspan(),r=T(n,function(e,t){return jl(e,s,l,a,i.getOrInit)},e);return Bs(r,s,t[0].column())},Al,a,a,mn),insertColumnBefore:wl(function(e,t,a,i){var n=t.column(),l=t.column(),s=Hl(e,l,n,a,i.getOrInit);return Bs(s,t.row(),l)},Cl,Rs,a,mn),insertColumnsBefore:wl(function(e,t,a,i){var n=Ps(t),l=n[0].column(),s=n[0].column(),r=T(n,function(e,t){return Hl(e,s,l,a,i.getOrInit)},e);return Bs(r,t[0].row(),s)},Al,Rs,a,mn),insertColumnAfter:wl(function(e,t,a,i){var n=t.column(),l=t.column()+t.colspan(),s=Hl(e,l,n,a,i.getOrInit);return Bs(s,t.row(),l)},Cl,Rs,a,mn),insertColumnsAfter:wl(function(e,t,a,i){var n=t[t.length-1].column(),l=t[t.length-1].column()+t[t.length-1].colspan(),s=Ps(t),r=T(s,function(e,t){return Hl(e,l,n,a,i.getOrInit)},e);return Bs(r,t[0].row(),l)},Al,Rs,a,mn),splitCellIntoColumns:wl(function(e,t,a,i){var n=Kl(e,t.row(),t.column(),a,i.getOrInit);return Bs(n,t.row(),t.column())},Cl,Rs,a,mn),splitCellIntoRows:wl(function(e,t,a,i){var n=Yl(e,t.row(),t.column(),a,i.getOrInit);return Bs(n,t.row(),t.column())},Cl,a,a,mn),eraseColumns:wl(function(e,t,a,i){var n=Ps(t),l=Gl(e,n[0].column(),n[n.length-1].column()),s=Is(l,t[0].row(),t[0].column());return Ss(l,s)},Al,Rs,Ds,mn),eraseRows:wl(function(e,t,a,i){var n=Ms(t),l=Ql(e,n[0].row(),n[n.length-1].row()),s=Is(l,t[0].row(),t[0].column());return Ss(l,s)},Al,a,Ds,mn),makeColumnHeader:wl(function(e,t,a,i){var n=$l(e,t.column(),a,i.replaceOrInit);return Bs(n,t.row(),t.column())},Cl,a,a,hn("row","th")),unmakeColumnHeader:wl(function(e,t,a,i){var n=$l(e,t.column(),a,i.replaceOrInit);return Bs(n,t.row(),t.column())},Cl,a,a,hn(null,"td")),makeRowHeader:wl(function(e,t,a,i){var n=es(e,t.row(),a,i.replaceOrInit);return Bs(n,t.row(),t.column())},Cl,a,a,hn("col","th")),unmakeRowHeader:wl(function(e,t,a,i){var n=es(e,t.row(),a,i.replaceOrInit);return Bs(n,t.row(),t.column())},Cl,a,a,hn(null,"td")),mergeCells:wl(function(e,t,a,i){var l=t.cells();kn(l);var s=ql(e,t.bounds(),a,n(l[0]));return Ss(s,p.from(l[0]))},Dl,a,a,fn),unmergeCells:wl(function(e,t,a,i){var n=I(t,function(e,t){return zl(e,t,a,i.combine(t))},e);return Ss(n,p.from(t[0]))},Sl,Rs,a,fn),pasteCells:wl(function(e,t,a,i){var n,l,s,r,o=(n=t.clipboard(),l=t.generators(),s=Et(n),r=Tt.generate(s),Nn(r,l,!0)),u=ie.address(t.row(),t.column());return Wl(u,e,o,t.generators(),a).fold(function(){return Ss(e,p.some(t.element()))},function(e){var a=Is(e,t.row(),t.column());return Ss(e,a)})},kl,Rs,a,mn),pasteRowsBefore:wl(function(e,t,a,i){var n=e[t.cells[0].row()],l=t.cells[0].row(),s=Ls(t.clipboard(),t.generators(),n),r=Vl(l,e,s,t.generators(),a),o=Is(r,t.cells[0].row(),t.cells[0].column());return Ss(r,o)},El,a,a,mn),pasteRowsAfter:wl(function(e,t,a,i){var n=e[t.cells[0].row()],l=t.cells[t.cells.length-1].row()+t.cells[t.cells.length-1].rowspan(),s=Ls(t.clipboard(),t.generators(),n),r=Vl(l,e,s,t.generators(),a),o=Is(r,t.cells[0].row(),t.cells[0].column());return Ss(r,o)},El,a,a,mn)},Os=function(e){return le.fromDom(e.getBody())},qs=function(e){return e.getBoundingClientRect().width},zs=function(e){return e.getBoundingClientRect().height},Fs=function(e){return function(t){return Ue.eq(t,Os(e))}},Us=function(e){return/^[0-9]+$/.test(e)&&(e+="px"),e},Ws=function(e){var t=ft.descendants(e,"td[data-mce-style],th[data-mce-style]");ot.remove(e,"data-mce-style"),D(t,function(e){ot.remove(e,"data-mce-style")})},Vs=function(e){return"rtl"===Ot.get(e,"direction")?"rtl":"ltr"},js={onDirection:function(e,t){return function(a){return"rtl"===Vs(a)?t:e}},getDirection:Vs},Hs={isRtl:n(!1)},Ks={isRtl:n(!0)},Ys={directionAt:function(e){return"rtl"===js.getDirection(e)?Ks:Hs}},Qs=["tableprops","tabledelete","|","tableinsertrowbefore","tableinsertrowafter","tabledeleterow","|","tableinsertcolbefore","tableinsertcolafter","tabledeletecol"],Gs={"border-collapse":"collapse",width:"100%"},Js={border:"1"},Xs=function(e){return e.getParam("table_default_styles",Gs,"object")},Zs=function(e){return e.getParam("table_tab_navigation",!0,"boolean")},$s=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},er=function(e){return e.getParam("table_row_advtab",!0,"boolean")},tr=function(e){return e.getParam("table_advtab",!0,"boolean")},ar=function(e){return e.getParam("table_style_by_css",!1,"boolean")},ir=function(e){return e.getParam("table_cell_class_list",[],"array")},nr=function(e){return e.getParam("table_row_class_list",[],"array")},lr=function(e){return e.getParam("table_class_list",[],"array")},sr=function(e){return!1===e.getParam("table_responsive_width")},rr=function(e,t){return e.fire("newrow",{node:t})},or=function(e,t){return e.fire("newcell",{node:t})},ur=function(e,t,a,i){e.fire("ObjectResizeStart",{target:t,width:a,height:i})},cr=function(e,t,a,i){e.fire("ObjectResized",{target:t,width:a,height:i})},dr=function(e,t){var i=function(e){return"table"===it.name(Os(e))},n=function(e){var t=e.getParam("table_clone_elements");return b(t)?p.some(t.split(/[ ,]/)):Array.isArray(t)?p.some(t):p.none()}(e),l=function(t,a,i,l){return function(s,r){Ws(s);var o=l(),u=le.fromDom(e.getDoc()),c=an(Ys.directionAt),d=ma(i,u,n);return a(s)?t(o,s,r,d,c).bind(function(t){return D(t.newRows(),function(t){rr(e,t.dom())}),D(t.newCells(),function(t){or(e,t.dom())}),t.cursor().map(function(t){var a=e.dom.createRng();return a.setStart(t.dom(),0),a.setEnd(t.dom(),0),a})}):p.none()}};return{deleteRow:l(Ns.eraseRows,function(t){var a=ln(t);return!1===i(e)||a.rows()>1},a,t),deleteColumn:l(Ns.eraseColumns,function(t){var a=ln(t);return!1===i(e)||a.columns()>1},a,t),insertRowsBefore:l(Ns.insertRowsBefore,c,a,t),insertRowsAfter:l(Ns.insertRowsAfter,c,a,t),insertColumnsBefore:l(Ns.insertColumnsBefore,c,Ni,t),insertColumnsAfter:l(Ns.insertColumnsAfter,c,Ni,t),mergeCells:l(Ns.mergeCells,c,a,t),unmergeCells:l(Ns.unmergeCells,c,a,t),pasteRowsBefore:l(Ns.pasteRowsBefore,c,a,t),pasteRowsAfter:l(Ns.pasteRowsAfter,c,a,t),pasteCells:l(Ns.pasteCells,c,a,t)}},mr=function(e,t,a){var i=Et(e),n=Tt.generate(i);return Al(n,t).map(function(e){var t=Nn(n,a,!1).slice(e[0].row(),e[e.length-1].row()+e[e.length-1].rowspan()),i=xl(t,a);return zn(i)})},hr=tinymce.util.Tools.resolve("tinymce.util.Tools"),fr={applyAlign:function(e,t,a){a&&e.formatter.apply("align"+a,{},t)},applyVAlign:function(e,t,a){a&&e.formatter.apply("valign"+a,{},t)},unApplyAlign:function(e,t){hr.each("left center right".split(" "),function(a){e.formatter.remove("align"+a,{},t)})},unApplyVAlign:function(e,t){hr.each("top middle bottom".split(" "),function(a){e.formatter.remove("valign"+a,{},t)})},getTDTHOverallStyle:function(e,t,a){var i;return i=function(t,i){for(var n=0;n<i.length;n++){var l=e.getStyle(i[n],a);if(void 0===t&&(t=l),t!==l)return""}return t}(i,e.select("td,th",t))}},vr=function(e,t){var a=e.dom,i=t.control.rootControl,n=i.toJSON(),l=a.parseStyle(n.style);l["border-style"]=n.borderStyle,l["border-color"]=n.borderColor,l["background-color"]=n.backgroundColor,l.width=n.width?Us(n.width):"",l.height=n.height?Us(n.height):"",i.find("#style").value(a.serializeStyle(a.parseStyle(a.serializeStyle(l))))},pr=function(e,t){var a=e.dom,i=t.control.rootControl,n=i.toJSON(),l=a.parseStyle(n.style);i.find("#borderStyle").value(l["border-style"]||""),i.find("#borderColor").value(l["border-color"]||""),i.find("#backgroundColor").value(l["background-color"]||""),i.find("#width").value(l.width||""),i.find("#height").value(l.height||"")},gr={createStyleForm:function(e){var t=function(){var t=function(e){return e.getParam("color_picker_callback")}(e);if(t)return function(a){return t.call(e,function(e){a.control.value(e).fire("change")},a.control.value())}};return{title:"Advanced",type:"form",defaults:{onchange:s(vr,e)},items:[{label:"Style",name:"style",type:"textbox",onchange:s(pr,e)},{type:"form",padding:0,formItemDefaults:{layout:"grid",alignH:["start","right"]},defaults:{size:7},items:[{label:"Border style",type:"listbox",name:"borderStyle",width:90,onselect:s(vr,e),values:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]},{label:"Border color",type:"colorbox",name:"borderColor",onaction:t()},{label:"Background color",type:"colorbox",name:"backgroundColor",onaction:t()}]}]}},buildListItems:function(e,t,a){var i=function(e,a){return a=a||[],hr.each(e,function(e){var n={text:e.text||e.title};e.menu?n.menu=i(e.menu):(n.value=e.value,t&&t(n)),a.push(n)}),a};return i(e,a||[])},updateStyleField:vr,extractAdvancedStyles:function(e,t){var a=e.parseStyle(e.getAttrib(t,"style")),i={};return a["border-style"]&&(i.borderStyle=a["border-style"]),a["border-color"]&&(i.borderColor=a["border-color"]),a["background-color"]&&(i.backgroundColor=a["background-color"]),i.style=e.serializeStyle(a),i},updateAdvancedFields:pr,syncAdvancedStyleFields:function(e,t){t.control.rootControl.find("#style")[0].getEl().isEqualNode(document.activeElement)?pr(e,t):vr(e,t)}},br=function(e,t,a){var i,n=e.dom;function l(e,a,i){(1===t.length||i)&&n.setAttrib(e,a,i)}function s(e,a,i){(1===t.length||i)&&n.setStyle(e,a,i)}$s(e)&&gr.syncAdvancedStyleFields(e,a),i=a.control.rootControl.toJSON(),e.undoManager.transact(function(){hr.each(t,function(a){var r,o;l(a,"scope",i.scope),1===t.length?l(a,"style",i.style):(r=a,o=i.style,delete r.dataset.mceStyle,r.style.cssText+=";"+o),l(a,"class",i.class),s(a,"width",Us(i.width)),s(a,"height",Us(i.height)),i.type&&a.nodeName.toLowerCase()!==i.type&&(a=n.rename(a,i.type)),1===t.length&&(fr.unApplyAlign(e,a),fr.unApplyVAlign(e,a)),i.align&&fr.applyAlign(e,a,i.align),i.valign&&fr.applyVAlign(e,a,i.valign)}),e.focus()})},_r=function(e){var t,a,i,n=[];if(n=e.dom.select("td[data-mce-selected],th[data-mce-selected]"),t=e.dom.getParent(e.selection.getStart(),"td,th"),!n.length&&t&&n.push(t),t=t||n[0]){a=n.length>1?{width:"",height:"",scope:"",class:"",align:"",valign:"",style:"",type:t.nodeName.toLowerCase()}:function(e,t){var a=e.dom,i={width:a.getStyle(t,"width")||a.getAttrib(t,"width"),height:a.getStyle(t,"height")||a.getAttrib(t,"height"),scope:a.getAttrib(t,"scope"),class:a.getAttrib(t,"class"),type:t.nodeName.toLowerCase(),style:"",align:"",valign:""};return hr.each("left center right".split(" "),function(a){e.formatter.matchNode(t,"align"+a)&&(i.align=a)}),hr.each("top middle bottom".split(" "),function(a){e.formatter.matchNode(t,"valign"+a)&&(i.valign=a)}),$s(e)&&hr.extend(i,gr.extractAdvancedStyles(a,t)),i}(e,t),ir(e).length>0&&(i={name:"class",type:"listbox",label:"Class",values:gr.buildListItems(ir(e),function(t){t.value&&(t.textStyle=function(){return e.formatter.getCssText({block:"td",classes:[t.value]})})})});var l={type:"form",layout:"flex",direction:"column",labelGapCalc:"children",padding:0,items:[{type:"form",layout:"grid",columns:2,labelGapCalc:!1,padding:0,defaults:{type:"textbox",maxWidth:50},items:[{label:"Width",name:"width",onchange:s(gr.updateStyleField,e)},{label:"Height",name:"height",onchange:s(gr.updateStyleField,e)},{label:"Cell type",name:"type",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{label:"Scope",name:"scope",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{label:"H Align",name:"align",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"V Align",name:"valign",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}]}]},i]};$s(e)?e.windowManager.open({title:"Cell properties",bodyType:"tabpanel",data:a,body:[{title:"General",type:"form",items:l},gr.createStyleForm(e)],onsubmit:s(br,e,n)}):e.windowManager.open({title:"Cell properties",data:a,body:l,onsubmit:s(br,e,n)})}},yr=function(e,t,a){var i=e.getParent(t,"table"),n=t.parentNode,l=e.select(a,i)[0];l||(l=e.create(a),i.firstChild?"CAPTION"===i.firstChild.nodeName?e.insertAfter(l,i.firstChild):i.insertBefore(l,i.firstChild):i.appendChild(l)),l.appendChild(t),n.hasChildNodes()||e.remove(n)};function wr(e,t,a,i){var n=e.dom;function l(e,a,i){(1===t.length||i)&&n.setAttrib(e,a,i)}er(e)&&gr.syncAdvancedStyleFields(e,i);var s=i.control.rootControl.toJSON();e.undoManager.transact(function(){hr.each(t,function(i){var r,o,u;l(i,"scope",s.scope),l(i,"style",s.style),l(i,"class",s.class),r=i,o="height",u=Us(s.height),(1===t.length||u)&&n.setStyle(r,o,u),s.type!==i.parentNode.nodeName.toLowerCase()&&yr(e.dom,i,s.type),s.align!==a.align&&(fr.unApplyAlign(e,i),fr.applyAlign(e,i,s.align))}),e.focus()})}var xr=function(e){var t,a,i,n,l,r,o=e.dom,u=[];t=o.getParent(e.selection.getStart(),"table"),a=o.getParent(e.selection.getStart(),"td,th"),hr.each(t.rows,function(e){hr.each(e.cells,function(t){if(o.getAttrib(t,"data-mce-selected")||t===a)return u.push(e),!1})}),(i=u[0])&&(l=u.length>1?{height:"",scope:"",style:"",class:"",align:"",type:i.parentNode.nodeName.toLowerCase()}:function(e,t){var a=e.dom,i={height:a.getStyle(t,"height")||a.getAttrib(t,"height"),scope:a.getAttrib(t,"scope"),class:a.getAttrib(t,"class"),align:"",style:"",type:t.parentNode.nodeName.toLowerCase()};return hr.each("left center right".split(" "),function(a){e.formatter.matchNode(t,"align"+a)&&(i.align=a)}),er(e)&&hr.extend(i,gr.extractAdvancedStyles(a,t)),i}(e,i),nr(e).length>0&&(n={name:"class",type:"listbox",label:"Class",values:gr.buildListItems(nr(e),function(t){t.value&&(t.textStyle=function(){return e.formatter.getCssText({block:"tr",classes:[t.value]})})})}),r={type:"form",columns:2,padding:0,defaults:{type:"textbox"},items:[{type:"listbox",name:"type",label:"Row type",text:"Header",maxWidth:null,values:[{text:"Header",value:"thead"},{text:"Body",value:"tbody"},{text:"Footer",value:"tfoot"}]},{type:"listbox",name:"align",label:"Alignment",text:"None",maxWidth:null,values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height"},n]},er(e)?e.windowManager.open({title:"Row properties",data:l,bodyType:"tabpanel",body:[{title:"General",type:"form",items:r},gr.createStyleForm(e)],onsubmit:s(wr,e,u,l)}):e.windowManager.open({title:"Row properties",data:l,body:r,onsubmit:s(wr,e,u,l)}))},Cr=tinymce.util.Tools.resolve("tinymce.Env"),Ar={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},percentages:!0},kr=function(e,t,a,i,n){void 0===n&&(n=Ar);var l=le.fromTag("table");Ot.setAll(l,n.styles),ot.setAll(l,n.attributes);var s=le.fromTag("tbody");Ft.append(l,s);for(var r=[],o=0;o<e;o++){for(var u=le.fromTag("tr"),c=0;c<t;c++){var d=o<a||c<i?le.fromTag("th"):le.fromTag("td");c<i&&ot.set(d,"scope","row"),o<a&&ot.set(d,"scope","col"),Ft.append(d,le.fromTag("br")),n.percentages&&Ot.set(d,"width",100/t+"%"),Ft.append(u,d)}r.push(u)}return Ut.append(s,r),l},Er=function(e){return e.dom().innerHTML},Dr=function(e){var t=le.fromTag("div"),a=le.fromDom(e.dom().cloneNode(!0));return Ft.append(t,a),Er(t)},Sr=function(e,t){e.selection.select(t.dom(),!0),e.selection.collapse(!0)},Ir=function(e,t,a){var i,n=Xs(e),l={styles:n,attributes:function(e){return e.getParam("table_default_attributes",Js,"object")}(e),percentages:(i=n.width,b(i)&&-1!==i.indexOf("%")&&!sr(e))},r=kr(a,t,0,0,l);ot.set(r,"data-mce-id","__mce");var o=Dr(r);return e.insertContent(o),wt.descendant(Os(e),'table[data-mce-id="__mce"]').map(function(t){return sr(e)&&Ot.set(t,"width",Ot.get(t,"width")),ot.remove(t,"data-mce-id"),function(e,t){D(ft.descendants(t,"tr"),function(t){rr(e,t.dom()),D(ft.descendants(t,"th,td"),function(t){or(e,t.dom())})})}(e,t),function(e,t){wt.descendant(t,"td,th").each(s(Sr,e))}(e,t),t.dom()}).getOr(null)};function Tr(e,t,a,i){if("TD"===t.tagName||"TH"===t.tagName)e.setStyle(t,a,i);else if(t.children)for(var n=0;n<t.children.length;n++)Tr(e,t.children[n],a,i)}var Br=function(e,t,a){var i,n,l=e.dom;tr(e)&&gr.syncAdvancedStyleFields(e,a),!1===(n=a.control.rootControl.toJSON()).class&&delete n.class,e.undoManager.transact(function(){t||(t=Ir(e,n.cols||1,n.rows||1)),function(e,t,a){var i,n=e.dom,l={},s={};if(l.class=a.class,s.height=Us(a.height),n.getAttrib(t,"width")&&!ar(e)?l.width=(i=a.width)?i.replace(/px$/,""):"":s.width=Us(a.width),ar(e)?(s["border-width"]=Us(a.border),s["border-spacing"]=Us(a.cellspacing),hr.extend(l,{"data-mce-border-color":a.borderColor,"data-mce-cell-padding":a.cellpadding,"data-mce-border":a.border})):hr.extend(l,{border:a.border,cellpadding:a.cellpadding,cellspacing:a.cellspacing}),ar(e)&&t.children)for(var r=0;r<t.children.length;r++)Tr(n,t.children[r],{"border-width":Us(a.border),"border-color":a.borderColor,padding:Us(a.cellpadding)});a.style?hr.extend(s,n.parseStyle(a.style)):s=hr.extend({},n.parseStyle(n.getAttrib(t,"style")),s),l.style=n.serializeStyle(s),n.setAttribs(t,l)}(e,t,n),(i=l.select("caption",t)[0])&&!n.caption&&l.remove(i),!i&&n.caption&&((i=l.create("caption")).innerHTML=Cr.ie?" ":'<br data-mce-bogus="1"/>',t.insertBefore(i,t.firstChild)),fr.unApplyAlign(e,t),n.align&&fr.applyAlign(e,t,n.align),e.focus(),e.addVisual()})},Mr=function(e,t){var a,i,n,l,r,o=e.dom,u={};!0===t?(a=o.getParent(e.selection.getStart(),"table"))&&(u=function(e,t){var a=e.dom,i={width:a.getStyle(t,"width")||a.getAttrib(t,"width"),height:a.getStyle(t,"height")||a.getAttrib(t,"height"),cellspacing:a.getStyle(t,"border-spacing")||a.getAttrib(t,"cellspacing"),cellpadding:a.getAttrib(t,"data-mce-cell-padding")||a.getAttrib(t,"cellpadding")||fr.getTDTHOverallStyle(e.dom,t,"padding"),border:a.getAttrib(t,"data-mce-border")||a.getAttrib(t,"border")||fr.getTDTHOverallStyle(e.dom,t,"border"),borderColor:a.getAttrib(t,"data-mce-border-color"),caption:!!a.select("caption",t)[0],class:a.getAttrib(t,"class")};return hr.each("left center right".split(" "),function(a){e.formatter.matchNode(t,"align"+a)&&(i.align=a)}),tr(e)&&hr.extend(i,gr.extractAdvancedStyles(a,t)),i}(e,a)):(i={label:"Cols",name:"cols"},n={label:"Rows",name:"rows"}),lr(e).length>0&&(u.class&&(u.class=u.class.replace(/\s*mce\-item\-table\s*/g,"")),l={name:"class",type:"listbox",label:"Class",values:gr.buildListItems(lr(e),function(t){t.value&&(t.textStyle=function(){return e.formatter.getCssText({block:"table",classes:[t.value]})})})}),r={type:"form",layout:"flex",direction:"column",labelGapCalc:"children",padding:0,items:[{type:"form",labelGapCalc:!1,padding:0,layout:"grid",columns:2,defaults:{type:"textbox",maxWidth:50},items:function(e){return e.getParam("table_appearance_options",!0,"boolean")}(e)?[i,n,{label:"Width",name:"width",onchange:s(gr.updateStyleField,e)},{label:"Height",name:"height",onchange:s(gr.updateStyleField,e)},{label:"Cell spacing",name:"cellspacing"},{label:"Cell padding",name:"cellpadding"},{label:"Border",name:"border"},{label:"Caption",name:"caption",type:"checkbox"}]:[i,n,{label:"Width",name:"width",onchange:s(gr.updateStyleField,e)},{label:"Height",name:"height",onchange:s(gr.updateStyleField,e)}]},{label:"Alignment",name:"align",type:"listbox",text:"None",values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},l]},tr(e)?e.windowManager.open({title:"Table properties",data:u,bodyType:"tabpanel",body:[{title:"General",type:"form",items:r},gr.createStyleForm(e)],onsubmit:s(Br,e,a)}):e.windowManager.open({title:"Table properties",data:u,body:r,onsubmit:s(Br,e,a)})},Pr=hr.each,Lr={registerCommands:function(e,t,i,n,l){var o=Fs(e),u=function(){return le.fromDom(e.dom.getParent(e.selection.getStart(),"th,td"))},c=function(e){return kt.table(e,o)},d=function(e){return{width:qs(e.dom()),height:qs(e.dom())}},m=function(t){var a=u();c(a).each(function(l){var s=fi.forMenu(n,l,a),r=d(l);t(l,s).each(function(t){!function(e,t,a){var i=d(a);t.width===i.width&&t.height===i.height||(ur(e,a.dom(),t.width,t.height),cr(e,a.dom(),i.width,i.height))}(e,r,l),e.selection.setRng(t),e.focus(),i.clear(l),Ws(l)})})},h=function(t){var i=u();return c(i).bind(function(t){var l=le.fromDom(e.getDoc()),s=fi.forMenu(n,t,i),r=ma(a,l,p.none());return mr(t,s,r)})},f=function(t){l.get().each(function(a){var l=E(a,function(e){return Zt(e)}),s=u();c(s).bind(function(a){var r=le.fromDom(e.getDoc()),o=ha(r),u=fi.pasteRows(n,a,s,l,o);t(a,u).each(function(t){e.selection.setRng(t),e.focus(),i.clear(a)})})})};Pr({mceTableSplitCells:function(){m(t.unmergeCells)},mceTableMergeCells:function(){m(t.mergeCells)},mceTableInsertRowBefore:function(){m(t.insertRowsBefore)},mceTableInsertRowAfter:function(){m(t.insertRowsAfter)},mceTableInsertColBefore:function(){m(t.insertColumnsBefore)},mceTableInsertColAfter:function(){m(t.insertColumnsAfter)},mceTableDeleteCol:function(){m(t.deleteColumn)},mceTableDeleteRow:function(){m(t.deleteRow)},mceTableCutRow:function(e){l.set(h()),m(t.deleteRow)},mceTableCopyRow:function(e){l.set(h())},mceTablePasteRowBefore:function(e){f(t.pasteRowsBefore)},mceTablePasteRowAfter:function(e){f(t.pasteRowsAfter)},mceTableDelete:function(){var t=le.fromDom(e.dom.getParent(e.selection.getStart(),"th,td"));kt.table(t,o).filter(r(o)).each(function(t){var a=le.fromText("");Ft.after(t,a),Vt.remove(t);var i=e.dom.createRng();i.setStart(a.dom(),0),i.setEnd(a.dom(),0),e.selection.setRng(i)})}},function(t,a){e.addCommand(a,t)}),Pr({mceInsertTable:s(Mr,e),mceTableProps:s(Mr,e,!0),mceTableRowProps:s(xr,e),mceTableCellProps:s(_r,e)},function(t,a){e.addCommand(a,function(e,a){t(a)})})}},Rr=function(e){var t=p.from(e.dom().documentElement).map(le.fromDom).getOr(e);return{parent:n(t),view:n(e),origin:n(Fi(0,0))}},Nr=function(e,t){return{parent:n(t),view:n(e),origin:n(Fi(0,0))}};function Or(e){var t=j.apply(null,e),a=[];return{bind:function(e){if(void 0===e)throw"Event bind error: undefined handler";a.push(e)},unbind:function(e){a=S(a,function(t){return t!==e})},trigger:function(){var e=t.apply(null,arguments);D(a,function(t){t(e)})}}}var qr={create:function(e){return{registry:W(e,function(e){return{bind:e.bind,unbind:e.unbind}}),trigger:W(e,function(e){return e.trigger})}}},zr={mode:un(["compare","extract","mutate","sink"]),sink:un(["element","start","stop","destroy"]),api:un(["forceDrop","drop","move","delayDrop"])},Fr={resolve:Qn("ephox-dragster").resolve},Ur=function(e,t){return function(a){if(e(a)){var l=le.fromDom(a.target),s=function(){a.stopPropagation()},r=function(){a.preventDefault()},o=i(r,s),u=function(e,t,a,i,l,s,r){return{target:n(e),x:n(t),y:n(a),stop:i,prevent:l,kill:s,raw:n(r)}}(l,a.clientX,a.clientY,s,r,o,a);t(u)}}},Wr=function(e,t,a,i,n){var l=Ur(a,i);return e.dom().addEventListener(t,l,n),{unbind:s(Vr,e,t,l,n)}},Vr=function(e,t,a,i){e.dom().removeEventListener(t,a,i)},jr=function(e,t,a,i){return Wr(e,t,a,i,!1)},Hr=function(e,t,a,i){return Wr(e,t,a,i,!0)},Kr=n(!0),Yr={bind:function(e,t,a){return jr(e,t,Kr,a)},capture:function(e,t,a){return Hr(e,t,Kr,a)}},Qr=zr.mode({compare:function(e,t){return Fi(t.left()-e.left(),t.top()-e.top())},extract:function(e){return p.some(Fi(e.x(),e.y()))},sink:function(e,t){var a=function(e){var t=Dn({layerClass:Fr.resolve("blocker")},e),a=le.fromTag("div");return ot.set(a,"role","presentation"),Ot.setAll(a,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),ul.add(a,Fr.resolve("blocker")),ul.add(a,t.layerClass),{element:function(){return a},destroy:function(){Vt.remove(a)}}}(t),i=Yr.bind(a.element(),"mousedown",e.forceDrop),n=Yr.bind(a.element(),"mouseup",e.drop),l=Yr.bind(a.element(),"mousemove",e.move),s=Yr.bind(a.element(),"mouseout",e.delayDrop);return zr.sink({element:a.element,start:function(e){Ft.append(e,a.element())},stop:function(){Vt.remove(a.element())},destroy:function(){a.destroy(),n.unbind(),l.unbind(),s.unbind(),i.unbind()}})},mutate:function(e,t){e.mutate(t.left(),t.top())}});function Gr(){var e=p.none(),t=qr.create({move:Or(["info"])});return{onEvent:function(a,i){i.extract(a).each(function(a){(function(t,a){var i=e.map(function(e){return t.compare(e,a)});return e=p.some(a),i})(i,a).each(function(e){t.trigger.move(e)})})},reset:function(){e=p.none()},events:t.registry}}function Jr(){var e={onEvent:function(e,t){},reset:a},t=Gr(),i=e;return{on:function(){i.reset(),i=t},off:function(){i.reset(),i=e},isOn:function(){return i===t},onEvent:function(e,t){i.onEvent(e,t)},events:t.events}}var Xr=function(e,t,a){var i,n,l,s=!1,r=qr.create({start:Or([]),stop:Or([])}),o=Jr(),u=function(){m.stop(),o.isOn()&&(o.off(),r.trigger.stop())},c=(i=u,n=200,l=null,{cancel:function(){null!==l&&(clearTimeout(l),l=null)},throttle:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];null!==l&&clearTimeout(l),l=setTimeout(function(){i.apply(null,e),l=null},n)}});o.events.move.bind(function(a){t.mutate(e,a.info())});var d=function(e){return function(){var t=Array.prototype.slice.call(arguments,0);if(s)return e.apply(null,t)}},m=t.sink(zr.api({forceDrop:u,drop:d(u),move:d(function(e,a){c.cancel(),o.onEvent(e,t)}),delayDrop:d(c.throttle)}),a);return{element:m.element,go:function(e){m.start(e),o.on(),r.trigger.start()},on:function(){s=!0},off:function(){s=!1},destroy:function(){m.destroy()},events:r.registry}},Zr={transform:function(e,t){var a=void 0!==t?t:{},i=void 0!==a.mode?a.mode:Qr;return Xr(e,i,t)}};function $r(){var e=qr.create({drag:Or(["xDelta","yDelta","target"])}),t=p.none(),a=function(){var e=qr.create({drag:Or(["xDelta","yDelta"])});return{mutate:function(t,a){e.trigger.drag(t,a)},events:e.registry}}();return a.events.drag.bind(function(a){t.each(function(t){e.trigger.drag(a.xDelta(),a.yDelta(),t)})}),{assign:function(e){t=p.some(e)},get:function(){return t},mutate:a.mutate,events:e.registry}}var eo={any:function(e){return wt.first(e).isSome()},ancestor:function(e,t,a){return wt.ancestor(e,t,a).isSome()},sibling:function(e,t){return wt.sibling(e,t).isSome()},child:function(e,t){return wt.child(e,t).isSome()},descendant:function(e,t){return wt.descendant(e,t).isSome()},closest:function(e,t,a){return wt.closest(e,t,a).isSome()}},to=Gn.resolve("resizer-bar-dragging");function ao(e,t){var a=en.height,i=function(e,t,a){var i=$r(),n=Zr.transform(i,{}),l=p.none(),r=function(e,t){return p.from(ot.get(e,t))};i.events.drag.bind(function(e){r(e.target(),"data-row").each(function(t){var a=us.getInt(e.target(),"top");Ot.set(e.target(),"top",a+e.yDelta()+"px")}),r(e.target(),"data-column").each(function(t){var a=us.getInt(e.target(),"left");Ot.set(e.target(),"left",a+e.xDelta()+"px")})});var o=function(e,t){return us.getInt(e,t)-parseInt(ot.get(e,"data-initial-"+t),10)};n.events.stop.bind(function(){i.get().each(function(i){l.each(function(n){r(i,"data-row").each(function(e){var t=o(i,"top");ot.remove(i,"data-initial-top"),h.trigger.adjustHeight(n,t,parseInt(e,10))}),r(i,"data-column").each(function(e){var t=o(i,"left");ot.remove(i,"data-initial-left"),h.trigger.adjustWidth(n,t,parseInt(e,10))}),gl.refresh(e,n,a,t)})})});var u=function(t,a){h.trigger.startAdjust(),i.assign(t),ot.set(t,"data-initial-"+a,parseInt(Ot.get(t,a),10)),ul.add(t,to),Ot.set(t,"opacity","0.2"),n.go(e.parent())},c=Yr.bind(e.parent(),"mousedown",function(e){gl.isRowBar(e.target())&&u(e.target(),"top"),gl.isColBar(e.target())&&u(e.target(),"left")}),d=function(t){return Ue.eq(t,e.view())},m=Yr.bind(e.view(),"mouseover",function(i){"table"===it.name(i.target())||eo.closest(i.target(),"table",d)?(l="table"===it.name(i.target())?p.some(i.target()):wt.ancestor(i.target(),"table",d)).each(function(i){gl.refresh(e,i,a,t)}):dt.inBody(i.target())&&gl.destroy(e)}),h=qr.create({adjustHeight:Or(["table","delta","row"]),adjustWidth:Or(["table","delta","column"]),startAdjust:Or([])});return{destroy:function(){c.unbind(),m.unbind(),n.destroy(),gl.destroy(e)},refresh:function(i){gl.refresh(e,i,a,t)},on:n.on,off:n.off,hideBars:s(gl.hide,e),showBars:s(gl.show,e),events:h.registry}}(e,t,a),n=qr.create({beforeResize:Or(["table"]),afterResize:Or(["table"]),startDrag:Or([])});return i.events.adjustHeight.bind(function(e){n.trigger.beforeResize(e.table());var t=a.delta(e.delta(),e.table());Es.adjustHeight(e.table(),t,e.row(),a),n.trigger.afterResize(e.table())}),i.events.startAdjust.bind(function(e){n.trigger.startDrag()}),i.events.adjustWidth.bind(function(e){n.trigger.beforeResize(e.table());var a=t.delta(e.delta(),e.table());Es.adjustWidth(e.table(),a,e.column(),t),n.trigger.afterResize(e.table())}),{on:i.on,off:i.off,hideBars:i.hideBars,showBars:i.showBars,destroy:i.destroy,events:n.registry}}var io=function(e,t){return e.inline?Nr(Os(e),function(){var e=le.fromTag("div");return Ot.setAll(e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Ft.append(dt.body(),e),e}()):Rr(le.fromDom(e.getDoc()))},no=function(e,t){e.inline&&Vt.remove(t.parent())},lo=function(e){var t,a,i=p.none(),n=p.none(),l=p.none(),s=/(\d+(\.\d+)?)%/,r=function(e){return"TABLE"===e.nodeName};return e.on("init",function(){var t=an(Ys.directionAt),a=io(e);if(l=p.some(a),function(e){var t=e.getParam("object_resizing",!0);return"table"===t||t}(e)&&function(e){return e.getParam("table_resize_bars",!0,"boolean")}(e)){var s=ao(a,t);s.on(),s.events.startDrag.bind(function(t){i=p.some(e.selection.getRng())}),s.events.beforeResize.bind(function(t){var a=t.table().dom();ur(e,a,qs(a),zs(a))}),s.events.afterResize.bind(function(t){var a=t.table(),n=a.dom();Ws(a),i.each(function(t){e.selection.setRng(t),e.focus()}),cr(e,n,qs(n),zs(n)),e.undoManager.add()}),n=p.some(s)}}),e.on("ObjectResizeStart",function(i){var n,l=i.target;r(l)&&(t=i.width,n=l,a=e.dom.getStyle(n,"width")||e.dom.getAttrib(n,"width"))}),e.on("ObjectResized",function(i){var n=i.target;if(r(n)){var l=n;if(s.test(a)){var o=parseFloat(s.exec(a)[1]),u=i.width*o/t;e.dom.setStyle(l,"width",u+"%")}else{var c=[];hr.each(l.rows,function(t){hr.each(t.cells,function(t){var a=e.dom.getStyle(t,"width",!0);c.push({cell:t,width:a})})}),hr.each(c,function(t){e.dom.setStyle(t.cell,"width",t.width),e.dom.setAttrib(t.cell,"width",null)})}}}),{lazyResize:function(){return n},lazyWire:function(){return l.getOr(Rr(le.fromDom(e.getBody())))},destroy:function(){n.each(function(e){e.destroy()}),l.each(function(t){no(e,t)})}}},so=function(e){return{fold:e}},ro=function(e){return so(function(t,a,i,n){return t(e)})},oo=function(e){return so(function(t,a,i,n){return a(e)})},uo=function(e,t){return so(function(a,i,n,l){return n(e,t)})},co=function(e){return so(function(t,a,i,n){return n(e)})},mo=function(e,t){return kt.table(e,t).bind(function(t){var a=kt.cells(t);return M(a,function(t){return Ue.eq(e,t)}).map(function(e){return{index:n(e),all:n(a)}})})},ho=function(e,t){return mo(e,t).fold(function(){return ro(e)},function(t){return t.index()+1<t.all().length?uo(e,t.all()[t.index()+1]):co(e)})},fo=function(e,t){return mo(e,t).fold(function(){return ro()},function(t){return t.index()-1>=0?uo(e,t.all()[t.index()-1]):oo(e)})},vo=li([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),po={before:vo.before,on:vo.on,after:vo.after,cata:function(e,t,a,i){return e.fold(t,a,i)},getStart:function(e){return e.fold(l,l,l)}},go=li([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),bo=j("start","soffset","finish","foffset"),_o={domRange:go.domRange,relative:go.relative,exact:go.exact,exactFromRange:function(e){return go.exact(e.start(),e.soffset(),e.finish(),e.foffset())},range:bo,getWin:function(e){var t=function(e){return e.match({domRange:function(e){return le.fromDom(e.startContainer)},relative:function(e,t){return po.getStart(e)},exact:function(e,t,a,i){return e}})}(e);return Qe.defaultView(t)}},yo=function(e,t,a,i){var n=Qe.owner(e).dom().createRange();return n.setStart(e.dom(),t),n.setEnd(a.dom(),i),n},wo=function(e,t,a,i){var n=yo(e,t,a,i),l=Ue.eq(e,a)&&t===i;return n.collapsed&&!l},xo=function(e,t){var a=(t||document).createDocumentFragment();return D(e,function(e){a.appendChild(e.dom())}),le.fromDom(a)},Co=function(e,t){e.selectNodeContents(t.dom())},Ao=function(e){e.deleteContents()},ko=function(e){return{left:n(e.left),top:n(e.top),right:n(e.right),bottom:n(e.bottom),width:n(e.width),height:n(e.height)}},Eo={create:function(e){return e.document.createRange()},replaceWith:function(e,t){Ao(e),e.insertNode(t.dom())},selectNodeContents:function(e,t){var a=e.document.createRange();return Co(a,t),a},selectNodeContentsUsing:Co,relativeToNative:function(e,t,a){var i,n=e.document.createRange();return i=n,t.fold(function(e){i.setStartBefore(e.dom())},function(e,t){i.setStart(e.dom(),t)},function(e){i.setStartAfter(e.dom())}),function(e,t){t.fold(function(t){e.setEndBefore(t.dom())},function(t,a){e.setEnd(t.dom(),a)},function(t){e.setEndAfter(t.dom())})}(n,a),n},exactToNative:function(e,t,a,i,n){var l=e.document.createRange();return l.setStart(t.dom(),a),l.setEnd(i.dom(),n),l},deleteContents:Ao,cloneFragment:function(e){var t=e.cloneContents();return le.fromDom(t)},getFirstRect:function(e){var t=e.getClientRects(),a=t.length>0?t[0]:e.getBoundingClientRect();return a.width>0||a.height>0?p.some(a).map(ko):p.none()},getBounds:function(e){var t=e.getBoundingClientRect();return t.width>0||t.height>0?p.some(t).map(ko):p.none()},isWithin:function(e,t){return t.compareBoundaryPoints(e.END_TO_START,e)<1&&t.compareBoundaryPoints(e.START_TO_END,e)>-1},toString:function(e){return e.toString()}},Do=li([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),So=function(e,t,a){return t(le.fromDom(a.startContainer),a.startOffset,le.fromDom(a.endContainer),a.endOffset)},Io=function(e,t){return function(e,t){var a=t.ltr();return a.collapsed?t.rtl().filter(function(e){return!1===e.collapsed}).map(function(e){return Do.rtl(le.fromDom(e.endContainer),e.endOffset,le.fromDom(e.startContainer),e.startOffset)}).getOrThunk(function(){return So(0,Do.ltr,a)}):So(0,Do.ltr,a)}(0,function(e,t){return t.match({domRange:function(e){return{ltr:n(e),rtl:p.none}},relative:function(t,a){return{ltr:be(function(){return Eo.relativeToNative(e,t,a)}),rtl:be(function(){return p.some(Eo.relativeToNative(e,a,t))})}},exact:function(t,a,i,n){return{ltr:be(function(){return Eo.exactToNative(e,t,a,i,n)}),rtl:be(function(){return p.some(Eo.exactToNative(e,i,n,t,a))})}}})}(e,t))},To={ltr:Do.ltr,rtl:Do.rtl,diagnose:Io,asLtrRange:function(e,t){return Io(e,t).match({ltr:function(t,a,i,n){var l=e.document.createRange();return l.setStart(t.dom(),a),l.setEnd(i.dom(),n),l},rtl:function(t,a,i,n){var l=e.document.createRange();return l.setStart(i.dom(),n),l.setEnd(t.dom(),a),l}})}},Bo=function(e,t,a){return t>=e.left&&t<=e.right&&a>=e.top&&a<=e.bottom},Mo=function(e,t,a,i,n){if(0===n)return 0;if(t===i)return n-1;for(var l=i,s=1;s<n;s++){var r=e(s),o=Math.abs(t-r.left);if(a<=r.bottom){if(a<r.top||o>l)return s-1;l=o}}return 0},Po={locate:function(e,t,a,i){var n=e.dom().createRange();n.selectNode(t.dom());var l=n.getClientRects();return In(l,function(e){return Bo(e,a,i)?p.some(e):p.none()}).map(function(n){return function(e,t,a,i,n){var l=function(a){var i=e.dom().createRange();return i.setStart(t.dom(),a),i.collapse(!0),i},s=ta.get(t).length,r=Mo(function(e){return l(e).getBoundingClientRect()},a,i,n.right,s);return l(r)}(e,t,a,i,n)})}},Lo=function(e,t,a,i){var n=e.dom().createRange(),l=Qe.children(t);return In(l,function(t){return n.selectNode(t.dom()),Bo(n.getBoundingClientRect(),a,i)?Ro(e,t,a,i):p.none()})},Ro=function(e,t,a,i){return(it.isText(t)?Po.locate:Lo)(e,t,a,i)},No=function(e,t,a,i){var n=e.dom().createRange();n.selectNode(t.dom());var l=n.getBoundingClientRect(),s=Math.max(l.left,Math.min(l.right,a)),r=Math.max(l.top,Math.min(l.bottom,i));return Ro(e,t,s,r)},Oo=function(e,t){return t-e.left<e.right-t},qo=function(e,t,a){var i=e.dom().createRange();return i.selectNode(t.dom()),i.collapse(a),i},zo=function(e,t,a){var i=e.dom().createRange();i.selectNode(t.dom());var n=i.getBoundingClientRect(),l=Oo(n,a);return(!0===l?ra.first:ra.last)(t).map(function(t){return qo(e,t,l)})},Fo=function(e,t,a){var i=t.dom().getBoundingClientRect(),n=Oo(i,a);return p.some(qo(e,t,n))},Uo=function(e,t,a){return(0===Qe.children(t).length?Fo:zo)(e,t,a)},Wo=document.caretPositionFromPoint?function(e,t,a){return p.from(e.dom().caretPositionFromPoint(t,a)).bind(function(t){if(null===t.offsetNode)return p.none();var a=e.dom().createRange();return a.setStart(t.offsetNode,t.offset),a.collapse(),p.some(a)})}:document.caretRangeFromPoint?function(e,t,a){return p.from(e.dom().caretRangeFromPoint(t,a))}:function(e,t,a){return le.fromPoint(e,t,a).bind(function(i){var n=function(){return Uo(e,i,t)};return 0===Qe.children(i).length?n():function(e,t,a,i){var n=e.dom().createRange();n.selectNode(t.dom());var l=n.getBoundingClientRect(),s=Math.max(l.left,Math.min(l.right,a)),r=Math.max(l.top,Math.min(l.bottom,i));return No(e,t,s,r)}(e,i,t,a).orThunk(n)})},Vo=function(e,t,a){var i=le.fromDom(e.document);return Wo(i,t,a).map(function(e){return _o.range(le.fromDom(e.startContainer),e.startOffset,le.fromDom(e.endContainer),e.endOffset)})},jo=function(e,t,a){var i=To.asLtrRange(e,t),n=le.fromDom(i.commonAncestorContainer);return it.isElement(n)?function(e,t,a,i){var n=Eo.create(e),l=(ce.is(t,i)?[t]:[]).concat(ft.descendants(t,i));return S(l,function(e){return Eo.selectNodeContentsUsing(n,e),Eo.isWithin(a,n)})}(e,n,i,a):[]},Ho=function(e,t){var a=it.name(e);return"input"===a?po.after(e):A(["br","img"],a)?0===t?po.before(e):po.after(e):po.on(e,t)},Ko=function(e,t){var a=e.fold(po.before,Ho,po.after),i=t.fold(po.before,Ho,po.after);return _o.relative(a,i)},Yo=function(e,t,a,i){var n=Ho(e,t),l=Ho(a,i);return _o.relative(n,l)},Qo=function(e){return e.match({domRange:function(e){var t=le.fromDom(e.startContainer),a=le.fromDom(e.endContainer);return Yo(t,e.startOffset,a,e.endOffset)},relative:Ko,exact:Yo})},Go=Ko,Jo=Yo,Xo=function(e,t){p.from(e.getSelection()).each(function(e){e.removeAllRanges(),e.addRange(t)})},Zo=function(e,t,a,i,n){var l=Eo.exactToNative(e,t,a,i,n);Xo(e,l)},$o=function(e,t){return To.diagnose(e,t).match({ltr:function(t,a,i,n){Zo(e,t,a,i,n)},rtl:function(t,a,i,n){var l=e.getSelection();if(l.setBaseAndExtent)l.setBaseAndExtent(t.dom(),a,i.dom(),n);else if(l.extend)try{!function(e,t,a,i,n,l){t.collapse(a.dom(),i),t.extend(n.dom(),l)}(0,l,t,a,i,n)}catch(l){Zo(e,i,n,t,a)}else Zo(e,i,n,t,a)}})},eu=function(e){var t=le.fromDom(e.anchorNode),a=le.fromDom(e.focusNode);return wo(t,e.anchorOffset,a,e.focusOffset)?p.some(_o.range(le.fromDom(e.anchorNode),e.anchorOffset,le.fromDom(e.focusNode),e.focusOffset)):function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),a=e.getRangeAt(e.rangeCount-1);return p.some(_o.range(le.fromDom(t.startContainer),t.startOffset,le.fromDom(a.endContainer),a.endOffset))}return p.none()}(e)},tu=function(e){return p.from(e.getSelection()).filter(function(e){return e.rangeCount>0}).bind(eu)},au={setExact:function(e,t,a,i,n){var l=Jo(t,a,i,n);$o(e,l)},getExact:tu,get:function(e){return tu(e).map(function(e){return _o.exact(e.start(),e.soffset(),e.finish(),e.foffset())})},setRelative:function(e,t,a){var i=Go(t,a);$o(e,i)},toNative:function(e){var t=_o.getWin(e).dom(),a=function(e,a,i,n){return Eo.exactToNative(t,e,a,i,n)},i=Qo(e);return To.diagnose(t,i).match({ltr:a,rtl:a})},setToElement:function(e,t){var a=Eo.selectNodeContents(e,t);Xo(e,a)},clear:function(e){e.getSelection().removeAllRanges()},clone:function(e,t){var a=To.asLtrRange(e,t);return Eo.cloneFragment(a)},replace:function(e,t,a){var i=To.asLtrRange(e,t),n=xo(a,e.document);Eo.replaceWith(i,n)},deleteAt:function(e,t){var a=To.asLtrRange(e,t);Eo.deleteContents(a)},forElement:function(e,t){var a=Eo.selectNodeContents(e,t);return _o.range(le.fromDom(a.startContainer),a.startOffset,le.fromDom(a.endContainer),a.endOffset)},getFirstRect:function(e,t){var a=To.asLtrRange(e,t);return Eo.getFirstRect(a)},getBounds:function(e,t){var a=To.asLtrRange(e,t);return Eo.getBounds(a)},getAtPoint:function(e,t,a){return Vo(e,t,a)},findWithin:function(e,t,a){return jo(e,t,a)},getAsString:function(e,t){var a=To.asLtrRange(e,t);return Eo.toString(a)},isCollapsed:function(e,t,a,i){return Ue.eq(e,a)&&t===i}},iu=tinymce.util.Tools.resolve("tinymce.util.VK"),nu=function(e,t,a,i){return ou(e,t,ho(a),i)},lu=function(e,t,a,i){return ou(e,t,fo(a),i)},su=function(e,t){var a=_o.exact(t,0,t,0);return au.toNative(a)},ru=function(e,t){var a,i=ft.descendants(t,"tr");return(a=i,0===a.length?p.none():p.some(a[a.length-1])).bind(function(e){return wt.descendant(e,"td,th").map(function(e){return su(0,e)})})},ou=function(e,t,a,i,n){return a.fold(p.none,p.none,function(e,t){return ra.first(t).map(function(e){return su(0,e)})},function(a){return kt.table(a,t).bind(function(t){var n=fi.noMenu(a);return e.undoManager.transact(function(){i.insertRowsAfter(t,n)}),ru(0,t)})})},uu=["table","li","dl"],cu={handle:function(e,t,a,i){if(e.keyCode===iu.TAB){var n=Os(t),l=function(e){var t=it.name(e);return Ue.eq(e,n)||A(uu,t)},s=t.selection.getRng();if(s.collapsed){var r=le.fromDom(s.startContainer);kt.cell(r,l).each(function(n){e.preventDefault(),(e.shiftKey?lu:nu)(t,l,n,a,i).each(function(e){t.selection.setRng(e)})})}}}},du={response:j("selection","kill")},mu=function(e){return function(t){return t===e}},hu=mu(38),fu=mu(40),vu={ltr:{isBackward:mu(37),isForward:mu(39)},rtl:{isBackward:mu(39),isForward:mu(37)},isUp:hu,isDown:fu,isNavigation:function(e){return e>=37&&e<=40}},pu={convertToRange:function(e,t){var a=To.asLtrRange(e,t);return{start:n(le.fromDom(a.startContainer)),soffset:n(a.startOffset),finish:n(le.fromDom(a.endContainer)),foffset:n(a.endOffset)}},makeSitus:function(e,t,a,i){return{start:n(po.on(e,t)),finish:n(po.on(a,i))}}},gu=qe.detect().browser.isSafari(),bu=function(e){var t=void 0!==e?e.dom():document,a=t.body.scrollLeft||t.documentElement.scrollLeft,i=t.body.scrollTop||t.documentElement.scrollTop;return Fi(a,i)},_u=function(e,t,a){(void 0!==a?a.dom():document).defaultView.scrollTo(e,t)},yu=function(e,t){gu&&w(e.dom().scrollIntoViewIfNeeded)?e.dom().scrollIntoViewIfNeeded(!1):e.dom().scrollIntoView(t)},wu={get:bu,to:_u,by:function(e,t,a){(void 0!==a?a.dom():document).defaultView.scrollBy(e,t)},preserve:function(e,t){var a=bu(e);t();var i=bu(e);a.top()===i.top()&&a.left()===i.left()||_u(a.left(),a.top(),e)},capture:function(e){var t=p.none(),a=function(){t=p.some(bu(e))};return a(),{save:a,restore:function(){t.each(function(t){_u(t.left(),t.top(),e)})}}},intoView:yu,intoViewIfNeeded:function(e,t){var a=t.dom().getBoundingClientRect(),i=e.dom().getBoundingClientRect();i.top<a.top?yu(e,!0):i.bottom>a.bottom&&yu(e,!1)},setToElement:function(e,t){var a=Vi(t),i=le.fromDom(e.document);_u(a.left(),a.top(),i)},scrollBarWidth:function(){var e=le.fromHtml('<div style="width: 100px; height: 100px; overflow: scroll; position: absolute; top: -9999px;"></div>');Ft.after(dt.body(),e);var t=e.dom().offsetWidth-e.dom().clientWidth;return Vt.remove(e),t}};function xu(e){return{elementFromPoint:function(t,a){return le.fromPoint(le.fromDom(e.document),t,a)},getRect:function(e){return e.dom().getBoundingClientRect()},getRangedRect:function(t,a,i,n){var l=_o.exact(t,a,i,n);return au.getFirstRect(e,l).map(function(e){return W(e,o)})},getSelection:function(){return au.get(e).map(function(t){return pu.convertToRange(e,t)})},fromSitus:function(t){var a=_o.relative(t.start(),t.finish());return pu.convertToRange(e,a)},situsFromPoint:function(t,a){return au.getAtPoint(e,t,a).map(function(e){return{start:n(po.on(e.start(),e.soffset())),finish:n(po.on(e.finish(),e.foffset()))}})},clearSelection:function(){au.clear(e)},setSelection:function(t){au.setExact(e,t.start(),t.soffset(),t.finish(),t.foffset())},setRelativeSelection:function(t,a){au.setRelative(e,t,a)},selectContents:function(t){au.setToElement(e,t)},getInnerHeight:function(){return e.innerHeight},getScrollY:function(){return wu.get(le.fromDom(e.document)).top()},scrollBy:function(t,a){wu.by(t,a,le.fromDom(e.document))}}}var Cu=function(e,t,a,i,n){return Ue.eq(a,i)?p.none():ei.identify(a,i,t).bind(function(t){var i=t.boxes().getOr([]);return i.length>0?(n(e,i,t.start(),t.finish()),p.some(du.response(p.some(pu.makeSitus(a,0,a,na(a))),!0))):p.none()})},Au={sync:function(e,t,a,i,n,l,s){return Ue.eq(a,n)&&i===l?p.none():wt.closest(a,"td,th",t).bind(function(a){return wt.closest(n,"td,th",t).bind(function(i){return Cu(e,t,a,i,s)})})},detect:Cu,update:function(e,t,a,i,n){return ei.shiftSelection(i,e,t,n.firstSelectedSelector(),n.lastSelectedSelector()).map(function(e){return n.clear(a),n.selectRange(a,e.boxes(),e.start(),e.finish()),e.boxes()})}},ku=J(["left","top","right","bottom"],[]),Eu={nu:ku,moveUp:function(e,t){return ku({left:e.left(),top:e.top()-t,right:e.right(),bottom:e.bottom()-t})},moveDown:function(e,t){return ku({left:e.left(),top:e.top()+t,right:e.right(),bottom:e.bottom()+t})},moveBottomTo:function(e,t){var a=e.bottom()-e.top();return ku({left:e.left(),top:t-a,right:e.right(),bottom:t})},moveTopTo:function(e,t){var a=e.bottom()-e.top();return ku({left:e.left(),top:t,right:e.right(),bottom:t+a})},getTop:function(e){return e.top()},getBottom:function(e){return e.bottom()},translate:function(e,t,a){return ku({left:e.left()+t,top:e.top()+a,right:e.right()+t,bottom:e.bottom()+a})},toString:function(e){return"("+e.left()+", "+e.top()+") -> ("+e.right()+", "+e.bottom()+")"}},Du=function(e){return Eu.nu({left:e.left,top:e.top,right:e.right,bottom:e.bottom})},Su=function(e,t){return p.some(e.getRect(t))},Iu=function(e,t,a){return it.isElement(t)?Su(e,t).map(Du):it.isText(t)?function(e,t,a){return a>=0&&a<na(t)?e.getRangedRect(t,a,t,a+1):a>0?e.getRangedRect(t,a-1,t,a):p.none()}(e,t,a).map(Du):p.none()},Tu=function(e,t){return it.isElement(t)?Su(e,t).map(Du):it.isText(t)?e.getRangedRect(t,0,t,na(t)).map(Du):p.none()},Bu=j("item","mode"),Mu=function(e,t,a,i){var n=void 0!==i?i:Pu;return e.property().parent(t).map(function(e){return Bu(e,n)})},Pu=function(e,t,a,i){var n=void 0!==i?i:Lu;return a.sibling(e,t).map(function(e){return Bu(e,n)})},Lu=function(e,t,a,i){var n=void 0!==i?i:Lu,l=e.property().children(t);return a.first(l).map(function(e){return Bu(e,n)})},Ru=[{current:Mu,next:Pu,fallback:p.none()},{current:Pu,next:Lu,fallback:p.some(Mu)},{current:Lu,next:Lu,fallback:p.some(Pu)}],Nu=function(e,t,a,i,n){return B(n=void 0!==n?n:Ru,function(e){return e.current===a}).bind(function(a){return a.current(e,t,i,a.next).orThunk(function(){return a.fallback.bind(function(a){return Nu(e,t,a,i)})})})},Ou={backtrack:Mu,sidestep:Pu,advance:Lu,go:Nu},qu={left:function(){return{sibling:function(e,t){return e.query().prevSibling(t)},first:function(e){return e.length>0?p.some(e[e.length-1]):p.none()}}},right:function(){return{sibling:function(e,t){return e.query().nextSibling(t)},first:function(e){return e.length>0?p.some(e[0]):p.none()}}}},zu=function(e,t,a,i,n,l){return Ou.go(e,t,i,n).bind(function(t){return l(t.item())?p.none():a(t.item())?p.some(t.item()):zu(e,t.item(),a,t.mode(),n,l)})},Fu=function(e,t,a,i){return zu(e,t,a,Ou.sidestep,qu.left(),i)},Uu=function(e,t,a,i){return zu(e,t,a,Ou.sidestep,qu.right(),i)},Wu=function(e,t){return 0===e.property().children(t).length},Vu=function(e,t,a,i){return Fu(e,t,a,i)},ju=function(e,t,a,i){return Uu(e,t,a,i)},Hu={before:function(e,t,a){return Vu(e,t,s(Wu,e),a)},after:function(e,t,a){return ju(e,t,s(Wu,e),a)},seekLeft:Vu,seekRight:ju,walkers:function(){return{left:qu.left,right:qu.right}},walk:function(e,t,a,i,n){return Ou.go(e,t,a,i,n)},backtrack:Ou.backtrack,sidestep:Ou.sidestep,advance:Ou.advance},Ku=pa(),Yu={gather:function(e,t,a){return Hu.gather(Ku,e,t,a)},before:function(e,t){return Hu.before(Ku,e,t)},after:function(e,t){return Hu.after(Ku,e,t)},seekLeft:function(e,t,a){return Hu.seekLeft(Ku,e,t,a)},seekRight:function(e,t,a){return Hu.seekRight(Ku,e,t,a)},walkers:function(){return Hu.walkers()},walk:function(e,t,a,i){return Hu.walk(Ku,e,t,a,i)}},Qu=li([{none:[]},{retry:["caret"]}]),Gu=function(e,t,a){return _t.closest(t,xn).fold(n(!1),function(t){return Tu(e,t).exists(function(e){return function(e,t){return e.left()<t.left()||Math.abs(t.right()-e.left())<1||e.left()>t.right()}(a,e)})})},Ju={point:Eu.getTop,adjuster:function(e,t,a,i,n){var l=Eu.moveUp(n,5);return Math.abs(a.top()-i.top())<1?Qu.retry(l):a.bottom()<n.top()?Qu.retry(l):a.bottom()===n.top()?Qu.retry(Eu.moveUp(n,1)):Gu(e,t,n)?Qu.retry(Eu.translate(l,5,0)):Qu.none()},move:Eu.moveUp,gather:Yu.before},Xu={point:Eu.getBottom,adjuster:function(e,t,a,i,n){var l=Eu.moveDown(n,5);return Math.abs(a.bottom()-i.bottom())<1?Qu.retry(l):a.top()>n.bottom()?Qu.retry(l):a.top()===n.bottom()?Qu.retry(Eu.moveDown(n,1)):Gu(e,t,n)?Qu.retry(Eu.translate(l,5,0)):Qu.none()},move:Eu.moveDown,gather:Yu.after},Zu=function(e,t,a,i,n){return 0===n?p.some(i):function(e,t,a){return e.elementFromPoint(t,a).filter(function(e){return"table"===it.name(e)}).isSome()}(e,i.left(),t.point(i))?function(e,t,a,i,n){return Zu(e,t,a,t.move(i,5),n)}(e,t,a,i,n-1):e.situsFromPoint(i.left(),t.point(i)).bind(function(l){return l.start().fold(p.none,function(l,s){return Tu(e,l,s).bind(function(s){return t.adjuster(e,l,s,a,i).fold(p.none,function(i){return Zu(e,t,a,i,n-1)})}).orThunk(function(){return p.some(i)})},p.none)})},$u=function(e,t,a){var i=e.move(a,5),n=Zu(t,e,a,i,100).getOr(i);return function(e,t,a){return e.point(t)>a.getInnerHeight()?p.some(e.point(t)-a.getInnerHeight()):e.point(t)<0?p.some(-e.point(t)):p.none()}(e,n,t).fold(function(){return t.situsFromPoint(n.left(),e.point(n))},function(a){return t.scrollBy(0,a),t.situsFromPoint(n.left(),e.point(n)-a)})},ec={tryUp:s($u,Ju),tryDown:s($u,Xu),ieTryUp:function(e,t){return e.situsFromPoint(t.left(),t.top()-5)},ieTryDown:function(e,t){return e.situsFromPoint(t.left(),t.bottom()+5)},getJumpSize:n(5)},tc=li([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),ac=function(e){return wt.closest(e,"tr")},ic={verify:function(e,t,a,i,n,l,s){return wt.closest(i,"td,th",s).bind(function(a){return wt.closest(t,"td,th",s).map(function(t){return Ue.eq(a,t)?Ue.eq(i,a)&&na(a)===n?l(t):tc.none("in same cell"):Na.sharedOne(ac,[a,t]).fold(function(){return function(e,t,a){var i=e.getRect(t),n=e.getRect(a);return n.right>i.left&&n.left<i.right}(e,t,a)?tc.success():l(t)},function(e){return l(t)})})}).getOr(tc.none("default"))},cata:function(e,t,a,i,n){return e.fold(t,a,i,n)},adt:tc},nc={point:j("element","offset"),delta:j("element","deltaOffset"),range:j("element","start","finish"),points:j("begin","end"),text:j("element","text")},lc=(j("ancestor","descendants","element","index"),j("parent","children","element","index")),sc=function(e,t){return M(e,s(Ue.eq,t))},rc=function(e){return Qe.parent(e).bind(function(t){var a=Qe.children(t);return sc(a,e).map(function(i){return lc(t,a,e,i)})})},oc=function(e){return"br"===it.name(e)},uc=function(e,t,a){return t(e,a).bind(function(e){return it.isText(e)&&0===ta.get(e).trim().length?uc(e,t,a):p.some(e)})},cc=function(e,t,a,i){return function(e,t){return Qe.child(e,t).filter(oc).orThunk(function(){return Qe.child(e,t-1).filter(oc)})}(t,a).bind(function(t){return i.traverse(t).fold(function(){return uc(t,i.gather,e).map(i.relative)},function(e){return rc(e).map(function(e){return po.on(e.parent(),e.index())})})})},dc=function(e,t,a,i){return(oc(t)?function(e,t,a){return a.traverse(t).orThunk(function(){return uc(t,a.gather,e)}).map(a.relative)}(e,t,i):cc(e,t,a,i)).map(function(e){return{start:n(e),finish:n(e)}})},mc=function(e){return ic.cata(e,function(e){return p.none()},function(){return p.none()},function(e){return p.some(nc.point(e,0))},function(e){return p.some(nc.point(e,na(e)))})},hc=qe.detect(),fc=function(e,t,a,i,n,l){return 0===l?p.none():gc(e,t,a,i,n).bind(function(s){var r=e.fromSitus(s),o=ic.verify(e,a,i,r.finish(),r.foffset(),n.failure,t);return ic.cata(o,function(){return p.none()},function(){return p.some(s)},function(s){return Ue.eq(a,s)&&0===i?vc(e,a,i,Eu.moveUp,n):fc(e,t,s,0,n,l-1)},function(s){return Ue.eq(a,s)&&i===na(s)?vc(e,a,i,Eu.moveDown,n):fc(e,t,s,na(s),n,l-1)})})},vc=function(e,t,a,i,n){return Iu(e,t,a).bind(function(t){return pc(e,n,i(t,ec.getJumpSize()))})},pc=function(e,t,a){return hc.browser.isChrome()||hc.browser.isSafari()||hc.browser.isFirefox()||hc.browser.isEdge()?t.otherRetry(e,a):hc.browser.isIE()?t.ieRetry(e,a):p.none()},gc=function(e,t,a,i,n){return Iu(e,a,i).bind(function(t){return pc(e,n,t)})},bc=function(e,t,a){return function(e,t,a){return e.getSelection().bind(function(i){return dc(t,i.finish(),i.foffset(),a).fold(function(){return p.some(nc.point(i.finish(),i.foffset()))},function(n){var l=e.fromSitus(n),s=ic.verify(e,i.finish(),i.foffset(),l.finish(),l.foffset(),a.failure,t);return mc(s)})})}(e,t,a).bind(function(i){return fc(e,t,i.element(),i.offset(),a,20).map(e.fromSitus)})},_c=function(e,t,a){return _t.ancestor(e,t,a).isSome()},yc=qe.detect(),wc=function(e,t,a,i,l){return wt.closest(i,"td,th",t).bind(function(i){return wt.closest(i,"table",t).bind(function(s){return function(e,t){return _c(e,function(e){return Qe.parent(e).exists(function(e){return Ue.eq(e,t)})})}(l,s)?bc(e,t,a).bind(function(e){return wt.closest(e.finish(),"td,th",t).map(function(t){return{start:n(i),finish:n(t),range:n(e)}})}):p.none()})})},xc=function(e,t,a,i,n,l){return yc.browser.isIE()?p.none():l(i,t).orThunk(function(){return wc(e,t,a,i,n).map(function(e){var t=e.range();return du.response(p.some(pu.makeSitus(t.start(),t.soffset(),t.finish(),t.foffset())),!0)})})},Cc=function(e,t,a,i,n,l,s){return wc(e,a,i,n,l).bind(function(e){return Au.detect(t,a,e.start(),e.finish(),s)})},Ac=function(e,t){return wt.closest(e,"tr",t).bind(function(e){return wt.closest(e,"table",t).bind(function(a){var i=ft.descendants(a,"tr");return Ue.eq(e,i[0])?Yu.seekLeft(a,function(e){return ra.last(e).isSome()},t).map(function(e){var t=na(e);return du.response(p.some(pu.makeSitus(e,t,e,t)),!0)}):p.none()})})},kc=function(e,t){return wt.closest(e,"tr",t).bind(function(e){return wt.closest(e,"table",t).bind(function(a){var i=ft.descendants(a,"tr");return Ue.eq(e,i[i.length-1])?Yu.seekRight(a,function(e){return ra.first(e).isSome()},t).map(function(e){return du.response(p.some(pu.makeSitus(e,0,e,0)),!0)}):p.none()})})},Ec=function(e,t){return wt.closest(e,"td,th",t)},Dc={down:{traverse:Qe.nextSibling,gather:Yu.after,relative:po.before,otherRetry:ec.tryDown,ieRetry:ec.ieTryDown,failure:ic.adt.failedDown},up:{traverse:Qe.prevSibling,gather:Yu.before,relative:po.before,otherRetry:ec.tryUp,ieRetry:ec.ieTryUp,failure:ic.adt.failedUp}},Sc=j("rows","cols"),Ic={mouse:function(e,t,a,i){var n=function(e,t,a,i){var n=p.none(),l=function(){n=p.none()};return{mousedown:function(e){i.clear(t),n=Ec(e.target(),a)},mouseover:function(l){n.each(function(n){i.clear(t),Ec(l.target(),a).each(function(l){ei.identify(n,l,a).each(function(a){var s=a.boxes().getOr([]);(s.length>1||1===s.length&&!Ue.eq(n,l))&&(i.selectRange(t,s,a.start(),a.finish()),e.selectContents(l))})})})},mouseup:function(){n.each(l)}}}(xu(e),t,a,i);return{mousedown:n.mousedown,mouseover:n.mouseover,mouseup:n.mouseup}},keyboard:function(e,t,a,i){var n=xu(e),l=function(){return i.clear(t),p.none()};return{keydown:function(e,r,o,u,c,d){var m=e.raw().which,h=!0===e.raw().shiftKey;return ei.retrieve(t,i.selectedSelector()).fold(function(){return vu.isDown(m)&&h?s(Cc,n,t,a,Dc.down,u,r,i.selectRange):vu.isUp(m)&&h?s(Cc,n,t,a,Dc.up,u,r,i.selectRange):vu.isDown(m)?s(xc,n,a,Dc.down,u,r,kc):vu.isUp(m)?s(xc,n,a,Dc.up,u,r,Ac):p.none},function(e){var a=function(a){return function(){return In(a,function(a){return Au.update(a.rows(),a.cols(),t,e,i)}).fold(function(){return ei.getEdges(t,i.firstSelectedSelector(),i.lastSelectedSelector()).map(function(e){var a=vu.isDown(m)||d.isForward(m)?po.after:po.before;return n.setRelativeSelection(po.on(e.first(),0),a(e.table())),i.clear(t),du.response(p.none(),!0)})},function(e){return p.some(du.response(p.none(),!0))})}};return vu.isDown(m)&&h?a([Sc(1,0)]):vu.isUp(m)&&h?a([Sc(-1,0)]):d.isBackward(m)&&h?a([Sc(0,-1),Sc(-1,0)]):d.isForward(m)&&h?a([Sc(0,1),Sc(1,0)]):vu.isNavigation(m)&&!1===h?l:p.none})()},keyup:function(e,n,l,s,r){return ei.retrieve(t,i.selectedSelector()).fold(function(){var o=e.raw().which;return 0==(!0===e.raw().shiftKey)?p.none():vu.isNavigation(o)?Au.sync(t,a,n,l,s,r,i.selectRange):p.none()},p.none)}}}},Tc=function(e,t){D(t,function(t){ul.remove(e,t)})},Bc=function(e){return function(t){ul.add(t,e)}},Mc=function(e){return function(t){Tc(t,e)}},Pc={byClass:function(e){var t=Bc(e.selected()),a=Mc([e.selected(),e.lastSelected(),e.firstSelected()]),i=function(t){var i=ft.descendants(t,e.selectedSelector());D(i,a)};return{clear:i,selectRange:function(a,n,l,s){i(a),D(n,t),ul.add(l,e.firstSelected()),ul.add(s,e.lastSelected())},selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},byAttr:function(e){var t=function(t){ot.remove(t,e.selected()),ot.remove(t,e.firstSelected()),ot.remove(t,e.lastSelected())},a=function(t){ot.set(t,e.selected(),"1")},i=function(a){var i=ft.descendants(a,e.selectedSelector());D(i,t)};return{clear:i,selectRange:function(t,n,l,s){i(t),D(n,a),ot.set(l,e.firstSelected(),"1"),ot.set(s,e.lastSelected(),"1")},selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}}},Lc=function(e){return!1===ul.has(le.fromDom(e.target),"ephox-snooker-resizer-bar")},Rc=function(e){return{get:function(){var t=Os(e);return ti(t,ni.selectedSelector()).fold(function(){return void 0===e.selection.getStart()?ri.none():ri.single(e.selection)},function(e){return ri.multiple(e)})}}},Nc=hr.each,Oc={addButtons:function(e){var t=[];function a(t){return function(){e.execCommand(t)}}Nc("inserttable tableprops deletetable | cell row column".split(" "),function(a){"|"===a?t.push({text:"-"}):t.push(e.menuItems[a])}),e.addButton("table",{type:"menubutton",title:"Table",menu:t}),e.addButton("tableprops",{title:"Table properties",onclick:a("mceTableProps"),icon:"table"}),e.addButton("tabledelete",{title:"Delete table",onclick:a("mceTableDelete")}),e.addButton("tablecellprops",{title:"Cell properties",onclick:a("mceTableCellProps")}),e.addButton("tablemergecells",{title:"Merge cells",onclick:a("mceTableMergeCells")}),e.addButton("tablesplitcells",{title:"Split cell",onclick:a("mceTableSplitCells")}),e.addButton("tableinsertrowbefore",{title:"Insert row before",onclick:a("mceTableInsertRowBefore")}),e.addButton("tableinsertrowafter",{title:"Insert row after",onclick:a("mceTableInsertRowAfter")}),e.addButton("tabledeleterow",{title:"Delete row",onclick:a("mceTableDeleteRow")}),e.addButton("tablerowprops",{title:"Row properties",onclick:a("mceTableRowProps")}),e.addButton("tablecutrow",{title:"Cut row",onclick:a("mceTableCutRow")}),e.addButton("tablecopyrow",{title:"Copy row",onclick:a("mceTableCopyRow")}),e.addButton("tablepasterowbefore",{title:"Paste row before",onclick:a("mceTablePasteRowBefore")}),e.addButton("tablepasterowafter",{title:"Paste row after",onclick:a("mceTablePasteRowAfter")}),e.addButton("tableinsertcolbefore",{title:"Insert column before",onclick:a("mceTableInsertColBefore")}),e.addButton("tableinsertcolafter",{title:"Insert column after",onclick:a("mceTableInsertColAfter")}),e.addButton("tabledeletecol",{title:"Delete column",onclick:a("mceTableDeleteCol")})},addToolbars:function(e){var t=function(e){var t=e.getParam("table_toolbar",Qs);return""===t||!1===t?[]:b(t)?t.split(/[ ,]/):_(t)?t:[]}(e);t.length>0&&e.addContextToolbar(function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},t.join(" "))}},qc={addMenuItems:function(e,t){var a=p.none(),i=[],n=[],l=[],s=[],r=function(e){e.disabled(!0)},o=function(e){e.disabled(!1)},u=function(){var e=this;i.push(e),a.fold(function(){r(e)},function(t){o(e)})},c=function(){var e=this;n.push(e),a.fold(function(){r(e)},function(t){o(e)})};e.on("init",function(){e.on("nodechange",function(u){var c=p.from(e.dom.getParent(e.selection.getStart(),"th,td"));(a=c.bind(function(e){var a=le.fromDom(e);return kt.table(a).map(function(e){return fi.forMenu(t,e,a)})})).fold(function(){D(i,r),D(n,r),D(l,r),D(s,r)},function(e){D(i,o),D(n,o),D(l,function(t){t.disabled(e.mergable().isNone())}),D(s,function(t){t.disabled(e.unmergable().isNone())})})})});var d=function(e,t,a,i){var n,l,s,r,o,u=i.getEl().getElementsByTagName("table")[0],c=i.isRtl()||"tl-tr"===i.parent().rel;for(u.nextSibling.innerHTML=t+1+" x "+(a+1),c&&(t=9-t),l=0;l<10;l++)for(n=0;n<10;n++)r=u.rows[l].childNodes[n].firstChild,o=(c?n>=t:n<=t)&&l<=a,e.dom.toggleClass(r,"mce-active",o),o&&(s=r);return s.parentNode},m=!1===function(e){return e.getParam("table_grid",!0,"boolean")}(e)?{text:"Table",icon:"table",context:"table",onclick:h("mceInsertTable")}:{text:"Table",icon:"table",context:"table",ariaHideMenu:!0,onclick:function(t){t.aria&&(this.parent().hideAll(),t.stopImmediatePropagation(),e.execCommand("mceInsertTable"))},onshow:function(){d(e,0,0,this.menu.items()[0])},onhide:function(){var t=this.menu.items()[0].getEl().getElementsByTagName("a");e.dom.removeClass(t,"mce-active"),e.dom.addClass(t[0],"mce-active")},menu:[{type:"container",html:function(){var e="";e='<table role="grid" class="mce-grid mce-grid-border" aria-readonly="true">';for(var t=0;t<10;t++){e+="<tr>";for(var a=0;a<10;a++)e+='<td role="gridcell" tabindex="-1"><a id="mcegrid'+(10*t+a)+'" href="#" data-mce-x="'+a+'" data-mce-y="'+t+'"></a></td>';e+="</tr>"}return e+="</table>",e+='<div class="mce-text-center" role="presentation">1 x 1</div>'}(),onPostRender:function(){this.lastX=this.lastY=0},onmousemove:function(t){var a,i,n=t.target;"A"===n.tagName.toUpperCase()&&(a=parseInt(n.getAttribute("data-mce-x"),10),i=parseInt(n.getAttribute("data-mce-y"),10),(this.isRtl()||"tl-tr"===this.parent().rel)&&(a=9-a),a===this.lastX&&i===this.lastY||(d(e,a,i,t.control),this.lastX=a,this.lastY=i))},onclick:function(t){var a=this;"A"===t.target.tagName.toUpperCase()&&(t.preventDefault(),t.stopPropagation(),a.parent().cancel(),e.undoManager.transact(function(){Ir(e,a.lastX+1,a.lastY+1)}),e.addVisual())}}]};function h(t){return function(){e.execCommand(t)}}var f={text:"Table properties",context:"table",onPostRender:u,onclick:h("mceTableProps")},v={text:"Delete table",context:"table",onPostRender:u,cmd:"mceTableDelete"},g={text:"Row",context:"table",menu:[{text:"Insert row before",onclick:h("mceTableInsertRowBefore"),onPostRender:c},{text:"Insert row after",onclick:h("mceTableInsertRowAfter"),onPostRender:c},{text:"Delete row",onclick:h("mceTableDeleteRow"),onPostRender:c},{text:"Row properties",onclick:h("mceTableRowProps"),onPostRender:c},{text:"-"},{text:"Cut row",onclick:h("mceTableCutRow"),onPostRender:c},{text:"Copy row",onclick:h("mceTableCopyRow"),onPostRender:c},{text:"Paste row before",onclick:h("mceTablePasteRowBefore"),onPostRender:c},{text:"Paste row after",onclick:h("mceTablePasteRowAfter"),onPostRender:c}]},b={text:"Column",context:"table",menu:[{text:"Insert column before",onclick:h("mceTableInsertColBefore"),onPostRender:c},{text:"Insert column after",onclick:h("mceTableInsertColAfter"),onPostRender:c},{text:"Delete column",onclick:h("mceTableDeleteCol"),onPostRender:c}]},_={separator:"before",text:"Cell",context:"table",menu:[{text:"Cell properties",onclick:h("mceTableCellProps"),onPostRender:c},{text:"Merge cells",onclick:h("mceTableMergeCells"),onPostRender:function(){var e=this;l.push(e),a.fold(function(){r(e)},function(t){e.disabled(t.mergable().isNone())})}},{text:"Split cell",onclick:h("mceTableSplitCells"),onPostRender:function(){var e=this;s.push(e),a.fold(function(){r(e)},function(t){e.disabled(t.unmergable().isNone())})}}]};e.addMenuItem("inserttable",m),e.addMenuItem("tableprops",f),e.addMenuItem("deletetable",v),e.addMenuItem("row",g),e.addMenuItem("column",b),e.addMenuItem("cell",_)}},zc=function(e,t){return{insertTable:function(t,a){return Ir(e,t,a)},setClipboardRows:function(e){return function(e,t){var a=E(e,le.fromDom);t.set(p.from(a))}(e,t)},getClipboardRows:function(){return function(e){return e.get().fold(function(){},function(e){return E(e,function(e){return e.dom()})})}(t)}}};t.add("table",function(e){var t=lo(e),l=function(e,t){var l=J(["mousedown","mouseover","mouseup","keyup","keydown"],[]),s=p.none(),r=Pc.byAttr(ni);return e.on("init",function(o){var u=e.getWin(),c=Os(e),d=Fs(e),m=Ic.mouse(u,c,d,r),h=Ic.keyboard(u,c,d,r),f=function(t,a){(function(e){return!0===e.raw().shiftKey})(t)&&(a.kill()&&t.kill(),a.selection().each(function(t){var a=_o.relative(t.start(),t.finish()),i=To.asLtrRange(u,a);e.selection.setRng(i)}))},v=function(t){var a=_(t);if(a.raw().shiftKey&&vu.isNavigation(a.raw().which)){var i=e.selection.getRng(),n=le.fromDom(i.startContainer),l=le.fromDom(i.endContainer);h.keyup(a,n,i.startOffset,l,i.endOffset).each(function(e){f(a,e)})}},g=function(a){var i=_(a);t().each(function(e){e.hideBars()});var n=e.selection.getRng(),l=le.fromDom(e.selection.getStart()),s=le.fromDom(n.startContainer),r=le.fromDom(n.endContainer),o=Ys.directionAt(l).isRtl()?vu.rtl:vu.ltr;h.keydown(i,s,n.startOffset,r,n.endOffset,o).each(function(e){f(i,e)}),t().each(function(e){e.showBars()})},b=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},_=function(e){var t=le.fromDom(e.target),a=function(){e.stopPropagation()},l=function(){e.preventDefault()},s=i(l,a);return{target:n(t),x:n(b(e)?e.x:null),y:n(b(e)?e.y:null),stop:a,prevent:l,kill:s,raw:n(e)}},y=function(e){return 0===e.button},w=function(e){y(e)&&Lc(e)&&m.mousedown(_(e))},x=function(e){var t;void 0!==(t=e).buttons&&0==(1&t.buttons)||!Lc(e)||m.mouseover(_(e))},C=function(e){y(e)&&Lc(e)&&m.mouseup(_(e))};e.on("mousedown",w),e.on("mouseover",x),e.on("mouseup",C),e.on("keyup",v),e.on("keydown",g),e.on("nodechange",function(){var t=e.selection,i=le.fromDom(t.getStart()),n=le.fromDom(t.getEnd());Na.sharedOne(kt.table,[i,n]).fold(function(){r.clear(c)},a)}),s=p.some(l({mousedown:w,mouseover:x,mouseup:C,keyup:v,keydown:g}))}),{clear:r.clear,destroy:function(){s.each(function(e){})}}}(e,t.lazyResize),s=dr(e,t.lazyWire),r=Rc(e),o=sn(p.none());return Lr.registerCommands(e,s,l,r,o),vi.registerEvents(e,r,s,l),qc.addMenuItems(e,r),Oc.addButtons(e),Oc.addToolbars(e),e.on("PreInit",function(){e.serializer.addTempAttr(ni.firstSelected()),e.serializer.addTempAttr(ni.lastSelected())}),Zs(e)&&e.on("keydown",function(a){cu.handle(a,e,s,t.lazyWire)}),e.on("remove",function(){t.destroy(),l.destroy()}),zc(e,o)})}()},"6pUE":function(e,t){e.exports={N:"北",NE:"东北",E:"东",SE:"东南",S:"南",SW:"西南",W:"西",NW:"西北",C:"静风"}},"75l9":function(e,t){e.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}},"7PYG":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAfmklEQVR4Xu2cB3hVRdrH/3PK7SU9pJMQpATpTekgoiICqwFRYXct6KKo67qiLi7ZFVdQdxEQUEDdRdaCBUUUULpShCAQkBoIkEqSm3L7vafM98y5CQZkBUIC4Xsyz4OJ556ZM/P+5q1nbgiaW5OSAGlSs2meDJqBNLFN0AykGUgTk0ATm06zhjQDaWISaGLTadaQZiBNTAJNbDrNGtIMpIlJoIlNp1lDmoE0MQk0sek0a0gzkCYmgSY2nWYNaQbSxCTQxKbTrCHNQC5eAvQLWMlIuC6+x7V/Z5PRELoGMWQYSn9NpPRr6GGESAbBfe2L/vwraDJA/r8K+FLXdVWBaDtegu5cs0S/hZ0MRfXFLIauQ1cyBD9ezL3Xwj1XFUhdAdHtwiDSW97ArtFsiKQ7JEpB8DcQtAdBdJ33/2WgOACKaaCEgF4Lgr7YOTYdIDMRT6agiC4DDw9ERECEB3qYoUMAAsxCS3iEfIh+DqpBhuD3w2yV4XEFIaYH4c6VyRgoGsQVsFyrwUCTAEIBgmUQUQkjABNMsIHABgUWGGAEx4vgaRxASiFomiJDRBhkUgyOVEDPOWHiPAgIAVhd1Uy7zrcju98y4+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rVq2aLdI5NGPpKQGDvE7QqeAcIyeJ1eAKVq2fbv9sxf/tE3XwqKfGLHupcvqsh4MXNozHuuCpDaBbVvn6U7cCAr9Oc1LrEx3+RSpbShg7t1zxw74Emb1dqmuCIIUcf7D/+U+/6ShSuWut3eI3vXv8S+gHnN/G3fqwrkEhmc9/Zev8lK9HmU1In33zY8oWVc938vXjmv4FhJDqpLT11KSaYh5tIQY1zzQDQhDMwSOlv4VNnvEjgu+lTON3/2NIRwrsYY/z+AXA3JNdIzm4E0kmDrO2wzkPpKrpH6NQNpJMHWd9hmIPWVXCP1awbSSIKt77DNQOoruUbq1wykkQRb32GbgdRXco3UrxlIIwm2vsM2A6mv5BqpXzOQRhJsfYdtBlJfyTVSv2YgjSTY+g7bDKS+kmukfs1AGkmw9R22GUh9JddI/ZqBNJJg6ztsM5D6Sq6R+v0fqyOMGdULzOcAAAAASUVORK5CYII="},"7u95":function(e,t,a){a("pA9f")},"8GUV":function(e,t){},"8kZv":function(e,t){},"8orY":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABHNCSVQICAgIfAhkiAAABShJREFUWIXNWL9rI0cUfm9GWucWJO9/cIakDFHgykB82L1dpD8Tu7/CLqQx7C3rtT0yJAZfrgr4QNfnwO5jkOsYrEC6K3R9ipUNQtbtzKTIrpgd7a60ZxX3gUDzc7+ZefPe9waVUhS+YFQAADjnzv39/YaUclMp5RQNQMQQEW/1OkJI17Ksged5vUUTRKUUZYxtSSnPFzIhYl8p9ZEQ0qeUXhweHl4+mmCz2XwPABuLIJj5EcQLROxWKpXLIAj6ZcaSeILCY30slFKbUsrT8Xj8odVq/co5n/t7qJSirVbrrVLqRVJJKT2glHbzBkVRtIKIT5OylPJ5TOTHOb8bEkLO6vX6b4yxsKhjBQCAENIXQqQagiDIJQgAZttB8odz7gyHw0YURZsx8e8yxjtSSi8Mw+cAsD6T4CIR70g3/gHn3Lm7u9uUUr4CgKdG91XG2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YAcF13VU8r9vf3XwkhsvLgnuM46/p7zVwEE5KDweA0a/VzIqSU7iRmEb9JnsL0yYS2ba8n0WTunIQxFrbb7W3Lsr6ZFd5y4AghJnlvHDbXYFpxO8Ph8CYJDqWTpiAI+u12e82yrHVCiJnhFQIRUwlUcsOzFpwoqbmPuAhxDN4EgGVdiSf5RUyg/+TJk7O8d2zTLpObvRCCi4LruqvxzvXq9foFYyz8oghm4T+x6aom2d5uHAAAAABJRU5ErkJggg=="},"8raw":function(e,t){},"9B12":function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys__=__webpack_require__("fZjL"),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys__),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__=__webpack_require__("mvHQ"),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__),__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_get_iterator__=__webpack_require__("BO1k"),__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_get_iterator___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_get_iterator__),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty__=__webpack_require__("bOdI"),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty__),__WEBPACK_IMPORTED_MODULE_4_vue__=__webpack_require__("7+uW"),__WEBPACK_IMPORTED_MODULE_5_Vue_Picture_BD_Marker__=__webpack_require__("GtmN"),__WEBPACK_IMPORTED_MODULE_5_Vue_Picture_BD_Marker___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_Vue_Picture_BD_Marker__),__WEBPACK_IMPORTED_MODULE_6_v_viewer__=__webpack_require__("EAZf"),__WEBPACK_IMPORTED_MODULE_6_v_viewer___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_v_viewer__),__WEBPACK_IMPORTED_MODULE_7_viewerjs_dist_viewer_css__=__webpack_require__("N1kN"),__WEBPACK_IMPORTED_MODULE_7_viewerjs_dist_viewer_css___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_viewerjs_dist_viewer_css__),imgIndex=null;__WEBPACK_IMPORTED_MODULE_4_vue__.default.use(__WEBPACK_IMPORTED_MODULE_6_v_viewer___default.a),__webpack_exports__.a={data:function(){var e;return e={isShuaxin:!1,imgTime:"",isShow:!1,left:0,top:0,leftLgImg:0,topLgImg:0,downTab:!1,deleTab:!1,equipStatusObj:{name:this.$route.query.name,addr:this.$route.query.addr,disable:this.$route.query.disable,identify_model:this.$route.query.identify_model},zanwu:"/images/expertDiagnosis/zanwu.png",enlargement:!1,enlargementImg:!0,loading:!1,tltName:"",id:this.$route.params.id,equipStatus:"0",equipList:[],delBtnState:!0,downBtnState:!0,handAddState:1,checkList:[],f_id:"",ename:"",page:1,timeRange:"",dver:"",highlight:"",currImei:"",itemId:"",selectItem:"",searchVal:"",form:{pest_num:"",crop_name:"",pest_case:"",pest_name:""},queryInfo:{begin:"",end:"",page:1,is_online:"",dver:""},totalNum:0,discernVisible:!1,handAddVisible:!1,handAddDataVisible:!1,value:!1,handControlSwitch:[],handleEditData:"",reaTimeStatusList:[],threshold:[],timeControl:[{id:1,name:"开关一",num:"e1",time:"2020",duration:2,state:!0}],imgDataList:[],imgListShow:!0,reInsectList:[],addFunData:{},recognitionData:[],idList:[]},__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"timeRange",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"againData",{}),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"btnShow",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"griddingShow",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"griddingTxt",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"imageListtData",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"recognitionImage",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"temporaryImage",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"iconShow",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"iconIf",!0),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"iconShowA",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"imgInfo",{}),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"cy_id",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"times",50),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"imgTagDataVisible",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"uuid","0da9130"),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"readOnly",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"currentImage",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"tagImgId",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"imgMark",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"setdata",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"setdataNum",{}),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"tagName2",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"lookWormName",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"btnOperation",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"typeOperation",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"rainControl",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"griddingImgs",[{img:"../../../../static/images/gridding/1.png"},{img:"../../../../static/images/gridding/2.png"},{img:"../../../../static/images/gridding/2.png"}]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"checkListA",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"activeNames",["1"]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"operation",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"selectedList",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"dataList",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"recognitionImageA",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"selectList",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"preventParent",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"listShow",!0),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"dialogVisible",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"value2",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"checkListData",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"listIndex",null),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"listidentification",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"listIndexA",null),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"imagesListData",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"showLen",10),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"loadingMore",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"notAvailableShow",!0),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"disable",null),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"dataA",[{label:"一级 1",children:[{label:"二级 1-1",children:[{label:"三级 1-1-1"}]}]},{label:"一级 2",children:[{label:"二级 2-1",children:[{label:"三级 2-1-1"}]},{label:"二级 2-2",children:[{label:"三级 2-2-1"}]}]},{label:"一级 3",children:[{label:"二级 3-1",children:[{label:"三级 3-1-1"}]},{label:"二级 3-2",children:[{label:"三级 3-2-1"}]}]}]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"deviceAddTimeNum",null),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"defaultProps",{children:"children",label:"label"}),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"screenTimeList",[{name:"一周"},{name:"一月"},{name:"一年"}]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"pictureDetails",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"pictureDetailsFunDataObj",{}),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"cbdPest",{}),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"disableVal",null),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"sign",null),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"timeScreenData",null),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"timeData",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"imgShow",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"imgDiscern",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"labelArr",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"labelShow",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"isIndeterminate",!0),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"checkAll",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"wormy",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"isPageOne",!0),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"timearr",[]),e},mounted:function(){this.imgListData(),this.standardization();var e=localStorage.getItem("time_begin");this.currentPage=localStorage.getItem("cbdpage")?Number(localStorage.getItem("cbdpage")):1,localStorage.getItem("cbdpage")&&(this.isPageOne=!1),localStorage.removeItem("cbdpage"),e&&(this.queryInfo.begin=localStorage.getItem("time_begin"),this.queryInfo.end=localStorage.getItem("time_end"),localStorage.removeItem("time_begin"),localStorage.removeItem("time_end"))},computed:{userType:function(){return window.sessionStorage.getItem("myuser_type")},tagName:{get:function(){return this.tagName2},set:function(e){this.tagName2=e.replace(/[\w]/g,"")}},noMore:{get:function(){if(0!==this.imagesListData.length&&null!==this.listIndex)return null==this.listIndex?this.showLen>this.imagesListData[0].img.length:this.showLen>this.imagesListData[this.listIndex].img.length},set:function(){}},disabledA:function(){return this.loadingMore||this.noMore},countData:function(){if(this.imagesListData,0!==this.imagesListData.length&&null!==this.listIndex)return this.imagesListData[this.listIndex].img.length>10?this.imagesListData[this.listIndex].img.slice(0,this.showLen):this.imagesListData[this.listIndex].img},pageChange:function(){return this.currentPage}},watch:{handAddVisible:function(e){0==e&&(this.handAddState=1,this.selectItem="",this.checkList=[],this.form.pest_num="",this.form.crop_name="",this.form.pest_case="",this.form.pest_name="")},discernVisible:function(e){0==e?(this.recognitionData=[],this.recognitionImage=[],this.recognitionImage,this.enlargement=!1,this.enlargementImg=!0,this.griddingShow=!1,this.btnShow=!1,this.notAvailableShow=!0):this.griddingTxt="使用辅助线"},delBtnState:function(e){1==e&&(this.idList=[])},enlargementImg:function(e){1==e&&(this.btnShow=!1)},btnShow:function(e){!1===e&&(this.griddingTxt="使用辅助线")},griddingShow:function(e){this.griddingTxt=!0===e?"关闭辅助线":"使用辅助线"},selectedList:function(e){},imgDataList:function(e){if(null!==this.listIndex&&0==e[this.listIndex].checked&&"1"==this.listidentification){e[this.listIndex].checked=!0,e[this.listIndex].tltTxt="收起";for(var t=0;t<e.length;t++)t!==this.listIndex&&(e[t].checked=!1,e[t].tltTxt="展开");this.listidentification=""}},loadingMore:function(e){},noMore:function(e){},pageChange:function(e){this.equipStatusCheck("4")},downBtnState:function(e){1==e&&(this.dataList=[],this.idList=[])},pictureDetails:function(e){},iconShow:function(e){}},methods:{backtrack:function(){this.$router.go(-1)},enter:function(){this.isShow=!0},leave:function(){this.isShow=!1},marks:function(e){this.left=e.offsetX-50,this.top=e.offsetY-50,this.left<0?this.left=0:this.left>225&&(this.left=225),this.top<0?this.top=0:this.top>225&&(this.top=225),this.leftLgImg=400*-this.left/325-90,this.topLgImg=400*-this.top/325},errImg:function(e){e.target.src=$http+"/images/expertDiagnosis/ku/noData.jpg"},handleCheckAllChange:function(e){if(1==e){for(var t=[],a=[],i=0;i<this.imgDataList.length;i++)t.push(this.imgDataList[i].ids),a.push(this.imgDataList[i]);this.idList=t,this.dataList=a,this.idList,this.dataList}else 0==e&&(this.idList=[],this.dataList=[],this.idList,this.dataList);this.isIndeterminate=!1},equipStatusCheck:function(e){var t=this;if(this.active=e,0==e&&this.equipBtnControl("takephoto"),1==e&&(this.isShuaxin||(this.isShuaxin=!0,this.imgListData(),0==document.getElementsByClassName("el-message").length&&this.$message.success("图片刷新成功"))),2==e&&(this.imgDataList.map(function(e){e.disabled=!0}),this.delBtnState=!0,this.deleTab=!0,this.downBtnState=!this.downBtnState,this.downTab=!1),3==e&&(0==this.idList.length?this.$message.warning("请选择要删除的图片!"):this.delImgFun(this.idList)),4==e&&(this.imgDataList.map(function(e){e.disabled=!1}),this.delBtnState=!0,this.idList=[],this.dataList=[],this.deleTab=!1,this.checkAll=!1,this.delBtnState,this.downBtnState),5==e&&this.delImgFun(""),6==e&&this.$router.push("/index/messageWarn/"+this.id),7==e&&(this.deleTab,this.downBtnState=!this.downBtnState,this.downTab=!0,this.deleTab=!1),8==e){for(var a=[],i=0;i<this.dataList.length;i++)a.push(this.dataList[i].ids);a.length?this.$axios({method:"POST",url:"api/img_download",data:this.qs.stringify({img_id:a.join(","),device_type:5}),headers:{"Content-Type":"application/x-www-form-urlencoded"},responseType:"blob"}).then(function(e){var t=document.createElement("a");t.download="img.zip",t.style.display="none";var a=new Blob([e.data],{type:"application/zip"}),i=URL.createObjectURL(a);t.href=i,document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(i)}).catch(function(){0==document.getElementsByClassName("el-message").length&&t.$message.error("请求图片资源超时,请稍后重试")}):0==document.getElementsByClassName("el-message").length&&this.$message.warning("请选择下载图片")}9==e&&(this.imgDataList.map(function(e){e.checked=!1}),this.checkListData=[],this.downBtnState=!this.downBtnState,this.isIndeterminate=!1,this.checkAll=!1,this.deleTab=!1,this.downTab=!1,this.idList=[],this.dataList=[],this.delBtnState,this.downBtnState),10==e&&("开启识别"==this.btnOperation?this.$confirm("确认开启识别状态?").then(function(e){t.operationDiscern("enable")}).catch(function(e){}):"禁止识别"==this.btnOperation&&this.$confirm("确认关闭识别状态?").then(function(e){t.operationDiscern("disable")}).catch(function(e){})),11==e&&(this.wormy=!this.wormy,this.imgListData())},stopDefault:function(e,t){-1==this.idList.indexOf(t.ids)?(this.idList.push(t.ids),this.dataList.push(t)):(this.idList.splice(this.idList.indexOf(t.ids),1),this.dataList.splice(this.dataList.indexOf(t.ids),1)),this.idList,this.dataList},equipBtnControl:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.send_control.admin_device_control",data:this.qs.stringify({cmd:e,device_type_id:3,d_id:this.$route.query.d_id})}).then(function(e){""==e.data.message&&t.$message.success("指令下发成功!")})},DateChange:function(){this.currentPage=1,this.timeRange?(this.queryInfo.begin=parseInt(new Date(this.timeRange[0]).getTime()/1e3),this.queryInfo.end=parseInt(new Date(this.timeRange[1]).getTime()/1e3)):(this.queryInfo.begin="",this.queryInfo.end=""),this.imgListData()},changePage:function(e){this.listIndex=null,this.currentPage=e,this.imgListData()},searchEquipList:function(){1==this.selectItem?this.f_id=this.searchVal:2==this.selectItem&&(this.ename=this.searchVal)},dataDetails:function(e){this.highlight=0,this.currImei=e,this.$router.push("/cbdDataDetails/"+e)},handAddFun:function(){this.imageListtData=!1,this.handAddVisible=!0,this.$viewer.hide(),this.tltName="手动添加",this.InsectListData()},handAddDataFun:function(){this.$viewer.hide(),this.handAddDataVisible=!0,this.statisticsData(this.addFunData.ids)},discernFun:function(){this.loading=!0,this.discernFunData()},discernFunData:function(){var e=this,t=this;t.againData=this.addFunData;var a=t.qs.stringify({img_id:this.addFunData.ids,ret:"see",device_type:"cbd",identify_model:this.equipStatusObj.identify_model});t.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_discern",data:a}).then(function(a){if(t.loading=!1,""==a.data.message){var i={};i.indentify_photo=a.data.data.image,i.addr=e.pictureDetailsFunDataObj.addr,i.addtime=e.pictureDetailsFunDataObj.addtime,i.describe=e.pictureDetailsFunDataObj.describe,i.device_id=e.pictureDetailsFunDataObj.device_id,i.ids=e.pictureDetailsFunDataObj.ids,i.mark=e.pictureDetailsFunDataObj.mark,i.time=e.pictureDetailsFunDataObj.time;for(var n=a.data.data.result,l=[],s=0;s<n.length;s++)l.push({data:[n[s].number,n[s].nums],index:s});i.insectSumArr=l;var r=0;i.insectSum=l.map(function(e){return r+=Number(e.data[1])}),e.pictureDetailsFunDataObj=i,0==document.getElementsByClassName("el-message").length&&e.$message({showClose:!0,message:"识别成功!",type:"success"}),e.imgTime=(new Date).getTime()}else 0==document.getElementsByClassName("el-message").length&&e.$message({showClose:!0,message:a.data.message,type:"warning"})}).catch(function(a){t.loading=!1,0==document.getElementsByClassName("el-message").length&&e.$message({showClose:!0,message:"识别失败!",type:"warning"})})},again:function(){var e=this,t=this;t.loading=!0;var a=t.qs.stringify({img_id:this.addFunData.ids,ret:"again",device_type:"cbd",identify_model:this.equipStatusObj.identify_model});this.addFunData.ids,t.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_discern",data:a}).then(function(a){if(t.loading=!1,""==a.data.message){var i={};i.indentify_photo=a.data.data.image,i.addr=e.pictureDetailsFunDataObj.addr,i.addtime=e.pictureDetailsFunDataObj.addtime,i.describe=e.pictureDetailsFunDataObj.describe,i.device_id=e.pictureDetailsFunDataObj.device_id,i.ids=e.pictureDetailsFunDataObj.ids,i.mark=e.pictureDetailsFunDataObj.mark,i.time=e.pictureDetailsFunDataObj.time;for(var n=a.data.data.result,l=[],s=0;s<n.length;s++)l.push({data:[n[s].number,n[s].nums],name:n[s].result_list,index:s});i.insectSumArr=l;var r=0;i.insectSum=l.map(function(e){return r+=Number(e.data[1])}),e.pictureDetailsFunDataObj={},e.pictureDetailsFunDataObj=i,e.pictureDetailsFunDataObj,0==document.getElementsByClassName("el-message").length&&e.$message({showClose:!0,message:"识别成功!",type:"success"}),e.imgTime=(new Date).getTime()}else 0==document.getElementsByClassName("el-message").length&&e.$message({showClose:!0,message:a.data.message,type:"warning"})}).catch(function(e){t.loading=!1})},handControlSwitchList:function handControlSwitchList(id){var _this5=this;this.$axios({method:"POST",url:"/qxz_status",data:this.qs.stringify({e_id:id})}).then(function(res){if(res.data.qxz_switch&&eval("("+res.data.qxz_switch+")").length>0){var qxz_switch=eval("("+res.data.qxz_switch+")"),arr=new Array,_iteratorNormalCompletion=!0,_didIteratorError=!1,_iteratorError=void 0;try{for(var _iterator=__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_get_iterator___default()(qxz_switch),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=!0){var item1=_step.value,obj={};if(res.data.switch_name&&eval("("+res.data.switch_name+")").length>0){var switch_name=eval("("+res.data.switch_name+")"),_iteratorNormalCompletion2=!0,_didIteratorError2=!1,_iteratorError2=void 0;try{for(var _iterator2=__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_get_iterator___default()(switch_name),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=!0){var item2=_step2.value;item1.JK==item2.JK&&(item2.name?obj.name=item2.name:obj.name="开关"+(Number(item1.JK)+1),obj.status=item1.status)}}catch(e){_didIteratorError2=!0,_iteratorError2=e}finally{try{!_iteratorNormalCompletion2&&_iterator2.return&&_iterator2.return()}finally{if(_didIteratorError2)throw _iteratorError2}}}else obj.name="开关"+(Number(item1.JK)+1),obj.status=item1.status;arr.push({name:obj.name,status:obj.status})}}catch(e){_didIteratorError=!0,_iteratorError=e}finally{try{!_iteratorNormalCompletion&&_iterator.return&&_iterator.return()}finally{if(_didIteratorError)throw _iteratorError}}_this5.handControlSwitch=arr}else _this5.handControlSwitch=[]}).catch(function(){0==document.getElementsByClassName("el-message").length&&_this5.$message.error("获取数据失败!")})},lookPhoto:function(e){this.highlight=1,this.currImei=e,this.$router.push("/cbdDataDetails/"+e)},handleEdit:function(e){this.handleEditData=e},showThresholdEditDialog:function(){var e=this;e.tltName="编辑",e.handAddVisible=!0;setTimeout(function(){e.form.pest_name=e.handleEditData.pest_name,e.form.pest_num=e.handleEditData.pest_num,e.form.crop_name=e.handleEditData.crop_name,e.form.pest_case=e.handleEditData.pest_case,e.InsectListData()},1e3)},showThresholdEditDel:function(){var e=this,t=this;t.$confirm("此操作将永久删除该条数据, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var a=t.qs.stringify({ret:"del_desc",img_id:t.addFunData.ids,photo_time:t.addFunData.addtime,describe:__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(t.handleEditData),device_id:t.addFunData.device_id,id:t.handleEditData.id});t.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_describe",data:a}).then(function(a){var i=a.data.data;1==i&&""==a.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message({message:"删除成功",type:"success",duration:1500}),t.statisticsData(t.addFunData.ids)):null==i&&""!==a.data.message&&0==document.getElementsByClassName("el-message").length&&e.$message.error({message:a.data.message,duration:1500})}).catch(function(t){e.$message.error(t)})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},imgListData:function(){var e=this,t=this.$route.params.id,a=this.qs.stringify({device_id:t,page:this.currentPage,time_begin:this.queryInfo.begin,time_end:this.queryInfo.end,identify_model:this.equipStatusObj.identify_model,status:this.wormy?"yes":"no"});this.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.device_photo_list",data:a}).then(function(t){if(setTimeout(function(){e.isShuaxin=!1},1e3),e.disableVal=t.data.data.disable,0!==t.data.data.data.length&&0!==t.data.data.num){var a=t.data.data.data;e.totalNum=t.data.data.num;for(var i=[],n=0;n<a.length;n++){var l={};if(l.device_id=a[n].device_id,l.ids=a[n].ids,l.indentify_photo=a[n].indentify_photo,l.describe=a[n].describe,l.addtime=a[n].addtime,l.addr=a[n].addr,l.mark=a[n].mark,l.time=a[n].time,l.num=a[n].pest_counts,a[n].indentify_result){var s=[],r=a[n].indentify_result.split("#");for(var o in r){var u=r[o].split(",");s.push({data:u,index:n})}var c=0;if(l.insectSumArr=s,l.insectSum=s.map(function(e){return c+=Number(e.data[1])}),a[n].mark){var d=JSON.parse(a[n].mark),m=0,h=[];if(Array.isArray(d)){d.forEach(function(e){var t={};t.tagName=e.tagName,t.number=1,h.push(t)});for(var f=[],v=[],p=0;p<h.length;p++)if(-1===f.indexOf(h[p].tagName))v.push({number:h[p].number,tagName:h[p].tagName}),f.push(h[p].tagName);else for(var g=0;g<v.length;g++)v[g].tagName==h[p].tagName&&(v[g].number+=h[p].number);for(var b=0;b<v.length;b++)m+=v[b].number;l.markNum=m}else l.markNum=[]}}i.push(l)}e.imgDataList=i,e.imgDataList,e.imgListShow=!0}else e.imgListShow=!1,0==t.data.data.num&&null==e.timeScreenData&&(e.sign==e.queryInfo.begin||e.sign,e.sign=e.queryInfo.begin)}).catch(function(e){})},onSubmit:function(){var e=this,t=parseInt((new Date).getTime()/1e3),a=this;if(a.addFunData,!this.form.pest_name||!this.form.pest_num)return 0==document.getElementsByClassName("el-message").length&&this.$message({message:"请将数据填写完整",type:"error",duration:1500}),!1;if("编辑"==a.tltName){var i=a.qs.stringify({ret:"change_dsec",img_id:a.addFunData.ids,photo_time:a.addFunData.addtime,describe:__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(a.form),device_id:a.addFunData.device_id,id:a.handleEditData.id,time:t});a.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_describe",data:i}).then(function(t){var i=t.data.data;1==i&&""==t.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message({message:"修改成功",type:"success",duration:1500}),a.handAddVisible=!1,a.statisticsData(a.addFunData.ids)):null==i&&""!==t.data.message&&0==document.getElementsByClassName("el-message").length&&e.$message.error({message:t.data.message,duration:1500})}).catch(function(e){})}else if("手动添加"==a.tltName){var n=a.qs.stringify({ret:"add_desc",img_id:a.addFunData.ids,photo_time:a.addFunData.addtime,describe:__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(a.form),device_id:a.addFunData.device_id,time:t});a.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_describe",data:n}).then(function(t){var i=t.data.data;1==i&&""==t.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message({message:"添加成功",type:"success",duration:1500}),a.handAddVisible=!1,a.resetField("ruleForm")):null==i&&""!==t.data.message&&0==document.getElementsByClassName("el-message").length&&e.$message.error({message:t.data.message,duration:1500})}).catch(function(e){})}},resetField:function(e){this.$refs[e].resetFields()},addInsectName:function(){var e=this,t=this;if(""==t.selectItem)0==document.getElementsByClassName("el-message").length&&this.$message.error({message:"害虫名称不能为空!!",duration:1500});else if(""!==t.selectItem){var a=t.qs.stringify({ret:"add_pest",pest:this.selectItem,addr:""});t.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_species",data:a}).then(function(a){var i=a.data.data;null!==i&&""==a.data.message?(t.selectItem="",0==document.getElementsByClassName("el-message").length&&e.$message({message:"添加成功",type:"success",duration:1500})):null==i&&""!==a.data.message&&0==document.getElementsByClassName("el-message").length&&e.$message.error({message:a.data.message,duration:1500})}).catch(function(e){})}},InsectListData:function(){var e=this,t=e.qs.stringify({ret:"pest_list",pest:"",addr:""});e.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_species",data:t}).then(function(t){e.reInsectList=t.data.data}).catch(function(e){})},delInsect:function(){var e=this,t=this,a=t.qs.stringify({ret:"del_pest",pest:__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(t.checkList),addr:""});t.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_species",data:a}).then(function(a){var i=a.data.data;i&&""==a.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message({message:"删除成功",type:"success",duration:1500}),t.handAddState=1,t.getBack()):null==i&&"删除失败"==a.data.message&&0==document.getElementsByClassName("el-message").length&&e.$message.error({message:"删除失败",duration:1500})}).catch(function(e){})},getBack:function(){this.InsectListData()},statisticsData:function(e){var t=this,a=t.qs.stringify({ret:"photo_desc",pest:"",img_id:e});t.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_species",data:a}).then(function(e){""!==e.data.data.length&&(t.threshold=e.data.data)}).catch(function(e){})},delectImg:function(e){this.delImgFun([e])},delImgFun:function(e){var t=this;this.$confirm("此操作将永久删除该设备图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$axios({method:"POST",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_del",data:t.qs.stringify({device_id:t.id,addrlist:__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(e)})}).then(function(e){""==e.data.message&&(0==document.getElementsByClassName("el-message").length&&t.$message({type:"success",message:"删除成功!"}),t.equipStatusCheck("4"),t.imgListData())})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},goBackPage:function(){this.$router.go(-1)},amplification:function(){1==this.enlargement?(this.enlargement=!1,this.enlargementImg=!0):(this.enlargement=!0,this.enlargementImg=!1);var e=new Image;e.src=this.recognitionImage[0];var t=this;t.$set(t.imgInfo,"width",e.width),t.$set(t.imgInfo,"height",e.height),4e3!==t.imgInfo.width&&3e3!==t.imgInfo.height&&(this.btnShow=!0)},assist:function(){this.griddingShow=!this.griddingShow},inited:function(e){this.$viewer=e,this.$viewer.view(this.imgIndexNumber)},amplificationA:function(e,t){var a=this,i=this;i.listidentification="1",this.addFunData=e;var n=i.$route.params.id,l=i.qs.stringify({device_id:n,page_number:12,page:i.currentPage,ret:"list",time_begin:this.queryInfo.begin,time_end:this.queryInfo.end,identify_model:this.equipStatusObj.identify_model,status:this.wormy?"yes":"no"});i.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.device_photo_list",data:l}).then(function(e){var n=e.data.data.num;i.totalNum=n,i.recognitionImage=[];var l=e.data.data.data;for(var s in l)a.recognitionImage.push(l[s].addr);0==n?i.imgListShow=!1:0!==n&&(i.imgListShow=!0,i.iconIf=!0,i.$viewer,i.iconShow=!0,imgIndex=t,i.imgIndexNumber=t)}).catch(function(e){})},openGridding:function(){var e=[];e=this.$viewer.element.ownerDocument.images;for(var t,a=0;a<e.length;a++){var i=e[a].outerHTML.indexOf('style="'),n=e[a].outerHTML.indexOf("margin-top:");-1!==i&&-1!==n&&(t=e[a].outerHTML)}var l,s=(l=t.split('style="')[1].split('">')[0].replace("margin-top","top").replace("margin-left","left")).split("; "),r=s.filter(function(e,t){return-1==e.indexOf("width")}),o=s.filter(function(e,t){return-1!==e.indexOf("width")}),u=(l=(l=r.join("; ")).replace("relative","absolute")).replace("absolute","none"),c=l.split(";").map(function(e){return e.split("=")}),d=c[0][0],m=c[4][0],h=d.replace("height: ","");h=h.replace("px","");var f=m.replace("width: ","");f=f.replace("px","");var v=document.getElementById("reseau"),p='<div class="griddingLine" style="z-index: 10000;overflow: hidden;'+o[0]+";"+l+'" v-show="iconShow"><img id="imgID" src="../../../static/images/gridding/2.png" alt="" class="" style="z-index: 10000;'+u+'" /><div style="color: red; font-weight: 330; float: left; position: absolute; left: 3.5rem;bottom: .8rem; z-index: 10001; font-size: 15px;">*注:每个网格大小为20*20mm</div></div>';v.innerHTML=p,this.iconIf=!1},offGridding:function(){document.getElementById("reseau").innerHTML="",this.iconIf=!0},downloadFile:function(e){var t=new Blob([e],{type:"application/zip"}),a=window.URL.createObjectURL(t),i=document.createElement("a");i.href=a,i.download="下载图片",i.click(),URL.revokeObjectURL(a)},downPhoto:function(e,t){var a=this;this.imgDataList[0].name;var i=this,n=i.$route.params.id;this.$message.success("图片下载中!");var l=__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(0==e.length?"":e);__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(0==t.length?"":t),t=["2021-03-31"];t=__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(t);var s=i.qs.stringify({device_id:n,id_list:l});i.$axios({method:"POST",url:"/api/download",data:s,responseType:"blob"}).then(function(e){i.downloadFile(e.data)}).catch(function(e){return a.$message.error(e)})},onAnnoSelected:function(e,t){},onAnnoAdded:function(){},onUpdated:function(e){this.saveTag()},onReady:function(){},onImageLoad:function(e){},imgTag:function(){var e=this;this.addFunData.mark,this.equipStatusObj.identify_model,this.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.device_photo_details",data:this.qs.stringify({img_id:this.addFunData.ids,cmd:"cbd",identify_model:this.equipStatusObj.identify_model})}).then(function(t){""==t.data.message?(e.currentImage=t.data.data.indentify_photo||t.data.data.addr,e.tagImgId=e.addFunData.ids,e.$viewer.hide(),e.imgTagDataVisible=!0,e.$nextTick(function(){e.addFunData.mark,e.renderData(JSON.parse(e.addFunData.mark))})):(0==document.getElementsByClassName("el-message").length&&e.$message.warning(t.data.message),e.currentImage=e.pictureDetailsFunDataObj.indentify_photo||e.pictureDetailsFunDataObj.addr,e.imgTagDataVisible=!0)})},lookWormNameFun:function(){window.open("https://baike.baidu.com/item/"+this.lookWormName)},setTag:function(){this.$refs["aiPanel-editor"].getMarker().setTag({tagName:this.tagName,tag:"0x0001"}),this.saveTag()},renderData:function(e){var t=this;this.$nextTick(function(){t.$refs["aiPanel-editor"].getMarker().clearData(e),t.$refs["aiPanel-editor"].getMarker().renderData(e)})},saveTag:function(){var e=this.$refs["aiPanel-editor"].getMarker().getData();this.setdata=e;for(var t={},a=0;a<e.length;a++){var i=e[a].tagName;t[i]=t[i]+1||1}this.setdataNum=t},imgTagClosed:function(){this.tagName="",this.setdataNum={},this.$refs["aiPanel-editor"].getMarker().clearData()},imgTagSubm:function(){var e=this;this.equipStatusObj.identify_model,this.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.cbdphoto_receive",data:this.qs.stringify({img_id:this.addFunData.ids,mark:__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(this.setdata),device_type:"cbd",identify_model:this.equipStatusObj.identify_model})}).then(function(t){t.data.data?(0==document.getElementsByClassName("el-message").length&&e.$message.success("提交成功!"),e.$nextTick(function(){e.renderData(JSON.parse(t.data.data))})):0==document.getElementsByClassName("el-message").length&&e.$message.warning(t.data.message),e.pictureDetailsFunDataObj.indentify_photo="",e.pictureDetails=!1,e.imgTagDataVisible=!1,e.imgListData();var a={ids:e.addFunData.ids};e.pictureDetailsFunAxios(a)})},operationDiscern:function(e){var t=this,a=this,i=a.$route.params.id;a.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.disable_cbd_discern",data:a.qs.stringify({device_id:i,ret:e})}).then(function(e){1==e.data.data&&a.imgListData()}).catch(function(e){0==document.getElementsByClassName("el-message").length&&t.$message.error("操作失败,请重试!")})},rainControlAffair:function(){this.rainControl=!1},rainCharge:function(){var e=this;e.$axios({method:"POST",url:"/api/api_gateway?method=device.device_manage.cbd_rain_control",data:e.qs.stringify({device_id:e.$route.params.d_id})}).then(function(t){0==t.data.data.rain?e.rainControl=!1:1==t.data.data.rain&&(e.rainControl=!0)}).catch(function(e){})},ceshi:function(e){var t=this;this.loadingMore,this.loadingMore=!1,this.noMore=!1,this.showLen=10,null!==this.listIndexA&&this.listIndexA!==e&&this.imgDataList[this.listIndexA].checked&&(this.imgDataList[this.listIndexA].tltTxt="展开"==this.imgDataList[this.listIndexA].tltTxt?"收起":"展开",this.imgDataList[this.listIndexA].checked=0==this.imgDataList[this.listIndexA].checked),setTimeout(function(){t.listIndex=e,t.listIndexA=e,t.imgDataList[e].tltTxt="展开"==t.imgDataList[e].tltTxt?"收起":"展开",t.imgDataList[e].checked=0==t.imgDataList[e].checked,t.countData<t.imagesListData[t.listIndex].img?(t.loadingMore=!0,t.noMore=!1):t.countData==t.imagesListData[t.listIndex].img&&(t.loadingMore=!1,t.noMore=!0)},500)},multiple:function(e){this.checkedCities=e?cityOptions:[],this.isIndeterminate=!1},handleCheckedCitiesChange:function(e){var t=e.length;this.checkAll=t===this.cities.length,this.isIndeterminate=t>0&&t<this.cities.length,this.isIndeterminate},load:function(){this.loadingMore,this.loadingMore=!0},more:function(){this.showLen+=5,this.loadingMore,this.loadingMore=!1,this.loadingMore},renderIconContent:function(e,t){return e.data.leaf?"el-icon-document document":e.expanded?"el-icon-folder-opened":"el-icon-folder"},loadNode:function(e,t){this.dynamicDataTime(e,t)},handleNodeClick:function(e){if(void 0!==e.year&&void 0==e.month&&void 0==e.day)var t=void 0!==e.year?e.year.toString():"",a=void 0!==e.year?(parseInt(e.year)+1).toString():"",i=t,n=new Date(i).getTime(),l=a,s=new Date(l).getTime();else if(void 0!==e.year&&void 0!==e.month&&void 0==e.day){i=(t=void 0!==e.year?e.year.toString()+"-":"")+(d=void 0!==e.month?e.month.toString():""),n=new Date(i).getTime();if(12!==e.month)var r=void 0!==e.month?(parseInt(e.month)+1).toString():"";else if(12==e.month)r=void 0!==e.month?1:"",t=void 0!==e.year?(parseInt(e.year)+1).toString()+"-":"";l=t+r,s=new Date(l).getTime()}else if(void 0!==e.year&&void 0!==e.month&&void 0!==e.day){i=(t=void 0!==e.year?e.year.toString()+"-":"")+(d=void 0!==e.month?e.month.toString()+"-":"")+(void 0!==e.day?e.day.toString():""),n=new Date(i).getTime();var o=e.year;if(o%4==0&&o%100!=0||o%400==0)var u=29;else u=28;if(4==e.month||6==e.month||9==e.month||11==e.month)if(e.day<30)var c=void 0!==e.day?(parseInt(e.day)+1).toString():"";else{c=void 0!==e.day?1:"";var d=void 0!==e.month?(parseInt(e.month)+1).toString()+"-":""}else if(1==e.month||3==e.month||5==e.month||7==e.month||8==e.month||10==e.month||12==e.month){if(e.day<31)c=void 0!==e.day?(parseInt(e.day)+1).toString():"";else if(31==e.day&&12!==e.month)c=void 0!==e.day?1:"",d=void 0!==e.month?(parseInt(e.month)+1).toString()+"-":"";else if(31==e.day&&12==e.month)c=void 0!==e.day?1:"",d=void 0!==e.month?"1-":"",t=void 0!==e.year?(parseInt(e.year)+1).toString()+"-":""}else if(2==e.month)if(e.day<u)c=void 0!==e.day?(parseInt(e.day)+1).toString():"";else c=void 0!==e.day?1:"",d=void 0!==e.month?(parseInt(e.month)+1).toString()+"-":"";l=t+d+c,s=new Date(l).getTime()}this.currentPage=1,this.queryInfo.begin=n/1e3,this.queryInfo.end=s/1e3,this.sign=s/1e3,this.imgListData()},dynamicDataTime:function(e,t){var a=this,i=this.$route.params.id,n=this.qs.stringify({device_id:i,identify_model:this.equipStatusObj.identify_model});if(0!==this.timeData.length){var l=this.timeData;if(1===e.level){var s=e.label;s=parseInt(s.split("年")[0]);var r=[];return l.forEach(function(t){for(var a in t)if(s==a){var i=__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys___default()(t[s]);i=i.sort();for(var n=0;n<i.length;n++)r.push({label:parseInt(i[n])+"月",year:e.data.year,month:parseInt(i[n])})}}),t(r.sort())}if(2===e.level){for(var o=[],u=0;u<l.length;u++)if(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys___default()(l[u])==e.data.year){var c=__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys___default()(l[u])[0],d=l[u][c];for(var m in d)if(e.data.month==m)for(var h=0;h<d[m].length;h++){var f=d[m];o.push({label:f[h]+"日",year:e.data.year,month:e.data.month,day:f[h],leaf:!0})}}return t(o.reverse())}if(e.level>2)return t([])}else this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.forecast_system.time_folder",data:n}).then(function(i){if(i.data.data){a.timeData=i.data.data;for(var n=[],l=i.data.data,s=0;s<l.length;s++){var r={};r.label=__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys___default()(l[s])[0]+"年",r.year=parseInt(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys___default()(l[s])[0]),r.icon="el-icon-document",n.push(r)}if(0===e.level)return t(n)}}).catch(function(e){})},pictureDetailsFun:function(e,t){localStorage.setItem("time_begin",this.queryInfo.begin),localStorage.setItem("time_end",this.queryInfo.end),localStorage.setItem("cbdpage",this.currentPage);for(var a=[],i=0;i<this.imgDataList.length;i++)a.push(this.imgDataList[i].ids);this.$router.push({path:"/index/cbdCanvas",query:{data:e,identify_model:this.equipStatusObj.identify_model,ids_list:a,index:t}}),sessionStorage.setItem("img_id",e.ids)},pictureDetailsFunAxios:function(e){var t=this,a=this.qs.stringify({img_id:e.ids,cmd:"cbd",identify_model:this.equipStatusObj.identify_model});this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.forecast_system.device_photo_details",data:a}).then(function(e){if(e.data.data){var a=[],i=e.data.data,n={};if(n.device_id=i.device_id,n.ids=i.ids,n.indentify_photo=i.indentify_photo,n.addtime=i.addtime,n.addr=i.addr,n.mark=i.mark,n.time=i.time,i.indentify_result){var l=[],s=i.indentify_result.split("#");for(var r in s){var o=s[r].split(",");l.push({data:o,index:r})}var u=0;n.insectSumArr=l,n.insectSum=l.map(function(e){return u+=Number(e.data[1])})}a.push(n),t.pictureDetailsFunData(a[0])}}).catch(function(e){})},pictureDetailsFunData:function(e){var t=this;if(e&&e.mark){var a=JSON.parse(e.mark),i=[];if(isArray(a)){a.forEach(function(e){var t={};t.tagName=e.tagName,t.number=1,i.push(t)});for(var n=[],l=[],s=0;s<i.length;s++)if(-1===n.indexOf(i[s].tagName))l.push({number:i[s].number,tagName:i[s].tagName}),n.push(i[s].tagName);else for(var r=0;r<l.length;r++)l[r].tagName==i[s].tagName&&(l[r].number+=i[s].number);this.labelShow=!0,this.labelArr=l}else this.labelShow=!1,this.labelArr=[]}else this.labelShow=!1,this.labelArr=[];e&&null!==e.mark&&void 0!==e.mark&&""!==e.mark?(this.imgShow,this.imgShow=!1,this.imgDiscern=e.indentify_photo||e.addr,this.$nextTick(function(){t.renderData(JSON.parse(e.mark))})):(this.imgShow,this.imgShow=!0),this.pictureDetailsFunDataObj=e,""==this.pictureDetailsFunDataObj.indentify_photo&&(this.pictureDetailsFunDataObj.indentify_photo=this.pictureDetailsFunDataObj.addr),this.pictureDetailsFunDataObj,this.loading=!1},dateChange:function(e){this.isPageOne&&(this.currentPage=1),this.queryInfo.begin=Math.floor(+new Date(e[0])/1e3),this.queryInfo.end=Math.floor(+new Date(e[1])/1e3),this.imgListData(),this.rainCharge()},timeScreen:function(e){this.timeScreenData=e},deviceAddTime:function(e,t){var a=this,i=this.$route.params.id,n=this.qs.stringify({device_id:i,page:1,page_size:8,device_type_id:3,start_time:"",end_time:"",equipment_status:"",salesman_task_number:""});this.$axios({method:"POST",url:"/api/api_gateway?method=device.device_manage.device_info",data:n}).then(function(i){a.deviceAddTimeNum=i.data.data.data[0].creat_time;var n=new Date(1e3*a.deviceAddTimeNum),l=new Date((new Date).getTime()),s=l.getFullYear(),r=l.getMonth()+1,o=(l.getTime(),new Date),u=n.getTime(),c=o.getTime(),d=a.formatTime(u),m=a.formatTime(c);d=d.split(" "),m=m.split(" ");var h=d[0].split("-"),f=m[0].split("-"),v=parseInt(h[0]),p=parseInt(f[0]);if(v!==p)var g=p-v+1;else if(v===p)g=1;for(var b=[],_=0;_<g;_++){var y={};y.label=parseInt(s)-_+"年",y.year=parseInt(s)-_,y.icon="el-icon-document",b.push(y)}if(0===e.level)return t(b);if(e.level>2)return t([]);if(1===e.level){var w=[];if(e.data.year!=s)var x=12;else x=r;for(g=1;g<=x;g++)w.push({label:g+"月",year:e.data.year,month:g});return t(w)}if(2===e.level){var C=[],A=new Date(e.data.year,e.data.month,0).getDate();for(g=1;g<=A;g++)C.push({label:g+"日",year:e.data.year,month:e.data.month,day:g,leaf:!0});return t(C)}}).catch(function(e){})},standardization:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.worm_list"}).then(function(t){e.cbdPest=t.data.data,e.cbdPest}).catch(function(e){})}}}},ABpy:function(e,t){},AwPQ:function(e,t,a){a("x6tY")},CKIj:function(e,t){},Cy8b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"},DBKR:function(e,t){},Dzer:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAABHNCSVQICAgIfAhkiAAAAwFJREFUSInFll1IFFEUx8+5M+Mm7roLao6aqZUQWEp+hAVKS9CDQQ+iG5S+9SFFJPRQT7kUFEIvPYhICD0XRh8k0UNaZta6aiYrroiYiuV3zfo5O3NvD36k7s56N4T+cGDgf7m/c8+ce7g47Z2cFkyCBDsgRhkdaPOeyjt/3BXMFy2J0TbJHEF2AqarOkgQEWXk7wiEV+L6FwPwjSleqmpfgYazBaZH77NlIyI/jDEG82PKq7rG+pvhoM5lll6ypFhrUQwDtkIE5nQ6wzqX42mJxrtWNDLcdR8SRIzKRAqoMY0pdKHVftU+F2ozJAiSKOV3PeqK3OrpVFcMYTFpcvmegrRqFBCAMvjhGq0CgDuhYEQkcLD40D1gLMBThn6Nh+hGAQVJAEESQDCJYEuPueaqaZJDwdaARBICAggh3K0fFWeOlbNSLm63jvp10NWVYPrmE3LDUECwpcbccD9oig0F6mvwXPfUdxd+q+88MdM3+fafYNRPwSybrfKxtEoGLGifMwbgp/6erCs5LS8nGluIKIzDhsNxwXRVh/4XnoqpvqmGqHhLhbe61cyb5EZxwRCAqUusubn3/dmxL4NFi6lScU+NK3nFQ4EXZtj6weRwOHQAcHmeuCOSTu/3juWNPPT9VFTYfniED1vTRK/vc3yW+lHOSbq1W5UZEfh+/V8YAjAGcnvtpyMiFRlDlmSUsd1p17oPdNy2JFhPRlhM3E22DkNEiM9NLI/PTixbhSMS4/rMDCju399n38RlyEW8ZdyUFREIEIkgkQgSMXTCdqddm+wcv68taYGzyQim+3WgfhoQW29/MHki+9tmBqaf09U9mE4Zo0EG46rEgWe9ZxhhAY1iTYspSS5MLQtVSofDobvrWiqn2kce6whIkNB5utxhCDt8Ifd1MGPo3WAGcBQo93LBMAAMb78yjHFlMgEAAPJGFVQB3TLWuO4ZCojy0b13faPKLG9yc8yHkaZd+Rs7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ORapf/mY32+NP72985qG7lP79+0lVb37nn+IE3Tcv+6btYhnJRPeQ3CWG3Mzm7uEQVx3YUgj5otCqVL8CXDLnhT/FFPtNyQYChyuEEJ5MhOU4trWPmfjJDH/MecD4NYhfIj5Znjp6uMKhs5pAAcf2Sad13nFJ++dxnXllmohxXpNah1G/E4SoWR0q8u/e8kJh3vgeO9e9jHkhTASmlLwG4/48vV6GgyAWiSYRZ7kWNm+Czv8QdTo+XdYl1wc9nX2sDkgjg336ft/fWnUdRUEkwul8SMtMSpJd4biGEtIrFX0yUTs43Mn7L95TSQXUuX16YFxRmg/aYXM6uJZfg5ZrfYnNz+7YqD2nuQ7Xmfm1AYoxeG5A2IDGmQIyZ0+YhbUBiTIEYM6fNQ9qAxJgCMWZOm4e0AYkxBWLMnDYPaQMSYwrEmDltHtIGJMYUiDFz2jwkxoD8H6UAzxlEGb7zAAAAAElFTkSuQmCC"},FA4r:function(e,t){e.exports={imei:{name:"设备ID",unit:"",desc:"通讯板唯一ID"},iccid:{name:"物联网卡",unit:"",desc:"用于查询物联网卡的套餐、流量信息等"},csq:{name:"信号强度",unit:"",desc:""},lat:{name:"纬度",unit:"",desc:""},lng:{name:"经度",unit:"",desc:""},dtype:{name:"设备类型",unit:"",desc:""},ws:{name:"工作状态",unit:"",value:{0:"待机",1:"工作",2:"充电"},desc:"工作状态、0 待机, 1 工作"},dver:{name:"设备版本",unit:"",desc:"设备固件版本"},vbat:{name:"电压",unit:"V",desc:""},st:{name:"开始时间",unit:"h",desc:"时控开始时间:0-23"},et:{name:"结束时间",unit:"h",desc:"时控结束时间:0-23"},tps:{name:"温控状态",unit:"",value:{0:"正常",1:"温控"},desc:"0-正常,1-保护"},lps:{name:"光控状态",unit:"",value:{0:"正常",1:"光控"},desc:"0-正常,1-保护"},rps:{name:"雨控状态",unit:"",value:{0:"正常",1:"雨控"},desc:"0-正常,1-保护"},dps:{name:"倾倒状态",unit:"",value:{0:"正常",1:"保护"},desc:"0-正常,1-保护"},collt:{name:"收集时间",unit:"",desc:"收集时间:1-30"},current:{name:"功率",unit:"mA",desc:"功率:单位mA"},hrt:{name:"加热仓温度",unit:"°C",desc:"加热仓实时温度"},hst:{name:"加热仓设定温度",unit:"°C",desc:"加热仓设定温度:70-130"},at:{name:"环境温度",unit:"°C",desc:""},ah:{name:"环境湿度",unit:"%RH",desc:""},stamp:{name:"时间",unit:"",desc:""},dat_f:{name:"数据上传间隔",unit:"",desc:"数据上传时间间隔"},rcnt:{name:"开机次数",unit:"",desc:"每次重启加1"},htim:{name:"加热时间",unit:"min",desc:"加热时间:1-30分钟"},batStatus:{name:"电压状态",unit:"",value:{0:"正常",1:"电量过低"},desc:"0-正常 1-欠压"},tt:{name:"定时时长",unit:"h",desc:"定时时间1~10"},shake:{name:"震动开关",unit:"",value:{0:"关闭",1:"开启"},desc:"0-关,1-开"},shake_sec:{name:"震动时间",unit:"ms",desc:"1~20(步长:100ms)"},ts:{name:"定时模式",unit:"",value:{0:"光控",1:"时控"},desc:"0-光控,1-时控"},upds:{name:"上仓门状态",unit:"",value:{0:"关闭",1:"开启"},desc:"1 打开,0 关闭"},dnds:{name:"下仓门状态",unit:"",value:{0:"关闭",1:"开启"},desc:"1 打开,0 关闭"},lamp:{name:"灯管状态",unit:"",value:{0:"工作",1:"异常"},desc:"灯管/工作状态 0 工作 1未工"},fuse_voltage:{name:"保险丝电压",unit:"V",desc:""},ds:{name:"设备开关",unit:"",value:{0:"关机",1:"开机"},desc:"0 关机 1 开机"},bt:{name:"主板温度",unit:"°C",desc:""},tcs:{name:"时控开关",unit:"",value:{0:"关机",1:"开机"},desc:"0 关闭 1 开启"},clt_t:{name:"清虫间隔",unit:"min",desc:"清虫时间间隔"},gps:{name:"定位方式",unit:"",value:{0:"手动定位",1:"GPS 定位",2:"LBS 定位"},desc:"0 手动定位 1 GPS 定位 2 LBS 定位"},cv:{name:"充电电压",unit:"V",desc:"充电电压"},bv:{name:"电池电压",unit:"V",desc:"电池电压"},ct:{name:"电击次数",unit:"",desc:"电击次数 (最大255)"},info:{name:"重启信息",unit:"",desc:"1正常 2 socket重连 3 MQTT重连"},proj:{name:"设备型号",unit:"",desc:"性诱一型或者二型"},btype:{name:"电池类型",unit:"",value:{0:"蓄电池",1:"锂电池"},desc:"0 蓄电池,1锂电池"},cs:{name:"充电状态",unit:"",value:{0:"非充电",1:"充电"},desc:"0非充电,1充电"},bs:{name:"电池状态",unit:"",value:{0:"正常",1:"欠压",2:"过压"},desc:"0 正常,1欠压, 2过压"},infr_ct:{name:"红外计数值",unit:"",desc:"性诱红外计数值"},volt_ct:{name:"高压计数值",unit:"",desc:"性诱高压计数值"},wind_drec:{name:"风向",unit:"",desc:"性诱风向"},wind_sped:{name:"风速",unit:"",desc:"性诱风向"},cold_sw:{name:"制冷开关",unit:"",value:{0:"关闭",1:"开启"},desc:"制冷机开关 0 关闭, 1 开启"},wind_sw:{name:"风机开关",unit:"",value:{0:"关闭",1:"开启"},desc:"风机开关 0 关闭, 1 开启"},pre_temp:{name:"保温仓温度",unit:"℃",desc:"保温仓当前温度-℃"},set_temp:{name:"保温仓设定温度",unit:"℃",desc:"保温仓设定温度-℃"},usb_sta:{name:"摄像头状态",unit:"",value:{0:"正常",1:"异常"},desc:"摄像头状态 0 正常, 1 异常"},work_sta:{name:"摄像头状态",unit:"",value:{0:"待机",1:"收集",2:"培养",3:"拍照"},desc:"摄像头状态 0 待机, 1 收集, 2 培养, 3 拍照"},imgres:{name:"图片分辨率",unit:"",desc:"图片分辨率默认为7(最高)"},staytime:{name:"已培养时间",unit:"h",desc:"已培养时间-小时"},cul_time:{name:"孢子培养时间",unit:"h",desc:"孢子培养时间-小时"},coll_time:{name:"收集时间",unit:"h",desc:"收集时间[8-10,14-16]"},addtime:{name:"上报时间",unit:"",desc:"数据上报时间"},hs:{name:"加热状态",unit:"",value:{0:"正常",1:"加热"},desc:"测报灯状态0 正常, 1 加热"},is_online:{name:"在线状态",unit:"",value:{0:"离线",1:"在线"},desc:"设备在线离线状态"},gs:{name:"通道状态",unit:"",value:{0:"排水",1:"落虫"},desc:"通道状态"},tph:{name:"高温保护阀值",unit:"°C",desc:"高温保护阀值"},tpl:{name:"低温保护阀值",unit:"°C",desc:"低温保护阀值"},boot:{name:"禁止工作",unit:"",value:{0:"正常",1:"使能(禁止工作)"},desc:"禁止工作"},lux:{name:"光照强度",unit:"",value:{0:"正常",1:"使能(禁止工作)"},desc:"光照强度"},clt:{name:"清虫间隔",unit:"min",desc:"清虫时间间隔"},dattim:{name:"数据上传间隔",unit:"",desc:"数据上传时间间隔"},datt:{name:"数据上传间隔",unit:"",desc:"数据上传时间间隔"},tbs:{name:"灯管状态",unit:"",value:{0:"正常",1:"异常"},desc:"数据上传时间间隔"},type:{name:"设备类型",unit:"",value:{0:"--",1:"--",2:"杀虫灯",3:"测报灯",4:"性诱器",5:"气象站",6:"--",7:"孢子仪"},desc:"设备类型"},simStatus:{name:"sim卡状态",unit:"",value:[{name:"未知",val:0},{name:"测试期",val:1},{name:"沉默期",val:2},{name:"使用中",val:3},{name:"停机",val:4},{name:"停机保号",val:5},{name:"预销号",val:6},{name:"销号",val:7}],desc:"sim卡状态"}}},FgYL:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAAJvElEQVRo3sWbe4xcVRnAf9+989jd2cfc7ra4ZV8thRbkYYFNoWUJppgpaRpqjZgYi8Z/MNpQNSQ8lJj4AJHEqIAm2gUjEbRoW1IIbZxqVF4NjyIG7CtlKdsH7S4znd3Z2Xnce/1jZmfvvXPvzJ3ZLZx/5s55fr/zfef7zpx7RpjntG5fUgWuAYYQrhS4GOhB6ADaRQBIAedEGAWOILwt8G+EN54biurzKY/MRyexeDKMsFHgNmAt0IFYOi89iGW08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eS/OdgRbu7G/hps4QLyZyjGZ10rpJWBW6QwrXtgcZiobIGCaPnEizP5Wv7hU9BPcFV/x4svz11leSIYqHpp1ecLWO0KMBhXULQ3xWCxENFj1k3jQJlhpmDJOXz+XYm8hxMqt7TpgrkBtAdbgxhAuH+7RcudrGV5M/Ar7fCJy1LBIQVkQCdIcVOgIKk7rBWN7gSEZnvGBUtQYvbbkE8IoJcDz/eLhPu99alY2vWg5+G4Rz3c65mXodsbYBuElgyXCfNmYDBPj8/uRPEO6by/uBsCJsWhSmO6RSAFTgnG6wY2yaCd30F47cyv3BAfx0uE+7dyYrYAVEeEiErwGL63o/YKnXpMI1bUG6w7OnZRMFk72JbPlXQS0N+gjgXnAngQftSI606bXkRhF2egH4fD/gSzPzDIfApm192k4rT8UL0B2D0V3AEw29H5hvOJe+qsA94YRzBSx1tgXhLftg3gHcueOZNzgq6zidVenxP0jx/k4FCx7pi28mexBeBrPXxzF5fV6xUTjs9UqPowjXb+ut4xLCTLrtQGIZwksIi/y4ek+4Otx/nXBnEVZv69U8r5F4XUIAYPtK7SjCkMCIM9bVhJMacC79eB08e8CNINxYDa6mBmfSl95OdIsUr3J9ggHcqtkDwPptvVrNq1xKrQoAf75SOwWsFuFRL7havwJ8HC/4hXsMWO0HzrcGrenL7yQ2AI8i9Pl1IvMR4yhdp9zWq9V1ndKXBq3pqU9ruxEuFeEBYNLvKdwc4CaBB0S4rF44+/w0kL5yMNEJfBvhmwIL5hQGKuE+An4t8IttfdrHe6XZmTYfSoQQbhG4HeFmZm/X1wuXAuIIfwBeGO7TcnOVbV4Aren2IwlVpPy3gqsEliH0AAtEiAB5iqadAD5EOArlvxW8PtynzevfCv4PSl2XO/6JcfQAAAAASUVORK5CYII="},GI0j:function(e,t){},GUvg:function(e,t,a){"use strict";t.a={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:"栗六点天蛾",134:"紫光盾天蛾",135:"款冬玉米螟",136:"草蛉",137:"亚麻篱灯蛾",138:"扁连环夜蛾",139:"圣蜣螂",140:"白钩粘虫",141:"苇实夜蛾",142:"姬蜂",143:"秘夜蛾",144:"织网夜蛾",145:"深色白眉天蛾",146:"短扇舟蛾",147:"白须天蛾",148:"歌梦尼夜蛾",149:"海安夜蛾",150:"满丫纹夜蛾",151:"蟋蟀",152:"双斑青步甲",153:"白条夜蛾",154:"蟪蛄",155:"负子蝽",156:"脊青步甲",157:"宽斑青步甲",158:"稻纵卷叶螟",159:"淡剑夜蛾",160:"甜菜白带野螟",161:"樗蚕",162:"蒙古寒蝉",163:"中带三角夜蛾",164:"蝗虫",165:"多色异丽金龟",166:"白色小卷蛾",167:"狭边青步甲",168:"棉卷叶野螟",169:"豆荚野螟",170:"麻小食心虫",171:"星斑虎甲",172:"黄缘龙虱",173:"无斑弧丽金龟",174:"白额鹰翅天蛾",175:"日本真龙虱",176:"山东云斑螟",177:"小文夜蛾",178:"三条蛀野螟",179:"榆掌舟蛾",180:"刺槐掌舟蛾",181:"星绒天蛾",182:"杨剑舟蛾",183:"刀夜蛾",184:"红节天蛾",185:"星白雪灯蛾",186:"桃剑纹夜蛾",187:"谐夜蛾",188:"小剑纹夜蛾",189:"鸣鸣蝉",190:"姬夜蛾",191:"落叶松毛虫",192:"苹六点天蛾",193:"四斑绢野螟",194:"甘薯天蛾",195:"小线角木蠹蛾",196:"三斑蕊夜蛾",197:"白雪灯蛾",198:"黄刺蛾",199:"茶翅蝽",200:"杨树枯叶蛾",201:"标瑙夜蛾",202:"瓜绢野螟",203:"稻绿蝽",204:"杨雪毒蛾",205:"榆白边舟蛾",206:"扁刺蛾",207:"绒黏夜蛾",208:"庸肖毛翅夜蛾",209:"中华婪步甲",210:"褐黄前锹甲",211:"旱柳原野螟",212:"巨影夜蛾",213:"食蚜蝇",214:"双斑葬甲",215:"黄毒蛾",216:"婪步甲",217:"土甲",218:"中华真地鳖",219:"紫线夜蛾",220:"小黄鳃金龟",221:"中华真土鳖",222:"云斑虎甲",223:"中华黧尺蛾",224:"中华绿刺蛾",225:"巨豹纹尺蛾",226:"多斑豹蠹蛾",227:"桑尺蛾",228:"灰直纹螟",229:"中国绿刺蛾",230:"云杉梢斑螟",231:"桑绢野螟",232:"黄杨绢野螟",233:"突背斑红蝽",234:"高粱条螟",235:"小麦负泥虫",236:"苹掌舟蛾",237:"绒粘夜蛾",238:"灰白灯蛾",239:"隐丫纹夜蛾",240:"满纹夜蛾",241:"黑剑狼夜蛾",242:"蜣螂",243:"福婆鳃金龟",244:"雨尺蛾",245:"优美苔蛾",246:"黄斑野螟",247:"疆夜蛾",248:"六点天蛾",249:"斜线夜蛾",250:"石榴巾夜蛾",251:"绒星天蛾",252:"霜天蛾",253:"大田鳖",254:"灰双纹螟",255:"青尺蛾",256:"二线绿尺蛾",257:"散纹夜蛾",258:"红双线尺蛾",259:"胞短栉夜蛾",260:"稻飞虱",261:"桃多斑野螟",262:"甜菜青野螟",263:"核桃鹰翅天蛾",264:"角顶尺蛾",265:"葡萄缺角天蛾",266:"绿尾大蚕蛾",267:"杨褐枯叶蝶",268:"双云尺蛾",269:"斑拟兜夜蛾",270:"阿莎尺蛾",271:"榄绿岐角螟",272:"青革土蝽",273:"核桃美舟蛾",274:"斑点卷叶螟",275:"黄褐箩纹蛾",276:"白环红天蛾",277:"白腹网丛螟",278:"枯叶蛾",279:"丹日明夜蛾",280:"仿白边舟蛾",281:"槐羽舟蛾",282:"草地贪夜蛾",283:"环夜蛾",284:"尘尺蛾",285:"黄二星舟蛾",286:"榆木蠹蛾",287:"水黾",288:"银装冬夜蛾",289:"饰奇尺蛾",290:"枯叶蝶",291:"步甲",292:"阔胸禾犀金龟",293:"眼斑钩蛾",294:"三开蜣螂",295:"金星步甲",296:"残夜蛾",297:"野蚕蛾",298:"芦苇豹蠹蛾",299:"华晓扁犀金龟",300:"灰胸突鳃金龟",301:"龟纹瓢虫",302:"麻皮蝽",303:"斑须蝽",304:"斜斑虎甲",305:"地鳖",306:"叶甲",307:"燕夜蛾",308:"黑纹北灯蛾",309:"网夜蛾",310:"棘翅夜蛾",311:"规尺蛾",312:"苜蓿银纹夜蛾",313:"拟扇舟蛾",314:"丁目大蚕蛾",315:"金黄蛾",316:"黄星雪灯蛾",317:"暗纹紫褐螟",318:"白眉天蛾",319:"黄板盘瓢虫",320:"玫岐角螟",321:"枯黄贡尺蛾",322:"小豆长喙天蛾",323:"橙拟灯蛾",324:"粉蝶灯蛾",325:"纹散丽灯蛾",326:"雪尾尺蛾",327:"鹰翅天蛾",328:"波纹蛾",329:"黑条灰灯蛾",330:"八点灰灯蛾",331:"间纹弦夜蛾",332:"缤夜蛾",333:"樟蚕",334:"乌夜蛾",335:"亮棲夜蛾",336:"鸟嘴壶夜蛾",337:"榕透翅毒蛾",338:"四星负葬甲",339:"魔目夜蛾",340:"华尾天蚕蛾",341:"洋麻钩蛾",342:"旋皮夜蛾",343:"奇尺蛾",344:"土元",345:"肯髯须夜蛾",346:"苹果卷叶蛾",347:"矛夜蛾",348:"斜线燕蛾",349:"红秘夜蛾",350:"桃红猎夜蛾",351:"帕委夜蛾",352:"奚毛胫夜蛾",353:"委夜蛾",354:"角翅舟蛾",355:"戟盗毒蛾",356:"瓢虫",357:"隐尺蛾",358:"钝突刺腹牙甲",359:"金龟",360:"花金龟",361:"白褐缘尾尺蛾",362:"金黄螟",363:"云斑白条天牛",364:"瓦矛夜蛾",365:"二化螟",366:"菜粉蝶",367:"杨枯叶蛾",368:"淡剑纹夜蛾",369:"焰夜蛾",370:"二点织螟",371:"白钩小卷蛾",372:"女贞天蛾",373:"锹甲",374:"艾锥额野螟",375:"白星花金龟",376:"毒蛾",377:"二点织蛾",378:"萝藦艳情尺蛾",379:"苹枯叶蛾",380:"哈展尺蛾",381:"中金弧夜蛾",382:"黄斑盘瓢虫",383:"缘黄毒蛾",384:"蠹蛾",385:"土鳖",386:"人纹污灯蛾",387:"松黑天蛾",388:"蚜虫",389:"萝藦艳青尺蛾",390:"苹蚂舟蛾",391:"木橑尺蛾",392:"红蝽",393:"掌尺蛾",394:"肖浑黄灯蛾",395:"阳污灯蛾",396:"黄缘苔蛾",397:"丽金龟",398:"犀金龟",399:"卷蛾",400:"钩蛾",401:"红尾大蚕蛾",402:"刺蛾",403:"玫瑰巾夜蛾",404:"双委夜蛾",405:"油松毛虫",406:"朝鲜东蚁蛉",407:"焦边尺蛾",408:"黾蝽",409:"苔蛾",410:"",411:"蜚蠊",412:"小蠹",413:"桔小实蝇",414:"水龟甲",415:"大蚊",416:"华北蝼蛄",417:"豹纹卷野螟",418:"长蝽",419:"蠼螋",420:"缘蝽",421:"粪金龟",422:"隐翅虫",423:"象甲",424:"猎蝽",425:"东方蝼蛄",426:"油葫芦",427:"阔胫鰓金龟",428:"棉大造桥虫",429:"绒毛曲斑青地甲",430:"葬甲",431:"珀蝽",432:"怀羽舟蛾",433:"大云鳃金龟",434:"赏夜蛾",435:"甜菜夜螟",436:"红带新鹿蛾",437:"亚洲玉米螟",438:"白肩天蛾",439:"双斑辉尺蛾",440:"稻蛀茎夜蛾",441:"构星天蛾",442:"双叉犀牛龟",443:"珀蝽",444:"蚁",445:"金黄娟金龟",446:"黑色蔗龟",447:"蝇",448:"石蛾",449:"螳螂",450:"胡蜂",451:"蝉",452:"大斑波纹蛾",453:"黑图夜蛾",454:"黄星尺灯蛾",455:"天蚕蛾",456:"屎壳郎",457:"揪野螟",458:"蚁蛉",459:"绿盲蝽",460:"丝棉木金星大尺蛾",461:"蛱蝶",462:"毛黄金龟",463:"猎蝽",464:"蚙",465:"叩头甲",466:"褐蛉",467:"谷蠧",468:"吉丁虫",469:"东亚飞蝗",470:"白雪灰灯蛾",471:"泛尺蛾",472:"蚊科",473:"摇蚊",474:"野螟",475:"草螟",476:"拟步甲",477:"麦蝽",478:"黑带食蚜蝇",479:"东方蜜蜂",480:"蝇科",481:"吉丁甲",482:"金边龙虱",483:"划蝽",484:"叶蜂",485:"中华扁锹",486:"浮金龟",487:"杂似谷盗",488:"双齿蝼步甲",489:"大团扇春蜓",490:"爪哇异食蚜蝇",491:"夹竹桃天蛾",492:"大水龟甲",493:"桑天牛",494:"红脊长蝽",495:"豆娘",496:"蝼步甲",497:"仰泳蝽",498:"蝽蜓",499:"印度谷螟",500:"叶甲科",501:"棉大卷叶螟",502:"伪叶甲",503:"屁步甲",504:"异粉蝶灯蛾",505:"白禾螟",506:"棕色腮金龟",507:"芋双线天蛾",508:"盲蝽",509:"鲜黄鳃金龟",510:"",511:"红腹白灯蛾",512:"长缘天蛾",513:"",514:"箩纹蛾",515:"叉斜带毒蛾",516:"丝绵木尺蛾",517:"绿刺蛾",518:"谷类大蚊",519:"臭椿皮夜蛾",520:"中华弧夜蛾",521:"星白灯蛾",522:"白蜡绢野螟",523:"蟑螂",524:"枣六点天蛾",525:"虻",526:"紫斑谷螟",527:"豆荚斑螟",528:"红缘翅斑蛾",529:"柳毒蛾",530:"兀鲁夜蛾",531:"蜜蜂",532:"麦牧野螟",533:"紫线尺蛾",534:"内夜蛾",535:"粉纹夜蛾",536:"金黄绢金龟",537:"掌舟蛾",538:"丝棉木尺蛾",539:"绢金龟",540:"枣桃六点天蛾",541:"黏虫",542:"条背天蛾",543:"臭椿皮蛾",544:"甘薯绮夜蛾",545:"茶黄毒蛾",546:"葡萄透翅蛾",547:"白二尾舟蛾",548:"八点灯蛾",549:"绿尾天蚕蛾",550:"萝纹蛾",551:"豹纹木蠧蛾",552:"舞虻",553:"茎蜂",554:"大草蛉",555:"胡麻斑星尺",556:"蜉蝣",557:"尖尾尺蛾",558:"黄扬绢野螟",559:"蚕蛾",560:"黄扬娟野螟",561:"红双线尺蛾",562:"琴纹尺蛾",563:"双斜线尺蛾",564:"白夜蛾",565:"黄褐丽金闹",566:"谷盗",567:"三化螟",568:"绿尺蛾",569:"昏舟蛾",570:"柳干蠹蛾",571:"霜尺蛾",572:"斑虻",573:"银光草螟",574:"菜蛾",575:"豆荚螟",576:"苜蓿夜蛾",577:"白肾夜蛾",578:"白肾灰夜蛾",579:"纯白草螟",580:"茸喙丽金龟",581:"蛇蛉",582:"巨蝼步甲",583:"蜣蝇",584:"贯众伸喙尺蛾",585:"小褐髯须夜蛾",586:"泰山簇斑螟",587:"白桦角须野螟",588:"红黄野螟",589:"黑点蚀叶野螟",590:"木蠹蛾",591:"白线散纹夜蛾",592:"灰蝶尺蛾",593:"杠柳原野螟",594:"幔折线尺蛾",595:"丽蝇",596:"并脉岐角螟蛾",597:"柿星尺蛾",598:"黑斑蚀叶野螟",599:"黄连木尺蠖",600:"中华弥丽金龟",601:"黑皱鳃金龟",602:"中华薄翅天牛",603:"锈红金龟",604:"盾天蛾",605:"短斑普猎蝽",606:"线委夜蛾",607:"云纹虎甲",608:"漆黑污灯蛾",609:"松毛虫",610:"紫带姬尺蛾",611:"螳蛉",612:"花胫绿纹蝗",613:"东北巾夜蛾",614:"柯基纹丛螟",615:"菜氏猛叩甲",616:"星尺蛾",617:"华扁犀金龟",618:"环纹夜蛾",619:"金星尺蛾",620:"旅游瓢虫",621:"鼠天蛾",622:"紫条尺蛾",623:"明痣苔蛾",624:"褐网尺蛾",625:"三叉地老虎",626:"肖二线绿尺蛾",627:"四星尺蛾",628:"红黏夜蛾",629:"小花波尺蛾",630:"朽木甲",631:"灰猎夜蛾",632:"稻巢草螟",633:"指角麦蛾",634:"金盅尺蛾",635:"截翅尺蛾",636:"双线尺蛾",637:"平紫脖夜蛾",638:"沤泊波纹蛾",639:"白污灯蛾",640:"星陌夜蛾",641:"格庶尺蛾",642:"斑蛾",643:"羽舟蛾",644:"苹小卷叶蛾",645:"稻水螟",646:"苹烟尺蛾",647:"蚕豆紫脖蛾",648:"平夜蛾",649:"焚紫脖夜蛾",650:"贯众伸缘野螟",651:"尖瓣灰纹卷蛾",652:"摊巨冬夜蛾",653:"草莓尺蛾",654:"白缘苇野螟",655:"核桃星尺蛾",656:"郭公虫",657:"明纹柏松毛虫",658:"褐线尺蛾",659:"旋歧夜蛾",660:"黄山松毛虫",661:"直紫脖夜蛾",662:"红云翅斑螟",663:"黄灯蛾",664:"家蝇",665:"黄翅缀叶野螟",666:"枣核六点天蛾",667:"福婆鳃金龟",668:"长眉眼尺蛾",669:"夏枯草展须野螟",670:"白背飞虱",671:"灰飞虱",672:"褐飞虱",673:"网纹夜蛾",674:"斑螟",675:"核桃目尺蛾",676:"灰棕金羽蛾",677:"艾棕麦蛾",678:"蝶角蛉",679:"豹蠹蛾",681:"云星黄毒蛾",682:"锯线尺蛾",683:"紫斑黄带蛾",684:"绿蝇",685:"大云斑鳃金龟",686:"血红雪苔蛾",687:"果蝇",688:"纹散灯蛾",689:"排点灯蛾",690:"白钩黏夜蛾",691:"黄毛赛金龟",692:"新林舟蛾",693:"井夜蛾",694:"花实夜蛾",695:"棉褐带卷蛾",696:"卷叶蛾",697:"王氏樗蛾",698:"刺槐外斑尺蛾",699:"懈毛胫夜蛾",700:"糜夜蛾",701:"东方小垫甲",702:"蚁形甲",703:"十二斑褐菌瓢虫",704:"明治苔蛾",705:"葡萄卷叶野螟",706:"大青叶蝉",707:"绢野螟",708:"柳圆叶甲",709:"蜘蛛",710:"隐翅甲",711:"钩月天蛾",712:"寄生蜂",713:"苍蝇",714:"灰直纵螟",715:"倭委夜蛾",716:"小菜蛾",717:"小地老虎螟",718:"中黑盲蝽",719:"粪蜣",721:"壶夜蛾",722:"螽斯",723:"食叶",724:"平台珠蝼步甲",725:"李枯叶蛾",726:"春蜓",727:"点斑雪灯蛾",728:"黄臂灯蛾",729:"旅裳夜蛾",730:"三角夜蛾",731:"蠋步甲",732:"红羽舟蛾",733:"黑蚱蝉",734:"中华黛尺蛾",735:"苜蓿尺蛾",736:"沤伯波纹蛾",737:"灰灯蛾",738:"双裂类荚斑螟",739:"蓝纹尾蟌",740:"莴苣冬夜蛾",741:"两色绮夜蛾",742:"豹灯蛾",743:"四眼尺蛾",744:"核桃六点天蛾",746:"黄柄脉锦斑蛾",747:"甜菜白带螟",748:"大隐翅虫",749:"羽蛾",750:"灰褐带蛾",751:"带蛾",752:"窗胸萤",753:"蝶灯蛾",754:"黄蜻",755:"伊贝鹿蛾",756:"褐顶毒蛾",757:"愕蚕蛾",758:"黄野螟",759:"云尺蛾",761:"马蜂",762:"赤条黄带蛾",763:"茸喙丽金龟",764:"猩红雪苔蛾",765:"齿蛉",766:"草蝉",767:"鬼脸天蛾",768:"小造桥虫",769:"异美苔蛾",770:"旋目夜蛾",771:"稻飞虱",772:"小阔胫鳃金龟",773:"杨卷叶螟",774:"龟纹夜蛾",775:"小阔胫鳃金龟",776:"白灯蛾",777:"绿翠尺蛾",778:"白灯蛾",779:"食虫虻",780:"邑蝽",781:"青翅毒隐翅甲",782:"黑条灰天蛾",783:"黄腹鹿蛾",784:"蓟马",785:"蚂蚁",786:"啮虫",787:"小蜂",788:"粉虱",789:"蛾蠓",790:"跳甲",791:"木虱",792:"黑带灰灯蛾",793:"水鼓甲",794:"细蜂",795:"网蝽",796:"鹿蛾",797:"茧蜂",798:"实蝇",799:"茎甲",801:"浩波纹蛾",802:"红尾天蚕蛾",803:"槐黑星虎天牛",804:"赤巢螟",805:"日愕蚕蛾",806:"变色夜蛾",807:"掌夜蛾",808:"宽夜蛾",809:"二尾舟蛾",810:"茶须野螟",811:"白带符夜蛾",812:"白蚁",813:"中华鼻蜡蝉",814:"黄斑青步甲",815:"茶柄脉锦斑蛾",816:"双斑天蛾",817:"中华斑杧",818:"污刺胸猎蝽",819:"奇裂附步甲",820:"大光蠊",821:"蚱蜢",822:"纹眼尺蛾",823:"栉尾尺蛾",824:"木撩尺蛾",825:"黄灰网尺蛾",826:"幕僚尺蛾",827:"青球箩纹蛾",828:"暗脉艳苔蛾",829:"窄黄缘绿刺蛾",830:"黄星尺蛾",831:"锤角细蜂",832:"行军蚁",833:"沫蝉",834:"赭黄长须蛾",835:"稻摇蚊",836:"稻盲蝽",837:"基黑纹丛螟",838:"蚜蝇",839:"枯叶夜蛾",841:"负泥虫",842:"蛾蜡蝉",843:"粤豹大蚕蛾",844:"东北栎枯叶蛾",845:"仰蝽",846:"毒隐翅甲",847:"黄曲条跳甲",848:"蚊幼虫",849:"黑带污灯蛾",850:"黄褐枯叶蝶",851:"莹叶甲",852:"拟叩甲",853:"泥蜂",854:"蜉蝣幼虫",855:"单鲁夜蛾",856:"干纹夜蛾",857:"斑头蝉",858:"大三角鲁夜蛾",859:"中华岱蝽",860:"豇豆荚螟",861:"中华鹿蛾",862:"三线钩蛾",863:"竹节虫",864:"枯黄惑尺蛾",865:"棘趾野螟",866:"尖锥额野螟",867:"甜菜白带野螟",868:"丽刺小卷蛾",869:"日球箩纹蛾",870:"半鲁夜蛾",871:"间纹德夜蛾",872:"杨雪毒蛾",873:"贡尺蛾",874:"忍冬双斜卷蛾",875:"瓜夜蛾",876:"褐卷蛾",877:"绿黄毛虫",878:"赭翅臂花金龟",879:"黄痣苔蛾",881:"浅褐彩丽金龟",882:"斑黑麦蛾",883:"褐斑虎丽灯蛾",884:"耳斑蟠尺蛾",885:"北李褐枯叶蛾",886:"纹岐角螟",887:"银二星舟蛾",888:"著蕊尾舟蛾",889:"黄褐网尺蛾",890:"丸尺蛾",891:"粉蝶",892:"乌桕巨天蚕蛾",893:"黑长喙天蛾",894:"伞双突野螟",895:"瘿蚊",896:"芫菁",897:"较高",898:"鹰尺蛾",899:"三环狭野螟",900:"姬蠊",901:"朝尺蛾",902:"紫光箩纹蛾",903:"短啄夜蛾",904:"碧伟蜓",905:"核桃美州蛾",906:"梨娜刺蛾",907:"枯球箩纹蛾",908:"蜓",909:"二星舟蛾",910:"朝线夜蛾",911:"明裙剑夜蛾",912:"白点暗野螟",913:"麟角希夜蛾",914:"眼尺蛾",915:"黄双线尺蛾",916:"联梦尼夜蛾",917:"栎毛虫",918:"宏遗夜蛾",919:"太波纹蛾",921:"小斑红蝽",922:"柳沟胸跳甲",923:"田鳖",924:"条螽",925:"角石蛾",926:"缺叉等翅石蛾",927:"尖双突野螟",928:"锈色负子蝽",929:"茶白毒蛾",930:"硃美苔蛾",931:"齿缘龙虱",932:"醋栗尺蛾",933:"强污灯蛾",934:"稻弄蝶",935:"妃夜蛾",936:"白鳃角金龟",937:"棉褐环野螟",938:"暗褐卷蛾",939:"梯斑谷蛾",940:"点线脉褐蛉",941:"桃展足蛾",942:"草小卷蛾",943:"中黑灰夜蛾",944:"小瘿斑蛾",945:"马铃薯瓢虫",946:"点线锦织蛾",947:"圆臀大黾蝽",948:"双红线兔尺蛾",949:"腰带燕尾舟蛾",950:"密云草蛾",951:"女贞首夜蛾",952:"星天蛾",953:"红毛花萤",954:"库蚊",955:"鲁夜蛾",956:"黄粉甲",957:"赞青尺蛾",958:"窄肾长须夜蛾",959:"污灯蛾",961:"波纹小灰蝶",962:"透翅蛾",963:"苜蓿盲蝽",964:"扭拟灯蛾",965:"安土苔蛾",966:"日污灯蛾",967:"柞褐叶螟",968:"乌柏黄毒蛾",969:"黄绒野螟",970:"浅黄箩舟蛾",971:"半带黄毒蛾",972:"钩翅大蚕蛾",973:"肖叶甲",974:"切叶蜂",975:"女贞尺蛾",976:"单斑多形长角纹石蛾",977:"格蔗尺蛾",978:"象蜡蝉",979:"丽美苔蛾",980:"苹小卷蛾",981:"合欢双条天牛",982:"折带黄毒蛾",983:"齿翅三线天蛾",984:"广屁步甲",985:"栎掌天蛾",986:"异螋",987:"中国假蜉",988:"犬蚊",989:"暗步甲",990:"栗山天牛",991:"净污灯蛾",992:"毛颊斑虎甲",993:"优草螽",994:"斑雅尺蛾",995:"肿须隐翅虫",996:"金盏供肩网蛾",997:"绿翅绢野螟",998:"蚱蝉",999:"八点污灯蛾",1001:"联纹小叶春蜓",1002:"奇烈跗步甲",1003:"尖突水龟虫",1004:"长蠹",1005:"黄足猎蝽",1006:"脊冠叶蝉",1007:"珀色毒蛾",1008:"长角水叶甲",1009:"稻蝗",1010:"白线野蚕蛾",1011:"赤双纹螟",1012:"峦文夜蛾",1013:"草螽",1014:"扶桑四点野螟",1015:"大鳖土蝽",1016:"赤梗天牛",1017:"连星污灯蛾",1018:"华星天牛",1019:"紫苑沟胫野螟",1020:"栎鹰翅天蛾",1021:"折无疆青尺蛾",1022:"一点拟灯蛾",1023:"蜡斑甲",1024:"细蛾",1025:"滨尸葬甲",1026:"白雪苔蛾",1027:"横线镰翅野螟",1028:"褐翅棘趾野螟",1029:"甜菜白带夜蛾",1030:"梨叶斑蛾",1031:"钩白肾夜蛾",1032:"红晕散纹夜蛾",1033:"蜡蝉",1034:"肾纹绿尺蛾",1035:"条螟",1036:"双斑黄毒蛾",1037:"大绿异丽金龟",1038:"双带褐褶龙虱",1039:"金色悦野螟",1041:"槐刺外斑尺蛾",1042:"金斑虎甲",1043:"油桐尺蛾",1044:"元参棘趾野螟",1045:"铜绿异丽金龟",1046:"绿蝽",1047:"黑织叶野螟",1048:"黄斑长朽木甲",1049:"元岑棘趾野螟",1050:"窄吉丁",1051:"美雪苔蛾",1052:"散白蚁",1053:"四斑露尾甲",1054:"红点唇瓢虫",1055:"平烟尺蛾",1056:"白蜡卷须野螟",1057:"印度斑谷螟",1058:"杨芦伸啄野螟",1059:"井脉歧角螟蛾"}},GoMz:function(e,t){},IKYp:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUh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8AwciX5e0ath8AAAAASUVORK5CYII="},Kfro:function(e,t){},LRc5:function(e,t,a){e.exports=a.p+"static/img/yujing.da95dad.gif"},MV9c:function(e,t){},Mjpm:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAAIcUlEQVRo3s2bf4xUVxXHP987syy77C4Ly9ZCV34oFPxFS6EFFtbUYEoaQ2atDZNKAU1qXOgKxjRRa2IwVjDQYGnBkhgdCwto0wRqrRuUJpKKoIXyo1FZpO2WIhRkCywrhYV94x9vdt+8mffevPmx1Zu8zLw5995zPu+cc+97974RJS7WF+MRYDqiCZiKNAnRAAxH1CAAuhGXEacR/0QcQ3oVOGS27egrpT0qCVRzvBxoRiwE5iGG273L0aC0I/PcqXcZ8QriecQu89yO6/9TQCsWr0OsAB5F1Ll6zBcuW9aF2IT0tPnF9q4PFdCKxSuBxxErgaos45A/kOtcYeB7EBsQq83Ptl8ddEArFl8APIMY5+qhWLisOhlywylEq9m8/aVBAbRi8aHAOqDVZUhYuMzQ9T1yyjchHjObtl0rGaAVi48GXgamZUOljMr6bVDg+r8fRnzBPLPtbNGAVix+O7AbGB8Kzjc0i4HzlHUi5psN204UDGjF4hOBfYhbXLWDRkpP75UcDgwgnUfMMevbTuYNaMXiDcCfPAeTfOC8PFwMnMmSnULMMU+2nQ4NaMXi5cB+xLTQcMETePFwxl8mOydna21b1o2B8XHg+v8LOJN2eLRT6kBMw7A+lAetWDyG2FUSuKCw9YMz4bwq75Bt1uqtL/oCWrF4NeI4MCavOY4cxueSG3KDZ8J5tzmD+ISe2NrtHaLiO4XDicARz8jxjsEj/ELCBbcZg/i2pwet5ngd0ImochkN/nCZoesXcvPmowXNUF1j1+++TLL9Rdj7eyA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,t){},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),l=a("mvHQ"),s=a.n(l),r=a("exGp"),o=a.n(r),u=a("7+uW"),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},staticRenderFns:[]};var d=a("VU/8")({name:"App"},c,!1,function(e){a("x0aL")},null,null).exports,m=a("/ocq"),h={components:{},data:function(){return{menuOpeneds:[],menuList1:[],menuList2:[],menuActiveId:"",iconObj:{1:"../../../static/images/index/sy.png",2:"../../../static/images/index/gis.png",3:"../../../static/images/index/hjjc.png",4:"../../../static/images/index/sqjc.png",5:"../../../static/images/index/ccjc.png",6:"../../../static/images/index/ksny.png",7:"../../../static/images/index/bhjc.png",8:"../../../static/images/index/xxgl.png",10:"../../../static/images/index/zjzd.png",11:"../../../static/images/index/jdgl.png",12:"../../../static/images/index/yjxx.png",13:"../../../static/images/index/user.png",14:"../../../static/images/index/base.png"},username:"",warningtf:!1}},computed:{},watch:{"$route.path":function(e){this.getpath()}},methods:{getNavList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=user.login.user_login_info",data:this.qs.stringify({})}).then(function(t){t.data;var a=t.data.data.children;e.username=t.data.data.username,e.menuList1=[];for(var i=0;i<a.length;i++)e.menuList1.push(a[i]);localStorage.setItem("menu",s()(e.menuList1)),e.getpath()})},homepage:function(e){this.$router.push("/index/"+e)},subMenuClick:function(e){this.$router.push("/index/"+e)},getpath:function(){var e=String(this.$route.path),t=e.indexOf("/",1),a=e.indexOf("/",t+1),i="";i=-1==a?e.slice(t+1):e.slice(t+1,a);for(var n=0;n<this.menuList1.length;n++)if(i==this.menuList1[n].menu)this.menuActiveId=this.menuList1[n].pur_id.toString();else if(this.menuList1[n].children,this.menuList1[n].children)for(var l=this.menuList1[n].children,s=0;s<l.length;s++)l[s].menu,i==l[s].menu&&(this.menuActiveId=l[s].pur_id.toString(),this.menuActiveId)},towarn:function(){this.$router.push("/index/earlywarning")},quit:function(){localStorage.removeItem("menu"),localStorage.removeItem("keys"),this.$router.push("/login")},getwarningread:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=device.device_picture.warning_read",data:this.qs.stringify({})}).then(function(t){e.warningtf=t.data.data})}},beforeCreate:function(){},created:function(){this.getNavList(),this.getwarningread()},beforeMount:function(){},mounted:function(){var e=this;setInterval(function(){e.getwarningread()},6e5)},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},f={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"projectbox"},[i("div",{staticClass:"projectbox_top"},[e._m(0),e._v(" "),i("div",{staticClass:"projectbox_top_right"},[i("div",{staticClass:"lingdangbox"},[i("img",{staticClass:"lingdang",attrs:{src:a("g5/c"),alt:""},on:{click:e.towarn}}),e._v(" "),i("p",{directives:[{name:"show",rawName:"v-show",value:e.warningtf,expression:"warningtf"}],staticClass:"lingdang_dian"})]),e._v(" "),i("p",{staticClass:"right_line"}),e._v(" "),i("p",[e._v(e._s(e.username))]),e._v(" "),i("p",{staticClass:"tuichu"},[i("i",{staticClass:"el-icon-switch-button",on:{click:e.quit}})])])]),e._v(" "),i("div",{staticClass:"projectbox_textbox"},[i("div",{staticClass:"projectbox_menu"},[i("el-menu",{staticClass:"el-menu-vertical-demo",style:{width:"100%"},attrs:{"default-openeds":e.menuOpeneds,"default-active":e.menuActiveId,"collapse-transition":!1,"unique-opened":"","active-text-color":"#4f71ff"}},[e.menuList1.length?e._l(e.menuList1,function(t){return i("div",{key:t.pur_id},[t.children?i("el-submenu",{staticClass:"Othermenu",style:{width:"100%"},attrs:{index:t.pur_id.toString()}},[i("template",{slot:"title"},[i("img",{attrs:{src:e.iconObj[t.pur_id],alt:""}}),e._v(" "),i("span",[e._v(e._s(t.purview_name))])]),e._v(" "),e._l(t.children,function(a){return i("el-menu-item",{key:a.pur_id,attrs:{index:a.pur_id.toString()},on:{click:function(i){return e.subMenuClick(a.menu,t,a.pur_id)}}},[i("template",{slot:"title"},[i("span",[e._v(e._s(a.purview_name))])])],2)})],2):i("el-menu-item",{attrs:{index:t.pur_id.toString()},on:{click:function(a){return e.homepage(t.menu)}}},[i("img",{attrs:{src:e.iconObj[t.pur_id],alt:""}}),e._v(" "),i("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.purview_name))])])],1)}):e._e()],2)],1),e._v(" "),i("div",{staticClass:"projectbox_content"},[i("keep-alive",[e.$route.meta.keepAlive?i("router-view"):e._e()],1),e._v(" "),e.$route.meta.keepAlive?e._e():i("router-view")],1)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"projectbox_top_left"},[t("img",{attrs:{src:a("Dzer"),alt:""}}),this._v(" "),t("p",[this._v("农业数字化管理服务平台")])])}]};var v=a("VU/8")(h,f,!1,function(e){a("tIvl")},"data-v-18d7964e",null).exports;var p=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";this.encode=function(a){if(a){var i,n,l,s,r,o,u,c="",d=0;for(a=t(a);d<a.length;)s=(i=a.charCodeAt(d++))>>2,r=(3&i)<<4|(n=a.charCodeAt(d++))>>4,o=(15&n)<<2|(l=a.charCodeAt(d++))>>6,u=63&l,isNaN(n)?o=u=64:isNaN(l)&&(u=64),c=c+e.charAt(s)+e.charAt(r)+e.charAt(o)+e.charAt(u);return c}},this.decode=function(t){if(t){var i,n,l,s,r,o,u="",c=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<t.length;)i=e.indexOf(t.charAt(c++))<<2|(s=e.indexOf(t.charAt(c++)))>>4,n=(15&s)<<4|(r=e.indexOf(t.charAt(c++)))>>2,l=(3&r)<<6|(o=e.indexOf(t.charAt(c++))),u+=String.fromCharCode(i),64!=r&&(u+=String.fromCharCode(n)),64!=o&&(u+=String.fromCharCode(l));return u=a(u)}};var t=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",a=0;a<e.length;a++){var i=e.charCodeAt(a);i<128?t+=String.fromCharCode(i):i>127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t},a=function(e){for(var t="",a=0,i=0,n=0,l=0;a<e.length;)(i=e.charCodeAt(a))<128?(t+=String.fromCharCode(i),a++):i>191&&i<224?(l=e.charCodeAt(a+1),t+=String.fromCharCode((31&i)<<6|63&l),a+=2):(l=e.charCodeAt(a+1),n=e.charCodeAt(a+2),t+=String.fromCharCode((15&i)<<12|(63&l)<<6|63&n),a+=3);return t}},g={components:{},data:function(){return{ruleForm:{password:"",username:""},rules:{username:{required:!0,message:"请输入账号",trigger:"blur"},password:{required:!0,message:"请输入密码",trigger:"blur"}}}},computed:{},watch:{},methods:{register:function(){var e=this;this.$refs.ruleForm.validate(function(t){if(!t)return!1;var a=new p;e.$axios({method:"POST",url:"/api/api_gateway?method=user.login.login_user",data:e.qs.stringify({username:a.encode(e.ruleForm.username),password:a.encode(e.ruleForm.password)})}).then(function(t){if(""==t.data.message){t.data.session_key;var a=t.data.data.session_key;localStorage.setItem("keys",a),e.$router.push("/index/home"),localStorage.setItem("username",e.ruleForm.username),localStorage.setItem("myuid",t.data.data.data.myuid)}else 0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})})}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"loginbox"},[a("div",{staticClass:"logininfobox"},[a("div",{staticClass:"logininfo"},[e._m(0),e._v(" "),a("div",{staticClass:"info"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px","label-position":"top"}},[a("el-form-item",{attrs:{label:"账号",prop:"username"}},[a("el-input",{attrs:{placeholder:"请输入账号"},model:{value:e.ruleForm.username,callback:function(t){e.$set(e.ruleForm,"username",t)},expression:"ruleForm.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"密码",prop:"password"}},[a("el-input",{attrs:{type:"password",placeholder:"请输入密码"},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"btn",on:{click:e.register}},[e._v("登 录")])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"title"},[t("p",[this._v("数字迁安")]),this._v(" "),t("p",[this._v("农业数字化管理服务平台")])])}]};var _=a("VU/8")(g,b,!1,function(e){a("/jd6")},"data-v-484be197",null).exports,y=a("bOdI"),w=a.n(y),x=[{children:[{value:"东城区",label:"东城区"},{value:"西城区",label:"西城区"},{value:"朝阳区",label:"朝阳区"},{value:"丰台区",label:"丰台区"},{value:"石景山区",label:"石景山区"},{value:"海淀区",label:"海淀区"},{value:"门头沟区",label:"门头沟区"},{value:"房山区",label:"房山区"},{value:"通州区",label:"通州区"},{value:"顺义区",label:"顺义区"},{value:"昌平区",label:"昌平区"},{value:"大兴区",label:"大兴区"},{value:"怀柔区",label:"怀柔区"},{value:"平谷区",label:"平谷区"},{value:"密云区",label:"密云区"},{value:"延庆区",label:"延庆区"}],value:"北京市",label:"北京市"},{children:[{value:"和平区",label:"和平区"},{value:"河东区",label:"河东区"},{value:"河西区",label:"河西区"},{value:"南开区",label:"南开区"},{value:"河北区",label:"河北区"},{value:"红桥区",label:"红桥区"},{value:"东丽区",label:"东丽区"},{value:"西青区",label:"西青区"},{value:"津南区",label:"津南区"},{value:"北辰区",label:"北辰区"},{value:"武清区",label:"武清区"},{value:"宝坻区",label:"宝坻区"},{value:"滨海新区",label:"滨海新区"},{value:"宁河区",label:"宁河区"},{value:"静海区",label:"静海区"},{value:"蓟州区",label:"蓟州区"}],value:"天津市",label:"天津市"},{children:[{children:[{value:"长安区",label:"长安区"},{value:"桥西区",label:"桥西区"},{value:"新华区",label:"新华区"},{value:"井陉矿区",label:"井陉矿区"},{value:"裕华区",label:"裕华区"},{value:"藁城区",label:"藁城区"},{value:"鹿泉区",label:"鹿泉区"},{value:"栾城区",label:"栾城区"},{value:"井陉县",label:"井陉县"},{value:"正定县",label:"正定县"},{value:"行唐县",label:"行唐县"},{value:"灵寿县",label:"灵寿县"},{value:"高邑县",label:"高邑县"},{value:"深泽县",label:"深泽县"},{value:"赞皇县",label:"赞皇县"},{value:"无极县",label:"无极县"},{value:"平山县",label:"平山县"},{value:"元氏县",label:"元氏县"},{value:"赵县",label:"赵县"},{value:"晋州市",label:"晋州市"},{value:"新乐市",label:"新乐市"}],value:"石家庄市",label:"石家庄市"},{children:[{value:"路南区",label:"路南区"},{value:"路北区",label:"路北区"},{value:"古冶区",label:"古冶区"},{value:"开平区",label:"开平区"},{value:"丰南区",label:"丰南区"},{value:"丰润区",label:"丰润区"},{value:"曹妃甸区",label:"曹妃甸区"},{value:"滦县",label:"滦县"},{value:"滦南县",label:"滦南县"},{value:"乐亭县",label:"乐亭县"},{value:"迁西县",label:"迁西县"},{value:"玉田县",label:"玉田县"},{value:"遵化市",label:"遵化市"},{value:"迁安市",label:"迁安市"}],value:"唐山市",label:"唐山市"},{children:[{value:"海港区",label:"海港区"},{value:"山海关区",label:"山海关区"},{value:"北戴河区",label:"北戴河区"},{value:"抚宁区",label:"抚宁区"},{value:"青龙满族自治县",label:"青龙满族自治县"},{value:"昌黎县",label:"昌黎县"},{value:"卢龙县",label:"卢龙县"}],value:"秦皇岛市",label:"秦皇岛市"},{children:[{value:"邯山区",label:"邯山区"},{value:"丛台区",label:"丛台区"},{value:"复兴区",label:"复兴区"},{value:"峰峰矿区",label:"峰峰矿区"},{value:"邯郸县",label:"邯郸县"},{value:"临漳县",label:"临漳县"},{value:"成安县",label:"成安县"},{value:"大名县",label:"大名县"},{value:"涉县",label:"涉县"},{value:"磁县",label:"磁县"},{value:"肥乡县",label:"肥乡县"},{value:"永年县",label:"永年县"},{value:"邱县",label:"邱县"},{value:"鸡泽县",label:"鸡泽县"},{value:"广平县",label:"广平县"},{value:"馆陶县",label:"馆陶县"},{value:"魏县",label:"魏县"},{value:"曲周县",label:"曲周县"},{value:"武安市",label:"武安市"}],value:"邯郸市",label:"邯郸市"},{children:[{value:"桥东区",label:"桥东区"},{value:"桥西区",label:"桥西区"},{value:"邢台县",label:"邢台县"},{value:"临城县",label:"临城县"},{value:"内丘县",label:"内丘县"},{value:"柏乡县",label:"柏乡县"},{value:"隆尧县",label:"隆尧县"},{value:"任县",label:"任县"},{value:"南和县",label:"南和县"},{value:"宁晋县",label:"宁晋县"},{value:"巨鹿县",label:"巨鹿县"},{value:"新河县",label:"新河县"},{value:"广宗县",label:"广宗县"},{value:"平乡县",label:"平乡县"},{value:"威县",label:"威县"},{value:"清河县",label:"清河县"},{value:"临西县",label:"临西县"},{value:"南宫市",label:"南宫市"},{value:"沙河市",label:"沙河市"}],value:"邢台市",label:"邢台市"},{children:[{value:"竞秀区",label:"竞秀区"},{value:"莲池区",label:"莲池区"},{value:"满城区",label:"满城区"},{value:"清苑区",label:"清苑区"},{value:"徐水区",label:"徐水区"},{value:"涞水县",label:"涞水县"},{value:"阜平县",label:"阜平县"},{value:"定兴县",label:"定兴县"},{value:"唐县",label:"唐县"},{value:"高阳县",label:"高阳县"},{value:"容城县",label:"容城县"},{value:"涞源县",label:"涞源县"},{value:"望都县",label:"望都县"},{value:"安新县",label:"安新县"},{value:"易县",label:"易县"},{value:"曲阳县",label:"曲阳县"},{value:"蠡县",label:"蠡县"},{value:"顺平县",label:"顺平县"},{value:"博野县",label:"博野县"},{value:"雄县",label:"雄县"},{value:"涿州市",label:"涿州市"},{value:"安国市",label:"安国市"},{value:"高碑店市",label:"高碑店市"}],value:"保定市",label:"保定市"},{children:[{value:"桥东区",label:"桥东区"},{value:"桥西区",label:"桥西区"},{value:"宣化区",label:"宣化区"},{value:"下花园区",label:"下花园区"},{value:"万全区",label:"万全区"},{value:"崇礼区",label:"崇礼区"},{value:"张北县",label:"张北县"},{value:"康保县",label:"康保县"},{value:"沽源县",label:"沽源县"},{value:"尚义县",label:"尚义县"},{value:"蔚县",label:"蔚县"},{value:"阳原县",label:"阳原县"},{value:"怀安县",label:"怀安县"},{value:"怀来县",label:"怀来县"},{value:"涿鹿县",label:"涿鹿县"},{value:"赤城县",label:"赤城县"}],value:"张家口市",label:"张家口市"},{children:[{value:"双桥区",label:"双桥区"},{value:"双滦区",label:"双滦区"},{value:"鹰手营子矿区",label:"鹰手营子矿区"},{value:"承德县",label:"承德县"},{value:"兴隆县",label:"兴隆县"},{value:"平泉县",label:"平泉县"},{value:"滦平县",label:"滦平县"},{value:"隆化县",label:"隆化县"},{value:"丰宁满族自治县",label:"丰宁满族自治县"},{value:"宽城满族自治县",label:"宽城满族自治县"},{value:"围场满族蒙古族自治县",label:"围场满族蒙古族自治县"}],value:"承德市",label:"承德市"},{children:[{value:"新华区",label:"新华区"},{value:"运河区",label:"运河区"},{value:"沧县",label:"沧县"},{value:"青县",label:"青县"},{value:"东光县",label:"东光县"},{value:"海兴县",label:"海兴县"},{value:"盐山县",label:"盐山县"},{value:"肃宁县",label:"肃宁县"},{value:"南皮县",label:"南皮县"},{value:"吴桥县",label:"吴桥县"},{value:"献县",label:"献县"},{value:"孟村回族自治县",label:"孟村回族自治县"},{value:"泊头市",label:"泊头市"},{value:"任丘市",label:"任丘市"},{value:"黄骅市",label:"黄骅市"},{value:"河间市",label:"河间市"}],value:"沧州市",label:"沧州市"},{children:[{value:"安次区",label:"安次区"},{value:"广阳区",label:"广阳区"},{value:"固安县",label:"固安县"},{value:"永清县",label:"永清县"},{value:"香河县",label:"香河县"},{value:"大城县",label:"大城县"},{value:"文安县",label:"文安县"},{value:"大厂回族自治县",label:"大厂回族自治县"},{value:"霸州市",label:"霸州市"},{value:"三河市",label:"三河市"}],value:"廊坊市",label:"廊坊市"},{children:[{value:"桃城区",label:"桃城区"},{value:"冀州区",label:"冀州区"},{value:"枣强县",label:"枣强县"},{value:"武邑县",label:"武邑县"},{value:"武强县",label:"武强县"},{value:"饶阳县",label:"饶阳县"},{value:"安平县",label:"安平县"},{value:"故城县",label:"故城县"},{value:"景县",label:"景县"},{value:"阜城县",label:"阜城县"},{value:"深州市",label:"深州市"}],value:"衡水市",label:"衡水市"},{value:"定州市",label:"定州市"},{value:"辛集市",label:"辛集市"}],value:"河北省",label:"河北省"},{children:[{children:[{value:"小店区",label:"小店区"},{value:"迎泽区",label:"迎泽区"},{value:"杏花岭区",label:"杏花岭区"},{value:"尖草坪区",label:"尖草坪区"},{value:"万柏林区",label:"万柏林区"},{value:"晋源区",label:"晋源区"},{value:"清徐县",label:"清徐县"},{value:"阳曲县",label:"阳曲县"},{value:"娄烦县",label:"娄烦县"},{value:"古交市",label:"古交市"}],value:"太原市",label:"太原市"},{children:[{value:"城区",label:"城区"},{value:"矿区",label:"矿区"},{value:"南郊区",label:"南郊区"},{value:"新荣区",label:"新荣区"},{value:"阳高县",label:"阳高县"},{value:"天镇县",label:"天镇县"},{value:"广灵县",label:"广灵县"},{value:"灵丘县",label:"灵丘县"},{value:"浑源县",label:"浑源县"},{value:"左云县",label:"左云县"},{value:"大同县",label:"大同县"}],value:"大同市",label:"大同市"},{children:[{value:"城区",label:"城区"},{value:"矿区",label:"矿区"},{value:"郊区",label:"郊区"},{value:"平定县",label:"平定县"},{value:"盂县",label:"盂县"}],value:"阳泉市",label:"阳泉市"},{children:[{value:"城区",label:"城区"},{value:"郊区",label:"郊区"},{value:"长治县",label:"长治县"},{value:"襄垣县",label:"襄垣县"},{value:"屯留县",label:"屯留县"},{value:"平顺县",label:"平顺县"},{value:"黎城县",label:"黎城县"},{value:"壶关县",label:"壶关县"},{value:"长子县",label:"长子县"},{value:"武乡县",label:"武乡县"},{value:"沁县",label:"沁县"},{value:"沁源县",label:"沁源县"},{value:"潞城市",label:"潞城市"}],value:"长治市",label:"长治市"},{children:[{value:"城区",label:"城区"},{value:"沁水县",label:"沁水县"},{value:"阳城县",label:"阳城县"},{value:"陵川县",label:"陵川县"},{value:"泽州县",label:"泽州县"},{value:"高平市",label:"高平市"}],value:"晋城市",label:"晋城市"},{children:[{value:"朔城区",label:"朔城区"},{value:"平鲁区",label:"平鲁区"},{value:"山阴县",label:"山阴县"},{value:"应县",label:"应县"},{value:"右玉县",label:"右玉县"},{value:"怀仁县",label:"怀仁县"}],value:"朔州市",label:"朔州市"},{children:[{value:"榆次区",label:"榆次区"},{value:"榆社县",label:"榆社县"},{value:"左权县",label:"左权县"},{value:"和顺县",label:"和顺县"},{value:"昔阳县",label:"昔阳县"},{value:"寿阳县",label:"寿阳县"},{value:"太谷县",label:"太谷县"},{value:"祁县",label:"祁县"},{value:"平遥县",label:"平遥县"},{value:"灵石县",label:"灵石县"},{value:"介休市",label:"介休市"}],value:"晋中市",label:"晋中市"},{children:[{value:"盐湖区",label:"盐湖区"},{value:"临猗县",label:"临猗县"},{value:"万荣县",label:"万荣县"},{value:"闻喜县",label:"闻喜县"},{value:"稷山县",label:"稷山县"},{value:"新绛县",label:"新绛县"},{value:"绛县",label:"绛县"},{value:"垣曲县",label:"垣曲县"},{value:"夏县",label:"夏县"},{value:"平陆县",label:"平陆县"},{value:"芮城县",label:"芮城县"},{value:"永济市",label:"永济市"},{value:"河津市",label:"河津市"}],value:"运城市",label:"运城市"},{children:[{value:"忻府区",label:"忻府区"},{value:"定襄县",label:"定襄县"},{value:"五台县",label:"五台县"},{value:"代县",label:"代县"},{value:"繁峙县",label:"繁峙县"},{value:"宁武县",label:"宁武县"},{value:"静乐县",label:"静乐县"},{value:"神池县",label:"神池县"},{value:"五寨县",label:"五寨县"},{value:"岢岚县",label:"岢岚县"},{value:"河曲县",label:"河曲县"},{value:"保德县",label:"保德县"},{value:"偏关县",label:"偏关县"},{value:"原平市",label:"原平市"}],value:"忻州市",label:"忻州市"},{children:[{value:"尧都区",label:"尧都区"},{value:"曲沃县",label:"曲沃县"},{value:"翼城县",label:"翼城县"},{value:"襄汾县",label:"襄汾县"},{value:"洪洞县",label:"洪洞县"},{value:"古县",label:"古县"},{value:"安泽县",label:"安泽县"},{value:"浮山县",label:"浮山县"},{value:"吉县",label:"吉县"},{value:"乡宁县",label:"乡宁县"},{value:"大宁县",label:"大宁县"},{value:"隰县",label:"隰县"},{value:"永和县",label:"永和县"},{value:"蒲县",label:"蒲县"},{value:"汾西县",label:"汾西县"},{value:"侯马市",label:"侯马市"},{value:"霍州市",label:"霍州市"}],value:"临汾市",label:"临汾市"},{children:[{value:"离石区",label:"离石区"},{value:"文水县",label:"文水县"},{value:"交城县",label:"交城县"},{value:"兴县",label:"兴县"},{value:"临县",label:"临县"},{value:"柳林县",label:"柳林县"},{value:"石楼县",label:"石楼县"},{value:"岚县",label:"岚县"},{value:"方山县",label:"方山县"},{value:"中阳县",label:"中阳县"},{value:"交口县",label:"交口县"},{value:"孝义市",label:"孝义市"},{value:"汾阳市",label:"汾阳市"}],value:"吕梁市",label:"吕梁市"}],value:"山西省",label:"山西省"},{children:[{children:[{value:"新城区",label:"新城区"},{value:"回民区",label:"回民区"},{value:"玉泉区",label:"玉泉区"},{value:"赛罕区",label:"赛罕区"},{value:"土默特左旗",label:"土默特左旗"},{value:"托克托县",label:"托克托县"},{value:"和林格尔县",label:"和林格尔县"},{value:"清水河县",label:"清水河县"},{value:"武川县",label:"武川县"}],value:"呼和浩特市",label:"呼和浩特市"},{children:[{value:"东河区",label:"东河区"},{value:"昆都仑区",label:"昆都仑区"},{value:"青山区",label:"青山区"},{value:"石拐区",label:"石拐区"},{value:"白云鄂博矿区",label:"白云鄂博矿区"},{value:"九原区",label:"九原区"},{value:"土默特右旗",label:"土默特右旗"},{value:"固阳县",label:"固阳县"},{value:"达尔罕茂明安联合旗",label:"达尔罕茂明安联合旗"}],value:"包头市",label:"包头市"},{children:[{value:"海勃湾区",label:"海勃湾区"},{value:"海南区",label:"海南区"},{value:"乌达区",label:"乌达区"}],value:"乌海市",label:"乌海市"},{children:[{value:"红山区",label:"红山区"},{value:"元宝山区",label:"元宝山区"},{value:"松山区",label:"松山区"},{value:"阿鲁科尔沁旗",label:"阿鲁科尔沁旗"},{value:"巴林左旗",label:"巴林左旗"},{value:"巴林右旗",label:"巴林右旗"},{value:"林西县",label:"林西县"},{value:"克什克腾旗",label:"克什克腾旗"},{value:"翁牛特旗",label:"翁牛特旗"},{value:"喀喇沁旗",label:"喀喇沁旗"},{value:"宁城县",label:"宁城县"},{value:"敖汉旗",label:"敖汉旗"}],value:"赤峰市",label:"赤峰市"},{children:[{value:"科尔沁区",label:"科尔沁区"},{value:"科尔沁左翼中旗",label:"科尔沁左翼中旗"},{value:"科尔沁左翼后旗",label:"科尔沁左翼后旗"},{value:"开鲁县",label:"开鲁县"},{value:"库伦旗",label:"库伦旗"},{value:"奈曼旗",label:"奈曼旗"},{value:"扎鲁特旗",label:"扎鲁特旗"},{value:"霍林郭勒市",label:"霍林郭勒市"}],value:"通辽市",label:"通辽市"},{children:[{value:"东胜区",label:"东胜区"},{value:"康巴什区",label:"康巴什区"},{value:"达拉特旗",label:"达拉特旗"},{value:"准格尔旗",label:"准格尔旗"},{value:"鄂托克前旗",label:"鄂托克前旗"},{value:"鄂托克旗",label:"鄂托克旗"},{value:"杭锦旗",label:"杭锦旗"},{value:"乌审旗",label:"乌审旗"},{value:"伊金霍洛旗",label:"伊金霍洛旗"}],value:"鄂尔多斯市",label:"鄂尔多斯市"},{children:[{value:"海拉尔区",label:"海拉尔区"},{value:"扎赉诺尔区",label:"扎赉诺尔区"},{value:"阿荣旗",label:"阿荣旗"},{value:"莫力达瓦达斡尔族自治旗",label:"莫力达瓦达斡尔族自治旗"},{value:"鄂伦春自治旗",label:"鄂伦春自治旗"},{value:"鄂温克族自治旗",label:"鄂温克族自治旗"},{value:"陈巴尔虎旗",label:"陈巴尔虎旗"},{value:"新巴尔虎左旗",label:"新巴尔虎左旗"},{value:"新巴尔虎右旗",label:"新巴尔虎右旗"},{value:"满洲里市",label:"满洲里市"},{value:"牙克石市",label:"牙克石市"},{value:"扎兰屯市",label:"扎兰屯市"},{value:"额尔古纳市",label:"额尔古纳市"},{value:"根河市",label:"根河市"}],value:"呼伦贝尔市",label:"呼伦贝尔市"},{children:[{value:"临河区",label:"临河区"},{value:"五原县",label:"五原县"},{value:"磴口县",label:"磴口县"},{value:"乌拉特前旗",label:"乌拉特前旗"},{value:"乌拉特中旗",label:"乌拉特中旗"},{value:"乌拉特后旗",label:"乌拉特后旗"},{value:"杭锦后旗",label:"杭锦后旗"}],value:"巴彦淖尔市",label:"巴彦淖尔市"},{children:[{value:"集宁区",label:"集宁区"},{value:"卓资县",label:"卓资县"},{value:"化德县",label:"化德县"},{value:"商都县",label:"商都县"},{value:"兴和县",label:"兴和县"},{value:"凉城县",label:"凉城县"},{value:"察哈尔右翼前旗",label:"察哈尔右翼前旗"},{value:"察哈尔右翼中旗",label:"察哈尔右翼中旗"},{value:"察哈尔右翼后旗",label:"察哈尔右翼后旗"},{value:"四子王旗",label:"四子王旗"},{value:"丰镇市",label:"丰镇市"}],value:"乌兰察布市",label:"乌兰察布市"},{children:[{value:"乌兰浩特市",label:"乌兰浩特市"},{value:"阿尔山市",label:"阿尔山市"},{value:"科尔沁右翼前旗",label:"科尔沁右翼前旗"},{value:"科尔沁右翼中旗",label:"科尔沁右翼中旗"},{value:"扎赉特旗",label:"扎赉特旗"},{value:"突泉县",label:"突泉县"}],value:"兴安盟",label:"兴安盟"},{children:[{value:"二连浩特市",label:"二连浩特市"},{value:"锡林浩特市",label:"锡林浩特市"},{value:"阿巴嘎旗",label:"阿巴嘎旗"},{value:"苏尼特左旗",label:"苏尼特左旗"},{value:"苏尼特右旗",label:"苏尼特右旗"},{value:"东乌珠穆沁旗",label:"东乌珠穆沁旗"},{value:"西乌珠穆沁旗",label:"西乌珠穆沁旗"},{value:"太仆寺旗",label:"太仆寺旗"},{value:"镶黄旗",label:"镶黄旗"},{value:"正镶白旗",label:"正镶白旗"},{value:"正蓝旗",label:"正蓝旗"},{value:"多伦县",label:"多伦县"}],value:"锡林郭勒盟",label:"锡林郭勒盟"},{children:[{value:"阿拉善左旗",label:"阿拉善左旗"},{value:"阿拉善右旗",label:"阿拉善右旗"},{value:"额济纳旗",label:"额济纳旗"}],value:"阿拉善盟",label:"阿拉善盟"}],value:"内蒙古自治区",label:"内蒙古自治区"},{children:[{children:[{value:"和平区",label:"和平区"},{value:"沈河区",label:"沈河区"},{value:"大东区",label:"大东区"},{value:"皇姑区",label:"皇姑区"},{value:"铁西区",label:"铁西区"},{value:"苏家屯区",label:"苏家屯区"},{value:"浑南区",label:"浑南区"},{value:"沈北新区",label:"沈北新区"},{value:"于洪区",label:"于洪区"},{value:"辽中区",label:"辽中区"},{value:"康平县",label:"康平县"},{value:"法库县",label:"法库县"},{value:"新民市",label:"新民市"}],value:"沈阳市",label:"沈阳市"},{children:[{value:"中山区",label:"中山区"},{value:"西岗区",label:"西岗区"},{value:"沙河口区",label:"沙河口区"},{value:"甘井子区",label:"甘井子区"},{value:"旅顺口区",label:"旅顺口区"},{value:"金州区",label:"金州区"},{value:"普兰店区",label:"普兰店区"},{value:"长海县",label:"长海县"},{value:"瓦房店市",label:"瓦房店市"},{value:"庄河市",label:"庄河市"}],value:"大连市",label:"大连市"},{children:[{value:"铁东区",label:"铁东区"},{value:"铁西区",label:"铁西区"},{value:"立山区",label:"立山区"},{value:"千山区",label:"千山区"},{value:"台安县",label:"台安县"},{value:"岫岩满族自治县",label:"岫岩满族自治县"},{value:"海城市",label:"海城市"}],value:"鞍山市",label:"鞍山市"},{children:[{value:"新抚区",label:"新抚区"},{value:"东洲区",label:"东洲区"},{value:"望花区",label:"望花区"},{value:"顺城区",label:"顺城区"},{value:"抚顺县",label:"抚顺县"},{value:"新宾满族自治县",label:"新宾满族自治县"},{value:"清原满族自治县",label:"清原满族自治县"}],value:"抚顺市",label:"抚顺市"},{children:[{value:"平山区",label:"平山区"},{value:"溪湖区",label:"溪湖区"},{value:"明山区",label:"明山区"},{value:"南芬区",label:"南芬区"},{value:"本溪满族自治县",label:"本溪满族自治县"},{value:"桓仁满族自治县",label:"桓仁满族自治县"}],value:"本溪市",label:"本溪市"},{children:[{value:"元宝区",label:"元宝区"},{value:"振兴区",label:"振兴区"},{value:"振安区",label:"振安区"},{value:"宽甸满族自治县",label:"宽甸满族自治县"},{value:"东港市",label:"东港市"},{value:"凤城市",label:"凤城市"}],value:"丹东市",label:"丹东市"},{children:[{value:"古塔区",label:"古塔区"},{value:"凌河区",label:"凌河区"},{value:"太和区",label:"太和区"},{value:"黑山县",label:"黑山县"},{value:"义县",label:"义县"},{value:"凌海市",label:"凌海市"},{value:"北镇市",label:"北镇市"}],value:"锦州市",label:"锦州市"},{children:[{value:"站前区",label:"站前区"},{value:"西市区",label:"西市区"},{value:"鲅鱼圈区",label:"鲅鱼圈区"},{value:"老边区",label:"老边区"},{value:"盖州市",label:"盖州市"},{value:"大石桥市",label:"大石桥市"}],value:"营口市",label:"营口市"},{children:[{value:"海州区",label:"海州区"},{value:"新邱区",label:"新邱区"},{value:"太平区",label:"太平区"},{value:"清河门区",label:"清河门区"},{value:"细河区",label:"细河区"},{value:"阜新蒙古族自治县",label:"阜新蒙古族自治县"},{value:"彰武县",label:"彰武县"}],value:"阜新市",label:"阜新市"},{children:[{value:"白塔区",label:"白塔区"},{value:"文圣区",label:"文圣区"},{value:"宏伟区",label:"宏伟区"},{value:"弓长岭区",label:"弓长岭区"},{value:"太子河区",label:"太子河区"},{value:"辽阳县",label:"辽阳县"},{value:"灯塔市",label:"灯塔市"}],value:"辽阳市",label:"辽阳市"},{children:[{value:"双台子区",label:"双台子区"},{value:"兴隆台区",label:"兴隆台区"},{value:"大洼区",label:"大洼区"},{value:"盘山县",label:"盘山县"}],value:"盘锦市",label:"盘锦市"},{children:[{value:"银州区",label:"银州区"},{value:"清河区",label:"清河区"},{value:"铁岭县",label:"铁岭县"},{value:"西丰县",label:"西丰县"},{value:"昌图县",label:"昌图县"},{value:"调兵山市",label:"调兵山市"},{value:"开原市",label:"开原市"}],value:"铁岭市",label:"铁岭市"},{children:[{value:"双塔区",label:"双塔区"},{value:"龙城区",label:"龙城区"},{value:"朝阳县",label:"朝阳县"},{value:"建平县",label:"建平县"},{value:"喀喇沁左翼蒙古族自治县",label:"喀喇沁左翼蒙古族自治县"},{value:"北票市",label:"北票市"},{value:"凌源市",label:"凌源市"}],value:"朝阳市",label:"朝阳市"},{children:[{value:"连山区",label:"连山区"},{value:"龙港区",label:"龙港区"},{value:"南票区",label:"南票区"},{value:"绥中县",label:"绥中县"},{value:"建昌县",label:"建昌县"},{value:"兴城市",label:"兴城市"}],value:"葫芦岛市",label:"葫芦岛市"}],value:"辽宁省",label:"辽宁省"},{children:[{children:[{value:"南关区",label:"南关区"},{value:"宽城区",label:"宽城区"},{value:"朝阳区",label:"朝阳区"},{value:"二道区",label:"二道区"},{value:"绿园区",label:"绿园区"},{value:"双阳区",label:"双阳区"},{value:"九台区",label:"九台区"},{value:"农安县",label:"农安县"},{value:"榆树市",label:"榆树市"},{value:"德惠市",label:"德惠市"}],value:"长春市",label:"长春市"},{children:[{value:"昌邑区",label:"昌邑区"},{value:"龙潭区",label:"龙潭区"},{value:"船营区",label:"船营区"},{value:"丰满区",label:"丰满区"},{value:"永吉县",label:"永吉县"},{value:"蛟河市",label:"蛟河市"},{value:"桦甸市",label:"桦甸市"},{value:"舒兰市",label:"舒兰市"},{value:"磐石市",label:"磐石市"}],value:"吉林市",label:"吉林市"},{children:[{value:"铁西区",label:"铁西区"},{value:"铁东区",label:"铁东区"},{value:"梨树县",label:"梨树县"},{value:"伊通满族自治县",label:"伊通满族自治县"},{value:"公主岭市",label:"公主岭市"},{value:"双辽市",label:"双辽市"}],value:"四平市",label:"四平市"},{children:[{value:"龙山区",label:"龙山区"},{value:"西安区",label:"西安区"},{value:"东丰县",label:"东丰县"},{value:"东辽县",label:"东辽县"}],value:"辽源市",label:"辽源市"},{children:[{value:"东昌区",label:"东昌区"},{value:"二道江区",label:"二道江区"},{value:"通化县",label:"通化县"},{value:"辉南县",label:"辉南县"},{value:"柳河县",label:"柳河县"},{value:"梅河口市",label:"梅河口市"},{value:"集安市",label:"集安市"}],value:"通化市",label:"通化市"},{children:[{value:"浑江区",label:"浑江区"},{value:"江源区",label:"江源区"},{value:"抚松县",label:"抚松县"},{value:"靖宇县",label:"靖宇县"},{value:"长白朝鲜族自治县",label:"长白朝鲜族自治县"},{value:"临江市",label:"临江市"}],value:"白山市",label:"白山市"},{children:[{value:"宁江区",label:"宁江区"},{value:"前郭尔罗斯蒙古族自治县",label:"前郭尔罗斯蒙古族自治县"},{value:"长岭县",label:"长岭县"},{value:"乾安县",label:"乾安县"},{value:"扶余市",label:"扶余市"}],value:"松原市",label:"松原市"},{children:[{value:"洮北区",label:"洮北区"},{value:"镇赉县",label:"镇赉县"},{value:"通榆县",label:"通榆县"},{value:"洮南市",label:"洮南市"},{value:"大安市",label:"大安市"}],value:"白城市",label:"白城市"},{children:[{value:"延吉市",label:"延吉市"},{value:"图们市",label:"图们市"},{value:"敦化市",label:"敦化市"},{value:"珲春市",label:"珲春市"},{value:"龙井市",label:"龙井市"},{value:"和龙市",label:"和龙市"},{value:"汪清县",label:"汪清县"},{value:"安图县",label:"安图县"}],value:"延边朝鲜族自治州",label:"延边朝鲜族自治州"}],value:"吉林省",label:"吉林省"},{children:[{children:[{value:"道里区",label:"道里区"},{value:"南岗区",label:"南岗区"},{value:"道外区",label:"道外区"},{value:"平房区",label:"平房区"},{value:"松北区",label:"松北区"},{value:"香坊区",label:"香坊区"},{value:"呼兰区",label:"呼兰区"},{value:"阿城区",label:"阿城区"},{value:"双城区",label:"双城区"},{value:"依兰县",label:"依兰县"},{value:"方正县",label:"方正县"},{value:"宾县",label:"宾县"},{value:"巴彦县",label:"巴彦县"},{value:"木兰县",label:"木兰县"},{value:"通河县",label:"通河县"},{value:"延寿县",label:"延寿县"},{value:"尚志市",label:"尚志市"},{value:"五常市",label:"五常市"}],value:"哈尔滨市",label:"哈尔滨市"},{children:[{value:"龙沙区",label:"龙沙区"},{value:"建华区",label:"建华区"},{value:"铁锋区",label:"铁锋区"},{value:"昂昂溪区",label:"昂昂溪区"},{value:"富拉尔基区",label:"富拉尔基区"},{value:"碾子山区",label:"碾子山区"},{value:"梅里斯达斡尔族区",label:"梅里斯达斡尔族区"},{value:"龙江县",label:"龙江县"},{value:"依安县",label:"依安县"},{value:"泰来县",label:"泰来县"},{value:"甘南县",label:"甘南县"},{value:"富裕县",label:"富裕县"},{value:"克山县",label:"克山县"},{value:"克东县",label:"克东县"},{value:"拜泉县",label:"拜泉县"},{value:"讷河市",label:"讷河市"}],value:"齐齐哈尔市",label:"齐齐哈尔市"},{children:[{value:"鸡冠区",label:"鸡冠区"},{value:"恒山区",label:"恒山区"},{value:"滴道区",label:"滴道区"},{value:"梨树区",label:"梨树区"},{value:"城子河区",label:"城子河区"},{value:"麻山区",label:"麻山区"},{value:"鸡东县",label:"鸡东县"},{value:"虎林市",label:"虎林市"},{value:"密山市",label:"密山市"}],value:"鸡西市",label:"鸡西市"},{children:[{value:"向阳区",label:"向阳区"},{value:"工农区",label:"工农区"},{value:"南山区",label:"南山区"},{value:"兴安区",label:"兴安区"},{value:"东山区",label:"东山区"},{value:"兴山区",label:"兴山区"},{value:"萝北县",label:"萝北县"},{value:"绥滨县",label:"绥滨县"}],value:"鹤岗市",label:"鹤岗市"},{children:[{value:"尖山区",label:"尖山区"},{value:"岭东区",label:"岭东区"},{value:"四方台区",label:"四方台区"},{value:"宝山区",label:"宝山区"},{value:"集贤县",label:"集贤县"},{value:"友谊县",label:"友谊县"},{value:"宝清县",label:"宝清县"},{value:"饶河县",label:"饶河县"}],value:"双鸭山市",label:"双鸭山市"},{children:[{value:"萨尔图区",label:"萨尔图区"},{value:"龙凤区",label:"龙凤区"},{value:"让胡路区",label:"让胡路区"},{value:"红岗区",label:"红岗区"},{value:"大同区",label:"大同区"},{value:"肇州县",label:"肇州县"},{value:"肇源县",label:"肇源县"},{value:"林甸县",label:"林甸县"},{value:"杜尔伯特蒙古族自治县",label:"杜尔伯特蒙古族自治县"}],value:"大庆市",label:"大庆市"},{children:[{value:"伊春区",label:"伊春区"},{value:"南岔区",label:"南岔区"},{value:"友好区",label:"友好区"},{value:"西林区",label:"西林区"},{value:"翠峦区",label:"翠峦区"},{value:"新青区",label:"新青区"},{value:"美溪区",label:"美溪区"},{value:"金山屯区",label:"金山屯区"},{value:"五营区",label:"五营区"},{value:"乌马河区",label:"乌马河区"},{value:"汤旺河区",label:"汤旺河区"},{value:"带岭区",label:"带岭区"},{value:"乌伊岭区",label:"乌伊岭区"},{value:"红星区",label:"红星区"},{value:"上甘岭区",label:"上甘岭区"},{value:"嘉荫县",label:"嘉荫县"},{value:"铁力市",label:"铁力市"}],value:"伊春市",label:"伊春市"},{children:[{value:"向阳区",label:"向阳区"},{value:"前进区",label:"前进区"},{value:"东风区",label:"东风区"},{value:"郊区",label:"郊区"},{value:"桦南县",label:"桦南县"},{value:"桦川县",label:"桦川县"},{value:"汤原县",label:"汤原县"},{value:"同江市",label:"同江市"},{value:"富锦市",label:"富锦市"},{value:"抚远市",label:"抚远市"}],value:"佳木斯市",label:"佳木斯市"},{children:[{value:"新兴区",label:"新兴区"},{value:"桃山区",label:"桃山区"},{value:"茄子河区",label:"茄子河区"},{value:"勃利县",label:"勃利县"}],value:"七台河市",label:"七台河市"},{children:[{value:"东安区",label:"东安区"},{value:"阳明区",label:"阳明区"},{value:"爱民区",label:"爱民区"},{value:"西安区",label:"西安区"},{value:"林口县",label:"林口县"},{value:"绥芬河市",label:"绥芬河市"},{value:"海林市",label:"海林市"},{value:"宁安市",label:"宁安市"},{value:"穆棱市",label:"穆棱市"},{value:"东宁市",label:"东宁市"}],value:"牡丹江市",label:"牡丹江市"},{children:[{value:"爱辉区",label:"爱辉区"},{value:"嫩江县",label:"嫩江县"},{value:"逊克县",label:"逊克县"},{value:"孙吴县",label:"孙吴县"},{value:"北安市",label:"北安市"},{value:"五大连池市",label:"五大连池市"}],value:"黑河市",label:"黑河市"},{children:[{value:"北林区",label:"北林区"},{value:"望奎县",label:"望奎县"},{value:"兰西县",label:"兰西县"},{value:"青冈县",label:"青冈县"},{value:"庆安县",label:"庆安县"},{value:"明水县",label:"明水县"},{value:"绥棱县",label:"绥棱县"},{value:"安达市",label:"安达市"},{value:"肇东市",label:"肇东市"},{value:"海伦市",label:"海伦市"}],value:"绥化市",label:"绥化市"},{children:[{value:"呼玛县",label:"呼玛县"},{value:"塔河县",label:"塔河县"},{value:"漠河县",label:"漠河县"}],value:"大兴安岭地区",label:"大兴安岭地区"}],value:"黑龙江省",label:"黑龙江省"},{children:[{value:"黄浦区",label:"黄浦区"},{value:"徐汇区",label:"徐汇区"},{value:"长宁区",label:"长宁区"},{value:"静安区",label:"静安区"},{value:"普陀区",label:"普陀区"},{value:"虹口区",label:"虹口区"},{value:"杨浦区",label:"杨浦区"},{value:"闵行区",label:"闵行区"},{value:"宝山区",label:"宝山区"},{value:"嘉定区",label:"嘉定区"},{value:"浦东新区",label:"浦东新区"},{value:"金山区",label:"金山区"},{value:"松江区",label:"松江区"},{value:"青浦区",label:"青浦区"},{value:"奉贤区",label:"奉贤区"},{value:"崇明区",label:"崇明区"}],value:"上海市",label:"上海市"},{children:[{children:[{value:"玄武区",label:"玄武区"},{value:"秦淮区",label:"秦淮区"},{value:"建邺区",label:"建邺区"},{value:"鼓楼区",label:"鼓楼区"},{value:"浦口区",label:"浦口区"},{value:"栖霞区",label:"栖霞区"},{value:"雨花台区",label:"雨花台区"},{value:"江宁区",label:"江宁区"},{value:"六合区",label:"六合区"},{value:"溧水区",label:"溧水区"},{value:"高淳区",label:"高淳区"}],value:"南京市",label:"南京市"},{children:[{value:"锡山区",label:"锡山区"},{value:"惠山区",label:"惠山区"},{value:"滨湖区",label:"滨湖区"},{value:"梁溪区",label:"梁溪区"},{value:"新吴区",label:"新吴区"},{value:"江阴市",label:"江阴市"},{value:"宜兴市",label:"宜兴市"}],value:"无锡市",label:"无锡市"},{children:[{value:"鼓楼区",label:"鼓楼区"},{value:"云龙区",label:"云龙区"},{value:"贾汪区",label:"贾汪区"},{value:"泉山区",label:"泉山区"},{value:"铜山区",label:"铜山区"},{value:"丰县",label:"丰县"},{value:"沛县",label:"沛县"},{value:"睢宁县",label:"睢宁县"},{value:"新沂市",label:"新沂市"},{value:"邳州市",label:"邳州市"}],value:"徐州市",label:"徐州市"},{children:[{value:"天宁区",label:"天宁区"},{value:"钟楼区",label:"钟楼区"},{value:"新北区",label:"新北区"},{value:"武进区",label:"武进区"},{value:"金坛区",label:"金坛区"},{value:"溧阳市",label:"溧阳市"}],value:"常州市",label:"常州市"},{children:[{value:"虎丘区",label:"虎丘区"},{value:"吴中区",label:"吴中区"},{value:"相城区",label:"相城区"},{value:"姑苏区",label:"姑苏区"},{value:"吴江区",label:"吴江区"},{value:"常熟市",label:"常熟市"},{value:"张家港市",label:"张家港市"},{value:"昆山市",label:"昆山市"},{value:"太仓市",label:"太仓市"}],value:"苏州市",label:"苏州市"},{children:[{value:"崇川区",label:"崇川区"},{value:"港闸区",label:"港闸区"},{value:"通州区",label:"通州区"},{value:"海安县",label:"海安县"},{value:"如东县",label:"如东县"},{value:"启东市",label:"启东市"},{value:"如皋市",label:"如皋市"},{value:"海门市",label:"海门市"}],value:"南通市",label:"南通市"},{children:[{value:"连云区",label:"连云区"},{value:"海州区",label:"海州区"},{value:"赣榆区",label:"赣榆区"},{value:"东海县",label:"东海县"},{value:"灌云县",label:"灌云县"},{value:"灌南县",label:"灌南县"}],value:"连云港市",label:"连云港市"},{children:[{value:"淮安区",label:"淮安区"},{value:"淮阴区",label:"淮阴区"},{value:"清江浦区",label:"清江浦区"},{value:"洪泽区",label:"洪泽区"},{value:"涟水县",label:"涟水县"},{value:"盱眙县",label:"盱眙县"},{value:"金湖县",label:"金湖县"}],value:"淮安市",label:"淮安市"},{children:[{value:"亭湖区",label:"亭湖区"},{value:"盐都区",label:"盐都区"},{value:"大丰区",label:"大丰区"},{value:"响水县",label:"响水县"},{value:"滨海县",label:"滨海县"},{value:"阜宁县",label:"阜宁县"},{value:"射阳县",label:"射阳县"},{value:"建湖县",label:"建湖县"},{value:"东台市",label:"东台市"}],value:"盐城市",label:"盐城市"},{children:[{value:"广陵区",label:"广陵区"},{value:"邗江区",label:"邗江区"},{value:"江都区",label:"江都区"},{value:"宝应县",label:"宝应县"},{value:"仪征市",label:"仪征市"},{value:"高邮市",label:"高邮市"}],value:"扬州市",label:"扬州市"},{children:[{value:"京口区",label:"京口区"},{value:"润州区",label:"润州区"},{value:"丹徒区",label:"丹徒区"},{value:"丹阳市",label:"丹阳市"},{value:"扬中市",label:"扬中市"},{value:"句容市",label:"句容市"}],value:"镇江市",label:"镇江市"},{children:[{value:"海陵区",label:"海陵区"},{value:"高港区",label:"高港区"},{value:"姜堰区",label:"姜堰区"},{value:"兴化市",label:"兴化市"},{value:"靖江市",label:"靖江市"},{value:"泰兴市",label:"泰兴市"}],value:"泰州市",label:"泰州市"},{children:[{value:"宿城区",label:"宿城区"},{value:"宿豫区",label:"宿豫区"},{value:"沭阳县",label:"沭阳县"},{value:"泗阳县",label:"泗阳县"},{value:"泗洪县",label:"泗洪县"}],value:"宿迁市",label:"宿迁市"}],value:"江苏省",label:"江苏省"},{children:[{children:[{value:"上城区",label:"上城区"},{value:"下城区",label:"下城区"},{value:"江干区",label:"江干区"},{value:"拱墅区",label:"拱墅区"},{value:"西湖区",label:"西湖区"},{value:"滨江区",label:"滨江区"},{value:"萧山区",label:"萧山区"},{value:"余杭区",label:"余杭区"},{value:"富阳区",label:"富阳区"},{value:"桐庐县",label:"桐庐县"},{value:"淳安县",label:"淳安县"},{value:"建德市",label:"建德市"},{value:"临安市",label:"临安市"}],value:"杭州市",label:"杭州市"},{children:[{value:"海曙区",label:"海曙区"},{value:"江东区",label:"江东区"},{value:"江北区",label:"江北区"},{value:"北仑区",label:"北仑区"},{value:"镇海区",label:"镇海区"},{value:"鄞州区",label:"鄞州区"},{value:"象山县",label:"象山县"},{value:"宁海县",label:"宁海县"},{value:"余姚市",label:"余姚市"},{value:"慈溪市",label:"慈溪市"},{value:"奉化市",label:"奉化市"}],value:"宁波市",label:"宁波市"},{children:[{value:"鹿城区",label:"鹿城区"},{value:"龙湾区",label:"龙湾区"},{value:"瓯海区",label:"瓯海区"},{value:"洞头区",label:"洞头区"},{value:"永嘉县",label:"永嘉县"},{value:"平阳县",label:"平阳县"},{value:"苍南县",label:"苍南县"},{value:"文成县",label:"文成县"},{value:"泰顺县",label:"泰顺县"},{value:"瑞安市",label:"瑞安市"},{value:"乐清市",label:"乐清市"}],value:"温州市",label:"温州市"},{children:[{value:"南湖区",label:"南湖区"},{value:"秀洲区",label:"秀洲区"},{value:"嘉善县",label:"嘉善县"},{value:"海盐县",label:"海盐县"},{value:"海宁市",label:"海宁市"},{value:"平湖市",label:"平湖市"},{value:"桐乡市",label:"桐乡市"}],value:"嘉兴市",label:"嘉兴市"},{children:[{value:"吴兴区",label:"吴兴区"},{value:"南浔区",label:"南浔区"},{value:"德清县",label:"德清县"},{value:"长兴县",label:"长兴县"},{value:"安吉县",label:"安吉县"}],value:"湖州市",label:"湖州市"},{children:[{value:"越城区",label:"越城区"},{value:"柯桥区",label:"柯桥区"},{value:"上虞区",label:"上虞区"},{value:"新昌县",label:"新昌县"},{value:"诸暨市",label:"诸暨市"},{value:"嵊州市",label:"嵊州市"}],value:"绍兴市",label:"绍兴市"},{children:[{value:"婺城区",label:"婺城区"},{value:"金东区",label:"金东区"},{value:"武义县",label:"武义县"},{value:"浦江县",label:"浦江县"},{value:"磐安县",label:"磐安县"},{value:"兰溪市",label:"兰溪市"},{value:"义乌市",label:"义乌市"},{value:"东阳市",label:"东阳市"},{value:"永康市",label:"永康市"}],value:"金华市",label:"金华市"},{children:[{value:"柯城区",label:"柯城区"},{value:"衢江区",label:"衢江区"},{value:"常山县",label:"常山县"},{value:"开化县",label:"开化县"},{value:"龙游县",label:"龙游县"},{value:"江山市",label:"江山市"}],value:"衢州市",label:"衢州市"},{children:[{value:"定海区",label:"定海区"},{value:"普陀区",label:"普陀区"},{value:"岱山县",label:"岱山县"},{value:"嵊泗县",label:"嵊泗县"}],value:"舟山市",label:"舟山市"},{children:[{value:"椒江区",label:"椒江区"},{value:"黄岩区",label:"黄岩区"},{value:"路桥区",label:"路桥区"},{value:"玉环县",label:"玉环县"},{value:"三门县",label:"三门县"},{value:"天台县",label:"天台县"},{value:"仙居县",label:"仙居县"},{value:"温岭市",label:"温岭市"},{value:"临海市",label:"临海市"}],value:"台州市",label:"台州市"},{children:[{value:"莲都区",label:"莲都区"},{value:"青田县",label:"青田县"},{value:"缙云县",label:"缙云县"},{value:"遂昌县",label:"遂昌县"},{value:"松阳县",label:"松阳县"},{value:"云和县",label:"云和县"},{value:"庆元县",label:"庆元县"},{value:"景宁畲族自治县",label:"景宁畲族自治县"},{value:"龙泉市",label:"龙泉市"}],value:"丽水市",label:"丽水市"}],value:"浙江省",label:"浙江省"},{children:[{children:[{value:"瑶海区",label:"瑶海区"},{value:"庐阳区",label:"庐阳区"},{value:"蜀山区",label:"蜀山区"},{value:"包河区",label:"包河区"},{value:"长丰县",label:"长丰县"},{value:"肥东县",label:"肥东县"},{value:"肥西县",label:"肥西县"},{value:"庐江县",label:"庐江县"},{value:"巢湖市",label:"巢湖市"}],value:"合肥市",label:"合肥市"},{children:[{value:"镜湖区",label:"镜湖区"},{value:"弋江区",label:"弋江区"},{value:"鸠江区",label:"鸠江区"},{value:"三山区",label:"三山区"},{value:"芜湖县",label:"芜湖县"},{value:"繁昌县",label:"繁昌县"},{value:"南陵县",label:"南陵县"},{value:"无为县",label:"无为县"}],value:"芜湖市",label:"芜湖市"},{children:[{value:"龙子湖区",label:"龙子湖区"},{value:"蚌山区",label:"蚌山区"},{value:"禹会区",label:"禹会区"},{value:"淮上区",label:"淮上区"},{value:"怀远县",label:"怀远县"},{value:"五河县",label:"五河县"},{value:"固镇县",label:"固镇县"}],value:"蚌埠市",label:"蚌埠市"},{children:[{value:"大通区",label:"大通区"},{value:"田家庵区",label:"田家庵区"},{value:"谢家集区",label:"谢家集区"},{value:"八公山区",label:"八公山区"},{value:"潘集区",label:"潘集区"},{value:"凤台县",label:"凤台县"},{value:"寿县",label:"寿县"}],value:"淮南市",label:"淮南市"},{children:[{value:"花山区",label:"花山区"},{value:"雨山区",label:"雨山区"},{value:"博望区",label:"博望区"},{value:"当涂县",label:"当涂县"},{value:"含山县",label:"含山县"},{value:"和县",label:"和县"}],value:"马鞍山市",label:"马鞍山市"},{children:[{value:"杜集区",label:"杜集区"},{value:"相山区",label:"相山区"},{value:"烈山区",label:"烈山区"},{value:"濉溪县",label:"濉溪县"}],value:"淮北市",label:"淮北市"},{children:[{value:"铜官区",label:"铜官区"},{value:"义安区",label:"义安区"},{value:"郊区",label:"郊区"},{value:"枞阳县",label:"枞阳县"}],value:"铜陵市",label:"铜陵市"},{children:[{value:"迎江区",label:"迎江区"},{value:"大观区",label:"大观区"},{value:"宜秀区",label:"宜秀区"},{value:"怀宁县",label:"怀宁县"},{value:"潜山县",label:"潜山县"},{value:"太湖县",label:"太湖县"},{value:"宿松县",label:"宿松县"},{value:"望江县",label:"望江县"},{value:"岳西县",label:"岳西县"},{value:"桐城市",label:"桐城市"}],value:"安庆市",label:"安庆市"},{children:[{value:"屯溪区",label:"屯溪区"},{value:"黄山区",label:"黄山区"},{value:"徽州区",label:"徽州区"},{value:"歙县",label:"歙县"},{value:"休宁县",label:"休宁县"},{value:"黟县",label:"黟县"},{value:"祁门县",label:"祁门县"}],value:"黄山市",label:"黄山市"},{children:[{value:"琅琊区",label:"琅琊区"},{value:"南谯区",label:"南谯区"},{value:"来安县",label:"来安县"},{value:"全椒县",label:"全椒县"},{value:"定远县",label:"定远县"},{value:"凤阳县",label:"凤阳县"},{value:"天长市",label:"天长市"},{value:"明光市",label:"明光市"}],value:"滁州市",label:"滁州市"},{children:[{value:"颍州区",label:"颍州区"},{value:"颍东区",label:"颍东区"},{value:"颍泉区",label:"颍泉区"},{value:"临泉县",label:"临泉县"},{value:"太和县",label:"太和县"},{value:"阜南县",label:"阜南县"},{value:"颍上县",label:"颍上县"},{value:"界首市",label:"界首市"}],value:"阜阳市",label:"阜阳市"},{children:[{value:"埇桥区",label:"埇桥区"},{value:"砀山县",label:"砀山县"},{value:"萧县",label:"萧县"},{value:"灵璧县",label:"灵璧县"},{value:"泗县",label:"泗县"}],value:"宿州市",label:"宿州市"},{children:[{value:"金安区",label:"金安区"},{value:"裕安区",label:"裕安区"},{value:"叶集区",label:"叶集区"},{value:"霍邱县",label:"霍邱县"},{value:"舒城县",label:"舒城县"},{value:"金寨县",label:"金寨县"},{value:"霍山县",label:"霍山县"}],value:"六安市",label:"六安市"},{children:[{value:"谯城区",label:"谯城区"},{value:"涡阳县",label:"涡阳县"},{value:"蒙城县",label:"蒙城县"},{value:"利辛县",label:"利辛县"}],value:"亳州市",label:"亳州市"},{children:[{value:"贵池区",label:"贵池区"},{value:"东至县",label:"东至县"},{value:"石台县",label:"石台县"},{value:"青阳县",label:"青阳县"}],value:"池州市",label:"池州市"},{children:[{value:"宣州区",label:"宣州区"},{value:"郎溪县",label:"郎溪县"},{value:"广德县",label:"广德县"},{value:"泾县",label:"泾县"},{value:"绩溪县",label:"绩溪县"},{value:"旌德县",label:"旌德县"},{value:"宁国市",label:"宁国市"}],value:"宣城市",label:"宣城市"}],value:"安徽省",label:"安徽省"},{children:[{children:[{value:"鼓楼区",label:"鼓楼区"},{value:"台江区",label:"台江区"},{value:"仓山区",label:"仓山区"},{value:"马尾区",label:"马尾区"},{value:"晋安区",label:"晋安区"},{value:"闽侯县",label:"闽侯县"},{value:"连江县",label:"连江县"},{value:"罗源县",label:"罗源县"},{value:"闽清县",label:"闽清县"},{value:"永泰县",label:"永泰县"},{value:"平潭县",label:"平潭县"},{value:"福清市",label:"福清市"},{value:"长乐市",label:"长乐市"}],value:"福州市",label:"福州市"},{children:[{value:"思明区",label:"思明区"},{value:"海沧区",label:"海沧区"},{value:"湖里区",label:"湖里区"},{value:"集美区",label:"集美区"},{value:"同安区",label:"同安区"},{value:"翔安区",label:"翔安区"}],value:"厦门市",label:"厦门市"},{children:[{value:"城厢区",label:"城厢区"},{value:"涵江区",label:"涵江区"},{value:"荔城区",label:"荔城区"},{value:"秀屿区",label:"秀屿区"},{value:"仙游县",label:"仙游县"}],value:"莆田市",label:"莆田市"},{children:[{value:"梅列区",label:"梅列区"},{value:"三元区",label:"三元区"},{value:"明溪县",label:"明溪县"},{value:"清流县",label:"清流县"},{value:"宁化县",label:"宁化县"},{value:"大田县",label:"大田县"},{value:"尤溪县",label:"尤溪县"},{value:"沙县",label:"沙县"},{value:"将乐县",label:"将乐县"},{value:"泰宁县",label:"泰宁县"},{value:"建宁县",label:"建宁县"},{value:"永安市",label:"永安市"}],value:"三明市",label:"三明市"},{children:[{value:"鲤城区",label:"鲤城区"},{value:"丰泽区",label:"丰泽区"},{value:"洛江区",label:"洛江区"},{value:"泉港区",label:"泉港区"},{value:"惠安县",label:"惠安县"},{value:"安溪县",label:"安溪县"},{value:"永春县",label:"永春县"},{value:"德化县",label:"德化县"},{value:"金门县",label:"金门县"},{value:"石狮市",label:"石狮市"},{value:"晋江市",label:"晋江市"},{value:"南安市",label:"南安市"}],value:"泉州市",label:"泉州市"},{children:[{value:"芗城区",label:"芗城区"},{value:"龙文区",label:"龙文区"},{value:"云霄县",label:"云霄县"},{value:"漳浦县",label:"漳浦县"},{value:"诏安县",label:"诏安县"},{value:"长泰县",label:"长泰县"},{value:"东山县",label:"东山县"},{value:"南靖县",label:"南靖县"},{value:"平和县",label:"平和县"},{value:"华安县",label:"华安县"},{value:"龙海市",label:"龙海市"}],value:"漳州市",label:"漳州市"},{children:[{value:"延平区",label:"延平区"},{value:"建阳区",label:"建阳区"},{value:"顺昌县",label:"顺昌县"},{value:"浦城县",label:"浦城县"},{value:"光泽县",label:"光泽县"},{value:"松溪县",label:"松溪县"},{value:"政和县",label:"政和县"},{value:"邵武市",label:"邵武市"},{value:"武夷山市",label:"武夷山市"},{value:"建瓯市",label:"建瓯市"}],value:"南平市",label:"南平市"},{children:[{value:"新罗区",label:"新罗区"},{value:"永定区",label:"永定区"},{value:"长汀县",label:"长汀县"},{value:"上杭县",label:"上杭县"},{value:"武平县",label:"武平县"},{value:"连城县",label:"连城县"},{value:"漳平市",label:"漳平市"}],value:"龙岩市",label:"龙岩市"},{children:[{value:"蕉城区",label:"蕉城区"},{value:"霞浦县",label:"霞浦县"},{value:"古田县",label:"古田县"},{value:"屏南县",label:"屏南县"},{value:"寿宁县",label:"寿宁县"},{value:"周宁县",label:"周宁县"},{value:"柘荣县",label:"柘荣县"},{value:"福安市",label:"福安市"},{value:"福鼎市",label:"福鼎市"}],value:"宁德市",label:"宁德市"}],value:"福建省",label:"福建省"},{children:[{children:[{value:"东湖区",label:"东湖区"},{value:"西湖区",label:"西湖区"},{value:"青云谱区",label:"青云谱区"},{value:"湾里区",label:"湾里区"},{value:"青山湖区",label:"青山湖区"},{value:"新建区",label:"新建区"},{value:"南昌县",label:"南昌县"},{value:"安义县",label:"安义县"},{value:"进贤县",label:"进贤县"}],value:"南昌市",label:"南昌市"},{children:[{value:"昌江区",label:"昌江区"},{value:"珠山区",label:"珠山区"},{value:"浮梁县",label:"浮梁县"},{value:"乐平市",label:"乐平市"}],value:"景德镇市",label:"景德镇市"},{children:[{value:"安源区",label:"安源区"},{value:"湘东区",label:"湘东区"},{value:"莲花县",label:"莲花县"},{value:"上栗县",label:"上栗县"},{value:"芦溪县",label:"芦溪县"}],value:"萍乡市",label:"萍乡市"},{children:[{value:"濂溪区",label:"濂溪区"},{value:"浔阳区",label:"浔阳区"},{value:"九江县",label:"九江县"},{value:"武宁县",label:"武宁县"},{value:"修水县",label:"修水县"},{value:"永修县",label:"永修县"},{value:"德安县",label:"德安县"},{value:"都昌县",label:"都昌县"},{value:"湖口县",label:"湖口县"},{value:"彭泽县",label:"彭泽县"},{value:"瑞昌市",label:"瑞昌市"},{value:"共青城市",label:"共青城市"},{value:"庐山市",label:"庐山市"}],value:"九江市",label:"九江市"},{children:[{value:"渝水区",label:"渝水区"},{value:"分宜县",label:"分宜县"}],value:"新余市",label:"新余市"},{children:[{value:"月湖区",label:"月湖区"},{value:"余江县",label:"余江县"},{value:"贵溪市",label:"贵溪市"}],value:"鹰潭市",label:"鹰潭市"},{children:[{value:"章贡区",label:"章贡区"},{value:"南康区",label:"南康区"},{value:"赣县",label:"赣县"},{value:"信丰县",label:"信丰县"},{value:"大余县",label:"大余县"},{value:"上犹县",label:"上犹县"},{value:"崇义县",label:"崇义县"},{value:"安远县",label:"安远县"},{value:"龙南县",label:"龙南县"},{value:"定南县",label:"定南县"},{value:"全南县",label:"全南县"},{value:"宁都县",label:"宁都县"},{value:"于都县",label:"于都县"},{value:"兴国县",label:"兴国县"},{value:"会昌县",label:"会昌县"},{value:"寻乌县",label:"寻乌县"},{value:"石城县",label:"石城县"},{value:"瑞金市",label:"瑞金市"}],value:"赣州市",label:"赣州市"},{children:[{value:"吉州区",label:"吉州区"},{value:"青原区",label:"青原区"},{value:"吉安县",label:"吉安县"},{value:"吉水县",label:"吉水县"},{value:"峡江县",label:"峡江县"},{value:"新干县",label:"新干县"},{value:"永丰县",label:"永丰县"},{value:"泰和县",label:"泰和县"},{value:"遂川县",label:"遂川县"},{value:"万安县",label:"万安县"},{value:"安福县",label:"安福县"},{value:"永新县",label:"永新县"},{value:"井冈山市",label:"井冈山市"}],value:"吉安市",label:"吉安市"},{children:[{value:"袁州区",label:"袁州区"},{value:"奉新县",label:"奉新县"},{value:"万载县",label:"万载县"},{value:"上高县",label:"上高县"},{value:"宜丰县",label:"宜丰县"},{value:"靖安县",label:"靖安县"},{value:"铜鼓县",label:"铜鼓县"},{value:"丰城市",label:"丰城市"},{value:"樟树市",label:"樟树市"},{value:"高安市",label:"高安市"}],value:"宜春市",label:"宜春市"},{children:[{value:"临川区",label:"临川区"},{value:"南城县",label:"南城县"},{value:"黎川县",label:"黎川县"},{value:"南丰县",label:"南丰县"},{value:"崇仁县",label:"崇仁县"},{value:"乐安县",label:"乐安县"},{value:"宜黄县",label:"宜黄县"},{value:"金溪县",label:"金溪县"},{value:"资溪县",label:"资溪县"},{value:"东乡县",label:"东乡县"},{value:"广昌县",label:"广昌县"}],value:"抚州市",label:"抚州市"},{children:[{value:"信州区",label:"信州区"},{value:"广丰区",label:"广丰区"},{value:"上饶县",label:"上饶县"},{value:"玉山县",label:"玉山县"},{value:"铅山县",label:"铅山县"},{value:"横峰县",label:"横峰县"},{value:"弋阳县",label:"弋阳县"},{value:"余干县",label:"余干县"},{value:"鄱阳县",label:"鄱阳县"},{value:"万年县",label:"万年县"},{value:"婺源县",label:"婺源县"},{value:"德兴市",label:"德兴市"}],value:"上饶市",label:"上饶市"}],value:"江西省",label:"江西省"},{children:[{children:[{value:"历下区",label:"历下区"},{value:"市中区",label:"市中区"},{value:"槐荫区",label:"槐荫区"},{value:"天桥区",label:"天桥区"},{value:"历城区",label:"历城区"},{value:"长清区",label:"长清区"},{value:"平阴县",label:"平阴县"},{value:"济阳县",label:"济阳县"},{value:"商河县",label:"商河县"},{value:"章丘市",label:"章丘市"}],value:"济南市",label:"济南市"},{children:[{value:"市南区",label:"市南区"},{value:"市北区",label:"市北区"},{value:"黄岛区",label:"黄岛区"},{value:"崂山区",label:"崂山区"},{value:"李沧区",label:"李沧区"},{value:"城阳区",label:"城阳区"},{value:"胶州市",label:"胶州市"},{value:"即墨市",label:"即墨市"},{value:"平度市",label:"平度市"},{value:"莱西市",label:"莱西市"}],value:"青岛市",label:"青岛市"},{children:[{value:"淄川区",label:"淄川区"},{value:"张店区",label:"张店区"},{value:"博山区",label:"博山区"},{value:"临淄区",label:"临淄区"},{value:"周村区",label:"周村区"},{value:"桓台县",label:"桓台县"},{value:"高青县",label:"高青县"},{value:"沂源县",label:"沂源县"}],value:"淄博市",label:"淄博市"},{children:[{value:"市中区",label:"市中区"},{value:"薛城区",label:"薛城区"},{value:"峄城区",label:"峄城区"},{value:"台儿庄区",label:"台儿庄区"},{value:"山亭区",label:"山亭区"},{value:"滕州市",label:"滕州市"}],value:"枣庄市",label:"枣庄市"},{children:[{value:"东营区",label:"东营区"},{value:"河口区",label:"河口区"},{value:"垦利区",label:"垦利区"},{value:"利津县",label:"利津县"},{value:"广饶县",label:"广饶县"}],value:"东营市",label:"东营市"},{children:[{value:"芝罘区",label:"芝罘区"},{value:"福山区",label:"福山区"},{value:"牟平区",label:"牟平区"},{value:"莱山区",label:"莱山区"},{value:"长岛县",label:"长岛县"},{value:"龙口市",label:"龙口市"},{value:"莱阳市",label:"莱阳市"},{value:"莱州市",label:"莱州市"},{value:"蓬莱市",label:"蓬莱市"},{value:"招远市",label:"招远市"},{value:"栖霞市",label:"栖霞市"},{value:"海阳市",label:"海阳市"}],value:"烟台市",label:"烟台市"},{children:[{value:"潍城区",label:"潍城区"},{value:"寒亭区",label:"寒亭区"},{value:"坊子区",label:"坊子区"},{value:"奎文区",label:"奎文区"},{value:"临朐县",label:"临朐县"},{value:"昌乐县",label:"昌乐县"},{value:"青州市",label:"青州市"},{value:"诸城市",label:"诸城市"},{value:"寿光市",label:"寿光市"},{value:"安丘市",label:"安丘市"},{value:"高密市",label:"高密市"},{value:"昌邑市",label:"昌邑市"}],value:"潍坊市",label:"潍坊市"},{children:[{value:"任城区",label:"任城区"},{value:"兖州区",label:"兖州区"},{value:"微山县",label:"微山县"},{value:"鱼台县",label:"鱼台县"},{value:"金乡县",label:"金乡县"},{value:"嘉祥县",label:"嘉祥县"},{value:"汶上县",label:"汶上县"},{value:"泗水县",label:"泗水县"},{value:"梁山县",label:"梁山县"},{value:"曲阜市",label:"曲阜市"},{value:"邹城市",label:"邹城市"}],value:"济宁市",label:"济宁市"},{children:[{value:"泰山区",label:"泰山区"},{value:"岱岳区",label:"岱岳区"},{value:"宁阳县",label:"宁阳县"},{value:"东平县",label:"东平县"},{value:"新泰市",label:"新泰市"},{value:"肥城市",label:"肥城市"}],value:"泰安市",label:"泰安市"},{children:[{value:"环翠区",label:"环翠区"},{value:"文登区",label:"文登区"},{value:"荣成市",label:"荣成市"},{value:"乳山市",label:"乳山市"}],value:"威海市",label:"威海市"},{children:[{value:"东港区",label:"东港区"},{value:"岚山区",label:"岚山区"},{value:"五莲县",label:"五莲县"},{value:"莒县",label:"莒县"}],value:"日照市",label:"日照市"},{children:[{value:"莱城区",label:"莱城区"},{value:"钢城区",label:"钢城区"}],value:"莱芜市",label:"莱芜市"},{children:[{value:"兰山区",label:"兰山区"},{value:"罗庄区",label:"罗庄区"},{value:"河东区",label:"河东区"},{value:"沂南县",label:"沂南县"},{value:"郯城县",label:"郯城县"},{value:"沂水县",label:"沂水县"},{value:"兰陵县",label:"兰陵县"},{value:"费县",label:"费县"},{value:"平邑县",label:"平邑县"},{value:"莒南县",label:"莒南县"},{value:"蒙阴县",label:"蒙阴县"},{value:"临沭县",label:"临沭县"}],value:"临沂市",label:"临沂市"},{children:[{value:"德城区",label:"德城区"},{value:"陵城区",label:"陵城区"},{value:"宁津县",label:"宁津县"},{value:"庆云县",label:"庆云县"},{value:"临邑县",label:"临邑县"},{value:"齐河县",label:"齐河县"},{value:"平原县",label:"平原县"},{value:"夏津县",label:"夏津县"},{value:"武城县",label:"武城县"},{value:"乐陵市",label:"乐陵市"},{value:"禹城市",label:"禹城市"}],value:"德州市",label:"德州市"},{children:[{value:"东昌府区",label:"东昌府区"},{value:"阳谷县",label:"阳谷县"},{value:"莘县",label:"莘县"},{value:"茌平县",label:"茌平县"},{value:"东阿县",label:"东阿县"},{value:"冠县",label:"冠县"},{value:"高唐县",label:"高唐县"},{value:"临清市",label:"临清市"}],value:"聊城市",label:"聊城市"},{children:[{value:"滨城区",label:"滨城区"},{value:"沾化区",label:"沾化区"},{value:"惠民县",label:"惠民县"},{value:"阳信县",label:"阳信县"},{value:"无棣县",label:"无棣县"},{value:"博兴县",label:"博兴县"},{value:"邹平县",label:"邹平县"}],value:"滨州市",label:"滨州市"},{children:[{value:"牡丹区",label:"牡丹区"},{value:"定陶区",label:"定陶区"},{value:"曹县",label:"曹县"},{value:"单县",label:"单县"},{value:"成武县",label:"成武县"},{value:"巨野县",label:"巨野县"},{value:"郓城县",label:"郓城县"},{value:"鄄城县",label:"鄄城县"},{value:"东明县",label:"东明县"}],value:"菏泽市",label:"菏泽市"}],value:"山东省",label:"山东省"},{children:[{children:[{value:"中原区",label:"中原区"},{value:"二七区",label:"二七区"},{value:"管城回族区",label:"管城回族区"},{value:"金水区",label:"金水区"},{value:"上街区",label:"上街区"},{value:"惠济区",label:"惠济区"},{value:"中牟县",label:"中牟县"},{value:"巩义市",label:"巩义市"},{value:"荥阳市",label:"荥阳市"},{value:"新密市",label:"新密市"},{value:"新郑市",label:"新郑市"},{value:"登封市",label:"登封市"}],value:"郑州市",label:"郑州市"},{children:[{value:"龙亭区",label:"龙亭区"},{value:"顺河回族区",label:"顺河回族区"},{value:"鼓楼区",label:"鼓楼区"},{value:"禹王台区",label:"禹王台区"},{value:"金明区",label:"金明区"},{value:"祥符区",label:"祥符区"},{value:"杞县",label:"杞县"},{value:"通许县",label:"通许县"},{value:"尉氏县",label:"尉氏县"},{value:"兰考县",label:"兰考县"}],value:"开封市",label:"开封市"},{children:[{value:"老城区",label:"老城区"},{value:"西工区",label:"西工区"},{value:"瀍河回族区",label:"瀍河回族区"},{value:"涧西区",label:"涧西区"},{value:"吉利区",label:"吉利区"},{value:"洛龙区",label:"洛龙区"},{value:"孟津县",label:"孟津县"},{value:"新安县",label:"新安县"},{value:"栾川县",label:"栾川县"},{value:"嵩县",label:"嵩县"},{value:"汝阳县",label:"汝阳县"},{value:"宜阳县",label:"宜阳县"},{value:"洛宁县",label:"洛宁县"},{value:"伊川县",label:"伊川县"},{value:"偃师市",label:"偃师市"}],value:"洛阳市",label:"洛阳市"},{children:[{value:"新华区",label:"新华区"},{value:"卫东区",label:"卫东区"},{value:"石龙区",label:"石龙区"},{value:"湛河区",label:"湛河区"},{value:"宝丰县",label:"宝丰县"},{value:"叶县",label:"叶县"},{value:"鲁山县",label:"鲁山县"},{value:"郏县",label:"郏县"},{value:"舞钢市",label:"舞钢市"},{value:"汝州市",label:"汝州市"}],value:"平顶山市",label:"平顶山市"},{children:[{value:"文峰区",label:"文峰区"},{value:"北关区",label:"北关区"},{value:"殷都区",label:"殷都区"},{value:"龙安区",label:"龙安区"},{value:"安阳县",label:"安阳县"},{value:"汤阴县",label:"汤阴县"},{value:"滑县",label:"滑县"},{value:"内黄县",label:"内黄县"},{value:"林州市",label:"林州市"}],value:"安阳市",label:"安阳市"},{children:[{value:"鹤山区",label:"鹤山区"},{value:"山城区",label:"山城区"},{value:"淇滨区",label:"淇滨区"},{value:"浚县",label:"浚县"},{value:"淇县",label:"淇县"}],value:"鹤壁市",label:"鹤壁市"},{children:[{value:"红旗区",label:"红旗区"},{value:"卫滨区",label:"卫滨区"},{value:"凤泉区",label:"凤泉区"},{value:"牧野区",label:"牧野区"},{value:"新乡县",label:"新乡县"},{value:"获嘉县",label:"获嘉县"},{value:"原阳县",label:"原阳县"},{value:"延津县",label:"延津县"},{value:"封丘县",label:"封丘县"},{value:"长垣县",label:"长垣县"},{value:"卫辉市",label:"卫辉市"},{value:"辉县市",label:"辉县市"}],value:"新乡市",label:"新乡市"},{children:[{value:"解放区",label:"解放区"},{value:"中站区",label:"中站区"},{value:"马村区",label:"马村区"},{value:"山阳区",label:"山阳区"},{value:"修武县",label:"修武县"},{value:"博爱县",label:"博爱县"},{value:"武陟县",label:"武陟县"},{value:"温县",label:"温县"},{value:"沁阳市",label:"沁阳市"},{value:"孟州市",label:"孟州市"}],value:"焦作市",label:"焦作市"},{children:[{value:"华龙区",label:"华龙区"},{value:"清丰县",label:"清丰县"},{value:"南乐县",label:"南乐县"},{value:"范县",label:"范县"},{value:"台前县",label:"台前县"},{value:"濮阳县",label:"濮阳县"}],value:"濮阳市",label:"濮阳市"},{children:[{value:"魏都区",label:"魏都区"},{value:"许昌县",label:"许昌县"},{value:"鄢陵县",label:"鄢陵县"},{value:"襄城县",label:"襄城县"},{value:"禹州市",label:"禹州市"},{value:"长葛市",label:"长葛市"}],value:"许昌市",label:"许昌市"},{children:[{value:"源汇区",label:"源汇区"},{value:"郾城区",label:"郾城区"},{value:"召陵区",label:"召陵区"},{value:"舞阳县",label:"舞阳县"},{value:"临颍县",label:"临颍县"}],value:"漯河市",label:"漯河市"},{children:[{value:"湖滨区",label:"湖滨区"},{value:"陕州区",label:"陕州区"},{value:"渑池县",label:"渑池县"},{value:"卢氏县",label:"卢氏县"},{value:"义马市",label:"义马市"},{value:"灵宝市",label:"灵宝市"}],value:"三门峡市",label:"三门峡市"},{children:[{value:"宛城区",label:"宛城区"},{value:"卧龙区",label:"卧龙区"},{value:"南召县",label:"南召县"},{value:"方城县",label:"方城县"},{value:"西峡县",label:"西峡县"},{value:"镇平县",label:"镇平县"},{value:"内乡县",label:"内乡县"},{value:"淅川县",label:"淅川县"},{value:"社旗县",label:"社旗县"},{value:"唐河县",label:"唐河县"},{value:"新野县",label:"新野县"},{value:"桐柏县",label:"桐柏县"},{value:"邓州市",label:"邓州市"}],value:"南阳市",label:"南阳市"},{children:[{value:"梁园区",label:"梁园区"},{value:"睢阳区",label:"睢阳区"},{value:"民权县",label:"民权县"},{value:"睢县",label:"睢县"},{value:"宁陵县",label:"宁陵县"},{value:"柘城县",label:"柘城县"},{value:"虞城县",label:"虞城县"},{value:"夏邑县",label:"夏邑县"},{value:"永城市",label:"永城市"}],value:"商丘市",label:"商丘市"},{children:[{value:"浉河区",label:"浉河区"},{value:"平桥区",label:"平桥区"},{value:"罗山县",label:"罗山县"},{value:"光山县",label:"光山县"},{value:"新县",label:"新县"},{value:"商城县",label:"商城县"},{value:"固始县",label:"固始县"},{value:"潢川县",label:"潢川县"},{value:"淮滨县",label:"淮滨县"},{value:"息县",label:"息县"}],value:"信阳市",label:"信阳市"},{children:[{value:"川汇区",label:"川汇区"},{value:"扶沟县",label:"扶沟县"},{value:"西华县",label:"西华县"},{value:"商水县",label:"商水县"},{value:"沈丘县",label:"沈丘县"},{value:"郸城县",label:"郸城县"},{value:"淮阳县",label:"淮阳县"},{value:"太康县",label:"太康县"},{value:"鹿邑县",label:"鹿邑县"},{value:"项城市",label:"项城市"}],value:"周口市",label:"周口市"},{children:[{value:"驿城区",label:"驿城区"},{value:"西平县",label:"西平县"},{value:"上蔡县",label:"上蔡县"},{value:"平舆县",label:"平舆县"},{value:"正阳县",label:"正阳县"},{value:"确山县",label:"确山县"},{value:"泌阳县",label:"泌阳县"},{value:"汝南县",label:"汝南县"},{value:"遂平县",label:"遂平县"},{value:"新蔡县",label:"新蔡县"}],value:"驻马店市",label:"驻马店市"},{value:"济源市",label:"济源市"}],value:"河南省",label:"河南省"},{children:[{children:[{value:"江岸区",label:"江岸区"},{value:"江汉区",label:"江汉区"},{value:"硚口区",label:"硚口区"},{value:"汉阳区",label:"汉阳区"},{value:"武昌区",label:"武昌区"},{value:"青山区",label:"青山区"},{value:"洪山区",label:"洪山区"},{value:"东西湖区",label:"东西湖区"},{value:"汉南区",label:"汉南区"},{value:"蔡甸区",label:"蔡甸区"},{value:"江夏区",label:"江夏区"},{value:"黄陂区",label:"黄陂区"},{value:"新洲区",label:"新洲区"}],value:"武汉市",label:"武汉市"},{children:[{value:"黄石港区",label:"黄石港区"},{value:"西塞山区",label:"西塞山区"},{value:"下陆区",label:"下陆区"},{value:"铁山区",label:"铁山区"},{value:"阳新县",label:"阳新县"},{value:"大冶市",label:"大冶市"}],value:"黄石市",label:"黄石市"},{children:[{value:"茅箭区",label:"茅箭区"},{value:"张湾区",label:"张湾区"},{value:"郧阳区",label:"郧阳区"},{value:"郧西县",label:"郧西县"},{value:"竹山县",label:"竹山县"},{value:"竹溪县",label:"竹溪县"},{value:"房县",label:"房县"},{value:"丹江口市",label:"丹江口市"}],value:"十堰市",label:"十堰市"},{children:[{value:"西陵区",label:"西陵区"},{value:"伍家岗区",label:"伍家岗区"},{value:"点军区",label:"点军区"},{value:"猇亭区",label:"猇亭区"},{value:"夷陵区",label:"夷陵区"},{value:"远安县",label:"远安县"},{value:"兴山县",label:"兴山县"},{value:"秭归县",label:"秭归县"},{value:"长阳土家族自治县",label:"长阳土家族自治县"},{value:"五峰土家族自治县",label:"五峰土家族自治县"},{value:"宜都市",label:"宜都市"},{value:"当阳市",label:"当阳市"},{value:"枝江市",label:"枝江市"}],value:"宜昌市",label:"宜昌市"},{children:[{value:"襄城区",label:"襄城区"},{value:"樊城区",label:"樊城区"},{value:"襄州区",label:"襄州区"},{value:"南漳县",label:"南漳县"},{value:"谷城县",label:"谷城县"},{value:"保康县",label:"保康县"},{value:"老河口市",label:"老河口市"},{value:"枣阳市",label:"枣阳市"},{value:"宜城市",label:"宜城市"}],value:"襄阳市",label:"襄阳市"},{children:[{value:"梁子湖区",label:"梁子湖区"},{value:"华容区",label:"华容区"},{value:"鄂城区",label:"鄂城区"}],value:"鄂州市",label:"鄂州市"},{children:[{value:"东宝区",label:"东宝区"},{value:"掇刀区",label:"掇刀区"},{value:"京山县",label:"京山县"},{value:"沙洋县",label:"沙洋县"},{value:"钟祥市",label:"钟祥市"}],value:"荆门市",label:"荆门市"},{children:[{value:"孝南区",label:"孝南区"},{value:"孝昌县",label:"孝昌县"},{value:"大悟县",label:"大悟县"},{value:"云梦县",label:"云梦县"},{value:"应城市",label:"应城市"},{value:"安陆市",label:"安陆市"},{value:"汉川市",label:"汉川市"}],value:"孝感市",label:"孝感市"},{children:[{value:"沙市区",label:"沙市区"},{value:"荆州区",label:"荆州区"},{value:"公安县",label:"公安县"},{value:"监利县",label:"监利县"},{value:"江陵县",label:"江陵县"},{value:"石首市",label:"石首市"},{value:"洪湖市",label:"洪湖市"},{value:"松滋市",label:"松滋市"}],value:"荆州市",label:"荆州市"},{children:[{value:"黄州区",label:"黄州区"},{value:"团风县",label:"团风县"},{value:"红安县",label:"红安县"},{value:"罗田县",label:"罗田县"},{value:"英山县",label:"英山县"},{value:"浠水县",label:"浠水县"},{value:"蕲春县",label:"蕲春县"},{value:"黄梅县",label:"黄梅县"},{value:"麻城市",label:"麻城市"},{value:"武穴市",label:"武穴市"}],value:"黄冈市",label:"黄冈市"},{children:[{value:"咸安区",label:"咸安区"},{value:"嘉鱼县",label:"嘉鱼县"},{value:"通城县",label:"通城县"},{value:"崇阳县",label:"崇阳县"},{value:"通山县",label:"通山县"},{value:"赤壁市",label:"赤壁市"}],value:"咸宁市",label:"咸宁市"},{children:[{value:"曾都区",label:"曾都区"},{value:"随县",label:"随县"},{value:"广水市",label:"广水市"}],value:"随州市",label:"随州市"},{children:[{value:"恩施市",label:"恩施市"},{value:"利川市",label:"利川市"},{value:"建始县",label:"建始县"},{value:"巴东县",label:"巴东县"},{value:"宣恩县",label:"宣恩县"},{value:"咸丰县",label:"咸丰县"},{value:"来凤县",label:"来凤县"},{value:"鹤峰县",label:"鹤峰县"}],value:"恩施土家族苗族自治州",label:"恩施土家族苗族自治州"},{value:"仙桃市",label:"仙桃市"},{value:"潜江市",label:"潜江市"},{value:"天门市",label:"天门市"},{value:"神农架林区",label:"神农架林区"}],value:"湖北省",label:"湖北省"},{children:[{children:[{value:"芙蓉区",label:"芙蓉区"},{value:"天心区",label:"天心区"},{value:"岳麓区",label:"岳麓区"},{value:"开福区",label:"开福区"},{value:"雨花区",label:"雨花区"},{value:"望城区",label:"望城区"},{value:"长沙县",label:"长沙县"},{value:"宁乡县",label:"宁乡县"},{value:"浏阳市",label:"浏阳市"}],value:"长沙市",label:"长沙市"},{children:[{value:"荷塘区",label:"荷塘区"},{value:"芦淞区",label:"芦淞区"},{value:"石峰区",label:"石峰区"},{value:"天元区",label:"天元区"},{value:"株洲县",label:"株洲县"},{value:"攸县",label:"攸县"},{value:"茶陵县",label:"茶陵县"},{value:"炎陵县",label:"炎陵县"},{value:"醴陵市",label:"醴陵市"}],value:"株洲市",label:"株洲市"},{children:[{value:"雨湖区",label:"雨湖区"},{value:"岳塘区",label:"岳塘区"},{value:"湘潭县",label:"湘潭县"},{value:"湘乡市",label:"湘乡市"},{value:"韶山市",label:"韶山市"}],value:"湘潭市",label:"湘潭市"},{children:[{value:"珠晖区",label:"珠晖区"},{value:"雁峰区",label:"雁峰区"},{value:"石鼓区",label:"石鼓区"},{value:"蒸湘区",label:"蒸湘区"},{value:"南岳区",label:"南岳区"},{value:"衡阳县",label:"衡阳县"},{value:"衡南县",label:"衡南县"},{value:"衡山县",label:"衡山县"},{value:"衡东县",label:"衡东县"},{value:"祁东县",label:"祁东县"},{value:"耒阳市",label:"耒阳市"},{value:"常宁市",label:"常宁市"}],value:"衡阳市",label:"衡阳市"},{children:[{value:"双清区",label:"双清区"},{value:"大祥区",label:"大祥区"},{value:"北塔区",label:"北塔区"},{value:"邵东县",label:"邵东县"},{value:"新邵县",label:"新邵县"},{value:"邵阳县",label:"邵阳县"},{value:"隆回县",label:"隆回县"},{value:"洞口县",label:"洞口县"},{value:"绥宁县",label:"绥宁县"},{value:"新宁县",label:"新宁县"},{value:"城步苗族自治县",label:"城步苗族自治县"},{value:"武冈市",label:"武冈市"}],value:"邵阳市",label:"邵阳市"},{children:[{value:"岳阳楼区",label:"岳阳楼区"},{value:"云溪区",label:"云溪区"},{value:"君山区",label:"君山区"},{value:"岳阳县",label:"岳阳县"},{value:"华容县",label:"华容县"},{value:"湘阴县",label:"湘阴县"},{value:"平江县",label:"平江县"},{value:"汨罗市",label:"汨罗市"},{value:"临湘市",label:"临湘市"}],value:"岳阳市",label:"岳阳市"},{children:[{value:"武陵区",label:"武陵区"},{value:"鼎城区",label:"鼎城区"},{value:"安乡县",label:"安乡县"},{value:"汉寿县",label:"汉寿县"},{value:"澧县",label:"澧县"},{value:"临澧县",label:"临澧县"},{value:"桃源县",label:"桃源县"},{value:"石门县",label:"石门县"},{value:"津市市",label:"津市市"}],value:"常德市",label:"常德市"},{children:[{value:"永定区",label:"永定区"},{value:"武陵源区",label:"武陵源区"},{value:"慈利县",label:"慈利县"},{value:"桑植县",label:"桑植县"}],value:"张家界市",label:"张家界市"},{children:[{value:"资阳区",label:"资阳区"},{value:"赫山区",label:"赫山区"},{value:"南县",label:"南县"},{value:"桃江县",label:"桃江县"},{value:"安化县",label:"安化县"},{value:"沅江市",label:"沅江市"}],value:"益阳市",label:"益阳市"},{children:[{value:"北湖区",label:"北湖区"},{value:"苏仙区",label:"苏仙区"},{value:"桂阳县",label:"桂阳县"},{value:"宜章县",label:"宜章县"},{value:"永兴县",label:"永兴县"},{value:"嘉禾县",label:"嘉禾县"},{value:"临武县",label:"临武县"},{value:"汝城县",label:"汝城县"},{value:"桂东县",label:"桂东县"},{value:"安仁县",label:"安仁县"},{value:"资兴市",label:"资兴市"}],value:"郴州市",label:"郴州市"},{children:[{value:"零陵区",label:"零陵区"},{value:"冷水滩区",label:"冷水滩区"},{value:"祁阳县",label:"祁阳县"},{value:"东安县",label:"东安县"},{value:"双牌县",label:"双牌县"},{value:"道县",label:"道县"},{value:"江永县",label:"江永县"},{value:"宁远县",label:"宁远县"},{value:"蓝山县",label:"蓝山县"},{value:"新田县",label:"新田县"},{value:"江华瑶族自治县",label:"江华瑶族自治县"}],value:"永州市",label:"永州市"},{children:[{value:"鹤城区",label:"鹤城区"},{value:"中方县",label:"中方县"},{value:"沅陵县",label:"沅陵县"},{value:"辰溪县",label:"辰溪县"},{value:"溆浦县",label:"溆浦县"},{value:"会同县",label:"会同县"},{value:"麻阳苗族自治县",label:"麻阳苗族自治县"},{value:"新晃侗族自治县",label:"新晃侗族自治县"},{value:"芷江侗族自治县",label:"芷江侗族自治县"},{value:"靖州苗族侗族自治县",label:"靖州苗族侗族自治县"},{value:"通道侗族自治县",label:"通道侗族自治县"},{value:"洪江市",label:"洪江市"}],value:"怀化市",label:"怀化市"},{children:[{value:"娄星区",label:"娄星区"},{value:"双峰县",label:"双峰县"},{value:"新化县",label:"新化县"},{value:"冷水江市",label:"冷水江市"},{value:"涟源市",label:"涟源市"}],value:"娄底市",label:"娄底市"},{children:[{value:"吉首市",label:"吉首市"},{value:"泸溪县",label:"泸溪县"},{value:"凤凰县",label:"凤凰县"},{value:"花垣县",label:"花垣县"},{value:"保靖县",label:"保靖县"},{value:"古丈县",label:"古丈县"},{value:"永顺县",label:"永顺县"},{value:"龙山县",label:"龙山县"}],value:"湘西土家族苗族自治州",label:"湘西土家族苗族自治州"}],value:"湖南省",label:"湖南省"},{children:[{children:[{value:"荔湾区",label:"荔湾区"},{value:"越秀区",label:"越秀区"},{value:"海珠区",label:"海珠区"},{value:"天河区",label:"天河区"},{value:"白云区",label:"白云区"},{value:"黄埔区",label:"黄埔区"},{value:"番禺区",label:"番禺区"},{value:"花都区",label:"花都区"},{value:"南沙区",label:"南沙区"},{value:"从化区",label:"从化区"},{value:"增城区",label:"增城区"}],value:"广州市",label:"广州市"},{children:[{value:"武江区",label:"武江区"},{value:"浈江区",label:"浈江区"},{value:"曲江区",label:"曲江区"},{value:"始兴县",label:"始兴县"},{value:"仁化县",label:"仁化县"},{value:"翁源县",label:"翁源县"},{value:"乳源瑶族自治县",label:"乳源瑶族自治县"},{value:"新丰县",label:"新丰县"},{value:"乐昌市",label:"乐昌市"},{value:"南雄市",label:"南雄市"}],value:"韶关市",label:"韶关市"},{children:[{value:"罗湖区",label:"罗湖区"},{value:"福田区",label:"福田区"},{value:"南山区",label:"南山区"},{value:"宝安区",label:"宝安区"},{value:"龙岗区",label:"龙岗区"},{value:"盐田区",label:"盐田区"}],value:"深圳市",label:"深圳市"},{children:[{value:"香洲区",label:"香洲区"},{value:"斗门区",label:"斗门区"},{value:"金湾区",label:"金湾区"}],value:"珠海市",label:"珠海市"},{children:[{value:"龙湖区",label:"龙湖区"},{value:"金平区",label:"金平区"},{value:"濠江区",label:"濠江区"},{value:"潮阳区",label:"潮阳区"},{value:"潮南区",label:"潮南区"},{value:"澄海区",label:"澄海区"},{value:"南澳县",label:"南澳县"}],value:"汕头市",label:"汕头市"},{children:[{value:"禅城区",label:"禅城区"},{value:"南海区",label:"南海区"},{value:"顺德区",label:"顺德区"},{value:"三水区",label:"三水区"},{value:"高明区",label:"高明区"}],value:"佛山市",label:"佛山市"},{children:[{value:"蓬江区",label:"蓬江区"},{value:"江海区",label:"江海区"},{value:"新会区",label:"新会区"},{value:"台山市",label:"台山市"},{value:"开平市",label:"开平市"},{value:"鹤山市",label:"鹤山市"},{value:"恩平市",label:"恩平市"}],value:"江门市",label:"江门市"},{children:[{value:"赤坎区",label:"赤坎区"},{value:"霞山区",label:"霞山区"},{value:"坡头区",label:"坡头区"},{value:"麻章区",label:"麻章区"},{value:"遂溪县",label:"遂溪县"},{value:"徐闻县",label:"徐闻县"},{value:"廉江市",label:"廉江市"},{value:"雷州市",label:"雷州市"},{value:"吴川市",label:"吴川市"}],value:"湛江市",label:"湛江市"},{children:[{value:"茂南区",label:"茂南区"},{value:"电白区",label:"电白区"},{value:"高州市",label:"高州市"},{value:"化州市",label:"化州市"},{value:"信宜市",label:"信宜市"}],value:"茂名市",label:"茂名市"},{children:[{value:"端州区",label:"端州区"},{value:"鼎湖区",label:"鼎湖区"},{value:"高要区",label:"高要区"},{value:"广宁县",label:"广宁县"},{value:"怀集县",label:"怀集县"},{value:"封开县",label:"封开县"},{value:"德庆县",label:"德庆县"},{value:"四会市",label:"四会市"}],value:"肇庆市",label:"肇庆市"},{children:[{value:"惠城区",label:"惠城区"},{value:"惠阳区",label:"惠阳区"},{value:"博罗县",label:"博罗县"},{value:"惠东县",label:"惠东县"},{value:"龙门县",label:"龙门县"}],value:"惠州市",label:"惠州市"},{children:[{value:"梅江区",label:"梅江区"},{value:"梅县区",label:"梅县区"},{value:"大埔县",label:"大埔县"},{value:"丰顺县",label:"丰顺县"},{value:"五华县",label:"五华县"},{value:"平远县",label:"平远县"},{value:"蕉岭县",label:"蕉岭县"},{value:"兴宁市",label:"兴宁市"}],value:"梅州市",label:"梅州市"},{children:[{value:"城区",label:"城区"},{value:"海丰县",label:"海丰县"},{value:"陆河县",label:"陆河县"},{value:"陆丰市",label:"陆丰市"}],value:"汕尾市",label:"汕尾市"},{children:[{value:"源城区",label:"源城区"},{value:"紫金县",label:"紫金县"},{value:"龙川县",label:"龙川县"},{value:"连平县",label:"连平县"},{value:"和平县",label:"和平县"},{value:"东源县",label:"东源县"}],value:"河源市",label:"河源市"},{children:[{value:"江城区",label:"江城区"},{value:"阳东区",label:"阳东区"},{value:"阳西县",label:"阳西县"},{value:"阳春市",label:"阳春市"}],value:"阳江市",label:"阳江市"},{children:[{value:"清城区",label:"清城区"},{value:"清新区",label:"清新区"},{value:"佛冈县",label:"佛冈县"},{value:"阳山县",label:"阳山县"},{value:"连山壮族瑶族自治县",label:"连山壮族瑶族自治县"},{value:"连南瑶族自治县",label:"连南瑶族自治县"},{value:"英德市",label:"英德市"},{value:"连州市",label:"连州市"}],value:"清远市",label:"清远市"},{value:"东莞市",label:"东莞市"},{value:"中山市",label:"中山市"},{children:[{value:"湘桥区",label:"湘桥区"},{value:"潮安区",label:"潮安区"},{value:"饶平县",label:"饶平县"}],value:"潮州市",label:"潮州市"},{children:[{value:"榕城区",label:"榕城区"},{value:"揭东区",label:"揭东区"},{value:"揭西县",label:"揭西县"},{value:"惠来县",label:"惠来县"},{value:"普宁市",label:"普宁市"}],value:"揭阳市",label:"揭阳市"},{children:[{value:"云城区",label:"云城区"},{value:"云安区",label:"云安区"},{value:"新兴县",label:"新兴县"},{value:"郁南县",label:"郁南县"},{value:"罗定市",label:"罗定市"}],value:"云浮市",label:"云浮市"}],value:"广东省",label:"广东省"},{children:[{children:[{value:"兴宁区",label:"兴宁区"},{value:"青秀区",label:"青秀区"},{value:"江南区",label:"江南区"},{value:"西乡塘区",label:"西乡塘区"},{value:"良庆区",label:"良庆区"},{value:"邕宁区",label:"邕宁区"},{value:"武鸣区",label:"武鸣区"},{value:"隆安县",label:"隆安县"},{value:"马山县",label:"马山县"},{value:"上林县",label:"上林县"},{value:"宾阳县",label:"宾阳县"},{value:"横县",label:"横县"}],value:"南宁市",label:"南宁市"},{children:[{value:"城中区",label:"城中区"},{value:"鱼峰区",label:"鱼峰区"},{value:"柳南区",label:"柳南区"},{value:"柳北区",label:"柳北区"},{value:"柳江区",label:"柳江区"},{value:"柳城县",label:"柳城县"},{value:"鹿寨县",label:"鹿寨县"},{value:"融安县",label:"融安县"},{value:"融水苗族自治县",label:"融水苗族自治县"},{value:"三江侗族自治县",label:"三江侗族自治县"}],value:"柳州市",label:"柳州市"},{children:[{value:"秀峰区",label:"秀峰区"},{value:"叠彩区",label:"叠彩区"},{value:"象山区",label:"象山区"},{value:"七星区",label:"七星区"},{value:"雁山区",label:"雁山区"},{value:"临桂区",label:"临桂区"},{value:"阳朔县",label:"阳朔县"},{value:"灵川县",label:"灵川县"},{value:"全州县",label:"全州县"},{value:"兴安县",label:"兴安县"},{value:"永福县",label:"永福县"},{value:"灌阳县",label:"灌阳县"},{value:"龙胜各族自治县",label:"龙胜各族自治县"},{value:"资源县",label:"资源县"},{value:"平乐县",label:"平乐县"},{value:"荔浦县",label:"荔浦县"},{value:"恭城瑶族自治县",label:"恭城瑶族自治县"}],value:"桂林市",label:"桂林市"},{children:[{value:"万秀区",label:"万秀区"},{value:"长洲区",label:"长洲区"},{value:"龙圩区",label:"龙圩区"},{value:"苍梧县",label:"苍梧县"},{value:"藤县",label:"藤县"},{value:"蒙山县",label:"蒙山县"},{value:"岑溪市",label:"岑溪市"}],value:"梧州市",label:"梧州市"},{children:[{value:"海城区",label:"海城区"},{value:"银海区",label:"银海区"},{value:"铁山港区",label:"铁山港区"},{value:"合浦县",label:"合浦县"}],value:"北海市",label:"北海市"},{children:[{value:"港口区",label:"港口区"},{value:"防城区",label:"防城区"},{value:"上思县",label:"上思县"},{value:"东兴市",label:"东兴市"}],value:"防城港市",label:"防城港市"},{children:[{value:"钦南区",label:"钦南区"},{value:"钦北区",label:"钦北区"},{value:"灵山县",label:"灵山县"},{value:"浦北县",label:"浦北县"}],value:"钦州市",label:"钦州市"},{children:[{value:"港北区",label:"港北区"},{value:"港南区",label:"港南区"},{value:"覃塘区",label:"覃塘区"},{value:"平南县",label:"平南县"},{value:"桂平市",label:"桂平市"}],value:"贵港市",label:"贵港市"},{children:[{value:"玉州区",label:"玉州区"},{value:"福绵区",label:"福绵区"},{value:"容县",label:"容县"},{value:"陆川县",label:"陆川县"},{value:"博白县",label:"博白县"},{value:"兴业县",label:"兴业县"},{value:"北流市",label:"北流市"}],value:"玉林市",label:"玉林市"},{children:[{value:"右江区",label:"右江区"},{value:"田阳县",label:"田阳县"},{value:"田东县",label:"田东县"},{value:"平果县",label:"平果县"},{value:"德保县",label:"德保县"},{value:"那坡县",label:"那坡县"},{value:"凌云县",label:"凌云县"},{value:"乐业县",label:"乐业县"},{value:"田林县",label:"田林县"},{value:"西林县",label:"西林县"},{value:"隆林各族自治县",label:"隆林各族自治县"},{value:"靖西市",label:"靖西市"}],value:"百色市",label:"百色市"},{children:[{value:"八步区",label:"八步区"},{value:"平桂区",label:"平桂区"},{value:"昭平县",label:"昭平县"},{value:"钟山县",label:"钟山县"},{value:"富川瑶族自治县",label:"富川瑶族自治县"}],value:"贺州市",label:"贺州市"},{children:[{value:"金城江区",label:"金城江区"},{value:"南丹县",label:"南丹县"},{value:"天峨县",label:"天峨县"},{value:"凤山县",label:"凤山县"},{value:"东兰县",label:"东兰县"},{value:"罗城仫佬族自治县",label:"罗城仫佬族自治县"},{value:"环江毛南族自治县",label:"环江毛南族自治县"},{value:"巴马瑶族自治县",label:"巴马瑶族自治县"},{value:"都安瑶族自治县",label:"都安瑶族自治县"},{value:"大化瑶族自治县",label:"大化瑶族自治县"},{value:"宜州市",label:"宜州市"}],value:"河池市",label:"河池市"},{children:[{value:"兴宾区",label:"兴宾区"},{value:"忻城县",label:"忻城县"},{value:"象州县",label:"象州县"},{value:"武宣县",label:"武宣县"},{value:"金秀瑶族自治县",label:"金秀瑶族自治县"},{value:"合山市",label:"合山市"}],value:"来宾市",label:"来宾市"},{children:[{value:"江州区",label:"江州区"},{value:"扶绥县",label:"扶绥县"},{value:"宁明县",label:"宁明县"},{value:"龙州县",label:"龙州县"},{value:"大新县",label:"大新县"},{value:"天等县",label:"天等县"},{value:"凭祥市",label:"凭祥市"}],value:"崇左市",label:"崇左市"}],value:"广西壮族自治区",label:"广西壮族自治区"},{children:[{children:[{value:"秀英区",label:"秀英区"},{value:"龙华区",label:"龙华区"},{value:"琼山区",label:"琼山区"},{value:"美兰区",label:"美兰区"}],value:"海口市",label:"海口市"},{children:[{value:"海棠区",label:"海棠区"},{value:"吉阳区",label:"吉阳区"},{value:"天涯区",label:"天涯区"},{value:"崖州区",label:"崖州区"}],value:"三亚市",label:"三亚市"},{value:"三沙市",label:"三沙市"},{value:"儋州市",label:"儋州市"},{value:"五指山市",label:"五指山市"},{value:"琼海市",label:"琼海市"},{value:"文昌市",label:"文昌市"},{value:"万宁市",label:"万宁市"},{value:"东方市",label:"东方市"},{value:"定安县",label:"定安县"},{value:"屯昌县",label:"屯昌县"},{value:"澄迈县",label:"澄迈县"},{value:"临高县",label:"临高县"},{value:"白沙黎族自治县",label:"白沙黎族自治县"},{value:"昌江黎族自治县",label:"昌江黎族自治县"},{value:"乐东黎族自治县",label:"乐东黎族自治县"},{value:"陵水黎族自治县",label:"陵水黎族自治县"},{value:"保亭黎族苗族自治县",label:"保亭黎族苗族自治县"},{value:"琼中黎族苗族自治县",label:"琼中黎族苗族自治县"}],value:"海南省",label:"海南省"},{children:[{value:"万州区",label:"万州区"},{value:"涪陵区",label:"涪陵区"},{value:"渝中区",label:"渝中区"},{value:"大渡口区",label:"大渡口区"},{value:"江北区",label:"江北区"},{value:"沙坪坝区",label:"沙坪坝区"},{value:"九龙坡区",label:"九龙坡区"},{value:"南岸区",label:"南岸区"},{value:"北碚区",label:"北碚区"},{value:"綦江区",label:"綦江区"},{value:"大足区",label:"大足区"},{value:"渝北区",label:"渝北区"},{value:"巴南区",label:"巴南区"},{value:"黔江区",label:"黔江区"},{value:"长寿区",label:"长寿区"},{value:"江津区",label:"江津区"},{value:"合川区",label:"合川区"},{value:"永川区",label:"永川区"},{value:"南川区",label:"南川区"},{value:"璧山区",label:"璧山区"},{value:"铜梁区",label:"铜梁区"},{value:"潼南区",label:"潼南区"},{value:"荣昌区",label:"荣昌区"},{value:"开州区",label:"开州区"},{value:"梁平县",label:"梁平县"},{value:"城口县",label:"城口县"},{value:"丰都县",label:"丰都县"},{value:"垫江县",label:"垫江县"},{value:"武隆县",label:"武隆县"},{value:"忠县",label:"忠县"},{value:"云阳县",label:"云阳县"},{value:"奉节县",label:"奉节县"},{value:"巫山县",label:"巫山县"},{value:"巫溪县",label:"巫溪县"},{value:"石柱土家族自治县",label:"石柱土家族自治县"},{value:"秀山土家族苗族自治县",label:"秀山土家族苗族自治县"},{value:"酉阳土家族苗族自治县",label:"酉阳土家族苗族自治县"},{value:"彭水苗族土家族自治县",label:"彭水苗族土家族自治县"}],value:"重庆市",label:"重庆市"},{children:[{children:[{value:"锦江区",label:"锦江区"},{value:"青羊区",label:"青羊区"},{value:"金牛区",label:"金牛区"},{value:"武侯区",label:"武侯区"},{value:"成华区",label:"成华区"},{value:"龙泉驿区",label:"龙泉驿区"},{value:"青白江区",label:"青白江区"},{value:"新都区",label:"新都区"},{value:"温江区",label:"温江区"},{value:"双流区",label:"双流区"},{value:"金堂县",label:"金堂县"},{value:"郫县",label:"郫县"},{value:"大邑县",label:"大邑县"},{value:"蒲江县",label:"蒲江县"},{value:"新津县",label:"新津县"},{value:"都江堰市",label:"都江堰市"},{value:"彭州市",label:"彭州市"},{value:"邛崃市",label:"邛崃市"},{value:"崇州市",label:"崇州市"},{value:"简阳市",label:"简阳市"}],value:"成都市",label:"成都市"},{children:[{value:"自流井区",label:"自流井区"},{value:"贡井区",label:"贡井区"},{value:"大安区",label:"大安区"},{value:"沿滩区",label:"沿滩区"},{value:"荣县",label:"荣县"},{value:"富顺县",label:"富顺县"}],value:"自贡市",label:"自贡市"},{children:[{value:"东区",label:"东区"},{value:"西区",label:"西区"},{value:"仁和区",label:"仁和区"},{value:"米易县",label:"米易县"},{value:"盐边县",label:"盐边县"}],value:"攀枝花市",label:"攀枝花市"},{children:[{value:"江阳区",label:"江阳区"},{value:"纳溪区",label:"纳溪区"},{value:"龙马潭区",label:"龙马潭区"},{value:"泸县",label:"泸县"},{value:"合江县",label:"合江县"},{value:"叙永县",label:"叙永县"},{value:"古蔺县",label:"古蔺县"}],value:"泸州市",label:"泸州市"},{children:[{value:"旌阳区",label:"旌阳区"},{value:"中江县",label:"中江县"},{value:"罗江县",label:"罗江县"},{value:"广汉市",label:"广汉市"},{value:"什邡市",label:"什邡市"},{value:"绵竹市",label:"绵竹市"}],value:"德阳市",label:"德阳市"},{children:[{value:"涪城区",label:"涪城区"},{value:"游仙区",label:"游仙区"},{value:"安州区",label:"安州区"},{value:"三台县",label:"三台县"},{value:"盐亭县",label:"盐亭县"},{value:"梓潼县",label:"梓潼县"},{value:"北川羌族自治县",label:"北川羌族自治县"},{value:"平武县",label:"平武县"},{value:"江油市",label:"江油市"}],value:"绵阳市",label:"绵阳市"},{children:[{value:"利州区",label:"利州区"},{value:"昭化区",label:"昭化区"},{value:"朝天区",label:"朝天区"},{value:"旺苍县",label:"旺苍县"},{value:"青川县",label:"青川县"},{value:"剑阁县",label:"剑阁县"},{value:"苍溪县",label:"苍溪县"}],value:"广元市",label:"广元市"},{children:[{value:"船山区",label:"船山区"},{value:"安居区",label:"安居区"},{value:"蓬溪县",label:"蓬溪县"},{value:"射洪县",label:"射洪县"},{value:"大英县",label:"大英县"}],value:"遂宁市",label:"遂宁市"},{children:[{value:"市中区",label:"市中区"},{value:"东兴区",label:"东兴区"},{value:"威远县",label:"威远县"},{value:"资中县",label:"资中县"},{value:"隆昌县",label:"隆昌县"}],value:"内江市",label:"内江市"},{children:[{value:"市中区",label:"市中区"},{value:"沙湾区",label:"沙湾区"},{value:"五通桥区",label:"五通桥区"},{value:"金口河区",label:"金口河区"},{value:"犍为县",label:"犍为县"},{value:"井研县",label:"井研县"},{value:"夹江县",label:"夹江县"},{value:"沐川县",label:"沐川县"},{value:"峨边彝族自治县",label:"峨边彝族自治县"},{value:"马边彝族自治县",label:"马边彝族自治县"},{value:"峨眉山市",label:"峨眉山市"}],value:"乐山市",label:"乐山市"},{children:[{value:"顺庆区",label:"顺庆区"},{value:"高坪区",label:"高坪区"},{value:"嘉陵区",label:"嘉陵区"},{value:"南部县",label:"南部县"},{value:"营山县",label:"营山县"},{value:"蓬安县",label:"蓬安县"},{value:"仪陇县",label:"仪陇县"},{value:"西充县",label:"西充县"},{value:"阆中市",label:"阆中市"}],value:"南充市",label:"南充市"},{children:[{value:"东坡区",label:"东坡区"},{value:"彭山区",label:"彭山区"},{value:"仁寿县",label:"仁寿县"},{value:"洪雅县",label:"洪雅县"},{value:"丹棱县",label:"丹棱县"},{value:"青神县",label:"青神县"}],value:"眉山市",label:"眉山市"},{children:[{value:"翠屏区",label:"翠屏区"},{value:"南溪区",label:"南溪区"},{value:"宜宾县",label:"宜宾县"},{value:"江安县",label:"江安县"},{value:"长宁县",label:"长宁县"},{value:"高县",label:"高县"},{value:"珙县",label:"珙县"},{value:"筠连县",label:"筠连县"},{value:"兴文县",label:"兴文县"},{value:"屏山县",label:"屏山县"}],value:"宜宾市",label:"宜宾市"},{children:[{value:"广安区",label:"广安区"},{value:"前锋区",label:"前锋区"},{value:"岳池县",label:"岳池县"},{value:"武胜县",label:"武胜县"},{value:"邻水县",label:"邻水县"},{value:"华蓥市",label:"华蓥市"}],value:"广安市",label:"广安市"},{children:[{value:"通川区",label:"通川区"},{value:"达川区",label:"达川区"},{value:"宣汉县",label:"宣汉县"},{value:"开江县",label:"开江县"},{value:"大竹县",label:"大竹县"},{value:"渠县",label:"渠县"},{value:"万源市",label:"万源市"}],value:"达州市",label:"达州市"},{children:[{value:"雨城区",label:"雨城区"},{value:"名山区",label:"名山区"},{value:"荥经县",label:"荥经县"},{value:"汉源县",label:"汉源县"},{value:"石棉县",label:"石棉县"},{value:"天全县",label:"天全县"},{value:"芦山县",label:"芦山县"},{value:"宝兴县",label:"宝兴县"}],value:"雅安市",label:"雅安市"},{children:[{value:"巴州区",label:"巴州区"},{value:"恩阳区",label:"恩阳区"},{value:"通江县",label:"通江县"},{value:"南江县",label:"南江县"},{value:"平昌县",label:"平昌县"}],value:"巴中市",label:"巴中市"},{children:[{value:"雁江区",label:"雁江区"},{value:"安岳县",label:"安岳县"},{value:"乐至县",label:"乐至县"}],value:"资阳市",label:"资阳市"},{children:[{value:"马尔康市",label:"马尔康市"},{value:"汶川县",label:"汶川县"},{value:"理县",label:"理县"},{value:"茂县",label:"茂县"},{value:"松潘县",label:"松潘县"},{value:"九寨沟县",label:"九寨沟县"},{value:"金川县",label:"金川县"},{value:"小金县",label:"小金县"},{value:"黑水县",label:"黑水县"},{value:"壤塘县",label:"壤塘县"},{value:"阿坝县",label:"阿坝县"},{value:"若尔盖县",label:"若尔盖县"},{value:"红原县",label:"红原县"}],value:"阿坝藏族羌族自治州",label:"阿坝藏族羌族自治州"},{children:[{value:"康定市",label:"康定市"},{value:"泸定县",label:"泸定县"},{value:"丹巴县",label:"丹巴县"},{value:"九龙县",label:"九龙县"},{value:"雅江县",label:"雅江县"},{value:"道孚县",label:"道孚县"},{value:"炉霍县",label:"炉霍县"},{value:"甘孜县",label:"甘孜县"},{value:"新龙县",label:"新龙县"},{value:"德格县",label:"德格县"},{value:"白玉县",label:"白玉县"},{value:"石渠县",label:"石渠县"},{value:"色达县",label:"色达县"},{value:"理塘县",label:"理塘县"},{value:"巴塘县",label:"巴塘县"},{value:"乡城县",label:"乡城县"},{value:"稻城县",label:"稻城县"},{value:"得荣县",label:"得荣县"}],value:"甘孜藏族自治州",label:"甘孜藏族自治州"},{children:[{value:"西昌市",label:"西昌市"},{value:"木里藏族自治县",label:"木里藏族自治县"},{value:"盐源县",label:"盐源县"},{value:"德昌县",label:"德昌县"},{value:"会理县",label:"会理县"},{value:"会东县",label:"会东县"},{value:"宁南县",label:"宁南县"},{value:"普格县",label:"普格县"},{value:"布拖县",label:"布拖县"},{value:"金阳县",label:"金阳县"},{value:"昭觉县",label:"昭觉县"},{value:"喜德县",label:"喜德县"},{value:"冕宁县",label:"冕宁县"},{value:"越西县",label:"越西县"},{value:"甘洛县",label:"甘洛县"},{value:"美姑县",label:"美姑县"},{value:"雷波县",label:"雷波县"}],value:"凉山彝族自治州",label:"凉山彝族自治州"}],value:"四川省",label:"四川省"},{children:[{children:[{value:"南明区",label:"南明区"},{value:"云岩区",label:"云岩区"},{value:"花溪区",label:"花溪区"},{value:"乌当区",label:"乌当区"},{value:"白云区",label:"白云区"},{value:"观山湖区",label:"观山湖区"},{value:"开阳县",label:"开阳县"},{value:"息烽县",label:"息烽县"},{value:"修文县",label:"修文县"},{value:"清镇市",label:"清镇市"}],value:"贵阳市",label:"贵阳市"},{children:[{value:"钟山区",label:"钟山区"},{value:"六枝特区",label:"六枝特区"},{value:"水城县",label:"水城县"},{value:"盘县",label:"盘县"}],value:"六盘水市",label:"六盘水市"},{children:[{value:"红花岗区",label:"红花岗区"},{value:"汇川区",label:"汇川区"},{value:"播州区",label:"播州区"},{value:"桐梓县",label:"桐梓县"},{value:"绥阳县",label:"绥阳县"},{value:"正安县",label:"正安县"},{value:"道真仡佬族苗族自治县",label:"道真仡佬族苗族自治县"},{value:"务川仡佬族苗族自治县",label:"务川仡佬族苗族自治县"},{value:"凤冈县",label:"凤冈县"},{value:"湄潭县",label:"湄潭县"},{value:"余庆县",label:"余庆县"},{value:"习水县",label:"习水县"},{value:"赤水市",label:"赤水市"},{value:"仁怀市",label:"仁怀市"}],value:"遵义市",label:"遵义市"},{children:[{value:"西秀区",label:"西秀区"},{value:"平坝区",label:"平坝区"},{value:"普定县",label:"普定县"},{value:"镇宁布依族苗族自治县",label:"镇宁布依族苗族自治县"},{value:"关岭布依族苗族自治县",label:"关岭布依族苗族自治县"},{value:"紫云苗族布依族自治县",label:"紫云苗族布依族自治县"}],value:"安顺市",label:"安顺市"},{children:[{value:"七星关区",label:"七星关区"},{value:"大方县",label:"大方县"},{value:"黔西县",label:"黔西县"},{value:"金沙县",label:"金沙县"},{value:"织金县",label:"织金县"},{value:"纳雍县",label:"纳雍县"},{value:"威宁彝族回族苗族自治县",label:"威宁彝族回族苗族自治县"},{value:"赫章县",label:"赫章县"}],value:"毕节市",label:"毕节市"},{children:[{value:"碧江区",label:"碧江区"},{value:"万山区",label:"万山区"},{value:"江口县",label:"江口县"},{value:"玉屏侗族自治县",label:"玉屏侗族自治县"},{value:"石阡县",label:"石阡县"},{value:"思南县",label:"思南县"},{value:"印江土家族苗族自治县",label:"印江土家族苗族自治县"},{value:"德江县",label:"德江县"},{value:"沿河土家族自治县",label:"沿河土家族自治县"},{value:"松桃苗族自治县",label:"松桃苗族自治县"}],value:"铜仁市",label:"铜仁市"},{children:[{value:"兴义市",label:"兴义市"},{value:"兴仁县",label:"兴仁县"},{value:"普安县",label:"普安县"},{value:"晴隆县",label:"晴隆县"},{value:"贞丰县",label:"贞丰县"},{value:"望谟县",label:"望谟县"},{value:"册亨县",label:"册亨县"},{value:"安龙县",label:"安龙县"}],value:"黔西南布依族苗族自治州",label:"黔西南布依族苗族自治州"},{children:[{value:"凯里市",label:"凯里市"},{value:"黄平县",label:"黄平县"},{value:"施秉县",label:"施秉县"},{value:"三穗县",label:"三穗县"},{value:"镇远县",label:"镇远县"},{value:"岑巩县",label:"岑巩县"},{value:"天柱县",label:"天柱县"},{value:"锦屏县",label:"锦屏县"},{value:"剑河县",label:"剑河县"},{value:"台江县",label:"台江县"},{value:"黎平县",label:"黎平县"},{value:"榕江县",label:"榕江县"},{value:"从江县",label:"从江县"},{value:"雷山县",label:"雷山县"},{value:"麻江县",label:"麻江县"},{value:"丹寨县",label:"丹寨县"}],value:"黔东南苗族侗族自治州",label:"黔东南苗族侗族自治州"},{children:[{value:"都匀市",label:"都匀市"},{value:"福泉市",label:"福泉市"},{value:"荔波县",label:"荔波县"},{value:"贵定县",label:"贵定县"},{value:"瓮安县",label:"瓮安县"},{value:"独山县",label:"独山县"},{value:"平塘县",label:"平塘县"},{value:"罗甸县",label:"罗甸县"},{value:"长顺县",label:"长顺县"},{value:"龙里县",label:"龙里县"},{value:"惠水县",label:"惠水县"},{value:"三都水族自治县",label:"三都水族自治县"}],value:"黔南布依族苗族自治州",label:"黔南布依族苗族自治州"}],value:"贵州省",label:"贵州省"},{children:[{children:[{value:"五华区",label:"五华区"},{value:"盘龙区",label:"盘龙区"},{value:"官渡区",label:"官渡区"},{value:"西山区",label:"西山区"},{value:"东川区",label:"东川区"},{value:"呈贡区",label:"呈贡区"},{value:"晋宁县",label:"晋宁县"},{value:"富民县",label:"富民县"},{value:"宜良县",label:"宜良县"},{value:"石林彝族自治县",label:"石林彝族自治县"},{value:"嵩明县",label:"嵩明县"},{value:"禄劝彝族苗族自治县",label:"禄劝彝族苗族自治县"},{value:"寻甸回族彝族自治县",label:"寻甸回族彝族自治县"},{value:"安宁市",label:"安宁市"}],value:"昆明市",label:"昆明市"},{children:[{value:"麒麟区",label:"麒麟区"},{value:"沾益区",label:"沾益区"},{value:"马龙县",label:"马龙县"},{value:"陆良县",label:"陆良县"},{value:"师宗县",label:"师宗县"},{value:"罗平县",label:"罗平县"},{value:"富源县",label:"富源县"},{value:"会泽县",label:"会泽县"},{value:"宣威市",label:"宣威市"}],value:"曲靖市",label:"曲靖市"},{children:[{value:"红塔区",label:"红塔区"},{value:"江川区",label:"江川区"},{value:"澄江县",label:"澄江县"},{value:"通海县",label:"通海县"},{value:"华宁县",label:"华宁县"},{value:"易门县",label:"易门县"},{value:"峨山彝族自治县",label:"峨山彝族自治县"},{value:"新平彝族傣族自治县",label:"新平彝族傣族自治县"},{value:"元江哈尼族彝族傣族自治县",label:"元江哈尼族彝族傣族自治县"}],value:"玉溪市",label:"玉溪市"},{children:[{value:"隆阳区",label:"隆阳区"},{value:"施甸县",label:"施甸县"},{value:"龙陵县",label:"龙陵县"},{value:"昌宁县",label:"昌宁县"},{value:"腾冲市",label:"腾冲市"}],value:"保山市",label:"保山市"},{children:[{value:"昭阳区",label:"昭阳区"},{value:"鲁甸县",label:"鲁甸县"},{value:"巧家县",label:"巧家县"},{value:"盐津县",label:"盐津县"},{value:"大关县",label:"大关县"},{value:"永善县",label:"永善县"},{value:"绥江县",label:"绥江县"},{value:"镇雄县",label:"镇雄县"},{value:"彝良县",label:"彝良县"},{value:"威信县",label:"威信县"},{value:"水富县",label:"水富县"}],value:"昭通市",label:"昭通市"},{children:[{value:"古城区",label:"古城区"},{value:"玉龙纳西族自治县",label:"玉龙纳西族自治县"},{value:"永胜县",label:"永胜县"},{value:"华坪县",label:"华坪县"},{value:"宁蒗彝族自治县",label:"宁蒗彝族自治县"}],value:"丽江市",label:"丽江市"},{children:[{value:"思茅区",label:"思茅区"},{value:"宁洱哈尼族彝族自治县",label:"宁洱哈尼族彝族自治县"},{value:"墨江哈尼族自治县",label:"墨江哈尼族自治县"},{value:"景东彝族自治县",label:"景东彝族自治县"},{value:"景谷傣族彝族自治县",label:"景谷傣族彝族自治县"},{value:"镇沅彝族哈尼族拉祜族自治县",label:"镇沅彝族哈尼族拉祜族自治县"},{value:"江城哈尼族彝族自治县",label:"江城哈尼族彝族自治县"},{value:"孟连傣族拉祜族佤族自治县",label:"孟连傣族拉祜族佤族自治县"},{value:"澜沧拉祜族自治县",label:"澜沧拉祜族自治县"},{value:"西盟佤族自治县",label:"西盟佤族自治县"}],value:"普洱市",label:"普洱市"},{children:[{value:"临翔区",label:"临翔区"},{value:"凤庆县",label:"凤庆县"},{value:"云县",label:"云县"},{value:"永德县",label:"永德县"},{value:"镇康县",label:"镇康县"},{value:"双江拉祜族佤族布朗族傣族自治县",label:"双江拉祜族佤族布朗族傣族自治县"},{value:"耿马傣族佤族自治县",label:"耿马傣族佤族自治县"},{value:"沧源佤族自治县",label:"沧源佤族自治县"}],value:"临沧市",label:"临沧市"},{children:[{value:"楚雄市",label:"楚雄市"},{value:"双柏县",label:"双柏县"},{value:"牟定县",label:"牟定县"},{value:"南华县",label:"南华县"},{value:"姚安县",label:"姚安县"},{value:"大姚县",label:"大姚县"},{value:"永仁县",label:"永仁县"},{value:"元谋县",label:"元谋县"},{value:"武定县",label:"武定县"},{value:"禄丰县",label:"禄丰县"}],value:"楚雄彝族自治州",label:"楚雄彝族自治州"},{children:[{value:"个旧市",label:"个旧市"},{value:"开远市",label:"开远市"},{value:"蒙自市",label:"蒙自市"},{value:"弥勒市",label:"弥勒市"},{value:"屏边苗族自治县",label:"屏边苗族自治县"},{value:"建水县",label:"建水县"},{value:"石屏县",label:"石屏县"},{value:"泸西县",label:"泸西县"},{value:"元阳县",label:"元阳县"},{value:"红河县",label:"红河县"},{value:"金平苗族瑶族傣族自治县",label:"金平苗族瑶族傣族自治县"},{value:"绿春县",label:"绿春县"},{value:"河口瑶族自治县",label:"河口瑶族自治县"}],value:"红河哈尼族彝族自治州",label:"红河哈尼族彝族自治州"},{children:[{value:"文山市",label:"文山市"},{value:"砚山县",label:"砚山县"},{value:"西畴县",label:"西畴县"},{value:"麻栗坡县",label:"麻栗坡县"},{value:"马关县",label:"马关县"},{value:"丘北县",label:"丘北县"},{value:"广南县",label:"广南县"},{value:"富宁县",label:"富宁县"}],value:"文山壮族苗族自治州",label:"文山壮族苗族自治州"},{children:[{value:"景洪市",label:"景洪市"},{value:"勐海县",label:"勐海县"},{value:"勐腊县",label:"勐腊县"}],value:"西双版纳傣族自治州",label:"西双版纳傣族自治州"},{children:[{value:"大理市",label:"大理市"},{value:"漾濞彝族自治县",label:"漾濞彝族自治县"},{value:"祥云县",label:"祥云县"},{value:"宾川县",label:"宾川县"},{value:"弥渡县",label:"弥渡县"},{value:"南涧彝族自治县",label:"南涧彝族自治县"},{value:"巍山彝族回族自治县",label:"巍山彝族回族自治县"},{value:"永平县",label:"永平县"},{value:"云龙县",label:"云龙县"},{value:"洱源县",label:"洱源县"},{value:"剑川县",label:"剑川县"},{value:"鹤庆县",label:"鹤庆县"}],value:"大理白族自治州",label:"大理白族自治州"},{children:[{value:"瑞丽市",label:"瑞丽市"},{value:"芒市",label:"芒市"},{value:"梁河县",label:"梁河县"},{value:"盈江县",label:"盈江县"},{value:"陇川县",label:"陇川县"}],value:"德宏傣族景颇族自治州",label:"德宏傣族景颇族自治州"},{children:[{value:"泸水市",label:"泸水市"},{value:"福贡县",label:"福贡县"},{value:"贡山独龙族怒族自治县",label:"贡山独龙族怒族自治县"},{value:"兰坪白族普米族自治县",label:"兰坪白族普米族自治县"}],value:"怒江傈僳族自治州",label:"怒江傈僳族自治州"},{children:[{value:"香格里拉市",label:"香格里拉市"},{value:"德钦县",label:"德钦县"},{value:"维西傈僳族自治县",label:"维西傈僳族自治县"}],value:"迪庆藏族自治州",label:"迪庆藏族自治州"}],value:"云南省",label:"云南省"},{children:[{children:[{value:"城关区",label:"城关区"},{value:"堆龙德庆区",label:"堆龙德庆区"},{value:"林周县",label:"林周县"},{value:"当雄县",label:"当雄县"},{value:"尼木县",label:"尼木县"},{value:"曲水县",label:"曲水县"},{value:"达孜县",label:"达孜县"},{value:"墨竹工卡县",label:"墨竹工卡县"}],value:"拉萨市",label:"拉萨市"},{children:[{value:"桑珠孜区",label:"桑珠孜区"},{value:"南木林县",label:"南木林县"},{value:"江孜县",label:"江孜县"},{value:"定日县",label:"定日县"},{value:"萨迦县",label:"萨迦县"},{value:"拉孜县",label:"拉孜县"},{value:"昂仁县",label:"昂仁县"},{value:"谢通门县",label:"谢通门县"},{value:"白朗县",label:"白朗县"},{value:"仁布县",label:"仁布县"},{value:"康马县",label:"康马县"},{value:"定结县",label:"定结县"},{value:"仲巴县",label:"仲巴县"},{value:"亚东县",label:"亚东县"},{value:"吉隆县",label:"吉隆县"},{value:"聂拉木县",label:"聂拉木县"},{value:"萨嘎县",label:"萨嘎县"},{value:"岗巴县",label:"岗巴县"}],value:"日喀则市",label:"日喀则市"},{children:[{value:"卡若区",label:"卡若区"},{value:"江达县",label:"江达县"},{value:"贡觉县",label:"贡觉县"},{value:"类乌齐县",label:"类乌齐县"},{value:"丁青县",label:"丁青县"},{value:"察雅县",label:"察雅县"},{value:"八宿县",label:"八宿县"},{value:"左贡县",label:"左贡县"},{value:"芒康县",label:"芒康县"},{value:"洛隆县",label:"洛隆县"},{value:"边坝县",label:"边坝县"}],value:"昌都市",label:"昌都市"},{children:[{value:"巴宜区",label:"巴宜区"},{value:"工布江达县",label:"工布江达县"},{value:"米林县",label:"米林县"},{value:"墨脱县",label:"墨脱县"},{value:"波密县",label:"波密县"},{value:"察隅县",label:"察隅县"},{value:"朗县",label:"朗县"}],value:"林芝市",label:"林芝市"},{children:[{value:"乃东区",label:"乃东区"},{value:"扎囊县",label:"扎囊县"},{value:"贡嘎县",label:"贡嘎县"},{value:"桑日县",label:"桑日县"},{value:"琼结县",label:"琼结县"},{value:"曲松县",label:"曲松县"},{value:"措美县",label:"措美县"},{value:"洛扎县",label:"洛扎县"},{value:"加查县",label:"加查县"},{value:"隆子县",label:"隆子县"},{value:"错那县",label:"错那县"},{value:"浪卡子县",label:"浪卡子县"}],value:"山南市",label:"山南市"},{children:[{value:"那曲县",label:"那曲县"},{value:"嘉黎县",label:"嘉黎县"},{value:"比如县",label:"比如县"},{value:"聂荣县",label:"聂荣县"},{value:"安多县",label:"安多县"},{value:"申扎县",label:"申扎县"},{value:"索县",label:"索县"},{value:"班戈县",label:"班戈县"},{value:"巴青县",label:"巴青县"},{value:"尼玛县",label:"尼玛县"},{value:"双湖县",label:"双湖县"}],value:"那曲地区",label:"那曲地区"},{children:[{value:"普兰县",label:"普兰县"},{value:"札达县",label:"札达县"},{value:"噶尔县",label:"噶尔县"},{value:"日土县",label:"日土县"},{value:"革吉县",label:"革吉县"},{value:"改则县",label:"改则县"},{value:"措勤县",label:"措勤县"}],value:"阿里地区",label:"阿里地区"}],value:"西藏自治区",label:"西藏自治区"},{children:[{children:[{value:"新城区",label:"新城区"},{value:"碑林区",label:"碑林区"},{value:"莲湖区",label:"莲湖区"},{value:"灞桥区",label:"灞桥区"},{value:"未央区",label:"未央区"},{value:"雁塔区",label:"雁塔区"},{value:"阎良区",label:"阎良区"},{value:"临潼区",label:"临潼区"},{value:"长安区",label:"长安区"},{value:"高陵区",label:"高陵区"},{value:"蓝田县",label:"蓝田县"},{value:"周至县",label:"周至县"},{value:"户县",label:"户县"}],value:"西安市",label:"西安市"},{children:[{value:"王益区",label:"王益区"},{value:"印台区",label:"印台区"},{value:"耀州区",label:"耀州区"},{value:"宜君县",label:"宜君县"}],value:"铜川市",label:"铜川市"},{children:[{value:"渭滨区",label:"渭滨区"},{value:"金台区",label:"金台区"},{value:"陈仓区",label:"陈仓区"},{value:"凤翔县",label:"凤翔县"},{value:"岐山县",label:"岐山县"},{value:"扶风县",label:"扶风县"},{value:"眉县",label:"眉县"},{value:"陇县",label:"陇县"},{value:"千阳县",label:"千阳县"},{value:"麟游县",label:"麟游县"},{value:"凤县",label:"凤县"},{value:"太白县",label:"太白县"}],value:"宝鸡市",label:"宝鸡市"},{children:[{value:"秦都区",label:"秦都区"},{value:"杨陵区",label:"杨陵区"},{value:"渭城区",label:"渭城区"},{value:"三原县",label:"三原县"},{value:"泾阳县",label:"泾阳县"},{value:"乾县",label:"乾县"},{value:"礼泉县",label:"礼泉县"},{value:"永寿县",label:"永寿县"},{value:"彬县",label:"彬县"},{value:"长武县",label:"长武县"},{value:"旬邑县",label:"旬邑县"},{value:"淳化县",label:"淳化县"},{value:"武功县",label:"武功县"},{value:"兴平市",label:"兴平市"}],value:"咸阳市",label:"咸阳市"},{children:[{value:"临渭区",label:"临渭区"},{value:"华州区",label:"华州区"},{value:"潼关县",label:"潼关县"},{value:"大荔县",label:"大荔县"},{value:"合阳县",label:"合阳县"},{value:"澄城县",label:"澄城县"},{value:"蒲城县",label:"蒲城县"},{value:"白水县",label:"白水县"},{value:"富平县",label:"富平县"},{value:"韩城市",label:"韩城市"},{value:"华阴市",label:"华阴市"}],value:"渭南市",label:"渭南市"},{children:[{value:"宝塔区",label:"宝塔区"},{value:"安塞区",label:"安塞区"},{value:"延长县",label:"延长县"},{value:"延川县",label:"延川县"},{value:"子长县",label:"子长县"},{value:"志丹县",label:"志丹县"},{value:"吴起县",label:"吴起县"},{value:"甘泉县",label:"甘泉县"},{value:"富县",label:"富县"},{value:"洛川县",label:"洛川县"},{value:"宜川县",label:"宜川县"},{value:"黄龙县",label:"黄龙县"},{value:"黄陵县",label:"黄陵县"}],value:"延安市",label:"延安市"},{children:[{value:"汉台区",label:"汉台区"},{value:"南郑县",label:"南郑县"},{value:"城固县",label:"城固县"},{value:"洋县",label:"洋县"},{value:"西乡县",label:"西乡县"},{value:"勉县",label:"勉县"},{value:"宁强县",label:"宁强县"},{value:"略阳县",label:"略阳县"},{value:"镇巴县",label:"镇巴县"},{value:"留坝县",label:"留坝县"},{value:"佛坪县",label:"佛坪县"}],value:"汉中市",label:"汉中市"},{children:[{value:"榆阳区",label:"榆阳区"},{value:"横山区",label:"横山区"},{value:"神木县",label:"神木县"},{value:"府谷县",label:"府谷县"},{value:"靖边县",label:"靖边县"},{value:"定边县",label:"定边县"},{value:"绥德县",label:"绥德县"},{value:"米脂县",label:"米脂县"},{value:"佳县",label:"佳县"},{value:"吴堡县",label:"吴堡县"},{value:"清涧县",label:"清涧县"},{value:"子洲县",label:"子洲县"}],value:"榆林市",label:"榆林市"},{children:[{value:"汉滨区",label:"汉滨区"},{value:"汉阴县",label:"汉阴县"},{value:"石泉县",label:"石泉县"},{value:"宁陕县",label:"宁陕县"},{value:"紫阳县",label:"紫阳县"},{value:"岚皋县",label:"岚皋县"},{value:"平利县",label:"平利县"},{value:"镇坪县",label:"镇坪县"},{value:"旬阳县",label:"旬阳县"},{value:"白河县",label:"白河县"}],value:"安康市",label:"安康市"},{children:[{value:"商州区",label:"商州区"},{value:"洛南县",label:"洛南县"},{value:"丹凤县",label:"丹凤县"},{value:"商南县",label:"商南县"},{value:"山阳县",label:"山阳县"},{value:"镇安县",label:"镇安县"},{value:"柞水县",label:"柞水县"}],value:"商洛市",label:"商洛市"}],value:"陕西省",label:"陕西省"},{children:[{children:[{value:"城关区",label:"城关区"},{value:"七里河区",label:"七里河区"},{value:"西固区",label:"西固区"},{value:"安宁区",label:"安宁区"},{value:"红古区",label:"红古区"},{value:"永登县",label:"永登县"},{value:"皋兰县",label:"皋兰县"},{value:"榆中县",label:"榆中县"}],value:"兰州市",label:"兰州市"},{value:"嘉峪关市",label:"嘉峪关市"},{children:[{value:"金川区",label:"金川区"},{value:"永昌县",label:"永昌县"}],value:"金昌市",label:"金昌市"},{children:[{value:"白银区",label:"白银区"},{value:"平川区",label:"平川区"},{value:"靖远县",label:"靖远县"},{value:"会宁县",label:"会宁县"},{value:"景泰县",label:"景泰县"}],value:"白银市",label:"白银市"},{children:[{value:"秦州区",label:"秦州区"},{value:"麦积区",label:"麦积区"},{value:"清水县",label:"清水县"},{value:"秦安县",label:"秦安县"},{value:"甘谷县",label:"甘谷县"},{value:"武山县",label:"武山县"},{value:"张家川回族自治县",label:"张家川回族自治县"}],value:"天水市",label:"天水市"},{children:[{value:"凉州区",label:"凉州区"},{value:"民勤县",label:"民勤县"},{value:"古浪县",label:"古浪县"},{value:"天祝藏族自治县",label:"天祝藏族自治县"}],value:"武威市",label:"武威市"},{children:[{value:"甘州区",label:"甘州区"},{value:"肃南裕固族自治县",label:"肃南裕固族自治县"},{value:"民乐县",label:"民乐县"},{value:"临泽县",label:"临泽县"},{value:"高台县",label:"高台县"},{value:"山丹县",label:"山丹县"}],value:"张掖市",label:"张掖市"},{children:[{value:"崆峒区",label:"崆峒区"},{value:"泾川县",label:"泾川县"},{value:"灵台县",label:"灵台县"},{value:"崇信县",label:"崇信县"},{value:"华亭县",label:"华亭县"},{value:"庄浪县",label:"庄浪县"},{value:"静宁县",label:"静宁县"}],value:"平凉市",label:"平凉市"},{children:[{value:"肃州区",label:"肃州区"},{value:"金塔县",label:"金塔县"},{value:"瓜州县",label:"瓜州县"},{value:"肃北蒙古族自治县",label:"肃北蒙古族自治县"},{value:"阿克塞哈萨克族自治县",label:"阿克塞哈萨克族自治县"},{value:"玉门市",label:"玉门市"},{value:"敦煌市",label:"敦煌市"}],value:"酒泉市",label:"酒泉市"},{children:[{value:"西峰区",label:"西峰区"},{value:"庆城县",label:"庆城县"},{value:"环县",label:"环县"},{value:"华池县",label:"华池县"},{value:"合水县",label:"合水县"},{value:"正宁县",label:"正宁县"},{value:"宁县",label:"宁县"},{value:"镇原县",label:"镇原县"}],value:"庆阳市",label:"庆阳市"},{children:[{value:"安定区",label:"安定区"},{value:"通渭县",label:"通渭县"},{value:"陇西县",label:"陇西县"},{value:"渭源县",label:"渭源县"},{value:"临洮县",label:"临洮县"},{value:"漳县",label:"漳县"},{value:"岷县",label:"岷县"}],value:"定西市",label:"定西市"},{children:[{value:"武都区",label:"武都区"},{value:"成县",label:"成县"},{value:"文县",label:"文县"},{value:"宕昌县",label:"宕昌县"},{value:"康县",label:"康县"},{value:"西和县",label:"西和县"},{value:"礼县",label:"礼县"},{value:"徽县",label:"徽县"},{value:"两当县",label:"两当县"}],value:"陇南市",label:"陇南市"},{children:[{value:"临夏市",label:"临夏市"},{value:"临夏县",label:"临夏县"},{value:"康乐县",label:"康乐县"},{value:"永靖县",label:"永靖县"},{value:"广河县",label:"广河县"},{value:"和政县",label:"和政县"},{value:"东乡族自治县",label:"东乡族自治县"},{value:"积石山保安族东乡族撒拉族自治县",label:"积石山保安族东乡族撒拉族自治县"}],value:"临夏回族自治州",label:"临夏回族自治州"},{children:[{value:"合作市",label:"合作市"},{value:"临潭县",label:"临潭县"},{value:"卓尼县",label:"卓尼县"},{value:"舟曲县",label:"舟曲县"},{value:"迭部县",label:"迭部县"},{value:"玛曲县",label:"玛曲县"},{value:"碌曲县",label:"碌曲县"},{value:"夏河县",label:"夏河县"}],value:"甘南藏族自治州",label:"甘南藏族自治州"}],value:"甘肃省",label:"甘肃省"},{children:[{children:[{value:"城东区",label:"城东区"},{value:"城中区",label:"城中区"},{value:"城西区",label:"城西区"},{value:"城北区",label:"城北区"},{value:"大通回族土族自治县",label:"大通回族土族自治县"},{value:"湟中县",label:"湟中县"},{value:"湟源县",label:"湟源县"}],value:"西宁市",label:"西宁市"},{children:[{value:"乐都区",label:"乐都区"},{value:"平安区",label:"平安区"},{value:"民和回族土族自治县",label:"民和回族土族自治县"},{value:"互助土族自治县",label:"互助土族自治县"},{value:"化隆回族自治县",label:"化隆回族自治县"},{value:"循化撒拉族自治县",label:"循化撒拉族自治县"}],value:"海东市",label:"海东市"},{children:[{value:"门源回族自治县",label:"门源回族自治县"},{value:"祁连县",label:"祁连县"},{value:"海晏县",label:"海晏县"},{value:"刚察县",label:"刚察县"}],value:"海北藏族自治州",label:"海北藏族自治州"},{children:[{value:"同仁县",label:"同仁县"},{value:"尖扎县",label:"尖扎县"},{value:"泽库县",label:"泽库县"},{value:"河南蒙古族自治县",label:"河南蒙古族自治县"}],value:"黄南藏族自治州",label:"黄南藏族自治州"},{children:[{value:"共和县",label:"共和县"},{value:"同德县",label:"同德县"},{value:"贵德县",label:"贵德县"},{value:"兴海县",label:"兴海县"},{value:"贵南县",label:"贵南县"}],value:"海南藏族自治州",label:"海南藏族自治州"},{children:[{value:"玛沁县",label:"玛沁县"},{value:"班玛县",label:"班玛县"},{value:"甘德县",label:"甘德县"},{value:"达日县",label:"达日县"},{value:"久治县",label:"久治县"},{value:"玛多县",label:"玛多县"}],value:"果洛藏族自治州",label:"果洛藏族自治州"},{children:[{value:"玉树市",label:"玉树市"},{value:"杂多县",label:"杂多县"},{value:"称多县",label:"称多县"},{value:"治多县",label:"治多县"},{value:"囊谦县",label:"囊谦县"},{value:"曲麻莱县",label:"曲麻莱县"}],value:"玉树藏族自治州",label:"玉树藏族自治州"},{children:[{value:"格尔木市",label:"格尔木市"},{value:"德令哈市",label:"德令哈市"},{value:"乌兰县",label:"乌兰县"},{value:"都兰县",label:"都兰县"},{value:"天峻县",label:"天峻县"}],value:"海西蒙古族藏族自治州",label:"海西蒙古族藏族自治州"}],value:"青海省",label:"青海省"},{children:[{children:[{value:"兴庆区",label:"兴庆区"},{value:"西夏区",label:"西夏区"},{value:"金凤区",label:"金凤区"},{value:"永宁县",label:"永宁县"},{value:"贺兰县",label:"贺兰县"},{value:"灵武市",label:"灵武市"}],value:"银川市",label:"银川市"},{children:[{value:"大武口区",label:"大武口区"},{value:"惠农区",label:"惠农区"},{value:"平罗县",label:"平罗县"}],value:"石嘴山市",label:"石嘴山市"},{children:[{value:"利通区",label:"利通区"},{value:"红寺堡区",label:"红寺堡区"},{value:"盐池县",label:"盐池县"},{value:"同心县",label:"同心县"},{value:"青铜峡市",label:"青铜峡市"}],value:"吴忠市",label:"吴忠市"},{children:[{value:"原州区",label:"原州区"},{value:"西吉县",label:"西吉县"},{value:"隆德县",label:"隆德县"},{value:"泾源县",label:"泾源县"},{value:"彭阳县",label:"彭阳县"}],value:"固原市",label:"固原市"},{children:[{value:"沙坡头区",label:"沙坡头区"},{value:"中宁县",label:"中宁县"},{value:"海原县",label:"海原县"}],value:"中卫市",label:"中卫市"}],value:"宁夏回族自治区",label:"宁夏回族自治区"},{children:[{children:[{value:"天山区",label:"天山区"},{value:"沙依巴克区",label:"沙依巴克区"},{value:"新市区",label:"新市区"},{value:"水磨沟区",label:"水磨沟区"},{value:"头屯河区",label:"头屯河区"},{value:"达坂城区",label:"达坂城区"},{value:"米东区",label:"米东区"},{value:"乌鲁木齐县",label:"乌鲁木齐县"}],value:"乌鲁木齐市",label:"乌鲁木齐市"},{children:[{value:"独山子区",label:"独山子区"},{value:"克拉玛依区",label:"克拉玛依区"},{value:"白碱滩区",label:"白碱滩区"},{value:"乌尔禾区",label:"乌尔禾区"}],value:"克拉玛依市",label:"克拉玛依市"},{children:[{value:"高昌区",label:"高昌区"},{value:"鄯善县",label:"鄯善县"},{value:"托克逊县",label:"托克逊县"}],value:"吐鲁番市",label:"吐鲁番市"},{children:[{value:"伊州区",label:"伊州区"},{value:"巴里坤哈萨克自治县",label:"巴里坤哈萨克自治县"},{value:"伊吾县",label:"伊吾县"}],value:"哈密市",label:"哈密市"},{children:[{value:"昌吉市",label:"昌吉市"},{value:"阜康市",label:"阜康市"},{value:"呼图壁县",label:"呼图壁县"},{value:"玛纳斯县",label:"玛纳斯县"},{value:"奇台县",label:"奇台县"},{value:"吉木萨尔县",label:"吉木萨尔县"},{value:"木垒哈萨克自治县",label:"木垒哈萨克自治县"}],value:"昌吉回族自治州",label:"昌吉回族自治州"},{children:[{value:"博乐市",label:"博乐市"},{value:"阿拉山口市",label:"阿拉山口市"},{value:"精河县",label:"精河县"},{value:"温泉县",label:"温泉县"}],value:"博尔塔拉蒙古自治州",label:"博尔塔拉蒙古自治州"},{children:[{value:"库尔勒市",label:"库尔勒市"},{value:"轮台县",label:"轮台县"},{value:"尉犁县",label:"尉犁县"},{value:"若羌县",label:"若羌县"},{value:"且末县",label:"且末县"},{value:"焉耆回族自治县",label:"焉耆回族自治县"},{value:"和静县",label:"和静县"},{value:"和硕县",label:"和硕县"},{value:"博湖县",label:"博湖县"}],value:"巴音郭楞蒙古自治州",label:"巴音郭楞蒙古自治州"},{children:[{value:"阿克苏市",label:"阿克苏市"},{value:"温宿县",label:"温宿县"},{value:"库车县",label:"库车县"},{value:"沙雅县",label:"沙雅县"},{value:"新和县",label:"新和县"},{value:"拜城县",label:"拜城县"},{value:"乌什县",label:"乌什县"},{value:"阿瓦提县",label:"阿瓦提县"},{value:"柯坪县",label:"柯坪县"}],value:"阿克苏地区",label:"阿克苏地区"},{children:[{value:"阿图什市",label:"阿图什市"},{value:"阿克陶县",label:"阿克陶县"},{value:"阿合奇县",label:"阿合奇县"},{value:"乌恰县",label:"乌恰县"}],value:"克孜勒苏柯尔克孜自治州",label:"克孜勒苏柯尔克孜自治州"},{children:[{value:"喀什市",label:"喀什市"},{value:"疏附县",label:"疏附县"},{value:"疏勒县",label:"疏勒县"},{value:"英吉沙县",label:"英吉沙县"},{value:"泽普县",label:"泽普县"},{value:"莎车县",label:"莎车县"},{value:"叶城县",label:"叶城县"},{value:"麦盖提县",label:"麦盖提县"},{value:"岳普湖县",label:"岳普湖县"},{value:"伽师县",label:"伽师县"},{value:"巴楚县",label:"巴楚县"},{value:"塔什库尔干塔吉克自治县",label:"塔什库尔干塔吉克自治县"}],value:"喀什地区",label:"喀什地区"},{children:[{value:"和田市",label:"和田市"},{value:"和田县",label:"和田县"},{value:"墨玉县",label:"墨玉县"},{value:"皮山县",label:"皮山县"},{value:"洛浦县",label:"洛浦县"},{value:"策勒县",label:"策勒县"},{value:"于田县",label:"于田县"},{value:"民丰县",label:"民丰县"}],value:"和田地区",label:"和田地区"},{children:[{value:"伊宁市",label:"伊宁市"},{value:"奎屯市",label:"奎屯市"},{value:"霍尔果斯市",label:"霍尔果斯市"},{value:"伊宁县",label:"伊宁县"},{value:"察布查尔锡伯自治县",label:"察布查尔锡伯自治县"},{value:"霍城县",label:"霍城县"},{value:"巩留县",label:"巩留县"},{value:"新源县",label:"新源县"},{value:"昭苏县",label:"昭苏县"},{value:"特克斯县",label:"特克斯县"},{value:"尼勒克县",label:"尼勒克县"}],value:"伊犁哈萨克自治州",label:"伊犁哈萨克自治州"},{children:[{value:"塔城市",label:"塔城市"},{value:"乌苏市",label:"乌苏市"},{value:"额敏县",label:"额敏县"},{value:"沙湾县",label:"沙湾县"},{value:"托里县",label:"托里县"},{value:"裕民县",label:"裕民县"},{value:"和布克赛尔蒙古自治县",label:"和布克赛尔蒙古自治县"}],value:"塔城地区",label:"塔城地区"},{children:[{value:"阿勒泰市",label:"阿勒泰市"},{value:"布尔津县",label:"布尔津县"},{value:"富蕴县",label:"富蕴县"},{value:"福海县",label:"福海县"},{value:"哈巴河县",label:"哈巴河县"},{value:"青河县",label:"青河县"},{value:"吉木乃县",label:"吉木乃县"}],value:"阿勒泰地区",label:"阿勒泰地区"},{value:"石河子市",label:"石河子市"},{value:"阿拉尔市",label:"阿拉尔市"},{value:"图木舒克市",label:"图木舒克市"},{value:"五家渠市",label:"五家渠市"},{value:"铁门关市",label:"铁门关市"}],value:"新疆维吾尔自治区",label:"新疆维吾尔自治区"},{value:"台湾省",label:"台湾省"},{value:"香港特别行政区",label:"香港特别行政区"},{value:"澳门特别行政区",label:"澳门特别行政区"}],C=a("XLwt"),A=a.n(C);var k={data:function(){var e;return e={dialogAddFormVisible:!1,dialogEditFormVisible:!1,role_header:localStorage.getItem("newTitleName"),projectForm:{name:"",introduce:"",address:[],image:"",imageArr:[]},cityValue:[],options:x,props:{expandTrigger:"hover",value:"value"},rules:{name:[{required:!0,message:"请输入项目名称",trigger:"blur"}],introduce:[{required:!0,message:"请填写项目信息,不超过300字",trigger:"blur"}],pics:[{required:!0}],address:[{required:!0,message:"请选择项目地址",trigger:"change"}],image:[{required:!0,message:"请上传项目图片",trigger:"blur"}]},weaRegion:"",region:"",temperature:"",weather:"",wea_img:"",airQuality:"",windSpeed:"",humidness:"",message:"",baselist:[],air_tips:"",swiperList:[],selectValue:""},w()(e,"region",""),w()(e,"projectMessage",""),w()(e,"dialogFormVisible",!1),w()(e,"echartsArr",[]),w()(e,"echartsTotal",0),w()(e,"deviceTypeList",[]),w()(e,"selectTypeValue",""),w()(e,"selectTypeValue2",""),w()(e,"deviceList",[]),w()(e,"deviceTypeId",""),w()(e,"todayWeek",""),w()(e,"cropperVisible",!1),w()(e,"photo",{img:"",info:!0,outputSize:.8,outputType:"jpeg",fixed:!0,fixedNumber:[1.5,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0}),w()(e,"file",""),w()(e,"projectId",""),w()(e,"url",""),w()(e,"fileList",[]),w()(e,"dialogVisible",!1),w()(e,"baseinfo",{area_addr:[]}),e},mounted:function(){this.url=window.location.href,this.url,this.getWeatherData(),this.getItemsList(),this.getEchartsData(),this.getDeviceTypeList();var e=new Date,t=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate();this.getWeekDate(t)},methods:{deleteImg:function(e){this.fileList.splice(e,1),this.projectForm.imageArr.splice(e,1),this.projectForm.imageArr},changeUpload:function(e,t){var a=this;if(this.file=e,this.fileList=t,!(e.size/1024/1024<2))return this.$message.error("上传文件大小不能超过 2MB!"),!1;this.$nextTick(function(){a.photo.img=URL.createObjectURL(e.raw),a.cropperVisible=!0})},finish:function(){var e=this;this.$refs.cropper.getCropBlob(function(t){var a=new FormData,i=e.blobToFile(t,"filename.jpg");a.append("file",i),a.append("img_type","/index/home03"),a.append("token",localStorage.getItem("session")),e.cropperVisible=!1,e.$axios({method:"POST",url:"/api/v2/util/upload/img/",data:a}).then(function(t){0!=t.data.data.items.img_url&&"成功"==t.data.msg?(e.projectForm.image=t.data.data.items.img_url,e.projectForm.imageArr.push(e.projectForm.image),e.projectForm.imageArr):0==document.getElementsByClassName("el-message").length&&e.$message({message:"上传失败",type:"error"})})})},blobToFile:function(e,t){return e.lastModifiedDate=new Date,e.name=t,e},getWeekDate:function(e){var t=new Date(e).getDay(),a=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六")[t];this.todayWeek=a},getWeatherData:function(){var e=this;this.$axios({method:"POST",url:"api/api_gateway?method=home.new_home.get_home_weather"}).then(function(t){""==t.data.message&&t.data.data.region&&(t.data.data,e.weaRegion=t.data.data.region,e.temperature=t.data.data.at,e.weather=t.data.data.wea,e.wea_img=t.data.data.wea_img,e.airQuality=t.data.data.air,e.windSpeed=t.data.data.win_meter,e.humidness=t.data.data.ah,e.message=t.data.data.alarm_content,e.air_tips=t.data.data.air_tips)})},getItemsList:function(){var e=this;this.$axios({method:"POST",url:"api/api_gateway?method=basemanager.baseinfo.list_land_base",data:this.qs.stringify({page:1,page_size:999999})}).then(function(t){if(""==t.data.message){for(var a=t.data.data.data,i=0;i<a.length;i++){var n={value:a[i].base_id,label:a[i].base_name};e.baselist.push(n)}e.baselist,e.selectValue=e.baselist[0].label,e.baseinfo=a[0],e.baseinfo}})},getbaseinfo:function(e){var t=this;this.$axios({method:"POST",url:"api/api_gateway?method=basemanager.baseinfo.list_land_base",data:this.qs.stringify({base_id:e})}).then(function(e){""==e.data.message&&(t.baseinfo=e.data.data.data[0])})},handleChange:function(e){this.getbaseinfo(e)},handleAddressChange:function(e){this.projectForm.address=e,this.projectForm.address[0],this.projectForm.address[1],this.projectForm.address[2]},cancelAdd:function(){this.dialogEditFormVisible=!1,this.dialogAddFormVisible=!1},addProject:function(){var e=this;this.$refs.ruleForm.validate(function(t){if(!t)return 0==document.getElementsByClassName("el-message").length&&e.$message.error("请填写完整的项目信息"),!1;e.dialogEditFormVisible=!1,e.dialogAddFormVisible=!1,e.$axios({method:"POST",url:"/api/v2/home/project/modify/",data:e.qs.stringify({project_name:e.projectForm.name,project_msg:e.projectForm.introduce,province:e.projectForm.address[0],city:void 0==e.projectForm.address[1]?e.projectForm.address[0]:e.projectForm.address[1],district:void 0==e.projectForm.address[2]?e.projectForm.address[0]:e.projectForm.address[2],img_list:e.projectForm.imageArr})}).then(function(t){200==t.status&&(0==document.getElementsByClassName("el-message").length&&e.$message.success("添加成功"),e.getItemsList())})})},closeDialog:function(){this.$refs.upload.clearFiles()},handleAdd:function(e){var t=this;this.$axios({method:"POST",url:"api/api_gateway?method=home.new_home.set_home_land",data:this.qs.stringify({base_id:e})}).then(function(e){e.data.data?(0==document.getElementsByClassName("el-message").length&&t.$message.success("设置成功"),t.dialogVisible=!1):0==document.getElementsByClassName("el-message").length&&t.$message.error("设置失败")})},getDeviceTypeList:function(){var e=this;this.$axios({method:"POST",url:"api/api_gateway?method=home.new_home.get_device_type_list"}).then(function(t){if(t.data,""==t.data.message){for(var a=t.data.data,i=0;i<a.length;i++){var n={value:a[i].device_type_id,label:a[i].type_name};e.deviceTypeList.push(n)}e.selectTypeValue=e.deviceTypeList[0].value,e.selectTypeValue2=e.deviceTypeList[0].label,e.getDeviceList(e.deviceTypeList[0].value)}})},handleDeviceTypeChange:function(e){for(var t=0;t<this.deviceTypeList.length;t++)e==this.deviceTypeList[t].value&&(this.selectTypeValue2=this.deviceTypeList[t].label);this.getDeviceList(e)},getDeviceList:function(e){var t=this;this.$axios({method:"POST",url:"api/api_gateway?method=home.new_home.get_device_list",data:this.qs.stringify({device_type_id:e})}).then(function(e){t.deviceList=e.data.data})},getEchartsData:function(){var e=this;this.$axios({method:"POST",url:"api/api_gateway?method=home.new_home.get_device_statistic"}).then(function(t){t.data.data,""==t.data.message&&(e.echartsArr=t.data.data.result,e.echartsTotal=t.data.data.total_num,e.echartsArr,e.echartsTotal,e.echartsTotal&&e.$nextTick(function(){e.chartsInit()}))})},chartsInit:function(){var e,t=A.a.init(this.$refs.chartRef);t.setOption((e=this.echartsArr,{title:[{textStyle:{fontSize:16,color:"black"},left:"2%"},{text:"设备数量",subtext:this.echartsTotal,textStyle:{fontSize:20,color:"black"},subtextStyle:{fontSize:20,color:"black"},textAlign:"center",x:"34.5%",y:"44%"}],tooltip:{trigger:"item",formatter:function(e){return e.marker+""+e.data.name+"</br>数量:"+e.data.value+"</br>占比:"+e.percent+"%"}},legend:{type:"scroll",orient:"vertical",left:"70%",align:"left",top:"middle",textStyle:{color:"#8C8C8C"},height:250},series:[{type:"pie",center:["35%","50%"],radius:["40%","65%"],clockwise:!1,avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:e}]})),window.addEventListener("resize",function(){t.resize()})}}},E={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"row row01"},[i("el-card",{staticClass:"weather"},[i("div",{staticClass:"weather01"},[i("span",{staticStyle:{color:"#767676","font-size":"12px","margin-left":"20px"}},[e._v("\n "+e._s(e.weaRegion)+"\n ")]),e._v(" "),i("span",{staticStyle:{color:"#767676","font-size":"12px","margin-right":"10px"}},[i("i",{staticClass:"el-icon-alarm-clock"}),e._v("\n "+e._s(e.todayWeek)+"\n ")])]),e._v(" "),i("div",{staticClass:"weather02"},[i("div",{staticClass:"weather02Left"},[""!=e.wea_img&&null!=e.wea_img?i("img",{attrs:{src:"../../../static/images/home/"+e.wea_img+".png"}}):e._e()]),e._v(" "),i("div",{staticClass:"weather02Right"},[i("span",{staticClass:"temperatureTop"},[e._v(e._s(e.temperature)+"℃")]),e._v(" "),i("div",{staticClass:"temperatureBottom"},[i("span",{staticClass:"weatherText"},[e._v(e._s(e.weather))])])])]),e._v(" "),i("div",{staticClass:"weather03"},[i("div",{staticClass:"wea"},[i("img",{staticStyle:{width:"16px",height:"16px"},attrs:{src:a("8orY"),alt:""}}),e._v(" "),i("span",{staticClass:"nums"},[e._v(e._s(e.airQuality))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px"}},[e._v("空气质量")])]),e._v(" "),i("div",{staticClass:"wea"},[i("img",{staticStyle:{width:"33px",height:"17px"},attrs:{src:a("sNl0"),alt:""}}),e._v(" "),i("span",{staticClass:"nums"},[e._v(e._s(e.windSpeed))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px"}},[e._v("风速")])]),e._v(" "),i("div",{staticClass:"wea"},[i("img",{staticStyle:{width:"20px",height:"25px","margin-top":"-0.4px"},attrs:{src:a("2n9Y"),alt:""}}),e._v(" "),i("span",{staticClass:"nums"},[e._v(e._s(e.humidness))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px"}},[e._v("湿度")])])]),e._v(" "),i("div",{staticClass:"weather04"},[i("div",{staticClass:"message"},[i("div",{staticClass:"notice"},[i("img",{attrs:{src:a("Nr4M"),alt:""}}),e._v(" "),i("section",[e._v("天气预警")])]),e._v(" "),i("p",[e._v("\n "+e._s(null==e.message||""==e.message?"暂无预警信息":e.message)+"\n ")])])])]),e._v(" "),i("el-card",{staticClass:"data"},[i("div",[i("div",{staticClass:"pic"},[i("div",{staticStyle:{color:"#fff","font-weight":"600","font-size":"20px","margin-left":"68px","padding-top":"56px"}},[e._v("\n "+e._s(e.baseinfo.base_name)+"\n ")]),e._v(" "),i("div",{staticStyle:{color:"#fff","margin-left":"68px","font-size":"12px","margin-top":"8px"}},[e._v("\n 欢迎进入"+e._s(e.role_header)+"\n ")])]),e._v(" "),i("div",{staticStyle:{"margin-top":"30px","margin-left":"25px",display:"flex","flex-direction":"row"}},[i("span",{staticClass:"tit"},[e._v("基地描述")]),e._v(" "),i("span",{staticStyle:{"margin-left":"16px",color:"#767676","font-size":"12px"}},[i("i",{staticClass:"el-icon-location-outline"}),e._v("\n "+e._s(e.baseinfo.area_addr[0])+"\n "+e._s(e.baseinfo.area_addr[1])+"\n "+e._s(e.baseinfo.area_addr[2])+"\n ")])]),e._v(" "),i("div",{staticStyle:{"margin-top":"30px","margin-left":"25px",color:"#767676","font-size":"12px"}},[e._v("\n "+e._s(null==e.baseinfo.describe||""==e.baseinfo.describe?"暂无基地内容信息,请尽快编辑您的基地内容":e.baseinfo.describe)+"\n ")])])]),e._v(" "),i("el-card",{staticClass:"list"},[i("section",[i("div",[i("span",{staticClass:"tit"},[e._v("基地列表")])]),e._v(" "),i("el-select",{attrs:{filterable:"",placeholder:"请选择",size:"mini"},on:{change:e.handleChange},model:{value:e.selectValue,callback:function(t){e.selectValue=t},expression:"selectValue"}},e._l(e.baselist,function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),i("div",{staticClass:"swiper"},[i("img",{attrs:{src:e.baseinfo.img_url,alt:""}}),e._v(" "),i("div",{staticClass:"add",on:{click:function(t){return e.handleAdd(e.baseinfo.base_id)}}},[e._v("设为首页")])])])],1),e._v(" "),i("div",{staticClass:"row02"},[i("el-card",{staticClass:"showDevice"},[i("section",[i("div",{staticClass:"showLeft"},[i("div",{staticClass:"showDeviceTop"},[i("span",{staticClass:"tit"},[e._v("设备展示")]),e._v(" "),i("el-select",{staticStyle:{"margin-left":"auto"},attrs:{filterable:"",size:"mini",placeholder:"请选择"},on:{change:e.handleDeviceTypeChange},model:{value:e.selectTypeValue,callback:function(t){e.selectTypeValue=t},expression:"selectTypeValue"}},e._l(e.deviceTypeList,function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),i("div",{staticClass:"cardContainer"},[e._l(e.deviceList,function(t,n){return i("el-card",{key:n,staticClass:"infoCard",staticStyle:{cursor:"pointer"}},[i("div",{staticClass:"info"},[i("img",{attrs:{src:a("+yGY"),alt:""}}),e._v(" "),i("div",[i("p",{staticStyle:{"font-weight":"600","font-size":"14px"}},[e._v("\n "+e._s(t.device_name)+"\n ")]),e._v(" "),i("p",{staticStyle:{"font-size":"12px",color:"#767676"}},[e._v("\n ID:"+e._s(t.device_id)+"\n ")]),e._v(" "),i("p",{staticStyle:{"font-size":"12px",color:"#767676"}},[e._v("\n 地址:"+e._s(""==t.region?"暂无地址":t.region)+"\n ")]),e._v(" "),i("p",{staticStyle:{"font-size":"12px",color:"#767676"}},[e._v("\n 最新上报时间:"+e._s(t.uptime)+"\n ")])]),e._v(" "),i("div",{staticStyle:{"margin-left":"auto"}},[i("el-button",{staticClass:"btn",attrs:{size:"mini",type:"primary",round:""}},[e._v(e._s(1==t.is_online?"在线":"离线"))])],1)])])}),e._v(" "),0==e.deviceTypeList.length?i("div",[i("img",{staticStyle:{width:"150px",height:"195px","margin-left":"99px","margin-top":"90px"},attrs:{src:a("QKAS"),alt:""}})]):e._e()],2)]),e._v(" "),i("div",{staticClass:"showRight",staticStyle:{width:"42vw",height:"38.5vh"}},[0!=e.deviceList.length?i("img",{staticStyle:{width:"42vw",height:"41vh"},attrs:{src:"../../../static/images/home/"+e.selectTypeValue2+".png"}}):e._e(),e._v(" "),0==e.deviceList.length?i("img",{staticStyle:{width:"42vw",height:"41vh"},attrs:{src:a("zgi+"),alt:""}}):e._e(),e._v(" "),i("div",{staticClass:"picText"},[e._v(e._s(e.selectTypeValue2))]),e._v(" "),i("div",{staticClass:"picText1"},[e._v("图片仅供参考")])])])]),e._v(" "),i("el-card",{staticClass:"myDevice"},[i("div",{staticClass:"tit"},[e._v("您的设备")]),e._v(" "),0!=e.echartsTotal?i("div",{ref:"chartRef",attrs:{id:"chart"}}):i("div",[i("img",{staticStyle:{width:"166px",height:"190px","margin-left":"95px","margin-top":"102px"},attrs:{src:a("1/VS"),alt:""}})])])],1)])},staticRenderFns:[]};var D=a("VU/8")(k,E,!1,function(e){a("UO3+")},"data-v-23629cda",null).exports,S=a("Dd8w"),I=a.n(S),T=a("woOf"),B=a.n(T),M=a("fZjL"),P=a.n(M),L={filters:{ellipsis:function(e){return e?e.length>15?e.slice(0,15)+"...":e:""},momentTime:function(e){return e},subDeviceId:function(e){return e?e.substring(e.length-6):""}},components:{},data:function(){return{queryInfo:{page_size:"10",page:"1",is_online:"",f_id:"",pagekey:1},options:[{value:"",label:"全部"},{value:"1",label:"在线"},{value:"0",label:"离线"}],equipList:[],loading:!1,equipControlDialogVisible:!1,equipContrlForm:{},equipInfo:{},totalNum:0,isWarningList:!1,warningList:[],onewarning:{warning_status:"",device_id:""},cbdWarningPage:1}},computed:{},watch:{},methods:{getEquipList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.lamp_list",data:this.qs.stringify({device_type_id:3,page_size:this.queryInfo.page_size,page:this.queryInfo.page,device_status:this.queryInfo.is_online,device_id:this.queryInfo.f_id})}).then(function(t){if(""==t.data.message){e.equipList=t.data.data.data;for(var a=0;a<e.equipList.length;a++)0==e.equipList[a].disable?e.equipList[a].insectVal="禁用":1==e.equipList[a].disable?e.equipList[a].insectVal="识别":2==e.equipList[a].disable&&(e.equipList[a].insectVal="计数");e.equipList.insectVal=e.totalNum=t.data.data.counts,e.loading=!1}t.data.data.data;var i=t.data.data.data;for(a=0;a<i.length;a++)"2"==i[a].disable?i[a].imei:"1"==i[a].disable&&i[a].imei})},handleSizeChange:function(e){this.queryInfo.page_size=e,this.getEquipList()},handleCurrentChange:function(e){this.queryInfo.page=e,this.getEquipList()},searchChange:function(){this.queryInfo.page=1,this.pagekey=10*Math.random()+1,this.getEquipList()},empty:function(){this.queryInfo.page=1,this.pagekey=10*Math.random()+1,this.queryInfo.is_online="",this.queryInfo.f_id="",this.getEquipList()},EquipControl:function(e,t,a){var i=this;this.d_id=e,this.equipInfo={device_id:t,device_name:a},this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.send_control.device_control_info",data:this.qs.stringify({d_id:e,cmd:"paramconf"})}).then(function(e){if(e.data.data&&P()(e.data.data).length>0){var t=e.data.data;t.ds=Number(t.ds),t.st=t.st&&t.st<10?"0"+t.st+":00":t.st+":00",t.et=t.et&&t.et<10?"0"+t.et+":00":t.et+":00";var a={};for(var n in t.ds,t)if("string"==typeof t[n]&&"st"!==n&&"et"!==n){var l=t[n];Number(l)<0?a[n]=Number(t[n]):Number(l)>=0&&(a[n]=parseInt(t[n]))}else a[n]=t[n];i.equipContrlForm=a}i.equipControlDialogVisible=!0})},resetEquipControlDialogClosed:function(){this.$refs.equipContrlRef.resetFields(),this.ws=0},equipControlSubm:function(){var e=this,t=B()({},this.equipContrlForm);for(var a in t.st=t.st+"",t.et=t.et+"",t.st&&"0"!=t.st.slice(0,2).charAt(0)?t.st.slice(0,2):t.st.slice(1,2),t.et=t.et&&"0"!=t.et.slice(0,2).charAt(0)?t.et.slice(0,2):t.et.slice(1,2),t)"number"==typeof t[a]&&(t[a]=t[a]+"");t.st=t.st.replace(":00",""),this.$delete(t,"admin"),this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.send_control.device_control",data:this.qs.stringify({device_type_id:3,d_id:this.d_id,config:s()(t),device_name:this.equipInfo.device_name})}).then(function(t){""==t.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message.success("设备控制修改成功"),e.getEquipList()):0==document.getElementsByClassName("el-message").length&&e.$message.error("设备控制修改失败"),e.equipControlDialogVisible=!1})},showTimeControlDialog:function(e,t){this.device_id=t,this.$router.push({path:"/index/pestsStats",query:{d_id:e,identify_model:"A"}})},viewPhotoDialog:function(e,t,a,i,n){this.device_id=e,this.$router.push({path:"/index/cbdDataPhotos/"+e,query:{d_id:t,name:a,addr:i,disable:n,identify_model:"A"}})},dataDetails:function(e,t,a){this.device_id=e,this.$router.push({path:"/index/cbdDataDetails/"+e+"/"+t,query:{addr:a.address,name:a.device_name}})},showWarningInfo:function(){this.isWarningList=!this.isWarningList},oneWarningList:function(){this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.cbd_pest_warning",data:this.qs.stringify({status:"yes"})}).then(function(e){e.data.data})},yidu:function(e){this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.cbd_pest_warning",data:this.qs.stringify({d_id:e})}).then(function(e){e.data.data,e.data.data})},cbdWarningList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.cbd_pest_warning",data:this.qs.stringify({page:this.cbdWarningPage})}).then(function(t){var a=t.data.data.data;a=a.map(function(e){var t=e.warning_content,a=Object.prototype.toString.call(t).slice(8,-1).toLowerCase(),i="";if(["object"].includes(a))for(var n in t)i+=n+":"+t[n];return I()({},e,{detailsInfo:i})});for(var i=0;i<a.length;i++)e.warningList.push(a[i]);e.onewarning=e.warningList[0],e.warningList})},warning_status:function(e){return"1"===e?"目标种类预警":"2"==e?"指定害虫数量预警":"3"==e?"害虫数量总和预警 ":"4"===e?"综合预警":void 0},detail:function(e,t){return"1"===t?"目标种类预警"+e+"类":"3"==t?"害虫数量总和预警"+e+"头":void 0},load:function(){this.cbdWarningPage++,this.cbdWarningList()}},beforeCreate:function(){},created:function(){this.getEquipList(),this.cbdWarningList()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},R={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"baselistbox"},[a("div",{staticClass:"baselistbox_top"},[a("div",{staticClass:"baselistbox_top_title"},[a("p",[e._v("虫情监测")]),e._v(" "),0!==e.warningList.length?a("div",{staticClass:"warningInfo"},[a("div",{staticClass:"title",on:{click:e.showWarningInfo}},[a("div",[a("i",{staticClass:"iconfont el-icon-s-order",staticStyle:{"margin-right":"10px"}}),e._v(e._s(e._f("subDeviceId")(e.onewarning.device_id))+"\n "+e._s(e.warning_status(e.onewarning.warning_status))+"\n ")]),e._v(" "),a("i",{staticClass:"el-icon-bell"})]),e._v(" "),e.isWarningList?a("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.load,expression:"load"}],staticClass:"warningInfoList",attrs:{"infinite-scroll-delay":"200","infinite-scroll-immediate":"false"}},[a("li",{on:{click:function(t){return e.oneWarningList()}}},[e._m(0)]),e._v(" "),e._l(e.warningList,function(t,i){return a("li",{key:i},[a("el-popover",{attrs:{placement:"left",trigger:"click"}},[a("div",{staticStyle:{padding:"5px 0px",width:"500px"}},[e._v("\n 设备编号:"+e._s(t.device_id)+"\n ")]),e._v(" "),a("div",{staticStyle:{padding:"5px 0px",width:"500px","line-height":"30px"}},[e._v("\n 详细信息:"+e._s(t.detailsInfo||e.detail(t.warning_content,t.warning_status))+"\n ")]),e._v(" "),a("el-button",{staticStyle:{"background-color":"transparent"},attrs:{slot:"reference"},on:{click:function(a){return e.yidu(t.d_id)}},slot:"reference"},[0==t.status?a("i",{staticClass:"circle"}):e._e(),e._v(" "),a("div",{class:0==t.status?"active":"",staticStyle:{width:"60%","text-align":"left"}},[e._v("\n "+e._s(e._f("subDeviceId")(t.device_id))+"\n "+e._s(e.warning_status(t.warning_status))+"\n ")]),e._v(" "),a("span",{class:0==t.status?"active":""},[e._v(e._s(e._f("formatTime")(1e3*t.upltime)))])])],1)],1)})],2):e._e()]):e._e()]),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticClass:"left_search"},[a("div",{staticClass:"firstsearch"},[a("span",{staticClass:"biaoti"},[e._v("设备ID或名称")]),e._v(" "),a("el-input",{attrs:{size:"mini",placeholder:"请输入设备ID或名称"},model:{value:e.queryInfo.f_id,callback:function(t){e.$set(e.queryInfo,"f_id",t)},expression:"queryInfo.f_id"}})],1),e._v(" "),a("div",{staticClass:"secsearch"},[a("span",{staticClass:"biaoti"},[e._v("设备状态")]),e._v(" "),a("el-select",{attrs:{size:"mini",filterable:"",placeholder:"请选择"},model:{value:e.queryInfo.is_online,callback:function(t){e.$set(e.queryInfo,"is_online",t)},expression:"queryInfo.is_online"}},e._l(e.options,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)]),e._v(" "),a("div",{staticClass:"right_search"},[a("div",{staticClass:"btnbox",on:{click:e.searchChange}},[e._v("查询")]),e._v(" "),a("div",{staticClass:"btnbox2",on:{click:e.empty}},[e._v("重置")])])])]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.equipList,stripe:"",height:"560px","default-sort":{prop:"device_name",order:"addtime"}}},[a("el-table-column",{attrs:{prop:"device_name",sortable:"",label:"设备名称",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(""==t.row.device_name?"无":t.row.device_name))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"imei",label:"设备ID",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.imei))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"device_status",label:"在线状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.is_online?a("p",{staticStyle:{color:"#17bb89"}},[e._v("在线")]):e._e(),e._v(" "),0==t.row.is_online?a("p",{staticStyle:{color:"#eb6765"}},[e._v("离线")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"dtype",label:"设备版本",width:"300"}}),e._v(" "),a("el-table-column",{attrs:{prop:"uptime",sortable:"",label:"最新上报时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatTime")(1e3*t.row.uptime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"地址",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("ellipsis")(t.row.address||"无")))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"350"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.viewPhotoDialog(t.row.imei,t.row.d_id,t.row.device_name,t.row.address,t.row.disable)}}},[e._v("查看图片")]),e._v(" "),a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.EquipControl(t.row.d_id,t.row.imei,t.row.device_name)}}},[e._v("设备控制")]),e._v(" "),a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.showTimeControlDialog(t.row.d_id,t.row.imei,t.row.disable)}}},[e._v("虫情分析")]),e._v(" "),a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.dataDetails(t.row.imei,t.row.d_id,t.row)}}},[e._v("数据详情")])]}}])})],1),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{key:e.queryInfo.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalNum,"page-sizes":[10,20,30,50],"page-size":e.queryInfo.page_size,"current-size":e.queryInfo.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){return e.$set(e.queryInfo,"page",t)},"update:current-size":function(t){return e.$set(e.queryInfo,"page",t)}}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"设备控制",visible:e.equipControlDialogVisible,width:"600px","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.equipControlDialogVisible=t},close:e.resetEquipControlDialogClosed}},[a("div",{staticClass:"handAddForm"},[a("el-form",{ref:"equipContrlRef",attrs:{model:e.equipContrlForm,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"设备编号:"}},[a("el-input",{attrs:{disabled:"",size:"mini"},model:{value:e.equipInfo.device_id,callback:function(t){e.$set(e.equipInfo,"device_id",t)},expression:"equipInfo.device_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备名称:"}},[a("el-input",{staticStyle:{width:"200px"},attrs:{size:"mini",maxlength:10},model:{value:e.equipInfo.device_name,callback:function(t){e.$set(e.equipInfo,"device_name",t)},expression:"equipInfo.device_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备开关:",prop:"ds"}},[a("el-select",{attrs:{size:"mini"},model:{value:e.equipContrlForm.ds,callback:function(t){e.$set(e.equipContrlForm,"ds",t)},expression:"equipContrlForm.ds"}},[a("el-option",{attrs:{label:"开机",value:1}}),e._v(" "),a("el-option",{attrs:{label:"关机",value:0}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"定时模式:",prop:"ts"}},[a("el-select",{attrs:{placeholder:"请选择定时模式",size:"mini"},model:{value:e.equipContrlForm.ts,callback:function(t){e.$set(e.equipContrlForm,"ts",t)},expression:"equipContrlForm.ts"}},[a("el-option",{attrs:{label:"光控",value:0}}),e._v(" "),a("el-option",{attrs:{label:"时控",value:1}})],1)],1),e._v(" "),1==e.equipContrlForm.ts?a("el-form-item",{attrs:{label:"开始结束时间:"}},[a("el-col",{attrs:{span:11}},[a("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"00:00",step:"01:00",end:"23:00"},size:"mini"},model:{value:e.equipContrlForm.st,callback:function(t){e.$set(e.equipContrlForm,"st",t)},expression:"equipContrlForm.st"}})],1),e._v(" "),a("el-col",{staticClass:"line",attrs:{span:2}},[e._v("-")]),e._v(" "),a("el-col",{attrs:{span:11}},[a("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"00:00",step:"01:00",end:"23:00"},size:"mini"},model:{value:e.equipContrlForm.et,callback:function(t){e.$set(e.equipContrlForm,"et",t)},expression:"equipContrlForm.et"}})],1)],1):e._e(),e._v(" "),1!=e.equipContrlForm.ts?a("el-form-item",{attrs:{label:"定时时长(h):",prop:"tt"}},[a("div",{staticClass:"sliderParent"},[a("div",{staticClass:"block"},[a("el-slider",{attrs:{"show-input":"",min:1,max:10},model:{value:e.equipContrlForm.tt,callback:function(t){e.$set(e.equipContrlForm,"tt",t)},expression:"equipContrlForm.tt"}})],1)])]):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"落虫时间(min):",prop:"collt"}},[a("div",{staticClass:"sliderParent"},[a("div",{staticClass:"block"},[a("el-slider",{attrs:{"show-input":"",min:1,max:20},model:{value:e.equipContrlForm.collt,callback:function(t){e.$set(e.equipContrlForm,"collt",t)},expression:"equipContrlForm.collt"}})],1)])]),e._v(" "),a("el-form-item",{attrs:{label:"加热时间(min):",prop:"htim"}},[a("div",{staticClass:"sliderParent"},[a("div",{staticClass:"block"},[a("el-slider",{attrs:{"show-input":"",min:1,max:20},model:{value:e.equipContrlForm.htim,callback:function(t){e.$set(e.equipContrlForm,"htim",t)},expression:"equipContrlForm.htim"}})],1)])]),e._v(" "),a("el-form-item",{attrs:{label:"加热温度(℃):",prop:"hst"}},[a("div",{staticClass:"sliderParent"},[a("div",{staticClass:"block"},[a("el-slider",{attrs:{"show-input":"",min:75,max:120},model:{value:e.equipContrlForm.hst,callback:function(t){e.$set(e.equipContrlForm,"hst",t)},expression:"equipContrlForm.hst"}})],1)])]),e._v(" "),a("el-form-item",{attrs:{label:"高温保护阈值(℃):",prop:"tph"}},[a("div",{staticClass:"sliderParent"},[a("div",{staticClass:"block"},[a("el-slider",{attrs:{"show-input":"",min:50,max:70},model:{value:e.equipContrlForm.tph,callback:function(t){e.$set(e.equipContrlForm,"tph",t)},expression:"equipContrlForm.tph"}})],1)])]),e._v(" "),a("el-form-item",{attrs:{label:"低温保护阈值(℃):",prop:"tpl"}},[a("div",{staticClass:"sliderParent"},[a("div",{staticClass:"block"},[a("el-slider",{attrs:{"show-input":"",min:-30,max:10},model:{value:e.equipContrlForm.tpl,callback:function(t){e.$set(e.equipContrlForm,"tpl",t)},expression:"equipContrlForm.tpl"}})],1)])]),e._v(" "),a("el-form-item",{attrs:{label:"数据上传间隔(min):",prop:"datt"}},[a("div",{staticClass:"sliderParent"},[a("div",{staticClass:"block"},[a("el-slider",{attrs:{step:10,"show-input":"",min:10,max:60},model:{value:e.equipContrlForm.datt,callback:function(t){e.$set(e.equipContrlForm,"datt",t)},expression:"equipContrlForm.datt"}})],1)])])],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.equipControlDialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.equipControlSubm}},[e._v("确 定")])],1)])],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{"padding-left":"10px"}},[t("i",{staticClass:"iconfont el-icon-s-promotion"}),this._v("一键已读\n ")])}]};var N=a("VU/8")(L,R,!1,function(e){a("tDEo")},"data-v-e0fc4d3e",null).exports,O=a("RBDX"),q=a("504h"),z=a.n(q),F={components:{},data:function(){return{amend:0,yesroptions:[],yservalue:"",slidervalue:[4,8],slidermax:365,marks:{},identify_model:"",d_id:"",wormvalue:"",wormlist:[],worminfolist:[],worminfo:{endTime:"",highNum:"",highTime:"",startTime:""},start_time:"",end_time:"",ChartData:[],pietf:!1,hightf:!1,zhutf:!1,acttableindex:1,tableinput:"",Imagesourcelist:[],worminfotable:[],page:1,total:10,page_size:10,pagekey:1,currentPage:1,dialogVisible:!1,img_url:"",indentify_photo:"",tabworm:{},basedata:[],basedialogVisible:!1,checkList:[],device_id:"",d_idlist:[],dataloading:!1,timeloading:!1,d_idtf:!0,length:6,pageloading:!1}},computed:{options:function(){return{chart:{zoomType:"x"},title:{text:"",align:"left"},subtitle:{text:""},xAxis:{crosshair:!0,type:"datetime",dateTimeLabelFormats:{millisecond:"%H:%M:%S",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"}},yAxis:{title:{text:""}},legend:{align:"center",verticalAlign:"top"},plotOptions:{series:{label:{connectorAllowed:!1},pointStart:2010}},series:this.ChartData,colors:["#00e29d","#6cbbff","#ff3f3f"],credits:{enabled:!1},tooltip:{shared:!0,headerFormat:"<b>{point.x:%Y-%m-%e %H:%M:%S}</b><br>"},responsive:{rules:[{condition:{maxWidth:500},chartOptions:{legend:{layout:"horizontal",align:"center",verticalAlign:"bottom"}}}]}}}},watch:{},methods:{tabs:function(e){0==e?(this.amend=0,this.getwormtime(),this.getallwormlist(),this.getImagesource(),this.getworminfotable()):1==e&&(this.amend=1,this.getwormtime(),this.getallwormlist(),this.getImagesource(),this.getworminfotable())},goBackPage:function(){this.$router.go(-1)},refreshData:function(){z.a.setOptions({lang:{resetZoom:"刷新",resetZoomTitle:"重置缩放比例"}})},leapyear:function(e){var t=(new Date).getMonth(),a=(new Date).getDate(),i=new Date((new Date).setMonth(t-1)),n=i.getMonth(),l=i.getDate();this.slidermax="",this.slidermax=e%400!=0&&e%4!=0||e%100==0?365:366,366==this.slidermax?this.marks={0:"1月1日",31:"1月31日",60:"2月29日",91:"3月31日",121:"4月30日",152:"5月31日",182:"6月30日",213:"7月31日",244:"8月31日",274:"9月30日",305:"10月31日",335:"11月30日",366:"12月31日"}:365==this.slidermax&&(this.marks={0:"1月1日",31:"1月31日",59:"2月28日",90:"3月31日",120:"4月30日",151:"5月31日",181:"6月30日",212:"7月31日",243:"8月31日",273:"9月30日",304:"10月31日",334:"11月30日",365:"12月31日"}),this.slidervalue=0==t?[0,this.getsliserindex(t,a)]:[this.getsliserindex(n,l),this.getsliserindex(t,a)];var s=this.formatTooltip(this.slidervalue[0]),r=this.formatTooltip(this.slidervalue[1]);s=(s=s.replace("月","-")).replace("日",""),s=this.yservalue+"-"+s+" 00:00:00",r=(r=r.replace("月","-")).replace("日",""),r=this.yservalue+"-"+r+" 23:59:59",this.start_time=+new Date(s)/1e3,this.end_time=+new Date(r)/1e3,this.start_time,this.end_time,this.getallwormlist(),this.search()},formatTooltip:function(e){for(var t in this.marks){if(e<t){var a=t-e,i=this.marks[t].indexOf("月"),n=this.marks[t].indexOf("日"),l=this.marks[t].slice(i+1,n);return this.marks[t].slice(0,i+1)+(l-a+1)+"日"}if(365==e||366==e)return"12月31日"}},getsliserindex:function(e,t){var a=[];for(var i in this.marks)a.push(i);return 0==e?Number(t)-1:Number(a[e])+Number(t)-1},yearchange:function(e){this.leapyear(e),this.getwormtime()},sliderchange:function(e){this.dataloading=!0,this.total=10,this.currentPage=1,this.sliderchange2(e)},sliderchange2:Object(O.Debounce)(function(e){var t=this.formatTooltip(e[0]),a=this.formatTooltip(e[1]);t=(t=t.replace("月","-")).replace("日",""),t=this.yservalue+"-"+t+" 00:00:00",a=(a=a.replace("月","-")).replace("日",""),a=this.yservalue+"-"+a+" 23:59:59",this.start_time=+new Date(t)/1e3,this.end_time=+new Date(a)/1e3,this.start_time,this.end_time,this.getallwormlist(),this.search()},2e3),setpie:function(e){var t={tooltip:{trigger:"item"},legend:{bottom:"5%",right:"0%",orient:"vertical",type:"scroll",formatter:function(e){return e?e.length>7?e=e.slice(0,5)+"...":e:""}},series:[{name:"害虫占比",type:"pie",radius:["50%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},center:["40%","50%"],emphasis:{label:{show:!0,fontSize:"16",fontWeight:"bold"}},tooltip:{trigger:"item",formatter:"{b}<br/>数量:{c}头<br/>占比:{d}%"},labelLine:{show:!1},data:e}]};A.a.init(document.getElementById("wormpie")).setOption(t)},sethuan:function(e){var t=[],a=[],i=[];for(var n in e)i.push(e[n]),a.push(n);for(var l=0,s=0;s<i.length;s++)l+=i[s];for(var r=0;r<i.length;r++)t.push(Math.ceil(i[r]/l*100));t=t.reverse();var o=["#1089E7","#F57474","#56D0E3","#F8B448","#8B78F6"],u={title:{show:!1},backgroundColor:"#fff",xAxis:{show:!1},grid:{left:"2%",right:"4%",bottom:"2%",top:"2%",containLabel:!0},yAxis:[{show:!0,data:a=a.reverse(),inverse:!0,axisLine:{show:!1},splitLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#000",rich:{lg:{backgroundColor:"#339911",color:"#000",padding:5,align:"center",width:15,height:15}}}},{show:!0,inverse:!0,data:i=i.reverse(),axisLabel:{textStyle:{fontSize:12,color:"#000"}},axisLine:{show:!1},splitLine:{show:!1},axisTick:{show:!1}}],series:[{name:"害虫排名",type:"bar",yAxisIndex:1,data:t,barWidth:10,itemStyle:{normal:{barBorderRadius:30,color:function(e){var t=o.length;return o[e.dataIndex%t]}}},label:{normal:{show:!1,position:"inside",formatter:"{c}%"}}}]},c=document.getElementById("wromhuan");a.length<16?c.style.height="100%":c.style.height=17*a.length+"px",A.a.init(document.getElementById("wromhuan")).setOption(u)},getwormtime:function(){var e=this;this.timeloading=!0,this.$axios({method:"post",url:"/api/api_gateway?method=forecast.worm_lamp.pest_raise_info",data:this.qs.stringify({d_ids:this.d_id,identify_model:this.identify_model,year:this.yservalue,amend:this.amend})}).then(function(t){if(""==t.data.message){if(t.data.data){e.timeloading=!1,t.data.data,e.worminfo={endTime:"",highNum:"",highTime:"",startTime:""};var a=t.data.data.pest_list;for(var i in e.worminfolist=t.data.data.pest_info,e.wormlist=[],a){var n={value:a[i],label:a[i]};e.wormlist.push(n)}for(var i in e.wormlist[0]?e.wormvalue=e.wormlist[0].label:e.wormvalue="",e.worminfolist)e.wormvalue==i&&(e.worminfo=e.worminfolist[i])}}else 0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})},wormchange:function(e){for(var t in this.worminfolist)this.wormvalue==t&&(this.worminfo=this.worminfolist[t])},getallwormlist:function(){var e=this;this.dataloading=!0,this.$axios({method:"post",url:"/api/api_gateway?method=forecast.worm_lamp.pest_statistics_char_new",data:this.qs.stringify({d_ids:this.d_id,identify_model:this.identify_model,start_time:this.start_time,end_time:this.end_time,amend:this.amend})}).then(function(t){if(""==t.data.message){if(t.data.data){e.dataloading=!1,t.data.data;var a=t.data.data.char_data,i=t.data.data.pest_total;if(e.ChartData=[],t.data.data.at_ah_info){var n=t.data.data.at_ah_info;if(0!=n.length){for(var l=[],s=[],r=0;r<n.length;r++)l.push([1e3*n[r].addtime+288e5,n[r].at]),s.push([1e3*n[r].addtime+288e5,n[r].ah]);e.ChartData=[{name:"温度",data:l},{name:"湿度",data:s}]}}for(var o in a){var u={name:o,data:[]};for(l=[],r=0;r<a[o].length;r++)l.push([1e3*a[o][r].addtime+288e5,a[o][r].sum]);u.data=l,e.ChartData.push(u)}for(r=0;r<e.ChartData.length;r++)e.ChartData[r].visible=2==r||3==r||4==r||5==r||6==r;var c=[],d=0;for(var o in i){d++;u={name:o,value:i[o]};c.push(u)}e.length=d,0==e.ChartData.length?e.hightf=!0:e.hightf=!1,0==c.length?e.pietf=!0:e.pietf=!1,e.zhutf=e.checkObj(i),e.setpie(c),e.sethuan(i)}}else 0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})},acttab:function(e){this.acttableindex=e,this.search()},inputsearch:Object(O.Debounce)(function(e){this.search()},2e3),search:function(){this.page=1,this.total=10,this.pagekey=10*Math.random()+1,this.currentPage=1,1==this.acttableindex?this.getImagesource():2==this.acttableindex&&this.getworminfotable()},getImagesource:function(){var e=this;this.pageloading=!1,this.$axios({method:"post",url:"/api/api_gateway?method=forecast.worm_lamp.pest_image_source",data:this.qs.stringify({d_ids:this.d_id,identify_model:this.identify_model,pest_name:this.tableinput,start_time:this.start_time,end_time:this.end_time,page:this.page,amend:this.amend,page_size:this.page_size})}).then(function(t){e.pageloading=!0,""==t.data.message?t.data.data&&(t.data.data.pest_image_data,e.Imagesourcelist=t.data.data.pest_image_data,e.total=t.data.data.total_count):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})},opendia:function(e){this.dialogVisible=!0,this.img_url=e.img_url,this.indentify_photo=e.indentify_photo,this.tabworm=e.pest_dict,this.tabworm},getworminfotable:function(){var e=this;this.pageloading=!1,this.$axios({method:"post",url:"/api/api_gateway?method=forecast.worm_lamp.pest_base_data",data:this.qs.stringify({d_ids:this.d_id,identify_model:this.identify_model,pest_name:this.tableinput,start_time:this.start_time,end_time:this.end_time,page:this.page,amend:this.amend,page_size:this.page_size})}).then(function(t){e.pageloading=!0,""==t.data.message?t.data.data&&(t.data.data.pest_image_data,e.worminfotable=t.data.data.pest_image_data,e.total=t.data.data.total_count):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})},currentchange:function(e){this.page=e,1==this.acttableindex?this.getImagesource():2==this.acttableindex&&this.getworminfotable()},handleSizeChange:function(e){this.page=1,this.pagekey=10*Math.random()+1,this.page_size=e,1==this.acttableindex?this.getImagesource():2==this.acttableindex&&this.getworminfotable()},derive:function(){var e=sessionStorage.getItem("myuid");1==this.acttableindex?window.location.href=this.$http+"/api/pest_image_source_export?d_ids="+this.d_id+"&filename=害虫图像溯源&identify_model="+this.identify_model+"&start_time="+this.start_time+"&end_time="+this.end_time+"&uid="+e+"&amend="+this.amend:2==this.acttableindex&&(window.location.href=this.$http+"/api/pest_base_data_export?d_ids="+this.d_id+"&filename=害虫基础数据&identify_model="+this.identify_model+"&start_time="+this.start_time+"&end_time="+this.end_time+"&uid="+e+"&amend="+this.amend)},checkObj:function(e){for(var t in e)return!1;return!0},getbaselist:function(){var e=this;this.$axios({method:"post",url:"/api/api_gateway?method=forecast.worm_lamp.lamp_list",data:this.qs.stringify({device_type_id:3,page_size:99999999,page:1})}).then(function(t){if(""==t.data.message){if(t.data.data){t.data.data.data,e.basedata=t.data.data.data;for(var a=0;a<5;a++)e.basedata[a]&&(e.checkList.push(e.basedata[a].imei),e.d_idlist.push(e.basedata[a].d_id));e.d_id=e.d_idlist.join(","),e.d_id,e.getwormtime(),e.leapyear(e.yservalue)}}else 0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})},basebtn:function(){this.checkList,this.d_idlist=[];for(var e=0;e<this.basedata.length;e++)for(var t=0;t<this.checkList.length;t++)this.basedata[e].imei==this.checkList[t]&&this.d_idlist.push(this.basedata[e].d_id);this.d_idlist,this.d_id=this.d_idlist.join(","),this.getwormtime(),this.leapyear(this.yservalue),this.basedialogVisible=!1},tosuggest:function(){this.$router.push("/index/suggest?type=3")}},beforeCreate:function(){},created:function(){this.identify_model=this.$route.query.identify_model,this.$route.query.d_id?(this.d_id=this.$route.query.d_id,this.d_idtf=!1):this.d_id="",this.$route;for(var e=(new Date).getFullYear()-2019,t=0;t<e+1;t++){var a={value:2019+t,label:2019+t};this.yesroptions.push(a)}this.yservalue=this.yesroptions[this.yesroptions.length-1].label,""==this.d_id?this.getbaselist():(this.getwormtime(),this.leapyear(this.yservalue))},beforeMount:function(){},mounted:function(){this.refreshData()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},U={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{cursor:"default"}},[i("div",{staticClass:"baselistbox_top"},[i("div",{staticClass:"baselistbox_top_title",staticStyle:{cursor:"pointer"}},[i("p",{staticStyle:{cursor:"pointer"},on:{click:e.goBackPage}},[i("i",{staticClass:"el-icon-back"}),e._v(" "),i("span",[e._v("返回")])]),e._v(" "),i("p",[e._v("虫情分析")])]),e._v(" "),i("p",{staticClass:"baselistbox_top_line"}),e._v(" "),i("div",{staticClass:"baselistbox_top_caozuo"},[i("div",{staticClass:"analytitlebox"},[i("div",{staticClass:"btnbox"},[i("el-button",{class:0==e.amend?"":"nobackgound",attrs:{type:"success",size:"small"},on:{click:function(t){return e.tabs(0)}}},[e._v("机器识别")]),e._v(" "),i("el-button",{class:1==e.amend?"":"nobackgound",attrs:{type:"success",size:"small"},on:{click:function(t){return e.tabs(1)}}},[e._v("人工识别")]),e._v(" "),i("div",{staticClass:"timebtn timebtn3",on:{click:e.tosuggest}},[e._v("专家建议")])],1),e._v(" "),i("div",{staticClass:"analytitlebox_item"},[i("el-select",{attrs:{placeholder:"请选择",size:"small"},on:{change:e.yearchange},model:{value:e.yservalue,callback:function(t){e.yservalue=t},expression:"yservalue"}},e._l(e.yesroptions,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),i("el-slider",{attrs:{range:"",max:e.slidermax,marks:e.marks,"format-tooltip":e.formatTooltip},on:{change:e.sliderchange},model:{value:e.slidervalue,callback:function(t){e.slidervalue=t},expression:"slidervalue"}})],1)])])]),e._v(" "),i("div",{staticClass:"analyinfo1"},[i("div",{staticClass:"analyinfo1_text"},[i("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.timeloading,expression:"timeloading"}],staticClass:"box-card"},[i("p",[e._v("虫情走势信息")]),e._v(" "),i("el-select",{attrs:{placeholder:"请选择",size:"small"},on:{change:e.wormchange},model:{value:e.wormvalue,callback:function(t){e.wormvalue=t},expression:"wormvalue"}},e._l(e.wormlist,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),i("div",{staticClass:"analyinfo1_text_item"},[i("div",{staticClass:"text_item"},[i("img",{attrs:{src:a("XOyF"),alt:""}}),e._v(" "),i("div",[i("p",[e._v("始见期(See times)")]),e._v(" "),i("p",[e._v(e._s(e.worminfo.startTime))])])]),e._v(" "),i("div",{staticClass:"text_item"},[i("img",{attrs:{src:a("EgXw"),alt:""}}),e._v(" "),i("div",[i("p",[e._v("高峰期(Fastigium)")]),e._v(" "),i("p",[e._v(e._s(e.worminfo.highTime)+"/"+e._s(e.worminfo.highNum)+"头")])])]),e._v(" "),i("div",{staticClass:"text_item"},[i("img",{attrs:{src:a("7PYG"),alt:""}}),e._v(" "),i("div",[i("p",[e._v("终见期(End in period)")]),e._v(" "),i("p",[e._v(e._s(e.worminfo.endTime))])])])])],1)],1),e._v(" "),i("div",{staticClass:"analyinfo1_pie"},[i("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.dataloading,expression:"dataloading"}],staticClass:"box-card"},[i("p",[e._v("害虫占比")]),e._v(" "),i("div",{attrs:{id:"wormpie"}}),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.pietf,expression:"pietf"}],staticClass:"tishi"},[e._v("暂无数据")])])],1)]),e._v(" "),i("div",{staticClass:"analyinfo2"},[i("div",{staticClass:"analyinfo2_line"},[i("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.dataloading,expression:"dataloading"}],staticClass:"box-card"},[i("p",[e._v("虫情趋势")]),e._v(" "),i("highcharts",{staticClass:"highcharts",attrs:{options:e.options}}),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.hightf,expression:"hightf"}],staticClass:"tishi"},[e._v("暂无数据")])],1)],1),e._v(" "),i("div",{staticClass:"analyinfo2_zhu"},[i("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.dataloading,expression:"dataloading"}],staticClass:"box-card"},[i("p",[e._v("害虫排名")]),e._v(" "),i("div",{staticClass:"wromhuanbox"},[i("div",{attrs:{id:"wromhuan"}})]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.zhutf,expression:"zhutf"}],staticClass:"tishi"},[e._v("暂无数据")])])],1)]),e._v(" "),i("div",{staticClass:"acttable"},[i("div",{class:1==e.acttableindex?"act":"",on:{click:function(t){return e.acttab(1)}}},[e._v("\n 图像溯源\n ")]),e._v(" "),i("div",{class:2==e.acttableindex?"act":"",on:{click:function(t){return e.acttab(2)}}},[e._v("\n 虫害基础数据\n ")])]),e._v(" "),i("div",{staticClass:"tablebox"},[i("div",{staticClass:"tableoperationbox"},[i("el-input",{attrs:{placeholder:"请输入害虫名称",size:"mini"},on:{input:e.inputsearch},model:{value:e.tableinput,callback:function(t){e.tableinput=t},expression:"tableinput"}}),e._v(" "),i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.derive()}}},[e._v("导出")])],1),e._v(" "),i("el-table",{directives:[{name:"show",rawName:"v-show",value:1==e.acttableindex,expression:"acttableindex == 1"}],staticStyle:{width:"100%"},attrs:{data:e.Imagesourcelist,border:""}},[i("el-table-column",{attrs:{prop:"deviceId",label:"设备ID"}}),e._v(" "),i("el-table-column",{attrs:{prop:"deviceName",label:"设备名称",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"pestName",label:"害虫名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("p",{staticClass:"cell",attrs:{title:t.row.pestName}},[e._v("\n "+e._s(t.row.pestName)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:"上报时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTime")(1e3*t.row.addtime))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"location",label:"设备位置"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("p",{staticClass:"cell",attrs:{title:t.row.location}},[e._v("\n "+e._s(t.row.location)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"index",label:"图像"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("p",{staticStyle:{color:"#14a478",cursor:"pointer"},on:{click:function(a){return e.opendia(t.row)}}},[e._v("\n 查看\n ")])]}}])})],1),e._v(" "),i("el-table",{directives:[{name:"show",rawName:"v-show",value:2==e.acttableindex,expression:"acttableindex == 2"}],staticStyle:{width:"100%"},attrs:{data:e.worminfotable,border:""}},[i("el-table-column",{attrs:{prop:"pest_name",label:"害虫名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"pest_num",label:"害虫数量"}}),e._v(" "),i("el-table-column",{attrs:{prop:"addtime",label:"上报时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTime")(1e3*t.row.addtime))+"\n ")]}}])})],1),e._v(" "),i("div",{staticClass:"pagination"},[i("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.total,"page-sizes":[10,20,30,50],"page-size":e.page_size,"current-size":e.page},on:{"size-change":e.handleSizeChange,"current-change":e.currentchange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}})],1)],1),e._v(" "),i("el-dialog",{attrs:{title:"图像溯源",visible:e.dialogVisible,width:"960px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("div",{staticClass:"diaimgbox"},[i("img",{directives:[{name:"viewer",rawName:"v-viewer"}],attrs:{src:e.img_url,alt:""}}),e._v(" "),i("img",{directives:[{name:"viewer",rawName:"v-viewer"}],attrs:{src:e.indentify_photo,alt:""}})]),e._v(" "),e.checkObj(e.tabworm)?e._e():i("div",{staticClass:"wormlistbox"},e._l(e.tabworm,function(t,a){return i("p",{key:a},[e._v("\n "+e._s(a)+" -- "+e._s(t)+"头\n ")])}),0)])],1)},staticRenderFns:[]};var W=a("VU/8")(F,U,!1,function(e){a("ABpy")},"data-v-80a388b4",null).exports,V=a("9B12"),j={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"photosbox"},[i("div",{staticClass:"baselistbox_top"},[i("div",{staticClass:"baselistbox_top_title"},[i("p",{staticStyle:{cursor:"pointer"},on:{click:e.backtrack}},[i("i",{staticClass:"el-icon-back"}),e._v(" "),i("span",[e._v("返回")])]),e._v(" "),i("p",[e._v("查看图片")])]),e._v(" "),i("p",{staticClass:"baselistbox_top_line"}),e._v(" "),i("div",{staticClass:"baselistbox_top_caozuo"},[i("div",{staticClass:"capzuo_left"},[i("span",[e._v("设备ID:"+e._s(e.id))]),e._v(" "),i("span",[e._v("设备名称:"+e._s(e.equipStatusObj.name||"无"))]),e._v(" "),i("span",[e._v("位置:"+e._s(e.equipStatusObj.addr||"暂无地址"))])]),e._v(" "),i("div",{staticClass:"capzuo_right"},[i("div",{staticClass:"capzuo_right_left"},[i("div",[e.delBtnState?i("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.equipStatusCheck("2")}}},[e._v("批量删除")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.equipStatusCheck("7")}}},[e._v("图片下载")]),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.equipStatusCheck("6")}}},[e._v("短信预警")]),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.equipStatusCheck("0")}}},[e._v("拍照")]),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.equipStatusCheck("1")}}},[e._v("刷新")])],1),e._v(" "),i("div",{staticClass:"modulebox"},[e.downTab?[i("el-checkbox-button",{attrs:{size:"mini",indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.equipStatusCheck("8")}}},[e._v("下载")]),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.equipStatusCheck("9")}}},[e._v("取消")])]:e._e(),e._v(" "),e.deleTab?[i("el-checkbox-button",{attrs:{size:"mini",indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.equipStatusCheck("3")}}},[e._v("删除")]),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.equipStatusCheck("4")}}},[e._v("取消")])]:e._e()],2)]),e._v(" "),i("div",{staticClass:"capzuo_right_right"},[i("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",size:"mini"},on:{change:e.dateChange},model:{value:e.timearr,callback:function(t){e.timearr=t},expression:"timearr"}})],1)])])]),e._v(" "),i("div",{staticClass:"baselistbox_img"},[i("div",{staticClass:"baselistbox_imgbox"},[i("div",{staticClass:"listimgbox"},[e.imgListShow?i("div",{staticStyle:{margin:"0 0 0 -12px"}},[i("div",{},[i("el-row",e._l(e.imgDataList,function(t,a){return i("el-col",{key:a,attrs:{span:6}},[i("div",{staticClass:"imgListData",staticStyle:{height:"245px",margin:"0 0 10px 10px","text-align":"center",background:"#fff","border-radius":"5px",position:"relative",padding:"25px",border:"1px solid #eee"}},[i("div",{staticClass:"photoInfo"},[[1==e.userType?i("div",[i("i",{directives:[{name:"show",rawName:"v-show",value:e.delBtnState&&e.downBtnState,expression:"delBtnState && downBtnState"}],staticClass:"iconfont icon-shanchu",on:{click:function(a){return e.delectImg(t.ids)}}})]):e._e(),e._v(" "),i("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:!e.downTab&&e.deleTab||!e.deleTab&&e.downTab,expression:"\n (!downTab && deleTab) || (!deleTab && downTab)\n "}],staticStyle:{width:"100%",height:"183px"},attrs:{value:-1!=e.idList.indexOf(t.ids)},on:{change:function(a){return e.stopDefault(a,t)}}})]],2),e._v(" "),i("div",{staticStyle:{height:"200px","line-height":"200px"}},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.addr+"?"+e.imgTime,expression:"item.addr + '?' + imgTime"}],staticStyle:{width:"96%",height:"96%",margin:"4px 0 0 0"},attrs:{alt:"原图"},on:{click:function(i){return e.amplificationA(t,a)}}})]),e._v(" "),i("ul",{staticClass:"result_ul",staticStyle:{height:"45px"}},[i("li",{staticClass:"result_list"},[i("div",{staticClass:"result_listBox"},[i("div",{staticClass:"result_listBox_circle"},[e._v("\n 时间:"+e._s(e._f("formatTime")(1e3*t.addtime))+"\n ")]),e._v(" "),i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[(1==e.userType||1==e.disableVal)&&"0"==e.equipStatusObj.disable||1!==e.userType&&"0"!==e.equipStatusObj.disable?i("div",{staticClass:"result_listBox_sum"},[e._v("\n 害虫总数:\n "),i("span",[e._v(e._s(t.num))]),e._v("\n 头\n ")]):e._e(),e._v(" "),i("div",{staticClass:"result_listBox_btn"},[i("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(i){return e.pictureDetailsFun(t,a)}}},[e._v("查看详情\n ")])],1)])])])])])])}),1)],1)]):i("div",{staticClass:"expertDiagnosis_referral_units_not"},[i("img",{staticClass:"expertDiagnosis_referral_units_notImg",attrs:{src:a("sime"),alt:""}})])]),e._v(" "),i("div",{staticClass:"listtree"},[i("el-tree",{staticStyle:{"max-height":"700px",overflow:"auto"},attrs:{data:e.dataA,accordion:"",props:e.defaultProps,load:e.loadNode,lazy:"","highlight-current":!0},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,n=t.data;return i("span",{staticClass:"custom-tree-node"},[i("span",[i("i",{class:[e.renderIconContent(a,n),"treeicon"]}),e._v(e._s(n.label)+"\n ")])])}}])})],1)]),e._v(" "),i("div",{staticClass:"pagination"},[e.imgListShow?i("el-pagination",{attrs:{background:"",layout:"prev, pager, next,jumper",total:e.totalNum,"page-size":12},on:{"current-change":e.changePage}}):e._e()],1)]),e._v(" "),i("viewer",{directives:[{name:"show",rawName:"v-show",value:e.imageListtData,expression:"imageListtData"}],ref:"viewer",attrs:{images:e.recognitionImage,index:3},on:{inited:e.inited}},e._l(e.recognitionImage,function(e,t){return i("img",{key:t,staticClass:"image",staticStyle:{width:"100px",height:"auto"},attrs:{src:e,id:"ceshiID"}})}),0),e._v(" "),i("div",{attrs:{id:"reseau"}}),e._v(" "),i("el-dialog",{attrs:{title:"识别结果",visible:e.discernVisible,width:"30%",fullscreen:e.enlargement},on:{"update:visible":function(t){e.discernVisible=t}}},[e.notAvailableShow?i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticStyle:{position:"relative",left:"0",top:"0"}},[e.enlargementImg?i("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:this.recognitionImage,alt:""},on:{click:function(t){return e.amplification()}}}):i("img",{staticClass:"enlargementImg",attrs:{src:this.recognitionImage,alt:""},on:{click:function(t){return e.amplification()}}}),e._v(" "),i("img",{directives:[{name:"show",rawName:"v-show",value:e.griddingShow,expression:"griddingShow"}],staticClass:"enlargementImgA",attrs:{src:e.griddingImgs[2].img,alt:""}})])]):i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("img",{staticStyle:{width:"25%",margin:"0 0 0 180px"},attrs:{src:a("g+o3"),alt:""}})]),e._v(" "),i("div",{staticStyle:{display:"flex"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.griddingShow,expression:"griddingShow"}],staticStyle:{color:"red","font-weight":"330",float:"left",position:"absolute",left:"2.5rem",bottom:"0.65rem"}},[e._v("\n *注:每个网格大小为20*20mm\n ")]),e._v(" "),e.notAvailableShow?i("el-button",{staticStyle:{margin:"0 0 0 85%"},attrs:{size:"small",type:"warning"},on:{click:function(t){return e.again()}}},[e._v("重新识别")]):i("div",{staticStyle:{"font-size":"20px",margin:"25px auto",color:"#838383"}},[i("span",[e._v("昆虫识别失败,请"),i("span",{staticStyle:{color:"#17bb89",cursor:"pointer"},on:{click:function(t){return e.again()}}},[e._v("重新识别")])])]),e._v(" "),i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.btnShow,expression:"btnShow"}],staticStyle:{margin:"0 0 0 -11%"},attrs:{size:"small",type:"success",id:"btnAssist"},on:{click:function(t){return e.assist()}}},[e._v(e._s(e.griddingTxt))])],1),e._v(" "),i("div",e._l(this.recognitionData,function(t,a){return i("div",{key:a,class:0==e.enlargementImg?"enlargementDiv":"discernResult"},[i("div",{staticClass:"name"},[i("i",{staticClass:"icon-zhuti_tiaosepan_o iconfont"}),e._v("\n 害虫名称\n "),i("span",[e._v(e._s(t.result_list)+"(序号:"+e._s(t.number)+")")])]),e._v(" "),i("div",{staticClass:"number"},[e._v("\n 害虫个数:\n "),i("span",[e._v(e._s(t.nums))])])])}),0)]),e._v(" "),i("el-dialog",{attrs:{title:this.tltName,visible:e.handAddVisible,width:"580px"},on:{"update:visible":function(t){e.handAddVisible=t}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.handAddState,expression:"handAddState == 1"}],staticClass:"handAddBtn"},[i("i",{staticClass:"iconfont el-icon-circle-plus-outline",on:{click:function(t){e.handAddState=2}}}),e._v(" "),i("i",{staticClass:"iconfont el-icon-remove-outline",on:{click:function(t){e.handAddState=3}}})]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.handAddState,expression:"handAddState == 1"}],staticClass:"handAddForm"},[i("el-form",{ref:"ruleForm",attrs:{model:e.form,"label-width":"80px"}},[i("el-form-item",{attrs:{label:"害虫名称",required:""}},[i("el-select",{attrs:{placeholder:"请选择害虫名称"},model:{value:e.form.pest_name,callback:function(t){e.$set(e.form,"pest_name",t)},expression:"form.pest_name"}},e._l(this.reInsectList,function(e,t){return i("el-option",{key:t,attrs:{label:e.pest_name,value:e.pest_name}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"害虫数量",required:""}},[i("el-input",{attrs:{type:"number",min:"0"},model:{value:e.form.pest_num,callback:function(t){e.$set(e.form,"pest_num",t)},expression:"form.pest_num"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"作物种类"}},[i("el-input",{model:{value:e.form.crop_name,callback:function(t){e.$set(e.form,"crop_name",t)},expression:"form.crop_name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"虫害阶段"}},[i("el-input",{model:{value:e.form.pest_case,callback:function(t){e.$set(e.form,"pest_case",t)},expression:"form.pest_case"}})],1)],1)],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:2==e.handAddState,expression:"handAddState == 2"}]},[i("el-page-header",{attrs:{content:""},on:{back:function(t){e.handAddState=1,e.getBack()}}}),e._v(" "),i("div",{staticClass:"handAddWormName"},[i("label",[e._v("害虫名称:")]),e._v(" "),i("el-input",{attrs:{placeholder:"请输入新增的害虫名称",clearable:""},model:{value:e.selectItem,callback:function(t){e.selectItem=t},expression:"selectItem"}})],1)],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==e.handAddState,expression:"handAddState == 3"}]},[i("el-page-header",{attrs:{content:""},on:{back:function(t){e.handAddState=1}}}),e._v(" "),i("div",{staticClass:"handDelWormName"},[i("el-checkbox-group",{model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(this.reInsectList,function(e,t){return i("el-checkbox",{key:t,attrs:{label:e.pest_name}})}),1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.handAddState,expression:"handAddState == 1"}]},[i("el-button",{attrs:{size:"mini"},on:{click:function(t){e.handAddVisible=!1,e.resetField("ruleForm")}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.onSubmit}},[e._v("确 定")])],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:2==e.handAddState,expression:"handAddState == 2"}]},[i("el-button",{attrs:{size:"mini"},on:{click:function(t){e.handAddVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.addInsectName()}}},[e._v("确 定")])],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==e.handAddState,expression:"handAddState == 3"}]},[i("el-button",{attrs:{size:"mini"},on:{click:function(t){e.handAddVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.delInsect()}}},[e._v("确 定")])],1)])]),e._v(" "),i("el-dialog",{attrs:{title:"手动统计",visible:e.handAddDataVisible,width:"770px"},on:{"update:visible":function(t){e.handAddDataVisible=t}}},[i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.threshold,stripe:""},on:{"row-click":e.handleEdit}},[i("el-table-column",{attrs:{prop:"pest_name",label:"害虫名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"pest_num",label:"数量"}}),e._v(" "),i("el-table-column",{attrs:{prop:"crop_name",label:"作物种类"}}),e._v(" "),i("el-table-column",{attrs:{prop:"pest_case",label:"虫害阶段"}}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",icon:"el-icon-edit",size:"mini"},on:{click:function(t){return e.showThresholdEditDialog()}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-delete",size:"mini"},on:{click:function(a){return e.showThresholdEditDel(t.row)}}})]}}])},[e._v("\n T\n ")])],1)],1)],1)},staticRenderFns:[]};var H=function(e){a("wF6d")},K=a("VU/8")(V.a,j,!1,H,"data-v-2c461170",null).exports,Y=a("cYmm"),Q={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"wrap",attrs:{id:"app"}},[i("div",{staticClass:"left",style:"width:"+e.imgWidth+"px"},[e.isShibie?i("img",{staticClass:"img1",style:"height:"+e.imgHeight+"px;width:"+e.imgWidth+"px",attrs:{src:e.img2}}):i("img",{staticClass:"img",style:"height:"+e.imgHeight+"px;width:"+e.imgWidth+"px",attrs:{src:e.img}}),e._v(" "),i("canvas",{ref:"myCanvas",attrs:{id:"myCanvas"},on:{click:e.findRect,mousedown:e.mousedown,mouseup:e.mouseup,mousemove:e.mousemove}})]),e._v(" "),i("div",{staticClass:"right",style:"left:"+e.imgWidth+"px;"},[i("i",{staticClass:"el-icon-close close",staticStyle:{"font-size":"24px",color:"#777",cursor:"pointer"},on:{click:e.goBackPage}}),e._v(" "),i("div",{staticClass:"tabs",staticStyle:{position:"absolute",top:"50px"}},[i("el-radio-group",{attrs:{size:"small"},on:{change:e.changeShowType},model:{value:e.showType,callback:function(t){e.showType=t},expression:"showType"}},[i("el-radio-button",{attrs:{label:1}},[e._v("机器识别")]),e._v(" "),i("el-radio-button",{attrs:{label:2}},[e._v("人工修正")])],1),e._v(" "),i("div",{staticClass:"shugang"})],1),e._v(" "),1==e.showType?i("div",[i("p",{staticClass:"title"},[e._v("基础操作")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.resetShiBie}},[e._v("重新识别")])],1):e._e(),e._v(" "),2==e.showType?i("div",[i("p",{staticClass:"title",staticStyle:{display:"flex","align-items":"center"}},[i("span",[e._v("害虫名称")]),e._v(" "),i("el-tooltip",{staticClass:"item",staticStyle:{"margin-left":"4px",color:"#646464"},attrs:{effect:"dark",content:"自定义识别备注信息(例:XX虫)",placement:"right-end"}},[i("i",{staticClass:"el-icon-question"})])],1),e._v(" "),i("div",{staticClass:"inputText"},[i("el-input",{staticClass:"btn",attrs:{type:"text",size:"mini",placeholder:"点击左侧框内再输入标注信息"},on:{input:function(t){e.aaa=e.aaa.replace(/\s+/g,"")}},model:{value:e.aaa,callback:function(t){e.aaa="string"==typeof t?t.trim():t},expression:"aaa"}}),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.sure}},[e._v("确定")])],1)]):e._e(),e._v(" "),i("div",{staticClass:"shiBieInfo"},[i("p",{staticClass:"title"},[e._v("识别信息:")]),e._v(" "),e.showLabelList.length?e._l(e.showLabelList,function(t,a){return i("div",{key:a},[i("span",[e._v(e._s(t.label)+"\n "),i("span",{directives:[{name:"show",rawName:"v-show",value:t.No,expression:"v.No"}],staticStyle:{color:"red"}},[e._v("("+e._s(t.No)+")")])]),i("span",[e._v(e._s(t.value)+"个")])])}):i("div",[i("img",{staticStyle:{height:"196px",margin:"0 auto"},attrs:{src:a("sime"),alt:""}})])],2),e._v(" "),i("div",{staticClass:"sub"},[2==e.showType?i("el-button",{staticClass:"pagebtn",attrs:{size:"mini"},on:{click:e.qingkong}},[e._v("重置")]):e._e(),e._v(" "),2==e.showType?i("el-button",{attrs:{disabled:e.isDisabled,size:"mini"},on:{click:e.sub}},[e._v("提交")]):e._e()],1),e._v(" "),i("div",{staticStyle:{margin:"100px auto 0",display:"flex","justify-content":"space-around"}},[i("el-button",{staticClass:"pagebtn",staticStyle:{"margin-left":"0"},attrs:{size:"mini",disabled:0===e.imgIdsIndex},on:{click:function(t){return e.cut("上")}}},[e._v("上一页")]),e._v(" "),i("el-button",{staticClass:"pagebtn",staticStyle:{"margin-left":"0"},attrs:{size:"mini",disabled:e.imgIdsIndex===this.equipStatusObj.ids_list.length-1},on:{click:function(t){return e.cut("下")}}},[e._v("下一页")])],1)])])},staticRenderFns:[]};var G=function(e){a("a+v4"),a("uuvx"),a("vkN/")},J=a("VU/8")(Y.a,Q,!1,G,"data-v-11ef3030",null).exports,X=a("GUvg"),Z={data:function(){return{switch1:!1,input1:"",dialogVisible:!1,switch2:!1,input2:!1,cbdPest:X.a,cbdPestNum:332,planKind:[{label:"",value:"",nums:0}],switch3:!1,input3:"",switch4:!1,input5:"",dialogHtml:"",value:!0,input:"",options:[{value:"选项1",label:"1"},{value:"选项2",label:"2"}],value2:""}},computed:{reversedMessage:function(){for(var e=this.planKind,t=this.planKind.length,a=0;a<t;a++){if(!e[a].value||0==e[a].nums)return!1;if(a==t-1)return!0}}},created:function(){},mounted:function(){this.warningData()},methods:{switch1Fun:function(){this.switch1,this.switch1&&!this.input1&&(0==document.getElementsByClassName("el-message").length&&this.$message({message:"请将数据填写完整,再进行操作",type:"warning"}),this.$refs.input.focus(),this.switch1=!1)},previewFun:function(){if(this.input1){this.dialogVisible=!0;var e="尊敬的用户:您的虫情测报设备:868956044830804,于<span>2019-08-31</span>监测到害虫种类数量{'"+this.input1+"'}种,请注意防范(详情请登录<span>www.yfzhwlw.com</span>查看)";this.dialogHtml=e}else 0==document.getElementsByClassName("el-message").length&&this.$message({message:"请将数据填写完整,再进行查看",type:"warning"}),this.$refs.input.focus()},input1ChangeFun:function(){this.input1||(this.switch1=!1)},addWormKind:function(){for(var e=this.planKind,t=this.planKind.length,a=0;a<t;a++){if(!e[a].value||0==e[a].nums)return 0==document.getElementsByClassName("el-message").length&&this.$message({message:"请将数据填写完整,再进行添加",type:"warning"}),!1;a==t-1&&e.push({label:"",value:"",nums:0})}},delWormKind:function(e){this.planKind.splice(e,1)},previewFun2:function(){if(this.reversedMessage){var e="尊敬的用户:您的虫情测报设备:865650044512263,于<span>2019-08-31</span>监测到害虫{'"+this.cbdPest[this.planKind[0].value]+"'}数量{'"+this.planKind[0].nums+"'}种,请注意防范(详情请登录<span>www.yfzhwlw.com</span>查看)";this.dialogHtml=e,this.dialogVisible=!0}else 0==document.getElementsByClassName("el-message").length&&this.$message({message:"请将数据填写完整,再进行查看",type:"warning"})},switch2Fun:function(){this.reversedMessage||(0==document.getElementsByClassName("el-message").length&&this.$message({message:"请将数据填写完整,再进行操作",type:"warning"}),this.switch2=!1)},wormNumFun2:function(){this.reversedMessage||(this.switch2=!1)},switch3Fun:function(){this.switch1,this.switch3&&!this.input3&&(0==document.getElementsByClassName("el-message").length&&this.$message({message:"请将数据填写完整,再进行操作",type:"warning"}),this.$refs.input3.focus(),this.switch3=!1)},previewFun3:function(){if(this.input3){this.dialogVisible=!0;var e="尊敬的用户:您的虫情测报设备:868956044830804,于<span>2019-08-31</span>监测到害虫数量已达到{'"+this.input3+"'},请注意防范(详情请登录<span>www.yfzhwlw.com</span>查看)";this.dialogHtml=e}else 0==document.getElementsByClassName("el-message").length&&this.$message({message:"请将数据填写完整,再进行查看",type:"warning"}),this.$refs.input3.focus()},input3ChangeFun:function(){this.input3||(this.switch3=!1)},previewFun4:function(){this.dialogVisible=!0;this.dialogHtml="尊敬的用户:您的虫情测报设备:868956044830804,于<span>2019-08-31</span>监测到害虫{'暗黑鳃金龟': '5头', '二点委夜蛾': '5头', '玉米螟': '23头', '东方粘虫': '1头', '蝼蛄': '1头'}(详情请登录<span>www.yfzhwlw.com</span>查看)"},telRegular:function(){if(this.input5&&!/^1[3456789]\d{9}$/.test(this.input5))return this.$message({message:"手机号码有误,请重填",type:"warning"}),this.$refs.tel.focus(),!1},submitData:function(){var e=this,t=1==e.switch1?"on":"off",a=1==e.switch2?"on":"off",i=1==e.switch3?"on":"off",n=1==e.switch4?"on":"off";e.planKind;for(var l=[],r=[],o={},u=0;u<e.planKind.length;u++)l.push(e.planKind[u].value),r.push(e.planKind[u].nums),o["appointPestNum"+(u+1)]=e.planKind[u].nums,o["appointPestName"+(u+1)]=e.planKind[u].value;o.pestCategoryNum=e.input1,o.pestTotalNum=e.input3,o.phone=e.input5,o.appointPestName=l.join("#"),o.appointPestNum=r.join("#"),o.pestCategory=t,o.appointPest=a,o.pestTotal=i,o.pestWarn=n;var c=e.qs.stringify({device_id:e.$route.params.id,conf:s()(o)});e.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.cbd_msg_conf",data:c}).then(function(t){1==t.data.data&&""==t.data.message?e.$message({showClose:!0,message:"设置成功",type:"success",duration:1500}):e.$message({showClose:!0,message:"设置失败",type:"error",duration:1500})}).catch(function(e){})},warningData:function(){var e=this,t=e.qs.stringify({device_id:e.$route.params.id,conf:""});e.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.cbd_msg_conf",data:t}).then(function(t){if(null!==t.data.data||""!==t.data.data){var a=JSON.parse(t.data.data);e.input1=a.pestCategoryNum,e.input2=a.appointPestNum1,e.input3=a.pestTotalNum,e.input5=a.phone,e.planKind[0].nums=a.appointPestNum1,e.planKind[0].value=a.appointPestName1,e.switch1="on"==a.pestCategory,e.switch2="on"==a.appointPest,e.switch3="on"==a.pestTotal,e.switch4="on"==a.pestWarn;var i=a.appointPestName,n=a.appointPestNum,l=i.split("#"),s=n.split("#");e.planKind=[];for(var r=0;r<l.length;r++){var o={};o.value=parseInt(l[r]),o.nums=s[r],o.label="",e.planKind.push(o)}}}).catch(function(e){})},goBackPage:function(){this.$router.go(-1)}}},$={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{cursor:"default"}},[a("div",{staticClass:"baselistbox_top"},[a("div",{staticClass:"baselistbox_top_title"},[a("p",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.goBackPage()}}},[a("i",{staticClass:"el-icon-back"}),e._v(" "),a("span",[e._v("返回")])]),e._v(" "),a("p",[e._v("短信预警")])])]),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"innerBox"},[a("div",{staticClass:"category"},[e._m(0),e._v(" "),a("div",{staticClass:"wormItem"},[a("h2",[e._v("目标种类预警")]),e._v(" "),a("div",{staticClass:"previewSwitchBox"},[a("span",[e._v("害虫种类数预警")]),e._v(" "),a("el-switch",{attrs:{"active-color":"#4f71ff","inactive-color":"#dcdfe6"},on:{change:e.switch1Fun},model:{value:e.switch1,callback:function(t){e.switch1=t},expression:"switch1"}})],1),e._v(" "),a("div",{staticClass:"limitValBox"},[a("div",[a("el-input",{ref:"input",attrs:{type:"number",placeholder:"请填写害虫数量",clearable:""},on:{change:e.input1ChangeFun,blur:function(t){e.input1=e.input1.replace(/[^\d]/g,"")}},model:{value:e.input1,callback:function(t){e.input1=t},expression:"input1"}})],1),e._v(" "),e._m(1)]),e._v(" "),a("div",{staticClass:"previewBox"},[a("el-button",{attrs:{type:""!=e.input1?"success":"",round:"",size:"mini"},on:{click:e.previewFun}},[e._v("预览")])],1)])]),e._v(" "),a("div",{staticClass:"category"},[e._m(2),e._v(" "),a("div",{staticClass:"wormItem"},[a("h2",[e._v("数量预警")]),e._v(" "),a("div",{staticClass:"previewSwitchBox"},[a("span",[e._v("指定害虫数量预警")]),e._v(" "),a("el-switch",{attrs:{"active-color":"#4f71ff","inactive-color":"#dcdfe6"},on:{change:e.switch2Fun},model:{value:e.switch2,callback:function(t){e.switch2=t},expression:"switch2"}})],1),e._v(" "),a("div",{staticClass:"limitValBox"},[a("div",{staticClass:"limitWormItem"},e._l(e.planKind,function(t,i){return a("div",{key:i,staticClass:"limitWormItemBox"},[a("el-select",{attrs:{filterable:"",placeholder:"请选择害虫种类"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"item.value"}},e._l(e.cbdPestNum,function(t){return a("el-option",{key:t,attrs:{label:e.cbdPest[t],value:t}})}),1),e._v(" "),a("el-input",{attrs:{type:"number",placeholder:"请填写害虫数量",clearable:""},on:{change:e.wormNumFun2,blur:function(e){t.nums=t.nums.replace(/[^\d]/g,"")}},model:{value:t.nums,callback:function(a){e.$set(t,"nums",a)},expression:"item.nums"}}),e._v(" "),0==i?a("i",{staticClass:"el-icon-circle-plus-outline",on:{click:e.addWormKind}}):e._e(),e._v(" "),0!=i?a("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.delWormKind(i)}}}):e._e()],1)}),0),e._v(" "),e._m(3)]),e._v(" "),a("div",{staticClass:"previewBox"},[a("el-button",{attrs:{type:e.reversedMessage?"success":"",round:"",size:"mini"},on:{click:e.previewFun2}},[e._v("预览")])],1)])]),e._v(" "),a("div",{staticClass:"category"},[e._m(4),e._v(" "),a("div",{staticClass:"wormItem"},[a("h2",[e._v("数量预警")]),e._v(" "),a("div",{staticClass:"previewSwitchBox"},[a("span",[e._v("害虫数量总和预警")]),e._v(" "),a("el-switch",{attrs:{"active-color":"#4f71ff","inactive-color":"#dcdfe6"},on:{change:e.switch3Fun},model:{value:e.switch3,callback:function(t){e.switch3=t},expression:"switch3"}})],1),e._v(" "),a("div",{staticClass:"limitValBox"},[a("div",[a("el-input",{ref:"input3",attrs:{type:"number",placeholder:"请填写害虫数量",clearable:""},on:{change:e.input3ChangeFun,blur:function(t){e.input3=e.input3.replace(/[^\d]/g,"")}},model:{value:e.input3,callback:function(t){e.input3=t},expression:"input3"}})],1),e._v(" "),e._m(5)]),e._v(" "),a("div",{staticClass:"previewBox"},[a("el-button",{attrs:{type:""!=e.input3?"success":"",round:"",size:"mini"},on:{click:e.previewFun3}},[e._v("预览")])],1)])]),e._v(" "),a("div",{staticClass:"category"},[e._m(6),e._v(" "),a("div",{staticClass:"wormItem"},[a("h2",[e._v("综合预警")]),e._v(" "),a("div",{staticClass:"previewSwitchBox"},[a("span",[e._v("监测每天出现的害虫种类及数量,短信预警")]),e._v(" "),a("el-switch",{attrs:{"active-color":"#4f71ff","inactive-color":"#dcdfe6"},model:{value:e.switch4,callback:function(t){e.switch4=t},expression:"switch4"}})],1),e._v(" "),a("div",{staticClass:"previewBox"},[a("el-button",{attrs:{type:"success",round:"",size:"mini"},on:{click:e.previewFun4}},[e._v("预览")])],1)])]),e._v(" "),a("div",{staticClass:"category"},[e._m(7),e._v(" "),a("div",{staticClass:"wormItem"},[a("h2",[e._v("信息接收")]),e._v(" "),a("div",{staticClass:"limitValBox"},[a("div",{staticClass:"receptionPhone"},[a("el-input",{ref:"tel",attrs:{type:"tel",placeholder:"请填写信息接收手机号",clearable:""},on:{change:e.telRegular},model:{value:e.input5,callback:function(t){e.input5=t},expression:"input5"}})],1)])])]),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.submitData()}}},[e._v("提交")]),e._v(" "),a("el-button",{attrs:{type:"info",size:"mini"}},[e._v("重置")])],1)]),e._v(" "),a("el-dialog",{attrs:{width:"500px",top:"50px",visible:e.dialogVisible,"custom-class":"previewDialog","close-on-click-modal":!1,"show-close":!0},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"noteWarnBj"},[a("div",{ref:"txt",staticClass:"noteWarnTxt",domProps:{innerHTML:e._s(e.dialogHtml)}}),e._v(" "),a("div",{staticClass:"noteWarnTime"},[e._v("上午 8:49")])])])],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"titleNum"},[t("span",[this._v("1")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"hint"},[this._v("\n 每天害虫\n "),t("span",[this._v("种类数量")]),this._v("达到此值时,短信预警\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"titleNum"},[t("span",[this._v("2")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"hint"},[this._v("\n 每天\n "),t("span",[this._v("指定害虫数")]),this._v("达到此数量时,短信预警\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"titleNum"},[t("span",[this._v("3")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"hint"},[this._v("\n 每天害虫\n "),t("span",[this._v("种类数量")]),this._v("达到此值时,短信预警\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"titleNum"},[t("span",[this._v("4")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"titleNum"},[t("span",[this._v("5")])])}]};var ee=a("VU/8")(Z,$,!1,function(e){a("zb/+")},"data-v-344497c6",null).exports,te=a("BO1k"),ae=a.n(te),ie={data:function(){var e=this;return{num:1,btnSelected:"1",btnSelected2:"1",timeScreen:"1",queryInfo:{begin:"",end:""},timeRange:"",pickerOptions:{shortcuts:[{text:"最近半年",onClick:function(t){var a=new Date,i=new Date;i.setTime(i.getTime()-15552e6),t.$emit("pick",[i,a]),e.queryInfo.begin=i,e.queryInfo.end=a}},{text:"最近一年",onClick:function(t){var a=new Date,i=new Date;i.setTime(i.getTime()-31104e6),t.$emit("pick",[i,a]),e.queryInfo.begin=i,e.queryInfo.end=a}}]}}},mounted:function(){this.timeBtnClick(1)},methods:{timeBtnClick:function(e){var t=new Date,a=t.getTime(),i=a-864e5*((c=t.getDay())-1)+0,n=a+864e5*(7-c)+0,l=((i=new Date(i)).getFullYear(),i.getMonth()+1),s=i.getDate();l=l<10?"0"+l:l,s=s<10?"0"+s:s;(new Date).getMinutes(),(new Date).getMinutes();var r=(n=new Date(n)).getFullYear(),o=n.getMonth()+1,u=n.getDate(),c=r+"-"+(o=o<10?"0"+o:o)+"-"+(u=u<10?"0"+u:u);this.btnSelected=e,this.btnSelected2=e,this.timeRange="",1==e?(this.queryInfo.begin=parseInt((Date.now()-864e5)/1e3),this.queryInfo.end=parseInt(Date.now()/1e3)):2==e?(this.queryInfo.begin=parseInt((Date.now()-6048e5)/1e3),this.queryInfo.end=parseInt(Date.now()/1e3)):3==e?(this.queryInfo.begin=parseInt((Date.now()-2592e6)/1e3),this.queryInfo.end=parseInt(Date.now()/1e3)):4==e&&(this.queryInfo.begin=parseInt((Date.now()-7776e6)/1e3),this.queryInfo.end=parseInt(Date.now()/1e3)),this.queryInfo.begin,this.$emit("dateChange",this.queryInfo),this.$emit("btnSelected",this.btnSelected)},DateChange:function(){this.timeRange,this.btnSelected=null,this.timeRange?(this.queryInfo.begin=parseInt(new Date(this.timeRange[0]).getTime()/1e3),this.queryInfo.end=parseInt(new Date(this.timeRange[1]).getTime()/1e3)):(this.btnSelected=this.btnSelected2,1==this.btnSelected?(this.queryInfo.begin=parseInt((Date.now()-864e5)/1e3),this.queryInfo.end=parseInt(Date.now()/1e3)):2==this.btnSelected?(this.queryInfo.begin=parseInt((Date.now()-6048e5)/1e3),this.queryInfo.end=parseInt(Date.now()/1e3)):3==this.btnSelected?(this.queryInfo.begin=parseInt((Date.now()-2592e6)/1e3),this.queryInfo.end=parseInt(Date.now()/1e3)):4==this.btnSelected&&(this.queryInfo.begin=parseInt((Date.now()-7776e6)/1e3),this.queryInfo.end=parseInt(Date.now()/1e3))),this.$emit("dateChange",this.queryInfo),this.$emit("btnSelected",this.btnSelected),null==this.timeRange?this.$emit("timeScreen",null):this.$emit("timeScreen",this.timeScreen)},say:function(){this.num++,5==this.num?this.num=0:(this.num,this.timeBtnClick(this.num)),this.$emit("timeScreen",null)}}},ne={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-button",{attrs:{type:"1"==e.btnSelected?"primary":"default",size:"mini"},on:{click:function(t){return e.timeBtnClick(1)}}},[e._v("近一天")]),e._v(" "),a("el-button",{attrs:{type:"2"==e.btnSelected?"primary":"default",size:"mini"},on:{click:function(t){return e.timeBtnClick(2)}}},[e._v("近七天")]),e._v(" "),a("el-button",{attrs:{type:"3"==e.btnSelected?"primary":"default",size:"mini"},on:{click:function(t){return e.timeBtnClick(3)}}},[e._v("近一月")]),e._v(" "),a("el-button",{attrs:{type:"4"==e.btnSelected?"primary":"default",size:"mini"},on:{click:function(t){return e.timeBtnClick(4)}}},[e._v("近三月")]),e._v(" "),a("el-date-picker",{staticStyle:{cursor:"pointer",margin:"0 0 0 4px"},attrs:{size:"mini",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},on:{change:e.DateChange},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1)},staticRenderFns:[]};var le=a("VU/8")(ie,ne,!1,function(e){a("/fQO")},"data-v-98b12ac4",null).exports,se=a("8u57"),re=a.n(se),oe=a("zL8q"),ue=a("FA4r"),ce=a.n(ue);re()(z.a);var de={data:function(){var e;return e={user_tag:null,simLoading:!0,showHksimFlag:!0,simCodeVisible:!1,simFlag:!0,sim:{iccid:"",account_status:0,data_plan:0,data_usage:0,data_balance:0,expiry_date:0},hksimFlag:!0,hksim:{iccid:"",account_status:0,data_plan:0,data_usage:0,data_balance:0,expiry_date:0},hksiminp:"",timeRange:"",btnSelected:null,dataList:[],options:{},equipStatus:{},equipChartData:[],total:0,tableHeadTxt2:[["环境温度(°C)","at"],["环境湿度(%)","ah"],["加热仓温度(°C)","hrt"],["雨控状态","rps"],["温控状态","tps"],["光控状态","lps"],["灯管状态","blbs"],["经度","lng"],["纬度","lat"],["上报时间","addtime"]],tableData:[]},w()(e,"timeRange",""),w()(e,"queryInfo",{begin:"",end:"",e_id:this.$route.params.e_id,d_id:this.$route.params.d_id,page:1,page_size:10}),w()(e,"isEchartData",!0),w()(e,"display","0"),w()(e,"showControl",!0),w()(e,"echartOptions",[]),w()(e,"tableHead",[]),w()(e,"hisData",[]),w()(e,"simCodeDialogVisible",!1),w()(e,"f_id",""),w()(e,"activeName","sim"),w()(e,"dialogVisible",!1),w()(e,"optionsA",[{value:"选项1",label:"全部"},{value:"选项2",label:"时间段"}]),w()(e,"value",""),w()(e,"value1",""),w()(e,"value2",""),w()(e,"timeShow",!1),w()(e,"ChartData",[{name:"温度(°C)",dat:[]},{name:"湿度(%)",dat:[]},{name:"加热仓温度(°C)",dat:[]}]),w()(e,"loadingInstance",{}),w()(e,"equipStateDict",{}),w()(e,"timeScreenData",null),w()(e,"code",null),w()(e,"sign",null),w()(e,"refreshload",!1),w()(e,"nonesim",!1),w()(e,"simtext",""),e},filters:{simStatus:function(e){switch(e){case 0:return"未知";case 1:return"测试期";case 2:return"沉默期";case 3:return"使用中";case 4:return"停机";case 5:return"停机保号";case 6:return"预销号";case 7:return"销号"}},retainThree:function(e){var t="";if(isNaN(e)||""===e)t="–";else{var a=parseFloat(e).toFixed(4);t=a.substring(0,a.length-1)}return t},ellipsis:function(e){return e?e.length>15?e.slice(0,15)+"...":e:""}},computed:{data_usage_Per:function(){return 100*Number(this.sim.data_usage/this.sim.data_plan)},data_balance_per:function(){return 100*Number(this.sim.data_balance/this.sim.data_plan)},hkdata_usage_Per:function(){return 100*Number(this.hksim.data_usage/this.hksim.data_plan)},hkdata_balance_per:function(){return 100*Number(this.hksim.data_balance/this.hksim.data_plan)},userType:function(){return window.sessionStorage.getItem("myuser_type")}},created:function(){this.user_tag=localStorage.getItem("user_tag")},mounted:function(){this.equipStateDict=ce.a,this.getEquipStatus(),this.refreshData(),this.loadingInstance=oe.Loading.service({fullscreen:!1,target:document.getElementById("charts")}),this.options=this.optionFn(this.ChartData)},methods:{refreshData:function(){z.a.setOptions({lang:{resetZoom:"刷新",resetZoomTitle:"重置缩放比例"}})},optionFn:function(e){return{chart:{zoomType:"x"},title:{text:"环境温湿度",align:"left"},lang:{noData:"暂无数据"},noData:{style:{fontWeight:"bold",fontSize:"15px",color:"#303030"}},xAxis:{crosshair:!0,type:"datetime",dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"}},yAxis:{title:{text:""}},legend:{align:"right",verticalAlign:"top"},plotOptions:{series:{label:{connectorAllowed:!1},pointStart:2010}},series:[{name:e[0].name,data:e[0].dat},{name:e[1].name,data:e[1].dat},{name:e[2].name,data:e[2].dat}],colors:["#00e29d","#6cbbff","#ff3f3f"],credits:{enabled:!1},tooltip:{shared:!0,headerFormat:"<b>{point.x:%Y-%m-%e %H:%M:%S}</b><br>"},responsive:{rules:[{condition:{maxWidth:500},chartOptions:{legend:{layout:"horizontal",align:"center",verticalAlign:"bottom"}}}]},previous:0}},getChartLine:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.device_polyline_data",data:this.qs.stringify({device_type_id:3,d_id:this.queryInfo.d_id,start_time:this.queryInfo.begin,end_time:this.queryInfo.end})}).then(function(t){if(e.sign,e.queryInfo.begin,t.data,0==t.data.data.length&&null==e.timeScreenData&&(e.sign!=e.queryInfo.begin&&null!=e.sign||e.$refs.timeCirculation.say(),e.sign=e.queryInfo.begin),""==t.data.message){var a=t.data.data;e.ChartData[0].dat=[],e.ChartData[1].dat=[],e.ChartData[2].dat=[];var i=!0,n=!1,l=void 0;try{for(var s,r=ae()(a);!(i=(s=r.next()).done);i=!0){var o=s.value;o.new_tem?e.ChartData[0].dat.unshift([1e3*o.addtime+288e5,Number(o.new_tem)]):e.ChartData[0].dat.unshift([1e3*o.addtime+288e5,Number(o.temperature)]),o.new_hum?e.ChartData[1].dat.unshift([1e3*o.addtime+288e5,Number(o.new_hum)]):e.ChartData[1].dat.unshift([1e3*o.addtime+288e5,Number(o.humidity)]),e.ChartData[2].dat.unshift([1e3*o.addtime+288e5,Number(o.others)])}}catch(e){n=!0,l=e}finally{try{!i&&r.return&&r.return()}finally{if(n)throw l}}e.options=e.optionFn(e.ChartData),e.ChartData}e.loadingInstance.close()})},getEquipStatus:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.device_status_data",data:this.qs.stringify({device_id:this.queryInfo.e_id})}).then(function(t){""==t.data.message?(e.equipStatus=t.data.data,"-1"!=t.data.data.dver.indexOf("HK")||"-1"!=t.data.data.dver.indexOf("2000W")?e.showHksimFlag=!0:e.showHksimFlag=!1):(e.equipStatus.device_name=e.$route.query.name,e.equipStatus.address=e.$route.query.addr)})},dateChange:function(e){this.queryInfo.page=1,this.queryInfo.begin=e.begin,this.queryInfo.end=e.end,this.getChartLine(),this.getHisDataList()},timeScreen:function(e){this.timeScreenData=e},getHisDataList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.device_history_data",data:this.qs.stringify({device_type_id:3,device_id:this.queryInfo.e_id,start_time:this.queryInfo.begin,end_time:this.queryInfo.end,page:this.queryInfo.page,page_size:this.queryInfo.page_size})}).then(function(t){if(""==t.data.message){e.total=t.data.data.counts;var a=t.data.data.data;if(e.tableData=[],a.length>0){for(var i=0;i<a.length;i++){var n=a[i].d_h_t;n.addtime=e.formatTime(1e3*n.addtime),n.rps=e.equipStateDict.rps.value[n.rps],n.tps=e.equipStateDict.tps.value[n.tps],n.lps=e.equipStateDict.lps.value[n.lps],0==n.ws?n.blbs="待机":n.blbs=e.equipStateDict.lamp.value[n.lamp],e.tableData.push(n)}e.tableData}}})},changePage:function(e){this.queryInfo.page=e,this.getHisDataList()},handleSizeChange:function(e){this.queryInfo.page=1,this.queryInfo.page_size=e,this.getHisDataList()},refresh:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.send_control.get_device_config",data:this.qs.stringify({device_type_id:3,d_id:this.queryInfo.d_id,control_type:"data"})}).then(function(t){""==t.data.message?(e.refreshload=!0,setTimeout(function(){e.getChartLine(),e.getEquipStatus(),e.getHisDataList(),0==document.getElementsByClassName("el-message").length&&e.$message.success("刷新成功"),e.refreshload=!1},2e3)):0==document.getElementsByClassName("el-message").length&&e.$message.err("刷新失败")})},goBackPage:function(){this.$router.go(-1)},deriveData:function(){this.dialogVisible=!0},addData:function(){if(this.value1,""==this.value||""==this.value1)this.$message({message:"请将必填项填写完整",type:"warning",duration:1500});else{var e="",t="";"选项2"==this.value1?(e=this.queryInfo.begin,t=this.queryInfo.end):"选项1"==this.value1&&(e="",t="");var a=localStorage.getItem("username");window.location.href=this.$http+"/api/cbd_export?device_id="+this.$route.params.d_id+"&filename="+this.value+"&start_time="+e+"&end_time="+t+"&device_type=3&username="+a}},setWidth:function(e){if("addtime"==e[1])return"180px"},hksiminpinput:function(){/^[A-Za-z0-9]+$/.test(this.hksiminp),/^[A-Za-z0-9]+$/.test(this.hksiminp)||this.$message.error("只能输入数字及英文")}},components:{DateSearch:le},watch:{value1:function(e){},dialogVisible:function(e){0==e&&(this.value="",this.value1="",this.value2="",this.timeShow=!1)}}},me={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{cursor:"default"}},[i("div",{staticClass:"baselistbox_top"},[i("div",{staticClass:"baselistbox_top_title"},[i("p",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.goBackPage()}}},[i("i",{staticClass:"el-icon-back"}),e._v(" "),i("span",[e._v("返回")])]),e._v(" "),i("p",[e._v("数据详情")])]),e._v(" "),i("p",{staticClass:"baselistbox_top_line"}),e._v(" "),i("div",{staticClass:"baselistbox_top_search"},[i("div",[i("div",{staticClass:"equipInfo"},[i("div",{staticClass:"equipMsg"},[i("span",[e._v("设备ID:"+e._s(this.$route.params.e_id))]),e._v(" "),i("span",[e._v("设备名称:"+e._s(e.equipStatus.device_name||"无"))]),e._v(" "),i("span",[e._v("位置:"+e._s(e.equipStatus.address||"无"))])]),e._v(" "),i("DateSearch",{ref:"timeCirculation",on:{dateChange:e.dateChange,timeScreen:e.timeScreen}})],1)]),e._v(" "),i("div",{staticClass:"ctrl-check"},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.$throttle(e.refresh,2e3)}}},[e._v("刷新")])],1)])]),e._v(" "),i("el-row",{directives:[{name:"loading",rawName:"v-loading",value:e.refreshload,expression:"refreshload"}],staticStyle:{"margin-top":"10px"},attrs:{gutter:10}},[i("el-col",{attrs:{md:24,lg:9}},[i("el-card",{staticClass:"box-card"},[i("el-row",{attrs:{gutter:10}},[i("el-col",{attrs:{xs:12,sm:12,md:6,lg:12}},[i("div",{staticClass:"equipStatus"},[i("div",{staticClass:"equipIcon"},[i("img",{attrs:{src:a("NrEd"),alt:""}})]),e._v(" "),i("div",{staticClass:"equipParams"},[i("strong",[e._v(e._s(e.equipStatus.ds?"开机":"关机"))]),e._v(" "),i("p",[e._v("设备状态")])])])]),e._v(" "),i("el-col",{attrs:{xs:12,sm:12,md:6,lg:12}},[i("div",{staticClass:"equipStatus"},[i("div",{staticClass:"equipIcon"},[i("img",{attrs:{src:a("SL46"),alt:""}})]),e._v(" "),i("div",{staticClass:"equipParams"},[i("strong",[e._v(e._s("1"==e.equipStatus.ts?"时控":"光控"))]),e._v(" "),i("p",[e._v("定时模式")])])])]),e._v(" "),i("el-col",{attrs:{xs:12,sm:12,md:6,lg:12}},[i("div",{staticClass:"equipStatus"},[i("div",{staticClass:"equipIcon"},[i("img",{attrs:{src:a("FgYL"),alt:""}})]),e._v(" "),i("div",{staticClass:"equipParams"},[i("strong",[e._v(e._s(1==e.equipStatus.upds?"落虫":"排水"))]),e._v(" "),i("p",[e._v("通道状态")])])])]),e._v(" "),i("el-col",{attrs:{xs:12,sm:12,md:6,lg:12}},[i("div",{staticClass:"equipStatus"},[i("div",{staticClass:"equipIcon"},[i("img",{attrs:{src:a("cBJi"),alt:""}})]),e._v(" "),i("div",{staticClass:"equipParams"},[i("strong",[e._v(e._s("1"==e.equipStatus.hs?"加热":"正常"))]),e._v(" "),i("p",[e._v("加热状态")])])])]),e._v(" "),i("el-col",{attrs:{xs:12,sm:12,md:6,lg:12}},[i("div",{staticClass:"equipStatus"},[i("div",{staticClass:"equipIcon"},[i("img",{attrs:{src:a("gJ0z"),alt:""}})]),e._v(" "),i("div",{staticClass:"equipParams"},[i("strong",[e._v(e._s("1"==e.equipStatus.upds?"打开":"关闭"))]),e._v(" "),i("p",[e._v("上仓门")])])])]),e._v(" "),i("el-col",{attrs:{xs:12,sm:12,md:6,lg:12}},[i("div",{staticClass:"equipStatus"},[i("div",{staticClass:"equipIcon"},[i("img",{attrs:{src:a("uqz0"),alt:""}})]),e._v(" "),i("div",{staticClass:"equipParams"},[i("strong",[e._v(e._s("1"==e.equipStatus.dpds?"打开":"关闭"))]),e._v(" "),i("p",[e._v("下仓门")])])])]),e._v(" "),1==e.userType?i("el-col",{attrs:{xs:12,sm:12,md:6,lg:12}},[i("div",{staticClass:"equipStatus"},[i("div",{staticClass:"equipIcon"},[i("img",{attrs:{src:a("IKYp"),alt:""}})]),e._v(" "),i("div",{staticClass:"equipParams"},[i("strong",[e._v(e._s(e.equipStatus.csq))]),e._v(" "),i("p",[e._v("信号强度")])])])]):e._e(),e._v(" "),i("el-col",{attrs:{xs:12,sm:12,md:6,lg:12}},[i("div",{staticClass:"equipStatus"},[i("div",{staticClass:"equipIcon"},[i("img",{attrs:{src:a("E1PB"),alt:""}})]),e._v(" "),i("div",{staticClass:"equipParams"},[i("strong",{attrs:{title:e.equipStatus.dver}},[e._v(e._s(e._f("ellipsis")(e.equipStatus.dver)))]),e._v(" "),i("p",[e._v("设备版本")])])])]),e._v(" "),i("el-col",{attrs:{xs:12,sm:12,md:6,lg:12}},[i("div",{staticClass:"equipStatus"},[i("div",{staticClass:"equipIcon"},[i("img",{attrs:{src:a("Mjpm"),alt:""}})]),e._v(" "),i("div",{staticClass:"equipParams"},[i("strong",[e._v(e._s(e.equipStatus.tph))]),e._v(" "),i("p",[e._v("高温限值")])])])]),e._v(" "),i("el-col",{attrs:{xs:12,sm:12,md:6,lg:12}},[i("div",{staticClass:"equipStatus"},[i("div",{staticClass:"equipIcon"},[i("img",{attrs:{src:a("JrRd"),alt:""}})]),e._v(" "),i("div",{staticClass:"equipParams"},[i("strong",[e._v(e._s(e.equipStatus.tpl))]),e._v(" "),i("p",[e._v("低温限值")])])])])],1)],1)],1),e._v(" "),i("el-col",{attrs:{md:24,lg:15}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"charts",attrs:{id:"charts"}},[i("highcharts",{attrs:{options:e.options}})],1)])],1)],1),e._v(" "),i("div",{staticClass:"dataTableSearch"},[i("div",[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.deriveData()}}},[e._v("导出")])],1)]),e._v(" "),e.showControl?i("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.refreshload,expression:"refreshload"}],staticClass:"box-card tablebox"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:""}},e._l(e.tableHeadTxt2,function(t,a){return i("el-table-column",{key:a,attrs:{prop:t[1],label:t[0],width:e.setWidth(t)},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row[t.column.property]))]}}],null,!0)})}),1),e._v(" "),i("div",{staticClass:"pagination"},[e.tableData.length?i("el-pagination",{attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.total,"page-sizes":[10,20,30,50],"page-size":10,"current-page":e.queryInfo.page},on:{"size-change":e.handleSizeChange,"current-change":e.changePage}}):e._e()],1)],1):e._e(),e._v(" "),i("el-dialog",{attrs:{title:"导出信息",visible:e.dialogVisible,width:"580px","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("ul",{staticClass:"iptUl"},[i("li",{staticClass:"iptList"},[i("div",{staticClass:"iptTxt"},[i("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v("文件名称:")]),e._v(" "),i("div",{staticClass:"iptBox"},[i("el-input",{attrs:{placeholder:"请输入文件的名称",size:"mini",clearable:""},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)]),e._v(" "),i("li",{staticClass:"iptList"},[i("div",{staticClass:"iptTxt"},[e._v("下载类型:")]),e._v(" "),i("div",{staticClass:"iptBox"},[i("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}},e._l(e.optionsA,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)])]),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.addData()}}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var he=a("VU/8")(de,me,!1,function(e){a("yiDG")},"data-v-64520d2f",null).exports,fe={filters:{ellipsisname:function(e){return e?e.length>10?e.slice(0,10)+"...":e:""},ellipsis:function(e){return e?e.length>14?e.slice(0,13)+"...":e:""},subDeviceId:function(e){return e?e.substring(e.length-6):""}},components:{},data:function(){return{queryInfo:{page_size:10,page:1,is_online:"",f_id:"",pagekey:1},options:[{value:"",label:"全部"},{value:"1",label:"在线"},{value:"0",label:"离线"}],equipList:[],loading:!1,setDialogVisible:!1,parameterLoading:!1,setFrom:{interval:0},equipInfo:{},setDialogTxt:"请求中",simCodeVisible:!1,phoneNumberA:"",tableData:[],simLoading:!1,id:"",totalNum:0,isWarningList:!1,warningList:[],onewarning:{warning_status:"",device_id:""},hjjcWarningPage:1}},computed:{},watch:{},methods:{getEquipList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_page",data:this.qs.stringify({page:this.queryInfo.page,device_id:this.queryInfo.f_id,page_size:this.queryInfo.page_size,device_status:this.queryInfo.is_online})}).then(function(t){if(t.data){var a=e;e.equipList=[];var i=t.data.data.ids;i.length>0?e.equipList=i:a.equipList=[],e.equipList,e.totalNum=Number(t.data.data.nums)}e.loading=!1}).catch(function(){e.$message.error("获取数据失败!"),e.loading=!1})},handleSizeChange:function(e){this.queryInfo.page_size=e,this.getEquipList()},handleCurrentChange:function(e){this.queryInfo.page=e,this.getEquipList()},searchChange:function(){this.queryInfo.page=1,this.queryInfo.pagekey=10*Math.random()+1,this.getEquipList()},empty:function(){this.queryInfo.page=1,this.queryInfo.pagekey=10*Math.random()+1,this.queryInfo.is_online="",this.queryInfo.f_id="",this.getEquipList()},equipSet:function(e,t,a){var i=this;this.equipInfo={d_id:e,equip_id:t,equip_name:a},this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.send_control.device_control_info",data:this.qs.stringify({d_id:e,cmd:"config"})}).then(function(e){e.data.data,e.data.data?(i.setFrom.interval=e.data.data.interval,1==e.data.data.admin?i.upgradeTF=!0:i.upgradeTF=!1):(0==document.getElementsByClassName("el-message").length&&i.$message({message:e.data.message,type:"warning",duration:1500,customClass:"zZindex"}),i.upgradeTF=!1),i.setDialogVisible=!0})},equipControlDialogClosed:function(){this.setFrom={content:"",timeout:null,interval:0}},equipSetSubm:function(){var e=this;this.setFrom,this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.send_control.device_control",data:this.qs.stringify({device_type_id:5,d_id:this.equipInfo.d_id,config:s()(this.setFrom),device_name:this.equipInfo.equip_name})}).then(function(t){""==t.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message.success("操作成功"),e.getEquipList()):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message),e.setDialogVisible=!1})},showTimeControlDialog:function(e,t){this.device_id=t,this.$router.push({path:"/index/pestsStats",query:{d_id:e,identify_model:"A"}})},dataWarning:function(e){this.simCodeVisible=!0,this.warningAxios(e),this.id=e},warningAxios:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_early_warning",data:this.qs.stringify({device_id:e,status:"see",alarm:""})}).then(function(e){var a=e.data.data.conf,i=[],n=P()(a).length;if(e.data.data.alarm){var l=e.data.data.alarm;t.phoneNumber=l}else{l={};t.phoneNumber=l}t.phoneNumberA=e.data.data.phone;for(var s=1;s<=n;s++){var r="e"+s;if(a[r]){var o=a[r].split("#")[0];if(l.dat)if(l.dat[r])var u=0!=l.dat[r].split("#")[0],c=l.dat[r].split("#")[1];else u=!1,c="";i.push({ekey:r,name:o,type:u,alarmVal:c})}}t.tableData=i}).catch(function(e){})},confirmPhone:function(){var e=this,t=this.phoneNumberA;if(""==t)alert("手机号码不能为空"),0==document.getElementsByClassName("el-message").length&&this.$message({message:"手机号码不能为空",type:"warning",duration:1500});else if(/^[1][345789]\d{9}$/.test(t)&&/^[1-9]\d*$/.test(t)&&11===t.length){for(var a={},i={},n=0;n<this.tableData.length;n++){var l=1==this.tableData[n].type?1:0,r=void 0==this.tableData[n].alarmVal?"":this.tableData[n].alarmVal;i["e"+(n+1)]=l+"#"+r}a.dat=i,a.tel=this.phoneNumberA,a.equip_id="";var o=this.qs.stringify({device_id:this.id,status:"save",alarm:s()(a)});this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_early_warning",data:o}).then(function(t){0==t.data.data.code?0==document.getElementsByClassName("el-message").length&&e.$message({message:"设置成功",type:"success",duration:1500}):0==document.getElementsByClassName("el-message").length&&e.$message({message:"设置失败",type:"error",duration:1500})}).catch(function(t){0==document.getElementsByClassName("el-message").length&&e.$message({message:"设置失败",type:"error",duration:1500})})}else 0==document.getElementsByClassName("el-message").length&&this.$message({message:"手机号码不符合规范",type:"warning",duration:1500})},renderHeader:function(e,t){return e("div",[e("span",t.column.label),e("i",{class:"el-icon-edit",style:"color:#409eff;margin-left:5px;"})])},check24Data:function(e){this.$router.push("/index/data24/"+e)},goHistoryData:function(e,t){this.itemId=e,this.$router.push("/index/historyData/"+e+"/"+t)},showWarningInfo:function(){this.isWarningList=!this.isWarningList},oneWarningList:function(){this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.qxz_warning",data:this.qs.stringify({status:"yes"})}).then(function(e){e.data.data})},yidu:function(e){this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.qxz_warning",data:this.qs.stringify({d_id:e})}).then(function(e){e.data.data,e.data.data})},hjjcWarningList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.qxz_warning",data:this.qs.stringify({page:this.hjjcWarningPage})}).then(function(t){for(var a=t.data.data.data,i=0;i<a.length;i++)e.warningList.push(a[i]);e.onewarning=e.warningList[0]})},load:function(){this.hjjcWarningPage++,this.hjjcWarningList()},setData:function(e,t,a,i){var n=e.split("#")[1];return"当前"+e.replace("#",t)+a.replace("预警","用户设置预警值")+i+n}},beforeCreate:function(){},created:function(){this.getEquipList(),this.hjjcWarningList()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},ve={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"baselistbox"},[a("div",{staticClass:"baselistbox_top"},[a("div",{staticClass:"baselistbox_top_title"},[a("p",[e._v("气象监测")]),e._v(" "),0!==e.warningList.length?a("div",{staticClass:"warningInfo"},[a("div",{staticClass:"title",on:{click:e.showWarningInfo}},[a("div",[a("i",{staticClass:"iconfont el-icon-s-order",staticStyle:{"margin-right":"10px"}}),e._v(e._s(e._f("subDeviceId")(e.onewarning.device_id))+"\n "+e._s(e.onewarning.warning_content)+"\n ")]),e._v(" "),a("i",{staticClass:"el-icon-bell"})]),e._v(" "),e.isWarningList?a("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.load,expression:"load"}],staticClass:"warningInfoList",attrs:{"infinite-scroll-delay":"200","infinite-scroll-immediate":"false"}},[a("li",{on:{click:function(t){return e.oneWarningList()}}},[e._m(0)]),e._v(" "),e._l(e.warningList,function(t,i){return a("li",{key:i},[a("el-popover",{attrs:{placement:"left",trigger:"click"}},[a("div",{staticStyle:{padding:"5px 0px",width:"500px"}},[e._v("\n 设备编号:"+e._s(t.device_id)+"\n ")]),e._v(" "),a("div",{staticStyle:{padding:"5px 0px",width:"500px","line-height":"30px"}},[e._v("\n 详细信息:"+e._s(e.setData(t.ekey,t.current_value,t.warning_content,t.set_value))+"\n ")]),e._v(" "),a("el-button",{staticStyle:{"background-color":"transparent"},attrs:{slot:"reference"},on:{click:function(a){return e.yidu(t.d_id)}},slot:"reference"},[0==t.status?a("i",{staticClass:"circle"}):e._e(),e._v(" "),a("div",{class:0==t.status?"active":"",staticStyle:{width:"60%","text-align":"left"}},[e._v("\n "+e._s(e._f("subDeviceId")(t.device_id))+"\n "+e._s(t.warning_content)+"\n ")]),e._v(" "),a("span",{class:0==t.status?"active":""},[e._v(e._s(e._f("formatTime")(1e3*t.upltime)))])])],1)],1)})],2):e._e()]):e._e()]),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticClass:"left_search"},[a("div",{staticClass:"firstsearch"},[a("span",{staticClass:"biaoti"},[e._v("设备ID或名称")]),e._v(" "),a("el-input",{attrs:{size:"mini",placeholder:"请输入设备ID或名称"},model:{value:e.queryInfo.f_id,callback:function(t){e.$set(e.queryInfo,"f_id",t)},expression:"queryInfo.f_id"}})],1),e._v(" "),a("div",{staticClass:"secsearch"},[a("span",{staticClass:"biaoti"},[e._v("设备状态")]),e._v(" "),a("el-select",{attrs:{size:"mini",filterable:"",placeholder:"请选择"},model:{value:e.queryInfo.is_online,callback:function(t){e.$set(e.queryInfo,"is_online",t)},expression:"queryInfo.is_online"}},e._l(e.options,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)]),e._v(" "),a("div",{staticClass:"right_search"},[a("div",{staticClass:"btnbox",on:{click:e.searchChange}},[e._v("查询")]),e._v(" "),a("div",{staticClass:"btnbox2",on:{click:e.empty}},[e._v("重置")])])])]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.equipList,stripe:"",height:"560px","default-sort":{order:"uptime"}}},[a("el-table-column",{attrs:{label:"设备名称",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("ellipsisname")(""==t.row.equip_name?"无":t.row.equip_name)))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"equip_id",label:"设备ID",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"volt",label:"电压(V)",width:"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"rssi",label:"信号强度",width:"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"uptime",sortable:"",label:"最新上报时间",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatTime")(1e3*t.row.uptime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"地址",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("ellipsis")(t.row.address||"无")))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"350",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.equipSet(t.row.d_id,t.row.equip_id,t.row.equip_name)}}},[e._v("设备控制")]),e._v(" "),a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.check24Data(t.row.equip_id)}}},[e._v("24小时数据")]),e._v(" "),a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.goHistoryData(t.row.equip_id,t.row.d_id)}}},[e._v("历史数据")]),e._v(" "),a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.dataWarning(t.row.equip_id)}}},[e._v("预警设置")])]}}])})],1),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{key:e.queryInfo.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalNum,"page-sizes":[10,20,30,50],"page-size":e.queryInfo.page_size,"current-size":e.queryInfo.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){return e.$set(e.queryInfo,"page",t)},"update:current-size":function(t){return e.$set(e.queryInfo,"page",t)}}})],1)],1),e._v(" "),a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.parameterLoading,expression:"parameterLoading"}],attrs:{title:"设备控制",visible:e.setDialogVisible,width:"600px","element-loading-text":e.setDialogTxt,"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.setDialogVisible=t},close:e.equipControlDialogClosed}},[a("div",{staticClass:"set_item"},[a("span",[e._v("设备编号")]),a("span",[e._v(e._s(e.equipInfo.equip_id))])]),e._v(" "),a("div",{staticClass:"set_item"},[a("span",[e._v("设备名称")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{size:"mini",placeholder:"请输入内容",maxlength:10},model:{value:e.equipInfo.equip_name,callback:function(t){e.$set(e.equipInfo,"equip_name",t)},expression:"equipInfo.equip_name"}})],1),e._v(" "),a("div",{staticClass:"tit"},[e._v("上传时间间隔")]),e._v(" "),a("div",{staticClass:"set_item"},[a("span",[e._v("上传时间间隔")]),e._v(" "),a("div",{staticClass:"sliderParent",staticStyle:{"margin-left":"8px"}},[a("div",{staticClass:"block"},[a("el-slider",{attrs:{"show-input":"",min:1,max:359,size:"mini"},model:{value:e.setFrom.interval,callback:function(t){e.$set(e.setFrom,"interval",t)},expression:"setFrom.interval"}})],1)]),e._v(" "),a("span",{staticStyle:{"margin-left":"15px"}},[e._v("min")])]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.setDialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.equipSetSubm()}}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"短信预警",visible:e.simCodeVisible,width:"570px"},on:{"update:visible":function(t){e.simCodeVisible=t}}},[[a("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:e.simLoading,expression:"simLoading"}],attrs:{"element-loading-text":"数据请求中"}},[a("div",{staticClass:"warningMessage-box"},[a("div",{staticClass:"warningMessage-phone"},[e._v("预警手机号")]),e._v(" "),a("el-input",{staticClass:"warningMessage-ipt",attrs:{placeholder:"请输入手机号",maxlength:"11",clearable:"",size:"mini"},model:{value:e.phoneNumberA,callback:function(t){e.phoneNumberA=t},expression:"phoneNumberA"}}),e._v(" "),a("el-button",{staticClass:"warningMessage-btn",attrs:{type:"primary",size:"mini"},on:{click:e.confirmPhone}},[e._v("确定")])],1),e._v(" "),a("el-table",{staticStyle:{width:"100%",margin:"0.25rem 0 0 0"},attrs:{data:e.tableData,border:""}},[a("el-table-column",{attrs:{prop:"ekey",label:"通道号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"要素"}}),e._v(" "),a("el-table-column",{attrs:{prop:"type",label:"类型",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{staticClass:"switch",attrs:{"active-text":"大于","inactive-text":"小于","active-color":"#13ce66","inactive-color":"#ff4949"},on:{change:function(a){return e.switchChangeFin(t.$index,t.row.type)}},model:{value:t.row.type,callback:function(a){e.$set(t.row,"type",a)},expression:"scope.row.type"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{"render-header":e.renderHeader,prop:"alarmVal",label:"阈值",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"warningMessage-ipt",attrs:{type:"number",clearable:""},model:{value:t.row.alarmVal,callback:function(a){e.$set(t.row,"alarmVal",a)},expression:"scope.row.alarmVal"}})]}}])})],1)],1)]],2)],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{"padding-left":"10px"}},[t("i",{staticClass:"iconfont el-icon-s-promotion"}),this._v("一键已读\n ")])}]};var pe=a("VU/8")(fe,ve,!1,function(e){a("aKhk")},"data-v-4de77c00",null).exports,ge=a("hCNC"),be={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"data24box"},[a("div",{staticClass:"baselistbox_top"},[a("div",{staticClass:"baselistbox_top_title"},[a("p",{staticStyle:{cursor:"pointer"},on:{click:e.backtrack}},[a("i",{staticClass:"el-icon-back"}),e._v(" "),a("span",[e._v("返回")])]),e._v(" "),a("p",[e._v("24小时数据")])]),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[a("div",{staticStyle:{"font-size":"18px","font-weight":"700"}},[e._v("实时数据")]),e._v(" "),a("div",{staticStyle:{display:"flex"}},[a("div",{staticClass:"newTime_time"},[e._v(e._s(e._f("formatTime")(1e3*e.uptime)))]),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-right",size:"mini"},on:{click:e.refresh}}),e._v(" "),a("el-button",{attrs:{type:"warning",icon:"el-icon-setting",size:"mini"},on:{click:function(t){return e.setFactor()}}})],1)])]),e._v(" "),a("div",{staticClass:"elemenbox"},[0!==e.realTimeArr.length?a("div",{staticClass:"factorBox"},[a("div",{staticClass:"factorBox_ul",class:e.realTimeArr.length%11==2?"six-product":e.realTimeArr.length%11==3?"three-product":e.realTimeArr.length%11==4?"four-product":e.realTimeArr.length%11==5?"five-product":e.realTimeArr.length%11==6?"six-product":e.realTimeArr.length%11==7?"seven-product":e.realTimeArr.length%11==8?"eight-product":e.realTimeArr.length%11==9?"nine-product":e.realTimeArr.length%11==10?"ten-product":""},e._l(e.realTimeArr,function(t,i){return a("div",{key:i,staticClass:"factorBox_li"},[a("div",{staticClass:"factorBox_li_impression",style:" background:url("+t.img+")no-repeat; background-size: 100% 100%;"},[a("div",{staticStyle:{"font-size":"15px","line-height":"30px",height:"28px"}}),e._v(" "),a("img",{staticStyle:{width:"30px",height:"30px",position:"absolute",left:"37px",top:"25px"},attrs:{src:"../../../../static/images/weather/icon_"+t.tu+".png",alt:""}}),e._v(" "),a("div",{staticClass:"factorBox_li_number",staticStyle:{"line-height":"16px",height:"35px",margin:"45px 0 0 -23px",width:"139px"}},[e._v("\n "+e._s(t.num)+"\n ")])]),e._v(" "),a("div",{staticClass:"factorBox_li_text",attrs:{title:t.name}},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),a("div",{staticClass:"factorBox_li_text2"},[e._v("\n "+e._s(t.unit)+"\n ")])])}),0)]):a("div",{staticClass:"expertDiagnosis_referral_units_not"},[e._v("暂无数据")])])])]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.data24,stripe:""}},[a("el-table-column",{attrs:{prop:"e",label:"传感器通道"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"通道名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"min",label:"最小值"}}),e._v(" "),a("el-table-column",{attrs:{prop:"mintime",label:"最小时间"},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.mintime?[e._v(e._s(e._f("formatTime")(1e3*t.row.mintime)))]:void 0}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{prop:"max",label:"最大值"}}),e._v(" "),a("el-table-column",{attrs:{prop:"maxtime",label:"最大时间"},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.maxtime?[e._v(e._s(e._f("formatTime")(1e3*t.row.maxtime)))]:void 0}}],null,!0)})],1)],1),e._v(" "),a("div",{staticClass:"bgc"}),e._v(" "),a("el-dialog",{attrs:{"close-on-press-escape":!1,"close-on-click-modal":!1,title:"修改要素名称",visible:e.setFactorShow,width:"570px"},on:{"update:visible":function(t){e.setFactorShow=t}}},[[a("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:e.simLoading,expression:"simLoading"}],attrs:{"element-loading-text":"数据请求中"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-table",{staticStyle:{width:"100%",margin:"0.25rem 0 0 0"},attrs:{data:e.tableDataA,"row-class-name":e.tableRowClassName,border:""}},[a("el-table-column",{attrs:{prop:"ekey",label:"通道号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name","render-header":e.renderHeader,label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"warningMessage-ipt",attrs:{type:"text",clearable:""},on:{blur:function(a){return e.amendFactor(t.row)}},model:{value:t.row.name,callback:function(a){e.$set(t.row,"name",a)},expression:"scope.row.name"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"type",label:"要素"}})],1)],1)]],2)],1)},staticRenderFns:[]};var _e=function(e){a("GI0j")},ye=a("VU/8")(ge.a,be,!1,_e,"data-v-0d8d56f4",null).exports,we={components:{},data:function(){return{timeindex:1,start_time:"",end_time:"",time:"",hisData:[],tableHead:[],totalNum:10,page:1,page_size:10,pagekey:1,dialogVisible:!1,value:"",value1:"",optionsA:[{value:"选项1",label:"全部"},{value:"选项2",label:"时间段"}],flag:!1,tabtable:1,echartOptions:[]}},computed:{},watch:{},methods:{backtrack:function(){this.$router.go(-1)},empty:function(e){this.timeindex=e,this.end_time=Math.floor(+new Date/1e3);var t=new Date;if(1==e)this.start_time=this.end_time-86400;else if(2==e)this.start_time=this.end_time-604800;else if(3==e){var a=t.getMonth();this.start_time=Math.floor(t.setMonth(a-1)/1e3)}else if(4==e){a=t.getMonth();this.start_time=Math.floor(t.setMonth(a-3)/1e3)}this.start_time,this.page=1,this.pagekey=10*Math.random()+1,this.getHisDataList(),this.getEchartsHisDataList()},timechange:function(e){this.flag=!0,e?(this.start_time=Math.floor(+new Date(e[0])/1e3),this.end_time=Math.floor(+new Date(e[1])/1e3),this.page=1,this.pagekey=10*Math.random()+1,this.getHisDataList(),this.getEchartsHisDataList()):this.empty(1)},deriveData:function(){this.dialogVisible=!0},addData:function(){if(""==this.value||""==this.value1)0==document.getElementsByClassName("el-message").length&&this.$message({message:"请将必填项填写完整",type:"warning",duration:1500});else{var e="",t="";this.value1,"选项2"==this.value1?(e=this.start_time,t=this.end_time):(e="",t=""),window.location.href=this.$http+"/api/qxz_data_export?device_id="+this.$route.params.id+"&filename="+this.value+"&begin="+e+"&end="+t+"&device_type=3"}},refresh:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.send_control.get_device_config",data:this.qs.stringify({device_type_id:5,d_id:this.$route.params.d_id,control_type:"data"})}).then(function(t){""==t.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message({message:"刷新成功",type:"success"}),setTimeout(function(){e.getHisDataList(),e.getEchartsHisDataList()},2e3)):0==document.getElementsByClassName("el-message").length&&e.$message({message:"刷新失败",type:"success"})})},getHisDataList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_detail",data:this.qs.stringify({start_time:this.start_time,end_time:this.end_time,page:this.page,page_size:this.page_size,device_id:this.$route.params.id})}).then(function(t){if(e.isRainFall=t.data.data.rainFall,t.data.data.nums>0){var a=[{label:"日期",property:"date"}],i=[],n=t.data.data.conf,l=t.data.data.data;for(var s in n){var r={};if(n[s]){n[s];var o=n[s].split("#");o[1]?r.label=o[0]+"("+o[1]+")":r.label=""+o[0],r.property=s,a.push(r)}}if(1==a.length&&"日期"==a[0].label)e.hisData=[];else{var u=!0,c=!1,d=void 0;try{for(var m,h=ae()(l);!(u=(m=h.next()).done);u=!0){var f=m.value,v={};for(var p in v.date=e.formatTime(1e3*f.time),f.dat)f.dat[p]&&(v[p]="-99.99"==f.dat[p].split("#")[0]?"N/A":f.dat[p].split("#")[0]);i.push(v)}}catch(e){c=!0,d=e}finally{try{!u&&h.return&&h.return()}finally{if(c)throw d}}e.hisData=i;var g=0,b=[];for(var _ in l[0].dat)""!==l[0].dat[_]&&g++;for(var y=0;y<a.length;y++)g>=y&&b.push(a[y]);e.tableHead=b,e.totalNum=Number(t.data.data.nums)}}else e.hisData=[],e.flag||4!=e.timeindex&&e.empty(e.timeindex+1)})},handleSizeChange:function(e){this.page=1,this.pagekey=10*Math.random()+1,this.page_size=e,this.getHisDataList()},handleCurrentChange:function(e){this.page=e,this.getHisDataList()},getEchartsHisDataList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_data_chart",data:this.qs.stringify({begin:this.start_time,end:this.end_time,device_id:this.$route.params.id})}).then(function(t){t.data.data,e.echartsFn(t.data.data)}).catch(function(e){})},echartsFn:function(e){var t=this,a=e.conf,i=e.data,n=[];if(i.length,a&&i&&i.length>0){for(var l in this.isEchartData=!0,a)a[l]&&n.push({name:l,tit:a[l].split("#")[0],unit:a[l].split("#")[1],dat:[]});var s=!0,r=!1,o=void 0;try{for(var u,c=ae()(i);!(s=(u=c.next()).done);s=!0){var d=u.value;for(var m in d.dat){var h=!0,f=!1,v=void 0;try{for(var p,g=ae()(n);!(h=(p=g.next()).done);h=!0){var b=p.value;b.name==m&&"-99.99"!=d.dat[m].split("#")[0]&&b.dat.push([1e3*d.time+288e5,Number(d.dat[m].split("#")[0])])}}catch(e){f=!0,v=e}finally{try{!h&&g.return&&g.return()}finally{if(f)throw v}}}}}catch(e){r=!0,o=e}finally{try{!s&&c.return&&c.return()}finally{if(r)throw o}}}else this.isEchartData=!1;0!==n.length?(this.isEchartData=!0,this.echartOptions=n.map(function(e){return t.OptionFn(e)})):this.isEchartData=!1},OptionFn:function(e){return{title:{text:e.tit,align:"left"},lang:{noData:"暂无数据"},noData:{style:{fontWeight:"bold",fontSize:"15px",color:"#303030"}},xAxis:{crosshair:!0,type:"datetime",dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"}},yAxis:{title:{text:""}},legend:{align:"right",verticalAlign:"top"},plotOptions:{series:{label:{connectorAllowed:!1},pointStart:2010}},series:[{name:e.name,data:e.dat}],colors:["#00e29d","#6cbbff","#ff3f3f"],credits:{enabled:!1},tooltip:{shared:!0,headerFormat:"<b>{point.x:%Y-%m-%e %H:%M:%S}</b><br>",pointFormatter:function(){return e.tit+":"+this.y+e.unit}},responsive:{rules:[{condition:{maxWidth:500},chartOptions:{legend:{layout:"horizontal",align:"center",verticalAlign:"bottom"}}}]}}},tosuggest:function(){this.$router.push("/index/suggest?type=5")}},beforeCreate:function(){},created:function(){this.end_time=Math.floor(+new Date/1e3),this.start_time=this.end_time-86400,this.getHisDataList(),this.getEchartsHisDataList()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},xe={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hisbox"},[a("div",{staticClass:"baselistbox_top"},[a("div",{staticClass:"baselistbox_top_title"},[a("p",{staticStyle:{cursor:"pointer"},on:{click:e.backtrack}},[a("i",{staticClass:"el-icon-back"}),e._v(" "),a("span",[e._v("返回")])]),e._v(" "),a("p",[e._v("历史数据")])]),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticClass:"search_left"},[a("div",{class:1==e.tabtable?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){e.tabtable=1}}},[e._v("\n 表格\n ")]),e._v(" "),a("div",{class:2==e.tabtable?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){e.tabtable=2}}},[e._v("\n 图表\n ")]),e._v(" "),a("div",{staticClass:"timebtn timebtn1",on:{click:e.deriveData}},[e._v("导出")]),e._v(" "),a("div",{staticClass:"timebtn timebtn1",on:{click:e.refresh}},[e._v("刷新")]),e._v(" "),a("div",{staticClass:"timebtn timebtn3",on:{click:e.tosuggest}},[e._v("专家建议")])]),e._v(" "),a("div",{staticClass:"search_right"},[a("div",{class:1==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){e.empty(1),e.flag=!0}}},[e._v("\n 近一天\n ")]),e._v(" "),a("div",{class:2==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){e.empty(2),e.flag=!0}}},[e._v("\n 近七天\n ")]),e._v(" "),a("div",{class:3==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){e.empty(3),e.flag=!0}}},[e._v("\n 近一月\n ")]),e._v(" "),a("div",{class:4==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){e.empty(4),e.flag=!0}}},[e._v("\n 近三月\n ")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",size:"mini"},on:{change:e.timechange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)])]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.tabtable,expression:"tabtable == 1"}]},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.hisData,stripe:"",height:"530"}},[e._l(e.tableHead,function(t,i){return a("el-table-column",{key:i,attrs:{width:"160px",label:t.label,prop:t.property},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row[t.column.property]))]}}],null,!0)})}),e._v(" "),a("el-table-column",{attrs:{label:"",prop:""}})],2),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalNum,"page-sizes":[10,20,30,50],"page-size":e.page_size,"current-size":e.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}})],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:2==e.tabtable,expression:"tabtable == 2"}]},[a("el-row",{attrs:{gutter:10}},e._l(e.echartOptions,function(e,t){return a("el-col",{key:t,attrs:{xs:24,sm:24,md:12,lg:6,xl:6}},[a("el-card",{staticClass:"box-card",staticStyle:{"margin-bottom":"15px"}},[a("highcharts",{attrs:{options:e}})],1)],1)}),1)],1)]),e._v(" "),a("el-dialog",{attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,title:"导出信息",visible:e.dialogVisible,width:"580px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("ul",{staticClass:"iptUl"},[a("li",{staticClass:"iptList"},[a("div",{staticClass:"iptTxt"},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v("文件名称")]),e._v(" "),a("div",{staticClass:"iptBox"},[a("el-input",{attrs:{placeholder:"请输入文件的名称",size:"mini",clearable:""},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)]),e._v(" "),a("li",{staticClass:"iptList"},[a("div",{staticClass:"iptTxt"},[e._v("下载类型")]),e._v(" "),a("div",{staticClass:"iptBox"},[a("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}},e._l(e.optionsA,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)])]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.addData()}}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var Ce=a("VU/8")(we,xe,!1,function(e){a("CKIj")},"data-v-8fe3efb4",null).exports,Ae={filters:{ellipsis:function(e){return e?e.length>15?e.slice(0,15)+"...":e:""},momentTime:function(e){return moment(Number(1e3*e)).format("YYYY-MM-DD HH:mm:ss")},subDeviceId:function(e){return e?e.substring(e.length-6):""}},components:{},data:function(){return{queryInfo:{page_size:"10",page:"1",is_online:"",fId:"",pagekey:1},options:[{value:"",label:"全部"},{value:"1",label:"在线"},{value:"0",label:"离线"}],equipList:[],loading:!1,setDialogVisible:!1,equipContrlForm:{},equipInfo:{},totalNum:0,setFrom:{deviceName:"",drop_time:"1",imgres:"0",cul_time:0,set_temp:0,datt:0,coll_time:[]},coll_time:{time01:"",time02:"",time03:"",time04:"",time05:"",time06:""}}},computed:{},watch:{},methods:{getEquipList:function(){var e=this;this.$axios({method:"POST",url:"/baoziyi/page",data:this.qs.stringify({fId:this.queryInfo.fId,isOnline:this.queryInfo.is_online,limit:this.queryInfo.page_size,page:this.queryInfo.page})}).then(function(t){if(0==t.data.code){e.equipList=t.data.data.list;for(var a=0;a<e.equipList.length;a++)0==e.equipList[a].disable?e.equipList[a].insectVal="禁用":1==e.equipList[a].disable?e.equipList[a].insectVal="识别":2==e.equipList[a].disable&&(e.equipList[a].insectVal="计数");e.equipList.insectVal=e.totalNum=t.data.data.total,e.loading=!1}var i=t.data.data.list;for(a=0;a<i.length;a++)"2"==i[a].disable?i[a].deviceAddr:"1"==i[a].disable&&i[a].deviceAddr})},handleSizeChange:function(e){this.queryInfo.page_size=e,this.getEquipList()},handleCurrentChange:function(e){this.queryInfo.page=e,this.getEquipList()},searchChange:function(){this.queryInfo.page=1,this.pagekey=10*Math.random()+1,this.getEquipList()},empty:function(){this.queryInfo.page=1,this.pagekey=10*Math.random()+1,this.queryInfo.is_online="",this.queryInfo.f_id="",this.getEquipList()},equipSetSubm:function(){var e=this;if(this.setFrom.coll_time=[],this.coll_time.time01&&this.coll_time.time02){var t="0"!=this.coll_time.time01.slice(0,2).charAt(0)?this.coll_time.time01.slice(0,2):this.coll_time.time01.slice(1,2),a="0"!=this.coll_time.time02.slice(0,2).charAt(0)?this.coll_time.time02.slice(0,2):this.coll_time.time02.slice(1,2);this.setFrom.coll_time.push(t+"-"+a)}if(this.coll_time.time03&&this.coll_time.time04){var i="0"!=this.coll_time.time03.slice(0,2).charAt(0)?this.coll_time.time03.slice(0,2):this.coll_time.time03.slice(1,2),n="0"!=this.coll_time.time04.slice(0,2).charAt(0)?this.coll_time.time04.slice(0,2):this.coll_time.time04.slice(1,2);this.setFrom.coll_time.push(i+"-"+n)}if(this.coll_time.time05&&this.coll_time.time06){var l="0"!=this.coll_time.time05.slice(0,2).charAt(0)?this.coll_time.time05.slice(0,2):this.coll_time.time05.slice(1,2),s="0"!=this.coll_time.time06.slice(0,2).charAt(0)?this.coll_time.time06.slice(0,2):this.coll_time.time06.slice(1,2);this.setFrom.coll_time.push(l+"-"+s)}this.$axios({method:"POST",url:"/baoziyi/updateautomode",data:this.qs.stringify({workhour:this.setFrom.workhour,samplinghour:this.setFrom.samplinghour,workintervalminute:this.setFrom.workintervalminute,deviceAddr:this.equipInfo.device_id})}).then(function(t){""==t.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message.success("设备控制修改成功"),e.getEquipList()):0==document.getElementsByClassName("el-message").length&&e.$message.err("设备控制修改失败"),e.setDialogVisible=!1})},equipSet:function(e,t,a){var i=this;this.d_id=e,this.equipInfo={device_id:t,device_name:a},this.$axios({method:"POST",url:"/baoziyi/deviceconfig",data:this.qs.stringify({d_id:e,cmd:"paramconf"})}).then(function(e){if(e.data.data&&P()(e.data.data).length>0){var t=e.data.data;i.setFrom.deviceAddr=i.equipInfo.device_id,i.setFrom.deviceName=i.equipInfo.device_name,i.setFrom.workhour=parseInt(t.workhour),i.setFrom.samplinghour=parseInt(t.samplinghour),i.setFrom.workintervalminute=parseInt(t.workintervalminute),i.setFrom;var a=i.setFrom.coll_time;for(var n in a)if(0==n){var l=a[n].split("-");i.coll_time.time01=Number(l[0])<10?"0"+l[0]+":00":l[0]+":00",i.coll_time.time02=Number(l[1])<10?"0"+l[1]+":00":l[1]+":00"}else if(1==n){var s=a[n].split("-");i.coll_time.time03=Number(s[0])<10?"0"+s[0]+":00":s[0]+":00",i.coll_time.time04=Number(s[1])<10?"0"+s[1]+":00":s[1]+":00"}else if(2==n){var r=a[n].split("-");i.coll_time.time05=Number(r[0])<10?"0"+r[0]+":00":r[0]+":00",i.coll_time.time06=Number(r[1])<10?"0"+r[1]+":00":r[1]+":00"}i.coll_time}i.setDialogVisible=!0})},equipControlDialogClosed:function(){this.$refs.equipContrlRef.resetFields(),this.coll_time={time01:"",time02:"",time03:"",time04:"",time05:"",time06:""}},viewImage:function(e,t){this.itemId=e,this.$router.push({path:"/index/bzyPhotos/"+e,query:{d_id:t}})},dataDetail:function(e){this.itemId=e.deviceAddr,this.$router.push({path:"/index/dataDetail/"+e.imei+"/"+e.d_id,query:{deviceAddr:e.deviceAddr,address:e.address,name:e.deviceName}})}},beforeCreate:function(){},created:function(){this.getEquipList()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},ke={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"baselistbox"},[a("div",{staticClass:"baselistbox_top"},[e._m(0),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticClass:"left_search"},[a("div",{staticClass:"firstsearch"},[a("span",{staticClass:"biaoti"},[e._v("设备ID或名称")]),e._v(" "),a("el-input",{attrs:{size:"mini",placeholder:"请输入设备ID或名称"},model:{value:e.queryInfo.fId,callback:function(t){e.$set(e.queryInfo,"fId",t)},expression:"queryInfo.fId"}})],1),e._v(" "),a("div",{staticClass:"secsearch"},[a("span",{staticClass:"biaoti"},[e._v("设备状态")]),e._v(" "),a("el-select",{attrs:{size:"mini",filterable:"",placeholder:"请选择"},model:{value:e.queryInfo.is_online,callback:function(t){e.$set(e.queryInfo,"is_online",t)},expression:"queryInfo.is_online"}},e._l(e.options,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)]),e._v(" "),a("div",{staticClass:"right_search"},[a("div",{staticClass:"btnbox",on:{click:e.searchChange}},[e._v("查询")]),e._v(" "),a("div",{staticClass:"btnbox2",on:{click:e.empty}},[e._v("重置")])])])]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.equipList,stripe:"","default-sort":{prop:"device_name",order:"addtime"},height:"560px"}},[a("el-table-column",{attrs:{prop:"device_name",sortable:"",label:"设备名称",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(""==t.row.deviceName?"无":t.row.deviceName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"deviceAddr",label:"设备ID",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.deviceAddr))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"isOnline",label:"在线状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.isOnline?a("p",{staticStyle:{color:"#17bb89"}},[e._v("在线")]):e._e(),e._v(" "),0==t.row.isOnline?a("p",{staticStyle:{color:"#eb6765"}},[e._v("离线")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"位置",width:"280"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(""==t.row.address?"无":t.row.address))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"uptime",sortable:"",label:"最新上报时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatTime")(1e3*t.row.uptime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.viewImage(t.row.deviceAddr,t.row.d_id)}}},[e._v("查看图片")]),e._v(" "),a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.dataDetail(t.row)}}},[e._v("数据详情")])]}}])})],1),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{key:e.queryInfo.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalNum,"page-sizes":[10,20,30,50],"page-size":e.queryInfo.page_size,"current-size":e.queryInfo.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){return e.$set(e.queryInfo,"page",t)},"update:current-size":function(t){return e.$set(e.queryInfo,"page",t)}}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"设备控制",visible:e.setDialogVisible,width:"770px","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.setDialogVisible=t},close:e.equipControlDialogClosed}},[a("el-form",{ref:"equipContrlRef",attrs:{model:e.setFrom,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"设备编号:"}},[a("el-input",{staticStyle:{width:"217px"},attrs:{disabled:""},model:{value:e.equipInfo.device_id,callback:function(t){e.$set(e.equipInfo,"device_id",t)},expression:"equipInfo.device_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备名称:"}},[a("el-input",{staticStyle:{width:"200px"},attrs:{maxlength:10,size:"mini"},model:{value:e.equipInfo.device_name,callback:function(t){e.$set(e.equipInfo,"device_name",t)},expression:"equipInfo.device_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"工作时长(h): ",prop:"cul_time"}},[a("div",{staticClass:"sliderParent"},[a("div",{staticClass:"block"},[a("el-slider",{attrs:{"show-input":"",min:1,max:24},model:{value:e.setFrom.workhour,callback:function(t){e.$set(e.setFrom,"workhour",t)},expression:"setFrom.workhour"}})],1)])]),e._v(" "),a("el-form-item",{attrs:{label:"采样时长(h): ",prop:"set_temp"}},[a("div",{staticClass:"sliderParent"},[a("div",{staticClass:"block"},[a("el-slider",{attrs:{"show-input":"",min:1,max:24},model:{value:e.setFrom.samplinghour,callback:function(t){e.$set(e.setFrom,"samplinghour",t)},expression:"setFrom.samplinghour"}})],1)])]),e._v(" "),a("el-form-item",{attrs:{label:"工作间隔(min): ",prop:"datt"}},[a("div",{staticClass:"sliderParent"},[a("div",{staticClass:"block"},[a("el-slider",{attrs:{"show-input":"",min:10,max:60},model:{value:e.setFrom.workintervalminute,callback:function(t){e.$set(e.setFrom,"workintervalminute",t)},expression:"setFrom.workintervalminute"}})],1)])])],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.setDialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.equipSetSubm()}}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"baselistbox_top_title"},[t("p",[this._v("病害监测")])])}]};var Ee=a("VU/8")(Ae,ke,!1,function(e){a("MV9c")},"data-v-0a6f6fc8",null).exports,De={data:function(){return{zanwu:"/images/expertDiagnosis/zanwu.png",totalNum:0,timeRange:[],delBtnState:!0,downBtnState:!0,device_id:this.$route.params.id,d_id:this.$route.query.d_id,photoList:[],queryInfo:{begin:"",end:"",page:1},idList:[],photoDescDialogVisible:!1,times:50,isIndeterminate:!1,checkAll:!1,dataList:[],equipStatusObj:{name:this.$route.query.name,addr:this.$route.query.addr},img_id:"",adddialogVisible:!1,warninginfo:{title:"",describe:""},rules:{title:[{required:!0,message:"请输入预警标题",trigger:"blur"}],describe:[{required:!0,message:"请输入预警内容",trigger:"blur"}]},seedialogVisible:!1,seewarninginfo:{}}},mounted:function(){this.getPhoteList()},watch:{downBtnState:function(e){1==e&&(this.dataList=[],this.idList=[])}},computed:{userType:function(){return window.sessionStorage.getItem("myuser_type")}},methods:{tosuggest:function(){this.$router.push("/index/suggest-bzy")},stopDefault:function(e,t){-1==this.idList.indexOf(t.id)?(this.idList.push(t.id),this.dataList.push(t)):(this.idList.splice(this.idList.indexOf(t.id),1),this.dataList.splice(this.dataList.indexOf(t.id),1))},handleCheckAllChange:function(e){if(1==e){for(var t=[],a=[],i=0;i<this.photoList.length;i++)t.push(this.photoList[i].id),a.push(this.photoList[i]);this.idList=t,this.dataList=a}else 0==e&&(this.idList=[],this.dataList=[]);this.isIndeterminate=!this.isIndeterminate},equipStatusCheck:function(e){var t=this;if(this.active=e,0==e&&this.equipBtnControl("takephoto"),1==e&&(this.getPhoteList(),0==document.getElementsByClassName("el-message").length&&this.$message.success("图片刷新成功")),2==e&&(this.delBtnState=!1,this.idList=this.photoList.filter(function(e){return 1==e.checked}).map(function(e){return e.id})),3==e&&(0==this.idList.length?0==document.getElementsByClassName("el-message").length&&this.$message.warning("请选择要删除的图片!"):this.delImgFun(this.idList)),4==e&&(this.photoList.map(function(e){e.checked=!1}),this.delBtnState=!0),5==e&&this.delImgFun(""),7==e&&(this.downBtnState=!this.downBtnState),8==e){for(var a=[],i=0;i<this.dataList.length;i++)a.push(this.dataList[i].id);a.length?this.$axios({method:"POST",url:"api/img_download",data:this.qs.stringify({img_id:a.join(","),device_type:7}),headers:{"Content-Type":"application/x-www-form-urlencoded"},responseType:"blob"}).then(function(e){var t=document.createElement("a");t.download="img.zip",t.style.display="none";var a=new Blob([e.data],{type:"application/zip"}),i=URL.createObjectURL(a);t.href=i,document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(i)}).catch(function(){0==document.getElementsByClassName("el-message").length&&t.$message.error("请求图片资源超时,请稍后重试")}):0==document.getElementsByClassName("el-message").length&&this.$message.warning("请选择下载图片")}9==e&&(this.photoList.map(function(e){e.checked=!1}),this.downBtnState=!0,this.isIndeterminate=!0,this.checkAll=!1)},equipBtnControl:function(e){var t=this;this.$axios({method:"POST",url:"/baoziyi/photograph",data:this.qs.stringify({deviceAddr:this.device_id})}).then(function(e){0==e.data.code&&0==document.getElementsByClassName("el-message").length&&t.$message.success("指令下发成功!")})},getPhoteList:function(){var e=this;this.$axios({method:"POST",url:"/baoziyi/imagepage",data:this.qs.stringify({deviceAddr:this.device_id,page:this.queryInfo.page,limit:8,timeBegin:this.queryInfo.begin,timeEnd:this.queryInfo.end})}).then(function(t){if(0==t.data.code){t.data;var a=t.data.data.list;e.photoList=a.map(function(e){return e.checked=!1,e}),e.totalNum=t.data.data.total,e.totalNum}})},changePage:function(e){this.queryInfo.page=e,this.getPhoteList()},DateChange:function(){this.timeRange,this.queryInfo.page=1,this.timeRange?(this.queryInfo.begin=parseInt(new Date(this.timeRange[0]).getTime()/1e3),this.queryInfo.end=parseInt(new Date(this.timeRange[1]).getTime()/1e3)):(this.queryInfo.begin="",this.queryInfo.end=""),this.getPhoteList()},viewDes:function(){var e=this;this.$prompt("图片描述","添加详情",{confirmButtonText:"保存",cancelButtonText:"取消"}).then(function(e){e.value}).catch(function(){e.$message({type:"info",message:"取消输入"})})},delImgFun:function(e){var t=this;this.$confirm("此操作将永久删除该设备图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$axios({method:"POST",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_del",data:t.qs.stringify({device_id:t.device_id,addrlist:s()(e)})}).then(function(e){""==e.data.message&&(0==document.getElementsByClassName("el-message").length&&t.$message({type:"success",message:"删除成功!"}),t.getPhoteList())})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},delectImg:function(e){this.delImgFun([e])},goBackPage:function(){this.$router.go(-1)},downloadFile:function(e){var t=new Blob([e],{type:"application/zip"}),a=window.URL.createObjectURL(t),i=document.createElement("a");i.href=a,i.download="下载图片",i.click(),URL.revokeObjectURL(a)},downPhoto:function(e){var t=this,a=sessionStorage.getItem("myuid"),i=e.join(",");this.$axios({method:"post",url:"/api/api_gateway?method=forecast.worm_lamp.get_task_id",data:this.qs.stringify({image_id:i,myuid:a})}).then(function(e){if(""==e.data.message){t.$message.success("图片下载中!");var a=t;t.cy_id=e.data.data;var i=setInterval(function(){var e=this;a.times>=0?(a.times--,a.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.check_down",data:a.qs.stringify({get_id:a.cy_id})}).then(function(e){e.data.data&&(clearInterval(i),a.$axios({method:"POST",url:"/api/image_down",responseType:"blob",data:a.qs.stringify({get_id:a.cy_id})}).then(function(e){a.downloadFile(e.data)}))}).catch(function(t){return e.$message.error(t)})):(clearInterval(i),a.$message.warning("图片下载失败!"))},1e3)}})},addearly:function(e){this.img_id=e,this.adddialogVisible=!0},amend:function(){var e=this;this.$refs.ruleForm.validate(function(t){if(!t)return!1;e.$axios({method:"POST",url:"/api/api_gateway?method=device.device_picture.bzy_photo_warning_save",data:e.qs.stringify({img_id:e.img_id,title:e.warninginfo.title,describe:e.warninginfo.describe})}).then(function(t){""==t.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message.success("设置成功"),e.adddialogVisible=!1,e.warninginfo={title:"",describe:""}):0==document.getElementsByClassName("el-message").length&&e.$message.error("设置失败")})})}}},Se={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{cursor:"default"}},[i("div",{staticClass:"baselistbox_top"},[i("div",{staticClass:"baselistbox_top_title"},[i("p",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.goBackPage()}}},[i("i",{staticClass:"el-icon-back"}),e._v(" "),i("span",[e._v("返回")])]),e._v(" "),i("p",[e._v("查看图片")])]),e._v(" "),i("p",{staticClass:"baselistbox_top_line"}),e._v(" "),i("div",{staticClass:"baselistbox_top_search"},[i("div",{staticClass:"capzuo_left"},[i("span",[e._v("设备ID:"+e._s(e.device_id))])]),e._v(" "),i("div",{staticClass:"check-btns"},[i("div",{staticClass:"type-check"},[[e.delBtnState?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.equipStatusCheck("2")}}},[e._v("批量删除")]):e._e(),e._v(" "),e.delBtnState?e._e():i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.equipStatusCheck("3")}}},[e._v("删除")]),e._v(" "),e.delBtnState?e._e():i("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.equipStatusCheck("4")}}},[e._v("取消")]),e._v(" "),e.downBtnState?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.equipStatusCheck("7")}}},[e._v("图片下载")]):e._e(),e._v(" "),e.downBtnState?e._e():i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.equipStatusCheck("8")}}},[e._v("下载")]),e._v(" "),e.downBtnState?e._e():i("el-checkbox-button",{attrs:{size:"mini",indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),e.downBtnState?e._e():i("el-button",{staticClass:"quxiao",attrs:{size:"mini"},on:{click:function(t){return e.equipStatusCheck("9")}}},[e._v("取消")]),e._v(" "),i("el-button",{staticClass:"primary",attrs:{size:"mini"},on:{click:e.tosuggest}},[e._v("专家建议")])]],2),e._v(" "),i("div",{staticClass:"search-box"},[i("el-date-picker",{staticStyle:{cursor:"pointer"},attrs:{size:"mini",type:"daterange","range-separator":"至",clearable:"","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},on:{change:e.DateChange},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1)])])]),e._v(" "),i("div",{staticClass:"baselistbox_photo"},[e.photoList.length>0?i("el-row",{directives:[{name:"viewer",rawName:"v-viewer"}],attrs:{gutter:30}},[e.photoList.length?e._e():i("div",{staticClass:"none"},[i("img",{attrs:{src:a("sime"),alt:""}})]),e._v(" "),e._l(e.photoList,function(t){return i("el-col",{key:t.file,attrs:{xs:24,sm:24,md:12,lg:6,xl:6}},[i("div",{staticClass:"photoItem"},[i("div",{staticClass:"photoInfo"},[[i("i",{directives:[{name:"show",rawName:"v-show",value:e.delBtnState&&e.downBtnState,expression:"delBtnState && downBtnState"}],staticClass:"iconfont icon-shanchu",on:{click:function(a){return e.delectImg(t.id)}}}),e._v(" "),i("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:!e.delBtnState||!e.downBtnState,expression:"!delBtnState || !downBtnState"}],staticStyle:{width:"100%",height:"237px"},attrs:{value:-1!=e.idList.indexOf(t.id)},on:{change:function(a){return e.stopDefault(a,t)}}})]],2),e._v(" "),i("div",{staticClass:"photoImg"},[-1!=t.file.indexOf("http")?[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.file,expression:"item.file"}],attrs:{alt:""}})]:[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.file,expression:"item.file"}]})]],2),e._v(" "),i("div",{staticClass:"date",staticStyle:{background:"#fff"}},[i("div",[e._v("\n "+e._s(e._f("formatTime")(t.createDate))+"\n ")]),e._v(" "),i("div",[i("span",{staticStyle:{color:"#4f71ff","margin-left":"15px",cursor:"pointer"},on:{click:function(a){return e.addearly(t.id)}}},[e._v("手动预警")])])])])])})],2):i("div",{staticStyle:{"text-align":"center"}},[i("img",{attrs:{src:a("sime"),alt:""}})]),e._v(" "),i("div",{staticClass:"pagination"},[e.photoList.length>0?i("el-pagination",{attrs:{background:"",layout:"prev, pager, next,jumper",total:e.totalNum,"page-size":8},on:{"current-change":e.changePage}}):e._e()],1)],1),e._v(" "),i("el-dialog",{attrs:{title:"手动预警",visible:e.adddialogVisible,"close-on-click-modal":!1,width:"580px"},on:{"update:visible":function(t){e.adddialogVisible=t}}},[i("div",{staticClass:"addwarnbox"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.warninginfo,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"预警标题",prop:"title"}},[i("el-input",{attrs:{size:"mini",maxlength:"15"},model:{value:e.warninginfo.title,callback:function(t){e.$set(e.warninginfo,"title",t)},expression:"warninginfo.title"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"预警内容",prop:"describe"}},[i("el-input",{attrs:{size:"mini",maxlength:"100",type:"textarea"},model:{value:e.warninginfo.describe,callback:function(t){e.$set(e.warninginfo,"describe",t)},expression:"warninginfo.describe"}})],1)],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(t){e.adddialogVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.amend}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var Ie=a("VU/8")(De,Se,!1,function(e){a("GoMz")},"data-v-3a2d1c1f",null).exports;re()(z.a);var Te={data:function(){return{user_tag:null,id:this.$route.params.e_id,staytime:"",btnSelected:"",timeRange:"",lineTime:"",tableHeadTxt2:[["设备门状态","switchstatus"],["单次移动脉冲采样","pulsecurrent"],["累计脉冲采样","pulsetotal"],["运行模式","controlmode"],["时间","createDate"]],queryInfo:{begin:"",end:"",e_id:this.$route.params.e_id,d_id:this.$route.params.d_id,page:1,page_size:10},tableData:[],total:0,dialogVisible:!1,optionsA:[{value:"选项1",label:"全部"},{value:"选项2",label:"时间段"}],value:"",value1:"",value2:"",timeShow:!1,loadingInstance1:{},loadingInstance2:{},ChartData:[{name:"温度(°C)",dat:[]},{name:"湿度(RH)",dat:[]},{name:"保温仓温度(°C)",dat:[]}],equipStateDict:{},timeScreenData:null,sign:null,refreshload:!1}},created:function(){this.user_tag=localStorage.getItem("user_tag")},mounted:function(){this.equipStateDict=ce.a,this.refreshData(),this.ChartData},computed:{userType:function(){return window.sessionStorage.getItem("myuser_type")},option1:function(){return{chart:{zoomType:"x"},title:{text:"环境温湿度",align:"left"},lang:{noData:"暂无数据"},noData:{style:{fontWeight:"bold",fontSize:"15px",color:"#303030"}},subtitle:{text:""},xAxis:{crosshair:!0,type:"datetime",dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"}},yAxis:{title:{text:""}},legend:{align:"right",verticalAlign:"top"},plotOptions:{series:{label:{connectorAllowed:!1},pointStart:2010}},series:[{name:this.ChartData[0].name,data:this.ChartData[0].dat},{name:this.ChartData[1].name,data:this.ChartData[1].dat}],colors:["#00e29d","#6cbbff","#ff3f3f"],credits:{enabled:!1},tooltip:{shared:!0,headerFormat:"<b>{point.x:%Y-%m-%e %H:%M:%S}</b><br>"},responsive:{rules:[{condition:{maxWidth:500},chartOptions:{legend:{layout:"horizontal",align:"center",verticalAlign:"bottom"}}}]}}},option2:function(){return{chart:{zoomType:"x"},title:{text:"保温仓温度",align:"left"},lang:{noData:"暂无数据"},noData:{style:{fontWeight:"bold",fontSize:"15px",color:"#303030"}},subtitle:{text:""},xAxis:{crosshair:!0,type:"datetime",dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"}},yAxis:{title:{text:""}},legend:{align:"right",verticalAlign:"top"},plotOptions:{series:{label:{connectorAllowed:!1},pointStart:2010}},series:[{name:this.ChartData[2].name,data:this.ChartData[2].dat}],colors:["#00e29d","#6cbbff","#ff3f3f"],credits:{enabled:!1},tooltip:{shared:!0,headerFormat:"<b>{point.x:%Y-%m-%e %H:%M:%S}</b><br>"},responsive:{rules:[{condition:{maxWidth:500},chartOptions:{legend:{layout:"horizontal",align:"center",verticalAlign:"bottom"}}}]}}}},methods:{refreshData:function(){z.a.setOptions({lang:{resetZoom:"刷新",resetZoomTitle:"重置缩放比例"}})},timeScreen:function(e){this.timeScreenData=e},getHisDataList:function(){var e=this;this.$axios({method:"POST",url:"/baoziyi/typepage",data:this.qs.stringify({device_type_id:7,device_id:this.queryInfo.e_id,start_time:this.queryInfo.begin,end_time:this.queryInfo.end,page:this.queryInfo.page,page_size:this.queryInfo.page_size})}).then(function(t){if(0==t.data.code){if(e.total=t.data.data.total,e.tableData=t.data.data.list,e.tableData.length>0)for(var a=0;a<e.tableData.length;a++)e.tableData[a].switchstatus="0"==e.tableData[a].switchstatus?"关闭":"开启",e.tableData[a].controlmode="0"==e.tableData[a].controlmode?"手动":"自动";e.tableData}})},dateChange:function(e){this.queryInfo.page=1,this.queryInfo.begin=e.begin,this.queryInfo.end=e.end,this.getHisDataList()},handleSizeChange:function(e){this.queryInfo.page=1,this.queryInfo.page_size=e,this.getHisDataList()},changePage:function(e){this.queryInfo.page=e,this.getHisDataList()},setWidth:function(e){if("addtime"==e[1])return"180px"},refresh:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.send_control.get_device_config",data:this.qs.stringify({device_type_id:7,d_id:this.queryInfo.d_id,control_type:"data"})}).then(function(t){""==t.data.message?(e.refreshload=!0,setTimeout(function(){e.getHisDataList(),0==document.getElementsByClassName("el-message").length&&e.$message.success("刷新成功"),e.refreshload=!1},2e3)):0==document.getElementsByClassName("el-message").length&&e.$message.err("刷新失败")})},goBackPage:function(){this.$router.go(-1)},deriveData:function(){this.dialogVisible=!0},addData:function(){if(""==this.value||""==this.value1)0==document.getElementsByClassName("el-message").length&&this.$message({message:"请将必填项填写完整",type:"warning",duration:1500});else{var e="",t="";this.value1,"选项2"==this.value1?(e=this.queryInfo.begin,t=this.queryInfo.end):"选项1"==this.value1&&(e="",t="");var a=localStorage.getItem("username");window.location.href=this.$http+"/api/cbd_export?device_id="+this.$route.params.d_id+"&filename="+this.value+"&start_time="+e+"&end_time="+t+"&device_type=7&username="+a}}},components:{DateSearch:le},watch:{value1:function(e){"选项2"==e&&(this.timeShow=!0),"选项1"==e&&(this.timeShow=!1)},dialogVisible:function(e){0==e&&(this.value="",this.value1="",this.value2="",this.timeShow=!1)}}},Be={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{cursor:"default"}},[a("div",{staticClass:"baselistbox_top"},[a("div",{staticClass:"baselistbox_top_title",staticStyle:{cursor:"pointer"}},[a("p",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.goBackPage()}}},[a("i",{staticClass:"el-icon-back"}),e._v(" "),a("span",[e._v("返回")])]),e._v(" "),a("p",[e._v("数据详情")])]),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticClass:"equipInfo"},[a("div",{staticClass:"detail"},[a("span",[e._v("设备ID:"+e._s(e.$route.query.deviceAddr))]),e._v(" "),a("span",[e._v("设备名称:"+e._s(e.$route.query.name))]),e._v(" "),a("span",[e._v("位置:"+e._s(e.$route.query.address))])]),e._v(" "),a("DateSearch",{ref:"timeCirculation",on:{dateChange:e.dateChange,timeScreen:e.timeScreen}})],1)])]),e._v(" "),a("el-card",{staticClass:"box-card"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:""}},e._l(e.tableHeadTxt2,function(t,i){return a("el-table-column",{key:i,attrs:{prop:t[1],label:t[0],"show-overflow-tooltip":!0,width:e.setWidth(t)},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row[t.column.property]))]}}],null,!0)})}),1),e._v(" "),a("div",{staticClass:"pagination"},[e.tableData.length?a("el-pagination",{attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.total,"page-sizes":[10,20,30,50],"page-size":10,"current-page":e.queryInfo.page},on:{"size-change":e.handleSizeChange,"current-change":e.changePage}}):e._e()],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"导出信息",visible:e.dialogVisible,width:"580px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("ul",{staticClass:"iptUl"},[a("li",{staticClass:"iptList"},[a("div",{staticClass:"iptTxt"},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v("文件名称:")]),e._v(" "),a("div",{staticClass:"iptBox"},[a("el-input",{attrs:{placeholder:"请输入文件的名称",size:"mini",clearable:""},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)]),e._v(" "),a("li",{staticClass:"iptList"},[a("div",{staticClass:"iptTxt"},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v("下载类型:")]),e._v(" "),a("div",{staticClass:"iptBox"},[a("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}},e._l(e.optionsA,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)])]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.addData()}}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var Me=a("VU/8")(Te,Be,!1,function(e){a("8raw")},"data-v-92a22b06",null).exports,Pe=a("zjOh"),Le={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"monitor-container",staticStyle:{cursor:"default"}},[e.longtimetf?a("div",{staticClass:"monitor_hint"},[e._m(0),e._v(" "),a("i",{staticClass:"el-icon-close",on:{click:e.guanbilong}})]):e._e(),e._v(" "),a("div",{staticClass:"monitor-wrap"},[a("div",{staticClass:"video-box"},[a("div",{ref:"videoContainerRef",staticClass:"video-container"},[1==e.playType?a("div",{staticClass:"x",staticStyle:{width:"100%",height:"100%"},domProps:{innerHTML:e._s(e.html)}}):e._e(),e._v(" "),0==e.playType?a("div",{staticClass:"v",staticStyle:{width:"100%",height:"100%"}},e._l(e.divNum,function(t){return a("div",{key:e.divNum+t,class:{videoItem:!0,a1:1==e.divNum,a4:4==e.divNum,a9:9==e.divNum,selected:t==e.selected},on:{"!click":function(a){return e.selectVideo(t)}}},[a("div",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"my-video"+t}})])}),0):e._e()]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:0==e.playType,expression:"playType == 0"}],staticClass:"split-screen"},[a("span",{staticClass:"sp sp01",on:{click:function(t){return e.splitView(1)}}}),e._v(" "),a("span",{staticClass:"sp sp02",on:{click:function(t){return e.splitView(4)}}}),e._v(" "),a("span",{staticClass:"sp sp03",on:{click:function(t){return e.splitView(9)}}})])]),e._v(" "),a("div",{staticClass:"nav-box"},[a("div",{staticClass:"inputbox"},[a("el-autocomplete",{attrs:{size:"mini","fetch-suggestions":e.querySearchAsync,placeholder:"请输入设备ID"},on:{select:e.handleSelect},model:{value:e.state,callback:function(t){e.state=t},expression:"state"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.axiosList},slot:"append"})],1)],1),e._v(" "),a("ul",{staticClass:"viewLists"},e._l(e.Idlist,function(t,i){return a("li",{key:i,class:{active:e.activeIndex==i},staticStyle:{border:"1px solid #474e60"},on:{click:function(a){return e.selectEquip(t.device_id,t.jktype,i)}}},[a("span",{class:["dot",1==t.status?"onLine":"outLine"]}),e._v(" "),a("span",{attrs:{title:t.device_id}},[e._v(e._s(e._f("formatName")(t)))]),e._v(" "),a("div",{staticClass:"viewPhoto"},[a("i",{staticClass:"el-icon-picture",on:{click:function(a){return a.stopPropagation(),e.viewPhoto(t.d_id)}}}),e._v(" "),1==t.camera_playback?a("i",{staticClass:"el-icon-video-camera-solid",on:{click:function(a){return a.stopPropagation(),e.toplay(t.device_id)}}}):e._e(),e._v(" "),a("i",{staticClass:"el-icon-s-tools",on:{click:function(a){return a.stopPropagation(),e.setjk(t)}}})])])}),0),e._v(" "),a("div",{staticClass:"splitPage",attrs:{onselectstart:"return false"}},[a("span",{staticClass:"arrow el-icon-caret-top",on:{click:function(t){return e.splitPage("jian")}}}),e._v(" "),a("span",[e._v(e._s(e.currPage))]),e._v(" "),a("span",[e._v("/")]),e._v(" "),a("span",[e._v(e._s(e.totalPage))]),e._v(" "),a("span",{staticClass:"arrow el-icon-caret-bottom",on:{click:function(t){return e.splitPage("jia")}}})]),e._v(" "),a("div",{staticClass:"direc"},[a("div",{staticClass:"cameraCtr",on:{click:function(t){return e.photograph()}}}),e._v(" "),a("div",{staticClass:"upCtr",on:{mousedown:function(t){return e.configCamera("move",0)},mouseup:function(t){return e.stopConfigCamera()}}}),e._v(" "),a("div",{staticClass:"downCtr",on:{mousedown:function(t){return e.configCamera("move",1)},mouseup:function(t){return e.stopConfigCamera()}}}),e._v(" "),a("div",{staticClass:"leftCtr",on:{mousedown:function(t){return e.configCamera("move",2)},mouseup:function(t){return e.stopConfigCamera()}}}),e._v(" "),a("div",{staticClass:"rightCtr",on:{mousedown:function(t){return e.configCamera("move",3)},mouseup:function(t){return e.stopConfigCamera()}}})]),e._v(" "),a("div",{staticClass:"btnBox"},[a("div",{staticClass:"zoom"},[a("span",{staticClass:"addCtr",on:{mousedown:function(t){return e.configCamera("move",8)},mouseup:function(t){return e.stopConfigCamera()}}}),e._v(" "),a("span",{staticClass:"reduceCtr",on:{mousedown:function(t){return e.configCamera("move",9)},mouseup:function(t){return e.stopConfigCamera()}}})]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.jktype,expression:"jktype == 1"}],staticClass:"playBack",attrs:{id:"playBack"},on:{click:function(t){e.playBackDialogVisible=!0}}}),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.playType,expression:"playType == 1"}],staticClass:"playtype0",on:{click:function(t){return e.checkPlayType(0)}}}),e._v(" "),a("div",{staticClass:"addequip",on:{click:function(t){return e.addEquip()}}})])])]),e._v(" "),a("el-dialog",{attrs:{title:"手动下载",visible:e.takePhotoDialogVisible,width:"30%"},on:{"update:visible":function(t){e.takePhotoDialogVisible=t}}},[a("el-input",{attrs:{type:"textarea",id:"picUrl"},model:{value:e.picUrl,callback:function(t){e.picUrl=t},expression:"picUrl"}}),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.takePhotoDialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.copyPicUrl}},[e._v("复制")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"查看回放",visible:e.playBackDialogVisible,width:"600px"},on:{"update:visible":function(t){e.playBackDialogVisible=t},close:e.palyBackClose}},[a("el-form",{ref:"backFormRef",attrs:{model:e.backForm,rules:e.backFormRules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"时间范围",prop:"time"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.backForm.time,callback:function(t){e.$set(e.backForm,"time",t)},expression:"backForm.time"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"default"},on:{click:function(t){e.playBackDialogVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.playBackSubmit}},[e._v("确定")])],1)],1),e._v(" "),a("div",{attrs:{id:"videoBack"}},[a("div",{attrs:{id:"playWind"}})])],1),e._v(" "),a("el-dialog",{attrs:{title:"添加设备",visible:e.addEquipment,width:"580px","before-close":e.handleClose,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.addEquipment=t}}},[a("div",{staticClass:"facility_box"},[a("ul",{staticStyle:{width:"100%",display:"flex","justify-content":"space-around",padding:"0",margin:"0"}},e._l(e.tltArray,function(t,i){return a("li",{key:i,class:e.stepIndex==i?"addClass":"",staticStyle:{padding:"10px 0 10px 0",width:"50%","text-align":"center"},on:{click:function(t){return e.next(i)}}},[e._v("\n "+e._s(t.name)+"\n ")])}),0),e._v(" "),0==e.stepIndex?a("div",{staticClass:"facility_boxOne"},[a("div",{staticStyle:{display:"flex",width:"80%",margin:"15px auto"}},[a("span",{staticStyle:{width:"136px","text-align":"right","line-height":"35px",margin:"0 15px 0 0"}},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v(" 账号:")]),e._v(" "),a("el-input",{attrs:{placeholder:"请输入账号",clearable:""},model:{value:e.FluoriteClouduser,callback:function(t){e.FluoriteClouduser=t},expression:"FluoriteClouduser"}})],1),e._v(" "),a("div",{staticStyle:{display:"flex",width:"80%",margin:"15px auto"}},[a("span",{staticStyle:{width:"136px","text-align":"right","line-height":"35px",margin:"0 15px 0 0"}},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v(" 业务员名称:")]),e._v(" "),a("el-input",{attrs:{placeholder:"请输入账号所相关的业务员名称",clearable:""},model:{value:e.salesman,callback:function(t){e.salesman=t},expression:"salesman"}})],1),e._v(" "),a("div",{staticStyle:{display:"flex",width:"80%",margin:"15px auto"}},[a("span",{staticStyle:{width:"136px","text-align":"right","line-height":"35px",margin:"0 15px 0 0"}},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v(" token:")]),e._v(" "),a("el-input",{attrs:{placeholder:"请输入token",clearable:""},model:{value:e.tokenData,callback:function(t){e.tokenData=t},expression:"tokenData"}})],1),e._v(" "),a("div",{staticStyle:{display:"flex",width:"80%",margin:"15px auto"}},[a("span",{staticStyle:{width:"136px","text-align":"right","line-height":"35px",margin:"0 15px 0 0"}},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v(" appkey:")]),e._v(" "),a("el-input",{attrs:{placeholder:"请输入秘钥",clearable:""},model:{value:e.secretKey,callback:function(t){e.secretKey=t},expression:"secretKey"}})],1),e._v(" "),a("div",{staticStyle:{display:"flex",width:"80%",margin:"15px auto"}},[a("span",{staticStyle:{width:"136px","text-align":"right","line-height":"35px",margin:"0 15px 0 0"}},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v(" appSecret:")]),e._v(" "),a("el-input",{attrs:{placeholder:"请输入appSecret",clearable:""},model:{value:e.furtiveData,callback:function(t){e.furtiveData=t},expression:"furtiveData"}})],1)]):1==e.stepIndex?a("div",{staticClass:"facility_boxTwo"},[a("div",{staticStyle:{display:"flex",width:"80%",margin:"15px auto"}},[a("span",{staticStyle:{width:"130px","text-align":"right","line-height":"35px",margin:"0 15px 0 0"}},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v(" 萤石云账号id")]),e._v(" "),a("el-select",{staticStyle:{width:"410px"},attrs:{placeholder:"请选择萤石云账号id",clearable:""},model:{value:e.FluoriteClouduserID,callback:function(t){e.FluoriteClouduserID=t},expression:"FluoriteClouduserID"}},e._l(e.userNameID,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("div",{staticStyle:{display:"flex",width:"80%",margin:"15px auto"}},[a("span",{staticStyle:{width:"130px","text-align":"right","line-height":"35px",margin:"0 15px 0 0"}},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v(" 设备id")]),e._v(" "),a("el-input",{staticStyle:{width:"410px"},attrs:{placeholder:"请输入设备id",clearable:""},model:{value:e.equipmentID,callback:function(t){e.equipmentID=t},expression:"equipmentID"}})],1),e._v(" "),a("div",{staticStyle:{display:"flex",width:"80%",margin:"15px auto"}},[a("span",{staticStyle:{width:"130px","text-align":"right","line-height":"35px",margin:"0 15px 0 0"}},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v(" 通道")]),e._v(" "),a("el-select",{staticStyle:{width:"410px"},attrs:{placeholder:"请选择设备通道号",clearable:""},model:{value:e.equipmentNumber,callback:function(t){e.equipmentNumber=t},expression:"equipmentNumber"}},e._l(e.equipmentChannel,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("div",{staticStyle:{display:"flex",width:"91%",margin:"15px auto"}},[a("span",{staticStyle:{width:"130px","text-align":"right","line-height":"24px",margin:"0 15px 0 0"}},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v(" 回放")]),e._v(" "),a("el-switch",{staticStyle:{display:"block"},attrs:{"active-color":"#4f71ff","inactive-color":"#ff4949","active-text":"支持回放功能","inactive-text":"不支持回放功能"},model:{value:e.playback,callback:function(t){e.playback=t},expression:"playback"}})],1)]):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[0==e.stepIndex?a("div",[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.addEquipment=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.FluoriteClouduserAdd}},[e._v("确 定")])],1):e._e(),e._v(" "),1==e.stepIndex?a("div",[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.addEquipment=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.addConfirm}},[e._v("确 定")])],1):e._e()])]),e._v(" "),a("el-dialog",{attrs:{title:"绑定SIM",visible:e.addEquipmentA,width:"580px"},on:{"update:visible":function(t){e.addEquipmentA=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.simloading,expression:"simloading"}]},[a("div",{staticStyle:{display:"flex",width:"80%",margin:"15px auto"}},[a("span",{staticStyle:{width:"75px","text-align":"right","line-height":"35px",margin:"0 15px 0 0"}},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v("设备id\n ")]),e._v(" "),a("el-select",{staticStyle:{width:"410px"},attrs:{filterable:"",remote:"","reserve-keyword":"",placeholder:"请输入关键词","remote-method":e.remoteMethod,loading:e.loading,size:"mini"},on:{change:e.bangDsimIdselect},model:{value:e.bangDsimId,callback:function(t){e.bangDsimId=t},expression:"bangDsimId"}},e._l(e.bangDsimoptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("div",{staticStyle:{display:"flex",width:"80%",margin:"15px auto"}},[a("span",{staticStyle:{width:"75px","text-align":"right","line-height":"35px",margin:"0 15px 0 0"}},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v("ICCID")]),e._v(" "),a("el-input",{staticStyle:{width:"412px"},attrs:{placeholder:"请输入iccid",clearable:"",size:"mini"},model:{value:e.equipmentValue,callback:function(t){e.equipmentValue=t},expression:"equipmentValue"}})],1),e._v(" "),a("div",{staticStyle:{width:"50%",margin:"15px auto"}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.addEquipment=!1,e.addEquipmentBfirm()}}},[e._v("查 询")])],1)]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.addEquipmentA=!1,e.addCancel()}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.addEquipment=!1,e.addConfirmSIM()}}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"SIM卡",visible:e.simCodeVisible,width:"30%"},on:{"update:visible":function(t){e.simCodeVisible=t}}},[a("div",{staticClass:"simCodeBox"},[a("div",[a("span",{staticClass:"simCodeTitle"},[e._v("ICCID:")]),e._v(" "),a("div",[e._v(e._s(e.sim.iccid))])]),e._v(" "),a("div",[a("span",{staticClass:"simCodeTitle"},[e._v("状态:")]),e._v(" "),2==e.code?a("div",[e._v(e._s(e.sim.account_status))]):e._e(),e._v(" "),1==e.code?a("div",[e._v(e._s(e.sim.deviceStatus))]):e._e()]),e._v(" "),a("div",[a("span",{staticClass:"simCodeTitle"},[e._v("套餐:")]),e._v(" "),a("div",[a("el-progress",{attrs:{"show-text":!1,percentage:100}})],1),e._v(" "),2==e.code?a("span",[e._v(e._s(e.sim.data_plan)+"MB")]):e._e(),e._v(" "),1==e.code?a("span",[e._v(e._s(e.sim.totalDataVolume))]):e._e()]),e._v(" "),a("div",[a("span",{staticClass:"simCodeTitle"},[e._v("已用流量:")]),e._v(" "),2==e.code?a("div",[a("el-progress",{attrs:{"show-text":!1,percentage:100}})],1):e._e(),e._v(" "),2==e.code?a("span",[e._v(e._s(e.sim.data_usage)+"MB")]):e._e(),e._v(" "),1==e.code?a("div",[a("el-progress",{attrs:{"show-text":!1,percentage:e.sim.dataUsage}})],1):e._e(),e._v(" "),1==e.code?a("span",[e._v(e._s(e.sim.dataUsage.toFixed(2))+"MB")]):e._e()]),e._v(" "),a("div",[a("span",{staticClass:"simCodeTitle"},[e._v("到期时间:")]),e._v(" "),1==e.code?a("div",[e._v(e._s(e.sim.expireDate))]):e._e(),e._v(" "),2==e.code?a("div",[e._v("\n "+e._s(e._f("formatTime")(1e3*e.sim.expiry_date))+"\n ")]):e._e()]),e._v(" "),a("div",{staticClass:"operateBtn"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.simCodeVisible=!1}}},[e._v("关闭")])],1)])]),e._v(" "),a("el-dialog",{attrs:{title:"设备控制",visible:e.jkcondialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.jkcondialogVisible=t}}},[a("div",{staticClass:"jkconbox"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.jkconinfo,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"设备名称",prop:"name"}},[a("el-input",{attrs:{size:"mini",maxlength:10},model:{value:e.jkconinfo.name,callback:function(t){e.$set(e.jkconinfo,"name",t)},expression:"jkconinfo.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备状态",prop:"onoff"}},[a("el-radio-group",{model:{value:e.jkconinfo.onoff,callback:function(t){e.$set(e.jkconinfo,"onoff",t)},expression:"jkconinfo.onoff"}},[a("el-radio",{attrs:{label:"on"}},[e._v("开")]),e._v(" "),a("el-radio",{attrs:{label:"off"}},[e._v("关")])],1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"on"==e.jkconinfo.onoff,expression:"jkconinfo.onoff == 'on'"}],attrs:{label:"开始结束时间"}},[a("el-col",{attrs:{span:11}},[a("el-form-item",{attrs:{prop:"statetime"}},[a("el-time-select",{attrs:{size:"mini","picker-options":{start:"00:00",step:"01:00",end:"23:00"},placeholder:"选择时间"},model:{value:e.jkconinfo.statetime,callback:function(t){e.$set(e.jkconinfo,"statetime",t)},expression:"jkconinfo.statetime"}})],1)],1),e._v(" "),a("el-col",{staticClass:"line",attrs:{span:2}},[e._v("-")]),e._v(" "),a("el-col",{attrs:{span:11}},[a("el-form-item",{attrs:{prop:"endtime"}},[a("el-time-select",{attrs:{size:"mini","picker-options":{start:"00:00",step:"01:00",end:"23:00"},placeholder:"选择时间"},model:{value:e.jkconinfo.endtime,callback:function(t){e.$set(e.jkconinfo,"endtime",t)},expression:"jkconinfo.endtime"}})],1)],1)],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.jkcondialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.jkprimary}},[e._v("确 定")])],1)])],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"monitor_hint_text"},[t("img",{attrs:{src:a("Cy8b"),alt:""}}),this._v(" "),t("p",[this._v("\n 您已持续观看监控很久了,长时间观看监控会耗尽物联网卡流量,请您注意\n ")])])}]};var Re=function(e){a("1stn")},Ne=a("VU/8")(Pe.a,Le,!1,Re,"data-v-f8792118",null).exports,Oe={data:function(){return{timeRange:"",imei:"",page:1,page_size:8,images:[],zanwu:"/images/expertDiagnosis/zanwu.png",begin:"",end:"",total:null}},computed:{userType:function(){return window.sessionStorage.getItem("myuser_type")}},mounted:function(){this.imei=this.$route.params.id,this.getImageList()},methods:{goBackPage:function(){this.$router.go(-1)},getImageList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.camera_photo",data:this.qs.stringify({device_id:this.imei,page:this.page,page_size:this.page_size,start_time:this.begin,end_time:this.end})}).then(function(t){null!==t.data.data?(e.total=t.data.data.counts,e.images=t.data.data.data):(e.total=0,e.images=[])}).catch(function(e){})},timeRangChange:function(){this.page=1,this.timeRange?(this.begin=parseInt(new Date(this.timeRange[0]).getTime()/1e3),this.end=parseInt(new Date(this.timeRange[1]).getTime()/1e3)):(this.begin="",this.end=""),this.getImageList()},delPhoto:function(e){var t=this,a=[];a.push(e.photo_id),this.$confirm("此操作将删除该图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e=s()(a);e=(e=e.replace("[","")).replace("]","");var i=t.qs.stringify({photo_id_list:e});t.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.del_camera_photo",data:i}).then(function(e){0==document.getElementsByClassName("el-message").length&&t.$message({type:"success",message:"删除成功!"}),t.images=[],t.getImageList()}).catch(function(e){0==document.getElementsByClassName("el-message").length&&t.$message({type:"info",message:"已取消删除"})})}).catch(function(){})},changePage:function(e){this.page=e,this.getImageList()},handleSizeChange:function(e){this.page=1,this.page_size=e,this.getImageList()}}},qe={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{cursor:"default"}},[i("div",{staticClass:"baselistbox_top"},[i("div",{staticClass:"baselistbox_top_title",staticStyle:{cursor:"pointer"}},[i("p",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.goBackPage()}}},[i("i",{staticClass:"el-icon-back"}),e._v(" "),i("span",[e._v("返回")])]),e._v(" "),i("p",[e._v("查看图片")])]),e._v(" "),i("p",{staticClass:"baselistbox_top_line"}),e._v(" "),i("div",{staticClass:"baselistbox_top_search"},[i("div",{staticClass:"opt-box"},[i("div",[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.getImageList()}}},[e._v("刷新")])],1),e._v(" "),i("el-date-picker",{attrs:{size:"small",align:"right",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.timeRangChange},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1)])]),e._v(" "),i("div",{staticClass:"baselistbox_photo"},[i("el-row",{staticClass:"imglistbox",attrs:{gutter:20}},[i("viewer",{staticClass:"images clearfix",attrs:{images:e.images},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.images,function(t,a){return i("el-col",{key:a,attrs:{span:6}},[i("el-card",{staticStyle:{height:"272px"}},[i("img",{staticClass:"image",attrs:{src:t.addr,id:"viewerDom"}}),e._v(" "),i("div",{staticClass:"bottom"},[e._v("\n "+e._s(e._f("formatTime")(1e3*t.addtime))+"\n ")])])],1)})}}])}),e._v(" "),e.images.length<=0?i("div",{staticClass:"expertDiagnosis_referral_units_not"},[i("img",{staticClass:"expertDiagnosis_referral_units_notImg",attrs:{src:a("sime"),alt:""}})]):e._e()],1),e._v(" "),e.images.length>0?i("div",{staticClass:"pagination"},[i("el-pagination",{attrs:{background:"",layout:"prev, pager, next,jumper",total:e.total,"page-size":8,"current-page":e.page},on:{"current-change":e.changePage}})],1):e._e()],1)])},staticRenderFns:[]};var ze=a("VU/8")(Oe,qe,!1,function(e){a("N5Vv")},"data-v-19586ca1",null).exports,Fe={components:{},data:function(){return{baseid:"",player:null,playerOption:{url:"",kitToken:"",autoplay:!0,controls:!0,automute:!1,themeData:[{area:"header",fontColor:"#F18D00",backgroundColor:"#FFFFFF",activeButtonColor:"#0E72FF",buttonList:[{show:!0,id:"deviceName",name:"设备名称",position:"left"},{show:!0,id:"channalId",name:"设备通道",position:"left"},{show:!0,id:"cloudVideo",name:"云录像",position:"right"},{show:!0,id:"localVideo",name:"本地录像",position:"right"}]},{area:"footer",fontColor:"#F18D00",backgroundColor:"#FFFFFF",activeButtonColor:"#0E72FF",buttonList:[{show:!0,id:"play",name:"播放",position:"left"},{show:!0,id:"mute",name:"音量控制",position:"left"},{show:!0,id:"talk",name:"语音对讲",position:"left"},{show:!0,id:"capture",name:"截图",position:"left"},{show:!0,id:"definition",name:"清晰度控制",position:"right"},{show:!0,id:"PTZ",name:"云台控制",position:"right"},{show:!0,id:"webExpend",name:"网页全屏",position:"right"},{show:!0,id:"extend",name:"全屏控制",position:"right"}]}]}}},computed:{},watch:{},methods:{goBackPage:function(){this.$router.go(-1)},getmontoken:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.get_camera_dh_token",data:this.qs.stringify({device_id:this.baseid})}).then(function(t){if(t.data.data){var a="imou://open.lechange.com/"+e.baseid.slice(0,e.baseid.indexOf("-"))+"/"+e.baseid.slice(e.baseid.indexOf("-")+1)+"/2?streamId=1&recordType=localRecord";e.playerOption.url=a;var i=t.data.data.result.data.kitToken;e.playerOption.kitToken=i,e.initLive()}})},initLive:function(){var e=this;this.player&&this.player.destroy(),this.player=new ImouPlayer("#playbox");var t=this.playerOption.url,a=this.playerOption.kitToken,i=[];t.split("%").forEach(function(e,t){var n={url:e,kitToken:a,talk:{success:function(e){},failed:function(e){}}};i.push(n)});var n=document.getElementById("wrap"),l=this.checkMobile()?n.clientWidth:window.innerWidth,s=this.checkMobile()?parseInt(7.5*l/16):window.innerHeight,r={src:i,width:l,height:s,isEdit:this.playerOption.isEdit,autoplay:this.playerOption.autoplay,controls:this.playerOption.controls,automute:this.playerOption.automute,themeData:this.playerOption.themeData};setTimeout(function(){e.player.setup(r)},1e3)},checkMobile:function(){return!0}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.baseid=this.$route.query.id,this.getmontoken()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},Ue={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"baselistbox_top"},[a("div",{staticClass:"baselistbox_top_title"},[a("p",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.goBackPage()}}},[a("i",{staticClass:"el-icon-back"}),e._v(" "),a("span",[e._v("返回")])]),e._v(" "),a("p",[e._v("监控回放")])])]),e._v(" "),e._m(0)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{height:"430px"},attrs:{id:"wrap"}},[t("div",{attrs:{id:"playbox"}})])}]};var We=a("VU/8")(Fe,Ue,!1,function(e){a("P9Ae")},"data-v-f2a29e02",null).exports,Ve={filters:{ellipsisname:function(e){return e?e.length>10?e.slice(0,10)+"...":e:""},ellipsis:function(e){return e?e.length>14?e.slice(0,13)+"...":e:""},subDeviceId:function(e){return e?e.substring(e.length-6):""}},components:{},data:function(){return{queryInfo:{page_size:"10",page:"1",is_online:"",f_id:"",pagekey:1},options:[{value:"",label:"全部"},{value:"1",label:"在线"},{value:"0",label:"离线"}],equipList:[],loading:!1,setDialogVisible:!1,parameterLoading:!1,setFrom:{interval:0},equipInfo:{},setDialogTxt:"请求中",simCodeVisible:!1,phoneNumberA:"",tableData:[],simLoading:!1,id:"",totalNum:0,isWarningList:!1,warningList:[],onewarning:{warning_status:"",device_id:""},hjjcWarningPage:""}},computed:{},watch:{},methods:{getEquipList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_page",data:this.qs.stringify({page:this.queryInfo.page,device_id:this.queryInfo.f_id,page_size:this.queryInfo.page_size,device_status:this.queryInfo.is_online,device_type:"8"})}).then(function(t){if(t.data){var a=e;e.equipList=[];var i=t.data.data.ids;i.length>0?e.equipList=i:a.equipList=[],e.equipList,e.totalNum=Number(t.data.data.nums)}e.loading=!1}).catch(function(){e.$message.error("获取数据失败!"),e.loading=!1})},handleSizeChange:function(e){this.queryInfo.page_size=e,this.getEquipList()},handleCurrentChange:function(e){this.queryInfo.page=e,this.getEquipList()},searchChange:function(){this.queryInfo.page=1,this.queryInfo.pagekey=10*Math.random()+1,this.getEquipList()},empty:function(){this.queryInfo.page=1,this.queryInfo.pagekey=10*Math.random()+1,this.queryInfo.is_online="",this.queryInfo.f_id="",this.getEquipList()},equipSet:function(e,t,a){var i=this;this.equipInfo={d_id:e,equip_id:t,equip_name:a},this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.send_control.device_control_info",data:this.qs.stringify({d_id:e,cmd:"config"})}).then(function(e){e.data.data,e.data.data?(i.setFrom.interval=e.data.data.interval,1==e.data.data.admin?i.upgradeTF=!0:i.upgradeTF=!1):(0==document.getElementsByClassName("el-message").length&&i.$message({message:e.data.message,type:"warning",duration:1500,customClass:"zZindex"}),i.upgradeTF=!1),i.setDialogVisible=!0})},equipControlDialogClosed:function(){this.setFrom={content:"",timeout:null,interval:0}},equipSetSubm:function(){var e=this;this.setFrom,this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.send_control.device_control",data:this.qs.stringify({device_type_id:8,d_id:this.equipInfo.d_id,config:s()(this.setFrom),device_name:this.equipInfo.equip_name})}).then(function(t){""==t.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message.success("操作成功"),e.getEquipList()):0==document.getElementsByClassName("el-message").length&&e.$message.err("操作失败"),e.setDialogVisible=!1})},showTimeControlDialog:function(e,t){this.device_id=t,this.$router.push({path:"/index/pestsStats",query:{d_id:e,identify_model:"A"}})},dataWarning:function(e){this.simCodeVisible=!0,this.warningAxios(e),this.id=e},warningAxios:function(e){var t=this,a=this;a.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_early_warning",data:a.qs.stringify({device_id:e,status:"see",alarm:"",device_type:"8"})}).then(function(e){var i=e.data.data.conf,n=[],l=P()(i).length;if(e.data.data.alarm){var s=e.data.data.alarm;t.phoneNumber=s}else{s={};t.phoneNumber=s}a.phoneNumberA=e.data.data.phone;for(var r=1;r<=l;r++){var o="e"+r;if(i[o]){var u=i[o].split("#")[0];if(s.dat)if(s.dat[o])var c=0!=s.dat[o].split("#")[0],d=s.dat[o].split("#")[1];else c=!1,d="";n.push({ekey:o,name:u,type:c,alarmVal:d})}}t.tableData=n}).catch(function(e){})},confirmPhone:function(){var e=this,t=this.phoneNumberA;if(""==t)alert("手机号码不能为空"),0==document.getElementsByClassName("el-message").length&&this.$message({message:"手机号码不能为空",type:"warning",duration:1500});else if(/^[1][345789]\d{9}$/.test(t)&&/^[1-9]\d*$/.test(t)&&11===t.length){for(var a={},i={},n=0;n<this.tableData.length;n++){var l=1==this.tableData[n].type?1:0,r=void 0==this.tableData[n].alarmVal?"":this.tableData[n].alarmVal;i["e"+(n+1)]=l+"#"+r}a.dat=i,a.tel=this.phoneNumberA,a.equip_id="";var o=this.qs.stringify({device_id:this.id,status:"save",alarm:s()(a)});this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_early_warning",data:o}).then(function(t){0==t.data.data.code?0==document.getElementsByClassName("el-message").length&&e.$message({message:"设置成功",type:"success",duration:1500}):0==document.getElementsByClassName("el-message").length&&e.$message({message:"设置失败",type:"error",duration:1500})}).catch(function(t){0==document.getElementsByClassName("el-message").length&&e.$message({message:"设置失败",type:"error",duration:1500})})}else 0==document.getElementsByClassName("el-message").length&&this.$message({message:"手机号码不符合规范",type:"warning",duration:1500})},renderHeader:function(e,t){return e("div",[e("span",t.column.label),e("i",{class:"el-icon-edit",style:"color:#409eff;margin-left:5px;"})])},check24Data:function(e){this.$router.push("/index/sqzData24/"+e)},goHistoryData:function(e,t){this.itemId=e,this.$router.push("/index/sqzHistoryData/"+e+"/"+t)},showWarningInfo:function(){this.isWarningList=!this.isWarningList},oneWarningList:function(){this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.qxz_warning",data:this.qs.stringify({status:"yes",device_type:"8"})}).then(function(e){e.data.data})},yidu:function(e){this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.qxz_warning",data:this.qs.stringify({d_id:e,device_type:"8"})}).then(function(e){e.data.data,e.data.data})},hjjcWarningList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.qxz_warning",data:this.qs.stringify({page:this.hjjcWarningPage,device_type:"8"})}).then(function(t){for(var a=t.data.data.data,i=0;i<a.length;i++)e.warningList.push(a[i]);e.onewarning=e.warningList[0]})},load:function(){this.hjjcWarningPage++,this.hjjcWarningList()},setData:function(e,t,a,i){var n=e.split("#")[1];return"当前"+e.replace("#",t)+a.replace("预警","用户设置预警值")+i+n}},beforeCreate:function(){},created:function(){this.getEquipList(),this.hjjcWarningList()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},je={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"baselistbox"},[a("div",{staticClass:"baselistbox_top"},[a("div",{staticClass:"baselistbox_top_title"},[a("p",[e._v("墒情监测")]),e._v(" "),0!==e.warningList.length?a("div",{staticClass:"warningInfo"},[a("div",{staticClass:"title",on:{click:e.showWarningInfo}},[a("div",[a("i",{staticClass:"iconfont el-icon-s-order",staticStyle:{"margin-right":"10px"}}),e._v(e._s(e._f("subDeviceId")(e.onewarning.device_id))+"\n "+e._s(e.onewarning.warning_content)+"\n ")]),e._v(" "),a("i",{staticClass:"el-icon-bell"})]),e._v(" "),e.isWarningList?a("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.load,expression:"load"}],staticClass:"warningInfoList",attrs:{"infinite-scroll-delay":"200","infinite-scroll-immediate":"false"}},[a("li",{on:{click:function(t){return e.oneWarningList()}}},[e._m(0)]),e._v(" "),e._l(e.warningList,function(t,i){return a("li",{key:i},[a("el-popover",{attrs:{placement:"left",trigger:"click"}},[a("div",{staticStyle:{padding:"5px 0px",width:"500px"}},[e._v("\n 设备编号:"+e._s(t.device_id)+"\n ")]),e._v(" "),a("div",{staticStyle:{padding:"5px 0px",width:"500px","line-height":"30px"}},[e._v("\n 详细信息:"+e._s(e.setData(t.ekey,t.current_value,t.warning_content,t.set_value))+"\n ")]),e._v(" "),a("el-button",{staticStyle:{"background-color":"transparent"},attrs:{slot:"reference"},on:{click:function(a){return e.yidu(t.d_id)}},slot:"reference"},[0==t.status?a("i",{staticClass:"circle"}):e._e(),e._v(" "),a("div",{class:0==t.status?"active":"",staticStyle:{width:"60%","text-align":"left"}},[e._v("\n "+e._s(e._f("subDeviceId")(t.device_id))+"\n "+e._s(t.warning_content)+"\n ")]),e._v(" "),a("span",{class:0==t.status?"active":""},[e._v(e._s(e._f("formatTime")(1e3*t.upltime)))])])],1)],1)})],2):e._e()]):e._e()]),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticClass:"left_search"},[a("div",{staticClass:"firstsearch"},[a("span",{staticClass:"biaoti"},[e._v("设备ID或名称")]),e._v(" "),a("el-input",{attrs:{size:"mini",placeholder:"请输入设备ID或名称"},model:{value:e.queryInfo.f_id,callback:function(t){e.$set(e.queryInfo,"f_id",t)},expression:"queryInfo.f_id"}})],1),e._v(" "),a("div",{staticClass:"secsearch"},[a("span",{staticClass:"biaoti"},[e._v("设备状态")]),e._v(" "),a("el-select",{attrs:{size:"mini",filterable:"",placeholder:"请选择"},model:{value:e.queryInfo.is_online,callback:function(t){e.$set(e.queryInfo,"is_online",t)},expression:"queryInfo.is_online"}},e._l(e.options,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)]),e._v(" "),a("div",{staticClass:"right_search"},[a("div",{staticClass:"btnbox",on:{click:e.searchChange}},[e._v("查询")]),e._v(" "),a("div",{staticClass:"btnbox2",on:{click:e.empty}},[e._v("重置")])])])]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.equipList,stripe:"",height:"560px","default-sort":{order:"uptime"}}},[a("el-table-column",{attrs:{label:"设备名称",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("ellipsisname")(""==t.row.equip_name?"无":t.row.equip_name)))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"equip_id",label:"设备ID",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"volt",label:"电压(V)",width:"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"rssi",label:"信号强度",width:"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"uptime",sortable:"",label:"最新上报时间",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatTime")(1e3*t.row.uptime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"地址",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("ellipsis")(t.row.address||"无")))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"350",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.equipSet(t.row.d_id,t.row.equip_id,t.row.equip_name)}}},[e._v("设备控制")]),e._v(" "),a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.check24Data(t.row.equip_id)}}},[e._v("24小时数据")]),e._v(" "),a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.goHistoryData(t.row.equip_id,t.row.d_id)}}},[e._v("历史数据")]),e._v(" "),a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.dataWarning(t.row.equip_id)}}},[e._v("预警设置")])]}}])})],1),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{key:e.queryInfo.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalNum,"page-sizes":[10,20,30,50],"page-size":e.queryInfo.page_size,"current-size":e.queryInfo.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){return e.$set(e.queryInfo,"page",t)},"update:current-size":function(t){return e.$set(e.queryInfo,"page",t)}}})],1)],1),e._v(" "),a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.parameterLoading,expression:"parameterLoading"}],attrs:{title:"设备控制",visible:e.setDialogVisible,width:"600px","element-loading-text":e.setDialogTxt,"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.setDialogVisible=t},close:e.equipControlDialogClosed}},[a("div",{staticClass:"set_item"},[a("span",[e._v("设备编号")]),a("span",[e._v(e._s(e.equipInfo.equip_id))])]),e._v(" "),a("div",{staticClass:"set_item"},[a("span",[e._v("设备名称")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{size:"mini",placeholder:"请输入内容",maxlength:10},model:{value:e.equipInfo.equip_name,callback:function(t){e.$set(e.equipInfo,"equip_name",t)},expression:"equipInfo.equip_name"}})],1),e._v(" "),a("div",{staticClass:"tit"},[e._v("上传时间间隔")]),e._v(" "),a("div",{staticClass:"set_item"},[a("span",[e._v("上传时间间隔")]),e._v(" "),a("div",{staticClass:"sliderParent",staticStyle:{"margin-left":"8px"}},[a("div",{staticClass:"block"},[a("el-slider",{attrs:{"show-input":"",min:1,max:359,size:"mini"},model:{value:e.setFrom.interval,callback:function(t){e.$set(e.setFrom,"interval",t)},expression:"setFrom.interval"}})],1)]),e._v(" "),a("span",{staticStyle:{"margin-left":"15px"}},[e._v("min")])]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.setDialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.equipSetSubm()}}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"短信预警",visible:e.simCodeVisible,width:"570px"},on:{"update:visible":function(t){e.simCodeVisible=t}}},[[a("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:e.simLoading,expression:"simLoading"}],attrs:{"element-loading-text":"数据请求中"}},[a("div",{staticClass:"warningMessage-box"},[a("div",{staticClass:"warningMessage-phone"},[e._v("预警手机号")]),e._v(" "),a("el-input",{staticClass:"warningMessage-ipt",attrs:{placeholder:"请输入手机号",maxlength:"11",clearable:"",size:"mini"},model:{value:e.phoneNumberA,callback:function(t){e.phoneNumberA=t},expression:"phoneNumberA"}}),e._v(" "),a("el-button",{staticClass:"warningMessage-btn",attrs:{type:"primary",size:"mini"},on:{click:e.confirmPhone}},[e._v("确定")])],1),e._v(" "),a("el-table",{staticStyle:{width:"100%",margin:"0.25rem 0 0 0"},attrs:{data:e.tableData,border:""}},[a("el-table-column",{attrs:{prop:"ekey",label:"通道号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"要素"}}),e._v(" "),a("el-table-column",{attrs:{prop:"type",label:"类型",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{staticClass:"switch",attrs:{"active-text":"大于","inactive-text":"小于","active-color":"#13ce66","inactive-color":"#ff4949"},on:{change:function(a){return e.switchChangeFin(t.$index,t.row.type)}},model:{value:t.row.type,callback:function(a){e.$set(t.row,"type",a)},expression:"scope.row.type"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{"render-header":e.renderHeader,prop:"alarmVal",label:"阈值",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"warningMessage-ipt",attrs:{type:"number",clearable:""},model:{value:t.row.alarmVal,callback:function(a){e.$set(t.row,"alarmVal",a)},expression:"scope.row.alarmVal"}})]}}])})],1)],1)]],2)],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{"padding-left":"10px"}},[t("i",{staticClass:"iconfont el-icon-s-promotion"}),this._v("一键已读\n ")])}]};var He=a("VU/8")(Ve,je,!1,function(e){a("Kfro")},"data-v-55734785",null).exports,Ke=a("ZKrL"),Ye={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"data24box"},[a("div",{staticClass:"baselistbox_top"},[a("div",{staticClass:"baselistbox_top_title"},[a("p",{staticStyle:{cursor:"pointer"},on:{click:e.backtrack}},[a("i",{staticClass:"el-icon-back"}),e._v(" "),a("span",[e._v("返回")])]),e._v(" "),a("p",[e._v("24小时数据")])]),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[a("div",{staticStyle:{"font-size":"18px","font-weight":"700"}},[e._v("实时数据")]),e._v(" "),a("div",{staticStyle:{display:"flex"}},[a("div",{staticClass:"newTime_time"},[e._v(e._s(e._f("formatTime")(1e3*e.uptime)))]),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-right",size:"mini"},on:{click:e.refresh}}),e._v(" "),a("el-button",{attrs:{type:"warning",icon:"el-icon-setting",size:"mini"},on:{click:function(t){return e.setFactor()}}})],1)])]),e._v(" "),a("div",{staticClass:"elemenbox"},[0!==e.realTimeArr.length?a("div",{staticClass:"factorBox"},[a("div",{staticClass:"factorBox_ul",class:e.realTimeArr.length%11==2?"six-product":e.realTimeArr.length%11==3?"three-product":e.realTimeArr.length%11==4?"four-product":e.realTimeArr.length%11==5?"five-product":e.realTimeArr.length%11==6?"six-product":e.realTimeArr.length%11==7?"seven-product":e.realTimeArr.length%11==8?"eight-product":e.realTimeArr.length%11==9?"nine-product":e.realTimeArr.length%11==10?"ten-product":""},e._l(e.realTimeArr,function(t,i){return a("div",{key:i,staticClass:"factorBox_li"},[a("div",{staticClass:"factorBox_li_impression",style:" background:url("+t.img+")no-repeat; background-size: 100% 100%;"},[a("div",{staticStyle:{"font-size":"15px","line-height":"30px",height:"28px"}}),e._v(" "),a("img",{staticStyle:{width:"30px",height:"30px",position:"absolute",left:"37px",top:"25px"},attrs:{src:"../../../../static/images/weather/icon_"+t.tu+".png",alt:""}}),e._v(" "),a("div",{staticClass:"factorBox_li_number",staticStyle:{"line-height":"16px",height:"35px",margin:"45px 0 0 -23px",width:"139px"}},[e._v("\n "+e._s(t.num)+"\n ")])]),e._v(" "),a("div",{staticClass:"factorBox_li_text",attrs:{title:t.name}},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),a("div",{staticClass:"factorBox_li_text2"},[e._v("\n "+e._s(t.unit)+"\n ")])])}),0)]):a("div",{staticClass:"expertDiagnosis_referral_units_not"},[e._v("暂无数据")])])])]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.data24,stripe:""}},[a("el-table-column",{attrs:{prop:"e",label:"传感器通道"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"通道名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"min",label:"最小值"}}),e._v(" "),a("el-table-column",{attrs:{prop:"mintime",label:"最小时间"},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.mintime?[e._v(e._s(e._f("formatTime")(1e3*t.row.mintime)))]:void 0}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{prop:"max",label:"最大值"}}),e._v(" "),a("el-table-column",{attrs:{prop:"maxtime",label:"最大时间"},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.maxtime?[e._v(e._s(e._f("formatTime")(1e3*t.row.maxtime)))]:void 0}}],null,!0)})],1)],1),e._v(" "),a("div",{staticClass:"bgc"}),e._v(" "),a("el-dialog",{attrs:{"close-on-press-escape":!1,"close-on-click-modal":!1,title:"修改要素名称",visible:e.setFactorShow,width:"580px"},on:{"update:visible":function(t){e.setFactorShow=t}}},[[a("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:e.simLoading,expression:"simLoading"}],attrs:{"element-loading-text":"数据请求中"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-table",{staticStyle:{width:"100%",margin:"0.25rem 0 0 0"},attrs:{data:e.tableDataA,"row-class-name":e.tableRowClassName,border:""}},[a("el-table-column",{attrs:{prop:"ekey",label:"通道号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name","render-header":e.renderHeader,label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"warningMessage-ipt",attrs:{type:"text",clearable:""},on:{blur:function(a){return e.amendFactor(t.row)}},model:{value:t.row.name,callback:function(a){e.$set(t.row,"name",a)},expression:"scope.row.name"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"type",label:"要素"}})],1)],1)]],2)],1)},staticRenderFns:[]};var Qe=function(e){a("8kZv")},Ge=a("VU/8")(Ke.a,Ye,!1,Qe,"data-v-b5d9db2a",null).exports,Je={components:{},data:function(){return{timeindex:1,start_time:"",end_time:"",time:"",hisData:[],tableHead:[],totalNum:10,page:1,page_size:10,pagekey:1,dialogVisible:!1,value:"",value1:"",optionsA:[{value:"选项1",label:"全部"},{value:"选项2",label:"时间段"}],queryInfo:{begin:"",end:"",device_id:this.$route.params.id,page:1},flag:!1,tabtable:1,echartOptions:[]}},computed:{},watch:{},methods:{backtrack:function(){this.$router.go(-1)},empty:function(e){this.timeindex=e,this.end_time=Math.floor(+new Date/1e3);var t=new Date;if(1==e)this.start_time=this.end_time-86400;else if(2==e)this.start_time=this.end_time-604800;else if(3==e){var a=t.getMonth();this.start_time=Math.floor(t.setMonth(a-1)/1e3)}else if(4==e){a=t.getMonth();this.start_time=Math.floor(t.setMonth(a-3)/1e3)}this.start_time,this.page=1,this.pagekey=10*Math.random()+1,this.getHisDataList(),this.getEchartsHisDataList()},timechange:function(e){this.flag=!0,e?(this.start_time=Math.floor(+new Date(e[0])/1e3),this.end_time=Math.floor(+new Date(e[1])/1e3),this.page=1,this.pagekey=10*Math.random()+1,this.getHisDataList(),this.getEchartsHisDataList()):this.empty(1)},deriveData:function(){this.dialogVisible=!0},addData:function(){if(""==this.value||""==this.value1)0==document.getElementsByClassName("el-message").length&&this.$message({message:"请将必填项填写完整",type:"warning",duration:1500});else{var e="",t="";this.value1,"选项2"==this.value1?(e=this.start_time,t=this.end_time):(e="",t=""),window.location.href=this.$http+"/api/qxz_data_export?device_id="+this.queryInfo.device_id+"&filename="+this.value+"&begin="+e+"&end="+t+"&device_type=8"}},refresh:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.send_control.get_device_config",data:this.qs.stringify({device_type_id:5,d_id:this.$route.params.d_id,control_type:"data"})}).then(function(t){""==t.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message({message:"刷新成功",type:"success"}),setTimeout(function(){e.getHisDataList(),e.getEchartsHisDataList()},2e3)):0==document.getElementsByClassName("el-message").length&&e.$message({message:"刷新失败",type:"success"})})},getHisDataList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_detail",data:this.qs.stringify({start_time:this.start_time,end_time:this.end_time,page:this.page,page_size:this.page_size,device_id:this.$route.params.id})}).then(function(t){if(e.isRainFall=t.data.data.rainFall,t.data.data.nums>0){var a=[{label:"日期",property:"date"}],i=[],n=t.data.data.conf,l=t.data.data.data;for(var s in n){var r={};if(n[s]){n[s];var o=n[s].split("#");o[1]?r.label=o[0]+"("+o[1]+")":r.label=""+o[0],r.property=s,a.push(r)}}if(1==a.length&&"日期"==a[0].label)e.hisData=[];else{var u=!0,c=!1,d=void 0;try{for(var m,h=ae()(l);!(u=(m=h.next()).done);u=!0){var f=m.value,v={};for(var p in v.date=e.formatTime(1e3*f.time),f.dat)f.dat[p]&&(v[p]="-99.99"==f.dat[p].split("#")[0]?"N/A":f.dat[p].split("#")[0]);i.push(v)}}catch(e){c=!0,d=e}finally{try{!u&&h.return&&h.return()}finally{if(c)throw d}}e.hisData=i;var g=0,b=[];for(var _ in l[0].dat)""!==l[0].dat[_]&&g++;for(var y=0;y<a.length;y++)g>=y&&b.push(a[y]);e.tableHead=b,e.totalNum=Number(t.data.data.nums)}}else e.hisData=[],e.flag||4!=e.timeindex&&e.empty(e.timeindex+1)})},handleSizeChange:function(e){this.page=1,this.pagekey=10*Math.random()+1,this.page_size=e,this.getHisDataList()},handleCurrentChange:function(e){this.page=e,this.getHisDataList()},getEchartsHisDataList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_data_chart",data:this.qs.stringify({begin:this.start_time,end:this.end_time,device_id:this.$route.params.id})}).then(function(t){t.data.data,e.echartsFn(t.data.data)}).catch(function(e){})},echartsFn:function(e){var t=this,a=e.conf,i=e.data,n=[];if(i.length,a&&i&&i.length>0){for(var l in this.isEchartData=!0,a)a[l]&&n.push({name:l,tit:a[l].split("#")[0],unit:a[l].split("#")[1],dat:[]});var s=!0,r=!1,o=void 0;try{for(var u,c=ae()(i);!(s=(u=c.next()).done);s=!0){var d=u.value;for(var m in d.dat){var h=!0,f=!1,v=void 0;try{for(var p,g=ae()(n);!(h=(p=g.next()).done);h=!0){var b=p.value;b.name==m&&"-99.99"!=d.dat[m].split("#")[0]&&b.dat.push([1e3*d.time+288e5,Number(d.dat[m].split("#")[0])])}}catch(e){f=!0,v=e}finally{try{!h&&g.return&&g.return()}finally{if(f)throw v}}}}}catch(e){r=!0,o=e}finally{try{!s&&c.return&&c.return()}finally{if(r)throw o}}}else this.isEchartData=!1;0!==n.length?(this.isEchartData=!0,this.echartOptions=n.map(function(e){return t.OptionFn(e)})):this.isEchartData=!1},OptionFn:function(e){return{title:{text:e.tit,align:"left"},lang:{noData:"暂无数据"},noData:{style:{fontWeight:"bold",fontSize:"15px",color:"#303030"}},xAxis:{crosshair:!0,type:"datetime",dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"}},yAxis:{title:{text:""}},legend:{align:"right",verticalAlign:"top"},plotOptions:{series:{label:{connectorAllowed:!1},pointStart:2010}},series:[{name:e.name,data:e.dat}],colors:["#00e29d","#6cbbff","#ff3f3f"],credits:{enabled:!1},tooltip:{shared:!0,headerFormat:"<b>{point.x:%Y-%m-%e %H:%M:%S}</b><br>",pointFormatter:function(){return e.tit+":"+this.y+e.unit}},responsive:{rules:[{condition:{maxWidth:500},chartOptions:{legend:{layout:"horizontal",align:"center",verticalAlign:"bottom"}}}]}}},tosuggest:function(){this.$router.push("/index/suggest?type=8")}},beforeCreate:function(){},created:function(){this.end_time=Math.floor(+new Date/1e3),this.start_time=this.end_time-86400,this.getHisDataList(),this.getEchartsHisDataList()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},Xe={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"hisbox"},[a("div",{staticClass:"baselistbox_top"},[a("div",{staticClass:"baselistbox_top_title"},[a("p",{staticStyle:{cursor:"pointer"},on:{click:e.backtrack}},[a("i",{staticClass:"el-icon-back"}),e._v(" "),a("span",[e._v("返回")])]),e._v(" "),a("p",[e._v("历史数据")])]),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticClass:"search_left"},[a("div",{class:1==e.tabtable?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){e.tabtable=1}}},[e._v("\n 表格\n ")]),e._v(" "),a("div",{class:2==e.tabtable?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){e.tabtable=2}}},[e._v("\n 图表\n ")]),e._v(" "),a("div",{staticClass:"timebtn timebtn1",on:{click:e.deriveData}},[e._v("导出")]),e._v(" "),a("div",{staticClass:"timebtn timebtn1",on:{click:e.refresh}},[e._v("刷新")]),e._v(" "),a("div",{staticClass:"timebtn timebtn3",on:{click:e.tosuggest}},[e._v("专家建议")])]),e._v(" "),a("div",{staticClass:"search_right"},[a("div",{class:1==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){e.empty(1),e.flag=!0}}},[e._v("\n 近一天\n ")]),e._v(" "),a("div",{class:2==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){e.empty(2),e.flag=!0}}},[e._v("\n 近七天\n ")]),e._v(" "),a("div",{class:3==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){e.empty(3),e.flag=!0}}},[e._v("\n 近一月\n ")]),e._v(" "),a("div",{class:4==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){e.empty(4),e.flag=!0}}},[e._v("\n 近三月\n ")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",size:"mini"},on:{change:e.timechange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)])]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.tabtable,expression:"tabtable == 1"}]},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.hisData,stripe:"",height:"530px"}},[e._l(e.tableHead,function(t,i){return a("el-table-column",{key:i,attrs:{width:"160px",label:t.label,prop:t.property},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row[t.column.property]))]}}],null,!0)})}),e._v(" "),a("el-table-column",{attrs:{label:"",prop:""}})],2),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalNum,"page-sizes":[10,20,30,50],"page-size":e.page_size,"current-size":e.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}})],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:2==e.tabtable,expression:"tabtable == 2"}]},[a("el-row",{attrs:{gutter:10}},e._l(e.echartOptions,function(e,t){return a("el-col",{key:t,attrs:{xs:24,sm:24,md:12,lg:6,xl:6}},[a("el-card",{staticClass:"box-card",staticStyle:{"margin-bottom":"15px"}},[a("highcharts",{attrs:{options:e}})],1)],1)}),1)],1)]),e._v(" "),a("el-dialog",{attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,title:"导出信息",visible:e.dialogVisible,width:"580px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("ul",{staticClass:"iptUl"},[a("li",{staticClass:"iptList"},[a("div",{staticClass:"iptTxt"},[a("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v("文件名称")]),e._v(" "),a("div",{staticClass:"iptBox"},[a("el-input",{attrs:{placeholder:"请输入文件的名称",size:"mini",clearable:""},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)]),e._v(" "),a("li",{staticClass:"iptList"},[a("div",{staticClass:"iptTxt"},[e._v("下载类型")]),e._v(" "),a("div",{staticClass:"iptBox"},[a("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}},e._l(e.optionsA,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)])]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.addData()}}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var Ze=a("VU/8")(Je,Xe,!1,function(e){a("aENX")},"data-v-2633ff38",null).exports,$e={components:{},data:function(){return{cropname:"",totalNum:10,page:1,page_size:10,pagekey:1,tableData:[],loading:!1}},computed:{},watch:{},methods:{handleSizeChange:function(e){this.page=1,this.pagekey=10*Math.random()+1,this.page_size=e,this.getcroplist()},handleCurrentChange:function(e){this.page=e,this.getcroplist()},toadd:function(){this.$router.push("/index/cropadd")},toamend:function(e){this.$router.push("/index/cropadd?id="+e)},inquire:function(){this.page=1,this.pagekey=10*Math.random()+1,this.getcroplist()},getcroplist:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=information.crop.get_crop_list",data:this.qs.stringify({crop_name:this.cropname,page:this.page,page_size:this.page_size})}).then(function(t){t.data.data&&(t.data.data,e.tableData=t.data.data.data,e.totalNum=t.data.data.total_num)})},deldata:function(e){var t=this;this.$confirm("此操作将会删除此农作物, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$axios({method:"POST",url:"/api/api_gateway?method=information.crop.del_crop_info",data:t.qs.stringify({crop_id:e})}).then(function(e){e.data.data?(0==document.getElementsByClassName("el-message").length&&t.$message.success("删除成功"),t.getcroplist()):0==document.getElementsByClassName("el-message").length&&t.$message.error("删除失败")})}).catch(function(){0==document.getElementsByClassName("el-message").length&&t.$message({type:"info",message:"已取消删除"})})}},beforeCreate:function(){},created:function(){this.getcroplist()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},et={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cropbox"},[a("div",{staticClass:"baselistbox_top"},[e._m(0),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticClass:"right_search"},[a("div",{staticClass:"btnbox2",on:{click:e.toadd}},[a("i",{staticClass:"el-icon-plus"}),e._v(" "),a("span",[e._v("新增")])])]),e._v(" "),a("div",{staticClass:"left_search"},[a("div",{staticClass:"firstsearch"},[a("el-input",{attrs:{size:"mini",placeholder:"请输入农作物名称"},model:{value:e.cropname,callback:function(t){e.cropname=t},expression:"cropname"}})],1),e._v(" "),a("div",{staticClass:"btnbox",on:{click:e.inquire}},[e._v("查询")])])])]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",height:"560px"}},[a("el-table-column",{attrs:{prop:"crop_image",label:"图片"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"25px"},attrs:{src:e.row.crop_image,alt:""}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"crop_name",label:"农作物名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.crop_name))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"crop_variety",label:"品种"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.crop_variety))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"device_id",label:"显示颜色"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{style:{width:"25px",height:"25px",backgroundColor:e.row.crop_colors}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.toamend(t.row.crop_id)}}},[e._v("修改")]),e._v(" "),a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.deldata(t.row.crop_id)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalNum,"page-sizes":[10,20,30,50],"page-size":e.page_size,"current-size":e.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}})],1)],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"baselistbox_top_title"},[t("p",[this._v("农作物管理")])])}]};var tt=a("VU/8")($e,et,!1,function(e){a("/AM0")},"data-v-c1bf22d0",null).exports,at=a("jHlk"),it={components:{},data:function(){return{id:"",title:"",ruleForm:{cropname:"",cropvariety:"",cropcolor:"#4f71ff",cropimage:"",cropimage2:""},rules:{cropname:{required:!0,message:"请输入农作物名称",trigger:"blur"},cropvariety:{required:!0,message:"请输入物作品种",trigger:"blur"},cropcolor:{required:!0,message:"请输选择显示颜色",trigger:"blur"},cropimage:{required:!0,validator:function(e,t,a){""===t?a(new Error("请选择农作物图片")):a()},trigger:"blur"}},tableData:[],monthoptions:[{value:1,label:"一月"},{value:2,label:"二月"},{value:3,label:"三月"},{value:4,label:"四月"},{value:5,label:"五月"},{value:6,label:"六月"},{value:7,label:"七月"},{value:8,label:"八月"},{value:9,label:"九月"},{value:10,label:"十月"},{value:11,label:"十一月"},{value:12,label:"十二月"}],dialogVisible:!1,loading:!1,wormcode:"2",wormname:"",wormtable:[],multipleSelection:[],page:1,total:8,sellistcontainer:{},pageloading:!1}},computed:{},watch:{},methods:{goBackPage:function(){this.$router.go(-1)},handleAvatarSuccess:function(e,t){this.ruleForm.cropimage2=this.$http+e.img_url,this.ruleForm.cropimage=URL.createObjectURL(t.raw)},handleAvatarError:function(e){},beforeAvatarUpload:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传图片大小不能超过 2MB!"),t},handleClose:function(e,t){t.splice(t.indexOf(e),1)},adddata:function(){this.tableData.push({cycle_name:"播种期",cycle_date:[1,2],pest_pest:[],pest_disease:[],nameinput:!1,content:""})},deldata:function(e){this.tableData.splice(this.tableData.indexOf(e),1)},sellist:function(e){this.wormname="",this.page=1,this.sellistcontainer=e,this.dialogVisible=!0,this.wormcode="2",this.getwormlist(),this.pageloading=!1},sellistdis:function(e){this.wormname="",this.page=1,this.sellistcontainer=e,this.dialogVisible=!0,this.wormcode="1",this.getwormlist(),this.pageloading=!1},handleSelectionChange:function(e){this.multipleSelection=e},inquire:function(){this.pageloading=!1,this.page=1,this.getwormlist()},getwormlist:function(){var e=this;this.loading=!0,this.$axios({method:"post",url:"api/api_gateway?method=pest.pests.pests_info",data:this.qs.stringify({code:this.wormcode,page:this.page,page_size:8,pest_name:this.wormname})}).then(function(t){e.pageloading=!0,e.loading=!1,t.data.data&&(e.wormtable=t.data.data.data,e.total=t.data.data.nums)})},handleCurrentChange:function(e){this.page=e,this.getwormlist()},confirmdata:function(){this.dialogVisible=!1,this.sellistcontainer;for(var e=0;e<this.multipleSelection.length;e++)if(this.sellistcontainer.length)for(var t=0;t<this.sellistcontainer.length;t++)-1==this.sellistcontainer.indexOf(this.multipleSelection[e].name)&&this.sellistcontainer.push(this.multipleSelection[e].name);else this.sellistcontainer.push(this.multipleSelection[e].name);this.sellistcontainer},reset:function(){this.ruleForm.cropname="",this.ruleForm.cropvariety="",this.ruleForm.cropimage="",this.ruleForm.cropcolor="",this.ruleForm.cropimage2="",this.tableData=[]},addbtn:function(){var e=this;this.$refs.ruleForm.validate(function(t){if(!t)return!1;"新增农作物"==e.title?e.$axios({method:"post",url:"api/api_gateway?method=information.crop.add_crop_info",data:e.qs.stringify({crop_name:e.ruleForm.cropname,crop_variety:e.ruleForm.cropvariety,crop_colors:e.ruleForm.cropcolor,crop_image:e.ruleForm.cropimage2,cycle_list:s()(e.tableData)})}).then(function(t){t.data.data?(e.$message.success("添加成功"),e.goBackPage()):e.$message.error(t.data.message)}):"修改农作物"==e.title&&e.$axios({method:"post",url:"api/api_gateway?method=information.crop.modify_crop_info",data:e.qs.stringify({crop_id:e.id,crop_name:e.ruleForm.cropname,crop_variety:e.ruleForm.cropvariety,crop_colors:e.ruleForm.cropcolor,crop_image:e.ruleForm.cropimage2,cycle_list:s()(e.tableData)})}).then(function(t){t.data.data?(e.$message.success("修改成功"),e.goBackPage()):e.$message.error(t.data.message)})})},getcropinfo:function(e){var t=this;this.$axios({method:"post",url:"api/api_gateway?method=information.crop.get_crop_info",data:this.qs.stringify({crop_id:e})}).then(function(e){if(e.data.data){e.data.data.data;var a=e.data.data.data;t.ruleForm.cropname=a.crop_name,t.ruleForm.cropvariety=a.crop_variety,t.ruleForm.cropimage=a.crop_image,t.ruleForm.cropcolor=a.crop_colors,t.ruleForm.cropimage2=a.crop_image,t.tableData=a.cycle_list;for(var i=0;i<t.tableData.length;i++)t.tableData[i].nameinput=!1;t.tableData}})}},beforeCreate:function(){},created:function(){this.$route.query.id?(this.id=this.$route.query.id,this.getcropinfo(this.$route.query.id),this.title="修改农作物"):this.title="新增农作物"},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},nt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cropaddbox"},[a("div",{staticClass:"baselistbox_top"},[a("div",{staticClass:"baselistbox_top_title"},[a("p",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.goBackPage()}}},[a("i",{staticClass:"el-icon-back"}),e._v(" "),a("span",[e._v("返回")])]),e._v(" "),a("p",[e._v(e._s(e.title))])]),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("div",{staticClass:"demo-ruleForm-left"},[a("el-form-item",{attrs:{label:"农作物名称",prop:"cropname"}},[a("el-input",{attrs:{maxlength:10,size:"mini"},model:{value:e.ruleForm.cropname,callback:function(t){e.$set(e.ruleForm,"cropname",t)},expression:"ruleForm.cropname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"作物品种",prop:"cropvariety"}},[a("el-input",{attrs:{maxlength:10,size:"mini"},model:{value:e.ruleForm.cropvariety,callback:function(t){e.$set(e.ruleForm,"cropvariety",t)},expression:"ruleForm.cropvariety"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"显示颜色",prop:"cropcolor"}},[a("el-color-picker",{attrs:{size:"small"},model:{value:e.ruleForm.cropcolor,callback:function(t){e.$set(e.ruleForm,"cropcolor",t)},expression:"ruleForm.cropcolor"}})],1)],1),e._v(" "),a("div",{staticClass:"demo-ruleForm-right"},[a("el-form-item",{attrs:{label:"农作物图片",prop:"cropimage"}},[a("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.$http+"/api/util/upload/img/","show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload,"on-error":e.handleAvatarError}},[e.ruleForm.cropimage?a("img",{staticClass:"avatar",attrs:{src:e.ruleForm.cropimage}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1)],1)])],1)]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("div",{staticClass:"btnbox2",on:{click:e.adddata}},[a("i",{staticClass:"el-icon-plus"}),e._v(" "),a("span",[e._v("新增")])]),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"cycle_name",label:"生长周期名称",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{autofocus:!0,size:"mini",placeholder:"请输入内容",maxlength:6},on:{blur:function(e){t.row.nameinput=!1}},model:{value:t.row.cycle_name,callback:function(a){e.$set(t.row,"cycle_name",a)},expression:"scope.row.cycle_name"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"cycle_date",label:"时间",width:"240"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"monthbox"},[a("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:t.row.cycle_date[0],callback:function(a){e.$set(t.row.cycle_date,0,a)},expression:"scope.row.cycle_date[0]"}},e._l(e.monthoptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("i",{staticClass:"el-icon-date"}),e._v(" "),a("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:t.row.cycle_date[1],callback:function(a){e.$set(t.row.cycle_date,1,a)},expression:"scope.row.cycle_date[1]"}},e._l(e.monthoptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"期间可能发生虫害",width:"380px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"tagbox"},[a("div",{staticStyle:{width:"92%"}},e._l(t.row.pest_pest,function(i,n){return a("el-tag",{key:n,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleClose(i,t.row.pest_pest)}}},[e._v("\n "+e._s(i)+"\n ")])}),1),e._v(" "),a("p",{staticClass:"selp",on:{click:function(a){return e.sellist(t.row.pest_pest)}}},[e._v("选择")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"期间可能发生病害",width:"380px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"tagbox"},[a("div",{staticStyle:{width:"92%"}},e._l(t.row.pest_disease,function(i,n){return a("el-tag",{key:n,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleClose(i,t.row.pest_disease)}}},[e._v("\n "+e._s(i)+"\n ")])}),1),e._v(" "),a("p",{staticClass:"selp",on:{click:function(a){return e.sellistdis(t.row.pest_disease)}}},[e._v("\n 选择\n ")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"备注",width:"350px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{autofocus:!0,size:"mini",placeholder:"请输入内容",maxlength:20},model:{value:t.row.content,callback:function(a){e.$set(t.row,"content",a)},expression:"scope.row.content"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("i",{staticClass:"el-icon-remove-outline",staticStyle:{color:"red",cursor:"pointer"},on:{click:function(a){return e.deldata(t.row)}}})]}}])})],1),e._v(" "),a("div",{staticClass:"operationbox"},[a("el-button",{attrs:{size:"mini"},on:{click:e.reset}},[e._v("重 置")]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.addbtn}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"选择病虫害",visible:e.dialogVisible,width:"580px",top:"3%","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"wormbox"},[a("div",{staticClass:"top_search"},[a("div",{staticClass:"firstsearch"},[a("el-input",{attrs:{size:"mini",placeholder:"请输入病虫害名称"},model:{value:e.wormname,callback:function(t){e.wormname=t},expression:"wormname"}})],1),e._v(" "),a("div",{staticClass:"btnbox",on:{click:e.inquire}},[e._v("查询")])]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"bot_table"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.wormtable,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"图片",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.row.img_urls,expression:"scope.row.img_urls"}],staticStyle:{width:"25px",height:"25px"},attrs:{alt:""}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name))]}}])})],1)],1),e._v(" "),a("div",{staticClass:"pagination"},[e.pageloading?a("el-pagination",{attrs:{background:"",layout:"prev, pager, next,jumper",total:e.total,"page-size":8},on:{"current-change":e.handleCurrentChange}}):e._e()],1)]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.confirmdata}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var lt=a("VU/8")(it,nt,!1,function(e){a("fil7")},"data-v-6573ecd2",null).exports,st=a("mtWM"),rt=a.n(st),ot=a("5eDb"),ut=a.n(ot),ct=(a("Pq4G"),a("iB2v")),dt=(a("v6mr"),a("AwPQ"),a("r5ih"),a("yhpR"),a("uWkF"),a("4Uvm"),a("mxEA"),a("WH6s"),a("7u95"),{name:"tinymce",props:{tinymceHtml:{type:String}},watch:{tinymceHtml:{deep:!0,handler:function(e,t){this.obj.sunHtml=this.tinymceHtml}}},data:function(){var e=this;return{obj:{sunHtml:this.tinymceHtml,imgSrc:""},picUrl:"/api",init:{language_url:"/static/tinymce/zh_CN.js",language:"zh_CN",skin_url:"/static/tinymce/skins/lightgray",height:300,plugins:"link lists image code table colorpicker textcolor wordcount contextmenu",toolbar:"bold italic underline strikethrough | fontsizeselect | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent blockquote | undo redo | link unlink image code | removeformat",branding:!1,images_upload_base_path:this.picUrl,images_upload_handler:function(t,a,i){e.handleImgUpload(t,a,i)}}}},created:function(){this.obj.sunHtml=this.tinymceHtml},mounted:function(){ut.a.init({})},methods:{inp:function(){this.$emit("inp",this.obj)},handleImgUpload:function(e,t,a){var i=this,n=new FormData;n.append("img_file",e.blob()),e.blob(),rt()({method:"post",url:"/api/util/upload/img/",data:n}).then(function(e){""==e.data.message?(i.obj.imgSrc=e.img_url,t(e.img_url)):a("HTTP Error: "+e.msg)})}},components:{Editor:ct.a}}),mt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tinymce"},[a("editor",{attrs:{id:"tinymce",init:e.init},on:{input:function(t){return e.inp()}},model:{value:e.obj.sunHtml,callback:function(t){e.$set(e.obj,"sunHtml",t)},expression:"obj.sunHtml"}})],1)},staticRenderFns:[]};var ht=a("VU/8")(dt,mt,!1,function(e){a("hqiV")},null,null).exports,ft={components:{Editor:ht},data:function(){return{wormname:"",rankinglist:[],diseasenum:"",wormnum:"",wormordisindex:2,page:1,pagekey:1,wormlist:[],total:8,adddialogVisible:!1,addedfrom:{pest_name:"",img_urls:"",code:"1",prevention:"",img_urls2:""},rules:{pest_name:{required:!0,message:"请输入病虫害名称",trigger:"blur"},img_urls:{required:!0,message:"请上传病虫害图片",trigger:"blur"},code:{required:!0,message:"请选择类型",trigger:"change"}},worminfodialogVisible:!1,oneworminfo:{},loading:!1,amendoradd:"add",recognitionVisible:!1,wormdisdata:{url:"",img_file:""},paginationload:!1}},computed:{},watch:{},methods:{getranking:function(){var e=this;this.$axios({method:"post",url:"api/api_gateway?method=pest.pests.pests_search",data:this.qs.stringify({code:this.wormordisindex,page:1})}).then(function(t){t.data.data,t.data.data&&(e.rankinglist=t.data.data.data)})},tabwormordisindex:function(e){this.paginationload=!1,this.page=1,this.pagekey=10*Math.random()+1,this.wormordisindex=e,this.getwormlist(),this.getranking()},handleCurrentChange:function(e){this.page=e,this.getwormlist()},getwormlist:function(){var e=this;this.loading=!0,this.$axios({method:"post",url:"api/api_gateway?method=pest.pests.pests_info",data:this.qs.stringify({code:this.wormordisindex,page:this.page,page_size:8,pest_name:this.wormname})}).then(function(t){e.loading=!1,e.paginationload=!0,t.data.data&&(e.wormlist=t.data.data.data,e.total=t.data.data.nums,e.wormnum=t.data.data.pest_nums,e.diseasenum=t.data.data.disease_nums)})},delworm:function(e){var t=this;this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$axios({method:"post",url:"api/api_gateway?method=pest.pests.del_pest_info",data:t.qs.stringify({pest_id:e})}).then(function(e){e.data.data?(0==document.getElementsByClassName("el-message").length&&t.$message.success("删除成功"),t.getwormlist(),t.getranking()):0==document.getElementsByClassName("el-message").length&&t.$message.error("删除失败")})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},handleAvatarSuccess:function(e,t){this.$http,this.addedfrom.img_urls2=this.$http+e.img_url,this.addedfrom.img_urls=URL.createObjectURL(t.raw)},handleAvatarError:function(e){},beforeAvatarUpload:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传头像图片大小不能超过 2MB!"),t},inp:function(e){this.addedfrom.prevention=e.sunHtml},Addedbtn:function(){this.amendoradd="add",this.adddialogVisible=!0},Added:function(){var e=this;this.$refs.ruleForm.validate(function(t){if(!t)return!1;"add"==e.amendoradd?e.$axios({method:"post",url:"api/api_gateway?method=pest.pests.add_pest_info",data:e.qs.stringify({pest_name:e.addedfrom.pest_name,code:e.addedfrom.code,img_urls:e.addedfrom.img_urls2,prevention:e.addedfrom.prevention})}).then(function(t){t.data.data?(0==document.getElementsByClassName("el-message").length&&e.$message.success("添加成功"),e.getwormlist(),e.adddialogVisible=!1):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)}):e.$axios({method:"post",url:"api/api_gateway?method=pest.pests.modify_pest_info",data:e.qs.stringify({pest_name:e.addedfrom.pest_name,pest_id:e.addedfrom.pest_id,img_url:e.addedfrom.img_urls2,prevention:e.addedfrom.prevention})}).then(function(t){t.data.data?(0==document.getElementsByClassName("el-message").length&&e.$message.success("修改成功"),e.getwormlist(),e.adddialogVisible=!1):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})})},addclose:function(){this.addedfrom={pest_name:"",img_urls:"",code:"1",prevention:"",img_urls2:""}},getoneworminfo:function(e){var t=this;this.$axios({method:"post",url:"api/api_gateway?method=pest.pests.pests_info",data:this.qs.stringify({code:this.wormordisindex,pest_id:e,page:1})}).then(function(e){e.data.data?(t.worminfodialogVisible=!0,e.data.data,t.oneworminfo=e.data.data):0==document.getElementsByClassName("el-message").length&&t.$message.error("获取信息失败")})},amend:function(e){this.amendoradd="amend",this.addedfrom={pest_name:e.name,img_urls:e.img_urls,code:e.code,prevention:e.prevention,img_urls2:e.img_urls,pest_id:e.id},this.adddialogVisible=!0},handleAvatarSuccess2:function(e,t){this.wormdisdata.url=this.$http+e.img_url,this.wormdisdata.img_file=t},handleAvatarError2:function(e){},beforeAvatarUpload2:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传图片大小不能超过 2MB!"),t},recognition:function(){var e=this;this.$refs.ruleForm.validate(function(t){if(!t)return!1;e.wormdisdata.img_file;var a=localStorage.getItem("keys"),i=new FormData;i.append("img_file",e.wormdisdata.img_file.raw),i.append("token",a),1==e.wormordisindex?e.$axios({method:"post",url:"api/api_gateway?method=pest.pests.plant_discern",data:i}).then(function(t){t.data.data?(e.getoneworminfo(t.data.data.id),e.wormdisdata={url:"",img_file:""},e.recognitionVisible=!1):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)}):e.$axios({method:"post",url:"api/api_gateway?method=pest.pests.insect_discern",data:i}).then(function(t){t.data.data?(e.getoneworminfo(t.data.data.id),e.wormdisdata={url:"",img_file:""},e.recognitionVisible=!1):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})})}},beforeCreate:function(){},created:function(){this.getranking(),this.getwormlist()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},vt={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"evilbox"},[i("div",{staticClass:"evilphoto"},[i("div",{staticClass:"baselistbox_top"},[e._m(0),e._v(" "),i("p",{staticClass:"baselistbox_top_line"}),e._v(" "),i("div",{staticClass:"baselistbox_top_search"},[i("div",{staticClass:"btnbox2",on:{click:e.Addedbtn}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",[e._v("新增")])]),e._v(" "),i("div",{staticClass:"search_right"},[i("el-input",{attrs:{size:"mini",placeholder:"请输入病虫害名称"},model:{value:e.wormname,callback:function(t){e.wormname=t},expression:"wormname"}}),e._v(" "),i("div",{staticClass:"btnbox",on:{click:function(t){e.page=1,e.pagekey=10*Math.random()+1,e.getwormlist()}}},[i("span",[e._v("搜索")])])],1)])]),e._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"baselistbox_pholist",attrs:{"element-loading-text":"数据加载种,请稍后...","element-loading-spinner":"el-icon-loading"}},[i("div",{staticClass:"pholist_tab"},[i("p",{class:2==e.wormordisindex?"selp":"",on:{click:function(t){return e.tabwormordisindex(2)}}},[e._v("\n 虫害信息库("+e._s(e.wormnum)+")例\n ")]),e._v(" "),i("p",{class:1==e.wormordisindex?"selp":"",on:{click:function(t){return e.tabwormordisindex(1)}}},[e._v("\n 病害信息库("+e._s(e.diseasenum)+")例\n ")])]),e._v(" "),i("el-row",{attrs:{gutter:20}},[e.wormlist.length?e._e():i("div",{staticClass:"none"},[i("img",{attrs:{src:a("sime"),alt:""}})]),e._v(" "),e._l(e.wormlist,function(t,a){return i("el-col",{key:a,attrs:{span:6}},[i("div",{staticClass:"wormimgbox"},[i("div",{staticClass:"imgbox"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.img_urls,expression:"item.img_urls"}],attrs:{alt:""},on:{click:function(a){return e.getoneworminfo(t.id)}}}),e._v(" "),i("div",{staticClass:"amendbox"},[i("div",{staticClass:"amendbox_item"},[i("p",{on:{click:function(a){return e.amend(t)}}},[e._v("修改")]),e._v(" "),i("p",{on:{click:function(a){return e.delworm(t.id)}}},[e._v("删除")])])])]),e._v(" "),i("div",{staticClass:"wormimgbox_xin"},[i("p",[e._v("害虫名称:"+e._s(t.name))])])])])})],2),e._v(" "),i("div",{staticClass:"pagination"},[e.paginationload?i("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,jumper",total:e.total,"page-size":8,"current-size":e.page},on:{"current-change":e.handleCurrentChange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}}):e._e()],1)],1)]),e._v(" "),i("div",{staticClass:"evillist"},[i("div",{staticClass:"evillist_title"},[i("p",[e._v("识别排名")]),e._v(" "),i("div",{staticClass:"btnbox",on:{click:function(t){e.recognitionVisible=!0,e.wormdisdata.url=""}}},[i("span",[e._v(e._s(2==e.wormordisindex?"害虫识别":"病害识别"))])])]),e._v(" "),i("div",{staticClass:"evillist_line"}),e._v(" "),i("div",{staticClass:"evillist_itembox"},e._l(e.rankinglist,function(t,a){return i("div",{key:a,staticClass:"evillist_item"},[i("div",{staticClass:"imgbox"},[i("p",{staticClass:"imgbox_p"},[e._v(e._s(a+1))]),e._v(" "),i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.img_urls,expression:"item.img_urls"}],attrs:{alt:""}})]),e._v(" "),i("p",[e._v("\n "+e._s(t.name)+"\n ")])])}),0)]),e._v(" "),i("el-dialog",{attrs:{title:"add"==e.amendoradd?"增加病虫害信息":"修改病虫害信息",visible:e.adddialogVisible,width:"950px","close-on-click-modal":!1},on:{"update:visible":function(t){e.adddialogVisible=t},close:e.addclose}},[i("div",{staticClass:"worminfobox"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.addedfrom,rules:e.rules,"label-width":"100px"}},[i("div",{staticClass:"worminfobox_item"},[i("div",{staticClass:"item_left"},[i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"add"==e.amendoradd,expression:"amendoradd == 'add' ? true : false"}],attrs:{label:"类型",prop:"code"}},[i("el-radio-group",{model:{value:e.addedfrom.code,callback:function(t){e.$set(e.addedfrom,"code",t)},expression:"addedfrom.code"}},[i("el-radio",{attrs:{label:"2"}},[e._v("虫害")]),e._v(" "),i("el-radio",{attrs:{label:"1"}},[e._v("病害")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"病虫害名称",prop:"pest_name"}},[i("el-input",{attrs:{size:"mini",maxlength:"10"},model:{value:e.addedfrom.pest_name,callback:function(t){e.$set(e.addedfrom,"pest_name",t)},expression:"addedfrom.pest_name"}})],1)],1),e._v(" "),i("div",{staticClass:"item_right"},[i("el-form-item",{attrs:{label:"病虫害图片",prop:"img_urls"}},[i("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.$http+"/api/util/upload/img/","show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload,"on-error":e.handleAvatarError}},[e.addedfrom.img_urls?i("img",{staticClass:"avatar",attrs:{src:e.addedfrom.img_urls}}):i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1)],1)]),e._v(" "),i("el-form-item",{attrs:{label:"病虫害信息",prop:"prevention"}},[i("editor",{attrs:{tinymceHtml:e.addedfrom.prevention},on:{inp:function(t){return e.inp(t)}}})],1)],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(t){e.adddialogVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.Added}},[e._v("确 定")])],1)]),e._v(" "),i("el-dialog",{attrs:{title:"病虫害信息",visible:e.worminfodialogVisible,width:"950px","close-on-click-modal":!1},on:{"update:visible":function(t){e.worminfodialogVisible=t}}},[i("div",{staticClass:"wormdisinfobox"},[i("div",{staticClass:"wormdis_item"},[i("p",{staticClass:"title"},[e._v("病虫害名称")]),e._v(" "),i("p",[e._v(e._s(e.oneworminfo.name))])]),e._v(" "),i("div",{staticClass:"wormdis_item"},[i("p",{staticClass:"title"},[e._v("病虫害图片")]),e._v(" "),i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.oneworminfo.img_urls,expression:"oneworminfo.img_urls"}],attrs:{alt:""}})]),e._v(" "),i("div",{staticClass:"wormdis_item"},[i("p",{staticClass:"title"},[e._v("病虫害信息")]),e._v(" "),i("div",{staticClass:"htmlbox",domProps:{innerHTML:e._s(e.oneworminfo.prevention)}})])])]),e._v(" "),i("el-dialog",{attrs:{title:1==e.wormordisindex?"病害识别":"虫害识别",visible:e.recognitionVisible,width:"450px","close-on-click-modal":!1},on:{"update:visible":function(t){e.recognitionVisible=t}}},[i("div",{staticClass:"recbox"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.wormdisdata,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"识别图片",prop:"url"}},[i("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.$http+"/api/util/upload/img/","show-file-list":!1,"on-success":e.handleAvatarSuccess2,"before-upload":e.beforeAvatarUpload2,"on-error":e.handleAvatarError2}},[e.wormdisdata.url?i("img",{staticClass:"avatar",attrs:{src:e.wormdisdata.url}}):i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1)],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(t){e.recognitionVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.recognition}},[e._v("确 定")])],1)])],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"baselistbox_top_title"},[t("p",[this._v("病虫害信息库")])])}]};var pt=a("VU/8")(ft,vt,!1,function(e){a("xid7")},"data-v-5fbd87b0",null).exports,gt={components:{},data:function(){return{cityname:"",total:6,baselistdata:[],page:1,page_size:6,pagekey:1,center:[],dialogVisible:!1,baseinfodata:{base_name:"",base_area:"",coordinates:"",base_addr:"",img_url:"",img_url2:"",describe:"",production_name:"",phone:"",address:""},rules:{base_name:{required:!0,message:"请输入基地名称",trigger:"blur"},img_url:{required:!0,message:"请选择基地图片",trigger:"blur"},base_addr:{required:!0,message:"请输入基地地址",trigger:"blur"},phone:{validator:function(e,t,a){""===t?a():/^1[3-9]\d{9}$/.test(t)?a():a(new Error("请输入正确手机号"))},trigger:"blur"}}}},computed:{},watch:{},methods:{tomap:function(){this.baselistdata,this.baselistdata.length?this.$router.push("/index/maphandle?lng="+this.center[0]+"&lat="+this.center[1]):this.$router.push("/index/maphandle")},tofac:function(e){var t=JSON.parse(e.coordinates)[0];this.$router.push("/index/maofacility?lng="+t[0]+"&lat="+t[1]+"&id="+e.base_id)},toplot:function(e){var t=JSON.parse(e.coordinates)[0];this.$router.push("/index/mapplot?lng="+t[0]+"&lat="+t[1]+"&id="+e.base_id)},handleCurrentChange:function(e){this.page=e,this.getbaslist()},handleSizeChange:function(e){this.page=1,this.pagekey=10*Math.random()+1,this.page_size=e,this.getbaslist()},chaxun:function(){this.page=1,this.pagekey=10*Math.random()+1,this.getbaslist()},getbaslist:function(){var e=this;this.loading=!0,this.page,this.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.list_land_base",data:this.qs.stringify({base_name:this.cityname,page:this.page,page_size:this.page_size})}).then(function(t){e.loading=!1,t.data.data.data.length&&(e.baselistdata=t.data.data.data,e.total=t.data.data.total_num,e.center=JSON.parse(e.baselistdata[0].coordinates)[0])})},amend:function(e){var t=JSON.parse(s()(e));this.baseinfodata=t,this.baseinfodata.img_url2=t.img_url,this.baseinfodata,this.baseinfodata.base_addr=t.area_addr[0]+t.area_addr[1]+t.area_addr[2],this.dialogVisible=!0},handleAvatarSuccess:function(e,t){this.baseinfodata.img_url2=this.$http+e.img_url,this.baseinfodata.img_url=URL.createObjectURL(t.raw)},handleAvatarError:function(e){},beforeAvatarUpload:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传图片大小不能超过 2MB!"),t},addbtn:function(){var e=this;this.$refs.ruleForm.validate(function(t){if(!t)return!1;e.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.modify_land_base",data:e.qs.stringify({base_id:e.baseinfodata.base_id,base_name:e.baseinfodata.base_name,img_url:e.baseinfodata.img_url2,describe:e.baseinfodata.describe,production_name:e.baseinfodata.production_name,phone:e.baseinfodata.phone})}).then(function(t){t.data.data?(0==document.getElementsByClassName("el-message").length&&e.$message.success("修改成功"),e.dialogVisible=!1,e.getbaslist()):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})})},delbase:function(e){var t=this;this.$confirm("此操作将删除该基地, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.del_land_base",data:t.qs.stringify({base_id:e})}).then(function(e){""==e.data.message?(t.$message({type:"success",message:"删除成功!"}),t.getbaslist()):t.$message({type:"error",message:e.data.message})})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})}},beforeCreate:function(){},created:function(){this.getbaslist()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},bt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"baselistbox"},[a("div",{staticClass:"baselistbox_top"},[e._m(0),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticClass:"right_search"},[a("div",{staticClass:"btnbox2",on:{click:e.tomap}},[a("i",{staticClass:"el-icon-plus"}),e._v(" "),a("span",[e._v("新增")])])]),e._v(" "),a("div",{staticClass:"left_search"},[a("div",{staticClass:"firstsearch"},[a("el-input",{attrs:{size:"mini",placeholder:"请输入基地名称"},model:{value:e.cityname,callback:function(t){e.cityname=t},expression:"cityname"}})],1),e._v(" "),a("div",{staticClass:"btnbox",on:{click:e.chaxun}},[e._v("查询")])])])]),e._v(" "),a("div",{staticClass:"baselistbox_datalist"},[a("el-row",{attrs:{gutter:20}},e._l(e.baselistdata,function(t,i){return a("el-col",{key:i,attrs:{span:8}},[a("div",{staticClass:"datalist_item"},[a("div",{staticClass:"datalist_item_left"},[a("img",{attrs:{src:t.img_url,alt:""}}),e._v(" "),a("div",{staticClass:"caozuo"},[a("div",{staticClass:"caozuo_item"},[a("p",{on:{click:function(a){return e.amend(t)}}},[e._v("修改")]),e._v(" "),a("p",{on:{click:function(a){return e.delbase(t.base_id)}}},[e._v("删除")])])])]),e._v(" "),a("div",{staticClass:"datalist_item_lright"},[a("h4",[e._v(e._s(t.base_name))]),e._v(" "),a("p",[a("i",{staticClass:"iconfont icon-fuzeren"}),e._v(" "),a("span",[e._v("负责人:"+e._s(""==t.production_name?"暂无":t.production_name))])]),e._v(" "),a("p",[a("i",{staticClass:"iconfont icon-dianhua"}),e._v(" "),a("span",[e._v("电话:"+e._s(""==t.phone?"暂无":t.phone))])]),e._v(" "),a("p",[a("i",{staticClass:"iconfont icon-mianji"}),e._v(" "),a("span",[e._v("面积:"+e._s(t.base_area)+"亩")])]),e._v(" "),a("p",[a("i",{staticClass:"iconfont icon-dizhi"}),e._v(" "),a("span",[e._v("地址:"+e._s(t.area_addr[0])+e._s(t.area_addr[1])+e._s(t.area_addr[2]))])]),e._v(" "),a("div",{staticClass:"btn"},[a("div",{staticClass:"btnbox2",on:{click:function(a){return e.toplot(t)}}},[e._v("划分地块")]),e._v(" "),a("div",{staticClass:"btnbox2",on:{click:function(a){return e.tofac(t)}}},[e._v("设备绑定")])])])])])}),1),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.total,"page-size":e.page_size,"page-sizes":[6,9,12,15],"current-size":e.page},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"基地信息",visible:e.dialogVisible,width:"580px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"baseinfobox"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.baseinfodata,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"基地名称",prop:"base_name"}},[a("el-input",{attrs:{size:"mini",maxlength:"20"},model:{value:e.baseinfodata.base_name,callback:function(t){e.$set(e.baseinfodata,"base_name",t)},expression:"baseinfodata.base_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"负责人",prop:"production_name"}},[a("el-input",{attrs:{size:"mini",maxlength:"10"},model:{value:e.baseinfodata.production_name,callback:function(t){e.$set(e.baseinfodata,"production_name",t)},expression:"baseinfodata.production_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"联系电话",prop:"phone"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.baseinfodata.phone,callback:function(t){e.$set(e.baseinfodata,"phone",t)},expression:"baseinfodata.phone"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"基地面积",prop:"base_area"}},[a("p",[e._v(e._s(e.baseinfodata.base_area)+" 亩")])]),e._v(" "),a("el-form-item",{attrs:{label:"基地图片",prop:"img_url"}},[a("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.$http+"/api/util/upload/img/","show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload,"on-error":e.handleAvatarError}},[e.baseinfodata.img_url?a("img",{staticClass:"avatar",attrs:{src:e.baseinfodata.img_url}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),e._v(" "),a("el-form-item",{attrs:{label:"基地地址",prop:"name"}},[""==e.baseinfodata.base_addr?a("el-input",{attrs:{size:"mini"},model:{value:e.baseinfodata.base_addr,callback:function(t){e.$set(e.baseinfodata,"base_addr",t)},expression:"baseinfodata.base_addr"}}):a("p",[e._v(e._s(e.baseinfodata.base_addr))])],1),e._v(" "),a("el-form-item",{attrs:{label:"基地描述",prop:"describe"}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容",maxlength:256,"show-word-limit":""},model:{value:e.baseinfodata.describe,callback:function(t){e.$set(e.baseinfodata,"describe",t)},expression:"baseinfodata.describe"}})],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.addbtn}},[e._v("确 定")])],1)])],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"baselistbox_top_title"},[t("p",[this._v("基地管理")])])}]};var _t,yt=a("VU/8")(gt,bt,!1,function(e){a("ehgR")},"data-v-d280f56a",null).exports,wt={components:{},data:function(){return{massif_name:"",totalNum:10,page:1,page_size:10,pagekey:1,tableData:[],loading:!1,basevalue:"",baseoptions:[],dialogVisible:!1,ruleForm:{massif_id:"",plant_year:"",crop_name:"",harvest:"",remarks:""},rules:{plant_year:[{required:!0,message:"请选择年份",trigger:"change"}],crop_name:[{required:!0,message:"请选择作物",trigger:"change"}],harvest:[{required:!0,validator:function(e,t,a){""===t?a(new Error("请输入产量")):isNaN(t)?a(new Error("请输入数值")):t<0?a(new Error("请输入正确格式")):a()},trigger:"blur"}]},cropoptions:[],dialogVisible2:!1,yearlist:[],ysersel:"",tablepage:1,tabledatadia:[],massif_id:""}},computed:{},watch:{},methods:(_t={handleSizeChange:function(e){this.page=1,this.pagekey=10*Math.random()+1,this.page_size=e,this.getmassiflist()},handleCurrentChange:function(e){this.page=e,this.getmassiflist()},getbaselist:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=basemanager.baseinfo.list_land_base",data:this.qs.stringify({page:1,page_size:999999})}).then(function(t){if(t.data.data){t.data.data;for(var a=t.data.data.data,i=0;i<a.length;i++){var n={value:a[i].base_id,label:a[i].base_name};e.baseoptions.push(n)}}})},getmassiflist:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=basemanager.baseinfo.get_massif_list",data:this.qs.stringify({base_id:this.basevalue,massif_name:this.massif_name,page:this.page,page_size:this.page_size})}).then(function(t){t.data.data&&(t.data.data,e.tableData=t.data.data.data,e.totalNum=t.data.data.total_num)})},getcroplist:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=basemanager.baseinfo.massif_by_crop_list",data:this.qs.stringify({})}).then(function(t){if(t.data.data){t.data.data;for(var a=t.data.data,i=0;i<a.length;i++){var n={value:a[i].crop_name,label:a[i].crop_name};e.cropoptions.push(n)}}})},addinfof:function(){this.dialogVisible=!1,this.ruleForm={massif_id:"",plant_year:"",crop_name:"",harvest:"",remarks:""}},addinfot:function(){var e=this,t=new Date(this.ruleForm.plant_year).getFullYear();this.$refs.ruleForm.validate(function(a){if(!a)return!1;e.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.add_plant_record",data:e.qs.stringify({massif_id:e.ruleForm.massif_id,plant_year:t,crop_name:e.ruleForm.crop_name,harvest:e.ruleForm.harvest,remarks:e.ruleForm.remarks})}).then(function(t){t.data.data?(0==document.getElementsByClassName("el-message").length&&e.$message.success("添加成功"),e.dialogVisible=!1,e.ruleForm={massif_id:"",plant_year:"",crop_name:"",harvest:"",remarks:""}):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})})},opendata:function(e){this.dialogVisible2=!0,this.getyearlist(e),this.gettabledata(e),this.massif_id=e},adddata:function(e){this.dialogVisible=!0,this.ruleForm.massif_id=e},getyearlist:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=basemanager.baseinfo.get_plant_year_list",data:this.qs.stringify({massif_id:e})}).then(function(e){if(e.data.data){e.data.data;var a=e.data.data;t.yearlist=[];for(var i=0;i<a.length;i++){var n={value:a[i],label:a[i]};t.yearlist.push(n)}}})}},w()(_t,"handleCurrentChange",function(e){this.tablepage=e,this.gettabledata(this.massif_id)}),w()(_t,"yearchange",function(e){this.tablepage=1,this.ysersel=e,this.gettabledata(this.massif_id)}),w()(_t,"gettabledata",function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=basemanager.baseinfo.get_plant_record",data:this.qs.stringify({massif_id:e,plant_year:this.ysersel,page:this.tablepage,page_size:10})}).then(function(e){e.data.data&&(t.total_num=e.data.data.total_num,t.tabledatadia=e.data.data.data)})}),w()(_t,"deldata",function(e){var t=this;this.$confirm("此操作将删除该条数据, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$axios({method:"POST",url:"/api/api_gateway?method=basemanager.baseinfo.del_plant_record",data:t.qs.stringify({record_id:e})}).then(function(e){e.data.data?(0==document.getElementsByClassName("el-message").length&&t.$message.success("删除成功"),t.gettabledata(t.massif_id)):0==document.getElementsByClassName("el-message").length&&t.$message.error(e.data.message)})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})}),_t),beforeCreate:function(){},created:function(){this.getmassiflist(),this.getbaselist(),this.getcroplist()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},xt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cropbox"},[a("div",{staticClass:"baselistbox_top"},[e._m(0),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticClass:"left_search"},[a("div",{staticClass:"firstsearch"},[a("el-select",{attrs:{size:"mini",filterable:"",placeholder:"请选择",clearable:""},model:{value:e.basevalue,callback:function(t){e.basevalue=t},expression:"basevalue"}},e._l(e.baseoptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("div",{staticClass:"firstsearch"},[a("el-input",{attrs:{size:"mini",placeholder:"请输入地块名称"},model:{value:e.massif_name,callback:function(t){e.massif_name=t},expression:"massif_name"}})],1),e._v(" "),a("div",{staticClass:"btnbox",on:{click:function(t){e.page=1,e.pagekey=10*Math.random()+1,e.getmassiflist()}}},[e._v("\n 查询\n ")])])])]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",height:"560px"}},[a("el-table-column",{attrs:{prop:"base_name",label:"基地名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"massif_name",label:"地块名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"crop_name",label:"农作物名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"terrain",label:"地形"}}),e._v(" "),a("el-table-column",{attrs:{prop:"slope",label:"坡度"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.opendata(t.row.massif_id)}}},[e._v("数据列表")]),e._v(" "),a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.adddata(t.row.massif_id)}}},[e._v("录入数据")])]}}])})],1),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalNum,"page-sizes":[10,20,30,50],"page-size":e.page_size,"current-size":e.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"录入数据",visible:e.dialogVisible,width:"500px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"datainfobox"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"年份",prop:"plant_year"}},[a("el-date-picker",{attrs:{size:"mini",type:"year",placeholder:"选择年份"},model:{value:e.ruleForm.plant_year,callback:function(t){e.$set(e.ruleForm,"plant_year",t)},expression:"ruleForm.plant_year"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"作物",prop:"crop_name"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择作物",size:"mini"},model:{value:e.ruleForm.crop_name,callback:function(t){e.$set(e.ruleForm,"crop_name",t)},expression:"ruleForm.crop_name"}},e._l(e.cropoptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"产量",prop:"harvest"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入内容"},model:{value:e.ruleForm.harvest,callback:function(t){e.$set(e.ruleForm,"harvest",t)},expression:"ruleForm.harvest"}}),e._v(" "),a("span",[e._v("斤")])],1),e._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"remarks"}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容"},model:{value:e.ruleForm.remarks,callback:function(t){e.$set(e.ruleForm,"remarks",t)},expression:"ruleForm.remarks"}})],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:e.addinfof}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.addinfot}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"录入数据",visible:e.dialogVisible2,width:"1000px"},on:{"update:visible":function(t){e.dialogVisible2=t}}},[a("div",{staticClass:"datalistbox"},[a("el-select",{attrs:{filterable:"",placeholder:"请选择年份",size:"mini",clearable:""},on:{change:e.yearchange},model:{value:e.ysersel,callback:function(t){e.ysersel=t},expression:"ysersel"}},e._l(e.yearlist,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("el-table",{staticClass:"tablebox",staticStyle:{width:"100%"},attrs:{data:e.tabledatadia}},[a("el-table-column",{attrs:{prop:"plant_year",label:"年份",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{prop:"crop_name",label:"种植作物",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"harvest",label:"产量",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"remarks",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.deldata(t.row.record_id)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"",layout:"prev, pager, next,jumper",total:e.totalNum,"page-size":10},on:{"current-change":e.handleCurrentChange}})],1)],1)])],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"baselistbox_top_title"},[t("p",[this._v("地块管理")])])}]};var Ct=a("VU/8")(wt,xt,!1,function(e){a("yNHL")},"data-v-a2b095f0",null).exports,At=a("+aT9"),kt=a.n(At),Et={components:{},data:function(){return{map:null,city:"",geocoder:null,center:[116.412427,39.303573],overlays:[],underway:!1,dialogVisible:!1,baseinfodata:{base_name:"",base_area:"",coordinates:"",base_addr:"",img_url:"",img_url2:"",describe:"",production_name:"",phone:"",address:""},rules:{base_name:{required:!0,message:"请输入基地名称",trigger:"blur"},img_url:{required:!0,message:"请选择基地图片",trigger:"blur"},base_addr:{required:!0,message:"请输入基地地址",trigger:"blur"},phone:{validator:function(e,t,a){""===t?a():/^1[3-9]\d{9}$/.test(t)?a():a(new Error("请输入正确手机号"))},trigger:"blur"}}}},computed:{},watch:{dialogVisible:function(e,t){0==e&&this.map.remove(this.overlays)}},methods:{goBackPage:function(){this.$router.go(-1)},getbaslist:function(){var e=this;this.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.list_land_base",data:this.qs.stringify({page:1,page_size:9999999})}).then(function(t){if(e.loading=!1,t.data.data){var a=t.data.data.data;e.alreadyhave=a;for(var i=0;i<a.length;i++){var n=JSON.parse(a[i].coordinates);new kt.a.Polygon({map:e.map,path:n,strokeColor:"#4f71ff",strokeOpacity:.5,strokeWeight:3,fillColor:"#1791fc",fillOpacity:.35})}}})},init:function(){var e=this,t=new kt.a.Map("mapbox",{center:this.center,resizeEnable:!0,zoom:15,lang:"en",layers:[new kt.a.TileLayer.Satellite,new kt.a.TileLayer.RoadNet]});kt.a.plugin(["AMap.ToolBar","AMap.Geocoder"],function(){t.addControl(new kt.a.ToolBar),e.geocoder=new kt.a.Geocoder({city:"全国",radius:1e3})}),this.map=t},addrChange:function(){var e=this;this.map.plugin(["AMap.Geocoder"],function(){e.city,e.geocoder.getLocation(e.city,function(t,a){if("complete"===t&&a.geocodes.length){var i=a.geocodes[0].location.lat,n=a.geocodes[0].location.lng;a.geocodes[0],setTimeout(function(){e.map.setZoomAndCenter(7,e.center),setTimeout(function(){e.map.setZoomAndCenter(7,[n,i]),setTimeout(function(){e.map.setZoomAndCenter(14,[n,i])},1e3)},1e3)},500)}})})},draw:function(){var e=this;if(this.underway)return 0==document.getElementsByClassName("el-message").length?void this.$message.warning("正在绘制中,请勿重复点击"):void 0;this.underway=!0,this.map.plugin(["AMap.MouseTool"],function(){var t,a=new kt.a.MouseTool(e.map);a.polygon((t={strokeColor:"#4f71ff",strokeOpacity:1,strokeWeight:6},w()(t,"strokeOpacity",.5),w()(t,"fillColor","#1791fc"),w()(t,"fillOpacity",.4),w()(t,"strokeStyle","solid"),t)),a.on("draw",function(t){e.mousetool.close(),e.underway=!1,e.overlays.push(t.obj);var a=t.obj.getOptions().path,i=Math.round(kt.a.GeometryUtil.ringArea(a));e.baseinfodata.base_area=(i+i/2)/1e3,e.baseinfodata.coordinates=a,e.getcity(a[0]);var n=e.alreadyhave.some(function(t){return e.compute(JSON.parse(t.coordinates))});n||(e.dialogVisible=!0)}),e.mousetool=a})},compute:function(e){var t=this.baseinfodata.coordinates,a=e,i=kt.a.GeometryUtil.isRingInRing(a,t),n=kt.a.GeometryUtil.doesRingRingIntersect(a,t);return!(!i&&!n)&&(0==document.getElementsByClassName("el-message").length&&this.$message.warning("基地被覆盖,绘制无效"),this.map.remove(this.overlays),!0)},getcity:function(e){var t=this;this.$jsonp("http://restapi.amap.com/v3/geocode/regeo?output=json",{key:"a6919321ca5d6b4d2f11c63fe87671de",location:e[0]+","+e[1]}).then(function(e){e.regeocode,e.regeocode&&e.regeocode.formatted_address?(""==e.regeocode.addressComponent.city||0==e.regeocode.addressComponent.city.length?t.baseinfodata.address=e.regeocode.addressComponent.province+","+e.regeocode.addressComponent.province+","+e.regeocode.addressComponent.district:t.baseinfodata.address=e.regeocode.addressComponent.province+","+e.regeocode.addressComponent.city+","+e.regeocode.addressComponent.district,t.baseinfodata.base_addr=e.regeocode.formatted_address):t.baseinfodata.base_addr=""})},handleAvatarSuccess:function(e,t){this.baseinfodata.img_url2=this.$http+e.img_url,this.baseinfodata.img_url=URL.createObjectURL(t.raw)},handleAvatarError:function(e){},beforeAvatarUpload:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传图片大小不能超过 2MB!"),t},addbtnfa:function(){this.dialogVisible=!1,this.map.remove(this.overlays)},addbtn:function(){var e=this;this.$refs.ruleForm.validate(function(t){if(!t)return!1;e.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.add_land_base",data:e.qs.stringify({base_name:e.baseinfodata.base_name,base_area:e.baseinfodata.base_area,coordinates:s()(e.baseinfodata.coordinates),base_addr:e.baseinfodata.base_addr,img_url:e.baseinfodata.img_url2,describe:e.baseinfodata.describe,production_name:e.baseinfodata.production_name,phone:e.baseinfodata.phone,address:e.baseinfodata.address})}).then(function(t){t.data.data?(0==document.getElementsByClassName("el-message").length&&e.$message.success("添加成功"),e.dialogVisible=!1,e.$router.go(-1)):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})})}},beforeCreate:function(){},created:function(){this.$route.query.lng?""==this.$route.query.lng?this.center=[116.412427,39.303573]:this.center=[this.$route.query.lng,this.$route.query.lat]:this.center=[116.412427,39.303573]},beforeMount:function(){},mounted:function(){this.init(),this.getbaslist()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},Dt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mappage"},[a("div",{attrs:{id:"mapbox"}}),e._v(" "),a("div",{staticClass:"inputbox"},[a("el-input",{attrs:{size:"small",clearable:"",placeholder:"请输入地区检索"},on:{change:function(t){return e.addrChange()}},model:{value:e.city,callback:function(t){e.city=t},expression:"city"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"suffix"},slot:"suffix"})]),e._v(" "),a("div",{staticClass:"btnbox2",on:{click:e.draw}},[e._v("开始绘制")])],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.underway,expression:"underway"}],staticClass:"tishi"},[e._v("\n 双击左键或单击右键可以结束基地绘制\n ")]),e._v(" "),a("el-dialog",{attrs:{title:"基地信息",visible:e.dialogVisible,width:"580px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"baseinfobox"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.baseinfodata,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"基地名称",prop:"base_name"}},[a("el-input",{attrs:{size:"mini",maxlength:"20"},model:{value:e.baseinfodata.base_name,callback:function(t){e.$set(e.baseinfodata,"base_name",t)},expression:"baseinfodata.base_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"负责人",prop:"production_name"}},[a("el-input",{attrs:{size:"mini",maxlength:"10"},model:{value:e.baseinfodata.production_name,callback:function(t){e.$set(e.baseinfodata,"production_name",t)},expression:"baseinfodata.production_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"联系电话",prop:"phone"}},[a("el-input",{attrs:{size:"mini"},model:{value:e.baseinfodata.phone,callback:function(t){e.$set(e.baseinfodata,"phone",t)},expression:"baseinfodata.phone"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"基地面积",prop:"base_area"}},[a("p",[e._v(e._s(e.baseinfodata.base_area)+" 亩")])]),e._v(" "),a("el-form-item",{attrs:{label:"基地图片",prop:"img_url"}},[a("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.$http+"/api/util/upload/img/","show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload,"on-error":e.handleAvatarError}},[e.baseinfodata.img_url?a("img",{staticClass:"avatar",attrs:{src:e.baseinfodata.img_url}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),e._v(" "),a("el-form-item",{attrs:{label:"基地地址",prop:"name"}},[""==e.baseinfodata.base_addr?a("el-input",{attrs:{size:"mini"},model:{value:e.baseinfodata.base_addr,callback:function(t){e.$set(e.baseinfodata,"base_addr",t)},expression:"baseinfodata.base_addr"}}):a("p",[e._v(e._s(e.baseinfodata.base_addr))])],1),e._v(" "),a("el-form-item",{attrs:{label:"基地描述",prop:"describe"}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容",maxlength:256,"show-word-limit":""},model:{value:e.baseinfodata.describe,callback:function(t){e.$set(e.baseinfodata,"describe",t)},expression:"baseinfodata.describe"}})],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:e.addbtnfa}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.addbtn}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var St=a("VU/8")(Et,Dt,!1,function(e){a("ST+V")},"data-v-417ecbb4",null).exports,It={components:{},data:function(){return{map:"",center:[],city:"",base_id:"",Polygon:null,polyonarr:[],dialogVisible:!1,facilitylist:[],total:10,type_id:"",device_id:"",type_idoptions:[],facinfo:{device_id:"",coordinates:[]},loading:!1,marker:null,underway:!1,alreadyhave:{area_addr:[]},faclist:[],baseloading:!1}},computed:{},watch:{dialogVisible:function(e,t){1==e&&this.getfacilitylist()}},methods:{tofac:function(){this.$router.push("/index/mapplot?lng="+this.center[0]+"&lat="+this.center[1]+"&id="+this.base_id)},init:function(){var e=this,t=new AMap.Map("mapbox",{center:this.center,resizeEnable:!0,zoom:15,lang:"en",layers:[new AMap.TileLayer.Satellite,new AMap.TileLayer.RoadNet]});AMap.plugin(["AMap.ToolBar","AMap.Geocoder"],function(){t.addControl(new AMap.ToolBar),e.geocoder=new AMap.Geocoder({city:"全国",radius:1e3})}),this.map=t},getbaslist:function(){var e=this;this.baseloading=!0,this.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.list_land_base",data:this.qs.stringify({base_id:this.base_id})}).then(function(t){if(t.data.data){var a=t.data.data.data;e.alreadyhave=a[0];var i=JSON.parse(a[0].coordinates);e.Polygon=new AMap.Polygon({map:e.map,path:i,strokeColor:"#4f71ff",strokeOpacity:.5,strokeWeight:3,fillColor:"#1791fc",fillOpacity:.35}),e.getpoltlist()}})},getpoltlist:function(){var e=this;this.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.get_massif_list",data:this.qs.stringify({base_id:this.base_id})}).then(function(t){if(e.loading=!1,t.data.data){for(var a=t.data.data.data,i=0;i<a.length;i++){var n=JSON.parse(a[i].coordinates),l=new AMap.Polygon({map:e.map,path:n,strokeColor:a[i].crop_colors,strokeOpacity:.5,strokeWeight:3,fillColor:a[i].crop_colors,fillOpacity:.35});e.polyonarr.push(l)}e.getgaclisting()}})},getgaclisting:function(){var e=this;this.$axios({method:"post",url:"api/api_gateway?method=basemanager.device.list_land_device",data:this.qs.stringify({base_id:this.base_id,page:1,page_size:99999999})}).then(function(t){if(e.baseloading=!1,t.data.data){var a=t.data.data.data;e.faclist=a;for(var i=0;i<a.length;i++){var n=new AMap.Icon({size:new AMap.Size(28,30),image:"../../../static/images/map/"+a[i].device_type_id+".png",imageSize:new AMap.Size(28,30)});JSON.parse(a[i].coordinates),new AMap.Marker({position:new AMap.LngLat(JSON.parse(a[i].coordinates)[0],JSON.parse(a[i].coordinates)[1]),icon:n,map:e.map,offset:new AMap.Pixel(-14,-30)})}}})},drawfa:function(){var e=this;if(0==document.getElementsByClassName("el-message").length&&this.$message.success("开始绑定"),this.underway)0==document.getElementsByClassName("el-message").length&&this.$message.warning("正在绘制中,请勿重复点击");else{this.underway=!0,this.map.on("click",function(t){0==document.getElementsByClassName("el-message").length&&e.$message.warning("请在基地内点击")}),this.Polygon.on("click",function(t){var a=new AMap.Icon({size:new AMap.Size(28,30),image:"../../../static/images/map/all.png",imageSize:new AMap.Size(28,30)});e.marker=new AMap.Marker({position:new AMap.LngLat(t.lnglat.getLng(),t.lnglat.getLat()),icon:a,map:e.map,offset:new AMap.Pixel(-14,-30)}),e.facinfo.coordinates=[t.lnglat.getLng(),t.lnglat.getLat()],e.dialogVisible=!0});for(var t=0;t<this.polyonarr.length;t++)this.polyonarr[t].on("click",function(t){var a=new AMap.Icon({size:new AMap.Size(28,30),image:"../../../static/images/map/all.png",imageSize:new AMap.Size(28,30)});e.marker=new AMap.Marker({position:new AMap.LngLat(t.lnglat.getLng(),t.lnglat.getLat()),icon:a,map:e.map,offset:new AMap.Pixel(-14,-30)}),e.facinfo.coordinates=[t.lnglat.getLng(),t.lnglat.getLat()],e.dialogVisible=!0})}},getwormlist:function(){this.page=1,this.getfacilitylist()},handleCurrentChange:function(e){this.page=e,this.getfacilitylist()},getfacilitylist:function(){var e=this;this.loading=!0,this.$axios({method:"post",url:"api/api_gateway?method=basemanager.device.get_land_device_list",data:this.qs.stringify({type_id:this.type_id,device_id:this.device_id,page:this.page,page_size:10})}).then(function(t){if(e.loading=!1,t.data.data){t.data.data,e.type_idoptions=[],e.facilitylist=t.data.data.device_list,e.total=t.data.data.total_num;for(var a=t.data.data.type_list,i=0;i<a.length;i++){var n={value:a[i].type_id,label:a[i].type_name};e.type_idoptions.push(n)}}})},addbtnfa:function(){this.dialogVisible=!1,this.map.remove(this.marker)},addbtn:function(){var e=this;this.facinfo,""!=this.facinfo.device_id?this.$axios({method:"post",url:"api/api_gateway?method=basemanager.device.add_land_device",data:this.qs.stringify({base_id:this.base_id,device_id:this.facinfo.device_id,coordinates:s()(this.facinfo.coordinates)})}).then(function(t){t.data.data&&(t.data.data?(0==document.getElementsByClassName("el-message").length&&e.$message.success("绑定成功"),e.dialogVisible=!1,e.underway=!1,e.facinfo={device_id:"",coordinates:""},e.$router.go(0)):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message))}):0==document.getElementsByClassName("el-message").length&&this.$message.warning("请选择绑定设备")},delfac:function(e){var t=this;this.$confirm("此操作将此设备与当前基地解绑, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$axios({method:"post",url:"api/api_gateway?method=basemanager.device.del_land_device",data:t.qs.stringify({ld_id:e})}).then(function(e){""==e.data.message?(t.$message({type:"success",message:"解绑成功!"}),t.map.clearMap(),t.getbaslist()):t.$message({type:"error",message:e.data.message})})}).catch(function(){t.$message({type:"info",message:"已取消解绑"})})}},beforeCreate:function(){},created:function(){""==this.$route.query.lng?this.center=[116.412427,39.303573]:this.center=[this.$route.query.lng,this.$route.query.lat],this.base_id=this.$route.query.id},beforeMount:function(){},mounted:function(){this.init(),this.getbaslist()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},Tt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"facilitybox"},[a("div",{attrs:{id:"mapbox"}}),e._v(" "),a("div",{staticClass:"inputbox"},[a("el-input",{attrs:{size:"small",clearable:"",placeholder:"请输入地区检索"},on:{change:function(t){return e.addrChange()}},model:{value:e.city,callback:function(t){e.city=t},expression:"city"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"suffix"},slot:"suffix"})]),e._v(" "),a("div",{staticClass:"btnbox2",on:{click:e.drawfa}},[e._v("绑定设备")])],1),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.baseloading,expression:"baseloading"}],staticClass:"listbox"},[a("div",{staticClass:"listbox_base"},[a("p",[e._v(e._s(e.alreadyhave.base_name))]),e._v(" "),a("p",[a("span",[e._v(e._s(e.alreadyhave.area_addr[0]))]),e._v(" "),a("span",[e._v(e._s(e.alreadyhave.area_addr[1]))]),e._v(" "),a("span",[e._v(e._s(e.alreadyhave.area_addr[2]))])]),e._v(" "),a("p",[a("i",{staticClass:"iconfont icon-zongmianji",staticStyle:{color:"#999","font-size":"14px"}}),e._v(" 基地面积:"+e._s(e.alreadyhave.base_area)+"\n 亩\n ")]),e._v(" "),a("p",[a("i",{staticClass:"iconfont icon-dikuaishuliang",staticStyle:{color:"#999","font-size":"14px"}}),e._v(" 设备数量:"+e._s(e.faclist.length)+"\n 块\n ")])]),e._v(" "),a("div",{staticClass:"listbox_fac"},[a("div",{staticClass:"table_page"},[a("p",{staticClass:"table_page_no",on:{click:e.tofac}},[e._v("地块信息")]),e._v(" "),a("p",{staticClass:"table_page_act"},[e._v("设备信息")])]),e._v(" "),a("div",{staticClass:"listbox_facbox"},[0==e.faclist.length?a("div",{staticClass:"tishi"},[e._v("暂无绑定设备")]):e._e(),e._v(" "),e._l(e.faclist,function(t,i){return a("div",{key:i,staticClass:"listbox_facbox_item"},[a("p",{staticClass:"title"},[e._v(e._s(t.tpye_name))]),e._v(" "),a("div",{staticClass:"caozuo"},[a("div",[e._v(e._s(t.device_id))]),e._v(" "),a("div",[a("p",{on:{click:function(a){return e.delfac(t.ld_id)}}},[e._v("解绑")])])])])})],2)])]),e._v(" "),a("el-dialog",{attrs:{title:"绑定设备",visible:e.dialogVisible,width:"580px","close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"facdiabox"},[a("div",{staticClass:"top_search"},[a("div",{staticClass:"firstsearch"},[a("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:e.type_id,callback:function(t){e.type_id=t},expression:"type_id"}},e._l(e.type_idoptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("div",{staticClass:"firstsearch"},[a("el-input",{attrs:{size:"mini",placeholder:"请输入设备ID"},model:{value:e.device_id,callback:function(t){e.device_id=t},expression:"device_id"}})],1),e._v(" "),a("div",{staticClass:"btnbox",on:{click:e.getwormlist}},[e._v("查询")])]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"bot_table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.facilitylist}},[a("el-table-column",{attrs:{width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.row.device_id},model:{value:e.facinfo.device_id,callback:function(t){e.$set(e.facinfo,"device_id",t)},expression:"facinfo.device_id"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备编号",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.device_id))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.device_name))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.device_type_name))]}}])})],1)],1),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"",layout:"prev, pager, next,jumper",total:e.total,"page-size":8},on:{"current-change":e.handleCurrentChange}})],1)]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:e.addbtnfa}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.addbtn}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var Bt=a("VU/8")(It,Tt,!1,function(e){a("oV1X")},"data-v-bc466d08",null).exports,Mt={components:{},data:function(){return{city:"",map:"",center:[],base_id:"",underway:!1,polygon:null,polygonArr:[],polyEdarr:[],polyEditor:null,polygons:[],polyinfo:{base_id:"",massif_name:"",massif_area:"",coordinates:"",terrain:"",slope:"",crop_id:""},cropoptions:[],dialogVisible:!1,rules:{massif_name:{required:!0,message:"请输入地块名称",trigger:"blur"},terrain:{required:!0,message:"请输入地块地形",trigger:"blur"},slope:{required:!0,validator:function(e,t,a){""===(t=t.toString())?a(new Error("请输入地块坡度")):-1!=t.indexOf("-")?a(new Error("请输入正整数")):-1!=t.indexOf(".")?a(new Error("请输入正整数")):a()},trigger:"blur"},crop_id:{required:!0,message:"请选择种植作物",trigger:"blur"}},alreadyhave:{area_addr:[]},faclist:[],dialogVisibleinfo:!1,poltlistinfo:{},loading:!1}},computed:{},watch:{dialogVisible:function(e){e&&this.getcroplist()}},methods:{tofac:function(){this.$router.push("/index/maofacility?lng="+this.center[0]+"&lat="+this.center[1]+"&id="+this.base_id)},init:function(){var e=this;this.center;var t=new AMap.Map("mapbox",{center:this.center,resizeEnable:!0,zoom:15,lang:"en",layers:[new AMap.TileLayer.Satellite,new AMap.TileLayer.RoadNet]});AMap.plugin(["AMap.ToolBar","AMap.Geocoder"],function(){t.addControl(new AMap.ToolBar),e.geocoder=new AMap.Geocoder({city:"全国",radius:1e3})}),this.map=t},addrChange:function(){var e=this;this.map.plugin(["AMap.Geocoder"],function(){e.city,e.geocoder.getLocation(e.city,function(t,a){if("complete"===t&&a.geocodes.length){var i=a.geocodes[0].location.lat,n=a.geocodes[0].location.lng;a.geocodes[0],setTimeout(function(){e.map.setZoomAndCenter(7,e.center),setTimeout(function(){e.map.setZoomAndCenter(7,[n,i]),setTimeout(function(){e.map.setZoomAndCenter(14,[n,i])},1e3)},1e3)},500)}})})},getbaslist:function(){var e=this;this.loading=!0,this.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.list_land_base",data:this.qs.stringify({base_id:this.base_id})}).then(function(t){if(t.data.data){var a=t.data.data.data;e.alreadyhave=a[0];var i=JSON.parse(a[0].coordinates);e.polygonArr=i,e.polyEdarr=[],e.polygon=new AMap.Polygon({map:e.map,path:i,strokeColor:"#4f71ff",strokeOpacity:.5,strokeWeight:3,fillColor:"#1791fc",fillOpacity:.35}),e.polyEdarr.unshift(e.polygon),e.getpoltlist()}})},getpoltlist:function(){var e=this;this.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.get_massif_list",data:this.qs.stringify({base_id:this.base_id})}).then(function(t){if(e.loading=!1,t.data.data){var a=t.data.data.data;e.faclist=a,e.polygons=[];for(var i=0;i<a.length;i++){var n=JSON.parse(a[i].coordinates),l=new AMap.Polygon({map:e.map,path:n,strokeColor:a[i].crop_colors,strokeOpacity:.5,strokeWeight:3,fillColor:a[i].crop_colors,fillOpacity:.35});e.polyEdarr.push(l),e.polygons.push(n)}}})},createPolygon:function(){if(this.underway)0==document.getElementsByClassName("el-message").length&&this.$message.warning("正在绘制中,请勿重复点击");else{0==document.getElementsByClassName("el-message").length&&this.$message.success("开始绘制"),this.underway=!0;var e=new AMap.PolygonEditor(this.map);e.addAdsorbPolygons(this.polyEdarr),this.polyEditor=e,e.on("add",this.plotend),e.on("addnode",this.plotaddnode),e.close(),e.setTarget(),e.open()}},plotend:function(e){var t=this,a=e.target,i=e.target.getPath();this.polygons;var n=this.polygons.some(function(e){AMap.GeometryUtil.doesRingRingIntersect(i,e);var a=AMap.GeometryUtil.ringRingClip(i,e),n=parseInt(AMap.GeometryUtil.ringArea(a));return 0!==n&&(0==document.getElementsByClassName("el-message").length&&t.$message.warning("地块与其他地块重叠,绘制无效"),t.polyEditor.close(),t.underway=!1,!0)});if(!n){this.polyEditor.addAdsorbPolygons(a);var l=e.obj.getOptions().path,s=Math.round(AMap.GeometryUtil.ringArea(l));this.polyinfo.massif_area=(s+s/2)/1e3,this.polyinfo.coordinates=l,this.dialogVisible=!0,this.polygons.push(a.getPath()),setTimeout(function(){t.polyEditor.close()},10)}},plotaddnode:function(e){var t=this,a=e.target,i=e.lnglat;if(!AMap.GeometryUtil.isPointInRing(i,this.polygonArr)){var n=a.getPath();return n=n.slice(0,-1),a.setPath(n),0==document.getElementsByClassName("el-message").length&&this.$message.warning("超出基地范围,请在基地范围内绘制!"),!1}this.polygons.some(function(e){if(AMap.GeometryUtil.isPointInRing(i,e)){var n=a.getPath();return n=n.slice(0,-1),a.setPath(n),0==document.getElementsByClassName("el-message").length&&t.$message.warning("请不要画到已有地块内,请重新绘制!"),!0}})},addbtnfa:function(){var e=this.map.getAllOverlays("polygon");1==e.length||(this.map.remove(e[0]),this.polygons.pop()),this.dialogVisible=!1,this.underway=!1},addbtn:function(){var e=this;this.polyinfo,this.$refs.ruleForm.validate(function(t){if(!t)return!1;e.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.add_massif",data:e.qs.stringify({base_id:e.base_id,massif_name:e.polyinfo.massif_name,massif_area:e.polyinfo.massif_area,coordinates:s()(e.polyinfo.coordinates),terrain:e.polyinfo.terrain,slope:e.polyinfo.slope,crop_id:e.polyinfo.crop_id})}).then(function(t){t.data.data?(0==document.getElementsByClassName("el-message").length&&e.$message.success("添加成功"),e.dialogVisible=!1,e.underway=!1,e.polyinfo={base_id:"",massif_name:"",massif_area:"",coordinates:"",terrain:"",slope:"",crop_id:""},e.$router.go(0)):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})})},getcroplist:function(e){var t=this;this.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.massif_by_crop_list",data:this.qs.stringify({massif_id:e})}).then(function(e){if(e.data.data)for(var a=e.data.data,i=0;i<a.length;i++){var n={value:a[i].crop_id,label:a[i].crop_name};t.cropoptions.push(n)}})},getpoltlistinfo:function(e){var t=this;this.dialogVisibleinfo=!0,this.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.get_massif_list",data:this.qs.stringify({base_id:this.base_id,massif_name:e})}).then(function(e){if(t.loading=!1,e.data.data){var a=e.data.data.data;t.poltlistinfo=a[0]}})},addbtninfo:function(){var e=this;this.poltlistinfo,this.$refs.ruleForm.validate(function(t){if(!t)return!1;e.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.modify_massif",data:e.qs.stringify({massif_name:e.poltlistinfo.massif_name,massif_id:e.poltlistinfo.massif_id,terrain:e.poltlistinfo.terrain,slope:e.poltlistinfo.slope,crop_id:e.poltlistinfo.crop_id})}).then(function(t){t.data.data?(0==document.getElementsByClassName("el-message").length&&e.$message.success("修改成功"),e.dialogVisibleinfo=!1,e.poltlistinfo={}):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})})},delfac:function(e){var t=this;this.$confirm("此操作将删除该地块, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.del_massif",data:t.qs.stringify({massif_id:e})}).then(function(e){""==e.data.message?(t.$message({type:"success",message:"删除成功!"}),t.map.clearMap(),t.getbaslist()):t.$message({type:"error",message:e.data.message})})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})}},beforeCreate:function(){},created:function(){""==this.$route.query.lng?this.center=[116.412427,39.303573]:this.center=[this.$route.query.lng,this.$route.query.lat],this.center,this.base_id=this.$route.query.id},beforeMount:function(){},mounted:function(){this.init(),this.getbaslist()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},Pt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"plotbox"},[a("div",{attrs:{id:"mapbox"}}),e._v(" "),a("div",{staticClass:"inputbox"},[a("el-input",{attrs:{size:"small",clearable:"",placeholder:"请输入地区检索"},on:{change:function(t){return e.addrChange()}},model:{value:e.city,callback:function(t){e.city=t},expression:"city"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"suffix"},slot:"suffix"})]),e._v(" "),a("div",{staticClass:"btnbox2",on:{click:e.createPolygon}},[e._v("绘制地块")])],1),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"listbox"},[a("div",{staticClass:"listbox_base"},[a("p",[e._v(e._s(e.alreadyhave.base_name))]),e._v(" "),a("p",[a("span",[e._v(e._s(e.alreadyhave.area_addr[0]))]),e._v(" "),a("span",[e._v(e._s(e.alreadyhave.area_addr[1]))]),e._v(" "),a("span",[e._v(e._s(e.alreadyhave.area_addr[2]))])]),e._v(" "),a("p",[a("i",{staticClass:"iconfont icon-zongmianji",staticStyle:{color:"#999","font-size":"14px"}}),e._v("\n 基地面积:"+e._s(e.alreadyhave.base_area)+"\n 亩\n ")]),e._v(" "),a("p",[a("i",{staticClass:"iconfont icon-dikuaishuliang",staticStyle:{color:"#999","font-size":"14px"}}),e._v("\n 地块数量:"+e._s(e.faclist.length)+"\n 块\n ")])]),e._v(" "),a("div",{staticClass:"listbox_fac"},[a("div",{staticClass:"table_page"},[a("p",{staticClass:"table_page_act"},[e._v("地块信息")]),e._v(" "),a("p",{staticClass:"table_page_no",on:{click:e.tofac}},[e._v("设备信息")])]),e._v(" "),a("div",{staticClass:"listbox_facbox"},[0==e.faclist.length?a("div",{staticClass:"tishi"},[e._v("暂无地块")]):e._e(),e._v(" "),e._l(e.faclist,function(t,i){return a("div",{key:i,staticClass:"listbox_facbox_item"},[a("p",{staticClass:"title"},[e._v(e._s(t.massif_name))]),e._v(" "),a("p",[e._v(e._s(t.crop_name))]),e._v(" "),a("div",{staticClass:"caozuo"},[a("div",[e._v("地块面积:"+e._s(t.massif_area)+" 亩")]),e._v(" "),a("div",[a("p",{on:{click:function(a){e.getpoltlistinfo(t.massif_name),e.getcroplist(t.massif_id)}}},[e._v("\n 修改\n ")]),e._v(" "),a("p",{on:{click:function(a){return e.delfac(t.massif_id)}}},[e._v("删除")])])])])})],2)])]),e._v(" "),a("el-dialog",{attrs:{title:"地块信息",visible:e.dialogVisible,width:"580px","close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"baseinfobox"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.polyinfo,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"地块名称",prop:"massif_name"}},[a("el-input",{attrs:{size:"mini",maxlength:"15"},model:{value:e.polyinfo.massif_name,callback:function(t){e.$set(e.polyinfo,"massif_name",t)},expression:"polyinfo.massif_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"地块面积",prop:"massif_area"}},[a("p",[e._v(e._s(e.polyinfo.massif_area)+" 亩")])]),e._v(" "),a("el-form-item",{attrs:{label:"地形",prop:"terrain"}},[a("el-input",{attrs:{size:"mini",maxlength:"15"},model:{value:e.polyinfo.terrain,callback:function(t){e.$set(e.polyinfo,"terrain",t)},expression:"polyinfo.terrain"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"坡度",prop:"slope"}},[a("el-input",{attrs:{size:"mini",maxlength:"15",type:"number"},model:{value:e.polyinfo.slope,callback:function(t){e.$set(e.polyinfo,"slope",t)},expression:"polyinfo.slope"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"当前种植",prop:"crop_id"}},[a("el-select",{attrs:{size:"mini",filterable:"",placeholder:"请选择"},model:{value:e.polyinfo.crop_id,callback:function(t){e.$set(e.polyinfo,"crop_id",t)},expression:"polyinfo.crop_id"}},e._l(e.cropoptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:e.addbtnfa}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.addbtn}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"修改地块信息",visible:e.dialogVisibleinfo,width:"580px","close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(t){e.dialogVisibleinfo=t}}},[a("div",{staticClass:"baseinfobox"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.poltlistinfo,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"地块名称",prop:"massif_name"}},[a("el-input",{attrs:{size:"mini",maxlength:"15"},model:{value:e.poltlistinfo.massif_name,callback:function(t){e.$set(e.poltlistinfo,"massif_name",t)},expression:"poltlistinfo.massif_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"地块面积",prop:"massif_area"}},[a("p",[e._v(e._s(e.poltlistinfo.massif_area)+" 亩")])]),e._v(" "),a("el-form-item",{attrs:{label:"地形",prop:"terrain"}},[a("el-input",{attrs:{size:"mini",maxlength:"15"},model:{value:e.poltlistinfo.terrain,callback:function(t){e.$set(e.poltlistinfo,"terrain",t)},expression:"poltlistinfo.terrain"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"坡度",prop:"slope"}},[a("el-input",{attrs:{size:"mini",maxlength:"15",type:"number"},model:{value:e.poltlistinfo.slope,callback:function(t){e.$set(e.poltlistinfo,"slope",t)},expression:"poltlistinfo.slope"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"当前种植",prop:"crop_id"}},[a("el-select",{attrs:{size:"mini",filterable:"",placeholder:"请选择"},model:{value:e.poltlistinfo.crop_id,callback:function(t){e.$set(e.poltlistinfo,"crop_id",t)},expression:"poltlistinfo.crop_id"}},e._l(e.cropoptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.dialogVisibleinfo=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.addbtninfo}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var Lt=a("VU/8")(Mt,Pt,!1,function(e){a("RcVv")},"data-v-e7581b5e",null).exports,Rt={components:{},data:function(){return{totalNum:10,page:1,page_size:10,options:[{value:"3",label:"气象"},{value:"2",label:"墒情"},{value:"1",label:"虫情"},{value:"4",label:"病害"},{value:"5",label:"农作物"}],warnvalue:"3",cbdinfo:[],cbdtype:{1:"害虫目标种类预警",2:"指定害虫数量预警",3:"害虫数量总和预警",4:"害虫综合预警"},cropinfo:[],bzyinfo:[],qxzinfo:[],sqzinfo:[],pagekey:1}},computed:{},watch:{},methods:{goBackPage:function(){this.$router.go(-1)},handleSizeChange:function(e){this.page=1,this.pagekey=10*Math.random()+1,this.page_size=e,1==this.warnvalue?this.getcbdlist():2==this.warnvalue?this.getsqzlist():3==this.warnvalue?this.getqxzlist():4==this.warnvalue?this.getbzylist():5==this.warnvalue&&this.getcroplist()},handleCurrentChange:function(e){this.page=e,1==this.warnvalue?this.getcbdlist():2==this.warnvalue?this.getsqzlist():3==this.warnvalue?this.getqxzlist():4==this.warnvalue?this.getbzylist():5==this.warnvalue&&this.getcroplist()},tupechange:function(e){this.page=1,this.pagekey=10*Math.random()+1,1==e?this.getcbdlist():2==e?this.getsqzlist():3==e?this.getqxzlist():4==e?this.getbzylist():5==e&&this.getcroplist()},allread:function(){1==this.warnvalue?this.cbdyiduall():2==this.warnvalue?this.sqzyiduall():3==this.warnvalue?this.qxzyiduall():4==this.warnvalue?this.bzyyiduall():5==this.warnvalue&&this.cropyiduall()},read:function(e){1==this.warnvalue?this.cbdyidu(e):2==this.warnvalue?this.sqzyidu(e):3==this.warnvalue?this.qxzyidu(e):4==this.warnvalue?this.bzyyidu(e):5==this.warnvalue&&this.cropyidu(e)},getcbdlist:function(){var e=this;this.seedialogVisible=!0,this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.cbd_pest_warning",data:this.qs.stringify({page:this.page,page_size:this.page_size})}).then(function(t){""==t.data.message&&(t.data.data.data,e.cbdinfo=t.data.data.data)})},cbdyidu:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.cbd_pest_warning",data:this.qs.stringify({d_id:e})}).then(function(e){e.data.data,1==e.data.data&&t.getcbdlist()})},cbdyiduall:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.cbd_pest_warning",data:this.qs.stringify({status:"yes"})}).then(function(t){1==t.data.data&&e.getcbdlist()})},getbzylist:function(){var e=this;this.seedialogVisible=!0,this.$axios({method:"POST",url:"/api/api_gateway?method=device.device_picture.bzy_warning_list",data:this.qs.stringify({page:this.page,page_size:this.page_size})}).then(function(t){""==t.data.message&&(t.data.data,e.bzyinfo=t.data.data.data,e.totalNum=t.data.data.num)})},bzyyidu:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=device.device_picture.bzy_warning_read",data:this.qs.stringify({d_id:e})}).then(function(e){e.data.data,1==e.data.data&&t.getbzylist()})},bzyyiduall:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=device.device_picture.bzy_warning_read",data:this.qs.stringify({})}).then(function(t){t.data.data,1==t.data.data&&e.getbzylist()})},getqxzlist:function(){var e=this;this.seedialogVisible=!0,this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.qxz_warning",data:this.qs.stringify({page:this.page,page_size:this.page_size})}).then(function(t){""==t.data.message&&(t.data.data.data,e.sqzinfo=t.data.data.data,e.totalNum=t.data.data.nusm)})},qxzyidu:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.qxz_warning",data:this.qs.stringify({d_id:e})}).then(function(e){e.data.data,1==e.data.data&&t.getqxzlist()})},qxzyiduall:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.qxz_warning",data:this.qs.stringify({status:"yes"})}).then(function(t){1==t.data.data&&e.getqxzlist()})},getsqzlist:function(){var e=this;this.seedialogVisible=!0,this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.qxz_warning",data:this.qs.stringify({page:this.page,page_size:this.page_size,device_type:"8"})}).then(function(t){""==t.data.message&&(t.data.data.data,e.sqzinfo=t.data.data.data,e.totalNum=t.data.data.nusm)})},sqzyiduall:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.qxz_warning",data:this.qs.stringify({status:"yes",device_type:"8"})}).then(function(t){1==t.data.data&&e.getsqzlist()})},sqzyidu:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.qxz_warning",data:this.qs.stringify({d_id:e})}).then(function(e){e.data.data,1==e.data.data&&t.getsqzlist()})},getcroplist:function(){var e=this;this.seedialogVisible=!0,this.$axios({method:"POST",url:"/api/api_gateway?method=device.device_picture.crops_warning_list",data:this.qs.stringify({page:this.page,page_size:this.page_size})}).then(function(t){""==t.data.message&&(t.data.data.data,e.cropinfo=t.data.data.data,e.totalNum=t.data.data.num)})},cropyidu:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=device.device_picture.crops_warning_read",data:this.qs.stringify({d_id:e})}).then(function(e){e.data.data,1==e.data.data&&t.getcroplist()})},cropyiduall:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=device.device_picture.crops_warning_read",data:this.qs.stringify({})}).then(function(t){t.data.data,1==t.data.data&&e.getcroplist()})}},beforeCreate:function(){},created:function(){this.getqxzlist()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},Nt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"warnbox"},[a("div",{staticClass:"baselistbox_top"},[a("div",{staticClass:"baselistbox_top_title"},[a("p",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.goBackPage()}}},[a("i",{staticClass:"el-icon-back"}),e._v(" "),a("span",[e._v("返回")])]),e._v(" "),a("p",[e._v("查看预警")])]),e._v(" "),a("div",{staticClass:"baselistbox_top_sel"},[a("el-select",{attrs:{size:"mini",placeholder:"请选择"},on:{change:e.tupechange},model:{value:e.warnvalue,callback:function(t){e.warnvalue=t},expression:"warnvalue"}},e._l(e.options,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("div",{staticClass:"btnbox",on:{click:e.allread}},[e._v("一键已读")])],1)]),e._v(" "),a("div",{staticClass:"warnlistbox"},[a("div",{staticClass:"warnlistbox_text"},[1==e.warnvalue?a("el-collapse",{attrs:{accordion:""}},e._l(e.cbdinfo,function(t,i){return a("el-collapse-item",{key:i},[a("template",{slot:"title"},[a("div",{staticClass:"warnlistbox_text_item",on:{click:function(a){return e.read(t.d_id)}}},[a("p",{style:{color:1==t.status?"":"#4f71ff"}},[e._v("\n 测报灯:\n "+e._s(t.device_id)+"\n "+e._s(e.cbdtype[t.warning_status])+"\n ")]),e._v(" "),a("p",{style:{color:1==t.status?"":"#4f71ff"}},[e._v("\n "+e._s(1==t.status?"已读":"未读")+"        "+e._s(e._f("formatTime")(1e3*t.upltime))+"\n ")])])]),e._v(" "),a("div",{staticStyle:{display:"flex"}},e._l(t.warning_content,function(t,i){return a("p",{key:i},[e._v("\n "+e._s(i)+":"+e._s(t)+"\n "),a("span",[e._v("、")])])}),0)],2)}),1):e._e(),e._v(" "),2==e.warnvalue||3==e.warnvalue?a("el-collapse",{attrs:{accordion:""}},e._l(e.sqzinfo,function(t,i){return a("el-collapse-item",{key:i},[a("template",{slot:"title"},[a("div",{staticClass:"warnlistbox_text_item",on:{click:function(a){return e.read(t.d_id)}}},[a("p",{style:{color:1==t.status?"":"#4f71ff"}},[a("span",[e._v(e._s(2==e.warnvalue?"墒情站":"气象站")+":")]),e._v("\n "+e._s(t.device_id)+"\n "+e._s(t.warning_content)+"\n ")]),e._v(" "),a("p",{style:{color:1==t.status?"":"#4f71ff"}},[e._v("\n "+e._s(1==t.status?"已读":"未读")+"        "+e._s(e._f("formatTime")(1e3*t.upltime))+"\n ")])])]),e._v(" "),a("div",{staticStyle:{display:"flex"}},[e._v("\n 当前"+e._s(t.ekey.split("#")[0])+e._s(t.current_value)+e._s(t.ekey.split("#")[1])+e._s(t.warning_content.slice(0,2))+"用户设置预警值"+e._s(t.set_value)+e._s(t.ekey.split("#")[1])+"\n ")])],2)}),1):e._e(),e._v(" "),4==e.warnvalue?a("el-collapse",{attrs:{accordion:""}},e._l(e.bzyinfo,function(t,i){return a("el-collapse-item",{key:i},[a("template",{slot:"title"},[a("div",{staticClass:"warnlistbox_text_item",on:{click:function(a){return e.read(t.d_id)}}},[a("p",{style:{color:1==t.status?"":"#4f71ff"}},[a("span",[e._v("病害监测:")]),e._v("\n "+e._s(t.device_id)+"\n "+e._s(t.title)+"\n ")]),e._v(" "),a("p",{style:{color:1==t.status?"":"#4f71ff"}},[e._v("\n "+e._s(1==t.status?"已读":"未读")+"        "+e._s(e._f("formatTime")(1e3*t.upltime))+"\n ")])])]),e._v(" "),a("div",{staticStyle:{display:"flex"}},[e._v("\n "+e._s(t.describe)+"\n ")])],2)}),1):e._e(),e._v(" "),5==e.warnvalue?a("el-collapse",{attrs:{accordion:""}},e._l(e.cropinfo,function(t,i){return a("el-collapse-item",{key:i},[a("template",{slot:"title"},[a("div",{staticClass:"warnlistbox_text_item",on:{click:function(a){return e.read(t.d_id)}}},[a("p",{style:{color:1==t.status?"":"#4f71ff"}},[a("span",[e._v("基地名称:")]),e._v("\n "+e._s(t.base_name)+"\n     \n "),a("span",[e._v("地块名称:")]),e._v("\n "+e._s(t.massif_name)+"\n     \n "),a("span",[e._v("作物名称:")]),e._v("\n "+e._s(t.crop_name)+"\n ")]),e._v(" "),a("p",{style:{color:1==t.status?"":"#4f71ff"}},[e._v("\n "+e._s(1==t.status?"已读":"未读")+"        "+e._s(e._f("formatTime")(1e3*t.upltime))+"\n ")])])]),e._v(" "),a("div",{staticStyle:{display:"flex"}},[e._v("\n "+e._s(t.base_name)+"中的"+e._s(t.massif_name)+"在"+e._s(t.cycle_date)+"月预测会产生虫害:"+e._s(t.pest_pest)+",病害:"+e._s(t.pest_disease)+"\n ")])],2)}),1):e._e()],1),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalNum,"page-sizes":[10,20,30,50],"page-size":e.page_size,"current-size":e.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}})],1)])])},staticRenderFns:[]};var Ot=a("VU/8")(Rt,Nt,!1,function(e){a("DBKR")},"data-v-9967ccee",null).exports,qt={components:{},data:function(){return{options:[{value:"3",label:"虫情"},{value:"8",label:"墒情"},{value:"5",label:"气象"},{value:"7",label:"病害"},{value:"6",label:"监控"}],basetype:{3:"虫情监测",8:"墒情监测",5:"气象监测",7:"病害监测",6:"监控设备"},queryInfo:{type:"",f_id:""},totalNum:10,page:1,page_size:10,pagekey:1,faultlist:[],loading:!1,imageListtstatus:!1,imageListtData:[],videodialogVisible:!1,videosrc:""}},computed:{},watch:{},methods:{searchChange:function(){this.page=1,this.pagekey=10*Math.random()+1,this.getfaultlist()},empty:function(){this.queryInfo={type:"",f_id:""},this.page=1,this.pagekey=10*Math.random()+1,this.getfaultlist()},handleSizeChange:function(e){this.page=1,this.pagekey=10*Math.random()+1,this.page_size=e,this.getfaultlist()},handleCurrentChange:function(e){this.page=e,this.getfaultlist()},getfaultlist:function(){var e=this;this.loading=!0,this.$axios({method:"POST",url:"/api/api_gateway?method=after_sale.after_sale_manage.aftersale_info",data:this.qs.stringify({device_type_id:this.queryInfo.type,f_id:this.queryInfo.f_id,page:this.page,page_size:this.page_size})}).then(function(t){e.loading=!1,t.data.data&&(e.faultlist=t.data.data.data,e.totalNum=t.data.data.counts)})},seeimg:function(e){""!=e&&(this.imageListtData=e.split(","),this.imageListtData,this.$viewer.show())},seevideo:function(e){""!=e&&(this.videosrc=e,this.videodialogVisible=!0,this.videosrc)},inited:function(e){this.$viewer=e}},beforeCreate:function(){},created:function(){this.getfaultlist()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},zt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"fauilbox"},[a("div",{staticClass:"baselistbox_top"},[e._m(0),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticClass:"left_search"},[a("div",{staticClass:"firstsearch"},[a("span",{staticClass:"biaoti"},[e._v("设备ID")]),e._v(" "),a("el-input",{attrs:{size:"mini",placeholder:"请输入设备ID或名称"},model:{value:e.queryInfo.f_id,callback:function(t){e.$set(e.queryInfo,"f_id",t)},expression:"queryInfo.f_id"}})],1),e._v(" "),a("div",{staticClass:"secsearch"},[a("span",{staticClass:"biaoti"},[e._v("设备类型")]),e._v(" "),a("el-select",{attrs:{size:"mini",filterable:"",placeholder:"请选择"},model:{value:e.queryInfo.type,callback:function(t){e.$set(e.queryInfo,"type",t)},expression:"queryInfo.type"}},e._l(e.options,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)]),e._v(" "),a("div",{staticClass:"right_search"},[a("div",{staticClass:"btnbox",on:{click:e.searchChange}},[e._v("查询")]),e._v(" "),a("div",{staticClass:"btnbox2",on:{click:e.empty}},[e._v("重置")])])])]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.faultlist,stripe:"",height:"560px","default-sort":{prop:"device_name",order:"addtime"}}},[a("el-table-column",{attrs:{prop:"device_name",sortable:"",label:"设备类型",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.basetype[t.row.device_type]))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"imei",label:"设备ID",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.device_id))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"addr",label:"位置",width:"350"}}),e._v(" "),a("el-table-column",{attrs:{prop:"user",label:"联系人",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{prop:"userphone",sortable:"",label:"电话",width:"150"}}),e._v(" "),a("el-table-column",{attrs:{prop:"errordesc",label:"故障信息",width:"350"}}),e._v(" "),a("el-table-column",{attrs:{prop:"uptime",label:"故障时间",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatTime")(1e3*t.row.uptime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{style:{color:""==t.row.errorimg?"#BFBFBF":"#4f71ff",marginRight:"15px",cursor:""==t.row.errorimg?"not-allowed":"pointer"},on:{click:function(a){return e.seeimg(t.row.errorimg)}}},[e._v("故障图片")]),e._v(" "),a("span",{style:{color:""==t.row.errorvideo?"#BFBFBF":"#4f71ff",marginRight:"15px",cursor:""==t.row.errorvideo?"not-allowed":"pointer"},on:{click:function(a){return e.seevideo(t.row.errorvideo)}}},[e._v("故障视频")])]}}])})],1),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalNum,"page-sizes":[10,20,30,50],"page-size":e.page_size,"current-size":e.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}})],1)],1),e._v(" "),a("viewer",{directives:[{name:"show",rawName:"v-show",value:e.imageListtstatus,expression:"imageListtstatus"}],attrs:{images:e.imageListtData},on:{inited:e.inited}},e._l(e.imageListtData,function(e,t){return a("img",{key:t,attrs:{src:e}})}),0),e._v(" "),a("el-dialog",{attrs:{title:"故障视频",visible:e.videodialogVisible,width:"35%"},on:{"update:visible":function(t){e.videodialogVisible=t}}},[a("div",[a("video",{attrs:{width:"100%",src:e.videosrc,controls:"",autoplay:""}})])])],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"baselistbox_top_title"},[t("p",[this._v("故障信息")])])}]};var Ft=a("VU/8")(qt,zt,!1,function(e){a("d16v")},"data-v-1314a812",null).exports,Ut=a("ncv9"),Wt={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"gisbox"},[i("div",{attrs:{id:"mapbox"}}),e._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.listloading,expression:"listloading"}],staticClass:"baseslistbox"},[i("div",{staticClass:"listbox_base"},[i("p",{staticClass:"sel"},[i("el-select",{attrs:{placeholder:"请选择"},on:{change:e.selbasechange},model:{value:e.baselistitem_id,callback:function(t){e.baselistitem_id=t},expression:"baselistitem_id"}},e._l(e.baselist,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),i("p",[i("span",[e._v(e._s(e.alreadyhave.area_addr[0]))]),e._v(" "),i("span",[e._v(e._s(e.alreadyhave.area_addr[1]))]),e._v(" "),i("span",[e._v(e._s(e.alreadyhave.area_addr[2]))])]),e._v(" "),i("p",[i("i",{staticClass:"iconfont icon-zongmianji",staticStyle:{color:"#999","font-size":"14px"}}),e._v("\n 基地面积:"+e._s(e.alreadyhave.base_area)+"\n 亩\n ")]),e._v(" "),i("p",[i("i",{staticClass:"iconfont icon-dikuaishuliang",staticStyle:{color:"#999","font-size":"14px"}}),e._v("\n 地块数量:"+e._s(e.faclist.length)+"\n 块\n ")])]),e._v(" "),i("div",{staticClass:"listbox_fac"},[i("div",{staticClass:"listbox_facbox"},[0==e.faclist.length?i("div",{staticClass:"tishi"},[e._v("暂无地块")]):e._e(),e._v(" "),e._l(e.faclist,function(t,a){return i("div",{key:a,class:e.selfacindex==a?"listbox_facbox_item listbox_facbox_item2":"listbox_facbox_item",style:{backgroundColor:t.crop_colors+"50",border:e.selfacindex==a?"2px solid "+t.crop_colors:"2px solid "+t.crop_colors+"20"},on:{click:function(t){return e.selfac(a)}}},[i("p",{staticClass:"title"},[e._v(e._s(t.massif_name))]),e._v(" "),i("p",[e._v(e._s(t.crop_name))]),e._v(" "),i("div",{staticClass:"caozuo"},[i("div",[e._v("地块面积:"+e._s(t.massif_area)+" 亩")])])])})],2)])]),e._v(" "),i("div",{staticClass:"equi_classify"},[i("div",{class:0==e.basetype?"equi_classify_item equi_classify_item_avt":"equi_classify_item",on:{click:function(t){e.basetype=0,e.basetype2=0}}},[i("img",{attrs:{src:a("uxeu"),alt:""}}),e._v(" "),i("p",[e._v("全部设备  ("+e._s(e.equipmentlistnum)+")")])]),e._v(" "),e._l(e.equipmentlist,function(t,a){return i("div",{key:a,class:e.basetype==t.type_id?"equi_classify_item equi_classify_item_avt":"equi_classify_item",on:{click:function(a){e.basetype=t.type_id}}},[i("img",{attrs:{src:"../../../static/images/map/"+t.type_id+".png",alt:""}}),e._v(" "),i("p",[e._v(e._s(t.type_name)+"  ("+e._s(t.type_count)+")")])])})],2),e._v(" "),i("div",{staticClass:"equibox"},[i("div",{staticClass:"onlinebox"},[i("div",{class:1==e.basetype2?"onlinebox_item onlinebox_item_act":"onlinebox_item",on:{click:function(t){e.basetype2=1}}},[i("img",{attrs:{src:a("LRc5"),alt:""}}),e._v(" "),i("p",[e._v("报警设备  ("+e._s(e.waringlist.count)+")")])]),e._v(" "),i("div",{class:2==e.basetype2?"onlinebox_item onlinebox_item_act":"onlinebox_item",on:{click:function(t){e.basetype2=2}}},[i("img",{attrs:{src:a("W+uM"),alt:""}}),e._v(" "),i("p",[e._v("离线设备  ("+e._s(e.offlinelist.count)+")")])])]),e._v(" "),i("div",{staticClass:"showname"},[i("p",[e._v("设备名称:")]),e._v(" "),i("el-switch",{staticStyle:{display:"block"},attrs:{"active-color":"#4f71ff","inactive-color":"#ddd","active-text":"显示","inactive-text":"隐藏"},model:{value:e.devicenameoff,callback:function(t){e.devicenameoff=t},expression:"devicenameoff"}})],1)]),e._v(" "),i("el-dialog",{attrs:{title:e.factypalist[e.factypa],visible:e.dialogVisible,width:"800px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[6==e.factypa?i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.infoloading,expression:"infoloading"}],staticClass:"jinkong"},[i("div",{staticClass:"videobox",domProps:{innerHTML:e._s(e.html)}})]):i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.infoloading,expression:"infoloading"}],staticClass:"particulars"},[i("div",{staticClass:"particulars_top"},[i("div",[i("p",[e._v("设备ID:"+e._s(e.detailsdata.device_id))]),e._v(" "),i("p",[e._v("设备名称:"+e._s(e.detailsdata.device_name))]),e._v(" "),i("p",[e._v("上报时间:"+e._s(e.detailsdata.uptime))])]),e._v(" "),i("div",[i("p",[e._v("设备位置:"+e._s(e.detailsdata.address))])])]),e._v(" "),i("div",{staticClass:"particulars_data"},[i("p",{staticClass:"particulars_data_title"},[e._v("设备数据")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:5==e.factypa||8==e.factypa,expression:"factypa == 5 || factypa == 8"}],staticClass:"particulars_data_item"},e._l(e.detailsdata.conf,function(t,a){return i("div",{key:a,staticClass:"item_infobox"},[""!=t?i("div",{staticClass:"item_info"},[i("div",{staticClass:"imgbox",style:" background:url(../../../../static/images/gisshow/"+(Number(a.slice(1))%5+2)+"a.png)no-repeat; background-size: 100% 100%;"},[i("img",{attrs:{src:"../../../../static/images/weather/icon_"+e.detailsdata.dat[a].split("#")[1]+".png",alt:""}}),e._v(" "),i("p",{staticClass:"text"},[e._v(e._s(e.detailsdata.dat[a].split("#")[0]))]),e._v(" "),i("p",{staticClass:"text2"},[e._v(e._s(e.detailsdata.conf[a].split("#")[1]))])]),e._v(" "),i("p",{staticClass:"item_info_text"},[e._v(e._s(t.split("#")[0]))])]):e._e()])}),0),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==e.factypa,expression:"factypa == 3"}],staticClass:"particulars_data_item2"},[i("div",{staticClass:"itembox",staticStyle:{background:"url(../../../../static/images/gisshow/3a.png)","background-size":"100% 100%"}},[i("p",[e._v(e._s(e.detailsdata.ds?"开机":"关机"))]),e._v(" "),i("p",[e._v("在线状态")])]),e._v(" "),i("div",{staticClass:"itembox",staticStyle:{background:"url(../../../../static/images/gisshow/4a.png)","background-size":"100% 100%"}},[i("p",[e._v(e._s("1"==e.detailsdata.ts?"时控":"光控"))]),e._v(" "),i("p",[e._v("定时模式")])]),e._v(" "),i("div",{staticClass:"itembox",staticStyle:{background:"url(../../../../static/images/gisshow/5a.png)","background-size":"100% 100%"}},[i("p",[e._v(e._s("1"==e.detailsdata.rps?"雨控":"正常"))]),e._v(" "),i("p",[e._v("雨控模式")])]),e._v(" "),i("div",{staticClass:"itembox",staticStyle:{background:"url(../../../../static/images/gisshow/6a.png)","background-size":"100% 100%"}},[i("p",[e._v(e._s(e.detailsdata.tph)+"℃")]),e._v(" "),i("p",[e._v("高温限值")])]),e._v(" "),i("div",{staticClass:"itembox",staticStyle:{background:"url(../../../../static/images/gisshow/7a.png)","background-size":"100% 100%"}},[i("p",[e._v(e._s(e.detailsdata.tpl)+"℃")]),e._v(" "),i("p",[e._v("低温限值")])]),e._v(" "),i("div",{staticClass:"itembox",staticStyle:{background:"url(../../../../static/images/gisshow/3a.png)","background-size":"100% 100%"}},[i("p",[e._v(e._s(e.detailsdata.csq))]),e._v(" "),i("p",[e._v("信号强度")])]),e._v(" "),i("div",{staticClass:"itembox",staticStyle:{background:"url(../../../../static/images/gisshow/4a.png)","background-size":"100% 100%"}},[i("p",[e._v(e._s("1"==e.detailsdata.hs?"加热":"正常"))]),e._v(" "),i("p",[e._v("加热状态")])])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:7==e.factypa,expression:"factypa == 7"}],staticClass:"particulars_data_item3"},[i("div",{staticClass:"itembox",staticStyle:{background:"url(../../../../static/images/gisshow/3a.png)","background-size":"100% 100%"}},[i("p",[e._v(e._s(e.detailsdata.ws?"开机":"关机"))]),e._v(" "),i("p",[e._v("设备开关")])]),e._v(" "),i("div",{staticClass:"itembox",staticStyle:{background:"url(../../../../static/images/gisshow/4a.png)","background-size":"100% 100%"}},[i("p",[e._v(e._s(e.detailsdata.at)+"℃")]),e._v(" "),i("p",[e._v("环境温度")])]),e._v(" "),i("div",{staticClass:"itembox",staticStyle:{background:"url(../../../../static/images/gisshow/5a.png)","background-size":"100% 100%"}},[i("p",[e._v(e._s(e.detailsdata.ah)+"%RH")]),e._v(" "),i("p",[e._v("环境湿度")])]),e._v(" "),i("div",{staticClass:"itembox",staticStyle:{background:"url(../../../../static/images/gisshow/6a.png)","background-size":"100% 100%"}},[i("p",[e._v(e._s(e.detailsdata.set_temp)+"℃")]),e._v(" "),i("p",[e._v("保温仓设定温度")])]),e._v(" "),i("div",{staticClass:"itembox",staticStyle:{background:"url(../../../../static/images/gisshow/7a.png)","background-size":"100% 100%"}},[i("p",[e._v(e._s(e.detailsdata.pre_temp)+"℃")]),e._v(" "),i("p",[e._v("保温仓设定湿度")])]),e._v(" "),i("div",{staticClass:"itembox",staticStyle:{background:"url(../../../../static/images/gisshow/3a.png)","background-size":"100% 100%"}},[i("p",[e._v("\n "+e._s(0==e.detailsdata.work_sta?"待机":1==e.detailsdata.work_sta?"收集":0==e.detailsdata.work_sta?"培养":"拍照")+"\n ")]),e._v(" "),i("p",[e._v("工作状态")])])])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==e.factypa||7==e.factypa,expression:"factypa == 3 || factypa == 7"}],staticClass:"particulars_wra"},[i("p",{staticClass:"particulars_wra_title"},[e._v("设备图片")]),e._v(" "),i("div",{staticClass:"imgbox"},e._l(e.detailsdata.img_list,function(e,t){return i("img",{directives:[{name:"viewer",rawName:"v-viewer"}],key:t,attrs:{src:e,alt:""}})}),0)]),e._v(" "),i("div",{staticClass:"particulars_wra"},[3==e.factypa?i("div",{staticStyle:{display:"flex"}},[i("p",[e._v("预警信息:")]),e._v(" "),e.detailsdata.warning_info.warning_content?i("p",e._l(e.detailsdata.warning_info.warning_content,function(t,a){return i("span",{key:a},[e._v("\n "+e._s(a)+":"+e._s(t)+"\n "),i("span",[e._v("、")])])}),0):i("p",[e._v("无")])]):e._e(),e._v(" "),5==e.factypa||8==e.factypa?i("div",{staticStyle:{display:"flex"}},[i("p",[e._v("预警信息:")]),e._v(" "),e.detailsdata.warning_info.ekey?i("p",[e._v("\n 当前"+e._s(e.detailsdata.warning_info.ekey.split("#")[0])+e._s(e.detailsdata.warning_info.current_value)+e._s(e.detailsdata.warning_info.ekey.split("#")[1])+e._s(e.detailsdata.warning_info.warning_content.slice(0,2))+"用户设置预警值"+e._s(e.detailsdata.warning_info.set_value)+e._s(e.detailsdata.warning_info.ekey.split("#")[1])+"\n ")]):i("p",[e._v("无")])]):e._e(),e._v(" "),7==e.factypa?i("div",{staticStyle:{display:"flex"}},[i("p",[e._v("预警信息:")]),e._v(" "),e.detailsdata.warning_info.title?i("p",[e._v("\n "+e._s(e.detailsdata.warning_info.title)+"\n "+e._s(e.detailsdata.warning_info.describe)+"\n ")]):i("p",[e._v("无")])]):e._e()])])])],1)},staticRenderFns:[]};var Vt=function(e){a("uRZV")},jt=a("VU/8")(Ut.a,Wt,!1,Vt,"data-v-1444d444",null).exports,Ht=a("Gu7T"),Kt=a.n(Ht),Yt={components:{},data:function(){var e=this,t=function(e,t,a){""==t?a(new Error("请输入用户密码")):t.length<6?a(new Error("用户密码最少输入6位")):a()};return{username:"",page:1,page_size:10,pagekey:1,userlist:[],totalnum:10,loading:!1,ruleForm:{username:"",password:""},rules:{username:{required:!0,message:"请输入用户名称",trigger:"blur"},password:{required:!0,validator:t,trigger:"blur"}},dialogVisible:!1,juridialogVisible:!1,jurdata:[],defaultProps:{children:"children",label:"purview_name",id:"pur_id"},defKeys:[],passdialogVisible:!1,ruleForm2:{password:"",secpassword:""},rules2:{password:{required:!0,validator:t,trigger:"blur"},secpassword:{required:!0,validator:function(t,a,i){""==a?i(new Error("请输入新密码")):a.length<6?i(new Error("密码最少输入6位")):a!=e.ruleForm2.password?i(new Error("俩次密码输入不一致")):i()},trigger:"blur"}},u_id:""}},computed:{},watch:{},methods:{adduser:function(){this.dialogVisible=!0},searchChange:function(){this.page=1,this.pagekey=10*Math.random()+1,this.getuserlist()},handleSizeChange:function(e){this.page_size=e,this.page=1,this.pagekey=10*Math.random()+1,this.getuserlist()},handleCurrentChange:function(e){this.page=e,this.getuserlist()},getuserlist:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=user.login.list_user",data:this.qs.stringify({username:this.username,page:this.page,page_size:this.page_size})}).then(function(t){""==t.data.message&&(t.data.data.data,e.userlist=t.data.data.data,e.totalnum=t.data.data.total_num)})},dataDetails:function(){},allocation:function(e){this.jurdata=JSON.parse(localStorage.getItem("menu")),this.jurdata[0].disabled=!0;var t=e.children;this.defKeys=[1];for(var a=[],i=0;i<t.length;i++)if(t[i].children)for(var n=t[i].children,l=0;l<n.length;l++)a.push(n[l].pur_id);else a.push(t[i].pur_id);this.defKeys=this.defKeys.concat(a),this.juridialogVisible=!0,this.u_id=e.uid},authority:function(){var e=this,t=[].concat(Kt()(this.$refs.tree.getCheckedKeys()),Kt()(this.$refs.tree.getHalfCheckedKeys())).join(",");this.$axios({method:"POST",url:"/api/api_gateway?method=user.perms.allot_perm",data:this.qs.stringify({uid:this.u_id,role_perm:t})}).then(function(t){""==t.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message.success("分配成功"),e.juridialogVisible=!1,e.getuserlist()):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})},sumbitinfo:function(){var e=this;this.$refs.ruleForm.validate(function(t){if(!t)return!1;e.$axios({method:"POST",url:"/api/api_gateway?method=user.login.create_user",data:e.qs.stringify({username:e.ruleForm.username,password:e.ruleForm.password})}).then(function(t){""==t.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message.success("创建成功"),e.dialogVisible=!1,e.getuserlist()):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})})},amendpass:function(){var e=this;this.$refs.ruleForm2.validate(function(t){if(!t)return!1;e.$axios({method:"POST",url:"/api/api_gateway?method=user.login.modify_pwd",data:e.qs.stringify({uid:e.u_id,new_password:e.ruleForm2.secpassword})}).then(function(t){""==t.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message.success("修改密码成功"),e.passdialogVisible=!1,e.getuserlist()):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})})},deluser:function(e){var t=this;this.$confirm("此操作将删除该用户, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$axios({method:"post",url:"api/api_gateway?method=user.login.del_user",data:t.qs.stringify({uid:e})}).then(function(e){""==e.data.message?(t.$message({type:"success",message:"删除成功!"}),t.getuserlist()):t.$message({type:"error",message:e.data.message})})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})}},beforeCreate:function(){},created:function(){this.getuserlist()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},Qt={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"userbox"},[a("div",{staticClass:"baselistbox_top"},[e._m(0),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticClass:"left_search"},[a("div",{staticClass:"btnbox2",on:{click:e.adduser}},[e._v("新增")])]),e._v(" "),a("div",{staticClass:"right_search"},[a("div",{staticClass:"firstsearch"},[a("el-input",{attrs:{size:"mini",placeholder:"请输入用户名称"},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}})],1),e._v(" "),a("div",{staticClass:"btnbox",on:{click:e.searchChange}},[e._v("查询")])])])]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.userlist,stripe:"",height:"560","default-sort":{prop:"user_name",order:"create_time"}}},[a("el-table-column",{attrs:{prop:"user_name",sortable:"",label:"用户名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"create_time",sortable:"",label:"创建时间"}}),e._v(" "),a("el-table-column",{attrs:{prop:"is_ziguang",label:"是否专家"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.is_ziguang?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.allocation(t.row)}}},[e._v("分配权限")]),e._v(" "),a("span",{staticStyle:{color:"#4f71ff","margin-right":"15px",cursor:"pointer"},on:{click:function(a){e.passdialogVisible=!0,e.u_id=t.row.uid}}},[e._v("修改密码")]),e._v(" "),a("span",{staticStyle:{color:"red","margin-right":"15px",cursor:"pointer"},on:{click:function(a){return e.deluser(t.row.uid)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalnum,"page-sizes":[10,20,30,50],"page-size":e.page_size,"current-size":e.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"创建用户",visible:e.dialogVisible,width:"580px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"userinfobox"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"用户名称",prop:"username"}},[a("el-input",{attrs:{size:"mini",maxlength:10},model:{value:e.ruleForm.username,callback:function(t){e.$set(e.ruleForm,"username",t)},expression:"ruleForm.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户密码",prop:"password"}},[a("el-input",{attrs:{size:"mini",type:"password"},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.sumbitinfo}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"修改密码",visible:e.passdialogVisible,width:"580px","close-on-click-modal":!1},on:{"update:visible":function(t){e.passdialogVisible=t}}},[a("div",{staticClass:"userinfobox"},[a("el-form",{ref:"ruleForm2",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm2,rules:e.rules2,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"新密码",prop:"password"}},[a("el-input",{attrs:{size:"mini",type:"password"},model:{value:e.ruleForm2.password,callback:function(t){e.$set(e.ruleForm2,"password",t)},expression:"ruleForm2.password"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"确认新密码",prop:"secpassword"}},[a("el-input",{attrs:{size:"mini",type:"password"},model:{value:e.ruleForm2.secpassword,callback:function(t){e.$set(e.ruleForm2,"secpassword",t)},expression:"ruleForm2.secpassword"}})],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.passdialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.amendpass}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"分配权限",visible:e.juridialogVisible,width:"580px","close-on-click-modal":!1},on:{"update:visible":function(t){e.juridialogVisible=t}}},[a("div",{staticClass:"jurbox"},[a("el-tree",{ref:"tree",attrs:{data:e.jurdata,"show-checkbox":"","node-key":"pur_id",props:e.defaultProps,"default-checked-keys":e.defKeys}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.juridialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.authority}},[e._v("确 定")])],1)])],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"baselistbox_top_title"},[t("p",[this._v("用户管理")])])}]};var Gt=a("VU/8")(Yt,Qt,!1,function(e){a("eYtY")},"data-v-80bdc4e4",null).exports,Jt={components:{},data:function(){return{keys:localStorage.getItem("zg_keys")}},computed:{},watch:{},methods:{},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},Xt={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"speciabox"},[t("iframe",{staticClass:"iframe",attrs:{src:"http://103.89.185.161:3010/#/start?token="+this.keys+"&code=zhwd",frameborder:"0"}})])},staticRenderFns:[]};var Zt=a("VU/8")(Jt,Xt,!1,function(e){a("+2TD")},"data-v-191ab6f6",null).exports,$t={components:{Editor:ht},data:function(){return{value1:"",key_word:"",totalnum:10,page:1,pagekey:1,page_size:4,suggestlist:[],listoradd:0,prevention:"",sugaddinfo:{content:"",foreword:""},start_time:"",end_time:"",dialogVisible:!1,infohtml:"",type:""}},computed:{},watch:{},methods:{backtrack:function(){this.$router.go(-1)},handleSizeChange:function(e){this.page_size=e,this.page=1,this.pagekey=10*Math.random()+1,this.getsuglist()},handleCurrentChange:function(e){this.page=e,this.getsuglist()},timechange:function(e){if(e){var t=new Date(e[0]),a=t.getFullYear(),i=t.getMonth()+1,n=t.getDate(),l=new Date(e[1]),s=l.getFullYear(),r=l.getMonth()+1,o=l.getDate();this.start_time=a+"-"+i+"-"+n,this.end_time=s+"-"+r+"-"+o}else this.start_time="",this.end_time="";this.page=1,this.pagekey=10*Math.random()+1,this.getsuglist()},inp:function(e){this.sugaddinfo.content=e.sunHtml,this.sugaddinfo.foreword=this.getHtmlPlainText(e.sunHtml)},getHtmlPlainText:function(e){return e=(e=(e=(e=(e=(e=(e=e.replace(/(\n)/g,"")).replace(/(\t)/g,"")).replace(/(\r)/g,"")).replace(/(&nbsp;)/g,"")).replace(/<\/?[^>]*>/g,"")).replace(/\s*/g,"")).replace(/<[^>]*>/g,"")},searchChange:function(){this.page=1,this.pagekey=10*Math.random()+1,this.getsuglist()},getsuglist:function(){var e=this;this.$axios({method:"post",url:"api/api_gateway?method=article.article.list_article",data:this.qs.stringify({start_time:this.start_time,end_time:this.end_time,key_word:this.key_word,article_type:this.type,page:this.page,page_size:this.page_size})}).then(function(t){""==t.data.message&&(t.data.data,e.suggestlist=t.data.data.data,e.totalnum=t.data.data.total_num)})},sugadd:function(){var e=this;this.sugaddinfo.foreword,""==this.sugaddinfo.foreword?0==document.getElementsByClassName("el-message").length&&this.$message.error("请输入内容"):(this.sugaddinfo.foreword.slice(0,150),this.$axios({method:"post",url:"api/api_gateway?method=article.article.add_article",data:this.qs.stringify({article_type:this.type,foreword:this.sugaddinfo.foreword.slice(0,150),content:this.sugaddinfo.content})}).then(function(t){""==t.data.message?(0==document.getElementsByClassName("el-message").length&&e.$message.success("添加成功"),e.listoradd=0,e.sugaddinfo.content="",e.sugaddinfo.foreword="",e.getsuglist()):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)}))},dellist:function(e){var t=this;this.$confirm("此操作将删除该条建议, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$axios({method:"post",url:"api/api_gateway?method=article.article.del_article",data:t.qs.stringify({ea_id:e.ea_id})}).then(function(e){""==e.data.message?(t.$message({type:"success",message:"删除成功!"}),t.getsuglist()):t.$message({type:"error",message:e.data.message})})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},seeinfo:function(e){this.infohtml=e.content,this.dialogVisible=!0}},beforeCreate:function(){},created:function(){this.type=this.$route.query.type,this.$route,this.getsuglist()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},ea={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sugbox"},[i("div",{staticClass:"baselistbox_top"},[i("div",{staticClass:"baselistbox_top_title"},[i("p",{staticStyle:{cursor:"pointer"},on:{click:e.backtrack}},[i("i",{staticClass:"el-icon-back"}),e._v(" "),i("span",[e._v("返回")])]),e._v(" "),i("p",[e._v("专家建议")])]),e._v(" "),i("p",{staticClass:"baselistbox_top_line"}),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:0==e.listoradd,expression:"listoradd == 0"}],staticClass:"baselistbox_top_search"},[i("div",{staticClass:"left_search"},[i("div",{staticClass:"btnbox2",on:{click:function(t){e.listoradd=1}}},[e._v("新增建议")])]),e._v(" "),i("div",{staticClass:"right_search"},[i("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",size:"mini"},on:{change:e.timechange},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}}),e._v(" "),i("div",{staticClass:"firstsearch"},[i("el-input",{attrs:{size:"mini",placeholder:"请输入关键字搜索"},model:{value:e.key_word,callback:function(t){e.key_word=t},expression:"key_word"}})],1),e._v(" "),i("div",{staticClass:"btnbox",on:{click:e.searchChange}},[e._v("查询")])],1)]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.listoradd,expression:"listoradd == 1"}],staticClass:"baselistbox_top_search"},[i("div",{staticClass:"left_search"},[i("div",{staticClass:"btnbox2",on:{click:function(t){e.listoradd=0}}},[e._v("列 表")])])])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:0==e.listoradd,expression:"listoradd == 0"}],staticClass:"baselistbox_table"},[i("div",{staticClass:"listbox"},e._l(e.suggestlist,function(t,a){return i("div",{key:a,staticClass:"listbox_item"},[i("div",{staticClass:"listbox_title"},[i("p",[e._v("分析人员:"+e._s(t.user_name))]),e._v(" "),i("p",[e._v(e._s(t.create_time))])]),e._v(" "),i("div",{staticClass:"listbox_text"},[e._v(e._s(t.foreword)),150==t.foreword.length?i("span",[e._v("...")]):e._e()]),e._v(" "),i("div",{staticClass:"listbox_btn"},[i("p",{on:{click:function(a){return e.dellist(t)}}},[e._v("删除")]),e._v(" "),i("p",{on:{click:function(a){return e.seeinfo(t)}}},[e._v("查看详细")])])])}),0),e._v(" "),e.suggestlist.length?e._e():i("div",{staticClass:"none"},[i("img",{attrs:{src:a("sime"),alt:""}})]),e._v(" "),i("div",{staticClass:"pagination"},[i("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalnum,"page-sizes":[4,8,12,16],"page-size":e.page_size,"current-size":e.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}})],1)]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.listoradd,expression:"listoradd == 1"}],staticClass:"baselistbox_table"},[i("editor",{attrs:{tinymceHtml:e.sugaddinfo.content},on:{inp:function(t){return e.inp(t)}}}),e._v(" "),i("div",{staticClass:"btnbigbox"},[i("div",{staticClass:"btnbox",on:{click:e.sugadd}},[e._v("提交")])])],1),e._v(" "),i("el-dialog",{attrs:{title:"专家建议",visible:e.dialogVisible,width:"766px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("div",{staticClass:"infobox"},[i("div",{domProps:{innerHTML:e._s(e.infohtml)}})])])],1)},staticRenderFns:[]};var ta=a("VU/8")($t,ea,!1,function(e){a("8GUV")},"data-v-4d898a12",null).exports,aa={components:{Editor:ht},data:function(){return{value1:"",key_word:"",totalnum:10,page:1,pagekey:1,page_size:4,suggestlist:[],listoradd:0,prevention:"",sugaddinfo:{content:"",foreword:""},start_time:"",end_time:"",dialogVisible:!1,infohtml:"",type:""}},computed:{},watch:{},methods:{backtrack:function(){this.$router.go(-1)},handleSizeChange:function(e){this.page_size=e,this.page=1,this.pagekey=10*Math.random()+1,this.getsuglist()},handleCurrentChange:function(e){this.page=e,this.getsuglist()},timechange:function(e){if(e){var t=new Date(e[0]),a=t.getFullYear(),i=t.getMonth()+1,n=t.getDate(),l=new Date(e[1]),s=l.getFullYear(),r=l.getMonth()+1,o=l.getDate();this.start_time=a+"-"+i+"-"+n,this.end_time=s+"-"+r+"-"+o}else this.start_time="",this.end_time="";this.page=1,this.pagekey=10*Math.random()+1,this.getsuglist()},inp:function(e){this.sugaddinfo.content=e.sunHtml,this.sugaddinfo.foreword=this.getHtmlPlainText(e.sunHtml)},getHtmlPlainText:function(e){return e=(e=(e=(e=(e=(e=(e=e.replace(/(\n)/g,"")).replace(/(\t)/g,"")).replace(/(\r)/g,"")).replace(/(&nbsp;)/g,"")).replace(/<\/?[^>]*>/g,"")).replace(/\s*/g,"")).replace(/<[^>]*>/g,"")},searchChange:function(){this.page=1,this.pagekey=10*Math.random()+1,this.getsuglist()},getsuglist:function(){var e=this;this.$axios({method:"post",url:"baoziyi/analysepage",data:this.qs.stringify({start_time:this.start_time,end_time:this.end_time,key_word:this.key_word,article_type:this.type,page:this.page,limit:this.page_size})}).then(function(t){0==t.data.code&&(e.suggestlist=t.data.data.list,e.totalnum=t.data.data.total),e.suggestlist})},sugadd:function(){var e=this;this.sugaddinfo.foreword,""==this.sugaddinfo.foreword?0==document.getElementsByClassName("el-message").length&&this.$message.error("请输入内容"):(this.sugaddinfo.foreword.slice(0,150),this.$axios({method:"post",url:"baoziyi/saveanalysepage",data:this.qs.stringify({article_type:this.type,content:this.sugaddinfo.content})}).then(function(t){0==t.data.code?(0==document.getElementsByClassName("el-message").length&&e.$message.success("添加成功"),e.listoradd=0,e.sugaddinfo.content="",e.sugaddinfo.foreword="",e.getsuglist()):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)}))},dellist:function(e){var t=this;this.$confirm("此操作将删除该条建议, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$axios({method:"post",url:"api/api_gateway?method=article.article.del_article",data:t.qs.stringify({ea_id:e.ea_id})}).then(function(e){""==e.data.message?(t.$message({type:"success",message:"删除成功!"}),t.getsuglist()):t.$message({type:"error",message:e.data.message})})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},seeinfo:function(e){this.infohtml=e.content,this.dialogVisible=!0}},beforeCreate:function(){},created:function(){this.type=this.$route.query.type,this.$route,this.getsuglist()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},ia={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sugbox"},[i("div",{staticClass:"baselistbox_top"},[i("div",{staticClass:"baselistbox_top_title"},[i("p",{staticStyle:{cursor:"pointer"},on:{click:e.backtrack}},[i("i",{staticClass:"el-icon-back"}),e._v(" "),i("span",[e._v("返回")])]),e._v(" "),i("p",[e._v("专家建议")])]),e._v(" "),i("p",{staticClass:"baselistbox_top_line"}),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:0==e.listoradd,expression:"listoradd == 0"}],staticClass:"baselistbox_top_search"},[i("div",{staticClass:"left_search"},[i("div",{staticClass:"btnbox2",on:{click:function(t){e.listoradd=1}}},[e._v("新增建议")])]),e._v(" "),i("div",{staticClass:"right_search"},[i("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",size:"mini"},on:{change:e.timechange},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}}),e._v(" "),i("div",{staticClass:"firstsearch"},[i("el-input",{attrs:{size:"mini",placeholder:"请输入关键字搜索"},model:{value:e.key_word,callback:function(t){e.key_word=t},expression:"key_word"}})],1),e._v(" "),i("div",{staticClass:"btnbox",on:{click:e.searchChange}},[e._v("查询")])],1)]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.listoradd,expression:"listoradd == 1"}],staticClass:"baselistbox_top_search"},[i("div",{staticClass:"left_search"},[i("div",{staticClass:"btnbox2",on:{click:function(t){e.listoradd=0}}},[e._v("列 表")])])])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:0==e.listoradd,expression:"listoradd == 0"}],staticClass:"baselistbox_table"},[i("div",{staticClass:"listbox"},e._l(e.suggestlist,function(t,a){return i("div",{key:a,staticClass:"listbox_item"},[i("div",{staticClass:"listbox_title"},[i("p",[e._v(e._s(t.createDate))])]),e._v(" "),i("div",{staticClass:"listbox_text"},[e._v(e._s(e.getHtmlPlainText(t.content).slice(0,150))),t.content.length>=150?i("span",[e._v("...")]):e._e()]),e._v(" "),i("div",{staticClass:"listbox_btn"},[i("p",{on:{click:function(a){return e.seeinfo(t)}}},[e._v("查看详细")])])])}),0),e._v(" "),e.suggestlist.length?e._e():i("div",{staticClass:"none"},[i("img",{attrs:{src:a("sime"),alt:""}})]),e._v(" "),i("div",{staticClass:"pagination"},[i("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalnum,"page-sizes":[4,8,12,16],"page-size":e.page_size,"current-size":e.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}})],1)]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.listoradd,expression:"listoradd == 1"}],staticClass:"baselistbox_table"},[i("editor",{attrs:{tinymceHtml:e.sugaddinfo.content},on:{inp:function(t){return e.inp(t)}}}),e._v(" "),i("div",{staticClass:"btnbigbox"},[i("div",{staticClass:"btnbox",on:{click:e.sugadd}},[e._v("提交")])])],1),e._v(" "),i("el-dialog",{attrs:{title:"专家建议",visible:e.dialogVisible,width:"766px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("div",{staticClass:"infobox"},[i("div",{domProps:{innerHTML:e._s(e.infohtml)}})])])],1)},staticRenderFns:[]};var na=a("VU/8")(aa,ia,!1,function(e){a("mPC0")},"data-v-ab0456a4",null).exports,la={components:{},data:function(){return{options:[],device_id:"",time:"",timeindex:1,baseimglist:[],totalNum:12,imageListtData:[],imageListtstatus:!1,imgIndexNumber:0,end_time:"",start_time:"",page:"1",page_size:12,pagekey:1}},computed:{},watch:{},methods:{getbaselist:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=device.device_picture.pp_device_list",data:this.qs.stringify({device_type:3,page:"1",page_size:"9999999"})}).then(function(t){if(""==t.data.message){for(var a=t.data.data.data,i=0;i<a.length;i++){var n={value:a[i].device_id,label:a[i].device_name+"/"+a[i].device_id};e.options.push(n)}e.device_id=a[0].device_id,e.getbaseimglist()}})},empty:function(e){this.timeindex=e,this.end_time=Math.floor(+new Date/1e3);var t=new Date;if(1==e)this.start_time=this.end_time-86400;else if(2==e)this.start_time=this.end_time-604800;else if(3==e){var a=t.getMonth();this.start_time=Math.floor(t.setMonth(a-1)/1e3)}else if(4==e){a=t.getMonth();this.start_time=Math.floor(t.setMonth(a-3)/1e3)}this.page=1,this.pagekey=10*Math.random()+1,this.getbaseimglist()},timechange:function(e){e?(this.start_time=Math.floor(+new Date(e[0])/1e3),this.end_time=Math.floor(+new Date(e[1])/1e3),this.page=1,this.pagekey=10*Math.random()+1,this.getbaseimglist()):this.empty(1)},idchange:function(e){this.device_id=e,this.page=1,this.pagekey=10*Math.random()+1,this.getbaseimglist()},getbaseimglist:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=device.device_picture.pp_cbd_img_list",data:this.qs.stringify({device_id:this.device_id,start_time:this.formatTime(1e3*this.start_time),end_time:this.formatTime(1e3*this.end_time),page:this.page,page_size:this.page_size})}).then(function(t){""==t.data.message?(e.baseimglist=t.data.data.data,e.totalNum=t.data.data.num):(e.baseimglist=[],e.totalNum=12)})},handleSizeChange:function(e){this.page_size=e,this.page=1,this.pagekey=10*Math.random()+1,this.getbaseimglist()},handleCurrentChange:function(e){this.page=e,this.getbaseimglist()},seeimg:function(e){this.$viewer.show(),this.imageListtData=[];for(var t=0;t<this.baseimglist.length;t++)this.imageListtData.push(this.baseimglist[t].img_url);this.imgIndexNumber=e},inited:function(e){this.$viewer=e,this.$viewer.view(this.imgIndexNumber)}},beforeCreate:function(){},created:function(){this.end_time=Math.floor(+new Date/1e3),this.start_time=this.end_time-86400,this.getbaselist()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},sa={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"cbdbox"},[i("div",{staticClass:"baselistbox_top"},[e._m(0),e._v(" "),i("p",{staticClass:"baselistbox_top_line"}),e._v(" "),i("div",{staticClass:"baselistbox_top_search"},[i("div",{staticClass:"left_search"},[i("div",{staticClass:"secsearch"},[i("el-select",{attrs:{size:"mini",filterable:"",placeholder:"请选择"},on:{change:e.idchange},model:{value:e.device_id,callback:function(t){e.device_id=t},expression:"device_id"}},e._l(e.options,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)]),e._v(" "),i("div",{staticClass:"right_search"},[i("div",{class:1==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){return e.empty(1)}}},[e._v("\n 近一天\n ")]),e._v(" "),i("div",{class:2==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){return e.empty(2)}}},[e._v("\n 近七天\n ")]),e._v(" "),i("div",{class:3==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){return e.empty(3)}}},[e._v("\n 近一月\n ")]),e._v(" "),i("div",{class:4==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){return e.empty(4)}}},[e._v("\n 近三月\n ")]),e._v(" "),i("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",size:"mini"},on:{change:e.timechange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)])]),e._v(" "),i("div",{staticClass:"baselistbox_table"},[i("el-row",{attrs:{gutter:10}},e._l(e.baseimglist,function(t,a){return i("el-col",{key:a,attrs:{xs:24,sm:24,md:12,lg:4,xl:4}},[i("el-card",{staticClass:"box-card",staticStyle:{"margin-bottom":"15px"}},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.img_url,expression:"item.img_url"}],staticClass:"img",attrs:{alt:""},on:{click:function(t){return e.seeimg(a)}}}),e._v(" "),i("p",{staticClass:"imgtime"},[e._v("\n "+e._s(e._f("formatTime")(+new Date(t.create_time)))+"\n ")])])],1)}),1),e._v(" "),e.baseimglist.length?e._e():i("div",{staticClass:"none"},[i("img",{attrs:{src:a("sime"),alt:""}})]),e._v(" "),i("div",{staticClass:"pagination"},[i("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalNum,"page-sizes":[12,24,36,48],"page-size":e.page_size,"current-size":e.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}})],1)],1),e._v(" "),i("viewer",{directives:[{name:"show",rawName:"v-show",value:e.imageListtstatus,expression:"imageListtstatus"}],attrs:{images:e.imageListtData},on:{inited:e.inited}},e._l(e.imageListtData,function(e,t){return i("img",{key:t,attrs:{src:e}})}),0)],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"baselistbox_top_title"},[t("p",[this._v("查看图片")])])}]};var ra=a("VU/8")(la,sa,!1,function(e){a("yFFU")},"data-v-353b2f38",null).exports,oa=a("6pUE"),ua=a.n(oa),ca={components:{},data:function(){return{options:[],device_id:"",time:"",timeindex:1,baseimglist:[],totalNum:10,imgIndexNumber:0,end_time:"",start_time:"",page:1,page_size:10,fengobj:{},pagekey:1}},computed:{},watch:{},methods:{getbaselist:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=device.device_picture.pp_device_list",data:this.qs.stringify({device_type:5,page:"1",page_size:"9999999"})}).then(function(t){if(""==t.data.message){for(var a=t.data.data.data,i=0;i<a.length;i++){var n={value:a[i].device_id,label:a[i].device_name+"/"+a[i].device_id};e.options.push(n)}e.device_id=a[0].device_id,e.getbaseimglist()}})},empty:function(e){this.timeindex=e,this.end_time=Math.floor(+new Date/1e3);var t=new Date;if(1==e)this.start_time=this.end_time-86400;else if(2==e)this.start_time=this.end_time-604800;else if(3==e){var a=t.getMonth();this.start_time=Math.floor(t.setMonth(a-1)/1e3)}else if(4==e){a=t.getMonth();this.start_time=Math.floor(t.setMonth(a-3)/1e3)}this.page=1,this.pagekey=10*Math.random()+1,this.getbaseimglist()},timechange:function(e){e?(this.start_time=Math.floor(+new Date(e[0])/1e3),this.end_time=Math.floor(+new Date(e[1])/1e3),this.page=1,this.pagekey=10*Math.random()+1,this.getbaseimglist()):this.empty(1)},idchange:function(e){this.device_id=e,this.page=1,this.pagekey=10*Math.random()+1,this.getbaseimglist()},getbaseimglist:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=device.device_picture.pp_qxz_data_list",data:this.qs.stringify({device_id:this.device_id,start_time:this.formatTime(1e3*this.start_time),end_time:this.formatTime(1e3*this.end_time),page:this.page,page_size:this.page_size})}).then(function(t){""==t.data.message?(e.baseimglist=t.data.data.data,e.totalNum=t.data.data.num):(e.baseimglist=[],e.totalNum=12)})},handleSizeChange:function(e){this.page_size=e,this.page=1,this.pagekey=10*Math.random()+1,this.getbaseimglist()},handleCurrentChange:function(e){this.page=e,this.getbaseimglist()}},beforeCreate:function(){},created:function(){this.end_time=Math.floor(+new Date/1e3),this.start_time=this.end_time-86400,this.getbaselist()},beforeMount:function(){},mounted:function(){this.fengobj=ua.a},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},da={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cbdbox"},[a("div",{staticClass:"baselistbox_top"},[e._m(0),e._v(" "),a("p",{staticClass:"baselistbox_top_line"}),e._v(" "),a("div",{staticClass:"baselistbox_top_search"},[a("div",{staticClass:"left_search"},[a("div",{staticClass:"secsearch"},[a("el-select",{attrs:{size:"mini",filterable:"",placeholder:"请选择"},on:{change:e.idchange},model:{value:e.device_id,callback:function(t){e.device_id=t},expression:"device_id"}},e._l(e.options,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)]),e._v(" "),a("div",{staticClass:"right_search"},[a("div",{class:1==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){return e.empty(1)}}},[e._v("\n 近一天\n ")]),e._v(" "),a("div",{class:2==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){return e.empty(2)}}},[e._v("\n 近七天\n ")]),e._v(" "),a("div",{class:3==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){return e.empty(3)}}},[e._v("\n 近一月\n ")]),e._v(" "),a("div",{class:4==e.timeindex?"timebtn timebtn1":"timebtn timebtn2",on:{click:function(t){return e.empty(4)}}},[e._v("\n 近三月\n ")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",size:"mini"},on:{change:e.timechange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)])]),e._v(" "),a("div",{staticClass:"baselistbox_table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.baseimglist}},[a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v(e._s(e._f("formatTime")(+new Date(t.row.updateTime))))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"devid",label:"设备ID",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"air_t",label:"空气温度"}}),e._v(" "),a("el-table-column",{attrs:{prop:"air_rh",label:"空气湿度"}}),e._v(" "),a("el-table-column",{attrs:{prop:"earth_t",label:"土壤温度"}}),e._v(" "),a("el-table-column",{attrs:{prop:"earth_rh",label:"土壤湿度"}}),e._v(" "),a("el-table-column",{attrs:{prop:"wind_o",label:"风向"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v(e._s(e.fengobj[t.row.wind_o]))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"wind_speed",label:"风速"}}),e._v(" "),a("el-table-column",{attrs:{prop:"rainfull",label:"降雨量"}}),e._v(" "),a("el-table-column",{attrs:{prop:"vasp",label:"蒸发量"}}),e._v(" "),a("el-table-column",{attrs:{prop:"sunlight",label:"光照强度"}}),e._v(" "),a("el-table-column",{attrs:{prop:"pressure",label:"大气压强"}}),e._v(" "),a("el-table-column",{attrs:{prop:"ec",label:"土壤EC值"}}),e._v(" "),a("el-table-column",{attrs:{prop:"ludian",label:"露点温度"}})],1),e._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{key:e.pagekey,attrs:{background:"",layout:"prev, pager, next,sizes,jumper",total:e.totalNum,"page-sizes":[10,20,30,40],"page-size":e.page_size,"current-size":e.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentSize":function(t){e.page=t},"update:current-size":function(t){e.page=t}}})],1)],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"baselistbox_top_title"},[t("p",[this._v("查看数据")])])}]};var ma=a("VU/8")(ca,da,!1,function(e){a("SDFn")},"data-v-3e0e39a3",null).exports;u.default.use(m.a);var ha=new m.a({routes:[{path:"/",redirect:"/login"},{path:"/login",component:_},{path:"/index",component:v,children:[{path:"/",redirect:"/index/home"},{path:"home",component:D},{path:"Cbd",component:N,meta:{keepAlive:!0}},{path:"pestsStats",component:W},{path:"cbdDataPhotos/:id",component:K},{path:"cbdCanvas",component:J},{path:"MessageWarn/:id",component:ee},{path:"cbdDataDetails/:e_id/:d_id",component:he},{path:"envi",component:pe,meta:{keepAlive:!0}},{path:"Data24/:id",component:ye},{path:"HistoryData/:id/:d_id",component:Ce},{path:"bzy",component:Ee,meta:{keepAlive:!0}},{path:"bzyPhotos/:id",component:Ie},{path:"dataDetail/:e_id/:d_id",component:Me},{path:"monitor",component:Ne},{path:"photoView/:id",component:ze},{path:"playback",component:We},{path:"sqz",component:He,meta:{keepAlive:!0}},{path:"sqzData24/:id",component:Ge},{path:"sqzHistoryData/:id/:d_id",component:Ze},{path:"crop",component:tt},{path:"cropadd",component:lt},{path:"evildata",component:pt},{path:"baselist",component:yt},{path:"plotlist",component:Ct},{path:"maphandle",component:St},{path:"maofacility",component:Bt},{path:"mapplot",component:Lt},{path:"earlywarning",component:Ot},{path:"faultinfo",component:Ft},{path:"gisshow",component:jt},{path:"userlist",component:Gt},{path:"specialist",component:Zt},{path:"suggest",component:ta},{path:"suggest-bzy",component:na},{path:"joinqxz",component:ma},{path:"joincbd",component:ra}]}]}),fa=m.a.prototype.push;m.a.prototype.push=function(e){return fa.call(this,e).catch(function(e){return e})};a("UfKn");var va,pa,ga=a("//Fk"),ba=a.n(ga),_a=location.origin;pa=_a,va=_a,u.default.prototype.DOMIN=va,u.default.prototype.mapJson=pa,rt.a.interceptors.request.use(function(e){var t=localStorage.getItem("keys"),a=void 0;return"user.login.zg_login_user"!==(a=e.url.split("=")[1]?e.url.split("=")[1]:e.url.split("api/")[1])&&"pest.pests.plant_discern"!==a&&"pest.pests.insect_discern"!==a&&"user.login.login_user"!==a&&(e.data=e.data?e.data+"&token="+t:"token="+t),e},function(e){return ba.a.reject(e)}),rt.a.interceptors.response.use(function(e){return e.data.data&&e.data.data.session_key&&localStorage.setItem("session",e.data.data.session_key),e},function(e){return ba.a.reject(e)}),u.default.filter("formatTime",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss",a=new Date(e),i={"M+":a.getMonth()+1,"d+":a.getDate(),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length))),i)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?i[n]:("00"+i[n]).substr((""+i[n]).length)));return t}),u.default.prototype.formatTime=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss",a=new Date(e),i={"M+":a.getMonth()+1,"d+":a.getDate(),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length))),i)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?i[n]:("00"+i[n]).substr((""+i[n]).length)));return t};a("tvR6");var ya=a("AXdl"),wa=a("ajw3"),xa=a("EAZf"),Ca=a.n(xa),Aa=(a("N1kN"),this);u.default.config.productionTip=!1;var ka=a("mtWM"),Ea=a("mw3O");u.default.prototype.$axios=ka,u.default.prototype.qs=Ea,u.default.prototype.$http=window.location.origin;var Da,Sa,Ia=a("zL8q");u.default.use(Ia),u.default.use(ya.a,{preLoad:1,error:a("5ydu"),loading:a("phGo"),attempt:2}),u.default.use(at.a),u.default.use(wa.a),u.default.use(Ca.a,{defaultOptions:{zIndex:99999999}}),ha.beforeEach((Da=o()(n.a.mark(function e(t,a,i){var l;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:l=localStorage.getItem("keys"),"/login"==t.path?l?i({path:"/index/home"}):i():t.query.token?ka({method:"POST",url:"/api/api_gateway?method=user.login.zg_login_user",data:Ea.stringify({pp_token:t.query.token})}).then(function(e){if(""==e.data.message){e.data.data.data;for(var a=e.data.data.data.children,n=[],l=0;l<a.length;l++)n.push(a[l]);localStorage.setItem("zg_keys",t.query.token),localStorage.setItem("menu",s()(n));var r=e.data.data.session_key;localStorage.setItem("keys",r),localStorage.setItem("username",e.data.data.data.username),localStorage.setItem("myuid",e.data.data.data.myuid),i()}else i({path:"/login"})}):l?i():i({path:"/login"});case 4:case"end":return e.stop()}},e,Aa)})),function(e,t,a){return Da.apply(this,arguments)})),Sa=0,u.default.prototype.$throttle=function(e,t){var a=Date.now();a-Sa>t&&(e.apply(this),Sa=a)},new u.default({el:"#app",router:ha,components:{App:d},template:"<App/>"})},Nr4M:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABHNCSVQICAgIfAhkiAAAA3NJREFUWIXNmDF220YQhr+BDmAewO9FqezGMU8QLXMAWzcwQb2X1lLrRlIal2LqRAR8AT/SFxCYC0RxCqezjkA26YJJwSW5WCxIACSV/BWw2MF82F3szgz8zyX7elFvpCfu/d1Apvt4bytAk+gxygnKKcLpxs7KGGGMMM1ieTgooAVLANPUkVWGEDcBrQVoEu0ANyj9lmC+1xS4yGKZbe+6RSbRLsod0Ak8nqKMibgHZlks9ysb6JDTRegDLwO2M4Te0qYVoLnVPsKNBzdHGRIxrDMCFrhDzjnCOfCkAKlcZGeSNga0cInXPEE4b7PYLegxyhB4XXigxFWQQcDgtC6+dNgGrPT+W71CuHSaKqe7BGgS7aB89eAqv3AHSH+GZgjf+ssmKlkupsAfub3CAWRnkqJcO00d67ugwgjaNfLVaZpkA9m8ETv6PtEXAL/F8mddGzPSMe6aXIziw/K2OIJaGPK5/etqqZfqq0j5HCmfe6m+qmtX8pFz496uAE2ix7gnhDJs8req8mPoepuyWB4KUy2cWpYiILl3fEXl9bBJAn+HrmvJ9+WwrAGLh/607ia8D1lff4RY3DW4X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rY6BVdRw72C6zUxxKcQYf5Msc0bKxM0SveXjZvZM6TlmKwRybTwGfAO4kF7u6SXEtG5x0UjymMHdqzOmTBfeBGMyx2QZ8G7geOL4Wi+mJjYYsWlvceP8NRK8L8e5du/TBj/ZIcwHQJqI98W8AXxBUa9F5bHf/vSga8Q4F4j0boh8J8DbeveSRyoeVbcrPgfQNd3uCOktQFxjUmUb0YoNaaNDHh+iZBj0Rih4L0QcM3jsheigUbyBAbw7xXrz9tD9M6X8r+B+9HP+vJtzsigAAAABJRU5ErkJggg=="},P9Ae:function(e,t){},Pq4G:function(e,t){!function(){"use strict";var e,t=tinymce.util.Tools.resolve("tinymce.ThemeManager"),a=tinymce.util.Tools.resolve("tinymce.EditorManager"),i=tinymce.util.Tools.resolve("tinymce.util.Tools"),n=function(e){return!1!==l(e)},l=function(e){return e.getParam("menubar")},s=function(e){return e.getParam("toolbar_items_size")},r=function(e){return e.getParam("menu")},o=function(e){return!1===e.settings.skin},u=function(e){var t=e.getParam("resize","vertical");return!1===t?"none":"both"===t?"both":"vertical"},c=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),d=tinymce.util.Tools.resolve("tinymce.ui.Factory"),m=tinymce.util.Tools.resolve("tinymce.util.I18n"),h=function(e){return e.fire("SkinLoaded")},f=function(e){return e.fire("ResizeEditor")},v=function(e){return e.fire("BeforeRenderUI")},p=function(e,t){return function(){var a=e.find(t)[0];a&&a.focus(!0)}},g=function(e,t){e.shortcuts.add("Alt+F9","",p(t,"menubar")),e.shortcuts.add("Alt+F10,F10","",p(t,"toolbar")),e.shortcuts.add("Alt+F11","",p(t,"elementpath")),t.on("cancel",function(){e.focus()})},b=tinymce.util.Tools.resolve("tinymce.geom.Rect"),_=tinymce.util.Tools.resolve("tinymce.util.Delay"),y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},w=function(e){return function(){return e}},x=w(!1),C=w(!0),A=function(){return k},k=function(){var e=function(e){return e.isNone()},t=function(e){return e()},a=function(e){return e},i={fold:function(e,t){return e()},is:x,isSome:x,isNone:C,getOr:a,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){},or:a,orThunk:t,map:A,ap:A,each:function(){},bind:A,flatten:A,exists:x,forall:C,filter:A,equals:e,equals_:e,toArray:function(){return[]},toString:w("none()")};return Object.freeze&&Object.freeze(i),i}(),E=function(e){var t=function(){return e},a=function(){return n},i=function(t){return t(e)},n={fold:function(t,a){return a(e)},is:function(t){return e===t},isSome:C,isNone:x,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:a,orThunk:a,map:function(t){return E(t(e))},ap:function(t){return t.fold(A,function(t){return E(t(e))})},each:function(t){t(e)},bind:i,flatten:t,exists:i,forall:i,filter:function(t){return t(e)?n:k},equals:function(t){return t.is(e)},equals_:function(t,a){return t.fold(x,function(t){return a(e,t)})},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return n},D={some:E,none:A,from:function(e){return null===e||void 0===e?k:E(e)}},S=function(e){return e?e.getRoot().uiContainer:null},I={getUiContainerDelta:function(e){var t=S(e);if(t&&"static"!==c.DOM.getStyle(t,"position",!0)){var a=c.DOM.getPos(t),i=t.scrollLeft-a.x,n=t.scrollTop-a.y;return D.some({x:i,y:n})}return D.none()},setUiContainer:function(e,t){var a=c.DOM.select(e.settings.ui_container)[0];t.getRoot().uiContainer=a},getUiContainer:S,inheritUiContainer:function(e,t){return t.uiContainer=S(e)}},T=function(e,t,a){var n,l=[];if(t)return i.each(t.split(/[ ,]/),function(t){var i,s=function(){var a=e.selection;t.settings.stateSelector&&a.selectorChanged(t.settings.stateSelector,function(e){t.active(e)},!0),t.settings.disabledStateSelector&&a.selectorChanged(t.settings.disabledStateSelector,function(e){t.disabled(e)})};"|"===t?n=null:(n||(n={type:"buttongroup",items:[]},l.push(n)),e.buttons[t]&&(i=t,"function"==typeof(t=e.buttons[i])&&(t=t()),t.type=t.type||"button",t.size=a,t=d.create(t),n.items.push(t),e.initialized?s():e.on("init",s)))}),{type:"toolbar",layout:"flow",items:l}},B=T,M=function(e,t){var a=[];if(i.each(function(e){var t=e.getParam("toolbar");return!1===t?[]:i.isArray(t)?i.grep(t,function(e){return e.length>0}):function(e,t){for(var a=[],i=1;i<10;i++){var n=e["toolbar"+i];if(!n)break;a.push(n)}var l=e.toolbar?[e.toolbar]:[t];return a.length>0?a:l}(e.settings,"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image")}(e),function(i){var n;(n=i)&&a.push(T(e,n,t))}),a.length)return{type:"panel",layout:"stack",classes:"toolbar-grp",ariaRoot:!0,ariaRemember:!0,items:a}},P=c.DOM,L=function(e){return{left:e.x,top:e.y,width:e.w,height:e.h,right:e.x+e.w,bottom:e.y+e.h}},R=function(e,t){e.moveTo(t.left,t.top)},N=function(e,t,a,i,n,l){return l=L({x:t,y:a,w:l.w,h:l.h}),e&&(l=e({elementRect:L(i),contentAreaRect:L(n),panelRect:l})),l},O=function(e){var t,a=function(){return e.contextToolbars||[]},n=function(t,a){var n,l,s,r,o,u,c,d=function(e){return e.getParam("inline_toolbar_position_handler")}(e);if(!e.removed)if(t&&t.toolbar.panel){var m,h,f,v;c=["bc-tc","tc-bc","tl-bl","bl-tl","tr-br","br-tr"],o=t.toolbar.panel,a&&o.show(),m=t.element,h=P.getPos(e.getContentAreaContainer()),f=e.dom.getRect(m),"BODY"===(v=e.dom.getRoot()).nodeName&&(f.x-=v.ownerDocument.documentElement.scrollLeft||v.scrollLeft,f.y-=v.ownerDocument.documentElement.scrollTop||v.scrollTop),f.x+=h.x,f.y+=h.y,s=f,l=P.getRect(o.getEl()),r=P.getRect(e.getContentAreaContainer()||e.getBody());var p=I.getUiContainerDelta(o).getOr({x:0,y:0});if(s.x+=p.x,s.y+=p.y,l.x+=p.x,l.y+=p.y,r.x+=p.x,r.y+=p.y,"inline"!==P.getStyle(t.element,"display",!0)){var g=t.element.getBoundingClientRect();s.w=g.width,s.h=g.height}e.inline||(r.w=e.getDoc().documentElement.offsetWidth),e.selection.controlSelection.isResizable(t.element)&&s.w<25&&(s=b.inflate(s,0,8)),n=b.findBestRelativePosition(l,s,r,c),s=b.clamp(s,r),n?(u=b.relativePosition(l,s,n),R(o,N(d,u.x,u.y,s,r,l))):(r.h+=l.h,(s=b.intersect(r,s))?(n=b.findBestRelativePosition(l,s,r,["bc-tc","bl-tl","br-tr"]))?(u=b.relativePosition(l,s,n),R(o,N(d,u.x,u.y,s,r,l))):R(o,N(d,s.x,s.y,s,r,l)):o.hide()),function(e,t,a){t=t?t.substr(0,2):"",i.each({t:"down",b:"up"},function(i,n){e.classes.toggle("arrow-"+i,a(n,t.substr(0,1)))}),i.each({l:"left",r:"right"},function(i,n){e.classes.toggle("arrow-"+i,a(n,t.substr(1,1)))})}(o,n,function(e,t){return e===t})}else!function(e){i.each(e.contextToolbars,function(e){e.panel&&e.panel.hide()})}(e)},l=function(t){return function(){_.requestAnimationFrame(function(){e.selection&&n(o(e.selection.getNode()),t)})}},s=function(a){var i;if(a.toolbar.panel)return a.toolbar.panel.show(),void n(a);i=d.create({type:"floatpanel",role:"dialog",classes:"tinymce tinymce-inline arrow",ariaLabel:"Inline toolbar",layout:"flex",direction:"column",align:"stretch",autohide:!1,autofix:!0,fixed:!0,border:1,items:B(e,a.toolbar.items),oncancel:function(){e.focus()}}),I.setUiContainer(e,i),function(a){if(!t){var i=l(!0),n=I.getUiContainer(a);t=e.selection.getScrollContainer()||e.getWin(),P.bind(t,"scroll",i),P.bind(n,"scroll",i),e.on("remove",function(){P.unbind(t,"scroll",i),P.unbind(n,"scroll",i)})}}(i),a.toolbar.panel=i,i.renderTo().reflow(),n(a)},r=function(){i.each(a(),function(e){e.panel&&e.panel.hide()})},o=function(t){var i,n,l,s=a();for(i=(l=e.$(t).parents().add(t)).length-1;i>=0;i--)for(n=s.length-1;n>=0;n--)if(s[n].predicate(l[i]))return{toolbar:s[n],element:l[i]};return null};e.on("click keyup setContent ObjectResized",function(t){("setcontent"!==t.type||t.selection)&&_.setEditorTimeout(e,function(){var t;(t=o(e.selection.getNode()))?(r(),s(t)):r()})}),e.on("blur hide contextmenu",r),e.on("ObjectResizeStart",function(){var t=o(e.selection.getNode());t&&t.toolbar.panel&&t.toolbar.panel.hide()}),e.on("ResizeEditor ResizeWindow",l(!0)),e.on("nodeChange",l(!1)),e.on("remove",function(){i.each(a(),function(e){e.panel&&e.panel.remove()}),e.contextToolbars={}}),e.shortcuts.add("ctrl+shift+e > ctrl+shift+p","",function(){var t=o(e.selection.getNode());t&&t.toolbar.panel&&t.toolbar.panel.items()[0].focus()})},q=function(e){return function(t){return function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&Array.prototype.isPrototypeOf(e)?"array":"object"===t&&String.prototype.isPrototypeOf(e)?"string":t}(t)===e}},z=q("function"),F=q("number"),U=void 0===(e=Array.prototype.indexOf)?function(e,t){return Q(e,t)}:function(t,a){return e.call(t,a)},W=function(e,t){return Y(e,t).isSome()},V=function(e,t){for(var a=e.length,i=new Array(a),n=0;n<a;n++){var l=e[n];i[n]=t(l,n,e)}return i},j=function(e,t){for(var a=0,i=e.length;a<i;a++)t(e[a],a,e)},H=function(e,t){for(var a=[],i=0,n=e.length;i<n;i++){var l=e[i];t(l,i,e)&&a.push(l)}return a},K=function(e,t){for(var a=0,i=e.length;a<i;a++){var n=e[a];if(t(n,a,e))return D.some(n)}return D.none()},Y=function(e,t){for(var a=0,i=e.length;a<i;a++)if(t(e[a],a,e))return D.some(a);return D.none()},Q=function(e,t){for(var a=0,i=e.length;a<i;++a)if(e[a]===t)return a;return-1},G=Array.prototype.push,J=(Array.prototype.slice,z(Array.from)&&Array.from,{file:{title:"File",items:"newdocument restoredraft | preview | print"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen"},insert:{title:"Insert",items:"image link media template codesample inserttable | charmap hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | blockformats align | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code"},table:{title:"Table"},help:{title:"Help"}}),X=function(e,t){return"|"===e?{name:"|",item:{text:"|"}}:t?{name:e,item:t}:null},Z=function(e){return e&&"|"===e.item.text},$=function(e,t,a,n){var l,s,r,o;return t?(s=t[n],o=!0):s=J[n],s&&(l={text:s.title},r=[],i.each((s.items||"").split(/[ ,]/),function(t){var a=X(t,e[t]);a&&r.push(a)}),o||i.each(e,function(e,t){e.context!==n||function(e,t){return Y(e,function(e){return e.name===t}).isSome()}(r,t)||("before"===e.separator&&r.push({name:"|",item:{text:"|"}}),e.prependToContext?r.unshift(X(t,e)):r.push(X(t,e)),"after"===e.separator&&r.push({name:"|",item:{text:"|"}}))}),l.menu=V(function(e,t){var a=H(e,function(e){return!1===t.hasOwnProperty(e.name)}),i=H(a,function(e,t,a){return!Z(e)||!Z(a[t-1])});return H(i,function(e,t,a){return!Z(e)||t>0&&t<a.length-1})}(r,a),function(e){return e.item}),!l.menu.length)?null:l},ee=function(e){for(var t=[],a=function(e){var t,a=[],i=r(e);if(i)for(t in i)a.push(t);else for(t in J)a.push(t);return a}(e),n=i.makeMap(function(e){return e.getParam("removed_menuitems","")}(e).split(/[ ,]/)),s=l(e),o="string"==typeof s?s.split(/[ ,]/):a,u=0;u<o.length;u++){var c=o[u],d=$(e.menuItems,r(e),n,c);d&&t.push(d)}return t},te=c.DOM,ae=function(e){return{width:e.clientWidth,height:e.clientHeight}},ie=function(e,t,a){var i,n,l,s;i=e.getContainer(),n=e.getContentAreaContainer().firstChild,l=ae(i),s=ae(n),null!==t&&(t=Math.max(function(e){return e.getParam("min_width",100,"number")}(e),t),t=Math.min(function(e){return e.getParam("max_width",65535,"number")}(e),t),te.setStyle(i,"width",t+(l.width-s.width)),te.setStyle(n,"width",t)),a=Math.max(function(e){return e.getParam("min_height",100,"number")}(e),a),a=Math.min(function(e){return e.getParam("max_height",65535,"number")}(e),a),te.setStyle(n,"height",a),f(e)},ne=ie,le=function(e,t,a){var i=e.getContentAreaContainer();ie(e,i.clientWidth+t,i.clientHeight+a)},se=tinymce.util.Tools.resolve("tinymce.Env"),re=function(e,t,a){var i,n=e.settings[a];n&&n((i=t.getEl("body"),{element:function(){return i}}))},oe=function(e,t,a){return function(n){var l=n.control,s=l.parents().filter("panel")[0],r=s.find("#"+t)[0],o=function(e,t){return i.grep(e,function(e){return e.name===t})[0]}(a,t);!function(e,t,a){i.each(a,function(a){var i=t.items().filter("#"+a.name)[0];i&&i.visible()&&a.name!==e&&(re(a,i,"onhide"),i.visible(!1))})}(t,s,a),l.parent().items().each(function(e){e.active(!1)}),r&&r.visible()?(re(o,r,"onhide"),r.hide(),l.active(!1)):(r?(r.show(),re(o,r,"onshow")):(r=d.create({type:"container",name:t,layout:"stack",classes:"sidebar-panel",html:""}),s.prepend(r),re(o,r,"onrender"),re(o,r,"onshow")),l.active(!0)),f(e)}},ue=function(e){return!(se.ie&&!(se.ie>=11)||!e.sidebars)&&e.sidebars.length>0},ce=function(e){return{type:"panel",name:"sidebar",layout:"stack",classes:"sidebar",items:[{type:"toolbar",layout:"stack",classes:"sidebar-toolbar",items:i.map(e.sidebars,function(t){var a=t.settings;return{type:"button",icon:a.icon,image:a.image,tooltip:a.tooltip,onclick:oe(e,t.name,e.sidebars)}})}]}},de=function(e){var t=function(){e._skinLoaded=!0,h(e)};return function(){e.initialized?t():e.on("init",t)}},me=c.DOM,he=function(e){return{type:"panel",name:"iframe",layout:"stack",classes:"edit-area",border:e,html:""}},fe=function(e,t,a){var i,l,r;if(!1===o(e)&&a.skinUiCss?me.styleSheetLoader.load(a.skinUiCss,de(e)):de(e)(),i=t.panel=d.create({type:"panel",role:"application",classes:"tinymce",style:"visibility: hidden",layout:"stack",border:1,items:[{type:"container",classes:"top-part",items:[!1===n(e)?null:{type:"menubar",border:"0 0 1 0",items:ee(e)},M(e,s(e))]},ue(e)?function(e){return{type:"panel",layout:"stack",classes:"edit-aria-container",border:"1 0 0 0",items:[he("0"),ce(e)]}}(e):he("1 0 0 0")]}),I.setUiContainer(e,i),"none"!==u(e)&&(l={type:"resizehandle",direction:u(e),onResizeStart:function(){var t=e.getContentAreaContainer().firstChild;r={width:t.clientWidth,height:t.clientHeight}},onResize:function(t){"both"===u(e)?ne(e,r.width+t.deltaX,r.height+t.deltaY):ne(e,null,r.height+t.deltaY)}}),function(e){return e.getParam("statusbar",!0,"boolean")}(e)){var c=m.translate(["Powered by {0}",'<a href="https://www.tinymce.com/?utm_campaign=editor_referral&amp;utm_medium=poweredby&amp;utm_source=tinymce" rel="noopener" target="_blank" role="presentation" tabindex="-1">tinymce</a>']),h=function(e){return e.getParam("branding",!0,"boolean")}(e)?{type:"label",classes:"branding",html:" "+c}:null;i.add({type:"panel",name:"statusbar",classes:"statusbar",layout:"flow",border:"1 0 0 0",ariaRoot:!0,items:[{type:"elementpath",editor:e},l,h]})}return v(e),e.on("SwitchMode",function(e){return function(t){e.find("*").disabled("readonly"===t.mode)}}(i)),i.renderBefore(a.targetNode).reflow(),function(e){return e.getParam("readonly",!1,"boolean")}(e)&&e.setMode("readonly"),a.width&&me.setStyle(i.getEl(),"width",a.width),e.on("remove",function(){i.remove(),i=null}),g(e,i),O(e),{iframeContainer:i.find("#iframe")[0].getEl(),editorContainer:i.getEl()}},ve=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),pe=0,ge={id:function(){return"mceu_"+pe++},create:function(e,t,a){var n=document.createElement(e);return c.DOM.setAttribs(n,t),"string"==typeof a?n.innerHTML=a:i.each(a,function(e){e.nodeType&&n.appendChild(e)}),n},createFragment:function(e){return c.DOM.createFragment(e)},getWindowSize:function(){return c.DOM.getViewPort()},getSize:function(e){var t,a;if(e.getBoundingClientRect){var i=e.getBoundingClientRect();t=Math.max(i.width||i.right-i.left,e.offsetWidth),a=Math.max(i.height||i.bottom-i.bottom,e.offsetHeight)}else t=e.offsetWidth,a=e.offsetHeight;return{width:t,height:a}},getPos:function(e,t){return c.DOM.getPos(e,t||ge.getContainer())},getContainer:function(){return se.container?se.container:document.body},getViewPort:function(e){return c.DOM.getViewPort(e)},get:function(e){return document.getElementById(e)},addClass:function(e,t){return c.DOM.addClass(e,t)},removeClass:function(e,t){return c.DOM.removeClass(e,t)},hasClass:function(e,t){return c.DOM.hasClass(e,t)},toggleClass:function(e,t,a){return c.DOM.toggleClass(e,t,a)},css:function(e,t,a){return c.DOM.setStyle(e,t,a)},getRuntimeStyle:function(e,t){return c.DOM.getStyle(e,t,!0)},on:function(e,t,a,i){return c.DOM.bind(e,t,a,i)},off:function(e,t,a){return c.DOM.unbind(e,t,a)},fire:function(e,t,a){return c.DOM.fire(e,t,a)},innerHtml:function(e,t){c.DOM.setHTML(e,t)}},be=function(e){return"static"===ge.getRuntimeStyle(e,"position")},_e=function(e){return e.state.get("fixed")};function ye(e,t,a){var i,n,l,s,r,o,u,c,d,m;return d=we(),l=(n=ge.getPos(t,I.getUiContainer(e))).x,s=n.y,_e(e)&&be(document.body)&&(l-=d.x,s-=d.y),i=e.getEl(),r=(m=ge.getSize(i)).width,o=m.height,u=(m=ge.getSize(t)).width,c=m.height,"b"===(a=(a||"").split(""))[0]&&(s+=c),"r"===a[1]&&(l+=u),"c"===a[0]&&(s+=Math.round(c/2)),"c"===a[1]&&(l+=Math.round(u/2)),"b"===a[3]&&(s-=o),"r"===a[4]&&(l-=r),"c"===a[3]&&(s-=Math.round(o/2)),"c"===a[4]&&(l-=Math.round(r/2)),{x:l,y:s,w:r,h:o}}var we=function(){var e=window,t=Math.max(e.pageXOffset,document.body.scrollLeft,document.documentElement.scrollLeft),a=Math.max(e.pageYOffset,document.body.scrollTop,document.documentElement.scrollTop);return{x:t,y:a,w:t+(e.innerWidth||document.documentElement.clientWidth),h:a+(e.innerHeight||document.documentElement.clientHeight)}},xe=function(e){var t=I.getUiContainer(e);return t&&!_e(e)?function(e){return{x:0,y:0,w:e.scrollWidth-1,h:e.scrollHeight-1}}(t):we()},Ce={testMoveRel:function(e,t){for(var a=xe(this),i=0;i<t.length;i++){var n=ye(this,e,t[i]);if(_e(this)){if(n.x>0&&n.x+n.w<a.w&&n.y>0&&n.y+n.h<a.h)return t[i]}else if(n.x>a.x&&n.x+n.w<a.w&&n.y>a.y&&n.y+n.h<a.h)return t[i]}return t[0]},moveRel:function(e,t){"string"!=typeof t&&(t=this.testMoveRel(e,t));var a=ye(this,e,t);return this.moveTo(a.x,a.y)},moveBy:function(e,t){var a=this.layoutRect();return this.moveTo(a.x+e,a.y+t),this},moveTo:function(e,t){function a(e,t,a){return e<0?0:e+a>t&&(e=t-a)<0?0:e}if(this.settings.constrainToViewport){var i=xe(this),n=this.layoutRect();e=a(e,i.w,n.w),t=a(t,i.h,n.h)}var l=I.getUiContainer(this);return l&&be(l)&&!_e(this)&&(e-=l.scrollLeft,t-=l.scrollTop),l&&(e+=1,t+=1),this.state.get("rendered")?this.layoutRect({x:e,y:t}).repaint():(this.settings.x=e,this.settings.y=t),this.fire("move",{x:e,y:t}),this}},Ae=tinymce.util.Tools.resolve("tinymce.util.Class"),ke=tinymce.util.Tools.resolve("tinymce.util.EventDispatcher"),Ee=function(e){var t;if(e)return"number"==typeof e?{top:e=e||0,left:e,bottom:e,right:e}:(1===(t=(e=e.split(" ")).length)?e[1]=e[2]=e[3]=e[0]:2===t?(e[2]=e[0],e[3]=e[1]):3===t&&(e[3]=e[1]),{top:parseInt(e[0],10)||0,right:parseInt(e[1],10)||0,bottom:parseInt(e[2],10)||0,left:parseInt(e[3],10)||0})},De=function(e,t){function a(t){var a=parseFloat(function(t){var a=e.ownerDocument.defaultView;if(a){var i=a.getComputedStyle(e,null);return i?(t=t.replace(/[A-Z]/g,function(e){return"-"+e}),i.getPropertyValue(t)):null}return e.currentStyle[t]}(t));return isNaN(a)?0:a}return{top:a(t+"TopWidth"),right:a(t+"RightWidth"),bottom:a(t+"BottomWidth"),left:a(t+"LeftWidth")}};function Se(){}function Ie(e){this.cls=[],this.cls._map={},this.onchange=e||Se,this.prefix=""}i.extend(Ie.prototype,{add:function(e){return e&&!this.contains(e)&&(this.cls._map[e]=!0,this.cls.push(e),this._change()),this},remove:function(e){if(this.contains(e)){var t=void 0;for(t=0;t<this.cls.length&&this.cls[t]!==e;t++);this.cls.splice(t,1),delete this.cls._map[e],this._change()}return this},toggle:function(e,t){var a=this.contains(e);return a!==t&&(a?this.remove(e):this.add(e),this._change()),this},contains:function(e){return!!this.cls._map[e]},_change:function(){delete this.clsValue,this.onchange.call(this)}}),Ie.prototype.toString=function(){var e;if(this.clsValue)return this.clsValue;e="";for(var t=0;t<this.cls.length;t++)t>0&&(e+=" "),e+=this.prefix+this.cls[t];return e};var Te,Be,Me,Pe=/^([\w\\*]+)?(?:#([\w\-\\]+))?(?:\.([\w\\\.]+))?(?:\[\@?([\w\\]+)([\^\$\*!~]?=)([\w\\]+)\])?(?:\:(.+))?/i,Le=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,Re=/^\s*|\s*$/g,Ne=Ae.extend({init:function(e){var t=this.match;function a(e,a,n){var l;function s(e){e&&a.push(e)}return s(function(e){if(e)return e=e.toLowerCase(),function(t){return"*"===e||t.type===e}}((l=Pe.exec(e.replace(Re,"")))[1])),s(function(e){if(e)return function(t){return t._name===e}}(l[2])),s(function(e){if(e)return e=e.split("."),function(t){for(var a=e.length;a--;)if(!t.classes.contains(e[a]))return!1;return!0}}(l[3])),s(function(e,t,a){if(e)return function(i){var n=i[e]?i[e]():"";return t?"="===t?n===a:"*="===t?n.indexOf(a)>=0:"~="===t?(" "+n+" ").indexOf(" "+a+" ")>=0:"!="===t?n!==a:"^="===t?0===n.indexOf(a):"$="===t&&n.substr(n.length-a.length)===a:!!a}}(l[4],l[5],l[6])),s(function(e){var a;if(e)return(e=/(?:not\((.+)\))|(.+)/i.exec(e))[1]?(a=i(e[1],[]),function(e){return!t(e,a)}):(e=e[2],function(t,a,i){return"first"===e?0===a:"last"===e?a===i-1:"even"===e?a%2==0:"odd"===e?a%2==1:!!t[e]&&t[e]()})}(l[7])),a.pseudo=!!l[7],a.direct=n,a}function i(e,t){var n,l,s,r=[];do{if(Le.exec(""),(l=Le.exec(e))&&(e=l[3],r.push(l[1]),l[2])){n=l[3];break}}while(l);for(n&&i(n,t),e=[],s=0;s<r.length;s++)">"!==r[s]&&e.push(a(r[s],[],">"===r[s-1]));return t.push(e),t}this._selectors=i(e,[])},match:function(e,t){var a,i,n,l,s,r,o,u,c,d,m,h,f;for(a=0,i=(t=t||this._selectors).length;a<i;a++){for(f=e,h=0,n=(l=(s=t[a]).length)-1;n>=0;n--)for(u=s[n];f;){if(u.pseudo)for(c=d=(m=f.parent().items()).length;c--&&m[c]!==f;);for(r=0,o=u.length;r<o;r++)if(!u[r](f,c,d)){r=o+1;break}if(r===o){h++;break}if(n===l-1)break;f=f.parent()}if(h===l)return!0}return!1},find:function(e){var t,a,i=[],n=this._selectors;function l(e,t,a){var n,s,r,o,u,c=t[a];for(n=0,s=e.length;n<s;n++){for(u=e[n],r=0,o=c.length;r<o;r++)if(!c[r](u,n,s)){r=o+1;break}if(r===o)a===t.length-1?i.push(u):u.items&&l(u.items(),t,a+1);else if(c.direct)return;u.items&&l(u.items(),t,a)}}if(e.items){for(t=0,a=n.length;t<a;t++)l(e.items(),n[t],0);a>1&&(i=function(e){for(var t,a=[],i=e.length;i--;)(t=e[i]).__checked||(a.push(t),t.__checked=1);for(i=a.length;i--;)delete a[i].__checked;return a}(i))}return Te||(Te=Ne.Collection),new Te(i)}}),Oe=Array.prototype.push,qe=Array.prototype.slice;Me={length:0,init:function(e){e&&this.add(e)},add:function(e){return i.isArray(e)?Oe.apply(this,e):e instanceof Be?this.add(e.toArray()):Oe.call(this,e),this},set:function(e){var t,a=this.length;for(this.length=0,this.add(e),t=this.length;t<a;t++)delete this[t];return this},filter:function(e){var t,a,i,n,l=[];for("string"==typeof e?(e=new Ne(e),n=function(t){return e.match(t)}):n=e,t=0,a=this.length;t<a;t++)n(i=this[t])&&l.push(i);return new Be(l)},slice:function(){return new Be(qe.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},each:function(e){return i.each(this,e),this},toArray:function(){return i.toArray(this)},indexOf:function(e){for(var t=this.length;t--&&this[t]!==e;);return t},reverse:function(){return new Be(i.toArray(this).reverse())},hasClass:function(e){return!!this[0]&&this[0].classes.contains(e)},prop:function(e,t){var a;return void 0!==t?(this.each(function(a){a[e]&&a[e](t)}),this):(a=this[0])&&a[e]?a[e]():void 0},exec:function(e){var t=i.toArray(arguments).slice(1);return this.each(function(a){a[e]&&a[e].apply(a,t)}),this},remove:function(){for(var e=this.length;e--;)this[e].remove();return this},addClass:function(e){return this.each(function(t){t.classes.add(e)})},removeClass:function(e){return this.each(function(t){t.classes.remove(e)})}},i.each("fire on off show hide append prepend before after reflow".split(" "),function(e){Me[e]=function(){var t=i.toArray(arguments);return this.each(function(a){e in a&&a[e].apply(a,t)}),this}}),i.each("text name disabled active selected checked visible parent value data".split(" "),function(e){Me[e]=function(t){return this.prop(e,t)}}),Be=Ae.extend(Me),Ne.Collection=Be;var ze=Be,Fe=function(e){this.create=e.create};Fe.create=function(e,t){return new Fe({create:function(a,i){var n,l=function(e){a.set(i,e.value)};return a.on("change:"+i,function(a){e.set(t,a.value)}),e.on("change:"+t,l),(n=a._bindings)||(n=a._bindings=[],a.on("destroy",function(){for(var e=n.length;e--;)n[e]()})),n.push(function(){e.off("change:"+t,l)}),e.get(t)}})};var Ue=tinymce.util.Tools.resolve("tinymce.util.Observable");function We(e){return e.nodeType>0}var Ve,je,He=Ae.extend({Mixins:[Ue],init:function(e){var t,a;for(t in e=e||{})(a=e[t])instanceof Fe&&(e[t]=a.create(this,t));this.data=e},set:function(e,t){var a,n,l=this.data[e];if(t instanceof Fe&&(t=t.create(this,e)),"object"==typeof e){for(a in e)this.set(a,e[a]);return this}return function e(t,a){var n,l;if(t===a)return!0;if(null===t||null===a)return t===a;if("object"!=typeof t||"object"!=typeof a)return t===a;if(i.isArray(a)){if(t.length!==a.length)return!1;for(n=t.length;n--;)if(!e(t[n],a[n]))return!1}if(We(t)||We(a))return t===a;for(n in l={},a){if(!e(t[n],a[n]))return!1;l[n]=!0}for(n in t)if(!l[n]&&!e(t[n],a[n]))return!1;return!0}(l,t)||(this.data[e]=t,n={target:this,name:e,value:t,oldValue:l},this.fire("change:"+e,n),this.fire("change",n)),this},get:function(e){return this.data[e]},has:function(e){return e in this.data},bind:function(e){return Fe.create(this,e)},destroy:function(){this.fire("destroy")}}),Ke={},Ye={add:function(e){var t=e.parent();if(t){if(!t._layout||t._layout.isNative())return;Ke[t._id]||(Ke[t._id]=t),Ve||(Ve=!0,_.requestAnimationFrame(function(){var e,t;for(e in Ve=!1,Ke)(t=Ke[e]).state.get("rendered")&&t.reflow();Ke={}},document.body))}},remove:function(e){Ke[e._id]&&delete Ke[e._id]}},Qe="onmousewheel"in document,Ge=!1,Je=0,Xe={Statics:{classPrefix:"mce-"},isRtl:function(){return je.rtl},classPrefix:"mce-",init:function(e){var t,a,n=this;function l(e){var t;for(e=e.split(" "),t=0;t<e.length;t++)n.classes.add(e[t])}n.settings=e=i.extend({},n.Defaults,e),n._id=e.id||"mceu_"+Je++,n._aria={role:e.role},n._elmCache={},n.$=ve,n.state=new He({visible:!0,active:!1,disabled:!1,value:""}),n.data=new He(e.data),n.classes=new Ie(function(){n.state.get("rendered")&&(n.getEl().className=this.toString())}),n.classes.prefix=n.classPrefix,(t=e.classes)&&(n.Defaults&&(a=n.Defaults.classes)&&t!==a&&l(a),l(t)),i.each("title text name visible disabled active value".split(" "),function(t){t in e&&n[t](e[t])}),n.on("click",function(){if(n.disabled())return!1}),n.settings=e,n.borderBox=Ee(e.border),n.paddingBox=Ee(e.padding),n.marginBox=Ee(e.margin),e.hidden&&n.hide()},Properties:"parent,name",getContainerElm:function(){var e=I.getUiContainer(this);return e||ge.getContainer()},getParentCtrl:function(e){for(var t,a=this.getRoot().controlIdLookup;e&&a&&!(t=a[e.id]);)e=e.parentNode;return t},initLayoutRect:function(){var e,t,a,i,n,l,s,r,o,u,c=this.settings,d=this.getEl();e=this.borderBox=this.borderBox||De(d,"border"),this.paddingBox=this.paddingBox||De(d,"padding"),this.marginBox=this.marginBox||De(d,"margin"),u=ge.getSize(d),r=c.minWidth,o=c.minHeight,n=r||u.width,l=o||u.height,a=c.width,i=c.height,s=void 0!==(s=c.autoResize)?s:!a&&!i,a=a||n,i=i||l;var m=e.left+e.right,h=e.top+e.bottom,f=c.maxWidth||65535,v=c.maxHeight||65535;return this._layoutRect=t={x:c.x||0,y:c.y||0,w:a,h:i,deltaW:m,deltaH:h,contentW:a-m,contentH:i-h,innerW:a-m,innerH:i-h,startMinWidth:r||0,startMinHeight:o||0,minW:Math.min(n,f),minH:Math.min(l,v),maxW:f,maxH:v,autoResize:s,scrollW:0},this._lastLayoutRect={},t},layoutRect:function(e){var t,a,i,n,l,s=this._layoutRect;return s||(s=this.initLayoutRect()),e?(i=s.deltaW,n=s.deltaH,void 0!==e.x&&(s.x=e.x),void 0!==e.y&&(s.y=e.y),void 0!==e.minW&&(s.minW=e.minW),void 0!==e.minH&&(s.minH=e.minH),void 0!==(a=e.w)&&(a=(a=a<s.minW?s.minW:a)>s.maxW?s.maxW:a,s.w=a,s.innerW=a-i),void 0!==(a=e.h)&&(a=(a=a<s.minH?s.minH:a)>s.maxH?s.maxH:a,s.h=a,s.innerH=a-n),void 0!==(a=e.innerW)&&(a=(a=a<s.minW-i?s.minW-i:a)>s.maxW-i?s.maxW-i:a,s.innerW=a,s.w=a+i),void 0!==(a=e.innerH)&&(a=(a=a<s.minH-n?s.minH-n:a)>s.maxH-n?s.maxH-n:a,s.innerH=a,s.h=a+n),void 0!==e.contentW&&(s.contentW=e.contentW),void 0!==e.contentH&&(s.contentH=e.contentH),(t=this._lastLayoutRect).x===s.x&&t.y===s.y&&t.w===s.w&&t.h===s.h||((l=je.repaintControls)&&l.map&&!l.map[this._id]&&(l.push(this),l.map[this._id]=!0),t.x=s.x,t.y=s.y,t.w=s.w,t.h=s.h),this):s},repaint:function(){var e,t,a,i,n,l,s,r,o,u;o=document.createRange?function(e){return e}:Math.round,e=this.getEl().style,i=this._layoutRect,r=this._lastRepaintRect||{},l=(n=this.borderBox).left+n.right,s=n.top+n.bottom,i.x!==r.x&&(e.left=o(i.x)+"px",r.x=i.x),i.y!==r.y&&(e.top=o(i.y)+"px",r.y=i.y),i.w!==r.w&&(u=o(i.w-l),e.width=(u>=0?u:0)+"px",r.w=i.w),i.h!==r.h&&(u=o(i.h-s),e.height=(u>=0?u:0)+"px",r.h=i.h),this._hasBody&&i.innerW!==r.innerW&&(u=o(i.innerW),(a=this.getEl("body"))&&((t=a.style).width=(u>=0?u:0)+"px"),r.innerW=i.innerW),this._hasBody&&i.innerH!==r.innerH&&(u=o(i.innerH),(a=a||this.getEl("body"))&&((t=t||a.style).height=(u>=0?u:0)+"px"),r.innerH=i.innerH),this._lastRepaintRect=r,this.fire("repaint",{},!1)},updateLayoutRect:function(){this.parent()._lastRect=null,ge.css(this.getEl(),{width:"",height:""}),this._layoutRect=this._lastRepaintRect=this._lastLayoutRect=null,this.initLayoutRect()},on:function(e,t){var a=this;return Ze(a).on(e,function(e){var t,i;return"string"!=typeof e?e:function(n){return t||a.parentsAndSelf().each(function(a){var n=a.settings.callbacks;if(n&&(t=n[e]))return i=a,!1}),t?t.call(i,n):(n.action=e,void this.fire("execute",n))}}(t)),a},off:function(e,t){return Ze(this).off(e,t),this},fire:function(e,t,a){if((t=t||{}).control||(t.control=this),t=Ze(this).fire(e,t),!1!==a&&this.parent)for(var i=this.parent();i&&!t.isPropagationStopped();)i.fire(e,t,!1),i=i.parent();return t},hasEventListeners:function(e){return Ze(this).has(e)},parents:function(e){var t,a=new ze;for(t=this.parent();t;t=t.parent())a.add(t);return e&&(a=a.filter(e)),a},parentsAndSelf:function(e){return new ze(this).add(this.parents(e))},next:function(){var e=this.parent().items();return e[e.indexOf(this)+1]},prev:function(){var e=this.parent().items();return e[e.indexOf(this)-1]},innerHtml:function(e){return this.$el.html(e),this},getEl:function(e){var t=e?this._id+"-"+e:this._id;return this._elmCache[t]||(this._elmCache[t]=ve("#"+t)[0]),this._elmCache[t]},show:function(){return this.visible(!0)},hide:function(){return this.visible(!1)},focus:function(){try{this.getEl().focus()}catch(e){}return this},blur:function(){return this.getEl().blur(),this},aria:function(e,t){var a=this.getEl(this.ariaTarget);return void 0===t?this._aria[e]:(this._aria[e]=t,this.state.get("rendered")&&a.setAttribute("role"===e?e:"aria-"+e,t),this)},encode:function(e,t){return!1!==t&&(e=this.translate(e)),(e||"").replace(/[&<>"]/g,function(e){return"&#"+e.charCodeAt(0)+";"})},translate:function(e){return je.translate?je.translate(e):e},before:function(e){var t=this.parent();return t&&t.insert(e,t.items().indexOf(this),!0),this},after:function(e){var t=this.parent();return t&&t.insert(e,t.items().indexOf(this)),this},remove:function(){var e,t,a=this,i=a.getEl(),n=a.parent();if(a.items){var l=a.items().toArray();for(t=l.length;t--;)l[t].remove()}n&&n.items&&(e=[],n.items().each(function(t){t!==a&&e.push(t)}),n.items().set(e),n._lastRect=null),a._eventsRoot&&a._eventsRoot===a&&ve(i).off();var s=a.getRoot().controlIdLookup;return s&&delete s[a._id],i&&i.parentNode&&i.parentNode.removeChild(i),a.state.set("rendered",!1),a.state.destroy(),a.fire("remove"),a},renderBefore:function(e){return ve(e).before(this.renderHtml()),this.postRender(),this},renderTo:function(e){return ve(e||this.getContainerElm()).append(this.renderHtml()),this.postRender(),this},preRender:function(){},render:function(){},renderHtml:function(){return'<div id="'+this._id+'" class="'+this.classes+'"></div>'},postRender:function(){var e,t,a,i,n,l=this,s=l.settings;for(i in l.$el=ve(l.getEl()),l.state.set("rendered",!0),s)0===i.indexOf("on")&&l.on(i.substr(2),s[i]);if(l._eventsRoot){for(a=l.parent();!n&&a;a=a.parent())n=a._eventsRoot;if(n)for(i in n._nativeEvents)l._nativeEvents[i]=!0}$e(l),s.style&&(e=l.getEl())&&(e.setAttribute("style",s.style),e.style.cssText=s.style),l.settings.border&&(t=l.borderBox,l.$el.css({"border-top-width":t.top,"border-right-width":t.right,"border-bottom-width":t.bottom,"border-left-width":t.left}));var r=l.getRoot();for(var o in r.controlIdLookup||(r.controlIdLookup={}),r.controlIdLookup[l._id]=l,l._aria)l.aria(o,l._aria[o]);!1===l.state.get("visible")&&(l.getEl().style.display="none"),l.bindStates(),l.state.on("change:visible",function(e){var t,a=e.value;l.state.get("rendered")&&(l.getEl().style.display=!1===a?"none":"",l.getEl().getBoundingClientRect()),(t=l.parent())&&(t._lastRect=null),l.fire(a?"show":"hide"),Ye.add(l)}),l.fire("postrender",{},!1)},bindStates:function(){},scrollIntoView:function(e){var t,a,i,n,l,s,r=this.getEl(),o=r.parentNode,u=function(e,t){var a,i,n=e;for(a=i=0;n&&n!==t&&n.nodeType;)a+=n.offsetLeft||0,i+=n.offsetTop||0,n=n.offsetParent;return{x:a,y:i}}(r,o);return t=u.x,a=u.y,i=r.offsetWidth,n=r.offsetHeight,l=o.clientWidth,s=o.clientHeight,"end"===e?(t-=l-i,a-=s-n):"center"===e&&(t-=l/2-i/2,a-=s/2-n/2),o.scrollLeft=t,o.scrollTop=a,this},getRoot:function(){for(var e,t=this,a=[];t;){if(t.rootControl){e=t.rootControl;break}a.push(t),e=t,t=t.parent()}e||(e=this);for(var i=a.length;i--;)a[i].rootControl=e;return e},reflow:function(){Ye.remove(this);var e=this.parent();return e&&e._layout&&!e._layout.isNative()&&e.reflow(),this}};function Ze(e){return e._eventDispatcher||(e._eventDispatcher=new ke({scope:e,toggleEvent:function(t,a){a&&ke.isNative(t)&&(e._nativeEvents||(e._nativeEvents={}),e._nativeEvents[t]=!0,e.state.get("rendered")&&$e(e))}})),e._eventDispatcher}function $e(e){var t,a,i,n,l,s;function r(t){var a=e.getParentCtrl(t.target);a&&a.fire(t.type,t)}function o(){var e=n._lastHoverCtrl;e&&(e.fire("mouseleave",{target:e.getEl()}),e.parents().each(function(e){e.fire("mouseleave",{target:e.getEl()})}),n._lastHoverCtrl=null)}function u(t){var a,i,l,s=e.getParentCtrl(t.target),r=n._lastHoverCtrl,o=0;if(s!==r){if(n._lastHoverCtrl=s,(i=s.parents().toArray().reverse()).push(s),r){for((l=r.parents().toArray().reverse()).push(r),o=0;o<l.length&&i[o]===l[o];o++);for(a=l.length-1;a>=o;a--)(r=l[a]).fire("mouseleave",{target:r.getEl()})}for(a=o;a<i.length;a++)(s=i[a]).fire("mouseenter",{target:s.getEl()})}}function c(t){t.preventDefault(),"mousewheel"===t.type?(t.deltaY=-.025*t.wheelDelta,t.wheelDeltaX&&(t.deltaX=-.025*t.wheelDeltaX)):(t.deltaX=0,t.deltaY=t.detail),t=e.fire("wheel",t)}if(l=e._nativeEvents){for((i=e.parents().toArray()).unshift(e),t=0,a=i.length;!n&&t<a;t++)n=i[t]._eventsRoot;for(n||(n=i[i.length-1]||e),e._eventsRoot=n,a=t,t=0;t<a;t++)i[t]._eventsRoot=n;var d=n._delegates;for(s in d||(d=n._delegates={}),l){if(!l)return!1;"wheel"!==s||Ge?("mouseenter"===s||"mouseleave"===s?n._hasMouseEnter||(ve(n.getEl()).on("mouseleave",o).on("mouseover",u),n._hasMouseEnter=1):d[s]||(ve(n.getEl()).on(s,r),d[s]=!0),l[s]=!1):Qe?ve(e.getEl()).on("mousewheel",c):ve(e.getEl()).on("DOMMouseScroll",c)}}}i.each("text title visible disabled active value".split(" "),function(e){Xe[e]=function(t){return 0===arguments.length?this.state.get(e):(void 0!==t&&this.state.set(e,t),this)}});var et=je=Ae.extend(Xe),tt=function(e){return!!e.getAttribute("data-mce-tabstop")};function at(e){var t,a,i=e.root;function n(e){return e&&1===e.nodeType}try{t=document.activeElement}catch(e){t=document.body}function l(e){return n(e=e||t)?e.getAttribute("role"):null}function s(e){for(var a,i=e||t;i=i.parentNode;)if(a=l(i))return a}function r(e){var a=t;if(n(a))return a.getAttribute("aria-"+e)}function o(e){var t=e.tagName.toUpperCase();return"INPUT"===t||"TEXTAREA"===t||"SELECT"===t}function u(e){var t=[];return function e(a){if(1===a.nodeType&&"none"!==a.style.display&&!a.disabled){(function(e){return!(!o(e)||e.hidden)||!!tt(e)||!!/^(button|menuitem|checkbox|tab|menuitemcheckbox|option|gridcell|slider)$/.test(l(e))})(a)&&t.push(a);for(var i=0;i<a.childNodes.length;i++)e(a.childNodes[i])}}(e||i.getEl()),t}function c(e){var t,i;(i=(e=e||a).parents().toArray()).unshift(e);for(var n=0;n<i.length&&!(t=i[n]).settings.ariaRoot;n++);return t}function d(e,t){return e<0?e=t.length-1:e>=t.length&&(e=0),t[e]&&t[e].focus(),e}function m(e,a){var i=-1,n=c();a=a||u(n.getEl());for(var l=0;l<a.length;l++)a[l]===t&&(i=l);i+=e,n.lastAriaIndex=d(i,a)}function h(){"tablist"===s()?m(-1,u(t.parentNode)):a.parent().submenu?g():m(-1)}function f(){var e=l(),a=s();"tablist"===a?m(1,u(t.parentNode)):"menuitem"===e&&"menu"===a&&r("haspopup")?b():m(1)}function v(){m(-1)}function p(){var e=l(),t=s();"menuitem"===e&&"menubar"===t?b():"button"===e&&r("haspopup")?b({key:"down"}):m(1)}function g(){a.fire("cancel")}function b(e){e=e||{},a.fire("click",{target:t,aria:e})}return a=i.getParentCtrl(t),i.on("keydown",function(e){function i(e,a){o(t)||tt(t)||"slider"!==l(t)&&!1!==a(e)&&e.preventDefault()}if(!e.isDefaultPrevented())switch(e.keyCode){case 37:i(e,h);break;case 39:i(e,f);break;case 38:i(e,v);break;case 40:i(e,p);break;case 27:g();break;case 14:case 13:case 32:i(e,b);break;case 9:!function(e){if("tablist"===s()){var t=u(a.getEl("body"))[0];t&&t.focus()}else m(e.shiftKey?-1:1)}(e),e.preventDefault()}}),i.on("focusin",function(e){t=e.target,a=e.control}),{focusFirst:function(e){var t=c(e),a=u(t.getEl());t.settings.ariaRemember&&"lastAriaIndex"in t?d(t.lastAriaIndex,a):d(0,a)}}}var it={},nt=et.extend({init:function(e){var t=this;t._super(e),(e=t.settings).fixed&&t.state.set("fixed",!0),t._items=new ze,t.isRtl()&&t.classes.add("rtl"),t.bodyClasses=new Ie(function(){t.state.get("rendered")&&(t.getEl("body").className=this.toString())}),t.bodyClasses.prefix=t.classPrefix,t.classes.add("container"),t.bodyClasses.add("container-body"),e.containerCls&&t.classes.add(e.containerCls),t._layout=d.create((e.layout||"")+"layout"),t.settings.items?t.add(t.settings.items):t.add(t.render()),t._hasBody=!0},items:function(){return this._items},find:function(e){return(e=it[e]=it[e]||new Ne(e)).find(this)},add:function(e){return this.items().add(this.create(e)).parent(this),this},focus:function(e){var t,a,i;if(!e||!(a=this.keyboardNav||this.parents().eq(-1)[0].keyboardNav))return i=this.find("*"),this.statusbar&&i.add(this.statusbar.items()),i.each(function(e){if(e.settings.autofocus)return t=null,!1;e.canFocus&&(t=t||e)}),t&&t.focus(),this;a.focusFirst(this)},replace:function(e,t){for(var a,i=this.items(),n=i.length;n--;)if(i[n]===e){i[n]=t;break}n>=0&&((a=t.getEl())&&a.parentNode.removeChild(a),(a=e.getEl())&&a.parentNode.removeChild(a)),t.parent(this)},create:function(e){var t,a=this,n=[];return i.isArray(e)||(e=[e]),i.each(e,function(e){e&&(e instanceof et||("string"==typeof e&&(e={type:e}),t=i.extend({},a.settings.defaults,e),e.type=t.type=t.type||e.type||a.settings.defaultType||(t.defaults?t.defaults.type:null),e=d.create(t)),n.push(e))}),n},renderNew:function(){var e=this;return e.items().each(function(t,a){var i;t.parent(e),t.state.get("rendered")||((i=e.getEl("body")).hasChildNodes()&&a<=i.childNodes.length-1?ve(i.childNodes[a]).before(t.renderHtml()):ve(i).append(t.renderHtml()),t.postRender(),Ye.add(t))}),e._layout.applyClasses(e.items().filter(":visible")),e._lastRect=null,e},append:function(e){return this.add(e).renderNew()},prepend:function(e){return this.items().set(this.create(e).concat(this.items().toArray())),this.renderNew()},insert:function(e,t,a){var i,n,l;return e=this.create(e),i=this.items(),!a&&t<i.length-1&&(t+=1),t>=0&&t<i.length&&(n=i.slice(0,t).toArray(),l=i.slice(t).toArray(),i.set(n.concat(e,l))),this.renderNew()},fromJSON:function(e){for(var t in e)this.find("#"+t).value(e[t]);return this},toJSON:function(){var e={};return this.find("*").each(function(t){var a=t.name(),i=t.value();a&&void 0!==i&&(e[a]=i)}),e},renderHtml:function(){var e=this._layout,t=this.settings.role;return this.preRender(),e.preRender(this),'<div id="'+this._id+'" class="'+this.classes+'"'+(t?' role="'+this.settings.role+'"':"")+'><div id="'+this._id+'-body" class="'+this.bodyClasses+'">'+(this.settings.html||"")+e.renderHtml(this)+"</div></div>"},postRender:function(){var e;return this.items().exec("postRender"),this._super(),this._layout.postRender(this),this.state.set("rendered",!0),this.settings.style&&this.$el.css(this.settings.style),this.settings.border&&(e=this.borderBox,this.$el.css({"border-top-width":e.top,"border-right-width":e.right,"border-bottom-width":e.bottom,"border-left-width":e.left})),this.parent()||(this.keyboardNav=at({root:this})),this},initLayoutRect:function(){var e=this._super();return this._layout.recalc(this),e},recalc:function(){var e=this._layoutRect,t=this._lastRect;if(!t||t.w!==e.w||t.h!==e.h)return this._layout.recalc(this),e=this.layoutRect(),this._lastRect={x:e.x,y:e.y,w:e.w,h:e.h},!0},reflow:function(){var e;if(Ye.remove(this),this.visible()){for(et.repaintControls=[],et.repaintControls.map={},this.recalc(),e=et.repaintControls.length;e--;)et.repaintControls[e].repaint();"flow"!==this.settings.layout&&"stack"!==this.settings.layout&&this.repaint(),et.repaintControls=[]}return this}});function lt(e){var t,a;if(e.changedTouches)for(t="screenX screenY pageX pageY clientX clientY".split(" "),a=0;a<t.length;a++)e[t[a]]=e.changedTouches[0][t[a]]}function st(e,t){var a,i,n,l,s,r,o,u=t.document||document;t=t||{};var c=u.getElementById(t.handle||e);n=function(e){var n,d,m=function(e){var t,a,i,n,l,s,r,o,u=Math.max;return t=e.documentElement,a=e.body,i=u(t.scrollWidth,a.scrollWidth),n=u(t.clientWidth,a.clientWidth),l=u(t.offsetWidth,a.offsetWidth),s=u(t.scrollHeight,a.scrollHeight),r=u(t.clientHeight,a.clientHeight),o=u(t.offsetHeight,a.offsetHeight),{width:i<l?n:i,height:s<o?r:s}}(u);lt(e),e.preventDefault(),i=e.button,n=c,r=e.screenX,o=e.screenY,d=window.getComputedStyle?window.getComputedStyle(n,null).getPropertyValue("cursor"):n.runtimeStyle.cursor,a=ve("<div></div>").css({position:"absolute",top:0,left:0,width:m.width,height:m.height,zIndex:2147483647,opacity:1e-4,cursor:d}).appendTo(u.body),ve(u).on("mousemove touchmove",s).on("mouseup touchend",l),t.start(e)},s=function(e){if(lt(e),e.button!==i)return l(e);e.deltaX=e.screenX-r,e.deltaY=e.screenY-o,e.preventDefault(),t.drag(e)},l=function(e){lt(e),ve(u).off("mousemove touchmove",s).off("mouseup touchend",l),a.remove(),t.stop&&t.stop(e)},this.destroy=function(){ve(c).off()},ve(c).on("mousedown touchstart",n)}var rt,ot,ut,ct,dt={init:function(){this.on("repaint",this.renderScroll)},renderScroll:function(){var e=this,t=2;function a(){var a,i,n;function l(n,l,s,r,o,u){var c,d,m,h,f,v,p,g;if(d=e.getEl("scroll"+n)){if(p=l.toLowerCase(),g=s.toLowerCase(),ve(e.getEl("absend")).css(p,e.layoutRect()[r]-1),!o)return void ve(d).css("display","none");ve(d).css("display","block"),c=e.getEl("body"),m=e.getEl("scroll"+n+"t"),h=c["client"+s]-2*t,f=(h-=a&&i?d["client"+u]:0)/c["scroll"+s],(v={})[p]=c["offset"+l]+t,v[g]=h,ve(d).css(v),(v={})[p]=c["scroll"+l]*f,v[g]=h*f,ve(m).css(v)}}n=e.getEl("body"),a=n.scrollWidth>n.clientWidth,i=n.scrollHeight>n.clientHeight,l("h","Left","Width","contentW",a,"Height"),l("v","Top","Height","contentH",i,"Width")}e.settings.autoScroll&&(e._hasScroll||(e._hasScroll=!0,function(){function a(a,i,n,l,s){var r,o=e._id+"-scroll"+a,u=e.classPrefix;ve(e.getEl()).append('<div id="'+o+'" class="'+u+"scrollbar "+u+"scrollbar-"+a+'"><div id="'+o+'t" class="'+u+'scrollbar-thumb"></div></div>'),e.draghelper=new st(o+"t",{start:function(){r=e.getEl("body")["scroll"+i],ve("#"+o).addClass(u+"active")},drag:function(o){var u,c,d,m,h=e.layoutRect();c=h.contentW>h.innerW,d=h.contentH>h.innerH,m=e.getEl("body")["client"+n]-2*t,u=(m-=c&&d?e.getEl("scroll"+a)["client"+s]:0)/e.getEl("body")["scroll"+n],e.getEl("body")["scroll"+i]=r+o["delta"+l]/u},stop:function(){ve("#"+o).removeClass(u+"active")}})}e.classes.add("scroll"),a("v","Top","Height","Y","Width"),a("h","Left","Width","X","Height")}(),e.on("wheel",function(t){var i=e.getEl("body");i.scrollLeft+=10*(t.deltaX||0),i.scrollTop+=10*t.deltaY,a()}),ve(e.getEl("body")).on("scroll",a)),a())}},mt=nt.extend({Defaults:{layout:"fit",containerCls:"panel"},Mixins:[dt],renderHtml:function(){var e=this._layout,t=this.settings.html;return this.preRender(),e.preRender(this),void 0===t?t='<div id="'+this._id+'-body" class="'+this.bodyClasses+'">'+e.renderHtml(this)+"</div>":("function"==typeof t&&(t=t.call(this)),this._hasBody=!1),'<div id="'+this._id+'" class="'+this.classes+'" hidefocus="1" tabindex="-1" role="group">'+(this._preBodyHtml||"")+t+"</div>"}}),ht={resizeToContent:function(){this._layoutRect.autoResize=!0,this._lastRect=null,this.reflow()},resizeTo:function(e,t){if(e<=1||t<=1){var a=ge.getWindowSize();e=e<=1?e*a.w:e,t=t<=1?t*a.h:t}return this._layoutRect.autoResize=!1,this.layoutRect({minW:e,minH:t,w:e,h:t}).reflow()},resizeBy:function(e,t){var a=this.layoutRect();return this.resizeTo(a.w+e,a.h+t)}},ft=[],vt=[];function pt(e,t){for(;e;){if(e===t)return!0;e=e.parent()}}function gt(){rt||(rt=function(e){2!==e.button&&function(e){for(var t=ft.length;t--;){var a=ft[t],i=a.getParentCtrl(e.target);if(a.settings.autohide){if(i&&(pt(i,a)||a.parent()===i))continue;(e=a.fire("autohide",{target:e.target})).isDefaultPrevented()||a.hide()}}}(e)},ve(document).on("click touchstart",rt))}function bt(e){var t=ge.getViewPort().y;function a(t,a){for(var i,n=0;n<ft.length;n++)if(ft[n]!==e)for(i=ft[n].parent();i&&(i=i.parent());)i===e&&ft[n].fixed(t).moveBy(0,a).repaint()}e.settings.autofix&&(e.state.get("fixed")?e._autoFixY>t&&(e.fixed(!1).layoutRect({y:e._autoFixY}).repaint(),a(!1,e._autoFixY-t)):(e._autoFixY=e.layoutRect().y,e._autoFixY<t&&(e.fixed(!0).layoutRect({y:0}).repaint(),a(!0,t-e._autoFixY))))}function _t(e,t){var a,i,n=yt.zIndex||65535;if(e)vt.push(t);else for(a=vt.length;a--;)vt[a]===t&&vt.splice(a,1);if(vt.length)for(a=0;a<vt.length;a++)vt[a].modal&&(n++,i=vt[a]),vt[a].getEl().style.zIndex=n,vt[a].zIndex=n,n++;var l=ve("#"+t.classPrefix+"modal-block",t.getContainerElm())[0];i?ve(l).css("z-index",i.zIndex-1):l&&(l.parentNode.removeChild(l),ct=!1),yt.currentZIndex=n}var yt=mt.extend({Mixins:[Ce,ht],init:function(e){var t=this;t._super(e),t._eventsRoot=t,t.classes.add("floatpanel"),e.autohide&&(gt(),function(){if(!ut){var e=document.documentElement,t=e.clientWidth,a=e.clientHeight;ut=function(){document.all&&t===e.clientWidth&&a===e.clientHeight||(t=e.clientWidth,a=e.clientHeight,yt.hideAll())},ve(window).on("resize",ut)}}(),ft.push(t)),e.autofix&&(ot||(ot=function(){var e;for(e=ft.length;e--;)bt(ft[e])},ve(window).on("scroll",ot)),t.on("move",function(){bt(this)})),t.on("postrender show",function(e){if(e.control===t){var a,i=t.classPrefix;t.modal&&!ct&&((a=ve("#"+i+"modal-block",t.getContainerElm()))[0]||(a=ve('<div id="'+i+'modal-block" class="'+i+"reset "+i+'fade"></div>').appendTo(t.getContainerElm())),_.setTimeout(function(){a.addClass(i+"in"),ve(t.getEl()).addClass(i+"in")}),ct=!0),_t(!0,t)}}),t.on("show",function(){t.parents().each(function(e){if(e.state.get("fixed"))return t.fixed(!0),!1})}),e.popover&&(t._preBodyHtml='<div class="'+t.classPrefix+'arrow"></div>',t.classes.add("popover").add("bottom").add(t.isRtl()?"end":"start")),t.aria("label",e.ariaLabel),t.aria("labelledby",t._id),t.aria("describedby",t.describedBy||t._id+"-none")},fixed:function(e){if(this.state.get("fixed")!==e){if(this.state.get("rendered")){var t=ge.getViewPort();e?this.layoutRect().y-=t.y:this.layoutRect().y+=t.y}this.classes.toggle("fixed",e),this.state.set("fixed",e)}return this},show:function(){var e,t=this._super();for(e=ft.length;e--&&ft[e]!==this;);return-1===e&&ft.push(this),t},hide:function(){return wt(this),_t(!1,this),this._super()},hideAll:function(){yt.hideAll()},close:function(){return this.fire("close").isDefaultPrevented()||(this.remove(),_t(!1,this)),this},remove:function(){wt(this),this._super()},postRender:function(){return this.settings.bodyRole&&this.getEl("body").setAttribute("role",this.settings.bodyRole),this._super()}});function wt(e){var t;for(t=ft.length;t--;)ft[t]===e&&ft.splice(t,1);for(t=vt.length;t--;)vt[t]===e&&vt.splice(t,1)}yt.hideAll=function(){for(var e=ft.length;e--;){var t=ft[e];t&&t.settings.autohide&&(t.hide(),ft.splice(e,1))}};var xt=function(e,t){return!(!e||t.settings.ui_container)},Ct=function(e,t,a){var i,l,r=c.DOM,u=function(e){return e.getParam("fixed_toolbar_container")}(e);u&&(l=r.select(u)[0]);var m=function(){if(i&&i.moveRel&&i.visible()&&!i._fixed){var t=e.selection.getScrollContainer(),a=e.getBody(),n=0,l=0;if(t){var s=r.getPos(a),o=r.getPos(t);n=Math.max(0,o.x-s.x),l=Math.max(0,o.y-s.y)}i.fixed(!1).moveRel(a,e.rtl?["tr-br","br-tr"]:["tl-bl","bl-tl","tr-br"]).moveBy(n,l)}},h=function(){i&&(i.show(),m(),r.addClass(e.getBody(),"mce-edit-focus"))},f=function(){i&&(i.hide(),yt.hideAll(),r.removeClass(e.getBody(),"mce-edit-focus"))},p=function(){i?i.visible()||h():(i=t.panel=d.create({type:l?"panel":"floatpanel",role:"application",classes:"tinymce tinymce-inline",layout:"flex",direction:"column",align:"stretch",autohide:!1,autofix:xt(l,e),fixed:xt(l,e),border:1,items:[!1===n(e)?null:{type:"menubar",border:"0 0 1 0",items:ee(e)},M(e,s(e))]}),I.setUiContainer(e,i),v(e),l?i.renderTo(l).reflow():i.renderTo().reflow(),g(e,i),h(),O(e),e.on("nodeChange",m),e.on("ResizeWindow",m),e.on("activate",h),e.on("deactivate",f),e.nodeChanged())};return e.settings.content_editable=!0,e.on("focus",function(){!1===o(e)&&a.skinUiCss?r.styleSheetLoader.load(a.skinUiCss,p,p):p()}),e.on("blur hide",f),e.on("remove",function(){i&&(i.remove(),i=null)}),!1===o(e)&&a.skinUiCss?r.styleSheetLoader.load(a.skinUiCss,de(e)):de(e)(),{}};function At(e,t){var a,i,n=this,l=et.classPrefix;n.show=function(s,r){function o(){a&&(ve(e).append('<div class="'+l+"throbber"+(t?" "+l+"throbber-inline":"")+'"></div>'),r&&r())}return n.hide(),a=!0,s?i=_.setTimeout(o,s):o(),n},n.hide=function(){var t=e.lastChild;return _.clearTimeout(i),t&&-1!==t.className.indexOf("throbber")&&t.parentNode.removeChild(t),a=!1,n}}var kt=function(e,t){var a;e.on("ProgressState",function(e){a=a||new At(t.panel.getEl("body")),e.state?a.show(e.time):a.hide()})},Et=function(e,t,i){var n=function(e){var t=e.settings,i=t.skin,n=t.skin_url;if(!1!==i){var l=i||"lightgray";n=n?e.documentBaseURI.toAbsolute(n):a.baseURL+"/skins/"+l}return n}(e);return n&&(i.skinUiCss=n+"/skin.min.css",e.contentCSS.push(n+"/content"+(e.inline?".inline":"")+".min.css")),kt(e,t),function(e){return e.getParam("inline",!1,"boolean")}(e)?Ct(e,t,i):fe(e,t,i)},Dt=et.extend({Mixins:[Ce],Defaults:{classes:"widget tooltip tooltip-n"},renderHtml:function(){var e=this.classPrefix;return'<div id="'+this._id+'" class="'+this.classes+'" role="presentation"><div class="'+e+'tooltip-arrow"></div><div class="'+e+'tooltip-inner">'+this.encode(this.state.get("text"))+"</div></div>"},bindStates:function(){var e=this;return e.state.on("change:text",function(t){e.getEl().lastChild.innerHTML=e.encode(t.value)}),e._super()},repaint:function(){var e,t;e=this.getEl().style,t=this._layoutRect,e.left=t.x+"px",e.top=t.y+"px",e.zIndex=131070}}),St=et.extend({init:function(e){var t=this;t._super(e),e=t.settings,t.canFocus=!0,e.tooltip&&!1!==St.tooltips&&(t.on("mouseenter",function(a){var i=t.tooltip().moveTo(-65535);if(a.control===t){var n=i.text(e.tooltip).show().testMoveRel(t.getEl(),["bc-tc","bc-tl","bc-tr"]);i.classes.toggle("tooltip-n","bc-tc"===n),i.classes.toggle("tooltip-nw","bc-tl"===n),i.classes.toggle("tooltip-ne","bc-tr"===n),i.moveRel(t.getEl(),n)}else i.hide()}),t.on("mouseleave mousedown click",function(){t.tooltip().remove(),t._tooltip=null})),t.aria("label",e.ariaLabel||e.tooltip)},tooltip:function(){return this._tooltip||(this._tooltip=new Dt({type:"tooltip"}),I.inheritUiContainer(this,this._tooltip),this._tooltip.renderTo()),this._tooltip},postRender:function(){var e=this.settings;this._super(),this.parent()||!e.width&&!e.height||(this.initLayoutRect(),this.repaint()),e.autofocus&&this.focus()},bindStates:function(){var e=this;function t(t){e.aria("disabled",t),e.classes.toggle("disabled",t)}function a(t){e.aria("pressed",t),e.classes.toggle("active",t)}return e.state.on("change:disabled",function(e){t(e.value)}),e.state.on("change:active",function(e){a(e.value)}),e.state.get("disabled")&&t(!0),e.state.get("active")&&a(!0),e._super()},remove:function(){this._super(),this._tooltip&&(this._tooltip.remove(),this._tooltip=null)}}),It=St.extend({Defaults:{value:0},init:function(e){this._super(e),this.classes.add("progress"),this.settings.filter||(this.settings.filter=function(e){return Math.round(e)})},renderHtml:function(){var e=this._id,t=this.classPrefix;return'<div id="'+e+'" class="'+this.classes+'"><div class="'+t+'bar-container"><div class="'+t+'bar"></div></div><div class="'+t+'text">0%</div></div>'},postRender:function(){return this._super(),this.value(this.settings.value),this},bindStates:function(){var e=this;function t(t){t=e.settings.filter(t),e.getEl().lastChild.innerHTML=t+"%",e.getEl().firstChild.firstChild.style.width=t+"%"}return e.state.on("change:value",function(e){t(e.value)}),t(e.state.get("value")),e._super()}}),Tt=function(e,t){e.getEl().lastChild.textContent=t+(e.progressBar?" "+e.progressBar.value()+"%":"")},Bt=et.extend({Mixins:[Ce],Defaults:{classes:"widget notification"},init:function(e){var t=this;t._super(e),t.maxWidth=e.maxWidth,e.text&&t.text(e.text),e.icon&&(t.icon=e.icon),e.color&&(t.color=e.color),e.type&&t.classes.add("notification-"+e.type),e.timeout&&(e.timeout<0||e.timeout>0)&&!e.closeButton?t.closeButton=!1:(t.classes.add("has-close"),t.closeButton=!0),e.progressBar&&(t.progressBar=new It),t.on("click",function(e){-1!==e.target.className.indexOf(t.classPrefix+"close")&&t.close()})},renderHtml:function(){var e,t=this.classPrefix,a="",i="",n="";return this.icon&&(a='<i class="'+t+"ico "+t+"i-"+this.icon+'"></i>'),e=' style="max-width: '+this.maxWidth+"px;"+(this.color?"background-color: "+this.color+';"':'"'),this.closeButton&&(i='<button type="button" class="'+t+'close" aria-hidden="true">×</button>'),this.progressBar&&(n=this.progressBar.renderHtml()),'<div id="'+this._id+'" class="'+this.classes+'"'+e+' role="presentation">'+a+'<div class="'+t+'notification-inner">'+this.state.get("text")+"</div>"+n+i+'<div style="clip: rect(1px, 1px, 1px, 1px);height: 1px;overflow: hidden;position: absolute;width: 1px;" aria-live="assertive" aria-relevant="additions" aria-atomic="true"></div></div>'},postRender:function(){var e=this;return _.setTimeout(function(){e.$el.addClass(e.classPrefix+"in"),Tt(e,e.state.get("text"))},100),e._super()},bindStates:function(){var e=this;return e.state.on("change:text",function(t){e.getEl().firstChild.innerHTML=t.value,Tt(e,t.value)}),e.progressBar&&(e.progressBar.bindStates(),e.progressBar.state.on("change:value",function(t){Tt(e,e.state.get("text"))})),e._super()},close:function(){return this.fire("close").isDefaultPrevented()||this.remove(),this},repaint:function(){var e,t;e=this.getEl().style,t=this._layoutRect,e.left=t.x+"px",e.top=t.y+"px",e.zIndex=65534}});function Mt(e){var t=function(e){return e.inline?e.getElement():e.getContentAreaContainer()};return{open:function(a,n){var l,s=i.extend(a,{maxWidth:(l=t(e),ge.getSize(l).width)}),r=new Bt(s);return r.args=s,s.timeout>0&&(r.timer=setTimeout(function(){r.close(),n()},s.timeout)),r.on("close",function(){n()}),r.renderTo(),r},close:function(e){e.close()},reposition:function(a){!function(e){j(e,function(e){e.moveTo(0,0)})}(a),function(a){if(a.length>0){var i=a.slice(0,1)[0],n=t(e);i.moveRel(n,"tc-tc"),j(a,function(e,t){t>0&&e.moveRel(a[t-1].getEl(),"bc-tc")})}}(a)},getArgs:function(e){return e.args}}}var Pt=[],Lt="";function Rt(e){var t,a=ve("meta[name=viewport]")[0];!1!==se.overrideViewPort&&(a||((a=document.createElement("meta")).setAttribute("name","viewport"),document.getElementsByTagName("head")[0].appendChild(a)),(t=a.getAttribute("content"))&&void 0!==Lt&&(Lt=t),a.setAttribute("content",e?"width=device-width,initial-scale=1.0,user-scalable=0,minimum-scale=1.0,maximum-scale=1.0":Lt))}function Nt(e,t){(function(){for(var e=0;e<Pt.length;e++)if(Pt[e]._fullscreen)return!0;return!1})()&&!1===t&&ve([document.documentElement,document.body]).removeClass(e+"fullscreen")}var Ot=yt.extend({modal:!0,Defaults:{border:1,layout:"flex",containerCls:"panel",role:"dialog",callbacks:{submit:function(){this.fire("submit",{data:this.toJSON()})},close:function(){this.close()}}},init:function(e){var t=this;t._super(e),t.isRtl()&&t.classes.add("rtl"),t.classes.add("window"),t.bodyClasses.add("window-body"),t.state.set("fixed",!0),e.buttons&&(t.statusbar=new mt({layout:"flex",border:"1 0 0 0",spacing:3,padding:10,align:"center",pack:t.isRtl()?"start":"end",defaults:{type:"button"},items:e.buttons}),t.statusbar.classes.add("foot"),t.statusbar.parent(t)),t.on("click",function(e){var a=t.classPrefix+"close";(ge.hasClass(e.target,a)||ge.hasClass(e.target.parentNode,a))&&t.close()}),t.on("cancel",function(){t.close()}),t.on("move",function(e){e.control===t&&yt.hideAll()}),t.aria("describedby",t.describedBy||t._id+"-none"),t.aria("label",e.title),t._fullscreen=!1},recalc:function(){var e,t,a,i,n=this.statusbar;this._fullscreen&&(this.layoutRect(ge.getWindowSize()),this.layoutRect().contentH=this.layoutRect().innerH),this._super(),e=this.layoutRect(),this.settings.title&&!this._fullscreen&&(t=e.headerW)>e.w&&(a=e.x-Math.max(0,t/2),this.layoutRect({w:t,x:a}),i=!0),n&&(n.layoutRect({w:this.layoutRect().innerW}).recalc(),(t=n.layoutRect().minW+e.deltaW)>e.w&&(a=e.x-Math.max(0,t-e.w),this.layoutRect({w:t,x:a}),i=!0)),i&&this.recalc()},initLayoutRect:function(){var e,t=this._super(),a=0;if(this.settings.title&&!this._fullscreen){e=this.getEl("head");var i=ge.getSize(e);t.headerW=i.width,t.headerH=i.height,a+=t.headerH}this.statusbar&&(a+=this.statusbar.layoutRect().h),t.deltaH+=a,t.minH+=a,t.h+=a;var n=ge.getWindowSize();return t.x=this.settings.x||Math.max(0,n.w/2-t.w/2),t.y=this.settings.y||Math.max(0,n.h/2-t.h/2),t},renderHtml:function(){var e=this._layout,t=this._id,a=this.classPrefix,i=this.settings,n="",l="",s=i.html;return this.preRender(),e.preRender(this),i.title&&(n='<div id="'+t+'-head" class="'+a+'window-head"><div id="'+t+'-title" class="'+a+'title">'+this.encode(i.title)+'</div><div id="'+t+'-dragh" class="'+a+'dragh"></div><button type="button" class="'+a+'close" aria-hidden="true"><i class="mce-ico mce-i-remove"></i></button></div>'),i.url&&(s='<iframe src="'+i.url+'" tabindex="-1"></iframe>'),void 0===s&&(s=e.renderHtml(this)),this.statusbar&&(l=this.statusbar.renderHtml()),'<div id="'+t+'" class="'+this.classes+'" hidefocus="1"><div class="'+this.classPrefix+'reset" role="application">'+n+'<div id="'+t+'-body" class="'+this.bodyClasses+'">'+s+"</div>"+l+"</div></div>"},fullscreen:function(e){var t,a,i=this,n=document.documentElement,l=i.classPrefix;if(e!==i._fullscreen)if(ve(window).on("resize",function(){var e;if(i._fullscreen)if(t)i._timer||(i._timer=_.setTimeout(function(){var e=ge.getWindowSize();i.moveTo(0,0).resizeTo(e.w,e.h),i._timer=0},50));else{e=(new Date).getTime();var a=ge.getWindowSize();i.moveTo(0,0).resizeTo(a.w,a.h),(new Date).getTime()-e>50&&(t=!0)}}),a=i.layoutRect(),i._fullscreen=e,e){i._initial={x:a.x,y:a.y,w:a.w,h:a.h},i.borderBox=Ee("0"),i.getEl("head").style.display="none",a.deltaH-=a.headerH+2,ve([n,document.body]).addClass(l+"fullscreen"),i.classes.add("fullscreen");var s=ge.getWindowSize();i.moveTo(0,0).resizeTo(s.w,s.h)}else i.borderBox=Ee(i.settings.border),i.getEl("head").style.display="",a.deltaH+=a.headerH,ve([n,document.body]).removeClass(l+"fullscreen"),i.classes.remove("fullscreen"),i.moveTo(i._initial.x,i._initial.y).resizeTo(i._initial.w,i._initial.h);return i.reflow()},postRender:function(){var e,t=this;setTimeout(function(){t.classes.add("in"),t.fire("open")},0),t._super(),t.statusbar&&t.statusbar.postRender(),t.focus(),this.dragHelper=new st(t._id+"-dragh",{start:function(){e={x:t.layoutRect().x,y:t.layoutRect().y}},drag:function(a){t.moveTo(e.x+a.deltaX,e.y+a.deltaY)}}),t.on("submit",function(e){e.isDefaultPrevented()||t.close()}),Pt.push(t),Rt(!0)},submit:function(){return this.fire("submit",{data:this.toJSON()})},remove:function(){var e;for(this.dragHelper.destroy(),this._super(),this.statusbar&&this.statusbar.remove(),Nt(this.classPrefix,!1),e=Pt.length;e--;)Pt[e]===this&&Pt.splice(e,1);Rt(Pt.length>0)},getContentWindow:function(){var e=this.getEl().getElementsByTagName("iframe")[0];return e?e.contentWindow:null}});!function(){if(!se.desktop){var e={w:window.innerWidth,h:window.innerHeight};_.setInterval(function(){var t=window.innerWidth,a=window.innerHeight;e.w===t&&e.h===a||(e={w:t,h:a},ve(window).trigger("resize"))},100)}ve(window).on("resize",function(){var e,t,a=ge.getWindowSize();for(e=0;e<Pt.length;e++)t=Pt[e].layoutRect(),Pt[e].moveTo(Pt[e].settings.x||Math.max(0,a.w/2-t.w/2),Pt[e].settings.y||Math.max(0,a.h/2-t.h/2))})}();var qt=Ot.extend({init:function(e){e={border:1,padding:20,layout:"flex",pack:"center",align:"center",containerCls:"panel",autoScroll:!0,buttons:{type:"button",text:"Ok",action:"ok"},items:{type:"label",multiline:!0,maxWidth:500,maxHeight:200}},this._super(e)},Statics:{OK:1,OK_CANCEL:2,YES_NO:3,YES_NO_CANCEL:4,msgBox:function(e){var t,a=e.callback||function(){};function i(e,t,i){return{type:"button",text:e,subtype:i?"primary":"",onClick:function(e){e.control.parents()[1].close(),a(t)}}}switch(e.buttons){case qt.OK_CANCEL:t=[i("Ok",!0,!0),i("Cancel",!1)];break;case qt.YES_NO:case qt.YES_NO_CANCEL:t=[i("Yes",1,!0),i("No",0)],e.buttons===qt.YES_NO_CANCEL&&t.push(i("Cancel",-1));break;default:t=[i("Ok",!0,!0)]}return new Ot({padding:20,x:e.x,y:e.y,minWidth:300,minHeight:100,layout:"flex",pack:"center",align:"center",buttons:t,title:e.title,role:"alertdialog",items:{type:"label",multiline:!0,maxWidth:500,maxHeight:200,text:e.text},onPostRender:function(){this.aria("describedby",this.items()[0]._id)},onClose:e.onClose,onCancel:function(){a(!1)}}).renderTo(document.body).reflow()},alert:function(e,t){return"string"==typeof e&&(e={text:e}),e.callback=t,qt.msgBox(e)},confirm:function(e,t){return"string"==typeof e&&(e={text:e}),e.callback=t,e.buttons=qt.OK_CANCEL,qt.msgBox(e)}}}),zt=function(e){return{renderUI:function(t){return Et(e,this,t)},resizeTo:function(t,a){return ne(e,t,a)},resizeBy:function(t,a){return le(e,t,a)},getNotificationManagerImpl:function(){return Mt(e)},getWindowManagerImpl:function(){return{open:function(e,t,a){var i;return e.title=e.title||" ",e.url=e.url||e.file,e.url&&(e.width=parseInt(e.width||320,10),e.height=parseInt(e.height||240,10)),e.body&&(e.items={defaults:e.defaults,type:e.bodyType||"form",items:e.body,data:e.data,callbacks:e.commands}),e.url||e.buttons||(e.buttons=[{text:"Ok",subtype:"primary",onclick:function(){i.find("form")[0].submit()}},{text:"Cancel",onclick:function(){i.close()}}]),(i=new Ot(e)).on("close",function(){a(i)}),e.data&&i.on("postRender",function(){this.find("*").each(function(t){var a=t.name();a in e.data&&t.value(e.data[a])})}),i.features=e||{},i.params=t||{},i=i.renderTo(document.body).reflow()},alert:function(e,t,a){var i;return(i=qt.alert(e,function(){t()})).on("close",function(){a(i)}),i},confirm:function(e,t,a){var i;return(i=qt.confirm(e,function(e){t(e)})).on("close",function(){a(i)}),i},close:function(e){e.close()},getParams:function(e){return e.params},setParams:function(e,t){e.params=t}}}}},Ft=Ae.extend({Defaults:{firstControlClass:"first",lastControlClass:"last"},init:function(e){this.settings=i.extend({},this.Defaults,e)},preRender:function(e){e.bodyClasses.add(this.settings.containerClass)},applyClasses:function(e){var t,a,i,n,l=this.settings;t=l.firstControlClass,a=l.lastControlClass,e.each(function(e){e.classes.remove(t).remove(a).add(l.controlClass),e.visible()&&(i||(i=e),n=e)}),i&&i.classes.add(t),n&&n.classes.add(a)},renderHtml:function(e){var t="";return this.applyClasses(e.items()),e.items().each(function(e){t+=e.renderHtml()}),t},recalc:function(){},postRender:function(){},isNative:function(){return!1}}),Ut=Ft.extend({Defaults:{containerClass:"abs-layout",controlClass:"abs-layout-item"},recalc:function(e){e.items().filter(":visible").each(function(e){var t=e.settings;e.layoutRect({x:t.x,y:t.y,w:t.w,h:t.h}),e.recalc&&e.recalc()})},renderHtml:function(e){return'<div id="'+e._id+'-absend" class="'+e.classPrefix+'abs-end"></div>'+this._super(e)}}),Wt=St.extend({Defaults:{classes:"widget btn",role:"button"},init:function(e){var t,a=this;a._super(e),e=a.settings,t=a.settings.size,a.on("click mousedown",function(e){e.preventDefault()}),a.on("touchstart",function(e){a.fire("click",e),e.preventDefault()}),e.subtype&&a.classes.add(e.subtype),t&&a.classes.add("btn-"+t),e.icon&&a.icon(e.icon)},icon:function(e){return arguments.length?(this.state.set("icon",e),this):this.state.get("icon")},repaint:function(){var e,t=this.getEl().firstChild;t&&((e=t.style).width=e.height="100%"),this._super()},renderHtml:function(){var e,t,a=this._id,i=this.classPrefix,n=this.state.get("icon"),l=this.state.get("text"),s="",r=this.settings;return(e=r.image)?(n="none","string"!=typeof e&&(e=window.getSelection?e[0]:e[1]),e=" style=\"background-image: url('"+e+"')\""):e="",l&&(this.classes.add("btn-has-text"),s='<span class="'+i+'txt">'+this.encode(l)+"</span>"),n=n?i+"ico "+i+"i-"+n:"",t="boolean"==typeof r.active?' aria-pressed="'+r.active+'"':"",'<div id="'+a+'" class="'+this.classes+'" tabindex="-1"'+t+'><button id="'+a+'-button" role="presentation" type="button" tabindex="-1">'+(n?'<i class="'+n+'"'+e+"></i>":"")+s+"</button></div>"},bindStates:function(){var e=this,t=e.$,a=e.classPrefix+"txt";function i(i){var n=t("span."+a,e.getEl());i?(n[0]||(t("button:first",e.getEl()).append('<span class="'+a+'"></span>'),n=t("span."+a,e.getEl())),n.html(e.encode(i))):n.remove(),e.classes.toggle("btn-has-text",!!i)}return e.state.on("change:text",function(e){i(e.value)}),e.state.on("change:icon",function(t){var a=t.value,n=e.classPrefix;e.settings.icon=a,a=a?n+"ico "+n+"i-"+e.settings.icon:"";var l=e.getEl().firstChild,s=l.getElementsByTagName("i")[0];a?(s&&s===l.firstChild||(s=document.createElement("i"),l.insertBefore(s,l.firstChild)),s.className=a):s&&l.removeChild(s),i(e.state.get("text"))}),e._super()}}),Vt=Wt.extend({init:function(e){e=i.extend({text:"Browse...",multiple:!1,accept:null},e),this._super(e),this.classes.add("browsebutton"),e.multiple&&this.classes.add("multiple")},postRender:function(){var e=this,t=ge.create("input",{type:"file",id:e._id+"-browse",accept:e.settings.accept});e._super(),ve(t).on("change",function(t){var a=t.target.files;e.value=function(){return a.length?e.settings.multiple?a:a[0]:null},t.preventDefault(),a.length&&e.fire("change",t)}),ve(t).on("click",function(e){e.stopPropagation()}),ve(e.getEl("button")).on("click",function(e){e.stopPropagation(),t.click()}),e.getEl().appendChild(t)},remove:function(){ve(this.getEl("button")).off(),ve(this.getEl("input")).off(),this._super()}}),jt=nt.extend({Defaults:{defaultType:"button",role:"group"},renderHtml:function(){var e=this._layout;return this.classes.add("btn-group"),this.preRender(),e.preRender(this),'<div id="'+this._id+'" class="'+this.classes+'"><div id="'+this._id+'-body">'+(this.settings.html||"")+e.renderHtml(this)+"</div></div>"}}),Ht=St.extend({Defaults:{classes:"checkbox",role:"checkbox",checked:!1},init:function(e){var t=this;t._super(e),t.on("click mousedown",function(e){e.preventDefault()}),t.on("click",function(e){e.preventDefault(),t.disabled()||t.checked(!t.checked())}),t.checked(t.settings.checked)},checked:function(e){return arguments.length?(this.state.set("checked",e),this):this.state.get("checked")},value:function(e){return arguments.length?this.checked(e):this.checked()},renderHtml:function(){var e=this._id,t=this.classPrefix;return'<div id="'+e+'" class="'+this.classes+'" unselectable="on" aria-labelledby="'+e+'-al" tabindex="-1"><i class="'+t+"ico "+t+'i-checkbox"></i><span id="'+e+'-al" class="'+t+'label">'+this.encode(this.state.get("text"))+"</span></div>"},bindStates:function(){var e=this;function t(t){e.classes.toggle("checked",t),e.aria("checked",t)}return e.state.on("change:text",function(t){e.getEl("al").firstChild.data=e.translate(t.value)}),e.state.on("change:checked change:value",function(a){e.fire("change"),t(a.value)}),e.state.on("change:icon",function(t){var a=t.value,i=e.classPrefix;if(void 0===a)return e.settings.icon;e.settings.icon=a,a=a?i+"ico "+i+"i-"+e.settings.icon:"";var n=e.getEl().firstChild,l=n.getElementsByTagName("i")[0];a?(l&&l===n.firstChild||(l=document.createElement("i"),n.insertBefore(l,n.firstChild)),l.className=a):l&&n.removeChild(l)}),e.state.get("checked")&&t(!0),e._super()}}),Kt=tinymce.util.Tools.resolve("tinymce.util.VK"),Yt=St.extend({init:function(e){var t=this;t._super(e),e=t.settings,t.classes.add("combobox"),t.subinput=!0,t.ariaTarget="inp",e.menu=e.menu||e.values,e.menu&&(e.icon="caret"),t.on("click",function(a){var i=a.target,n=t.getEl();if(ve.contains(n,i)||i===n)for(;i&&i!==n;)i.id&&-1!==i.id.indexOf("-open")&&(t.fire("action"),e.menu&&(t.showMenu(),a.aria&&t.menu.items()[0].focus())),i=i.parentNode}),t.on("keydown",function(e){var a;13===e.keyCode&&"INPUT"===e.target.nodeName&&(e.preventDefault(),t.parents().reverse().each(function(e){if(e.toJSON)return a=e,!1}),t.fire("submit",{data:a.toJSON()}))}),t.on("keyup",function(e){if("INPUT"===e.target.nodeName){var a=t.state.get("value"),i=e.target.value;i!==a&&(t.state.set("value",i),t.fire("autocomplete",e))}}),t.on("mouseover",function(e){var a=t.tooltip().moveTo(-65535);if(t.statusLevel()&&-1!==e.target.className.indexOf(t.classPrefix+"status")){var i=t.statusMessage()||"Ok",n=a.text(i).show().testMoveRel(e.target,["bc-tc","bc-tl","bc-tr"]);a.classes.toggle("tooltip-n","bc-tc"===n),a.classes.toggle("tooltip-nw","bc-tl"===n),a.classes.toggle("tooltip-ne","bc-tr"===n),a.moveRel(e.target,n)}})},statusLevel:function(e){return arguments.length>0&&this.state.set("statusLevel",e),this.state.get("statusLevel")},statusMessage:function(e){return arguments.length>0&&this.state.set("statusMessage",e),this.state.get("statusMessage")},showMenu:function(){var e,t=this,a=t.settings;t.menu||((e=a.menu||[]).length?e={type:"menu",items:e}:e.type=e.type||"menu",t.menu=d.create(e).parent(t).renderTo(t.getContainerElm()),t.fire("createmenu"),t.menu.reflow(),t.menu.on("cancel",function(e){e.control===t.menu&&t.focus()}),t.menu.on("show hide",function(e){e.control.items().each(function(e){e.active(e.value()===t.value())})}).fire("show"),t.menu.on("select",function(e){t.value(e.control.value())}),t.on("focusin",function(e){"INPUT"===e.target.tagName.toUpperCase()&&t.menu.hide()}),t.aria("expanded",!0)),t.menu.show(),t.menu.layoutRect({w:t.layoutRect().w}),t.menu.moveRel(t.getEl(),t.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])},focus:function(){this.getEl("inp").focus()},repaint:function(){var e,t,a=this.getEl(),i=this.getEl("open"),n=this.layoutRect(),l=0,s=a.firstChild;this.statusLevel()&&"none"!==this.statusLevel()&&(l=parseInt(ge.getRuntimeStyle(s,"padding-right"),10)-parseInt(ge.getRuntimeStyle(s,"padding-left"),10)),e=i?n.w-ge.getSize(i).width-10:n.w-10;var r=document;return r.all&&(!r.documentMode||r.documentMode<=8)&&(t=this.layoutRect().h-2+"px"),ve(s).css({width:e-l,lineHeight:t}),this._super(),this},postRender:function(){var e=this;return ve(this.getEl("inp")).on("change",function(t){e.state.set("value",t.target.value),e.fire("change",t)}),e._super()},renderHtml:function(){var e,t,a,i=this._id,n=this.settings,l=this.classPrefix,s=this.state.get("value")||"",r="",o="";return"spellcheck"in n&&(o+=' spellcheck="'+n.spellcheck+'"'),n.maxLength&&(o+=' maxlength="'+n.maxLength+'"'),n.size&&(o+=' size="'+n.size+'"'),n.subtype&&(o+=' type="'+n.subtype+'"'),a='<i id="'+i+'-status" class="mce-status mce-ico" style="display: none"></i>',this.disabled()&&(o+=' disabled="disabled"'),(e=n.icon)&&"caret"!==e&&(e=l+"ico "+l+"i-"+n.icon),t=this.state.get("text"),(e||t)&&(r='<div id="'+i+'-open" class="'+l+"btn "+l+'open" tabIndex="-1" role="button"><button id="'+i+'-action" type="button" hidefocus="1" tabindex="-1">'+("caret"!==e?'<i class="'+e+'"></i>':'<i class="'+l+'caret"></i>')+(t?(e?" ":"")+t:"")+"</button></div>",this.classes.add("has-open")),'<div id="'+i+'" class="'+this.classes+'"><input id="'+i+'-inp" class="'+l+'textbox" value="'+this.encode(s,!1)+'" hidefocus="1"'+o+' placeholder="'+this.encode(n.placeholder)+'" />'+a+r+"</div>"},value:function(e){return arguments.length?(this.state.set("value",e),this):(this.state.get("rendered")&&this.state.set("value",this.getEl("inp").value),this.state.get("value"))},showAutoComplete:function(e,t){var a=this;if(0!==e.length){a.menu?a.menu.items().remove():a.menu=d.create({type:"menu",classes:"combobox-menu",layout:"flow"}).parent(a).renderTo(),i.each(e,function(e){var i,n;a.menu.add({text:e.title,url:e.previewUrl,match:t,classes:"menu-item-ellipsis",onclick:(i=e.value,n=e.title,function(){a.fire("selectitem",{title:n,value:i})})})}),a.menu.renderNew(),a.hideMenu(),a.menu.on("cancel",function(e){e.control.parent()===a.menu&&(e.stopPropagation(),a.focus(),a.hideMenu())}),a.menu.on("select",function(){a.focus()});var n=a.layoutRect().w;a.menu.layoutRect({w:n,minW:0,maxW:n}),a.menu.repaint(),a.menu.reflow(),a.menu.show(),a.menu.moveRel(a.getEl(),a.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])}else a.hideMenu()},hideMenu:function(){this.menu&&this.menu.hide()},bindStates:function(){var e=this;e.state.on("change:value",function(t){e.getEl("inp").value!==t.value&&(e.getEl("inp").value=t.value)}),e.state.on("change:disabled",function(t){e.getEl("inp").disabled=t.value}),e.state.on("change:statusLevel",function(t){var a=e.getEl("status"),i=e.classPrefix,n=t.value;ge.css(a,"display","none"===n?"none":""),ge.toggleClass(a,i+"i-checkmark","ok"===n),ge.toggleClass(a,i+"i-warning","warn"===n),ge.toggleClass(a,i+"i-error","error"===n),e.classes.toggle("has-status","none"!==n),e.repaint()}),ge.on(e.getEl("status"),"mouseleave",function(){e.tooltip().hide()}),e.on("cancel",function(t){e.menu&&e.menu.visible()&&(t.stopPropagation(),e.hideMenu())});var t=function(e,t){t&&t.items().length>0&&t.items().eq(e)[0].focus()};return e.on("keydown",function(a){var i=a.keyCode;"INPUT"===a.target.nodeName&&(i===Kt.DOWN?(a.preventDefault(),e.fire("autocomplete"),t(0,e.menu)):i===Kt.UP&&(a.preventDefault(),t(-1,e.menu)))}),e._super()},remove:function(){ve(this.getEl("inp")).off(),this.menu&&this.menu.remove(),this._super()}}),Qt=Yt.extend({init:function(e){var t=this;e.spellcheck=!1,e.onaction&&(e.icon="none"),t._super(e),t.classes.add("colorbox"),t.on("change keyup postrender",function(){t.repaintColor(t.value())})},repaintColor:function(e){var t=this.getEl("open"),a=t?t.getElementsByTagName("i")[0]:null;if(a)try{a.style.background=e}catch(e){}},bindStates:function(){var e=this;return e.state.on("change:value",function(t){e.state.get("rendered")&&e.repaintColor(t.value)}),e._super()}}),Gt=Wt.extend({showPanel:function(){var e=this,t=e.settings;if(e.classes.add("opened"),e.panel)e.panel.show();else{var a=t.panel;a.type&&(a={layout:"grid",items:a}),a.role=a.role||"dialog",a.popover=!0,a.autohide=!0,a.ariaRoot=!0,e.panel=new yt(a).on("hide",function(){e.classes.remove("opened")}).on("cancel",function(t){t.stopPropagation(),e.focus(),e.hidePanel()}).parent(e).renderTo(e.getContainerElm()),e.panel.fire("show"),e.panel.reflow()}var i=e.panel.testMoveRel(e.getEl(),t.popoverAlign||(e.isRtl()?["bc-tc","bc-tl","bc-tr"]:["bc-tc","bc-tr","bc-tl","tc-bc","tc-br","tc-bl"]));e.panel.classes.toggle("start","l"===i.substr(-1)),e.panel.classes.toggle("end","r"===i.substr(-1));var n="t"===i.substr(0,1);e.panel.classes.toggle("bottom",!n),e.panel.classes.toggle("top",n),e.panel.moveRel(e.getEl(),i)},hidePanel:function(){this.panel&&this.panel.hide()},postRender:function(){var e=this;return e.aria("haspopup",!0),e.on("click",function(t){t.control===e&&(e.panel&&e.panel.visible()?e.hidePanel():(e.showPanel(),e.panel.focus(!!t.aria)))}),e._super()},remove:function(){return this.panel&&(this.panel.remove(),this.panel=null),this._super()}}),Jt=c.DOM,Xt=Gt.extend({init:function(e){this._super(e),this.classes.add("splitbtn"),this.classes.add("colorbutton")},color:function(e){return e?(this._color=e,this.getEl("preview").style.backgroundColor=e,this):this._color},resetColor:function(){return this._color=null,this.getEl("preview").style.backgroundColor=null,this},renderHtml:function(){var e=this._id,t=this.classPrefix,a=this.state.get("text"),i=this.settings.icon?t+"ico "+t+"i-"+this.settings.icon:"",n=this.settings.image?" style=\"background-image: url('"+this.settings.image+"')\"":"",l="";return a&&(this.classes.add("btn-has-text"),l='<span class="'+t+'txt">'+this.encode(a)+"</span>"),'<div id="'+e+'" class="'+this.classes+'" role="button" tabindex="-1" aria-haspopup="true"><button role="presentation" hidefocus="1" type="button" tabindex="-1">'+(i?'<i class="'+i+'"'+n+"></i>":"")+'<span id="'+e+'-preview" class="'+t+'preview"></span>'+l+'</button><button type="button" class="'+t+'open" hidefocus="1" tabindex="-1"> <i class="'+t+'caret"></i></button></div>'},postRender:function(){var e=this,t=e.settings.onclick;return e.on("click",function(a){a.aria&&"down"===a.aria.key||a.control!==e||Jt.getParent(a.target,"."+e.classPrefix+"open")||(a.stopImmediatePropagation(),t.call(e,a))}),delete e.settings.onclick,e._super()}}),Zt=tinymce.util.Tools.resolve("tinymce.util.Color"),$t=St.extend({Defaults:{classes:"widget colorpicker"},init:function(e){this._super(e)},postRender:function(){var e,t,a,i,n,l=this,s=l.color();function r(e,t){var a,i,n=ge.getPos(e);return a=t.pageX-n.x,i=t.pageY-n.y,{x:a=Math.max(0,Math.min(a/e.clientWidth,1)),y:i=Math.max(0,Math.min(i/e.clientHeight,1))}}function o(e,t){var s=(360-e.h)/360;ge.css(a,{top:100*s+"%"}),t||ge.css(n,{left:e.s+"%",top:100-e.v+"%"}),i.style.background=Zt({s:100,v:100,h:e.h}).toHex(),l.color().parse({s:e.s,v:e.v,h:e.h})}function u(t){var a;a=r(i,t),e.s=100*a.x,e.v=100*(1-a.y),o(e),l.fire("change")}function c(a){var i;i=r(t,a),(e=s.toHsv()).h=360*(1-i.y),o(e,!0),l.fire("change")}t=l.getEl("h"),a=l.getEl("hp"),i=l.getEl("sv"),n=l.getEl("svp"),l._repaint=function(){o(e=s.toHsv())},l._super(),l._svdraghelper=new st(l._id+"-sv",{start:u,drag:u}),l._hdraghelper=new st(l._id+"-h",{start:c,drag:c}),l._repaint()},rgb:function(){return this.color().toRgb()},value:function(e){if(!arguments.length)return this.color().toHex();this.color().parse(e),this._rendered&&this._repaint()},color:function(){return this._color||(this._color=Zt()),this._color},renderHtml:function(){var e,t=this._id,a=this.classPrefix,i="#ff0000,#ff0080,#ff00ff,#8000ff,#0000ff,#0080ff,#00ffff,#00ff80,#00ff00,#80ff00,#ffff00,#ff8000,#ff0000";return e='<div id="'+t+'-h" class="'+a+'colorpicker-h" style="background: -ms-linear-gradient(top,'+i+");background: linear-gradient(to bottom,"+i+');">'+function(){var e,t,n,l,s="";for(n="filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=",e=0,t=(l=i.split(",")).length-1;e<t;e++)s+='<div class="'+a+'colorpicker-h-chunk" style="height:'+100/t+"%;"+n+l[e]+",endColorstr="+l[e+1]+");-ms-"+n+l[e]+",endColorstr="+l[e+1]+')"></div>';return s}()+'<div id="'+t+'-hp" class="'+a+'colorpicker-h-marker"></div></div>','<div id="'+t+'" class="'+this.classes+'"><div id="'+t+'-sv" class="'+a+'colorpicker-sv"><div class="'+a+'colorpicker-overlay1"><div class="'+a+'colorpicker-overlay2"><div id="'+t+'-svp" class="'+a+'colorpicker-selector1"><div class="'+a+'colorpicker-selector2"></div></div></div></div></div>'+e+"</div>"}}),ea=St.extend({init:function(e){e=i.extend({height:100,text:"Drop an image here",multiple:!1,accept:null},e),this._super(e),this.classes.add("dropzone"),e.multiple&&this.classes.add("multiple")},renderHtml:function(){var e,t,a=this.settings;return e={id:this._id,hidefocus:"1"},t=ge.create("div",e,"<span>"+this.translate(a.text)+"</span>"),a.height&&ge.css(t,"height",a.height+"px"),a.width&&ge.css(t,"width",a.width+"px"),t.className=this.classes,t.outerHTML},postRender:function(){var e=this,t=function(t){t.preventDefault(),e.classes.toggle("dragenter"),e.getEl().className=e.classes};e._super(),e.$el.on("dragover",function(e){e.preventDefault()}),e.$el.on("dragenter",t),e.$el.on("dragleave",t),e.$el.on("drop",function(t){if(t.preventDefault(),!e.state.get("disabled")){var a=function(t){var a=e.settings.accept;if("string"!=typeof a)return t;var n=new RegExp("("+a.split(/\s*,\s*/).join("|")+")$","i");return i.grep(t,function(e){return n.test(e.name)})}(t.dataTransfer.files);e.value=function(){return a.length?e.settings.multiple?a:a[0]:null},a.length&&e.fire("change",t)}})},remove:function(){this.$el.off(),this._super()}}),ta=St.extend({init:function(e){var t=this;e.delimiter||(e.delimiter="»"),t._super(e),t.classes.add("path"),t.canFocus=!0,t.on("click",function(e){var a;(a=e.target.getAttribute("data-index"))&&t.fire("select",{value:t.row()[a],index:a})}),t.row(t.settings.row)},focus:function(){return this.getEl().firstChild.focus(),this},row:function(e){return arguments.length?(this.state.set("row",e),this):this.state.get("row")},renderHtml:function(){return'<div id="'+this._id+'" class="'+this.classes+'">'+this._getDataPathHtml(this.state.get("row"))+"</div>"},bindStates:function(){var e=this;return e.state.on("change:row",function(t){e.innerHtml(e._getDataPathHtml(t.value))}),e._super()},_getDataPathHtml:function(e){var t,a,i=e||[],n="",l=this.classPrefix;for(t=0,a=i.length;t<a;t++)n+=(t>0?'<div class="'+l+'divider" aria-hidden="true"> '+this.settings.delimiter+" </div>":"")+'<div role="button" class="'+l+"path-item"+(t===a-1?" "+l+"last":"")+'" data-index="'+t+'" tabindex="-1" id="'+this._id+"-"+t+'" aria-level="'+(t+1)+'">'+i[t].name+"</div>";return n||(n='<div class="'+l+'path-item"> </div>'),n}}),aa=ta.extend({postRender:function(){var e=this,t=e.settings.editor;function a(e){if(1===e.nodeType){if("BR"===e.nodeName||e.getAttribute("data-mce-bogus"))return!0;if("bookmark"===e.getAttribute("data-mce-type"))return!0}return!1}return!1!==t.settings.elementpath&&(e.on("select",function(e){t.focus(),t.selection.select(this.row()[e.index].element),t.nodeChanged()}),t.on("nodeChange",function(i){for(var n=[],l=i.parents,s=l.length;s--;)if(1===l[s].nodeType&&!a(l[s])){var r=t.fire("ResolveName",{name:l[s].nodeName.toLowerCase(),target:l[s]});if(r.isDefaultPrevented()||n.push({name:r.name,element:l[s]}),r.isPropagationStopped())break}e.row(n)})),e._super()}}),ia=nt.extend({Defaults:{layout:"flex",align:"center",defaults:{flex:1}},renderHtml:function(){var e=this._layout,t=this.classPrefix;return this.classes.add("formitem"),e.preRender(this),'<div id="'+this._id+'" class="'+this.classes+'" hidefocus="1" tabindex="-1">'+(this.settings.title?'<div id="'+this._id+'-title" class="'+t+'title">'+this.settings.title+"</div>":"")+'<div id="'+this._id+'-body" class="'+this.bodyClasses+'">'+(this.settings.html||"")+e.renderHtml(this)+"</div></div>"}}),na=nt.extend({Defaults:{containerCls:"form",layout:"flex",direction:"column",align:"stretch",flex:1,padding:15,labelGap:30,spacing:10,callbacks:{submit:function(){this.submit()}}},preRender:function(){var e=this,t=e.items();e.settings.formItemDefaults||(e.settings.formItemDefaults={layout:"flex",autoResize:"overflow",defaults:{flex:1}}),t.each(function(t){var a,n=t.settings.label;n&&((a=new ia(i.extend({items:{type:"label",id:t._id+"-l",text:n,flex:0,forId:t._id,disabled:t.disabled()}},e.settings.formItemDefaults))).type="formitem",t.aria("labelledby",t._id+"-l"),void 0===t.settings.flex&&(t.settings.flex=1),e.replace(t,a),a.add(t))})},submit:function(){return this.fire("submit",{data:this.toJSON()})},postRender:function(){this._super(),this.fromJSON(this.settings.data)},bindStates:function(){var e=this;function t(){var t,a,i=0,n=[];if(!1!==e.settings.labelGapCalc)for(("children"===e.settings.labelGapCalc?e.find("formitem"):e.items()).filter("formitem").each(function(e){var t=e.items()[0],a=t.getEl().clientWidth;i=a>i?a:i,n.push(t)}),a=e.settings.labelGap||0,t=n.length;t--;)n[t].settings.minWidth=i+a}e._super(),e.on("show",t),t()}}),la=na.extend({Defaults:{containerCls:"fieldset",layout:"flex",direction:"column",align:"stretch",flex:1,padding:"25 15 5 15",labelGap:30,spacing:10,border:1},renderHtml:function(){var e=this._layout,t=this.classPrefix;return this.preRender(),e.preRender(this),'<fieldset id="'+this._id+'" class="'+this.classes+'" hidefocus="1" tabindex="-1">'+(this.settings.title?'<legend id="'+this._id+'-title" class="'+t+'fieldset-title">'+this.settings.title+"</legend>":"")+'<div id="'+this._id+'-body" class="'+this.bodyClasses+'">'+(this.settings.html||"")+e.renderHtml(this)+"</div></fieldset>"}}),sa=0,ra=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:w(e)}},oa={fromHtml:function(e,t){var a=(t||document).createElement("div");if(a.innerHTML=e,!a.hasChildNodes()||a.childNodes.length>1)throw console.error("HTML does not have a single root node",e),"HTML must have a single root node";return ra(a.childNodes[0])},fromTag:function(e,t){var a=(t||document).createElement(e);return ra(a)},fromText:function(e,t){var a=(t||document).createTextNode(e);return ra(a)},fromDom:ra,fromPoint:function(e,t,a){var i=e.dom();return D.from(i.elementFromPoint(t,a)).map(ra)}},ua=function(e){var t,a=!1;return function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return a||(a=!0,t=e.apply(null,i)),t}},ca={ATTRIBUTE:Node.ATTRIBUTE_NODE,CDATA_SECTION:Node.CDATA_SECTION_NODE,COMMENT:Node.COMMENT_NODE,DOCUMENT:Node.DOCUMENT_NODE,DOCUMENT_TYPE:Node.DOCUMENT_TYPE_NODE,DOCUMENT_FRAGMENT:Node.DOCUMENT_FRAGMENT_NODE,ELEMENT:Node.ELEMENT_NODE,TEXT:Node.TEXT_NODE,PROCESSING_INSTRUCTION:Node.PROCESSING_INSTRUCTION_NODE,ENTITY_REFERENCE:Node.ENTITY_REFERENCE_NODE,ENTITY:Node.ENTITY_NODE,NOTATION:Node.NOTATION_NODE},da=function(e){return e.dom().nodeType},ma=function(e){return function(t){return da(t)===e}},ha=(ma(ca.ELEMENT),ma(ca.TEXT),ma(ca.DOCUMENT),ua(function(){return ha(oa.fromDom(document))}),function(e){var t=e.dom().body;if(null===t||void 0===t)throw"Body is not available yet";return oa.fromDom(t)}),fa=("undefined"!=typeof window?window:Function("return this;")(),function(){return va(0,0)}),va=function(e,t){return{major:e,minor:t}},pa={nu:va,detect:function(e,t){var a=String(t).toLowerCase();return 0===e.length?fa():function(e,t){var a=function(e,t){for(var a=0;a<e.length;a++){var i=e[a];if(i.test(t))return i}}(e,t);if(!a)return{major:0,minor:0};var i=function(e){return Number(t.replace(a,"$"+e))};return va(i(1),i(2))}(e,a)},unknown:fa},ga=function(e,t){return function(){return t===e}},ba=function(e){var t=e.current;return{current:t,version:e.version,isEdge:ga("Edge",t),isChrome:ga("Chrome",t),isIE:ga("IE",t),isOpera:ga("Opera",t),isFirefox:ga("Firefox",t),isSafari:ga("Safari",t)}},_a={unknown:function(){return ba({current:void 0,version:pa.unknown()})},nu:ba,edge:w("Edge"),chrome:w("Chrome"),ie:w("IE"),opera:w("Opera"),firefox:w("Firefox"),safari:w("Safari")},ya=function(e,t){return function(){return t===e}},wa=function(e){var t=e.current;return{current:t,version:e.version,isWindows:ya("Windows",t),isiOS:ya("iOS",t),isAndroid:ya("Android",t),isOSX:ya("OSX",t),isLinux:ya("Linux",t),isSolaris:ya("Solaris",t),isFreeBSD:ya("FreeBSD",t)}},xa={unknown:function(){return wa({current:void 0,version:pa.unknown()})},nu:wa,windows:w("Windows"),ios:w("iOS"),android:w("Android"),linux:w("Linux"),osx:w("OSX"),solaris:w("Solaris"),freebsd:w("FreeBSD")},Ca=function(e,t){var a=String(t).toLowerCase();return K(e,function(e){return e.search(a)})},Aa=function(e,t){return Ca(e,t).map(function(e){var a=pa.detect(e.versionRegexes,t);return{current:e.name,version:a}})},ka=function(e,t){return Ca(e,t).map(function(e){var a=pa.detect(e.versionRegexes,t);return{current:e.name,version:a}})},Ea=function(e,t){return-1!==e.indexOf(t)},Da=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Sa=function(e){return function(t){return Ea(t,e)}},Ia=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Ea(e,"edge/")&&Ea(e,"chrome")&&Ea(e,"safari")&&Ea(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Da],search:function(e){return Ea(e,"chrome")&&!Ea(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Ea(e,"msie")||Ea(e,"trident")}},{name:"Opera",versionRegexes:[Da,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Sa("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Sa("firefox")},{name:"Safari",versionRegexes:[Da,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Ea(e,"safari")||Ea(e,"mobile/"))&&Ea(e,"applewebkit")}}],Ta=[{name:"Windows",search:Sa("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Ea(e,"iphone")||Ea(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Sa("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Sa("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Sa("linux"),versionRegexes:[]},{name:"Solaris",search:Sa("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Sa("freebsd"),versionRegexes:[]}],Ba={browsers:w(Ia),oses:w(Ta)},Ma=function(e){var t=Ba.browsers(),a=Ba.oses(),i=Aa(t,e).fold(_a.unknown,_a.nu),n=ka(a,e).fold(xa.unknown,xa.nu);return{browser:i,os:n,deviceType:function(e,t,a){var i=e.isiOS()&&!0===/ipad/i.test(a),n=e.isiOS()&&!i,l=e.isAndroid()&&3===e.version.major,s=e.isAndroid()&&4===e.version.major,r=i||l||s&&!0===/mobile/i.test(a),o=e.isiOS()||e.isAndroid(),u=o&&!r,c=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(a);return{isiPad:w(i),isiPhone:w(n),isTablet:w(r),isPhone:w(u),isTouch:w(o),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:w(c)}}(n,i,e)}},Pa=ua(function(){var e=navigator.userAgent;return Ma(e)}),La=ca.ELEMENT,Ra=ca.DOCUMENT,Na=function(e){return e.nodeType!==La&&e.nodeType!==Ra||0===e.childElementCount},Oa={all:function(e,t){var a=void 0===t?document:t.dom();return Na(a)?[]:V(a.querySelectorAll(e),oa.fromDom)},is:function(e,t){var a=e.dom();if(a.nodeType!==La)return!1;if(void 0!==a.matches)return a.matches(t);if(void 0!==a.msMatchesSelector)return a.msMatchesSelector(t);if(void 0!==a.webkitMatchesSelector)return a.webkitMatchesSelector(t);if(void 0!==a.mozMatchesSelector)return a.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},one:function(e,t){var a=void 0===t?document:t.dom();return Na(a)?D.none():D.from(a.querySelector(e)).map(oa.fromDom)}},qa=(Pa().browser.isIE(),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}("element","offset"),function(e,t){return Oa.all(t,e)}),za=i.trim,Fa=function(e){return function(t){if(t&&1===t.nodeType){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},Ua=Fa("true"),Wa=Fa("false"),Va=function(e,t,a,i,n){return{type:e,title:t,url:a,level:i,attach:n}},ja=function(e){return e.innerText||e.textContent},Ha=function(e){return e.id?e.id:(t="h",a=(new Date).getTime(),t+"_"+Math.floor(1e9*Math.random())+ ++sa+String(a));var t,a},Ka=function(e){return function(e){return e&&"A"===e.nodeName&&(e.id||e.name)}(e)&&Qa(e)},Ya=function(e){return e&&/^(H[1-6])$/.test(e.nodeName)},Qa=function(e){return function(e){for(;e=e.parentNode;){var t=e.contentEditable;if(t&&"inherit"!==t)return Ua(e)}return!1}(e)&&!Wa(e)},Ga=function(e){return Ya(e)&&Qa(e)},Ja=function(e){var t=Ha(e);return Va("header",ja(e),"#"+t,function(e){return Ya(e)?parseInt(e.nodeName.substr(1),10):0}(e),function(){e.id=t})},Xa=function(e){var t=e.id||e.name,a=ja(e);return Va("anchor",a||"#"+t,"#"+t,0,y)},Za=function(e){var t,a;return t="h1,h2,h3,h4,h5,h6,a:not([href])",a=e,V(qa(oa.fromDom(a),t),function(e){return e.dom()})},$a=function(e){return za(e.title).length>0},ei=function(e){var t=Za(e);return H(function(e){return V(H(e,Ga),Ja)}(t).concat(function(e){return V(H(e,Ka),Xa)}(t)),$a)},ti={},ai=function(e){return{title:e.title,value:{title:{raw:e.title},url:e.url,attach:e.attach}}},ii=function(e,t){return{title:e,value:{title:e,url:t,attach:y}}},ni=function(e,t,a){var i=t in e?e[t]:a;return!1===i?null:i},li=function(e,t,a,n){var l,s,r,o={title:"-"},u=function(e){var n=e.hasOwnProperty(a)?e[a]:[],l=H(n,function(e){return function(e,t){return!W(t,function(t){return t.url===e})}(e,t)});return i.map(l,function(e){return{title:e,value:{title:e,url:e,attach:y}}})},c=function(e){return function(e){return i.map(e,ai)}(H(t,function(t){return t.type===e}))};return!1===n.typeahead_urls?[]:"file"===a?(l=[ri(e,u(ti)),ri(e,c("header")),ri(e,function(){var e=c("anchor"),t=ni(n,"anchor_top","#top"),a=ni(n,"anchor_bottom","#bottom");return null!==t&&e.unshift(ii("<top>",t)),null!==a&&e.push(ii("<bottom>",a)),e}())],s=function(e,t){return 0===e.length||0===t.length?e.concat(t):e.concat(o,t)},r=[],j(l,function(e){r=s(r,e)}),r):ri(e,u(ti))},si=function(e,t){var a,i,n,l=ti[t];/^https?/.test(e)&&(l?(a=l,i=e,n=U(a,i),-1===n?D.none():D.some(n)).isNone()&&(ti[t]=l.slice(0,5).concat(e)):ti[t]=[e])},ri=function(e,t){var a=e.toLowerCase(),n=i.grep(t,function(e){return-1!==e.title.toLowerCase().indexOf(a)});return 1===n.length&&n[0].title===e?[]:n},oi=function(e,t,a){var i=t.filepicker_validator_handler;i&&e.state.on("change:value",function(t){var n;0!==(n=t.value).length?i({url:n,type:a},function(t){var a=function(e){var t=e.status,a=e.message;return"valid"===t?{status:"ok",message:a}:"unknown"===t?{status:"warn",message:a}:"invalid"===t?{status:"warn",message:a}:{status:"none",message:""}}(t);e.statusMessage(a.message),e.statusLevel(a.status)}):e.statusLevel("none")})},ui=Yt.extend({Statics:{clearHistory:function(){ti={}}},init:function(e){var t,n,l,s=this,r=window.tinymce?window.tinymce.activeEditor:a.activeEditor,o=r.settings,u=e.filetype;e.spellcheck=!1,(l=o.file_picker_types||o.file_browser_callback_types)&&(l=i.makeMap(l,/[, ]/)),l&&!l[u]||(!(n=o.file_picker_callback)||l&&!l[u]?!(n=o.file_browser_callback)||l&&!l[u]||(t=function(){n(s.getEl("inp").id,s.value(),u,window)}):t=function(){var e=s.fire("beforecall").meta;e=i.extend({filetype:u},e),n.call(r,function(e,t){s.value(e).fire("change",{meta:t})},s.value(),e)}),t&&(e.icon="browse",e.onaction=t),s._super(e),s.classes.add("filepicker"),function(e,t,a,i){var n=function(n){var l=ei(a),s=li(n,l,i,t);e.showAutoComplete(s,n)};e.on("autocomplete",function(){n(e.value())}),e.on("selectitem",function(t){var a=t.value;e.value(a.url);var n=function(e){var t=e.title;return t.raw?t.raw:t}(a);"image"===i?e.fire("change",{meta:{alt:n,attach:a.attach}}):e.fire("change",{meta:{text:n,attach:a.attach}}),e.focus()}),e.on("click",function(t){0===e.value().length&&"INPUT"===t.target.nodeName&&n("")}),e.on("PostRender",function(){e.getRoot().on("submit",function(t){t.isDefaultPrevented()||si(e.value(),i)})})}(s,o,r.getBody(),u),oi(s,o,u)}}),ci=Ut.extend({recalc:function(e){var t=e.layoutRect(),a=e.paddingBox;e.items().filter(":visible").each(function(e){e.layoutRect({x:a.left,y:a.top,w:t.innerW-a.right-a.left,h:t.innerH-a.top-a.bottom}),e.recalc&&e.recalc()})}}),di=Ut.extend({recalc:function(e){var t,a,i,n,l,s,r,o,u,c,d,m,h,f,v,p,g,b,_,y,w,x,C,A,k,E,D,S,I,T,B,M,P,L,R,N,O,q=[],z=Math.max,F=Math.min;for(i=e.items().filter(":visible"),n=e.layoutRect(),l=e.paddingBox,s=e.settings,m=e.isRtl()?s.direction||"row-reversed":s.direction,r=s.align,o=e.isRtl()?s.pack||"end":s.pack,u=s.spacing||0,"row-reversed"!==m&&"column-reverse"!==m||(i=i.set(i.toArray().reverse()),m=m.split("-")[0]),"column"===m?(A="y",x="h",C="minH",k="maxH",D="innerH",E="top",S="deltaH",I="contentH",L="left",M="w",T="x",B="innerW",P="minW",R="right",N="deltaW",O="contentW"):(A="x",x="w",C="minW",k="maxW",D="innerW",E="left",S="deltaW",I="contentW",L="top",M="h",T="y",B="innerH",P="minH",R="bottom",N="deltaH",O="contentH"),d=n[D]-l[E]-l[E],w=c=0,t=0,a=i.length;t<a;t++)f=(h=i[t]).layoutRect(),v=h.settings.flex,d-=t<a-1?u:0,v>0&&(c+=v,f[k]&&q.push(h),f.flex=v),d-=f[C],(p=l[L]+f[P]+l[R])>w&&(w=p);if((_={})[C]=d<0?n[C]-d+n[S]:n[D]-d+n[S],_[P]=w+n[N],_[I]=n[D]-d,_[O]=w,_.minW=F(_.minW,n.maxW),_.minH=F(_.minH,n.maxH),_.minW=z(_.minW,n.startMinWidth),_.minH=z(_.minH,n.startMinHeight),!n.autoResize||_.minW===n.minW&&_.minH===n.minH){for(b=d/c,t=0,a=q.length;t<a;t++)g=(f=(h=q[t]).layoutRect())[k],(p=f[C]+f.flex*b)>g?(d-=f[k]-f[C],c-=f.flex,f.flex=0,f.maxFlexSize=g):f.maxFlexSize=0;for(b=d/c,y=l[E],_={},0===c&&("end"===o?y=d+l[E]:"center"===o?(y=Math.round(n[D]/2-(n[D]-d)/2)+l[E])<0&&(y=l[E]):"justify"===o&&(y=l[E],u=Math.floor(d/(i.length-1)))),_[T]=l[L],t=0,a=i.length;t<a;t++)p=(f=(h=i[t]).layoutRect()).maxFlexSize||f[C],"center"===r?_[T]=Math.round(n[B]/2-f[M]/2):"stretch"===r?(_[M]=z(f[P]||0,n[B]-l[L]-l[R]),_[T]=l[L]):"end"===r&&(_[T]=n[B]-f[M]-l.top),f.flex>0&&(p+=f.flex*b),_[x]=p,_[A]=y,h.layoutRect(_),h.recalc&&h.recalc(),y+=p+u}else if(_.w=_.minW,_.h=_.minH,e.layoutRect(_),this.recalc(e),null===e._lastRect){var U=e.parent();U&&(U._lastRect=null,U.recalc())}}}),mi=Ft.extend({Defaults:{containerClass:"flow-layout",controlClass:"flow-layout-item",endClass:"break"},recalc:function(e){e.items().filter(":visible").each(function(e){e.recalc&&e.recalc()})},isNative:function(){return!0}}),hi=function(e,t){return Oa.one(t,e)},fi=function(e,t){return function(){e.execCommand("mceToggleFormat",!1,t)}},vi=function(e,t,a){var i=function(e){a(e,t)};e.formatter?e.formatter.formatChanged(t,i):e.on("init",function(){e.formatter.formatChanged(t,i)})},pi=function(e,t){return function(a){vi(e,t,function(e){a.control.active(e)})}},gi=function(e){var t=["alignleft","aligncenter","alignright","alignjustify"],a=[{text:"Left",icon:"alignleft",onclick:fi(e,"alignleft")},{text:"Center",icon:"aligncenter",onclick:fi(e,"aligncenter")},{text:"Right",icon:"alignright",onclick:fi(e,"alignright")},{text:"Justify",icon:"alignjustify",onclick:fi(e,"alignjustify")}];e.addMenuItem("align",{text:"Align",menu:a}),e.addButton("align",{type:"menubutton",icon:"alignleft",menu:a,onShowMenu:function(a){var n=a.control.menu;i.each(t,function(t,a){n.items().eq(a).each(function(a){return a.active(e.formatter.match(t))})})},onPostRender:function(a){var n=a.control;i.each(t,function(t,a){vi(e,t,function(e){n.icon("alignleft"),e&&n.icon(t)})})}}),i.each({alignleft:["Align left","JustifyLeft"],aligncenter:["Align center","JustifyCenter"],alignright:["Align right","JustifyRight"],alignjustify:["Justify","JustifyFull"],alignnone:["No alignment","JustifyNone"]},function(t,a){e.addButton(a,{active:!1,tooltip:t[0],cmd:t[1],onPostRender:pi(e,a)})})},bi=function(e){return e?e.split(",")[0]:""},_i=function(e,t){return function(){var a=this;a.state.set("value",null),e.on("init nodeChange",function(n){var l=e.queryCommandValue("FontName"),s=function(e,t){var a,n=t?t.toLowerCase():"";return i.each(e,function(e){e.value.toLowerCase()===n&&(a=e.value)}),i.each(e,function(e){a||bi(e.value).toLowerCase()!==bi(n).toLowerCase()||(a=e.value)}),a}(t,l);a.value(s||null),!s&&l&&a.text(bi(l))})}},yi=function(e){e.addButton("fontselect",function(){var t=function(e){var t=function(e){for(var t=(e=e.replace(/;$/,"").split(";")).length;t--;)e[t]=e[t].split("=");return e}(e.settings.font_formats||"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats");return i.map(t,function(e){return{text:{raw:e[0]},value:e[1],textStyle:-1===e[1].indexOf("dings")?"font-family:"+e[1]:""}})}(e);return{type:"listbox",text:"Font Family",tooltip:"Font Family",values:t,fixedWidth:!0,onPostRender:_i(e,t),onselect:function(t){t.control.settings.value&&e.execCommand("FontName",!1,t.control.settings.value)}}})},wi=function(e){yi(e)},xi=function(e,t){return/[0-9.]+px$/.test(e)?function(e,t){var a=Math.pow(10,t);return Math.round(e*a)/a}(72*parseInt(e,10)/96,t||0)+"pt":e},Ci=function(e,t,a){var n;return i.each(e,function(e){e.value===a?n=a:e.value===t&&(n=t)}),n},Ai=function(e){e.addButton("fontsizeselect",function(){var t=function(e){var t=e.settings.fontsize_formats||"8pt 10pt 12pt 14pt 18pt 24pt 36pt";return i.map(t.split(" "),function(e){var t=e,a=e,i=e.split("=");return i.length>1&&(t=i[0],a=i[1]),{text:t,value:a}})}(e);return{type:"listbox",text:"Font Sizes",tooltip:"Font Sizes",values:t,fixedWidth:!0,onPostRender:function(e,t){return function(){var a=this;e.on("init nodeChange",function(i){var n,l,s,r;if(n=e.queryCommandValue("FontSize"))for(s=3;!r&&s>=0;s--)l=xi(n,s),r=Ci(t,l,n);a.value(r||null),r||a.text(l)})}}(e,t),onclick:function(t){t.control.settings.value&&e.execCommand("FontSize",!1,t.control.settings.value)}}})},ki=function(e){Ai(e)},Ei=function(e,t){var a=t.length;return i.each(t,function(t){t.menu&&(t.hidden=0===Ei(e,t.menu));var i=t.format;i&&(t.hidden=!e.formatter.canApply(i)),t.hidden&&a--}),a},Di=function(e,t){var a=t.items().length;return t.items().each(function(t){t.menu&&t.visible(Di(e,t.menu)>0),!t.menu&&t.settings.menu&&t.visible(Ei(e,t.settings.menu)>0);var i=t.settings.format;i&&t.visible(e.formatter.canApply(i)),t.visible()||a--}),a},Si=function(e){var t=function(e){var t=0,a=[],n=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",icon:"bold",format:"bold"},{title:"Italic",icon:"italic",format:"italic"},{title:"Underline",icon:"underline",format:"underline"},{title:"Strikethrough",icon:"strikethrough",format:"strikethrough"},{title:"Superscript",icon:"superscript",format:"superscript"},{title:"Subscript",icon:"subscript",format:"subscript"},{title:"Code",icon:"code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Alignment",items:[{title:"Left",icon:"alignleft",format:"alignleft"},{title:"Center",icon:"aligncenter",format:"aligncenter"},{title:"Right",icon:"alignright",format:"alignright"},{title:"Justify",icon:"alignjustify",format:"alignjustify"}]}],l=function(e){var n=[];if(e)return i.each(e,function(e){var i={text:e.title,icon:e.icon};if(e.items)i.menu=l(e.items);else{var s=e.format||"custom"+t++;e.format||(e.name=s,a.push(e)),i.format=s,i.cmd=e.cmd}n.push(i)}),n};return e.on("init",function(){i.each(a,function(t){e.formatter.register(t.name,t)})}),{type:"menu",items:e.settings.style_formats_merge?e.settings.style_formats?l(n.concat(e.settings.style_formats)):l(n):l(e.settings.style_formats||n),onPostRender:function(t){e.fire("renderFormatsMenu",{control:t.control})},itemDefaults:{preview:!0,textStyle:function(){if(this.settings.format)return e.formatter.getCssText(this.settings.format)},onPostRender:function(){var t=this;t.parent().on("show",function(){var a,i;(a=t.settings.format)&&(t.disabled(!e.formatter.canApply(a)),t.active(e.formatter.match(a))),(i=t.settings.cmd)&&t.active(e.queryCommandState(i))})},onclick:function(){this.settings.format&&fi(e,this.settings.format)(),this.settings.cmd&&e.execCommand(this.settings.cmd)}}}}(e);!function(e,t){e.addMenuItem("formats",{text:"Formats",menu:t})}(e,t),function(e,t){e.addButton("styleselect",{type:"menubutton",text:"Formats",menu:t,onShowMenu:function(){e.settings.style_formats_autohide&&Di(e,this.menu)}})}(e,t)},Ii=function(e,t){return function(){var a=[];return i.each(t,function(t){a.push({text:t[0],value:t[1],textStyle:function(){return e.formatter.getCssText(t[1])}})}),{type:"listbox",text:t[0][0],values:a,fixedWidth:!0,onselect:function(t){if(t.control){var a=t.control.value();fi(e,a)()}},onPostRender:function(e,t,a){return function(){var n=this;e.on("nodeChange",function(l){var s=e.formatter,r=null;i.each(l.parents,function(e){if(i.each(t,function(t){if(a?s.matchNode(e,a,{value:t.value})&&(r=t.value):s.matchNode(e,t.value)&&(r=t.value),r)return!1}),r)return!1}),n.value(r)})}}(e,a)}}},Ti=function(e){var t=function(e){for(var t=(e=e.replace(/;$/,"").split(";")).length;t--;)e[t]=e[t].split("=");return e}(e.settings.block_formats||"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre");e.addMenuItem("blockformats",{text:"Blocks",menu:function(e,t){return i.map(t,function(t){return{text:t[0],onclick:fi(e,t[1]),textStyle:function(){return e.formatter.getCssText(t[1])}}})}(e,t)}),e.addButton("formatselect",Ii(e,t))},Bi=function(e,t){var a,n;if("string"==typeof t)n=t.split(" ");else if(i.isArray(t))return function(e){for(var t=[],a=0,i=e.length;a<i;++a){if(!Array.prototype.isPrototypeOf(e[a]))throw new Error("Arr.flatten item "+a+" was not an array, input: "+e);G.apply(t,e[a])}return t}(i.map(t,function(t){return Bi(e,t)}));return a=i.grep(n,function(t){return"|"===t||t in e.menuItems}),i.map(a,function(t){return"|"===t?{text:"-"}:e.menuItems[t]})},Mi=function(e){return e&&"-"===e.text},Pi=function(e){var t=H(e,function(e,t,a){return!Mi(e)||!Mi(a[t-1])});return H(t,function(e,t,a){return!Mi(e)||t>0&&t<a.length-1})},Li=function(e){var t=e.settings.insert_button_items;return Pi(t?Bi(e,t):function(e,t){var a=[{text:"-"}],n=i.grep(e.menuItems,function(e){return e.context===t});return i.each(n,function(e){"before"===e.separator&&a.push({text:"|"}),e.prependToContext?a.unshift(e):a.push(e),"after"===e.separator&&a.push({text:"|"})}),a}(e,"insert"))},Ri=function(e){!function(e){e.addButton("insert",{type:"menubutton",icon:"insert",menu:[],oncreatemenu:function(){this.menu.add(Li(e)),this.menu.renderNew()}})}(e)},Ni=function(e){!function(e){i.each({bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript"},function(t,a){e.addButton(a,{active:!1,tooltip:t,onPostRender:pi(e,a),onclick:fi(e,a)})})}(e),function(e){i.each({outdent:["Decrease indent","Outdent"],indent:["Increase indent","Indent"],cut:["Cut","Cut"],copy:["Copy","Copy"],paste:["Paste","Paste"],help:["Help","mceHelp"],selectall:["Select all","SelectAll"],visualaid:["Visual aids","mceToggleVisualAid"],newdocument:["New document","mceNewDocument"],removeformat:["Clear formatting","RemoveFormat"],remove:["Remove","Delete"]},function(t,a){e.addButton(a,{tooltip:t[0],cmd:t[1]})})}(e),function(e){i.each({blockquote:["Blockquote","mceBlockQuote"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"]},function(t,a){e.addButton(a,{active:!1,tooltip:t[0],cmd:t[1],onPostRender:pi(e,a)})})}(e)},Oi=function(e){Ni(e),function(e){i.each({bold:["Bold","Bold","Meta+B"],italic:["Italic","Italic","Meta+I"],underline:["Underline","Underline","Meta+U"],strikethrough:["Strikethrough","Strikethrough"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"],removeformat:["Clear formatting","RemoveFormat"],newdocument:["New document","mceNewDocument"],cut:["Cut","Cut","Meta+X"],copy:["Copy","Copy","Meta+C"],paste:["Paste","Paste","Meta+V"],selectall:["Select all","SelectAll","Meta+A"]},function(t,a){e.addMenuItem(a,{text:t[0],icon:a,shortcut:t[2],cmd:t[1]})}),e.addMenuItem("codeformat",{text:"Code",icon:"code",onclick:fi(e,"code")})}(e)},qi=function(e,t){return function(){var a=this,i=function(){var a="redo"===t?"hasRedo":"hasUndo";return!!e.undoManager&&e.undoManager[a]()};a.disabled(!i()),e.on("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",function(){a.disabled(e.readonly||!i())})}},zi=function(e){!function(e){e.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onPostRender:qi(e,"undo"),cmd:"undo"}),e.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onPostRender:qi(e,"redo"),cmd:"redo"})}(e),function(e){e.addButton("undo",{tooltip:"Undo",onPostRender:qi(e,"undo"),cmd:"undo"}),e.addButton("redo",{tooltip:"Redo",onPostRender:qi(e,"redo"),cmd:"redo"})}(e)},Fi=function(e){!function(e){e.addMenuItem("visualaid",{text:"Visual aids",selectable:!0,onPostRender:function(e){return function(){var t=this;e.on("VisualAid",function(e){t.active(e.hasVisual)}),t.active(e.hasVisual)}}(e),cmd:"mceToggleVisualAid"})}(e)},Ui={setup:function(e){!function(e){e.rtl&&(et.rtl=!0)}(e),function(e){e.on("mousedown",function(){yt.hideAll()})}(e),function(e){e.settings.ui_container&&(se.container=hi(oa.fromDom(document.body),e.settings.ui_container).fold(w(null),function(e){return e.dom()}))}(e),St.tooltips=!se.iOS,et.translate=function(e){return a.translate(e)},Ti(e),gi(e),Oi(e),zi(e),ki(e),wi(e),Si(e),Fi(e),Ri(e)}},Wi=Ut.extend({recalc:function(e){var t,a,i,n,l,s,r,o,u,c,d,m,h,f,v,p,g,b,_,y,w,x,C,A,k,E,D,S,I=[],T=[];t=e.settings,n=e.items().filter(":visible"),l=e.layoutRect(),i=t.columns||Math.ceil(Math.sqrt(n.length)),a=Math.ceil(n.length/i),b=t.spacingH||t.spacing||0,_=t.spacingV||t.spacing||0,y=t.alignH||t.align,w=t.alignV||t.align,p=e.paddingBox,S="reverseRows"in t?t.reverseRows:e.isRtl(),y&&"string"==typeof y&&(y=[y]),w&&"string"==typeof w&&(w=[w]);for(d=0;d<i;d++)I.push(0);for(m=0;m<a;m++)T.push(0);for(m=0;m<a;m++)for(d=0;d<i&&(c=n[m*i+d]);d++)A=(u=c.layoutRect()).minW,k=u.minH,I[d]=A>I[d]?A:I[d],T[m]=k>T[m]?k:T[m];for(E=l.innerW-p.left-p.right,x=0,d=0;d<i;d++)x+=I[d]+(d>0?b:0),E-=(d>0?b:0)+I[d];for(D=l.innerH-p.top-p.bottom,C=0,m=0;m<a;m++)C+=T[m]+(m>0?_:0),D-=(m>0?_:0)+T[m];if(x+=p.left+p.right,C+=p.top+p.bottom,(o={}).minW=x+(l.w-l.innerW),o.minH=C+(l.h-l.innerH),o.contentW=o.minW-l.deltaW,o.contentH=o.minH-l.deltaH,o.minW=Math.min(o.minW,l.maxW),o.minH=Math.min(o.minH,l.maxH),o.minW=Math.max(o.minW,l.startMinWidth),o.minH=Math.max(o.minH,l.startMinHeight),!l.autoResize||o.minW===l.minW&&o.minH===l.minH){var B;l.autoResize&&((o=e.layoutRect(o)).contentW=o.minW-l.deltaW,o.contentH=o.minH-l.deltaH),B="start"===t.packV?0:D>0?Math.floor(D/a):0;var M=0,P=t.flexWidths;if(P)for(d=0;d<P.length;d++)M+=P[d];else M=i;var L=E/M;for(d=0;d<i;d++)I[d]+=P?P[d]*L:L;for(f=p.top,m=0;m<a;m++){for(h=p.left,r=T[m]+B,d=0;d<i&&(c=n[S?m*i+i-1-d:m*i+d]);d++)v=c.settings,u=c.layoutRect(),s=Math.max(I[d],u.startMinWidth),u.x=h,u.y=f,"center"===(g=v.alignH||(y?y[d]||y[0]:null))?u.x=h+s/2-u.w/2:"right"===g?u.x=h+s-u.w:"stretch"===g&&(u.w=s),"center"===(g=v.alignV||(w?w[d]||w[0]:null))?u.y=f+r/2-u.h/2:"bottom"===g?u.y=f+r-u.h:"stretch"===g&&(u.h=r),c.layoutRect(u),h+=s+b,c.recalc&&c.recalc();f+=r+_}}else if(o.w=o.minW,o.h=o.minH,e.layoutRect(o),this.recalc(e),null===e._lastRect){var R=e.parent();R&&(R._lastRect=null,R.recalc())}}}),Vi=St.extend({renderHtml:function(){return this.classes.add("iframe"),this.canFocus=!1,'<iframe id="'+this._id+'" class="'+this.classes+'" tabindex="-1" src="'+(this.settings.url||"javascript:''")+'" frameborder="0"></iframe>'},src:function(e){this.getEl().src=e},html:function(e,t){var a=this,i=this.getEl().contentWindow.document.body;return i?(i.innerHTML=e,t&&t()):_.setTimeout(function(){a.html(e)}),this}}),ji=St.extend({init:function(e){this._super(e),this.classes.add("widget").add("infobox"),this.canFocus=!1},severity:function(e){this.classes.remove("error"),this.classes.remove("warning"),this.classes.remove("success"),this.classes.add(e)},help:function(e){this.state.set("help",e)},renderHtml:function(){var e=this.classPrefix;return'<div id="'+this._id+'" class="'+this.classes+'"><div id="'+this._id+'-body">'+this.encode(this.state.get("text"))+'<button role="button" tabindex="-1"><i class="'+e+"ico "+e+'i-help"></i></button></div></div>'},bindStates:function(){var e=this;return e.state.on("change:text",function(t){e.getEl("body").firstChild.data=e.encode(t.value),e.state.get("rendered")&&e.updateLayoutRect()}),e.state.on("change:help",function(t){e.classes.toggle("has-help",t.value),e.state.get("rendered")&&e.updateLayoutRect()}),e._super()}}),Hi=St.extend({init:function(e){this._super(e),this.classes.add("widget").add("label"),this.canFocus=!1,e.multiline&&this.classes.add("autoscroll"),e.strong&&this.classes.add("strong")},initLayoutRect:function(){var e=this._super();return this.settings.multiline&&(ge.getSize(this.getEl()).width>e.maxW&&(e.minW=e.maxW,this.classes.add("multiline")),this.getEl().style.width=e.minW+"px",e.startMinH=e.h=e.minH=Math.min(e.maxH,ge.getSize(this.getEl()).height)),e},repaint:function(){return this.settings.multiline||(this.getEl().style.lineHeight=this.layoutRect().h+"px"),this._super()},severity:function(e){this.classes.remove("error"),this.classes.remove("warning"),this.classes.remove("success"),this.classes.add(e)},renderHtml:function(){var e,t,a=this.settings.forId,i=this.settings.html?this.settings.html:this.encode(this.state.get("text"));return!a&&(t=this.settings.forName)&&(e=this.getRoot().find("#"+t)[0])&&(a=e._id),a?'<label id="'+this._id+'" class="'+this.classes+'"'+(a?' for="'+a+'"':"")+">"+i+"</label>":'<span id="'+this._id+'" class="'+this.classes+'">'+i+"</span>"},bindStates:function(){var e=this;return e.state.on("change:text",function(t){e.innerHtml(e.encode(t.value)),e.state.get("rendered")&&e.updateLayoutRect()}),e._super()}}),Ki=nt.extend({Defaults:{role:"toolbar",layout:"flow"},init:function(e){this._super(e),this.classes.add("toolbar")},postRender:function(){return this.items().each(function(e){e.classes.add("toolbar-item")}),this._super()}}),Yi=Ki.extend({Defaults:{role:"menubar",containerCls:"menubar",ariaRoot:!0,defaults:{type:"menubutton"}}}),Qi=Wt.extend({init:function(e){this._renderOpen=!0,this._super(e),e=this.settings,this.classes.add("menubtn"),e.fixedWidth&&this.classes.add("fixed-width"),this.aria("haspopup",!0),this.state.set("menu",e.menu||this.render())},showMenu:function(e){var t,a=this;if(a.menu&&a.menu.visible()&&!1!==e)return a.hideMenu();a.menu||(t=a.state.get("menu")||[],a.classes.add("opened"),t.length?t={type:"menu",animate:!0,items:t}:(t.type=t.type||"menu",t.animate=!0),t.renderTo?a.menu=t.parent(a).show().renderTo():a.menu=d.create(t).parent(a).renderTo(),a.fire("createmenu"),a.menu.reflow(),a.menu.on("cancel",function(e){e.control.parent()===a.menu&&(e.stopPropagation(),a.focus(),a.hideMenu())}),a.menu.on("select",function(){a.focus()}),a.menu.on("show hide",function(e){e.control===a.menu&&(a.activeMenu("show"===e.type),a.classes.toggle("opened","show"===e.type)),a.aria("expanded","show"===e.type)}).fire("show")),a.menu.show(),a.menu.layoutRect({w:a.layoutRect().w}),a.menu.repaint(),a.menu.moveRel(a.getEl(),a.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"]),a.fire("showmenu")},hideMenu:function(){this.menu&&(this.menu.items().each(function(e){e.hideMenu&&e.hideMenu()}),this.menu.hide())},activeMenu:function(e){this.classes.toggle("active",e)},renderHtml:function(){var e,t=this._id,a=this.classPrefix,i=this.settings.icon,n=this.state.get("text"),l="";return(e=this.settings.image)?(i="none","string"!=typeof e&&(e=window.getSelection?e[0]:e[1]),e=" style=\"background-image: url('"+e+"')\""):e="",n&&(this.classes.add("btn-has-text"),l='<span class="'+a+'txt">'+this.encode(n)+"</span>"),i=this.settings.icon?a+"ico "+a+"i-"+i:"",this.aria("role",this.parent()instanceof Yi?"menuitem":"button"),'<div id="'+t+'" class="'+this.classes+'" tabindex="-1" aria-labelledby="'+t+'"><button id="'+t+'-open" role="presentation" type="button" tabindex="-1">'+(i?'<i class="'+i+'"'+e+"></i>":"")+l+' <i class="'+a+'caret"></i></button></div>'},postRender:function(){var e=this;return e.on("click",function(t){t.control===e&&function(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1}(t.target,e.getEl())&&(e.focus(),e.showMenu(!t.aria),t.aria&&e.menu.items().filter(":visible")[0].focus())}),e.on("mouseenter",function(t){var a,i=t.control,n=e.parent();i&&n&&i instanceof Qi&&i.parent()===n&&(n.items().filter("MenuButton").each(function(e){e.hideMenu&&e!==i&&(e.menu&&e.menu.visible()&&(a=!0),e.hideMenu())}),a&&(i.focus(),i.showMenu()))}),e._super()},bindStates:function(){var e=this;return e.state.on("change:menu",function(){e.menu&&e.menu.remove(),e.menu=null}),e._super()},remove:function(){this._super(),this.menu&&this.menu.remove()}}),Gi=yt.extend({Defaults:{defaultType:"menuitem",border:1,layout:"stack",role:"application",bodyRole:"menu",ariaRoot:!0},init:function(e){if(e.autohide=!0,e.constrainToViewport=!0,"function"==typeof e.items&&(e.itemsFactory=e.items,e.items=[]),e.itemDefaults)for(var t=e.items,a=t.length;a--;)t[a]=i.extend({},e.itemDefaults,t[a]);this._super(e),this.classes.add("menu"),e.animate&&11!==se.ie&&this.classes.add("animate")},repaint:function(){return this.classes.toggle("menu-align",!0),this._super(),this.getEl().style.height="",this.getEl("body").style.height="",this},cancel:function(){this.hideAll(),this.fire("select")},load:function(){var e,t=this;function a(){t.throbber&&(t.throbber.hide(),t.throbber=null)}t.settings.itemsFactory&&(t.throbber||(t.throbber=new At(t.getEl("body"),!0),0===t.items().length?(t.throbber.show(),t.fire("loading")):t.throbber.show(100,function(){t.items().remove(),t.fire("loading")}),t.on("hide close",a)),t.requestTime=e=(new Date).getTime(),t.settings.itemsFactory(function(i){0!==i.length?t.requestTime===e&&(t.getEl().style.width="",t.getEl("body").style.width="",a(),t.items().remove(),t.getEl("body").innerHTML="",t.add(i),t.renderNew(),t.fire("loaded")):t.hide()}))},hideAll:function(){return this.find("menuitem").exec("hideMenu"),this._super()},preRender:function(){var e=this;return e.items().each(function(t){var a=t.settings;if(a.icon||a.image||a.selectable)return e._hasIcons=!0,!1}),e.settings.itemsFactory&&e.on("postrender",function(){e.settings.itemsFactory&&e.load()}),e.on("show hide",function(t){t.control===e&&("show"===t.type?_.setTimeout(function(){e.classes.add("in")},0):e.classes.remove("in"))}),e._super()}}),Ji=Qi.extend({init:function(e){var t,a,i,n,l=this;l._super(e),e=l.settings,l._values=t=e.values,t&&(void 0!==e.value&&function t(n){for(var s=0;s<n.length;s++){if(a=n[s].selected||e.value===n[s].value)return i=i||n[s].text,l.state.set("value",n[s].value),!0;if(n[s].menu&&t(n[s].menu))return!0}}(t),!a&&t.length>0&&(i=t[0].text,l.state.set("value",t[0].value)),l.state.set("menu",t)),l.state.set("text",e.text||i),l.classes.add("listbox"),l.on("select",function(t){var a=t.control;n&&(t.lastControl=n),e.multiple?a.active(!a.active()):l.value(t.control.value()),n=a})},value:function(e){return 0===arguments.length?this.state.get("value"):void 0===e?this:(this.settings.values?i.grep(this.settings.values,function(t){return t.value===e}).length>0?this.state.set("value",e):null===e&&this.state.set("value",null):this.state.set("value",e),this)},bindStates:function(){var e=this;return e.on("show",function(t){var a,i;a=t.control,i=e.value(),a instanceof Gi&&a.items().each(function(e){e.hasMenus()||e.active(e.value()===i)})}),e.state.on("change:value",function(t){var a=function e(t,a){var i;if(t)for(var n=0;n<t.length;n++){if(t[n].value===a)return t[n];if(t[n].menu&&(i=e(t[n].menu,a)))return i}}(e.state.get("menu"),t.value);a?e.text(a.text):e.text(e.settings.text)}),e._super()}}),Xi=St.extend({Defaults:{border:0,role:"menuitem"},init:function(e){var t;this._super(e),e=this.settings,this.classes.add("menu-item"),e.menu&&this.classes.add("menu-item-expand"),e.preview&&this.classes.add("menu-item-preview"),"-"!==(t=this.state.get("text"))&&"|"!==t||(this.classes.add("menu-item-sep"),this.aria("role","separator"),this.state.set("text","-")),e.selectable&&(this.aria("role","menuitemcheckbox"),this.classes.add("menu-item-checkbox"),e.icon="selected"),e.preview||e.selectable||this.classes.add("menu-item-normal"),this.on("mousedown",function(e){e.preventDefault()}),e.menu&&!e.ariaHideMenu&&this.aria("haspopup",!0)},hasMenus:function(){return!!this.settings.menu},showMenu:function(){var e,t=this,a=t.settings,i=t.parent();if(i.items().each(function(e){e!==t&&e.hideMenu()}),a.menu){(e=t.menu)?e.show():((e=a.menu).length?e={type:"menu",items:e}:e.type=e.type||"menu",i.settings.itemDefaults&&(e.itemDefaults=i.settings.itemDefaults),(e=t.menu=d.create(e).parent(t).renderTo()).reflow(),e.on("cancel",function(a){a.stopPropagation(),t.focus(),e.hide()}),e.on("show hide",function(e){e.control.items&&e.control.items().each(function(e){e.active(e.settings.selected)})}).fire("show"),e.on("hide",function(a){a.control===e&&t.classes.remove("selected")}),e.submenu=!0),e._parentMenu=i,e.classes.add("menu-sub");var n=e.testMoveRel(t.getEl(),t.isRtl()?["tl-tr","bl-br","tr-tl","br-bl"]:["tr-tl","br-bl","tl-tr","bl-br"]);e.moveRel(t.getEl(),n),e.rel=n,n="menu-sub-"+n,e.classes.remove(e._lastRel).add(n),e._lastRel=n,t.classes.add("selected"),t.aria("expanded",!0)}},hideMenu:function(){return this.menu&&(this.menu.items().each(function(e){e.hideMenu&&e.hideMenu()}),this.menu.hide(),this.aria("expanded",!1)),this},renderHtml:function(){var e,t=this._id,a=this.settings,i=this.classPrefix,n=this.state.get("text"),l=this.settings.icon,s="",r=a.shortcut,o=this.encode(a.url);function u(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c(e){var t=a.match||"";return t?e.replace(new RegExp(u(t),"gi"),function(e){return"!mce~match["+e+"]mce~match!"}):e}function d(e){return e.replace(new RegExp(u("!mce~match["),"g"),"<b>").replace(new RegExp(u("]mce~match!"),"g"),"</b>")}return l&&this.parent().classes.add("menu-has-icons"),a.image&&(s=" style=\"background-image: url('"+a.image+"')\""),r&&(r=function(e){var t,a,i={};for(i=se.mac?{alt:"&#x2325;",ctrl:"&#x2318;",shift:"&#x21E7;",meta:"&#x2318;"}:{meta:"Ctrl"},e=e.split("+"),t=0;t<e.length;t++)(a=i[e[t].toLowerCase()])&&(e[t]=a);return e.join("+")}(r)),l=i+"ico "+i+"i-"+(this.settings.icon||"none"),e="-"!==n?'<i class="'+l+'"'+s+"></i> ":"",n=d(this.encode(c(n))),o=d(this.encode(c(o))),'<div id="'+t+'" class="'+this.classes+'" tabindex="-1">'+e+("-"!==n?'<span id="'+t+'-text" class="'+i+'text">'+n+"</span>":"")+(r?'<div id="'+t+'-shortcut" class="'+i+'menu-shortcut">'+r+"</div>":"")+(a.menu?'<div class="'+i+'caret"></div>':"")+(o?'<div class="'+i+'menu-item-link">'+o+"</div>":"")+"</div>"},postRender:function(){var e=this,t=e.settings,a=t.textStyle;if("function"==typeof a&&(a=a.call(this)),a){var i=e.getEl("text");i&&(i.setAttribute("style",a),e._textStyle=a)}return e.on("mouseenter click",function(a){a.control===e&&(t.menu||"click"!==a.type?(e.showMenu(),a.aria&&e.menu.focus(!0)):(e.fire("select"),_.requestAnimationFrame(function(){e.parent().hideAll()})))}),e._super(),e},hover:function(){return this.parent().items().each(function(e){e.classes.remove("selected")}),this.classes.toggle("selected",!0),this},active:function(e){return function(e,t){var a=e._textStyle;if(a){var i=e.getEl("text");i.setAttribute("style",a),t&&(i.style.color="",i.style.backgroundColor="")}}(this,e),void 0!==e&&this.aria("checked",e),this._super(e)},remove:function(){this._super(),this.menu&&this.menu.remove()}}),Zi=Ht.extend({Defaults:{classes:"radio",role:"radio"}}),$i=St.extend({renderHtml:function(){var e=this.classPrefix;return this.classes.add("resizehandle"),"both"===this.settings.direction&&this.classes.add("resizehandle-both"),this.canFocus=!1,'<div id="'+this._id+'" class="'+this.classes+'"><i class="'+e+"ico "+e+'i-resize"></i></div>'},postRender:function(){var e=this;e._super(),e.resizeDragHelper=new st(this._id,{start:function(){e.fire("ResizeStart")},drag:function(t){"both"!==e.settings.direction&&(t.deltaX=0),e.fire("Resize",t)},stop:function(){e.fire("ResizeEnd")}})},remove:function(){return this.resizeDragHelper&&this.resizeDragHelper.destroy(),this._super()}});function en(e){var t="";if(e)for(var a=0;a<e.length;a++)t+='<option value="'+e[a]+'">'+e[a]+"</option>";return t}var tn=St.extend({Defaults:{classes:"selectbox",role:"selectbox",options:[]},init:function(e){var t=this;t._super(e),t.settings.size&&(t.size=t.settings.size),t.settings.options&&(t._options=t.settings.options),t.on("keydown",function(e){var a;13===e.keyCode&&(e.preventDefault(),t.parents().reverse().each(function(e){if(e.toJSON)return a=e,!1}),t.fire("submit",{data:a.toJSON()}))})},options:function(e){return arguments.length?(this.state.set("options",e),this):this.state.get("options")},renderHtml:function(){var e,t="";return e=en(this._options),this.size&&(t=' size = "'+this.size+'"'),'<select id="'+this._id+'" class="'+this.classes+'"'+t+">"+e+"</select>"},bindStates:function(){var e=this;return e.state.on("change:options",function(t){e.getEl().innerHTML=en(t.value)}),e._super()}});function an(e,t,a){return e<t&&(e=t),e>a&&(e=a),e}function nn(e,t,a){e.setAttribute("aria-"+t,a)}function ln(e,t){var a,i,n,l,s;"v"===e.settings.orientation?(n="top",i="height",a="h"):(n="left",i="width",a="w"),s=e.getEl("handle"),l=((e.layoutRect()[a]||100)-ge.getSize(s)[i])*((t-e._minValue)/(e._maxValue-e._minValue))+"px",s.style[n]=l,s.style.height=e.layoutRect().h+"px",nn(s,"valuenow",t),nn(s,"valuetext",""+e.settings.previewFilter(t)),nn(s,"valuemin",e._minValue),nn(s,"valuemax",e._maxValue)}var sn=St.extend({init:function(e){e.previewFilter||(e.previewFilter=function(e){return Math.round(100*e)/100}),this._super(e),this.classes.add("slider"),"v"===e.orientation&&this.classes.add("vertical"),this._minValue=F(e.minValue)?e.minValue:0,this._maxValue=F(e.maxValue)?e.maxValue:100,this._initValue=this.state.get("value")},renderHtml:function(){var e=this._id,t=this.classPrefix;return'<div id="'+e+'" class="'+this.classes+'"><div id="'+e+'-handle" class="'+t+'slider-handle" role="slider" tabindex="-1"></div></div>'},reset:function(){this.value(this._initValue).repaint()},postRender:function(){var e,t,a,i,n,l,s=this;e=s._minValue,t=s._maxValue,"v"===s.settings.orientation?(a="screenY",i="top",n="height",l="h"):(a="screenX",i="left",n="width",l="w"),s._super(),function(e,t){function a(a){var i,n;i=s.value(),i=an(i=function(e,t,a){return a*(t-e)-e}(e,t,(i+(n=e))/(t-n)+.05*a),e,t),s.value(i),s.fire("dragstart",{value:i}),s.fire("drag",{value:i}),s.fire("dragend",{value:i})}s.on("keydown",function(e){switch(e.keyCode){case 37:case 38:a(-1);break;case 39:case 40:a(1)}})}(e,t),function(e,t,r){var o,u,c,d,m;s._dragHelper=new st(s._id,{handle:s._id+"-handle",start:function(e){o=e[a],u=parseInt(s.getEl("handle").style[i],10),c=(s.layoutRect()[l]||100)-ge.getSize(r)[n],s.fire("dragstart",{value:m})},drag:function(n){var l=n[a]-o;d=an(u+l,0,c),r.style[i]=d+"px",m=e+d/c*(t-e),s.value(m),s.tooltip().text(""+s.settings.previewFilter(m)).show().moveRel(r,"bc tc"),s.fire("drag",{value:m})},stop:function(){s.tooltip().hide(),s.fire("dragend",{value:m})}})}(e,t,s.getEl("handle"))},repaint:function(){this._super(),ln(this,this.value())},bindStates:function(){var e=this;return e.state.on("change:value",function(t){ln(e,t.value)}),e._super()}}),rn=St.extend({renderHtml:function(){return this.classes.add("spacer"),this.canFocus=!1,'<div id="'+this._id+'" class="'+this.classes+'"></div>'}}),on=Qi.extend({Defaults:{classes:"widget btn splitbtn",role:"button"},repaint:function(){var e,t,a=this.getEl(),i=this.layoutRect();return this._super(),e=a.firstChild,t=a.lastChild,ve(e).css({width:i.w-ge.getSize(t).width,height:i.h-2}),ve(t).css({height:i.h-2}),this},activeMenu:function(e){ve(this.getEl().lastChild).toggleClass(this.classPrefix+"active",e)},renderHtml:function(){var e,t,a=this._id,i=this.classPrefix,n=this.state.get("icon"),l=this.state.get("text"),s=this.settings,r="";return(e=s.image)?(n="none","string"!=typeof e&&(e=window.getSelection?e[0]:e[1]),e=" style=\"background-image: url('"+e+"')\""):e="",n=s.icon?i+"ico "+i+"i-"+n:"",l&&(this.classes.add("btn-has-text"),r='<span class="'+i+'txt">'+this.encode(l)+"</span>"),t="boolean"==typeof s.active?' aria-pressed="'+s.active+'"':"",'<div id="'+a+'" class="'+this.classes+'" role="button"'+t+' tabindex="-1"><button type="button" hidefocus="1" tabindex="-1">'+(n?'<i class="'+n+'"'+e+"></i>":"")+r+'</button><button type="button" class="'+i+'open" hidefocus="1" tabindex="-1">'+(this._menuBtnText?(n?" ":"")+this._menuBtnText:"")+' <i class="'+i+'caret"></i></button></div>'},postRender:function(){var e=this.settings.onclick;return this.on("click",function(t){var a=t.target;if(t.control===this)for(;a;){if(t.aria&&"down"!==t.aria.key||"BUTTON"===a.nodeName&&-1===a.className.indexOf("open"))return t.stopImmediatePropagation(),void(e&&e.call(this,t));a=a.parentNode}}),delete this.settings.onclick,this._super()}}),un=mi.extend({Defaults:{containerClass:"stack-layout",controlClass:"stack-layout-item",endClass:"break"},isNative:function(){return!0}}),cn=mt.extend({Defaults:{layout:"absolute",defaults:{type:"panel"}},activateTab:function(e){var t;this.activeTabId&&(t=this.getEl(this.activeTabId),ve(t).removeClass(this.classPrefix+"active"),t.setAttribute("aria-selected","false")),this.activeTabId="t"+e,(t=this.getEl("t"+e)).setAttribute("aria-selected","true"),ve(t).addClass(this.classPrefix+"active"),this.items()[e].show().fire("showtab"),this.reflow(),this.items().each(function(t,a){e!==a&&t.hide()})},renderHtml:function(){var e=this,t=e._layout,a="",i=e.classPrefix;return e.preRender(),t.preRender(e),e.items().each(function(t,n){var l=e._id+"-t"+n;t.aria("role","tabpanel"),t.aria("labelledby",l),a+='<div id="'+l+'" class="'+i+'tab" unselectable="on" role="tab" aria-controls="'+t._id+'" aria-selected="false" tabIndex="-1">'+e.encode(t.settings.title)+"</div>"}),'<div id="'+e._id+'" class="'+e.classes+'" hidefocus="1" tabindex="-1"><div id="'+e._id+'-head" class="'+i+'tabs" role="tablist">'+a+'</div><div id="'+e._id+'-body" class="'+e.bodyClasses+'">'+t.renderHtml(e)+"</div></div>"},postRender:function(){var e=this;e._super(),e.settings.activeTab=e.settings.activeTab||0,e.activateTab(e.settings.activeTab),this.on("click",function(t){var a=t.target.parentNode;if(a&&a.id===e._id+"-head")for(var i=a.childNodes.length;i--;)a.childNodes[i]===t.target&&e.activateTab(i)})},initLayoutRect:function(){var e,t,a;t=(t=ge.getSize(this.getEl("head")).width)<0?0:t,a=0,this.items().each(function(e){t=Math.max(t,e.layoutRect().minW),a=Math.max(a,e.layoutRect().minH)}),this.items().each(function(e){e.settings.x=0,e.settings.y=0,e.settings.w=t,e.settings.h=a,e.layoutRect({x:0,y:0,w:t,h:a})});var i=ge.getSize(this.getEl("head")).height;return this.settings.minWidth=t,this.settings.minHeight=a+i,(e=this._super()).deltaH+=i,e.innerH=e.h-e.deltaH,e}}),dn=St.extend({init:function(e){var t=this;t._super(e),t.classes.add("textbox"),e.multiline?t.classes.add("multiline"):(t.on("keydown",function(e){var a;13===e.keyCode&&(e.preventDefault(),t.parents().reverse().each(function(e){if(e.toJSON)return a=e,!1}),t.fire("submit",{data:a.toJSON()}))}),t.on("keyup",function(e){t.state.set("value",e.target.value)}))},repaint:function(){var e,t,a,i,n,l=0;e=this.getEl().style,t=this._layoutRect,n=this._lastRepaintRect||{};var s=document;return!this.settings.multiline&&s.all&&(!s.documentMode||s.documentMode<=8)&&(e.lineHeight=t.h-l+"px"),i=(a=this.borderBox).left+a.right+8,l=a.top+a.bottom+(this.settings.multiline?8:0),t.x!==n.x&&(e.left=t.x+"px",n.x=t.x),t.y!==n.y&&(e.top=t.y+"px",n.y=t.y),t.w!==n.w&&(e.width=t.w-i+"px",n.w=t.w),t.h!==n.h&&(e.height=t.h-l+"px",n.h=t.h),this._lastRepaintRect=n,this.fire("repaint",{},!1),this},renderHtml:function(){var e,t,a=this.settings;return e={id:this._id,hidefocus:"1"},i.each(["rows","spellcheck","maxLength","size","readonly","min","max","step","list","pattern","placeholder","required","multiple"],function(t){e[t]=a[t]}),this.disabled()&&(e.disabled="disabled"),a.subtype&&(e.type=a.subtype),(t=ge.create(a.multiline?"textarea":"input",e)).value=this.state.get("value"),t.className=this.classes.toString(),t.outerHTML},value:function(e){return arguments.length?(this.state.set("value",e),this):(this.state.get("rendered")&&this.state.set("value",this.getEl().value),this.state.get("value"))},postRender:function(){var e=this;e.getEl().value=e.state.get("value"),e._super(),e.$el.on("change",function(t){e.state.set("value",t.target.value),e.fire("change",t)})},bindStates:function(){var e=this;return e.state.on("change:value",function(t){e.getEl().value!==t.value&&(e.getEl().value=t.value)}),e.state.on("change:disabled",function(t){e.getEl().disabled=t.value}),e._super()},remove:function(){this.$el.off(),this._super()}}),mn=function(){return{Selector:Ne,Collection:ze,ReflowQueue:Ye,Control:et,Factory:d,KeyboardNavigation:at,Container:nt,DragHelper:st,Scrollable:dt,Panel:mt,Movable:Ce,Resizable:ht,FloatPanel:yt,Window:Ot,MessageBox:qt,Tooltip:Dt,Widget:St,Progress:It,Notification:Bt,Layout:Ft,AbsoluteLayout:Ut,Button:Wt,ButtonGroup:jt,Checkbox:Ht,ComboBox:Yt,ColorBox:Qt,PanelButton:Gt,ColorButton:Xt,ColorPicker:$t,Path:ta,ElementPath:aa,FormItem:ia,Form:na,FieldSet:la,FilePicker:ui,FitLayout:ci,FlexLayout:di,FlowLayout:mi,FormatControls:Ui,GridLayout:Wi,Iframe:Vi,InfoBox:ji,Label:Hi,Toolbar:Ki,MenuBar:Yi,MenuButton:Qi,MenuItem:Xi,Throbber:At,Menu:Gi,ListBox:Ji,Radio:Zi,ResizeHandle:$i,SelectBox:tn,Slider:sn,Spacer:rn,SplitButton:on,StackLayout:un,TabPanel:cn,TextBox:dn,DropZone:ea,BrowseButton:Vt}},hn=function(e){e.ui?i.each(mn(),function(t,a){e.ui[a]=t}):e.ui=mn()};i.each(mn(),function(e,t){d.add(t,e)}),hn(window.tinymce?window.tinymce:{}),t.add("modern",function(e){return Ui.setup(e),zt(e)})}()},"Q+KN":function(e,t){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),a=function(e){return e.getParam("code_dialog_width",600)},i=function(e){return e.getParam("code_dialog_height",Math.min(t.DOM.getViewPort().h-200,500))},n=function(e,t){e.focus(),e.undoManager.transact(function(){e.setContent(t)}),e.selection.setCursorLocation(),e.nodeChanged()},l=function(e){return e.getContent({source_view:!0})},s=function(e){var t=a(e),s=i(e);e.windowManager.open({title:"Source code",body:{type:"textbox",name:"code",multiline:!0,minWidth:t,minHeight:s,spellcheck:!1,style:"direction: ltr; text-align: left"},onSubmit:function(t){n(e,t.data.code)}}).find("#code").value(l(e))},r=function(e){e.addCommand("mceCodeEditor",function(){s(e)})},o=function(e){e.addButton("code",{icon:"code",tooltip:"Source code",onclick:function(){s(e)}}),e.addMenuItem("code",{icon:"code",text:"Source code",onclick:function(){s(e)}})};e.add("code",function(e){return r(e),o(e),{}})}()},QKAS:function(e,t,a){e.exports=a.p+"static/img/deviceLeft.1c808f9.png"},RBDX:function(e,t){var a=null,i=null;e.exports={Debounce:function(e,t){var i=t||500;return function(){var t=this,n=arguments;a&&clearTimeout(a),a=setTimeout(function(){e.apply(t,n),a=null},i)}},Throttle:function(e,t){var a=void 0,n=t||500;return function(){var t=this,l=arguments,s=+new Date;a&&s-a<n?(clearTimeout(i),i=setTimeout(function(){a=s,e.apply(t,l)},n)):(a=s,e.apply(this,l))}}}},RcVv:function(e,t){},SDFn:function(e,t){},SL46:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAALy0lEQVRo3sWbe3BcVRnAf9+9+0iyebUpTVrTBjqhD4RCKUIbLIzAkJaHrQJVQKvj+AJqxRFHh5EBVPAPFSkUdSAMAlpRUQpFWyjIqDyUFtoKpE0faZu+mzTvJtnHPcc/7m727t5HNm3EM9Ppmb1nz/1+93ue726EMR7q8VJTI3OBBSCzEc4EqdVQAVKOAEgvSI8WDoDsBPkPwj818k7kC+3WWMojYwLVVBoFliAs1cjl2DDp3QWduZVkbiloxxwBbc97EF7VyB9A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vOokgQgm4mA50WHhYrwZCuFridggkEMxvMNrCYp7ZORzhCTQnK96h0e0kISU6BdkkV/UkOfofLQl6LF6V/traIdLFBOHm/qAKkmbDy8mDHBsrf2xDUJ1U26h2KajWpsE5B1wS5yb6wWENsitCTXDxEuakzkcUQIXZNWqGmwWd2oiFC6eaCoHmTqnuqFEl18cdcVm5VskVa7XaT0kvJ3LbsHZWAHLcvfHGt2s8XojO8If3GMq+emF+jCB6/jitSLMhJFInMrkazDKxBzRoG6zBh/2PZWJ9C6a7yMJid6JIiaVkJfFWCnXvPKnGvZSeLewlpbeqxLext/ZqoBeSk+MWaXxUZ7Qvh4dqANqTMqzuO1aicP6zDLnLoHC/BZeHM+rlmUFT5NVQHddPjMtMdSUJDooPf7JT5ZUKKsLkDIaHWs+mHWxH1gHyvxhqTfMRye2NIm+zx0y41Pt3SENL5+qCBMLukaLbuEMTbOLjtvJ7s4oNuO7ffKfErUhzi2rg44vnh2Nr2J7UbQI6rMVJaE+niV8htYc34UUihnSMadao6u7dIIfJEtYik3ipxx6wiPrLy+HuHFDn/Uqc72s7+f1/ZrgA5SY1xlZV+tybKnVWVdtQJiYeuQxREj8QZxVDDhenpTs/ljCfaClK7BKSth20P62KARBlKMUBigEQZB6KMnJiExACJMg5EGTkxCYkBEmUciDJyYhISAyTKOBBl5MQkJAZIlHEgysiJSUgMkCjjQJSRE5OQGCBRxoEoIycmIVEGyP8BkqlBGSwaeCAAAAAASUVORK5CYII="},ZKrL:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__=__webpack_require__("mvHQ"),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_keys__=__webpack_require__("fZjL"),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_keys___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_keys__),__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_get_iterator__=__webpack_require__("BO1k"),__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_get_iterator___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_get_iterator__),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty__=__webpack_require__("bOdI"),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty__);__webpack_exports__.a={filters:{ellipsis:function(e){return e?e.length>8?e.slice(0,8)+"...":e:""}},data:function(){var e;return e={data24:[],id:this.$route.params.id,effect:0,zanwu:"/images/expertDiagnosis/zanwu.png",realTimeArr:[],imgArr:["../../../../static/images/weather/3.png","../../../../static/images/weather/4.png","../../../../static/images/weather/5.png","../../../../static/images/weather/6.png","../../../../static/images/weather/7.png"],uptime:"",isShow:!0,value:!0,manualArr:[],dialogVisible:!1,switchName:"",index:null,timingArr:[],thresholdArr:[],setFactorShow:!1,tableDataA:[],activeName:"sim",simLoading:!1,equip_id:"",dialogVisibleA:!1,maxValIpt:"",minValIpt:"",radio:"1",offShow:!0,dialogVisibleB:!1,options:[{value:"0",label:"0"},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"23",label:"23"}]},__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"value",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"optionsA",[{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"23",label:"23"},{value:"24",label:"24"}]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"valueA",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"simCodeVisible",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"phoneNumberA",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"phoneNumber",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"simLoading",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"activeName","sim"),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"tableData",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"idoptions",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"idvalue",this.$route.params.id),e},watch:{dialogVisible:function(e){0==e&&(this.switchName="",this.index=null)},dialogVisibleA:function(e){0==e&&(this.maxValIpt="",this.minValIpt="",this.index=null)},radio:function(e){1==e?this.offShow=!0:2==e&&(this.offShow=!1)}},mounted:function(){this.realTimeAxios()},methods:{backtrack:function(){this.$router.go(-1)},get24List:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_day_data",data:this.qs.stringify({device_id:e})}).then(function(e){var a=new Array,i=e.data.data.data;if(t.data24=[],i&&i.length>0){var n=!0,l=!1,s=void 0;try{for(var r,o=__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_get_iterator___default()(i);!(n=(r=o.next()).done);n=!0){var u=r.value,c=u.ekey;c=c.split("e"),a.push({e:c[1],name:u.enum[1],min:"-99.99"==u.min?"N/A":u.min,mintime:u.mintime,max:"-99.99"==u.max?"N/A":u.max,maxtime:u.maxtime})}}catch(e){l=!0,s=e}finally{try{!n&&o.return&&o.return()}finally{if(l)throw s}}t.data24=a}})},switchChu:function(){this.effect,new Swiper(".swiper-container",{speed:1500,slidesPerView:10,spaceBetween:30,observer:!0,centeredSlides:!0})},refresh:function(){0==document.getElementsByClassName("el-message").length&&this.$message.success("指令下发成功"),this.realTimeAxios()},realTimeAxios:function(){var e=this,t=this.id,a=this.qs.stringify({device_id:t});this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_status",data:a}).then(function(t){if(""==t.data.message){var a=new Array,i=t.data.data.conf,n=t.data.data.dat,l=e.imgArr,s=0;for(var r in i)i[r]&&s++;if(s>l.length)for(var o=s-l.length,u=e.imgArr,c=0;c<o;c++)u.push(u[c]);else u=l;for(var d in i)if(i[d]){var m=i[d].split("#"),h={};h.e="通道"+d.slice(1),h.name=m[0],h.unit=m[1],h.ekey=d;var f=d.replace("e","");for(var v in h.img=u[f-1],n)if(d==v){var p=n[v].split("#");h.tu=p[1],h.num="-99.99"==p[0]?"N/A":p[0],h.icon=p[1],"117"==h.icon&&(h.num=0==h.num?"无":"有"),a.push(h)}s++}a=a.sort(function(e,t){return e.e.slice(2)-t.e.slice(2)}),e.uptime=t.data.data.dat.uptime;var g=[];for(f=0;f<a.length;f++)void 0!==a[f].icon&&void 0!==a[f].tu&&g.push(a[f]);e.realTimeArr=g,e.realTimeArr,e.thresholdValAxios()}}).catch(function(t){e.$message.error("获取数据失败!")})},thresholdValAxios:function thresholdValAxios(){var _this3=this,that=this,id=that.id,postData=that.qs.stringify({device_id:id});that.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_switch_status",data:postData}).then(function(res){var qxz_switch=res.data.data.qxz_switch,switch_name=res.data.data.switch_name,timing_list=res.data.data.timing_list,auto_list=res.data.data.auto_list;if(""!==qxz_switch){qxz_switch=eval("("+qxz_switch+")"),switch_name=eval("("+switch_name+")");var arr=[];for(var i in qxz_switch)255!==qxz_switch[i].JK&&arr.push({aisle:"通道"+(qxz_switch[i].JK+1),status:0!=qxz_switch[i].status,ekey:qxz_switch[i].JK+1,name:""==switch_name[i].name?"开关"+i:switch_name[i].name,way:i});_this3.manualArr=arr}if(""!==timing_list){timing_list=eval("("+timing_list+")");var arr=[];for(var i in timing_list)if(255!==timing_list[i].JK){if(32767!==timing_list[i].Duration&&32767!==timing_list[i].StartTime)var a=!0;else var a=!1;arr.push({aisle:"通道"+(timing_list[i].JK+1),duration:timing_list[i].Duration,startTime:timing_list[i].StartTime,name:""==switch_name[i].name?"开关"+i:switch_name[i].name,status:a,JK:timing_list[i].JK})}_this3.timingArr=arr}if(""!==auto_list){auto_list=eval("("+auto_list+")");var arr=[];for(var i in auto_list)if(255!==auto_list[i].JK){if(32767!==auto_list[i].upper&&32767!==auto_list[i].lower)var a=!0,txt=auto_list[i].upper,txtA=auto_list[i].lower;else var a=!1,txt=auto_list[i].upper,txtA=auto_list[i].lower;if(255!==auto_list[i].method&&0==auto_list[i].method)var b="低于下限开启,高于下限关闭",a=auto_list[i].method;else if(255!==auto_list[i].method&&1==auto_list[i].method)var b="低于下限关闭,高于下限开启",a=auto_list[i].method;arr.push({status:a,ekey:_this3.realTimeArr[i].name,unit:_this3.realTimeArr[i].unit,maxVal:txt,minVal:txtA,aisle:"通道"+(auto_list[i].JK+1),name:(""==switch_name[i].name?"开关":switch_name[i].name)+i,method:b,methodNum:a,JK:auto_list[i].JK,eKeyNum:auto_list[i].eKey})}_this3.thresholdArr=arr}""==res.data.data.qxz_switch?(_this3.isShow=!0,_this3.get24List(_this3.id)):""!==res.data.data.qxz_switch&&(_this3.isShow=!1)}).catch(function(e){})},tableRowClassName:function(e){var t=e.row,a=e.rowIndex;t.index=a},renderHeader:function(e,t){return e("div",[e("span",t.column.label),e("i",{class:"el-icon-edit",style:"color:#409eff;margin-left:5px;"})])},dataWarning:function(){this.simCodeVisible=!0,this.warningAxios(this.id)},warningAxios:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_early_warning",data:this.qs.stringify({device_id:e,status:"see",alarm:""})}).then(function(e){var a=e.data.data.conf,i=[],n=__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_keys___default()(a).length;if(e.data.data.alarm){var l=e.data.data.alarm;t.phoneNumber=l}else{l={};t.phoneNumber=l}for(var s=1;s<=n;s++){var r="e"+s;if(a[r]){var o=a[r].split("#")[0];if(l.dat)if(l.dat[r])var u=l.dat[r].split("#")[0],c=l.dat[r].split("#")[1];else u=0,c="";i.push({ekey:r,name:o,type:u,alarmVal:c})}}t.tableData=i}).catch(function(e){})},confirmPhone:function(){var e=this,t=this.phoneNumberA;if(""==t)alert("手机号码不能为空"),this.$message({message:"手机号码不能为空",type:"warning",duration:1500});else if(/^[1][345789]\d{9}$/.test(t)&&/^[1-9]\d*$/.test(t)&&11===t.length){for(var a={},i={},n=0;n<this.tableData.length;n++){var l=1==this.tableData[n].type?1:0,s=void 0==this.tableData[n].alarmVal?"":this.tableData[n].alarmVal;i["e"+(n+1)]=l+"#"+s}a.dat=i,a.tel=this.phoneNumberA,a.equip_id=this.equip_id;var r=this.qs.stringify({device_id:this.id,status:"save",alarm:__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default()(a)});this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_early_warning",data:r}).then(function(t){0==t.data.data.code?0==document.getElementsByClassName("el-message").length&&e.$message({message:"设置成功",type:"success",duration:1500}):0==document.getElementsByClassName("el-message").length&&e.$message({message:"设置失败",type:"error",duration:1500})}).catch(function(t){0==document.getElementsByClassName("el-message").length&&e.$message({message:"设置失败",type:"error",duration:1500})})}else 0==document.getElementsByClassName("el-message").length&&this.$message({message:"手机号码不符合规范",type:"warning",duration:1500})},switchChangeFin:function(e,t){this.tableData[e].type=t},amendFactor:function(e){var t=this,a=e.name,i=e.type,n=e.ekey;a!==e.metadata?this.$confirm("此操作将修改该要素名称, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e=t.qs.stringify({device_id:t.id,status:"save",ekey:n,conf:a});t.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_element_conf",data:e}).then(function(e){0==e.data.data.code?(0==document.getElementsByClassName("el-message").length&&t.$message({type:"success",message:"修改成功!"}),t.realTimeAxios(),t.setFactorShow=!1):0==document.getElementsByClassName("el-message").length&&t.$message({type:"error",message:"修改失败!"}),document.getElementsByClassName("el-message").length}).catch(function(e){0==document.getElementsByClassName("el-message").length&&t.$message({type:"error",message:"修改失败!"})})}).catch(function(){t.tableDataA[e.index].name=i,0==document.getElementsByClassName("el-message").length&&t.$message({type:"info",message:"已取消修改"})}):e.metadata},setFactor:function(){this.factorAxios(),this.setFactorShow=!0},factorAxios:function(){var e=this,t=e.qs.stringify({device_id:this.id,status:"see",ekey:"",conf:""});e.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_element_conf",data:t}).then(function(t){for(var a=t.data.data.conf,i=t.data.data.default,n=[],l=__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_keys___default()(a).length,s=1;s<=l;s++){var r="e"+s;if(a[r]){var o=a[r].split("#")[0],u=i[r].split("#")[0];n.push({ekey:r,name:o,type:u,metadata:o})}}e.tableDataA=n}).catch(function(e){})},ceshiAxios:function(){var e=this,t=this.id,a=this.qs.stringify({device_id:t,JK:"1",eKey:"1",upper:"32767",lower:"300",method:"1"});this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_value_mqtt",data:a}).then(function(t){0==t.data.data.code?0==document.getElementsByClassName("el-message").length&&e.$message({message:"下发成功",type:"success",duration:1500}):0==document.getElementsByClassName("el-message").length&&e.$message({message:"下发失败",type:"error",duration:1500})}).catch(function(t){0==document.getElementsByClassName("el-message").length&&e.$message({message:"修改失败",type:"error",duration:1500})})},amendName:function(e,t){this.switchName=e,this.index=t,this.dialogVisible=!0},addrName:function(){var e=this,t=this;if(""!==t.switchName)if(t.manualArr[t.index].name==t.switchName)0==document.getElementsByClassName("el-message").length&&this.$message({message:"当前开关名称未改变!",type:"warning",duration:1500});else{var a=t.qs.stringify({device_id:t.id,way:t.manualArr[t.index].way,sw_name:t.switchName});t.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_switch_name",data:a}).then(function(a){a.data.data.code,0==a.data.data.code?(0==document.getElementsByClassName("el-message").length&&e.$message({message:"修改成功",type:"success",duration:1500}),t.thresholdValAxios()):1==a.data.data.code&&0==document.getElementsByClassName("el-message").length&&e.$message({message:"修改错误,请重试",type:"error",duration:1500}),t.dialogVisible=!1}).catch(function(e){})}else this.$message({message:"输入框不能为空!",type:"warning",duration:1500})},switchingState:function(e,t){var a=this,i=this,n=1==e.status?"开启":"关闭";this.$confirm("是否"+n+"?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var l=i.qs.stringify({device_id:i.id,status:"set",way:e.way,switch:"开启"==n?1:0});i.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_mqtt_set",data:l}).then(function(e){e.data,0==e.data.data.code?0==document.getElementsByClassName("el-message").length&&a.$message({message:"下发成功",type:"success",duration:1500}):(0==document.getElementsByClassName("el-message").length&&a.$message({message:"下发失败",type:"error",duration:1500}),a.manualArr[t].status=!a.manualArr[t].status)})}).catch(function(){e.status=1!=e.status,0==document.getElementsByClassName("el-message").length&&a.$message({type:"info",message:"已取消下发",duration:1500})})},setValuepopUp:function(e,t){this.index=t,this.minValIpt=e.minVal,this.maxValIpt=e.maxVal,1==e.methodNum?this.radio="1":0==e.methodNum&&(this.radio="2"),this.dialogVisibleA=!0},setValueAdd:function(){var e=this,t=this;if(""!==t.minValIpt&&""!==t.maxValIpt)if(t.thresholdArr[t.index].maxVal==t.maxValIpt&&t.thresholdArr[t.index].minVal==t.minValIpt)0==document.getElementsByClassName("el-message").length&&this.$message({message:"当前最大值最小值未改变!",type:"warning",duration:1500});else{var a=t.qs.stringify({JK:t.thresholdArr[t.index].JK,eKey:t.thresholdArr[t.index].eKeyNum,upper:t.maxValIpt,lower:t.minValIpt,method:"1"==t.radio?1:"0",device_id:t.id});t.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_value_mqtt",data:a}).then(function(a){0==a.data.data.code?(0==document.getElementsByClassName("el-message").length&&e.$message({message:"下发成功",type:"success",duration:1500}),t.thresholdValAxios()):1==a.data.data.code&&0==document.getElementsByClassName("el-message").length&&e.$message({message:"下发错误,请重试",type:"error",duration:1500}),t.dialogVisibleA=!1}).catch(function(e){})}else 0==document.getElementsByClassName("el-message").length&&this.$message({message:"最大值或最小值不能为空!",type:"warning",duration:1500})},setThreshold:function(e,t){this.index=t,this.value=e.startTime,this.valueA=e.duration,this.dialogVisibleB=!0},setThresholdAdd:function(){var e=this,t=this,a=t.qs.stringify({device_id:t.id,JK:t.timingArr[t.index].JK,starttime:t.value,endtime:t.valueA});t.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_timing_mqtt",data:a}).then(function(a){0==a.data.data.code?(0==document.getElementsByClassName("el-message").length&&e.$message({message:"下发成功",type:"success",duration:1500}),t.thresholdValAxios()):1==a.data.data.code&&0==document.getElementsByClassName("el-message").length&&e.$message({message:"下发错误,请重试",type:"error",duration:1500}),t.dialogVisibleB=!1}).catch(function(e){})},remoteMethod:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_page",data:this.qs.stringify({device_id:e})}).then(function(e){e.data.data.ids,t.idoptions=[],e.data.data.ids.forEach(function(e,a){t.idoptions.push({value:a,label:e.equip_id})})})},idchange:function(e){this.id=this.idoptions[e].label,this.realTimeAxios(),this.get24List(this.id)}}}},"a+v4":function(e,t){},aENX:function(e,t){},aKhk:function(e,t){},cBJi:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAAIgElEQVRo3s2be4xU1R3HP9+zr0Z2eQ0LSHdlgaWL1KIUwbK8bGhEYnVQEic1vBLausBGm4a0pg9DKoFUDREEY2p11GUhaZtK27SUtmsbq2jrUh5GyzNdeVpcWHZZKs+Z/nFnd+bOfcy9M4vtTU527v2dc+7vc36/8zvnnnNW9PGVuD9WBExCzAAmII1FVAEDEP0RAF2ITsRxxCHEPqS/ArtM89ZrfamP+gRqXqwMmId4EJiNGGDVrvQblJGy79P5OhEtiJ8htplXtl76nwImorEI4hFgBSJiqzEsnFN2BrEJaYN5acuZTxUwEY3dAHwP8ShQ7lAOeQPZ7hUEvhuxHrHGvLDlP9cdMBGN3Qs8ixhpq6FQOEeeLLnhKKLRPL/lN9cFMBGNfQZ4Cmi0KRIULtt1PVNO+SbESrOp+WKfASaisRuB3wITnVAppRzPrgtcz+/diHvMs82nCgZMRGOfA3YANYHgPF2zEDhXWRtijlnffDBvwEQ0Vgu8hRhqy+0XKV2t1+dwYADpNGKaWbf5cGjARDRWBbzpGkzCwLlZuBA445AdRUwzT28+HhgwEY2VAW8jJgaG8x/AC4cz3jJZfXKqntzsmBgYDwOu+7+AMxnJpZxSCTERw7pAFkxEY1HEtj6B83NbLzgTzKpyd9l5WtP0K0/ARDRWgdgPjAg1xpFD+VxyQ27wbDj3MicRN2t1U5e7i4rH8ocTvhHPKG0dg4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iH8Dh0n/W0Grlsf79N8K/guPLMQYkiqfkwAAAABJRU5ErkJggg=="},cYmm:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__=__webpack_require__("pFYg"),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray__=__webpack_require__("d7EF"),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray__),__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray__=__webpack_require__("Gu7T"),__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray__),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_json_stringify__=__webpack_require__("mvHQ"),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_json_stringify___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_json_stringify__),__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__=__webpack_require__("Dd8w"),__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__),__WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_object_values__=__webpack_require__("gRE1"),__WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_object_values___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_object_values__),__WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_object_keys__=__webpack_require__("fZjL"),__WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_object_keys___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_object_keys__),__WEBPACK_IMPORTED_MODULE_7_highcharts__=__webpack_require__("504h"),__WEBPACK_IMPORTED_MODULE_7_highcharts___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_highcharts__),__WEBPACK_IMPORTED_MODULE_8_vue_jsonp__=__webpack_require__("jHlk"),__WEBPACK_IMPORTED_MODULE_9__static_js_cbd_pest_library__=__webpack_require__("GUvg");__webpack_exports__.a={components:{},data:function(){return{imgBL:.4,imgWidth:1240,imgHeight:930,aaa:"",downX:0,downY:0,ctx:"",rectWidth:0,rectHeight:0,showType:1,canvas:null,atime:null,wrap:null,rectTag:!1,flag:!1,isNullLabel:!1,isShibieimg:!1,isShibie:!1,delIndex:"",img:"",img2:"",totalRect:[],titleList:[],initDataList:[],indentify_result:[],labelList:[],showLabelList:[],rgxzBeforeList:[],bearListLabel:__WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_object_keys___default()(__WEBPACK_IMPORTED_MODULE_9__static_js_cbd_pest_library__.a),bearListValue:__WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_object_values___default()(__WEBPACK_IMPORTED_MODULE_9__static_js_cbd_pest_library__.a),equipStatusObj:{ids:this.$route.query.data.ids,identify_model:this.$route.query.identify_model,ids_list:this.$route.query.ids_list,ids_index:this.$route.query.index},imgIdsIndex:0,colorList:[],isDisabled:!1}},computed:{},watch:{aaa:function(e){e.length,e.length>10&&(this.$message.error("长度不可超过10个"),this.aaa=e.slice(0,10),this.aaa)},isShibie:function(e){this.isNullLabel,this.isShibieimg}},methods:{setColors:function(){for(var e="0123456789abcdef",t="#",a=1;a<=6;a++)t+=e[parseInt(Math.random()*e.length)];return t},clearData:function(){this.showType=1,this.isNullLabel=!1,this.isShibieimg=!1,this.isShibie=!1,this.delIndex="",this.img="",this.img2="",this.totalRect=[],this.titleList=[],this.initDataList=[],this.indentify_result=[],this.labelList=[],this.showLabelList=[],this.rgxzBeforeList=[],this.colorList=[]},cut:function(e){this.clearAll(1),this.clearAll(2),this.clearData(),"上"===e?(this.imgIdsIndex--,this.imgIdsIndex,this.equipStatusObj.ids_list[this.imgIdsIndex]):"下"===e&&(this.imgIdsIndex++,this.imgIdsIndex,this.equipStatusObj.ids_list[this.imgIdsIndex]),this.getDataList()},mousedown:function(e){1!==this.showType&&(this.atime=(new Date).getTime(),this.flag=!0,this.downX=e.offsetX,this.downY=e.offsetY,this.mousemove(e))},mousemove:function(e){if(1!==this.showType&&this.flag){if(this.downX-e.offsetX>0||this.downY-e.offsetY>0)return;if(this.rectWidth=Math.abs(this.downX-e.offsetX),this.rectHeight=Math.abs(this.downY-e.offsetY),this.rectWidth<10||this.rectHeight<10)return this.rectWidth=0,void(this.rectHeight=0);this.clear(),this.redrawAll(),this.drawRect(this.downX,this.downY,this.rectWidth,this.rectHeight,"red")}},mouseup:function(){1!==this.showType&&(this.flag=!1,(new Date).getTime()-this.atime>150?this.rectTag=!1:this.rectTag=!0,(this.rectWidth||this.rectHeight)&&(this.totalRect.push({beforex:this.downX,beforey:this.downY,rectW:this.rectWidth,rectH:this.rectHeight,j_id:""+this.downX+this.downY+this.rectWidth+this.rectHeight,flag_id:"2",color:"red"}),this.createdDom(this.rectWidth,this.downX,this.downY,""+this.downX+this.downY+this.rectWidth+this.rectHeight,"","2","red"),this.delIndex=""+this.downX+this.downY+this.rectWidth+this.rectHeight))},createdDom:function(e,t,a,i,n,l,s){var r=document.createElement("span");r.innerText=n||"",r.className="innerSpan",r.id="span"+i,r.setAttribute("key","span"+i),r.style.cssText="font-size: 14px;width:90px;left:"+t+"px;top:"+(a-20)+"px;color:"+s+";","1"!==l?(r.className="innerSpan",r.appendChild(this.createdDomI(i,s))):r.className="innerSpanJiQi",this.wrap.appendChild(r)},createdDomI:function(e,t){var a=this,i=document.createElement("i");return i.innerText="✖",i.className="innerSpanI",i.id="i"+e,i.setAttribute("data-idx",e),i.setAttribute("key","i"+e),i.style.color=t,i.onclick=function(e){var t=e.target;a.delIndex=t.dataset.idx,a.del()},i},hightColor:function(e){var t=this;if(this.clear(),e){var a=this.totalRect.findIndex(function(t){return t.j_id===e});a>=0&&(this.totalRect[a].isHigh=!0,document.getElementById("span"+e).style.color="red",document.getElementById("i"+e).style.color="red")}this.totalRect.map(function(e){var a=t.colorList.find(function(t){return t.tag===e.text}),i=a?a.color:"#ffff00";return e.isHigh&&(i="red"),e.isHigh=!1,document.getElementById("span"+e.j_id).style.color=i,document.getElementById("i"+e.j_id).style.color=i,__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({},e,{color:i})}).forEach(function(e){t.drawRect(e.beforex,e.beforey,e.rectW,e.rectH,e.color)})},findRect:function(e){var t=this;this.rectTag&&this.totalRect.map(function(a){e.offsetX-a.beforex>a.rectW||e.offsetX<a.beforex||e.offsetY-a.beforey>a.rectH||e.offsetY<a.beforey||(t.delIndex=a.j_id,t.hightColor(a.j_id))})},redrawAll:function(){var e=this,t=this.totalRect.map(function(t){var a=e.colorList.find(function(e){return e.tag===t.text}),i=a?a.color:"#ffff00";return document.getElementById("span"+t.j_id).style.color=i,document.getElementById("i"+t.j_id).style.color=i,__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({},t,{color:i})});t.length>0&&t.forEach(function(t){e.drawRect(t.beforex,t.beforey,t.rectW,t.rectH,t.color)})},drawRect:function(e,t,a,i,n){this.ctx.beginPath(),this.ctx.strokeStyle=n||"#850a1e",this.ctx.lineWidth=2,this.ctx.strokeRect(e,t,a,i)},clear:function(){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)},del:function(){var e=this;if(0!=this.totalRect.length&&this.delIndex){var t=this.totalRect.findIndex(function(t){return t.j_id===e.delIndex});this.ctx.clearRect(this.totalRect[t].beforex-2,this.totalRect[t].beforey-2,this.totalRect[t].rectW+4,this.totalRect[t].rectH+4),this.totalRect.splice(t,1);var a=document.getElementById("span"+this.delIndex),i=document.getElementById("i"+this.delIndex);i&&a.removeChild(i),a&&this.wrap.removeChild(a),this.redrawAll()}},sure:function(){var e=this;if(0!=this.totalRect.length&&this.delIndex){var t=this.totalRect.findIndex(function(t){return t.j_id===e.delIndex});this.totalRect[t].text=this.aaa;var a=document.getElementById("span"+this.totalRect[t].j_id);a.innerText=this.aaa,a.appendChild(this.createdDomI(this.totalRect[t].j_id));this.totalRect[t].j_id;var i=this.colorList;i&&i.length?i.findIndex(function(t){return t.tag===e.aaa})<0&&this.colorList.push({tag:this.aaa,color:this.setColors()}):this.colorList.push({tag:this.aaa,color:this.setColors()}),this.hightColor()}this.aaa="",this.delIndex=""},sub:function(){var e=this;if(0==this.totalRect.every(function(e){return e.text}))this.$message("请点选绘制框内部,在右侧输入标记名称");else{var t=this.totalRect.filter(function(e){return"2"===e.flag_id});this.isDisabled=!0,this.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.cbdphoto_receive",data:this.qs.stringify({img_id:this.equipStatusObj.ids_list[this.imgIdsIndex],mark:__WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_json_stringify___default()(t),device_type:"cbd",identify_model:this.equipStatusObj.identify_model})}).then(function(t){e.$message.success("提交完成"),e.clearAll(2),e.getDataList(),e.$nextTick(function(){setTimeout(function(){e.isDisabled=!1},700)})}).catch(function(t){e.$nextTick(function(){setTimeout(function(){e.isDisabled=!1},700)})})}this.delIndex=""},clearAll:function(e){this.clearDom(1),this.clearDom(2),2===e&&(this.totalRect.splice(0,this.totalRect.length),this.initDataList.splice(0,this.initDataList.length)),this.labelList.splice(0,this.labelList.length)},bidui:function(e,t){if(e.length!==t.length)return!1;var a=e.map(function(e){return e.j_id}),i=t.map(function(e){return e.j_id});return a.filter(function(e){return i.includes(e)}).length===e.length},goBackPage:function(){var e=this;this.bidui(this.initDataList,this.totalRect)?this.$router.go(-1):this.$confirm("关闭此页面将不保留操作记录,如已提交则可忽略,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$message({type:"success",message:"已关闭"}),e.$router.go(-1)}).catch(function(){e.$message({type:"info",message:"已取消"})})},getJqData:function(e,t){var a=this,i=[];return e&&e.length&&e.forEach(function(e){var n=__WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_object_keys___default()(e)[0],l=__WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_object_values___default()(e)[0],s=__WEBPACK_IMPORTED_MODULE_9__static_js_cbd_pest_library__.a[n],r=l[0]*a.imgBL,o=l[1]*a.imgBL,u=(l[2]-l[0])*a.imgBL,c=(l[3]-l[1])*a.imgBL,d={beforex:r,beforey:o,rectW:u,rectH:c,j_id:""+r+o+u+c,text:s,flag_id:t};i.push(d)}),i},getCZNum:function(e){var t=this,a={};e.forEach(function(e){__WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_object_keys___default()(a).includes(e.text)?a[""+e.text]++:a[""+e.text]=1});var i=__WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_object_keys___default()(a),n=__WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_object_values___default()(a);return i.map(function(e,a){var i=t.bearListValue.findIndex(function(t){return t===e});return i>=0&&t.bearListLabel[i],{label:e,value:n[a]}})},huixian:function(){var e=this,t=this.showLabelList,a=this.colorList;if(a&&a.length)for(var i=function(i){var n=t[i].label;a.findIndex(function(e){return e.tag===n})<0&&e.colorList.push({tag:n,color:e.setColors()})},n=0;n<t.length;n++)i(n);else this.colorList=t.map(function(t){return{tag:t.label,color:e.setColors()}});var l=[];(l=1===this.showType?this.labelList.map(function(t){var a=e.colorList.find(function(e){return e.tag===t.text}),i=a?a.color:"#ffff00";return __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({},t,{color:i})}):this.totalRect.map(function(t){var a=e.colorList.find(function(e){return e.tag===t.text}),i=a?a.color:"#ffff00";return __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({},t,{color:i})}))&&l.length&&l.forEach(function(t){e.drawRect(t.beforex,t.beforey,t.rectW,t.rectH,t.color),t.text,t.color,e.createdDom(t.rectW,t.beforex,t.beforey,t.j_id,t.text,t.flag_id,t.color)})},resetShiBie:function resetShiBie(){var _this12=this,encrypt=new JSEncrypt,str="-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC6m92fXUrccS4SoLg4W4jPRNua\n4BcRk4ldLcqPuQpD2Mds2+hw+Gi+0MUnshF/r/DTcCJgkt7rtoY9EB6/XJ6MFw14\nwhhESFie/lZUWRsk8M89Rkr8m5rwmBl+uLAd5LopyshFqKTBXeT2ytHP1JCQLPBO\n34Fy4/yEz4qEzkzBuwIDAQAB\n-----END PUBLIC KEY-----";encrypt.setPublicKey(str);var time=+new Date,str2="YuNfEi"+time+"YuNfEi",encrypted=encrypt.encrypt(str2),loading=this.$loading({lock:!0,text:"拼命加载中,请耐心等待",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),postData=this.qs.stringify({img_id:this.equipStatusObj.ids_list[this.imgIdsIndex],ret:"again",device_type:"cbd",identify_model:this.equipStatusObj.identify_model,sign:encrypted});this.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_discern",data:postData}).then(function(res){if(_this12.clearAll(1),_this12.$nextTick(function(){loading.close()}),_this12.$message.success("重新识别成功"),res.data.data&&res.data.data.label){var _labelList,labelListTag=[],_totalRect,_initDataList;if(res.data.data.label&&(labelListTag=eval("("+res.data.data.label+")")),(_labelList=_this12.labelList).push.apply(_labelList,__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray___default()(_this12.getJqData(labelListTag,"1"))),res.data.data.mark,_this12.showType=1,0==_this12.totalRect.length)(_totalRect=_this12.totalRect).push.apply(_totalRect,__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray___default()(_this12.getJqData(labelListTag,"2"))),(_initDataList=_this12.initDataList).push.apply(_initDataList,__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray___default()(_this12.getJqData(labelListTag,"2")));_this12.showLabelList=_this12.getCZNum(_this12.labelList),_this12.huixian(),""!=res.data.data.label&&(_this12.isNullLabel=!1),_this12.isShibie=!1}else _this12.$message.error(res.data.message),1==_this12.isShibieimg&&(_this12.isShibie=!0)})},getDataList:function getDataList(){var _this13=this,postData=this.qs.stringify({img_id:this.equipStatusObj.ids_list[this.imgIdsIndex],cmd:"cbd",identify_model:this.equipStatusObj.identify_model});this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.forecast_system.device_photo_details",data:postData}).then(function(res){if(""!==res.data.data.addr){_this13.img=res.data.data.addr;var currentImg=new Image;currentImg.src=_this13.img,currentImg.onload=function(){if(currentImg.width>=5e3?_this13.imgBL=.25:currentImg.width>=4e3?_this13.imgBL=.31:currentImg.width<4e3&&(_this13.imgBL=.4),_this13.imgWidth=currentImg.width*_this13.imgBL,_this13.imgHeight=currentImg.height*_this13.imgBL,_this13.canvas.width=_this13.imgWidth,_this13.canvas.height=_this13.imgHeight,res.data.data){var _labelList2,_rgxzBeforeList,labelListTag=[];if(res.data.data.label&&(labelListTag=eval("("+res.data.data.label+")")),(_labelList2=_this13.labelList).push.apply(_labelList2,__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray___default()(_this13.getJqData(labelListTag,"1"))),res.data.data.mark.length,""!==res.data.data.mark&&res.data.data.mark.length>0){var _totalRect2,_initDataList2;_this13.showType=2,""!==res.data.data.indentify_photo?(_this13.img2=res.data.data.indentify_photo,_this13.isShibieimg=!0,""==res.data.data.label?(_this13.indentify_result=res.data.data.indentify_result,2==_this13.showType?_this13.isShibie=!1:_this13.isShibie=!0,_this13.isNullLabel=!0):(_this13.isNullLabel=!1,_this13.isShibie=!1)):(_this13.isShibieimg=!1,_this13.isShibie=!1);var mark=res.data.data.mark;(_totalRect2=_this13.totalRect).push.apply(_totalRect2,__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray___default()(mark)),(_initDataList2=_this13.initDataList).push.apply(_initDataList2,__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray___default()(mark)),_this13.getText(_this13.totalRect),_this13.showLabelList=_this13.getData2()}else{var _totalRect3,_initDataList3;if(_this13.showType=1,""!==res.data.data.indentify_photo?(_this13.img2=res.data.data.indentify_photo,_this13.isShibieimg=!0,""==res.data.data.label?(_this13.indentify_result=res.data.data.indentify_result,2==_this13.showType?_this13.isShibie=!1:_this13.isShibie=!0,_this13.isNullLabel=!0):(_this13.isNullLabel=!1,_this13.isShibie=!1)):(_this13.isShibieimg=!1,_this13.isShibie=!1),(_totalRect3=_this13.totalRect).push.apply(_totalRect3,__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray___default()(_this13.getJqData(labelListTag,"2"))),(_initDataList3=_this13.initDataList).push.apply(_initDataList3,__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray___default()(_this13.getJqData(labelListTag,"2"))),1==_this13.isShibie){var sum=[],No="",items=_this13.indentify_result.split("#");for(var j in items){var dat=items[j].split(",");sum.push({label:__WEBPACK_IMPORTED_MODULE_9__static_js_cbd_pest_library__.a[dat[0]],value:dat[1],No:[dat[0]].toString()})}_this13.showLabelList=sum,_this13.showLabelList}else _this13.showLabelList=_this13.getCZNum(_this13.labelList)}(_rgxzBeforeList=_this13.rgxzBeforeList).push.apply(_rgxzBeforeList,__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray___default()(_this13.totalRect)),_this13.totalRect,_this13.showLabelList,_this13.colorList,_this13.huixian()}else res.data.data&&_this13.getData(res.data.data.indentify_result)}}else _this13.$message.error("暂无图片")})},getData:function(e){var t=e.split("#");this.showLabelList=t.map(function(e){var t=e.split(","),a=__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray___default()(t,2),i=a[0],n=a[1];return{label:__WEBPACK_IMPORTED_MODULE_9__static_js_cbd_pest_library__.a[i],value:n}})},getText:function(e){this.titleList=e.map(function(e){return e.text})},getNum:function(){return this.titleList.reduce(function(e,t){return e[t]=e[t]+1||1,e},{})},getData2:function(){var e=this.getNum(this.titleList),t=[];for(var a in e){var i={label:a,value:e[a]};t.push(i)}return t},changeShowType:function(e){var t;if(1==e)if(this.isNullLabel&&(this.isShibie=!0),this.isShibie){var a=[],i=this.indentify_result.split("#");for(var n in i){var l=i[n].split(",");a.push({label:__WEBPACK_IMPORTED_MODULE_9__static_js_cbd_pest_library__.a[l[0]],value:l[1],No:[l[0]].toString()})}this.showLabelList=a}else this.showLabelList=this.getCZNum(this.labelList);else this.rgxzBeforeList.splice(0,this.rgxzBeforeList.length),(t=this.rgxzBeforeList).push.apply(t,__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray___default()(this.totalRect)),this.getText(this.totalRect),this.showLabelList=this.getData2(),this.isNullLabel&&(this.isShibie=!1);this.clearDom(e),this.huixian(),this.delIndex=""},clearDom:function(e){var t=this;this.clear(),2===e?this.labelList.forEach(function(e){if("1"===e.flag_id){t.delIndex=e.j_id;var a=document.getElementById("span"+t.delIndex),i=document.getElementById("i"+t.delIndex);i&&a.removeChild(i),a&&t.wrap.removeChild(a)}}):1===e&&this.totalRect.forEach(function(e){if("2"===e.flag_id){t.delIndex=e.j_id;var a=document.getElementById("span"+t.delIndex),i=document.getElementById("i"+t.delIndex);i&&a.removeChild(i),a&&t.wrap.removeChild(a)}}),this.delIndex=""},qingkong:function(){var e=this;this.$confirm("将重置为机器识别结果,确定执行?",{confirmButtonText:"确定",cancelButtonText:"取消",closeOnClickModal:!1,type:"warning"}).then(function(){var t;e.clearDom(1),e.totalRect.splice(0,e.totalRect.length);var a=e.labelList.map(function(e){return __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({},e,{flag_id:"2"})});e.clear(),(t=e.totalRect).push.apply(t,__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_toConsumableArray___default()(a)),e.redrawAll(),e.huixian(),e.delIndex=""}).catch(function(){e.$message({type:"info",message:"已取消"})})}},mounted:function(){this.imgIdsIndex=Number(this.equipStatusObj.ids_index),this.imgIdsIndex,__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(this.imgIdsIndex),this.canvas=this.$refs.myCanvas,this.ctx=this.canvas.getContext("2d"),this.wrap=this.$refs.wrap,this.getDataList()}}},d16v:function(e,t){},"d6/u":function(e,t){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t="[-'\\.‘’․﹒'.]",a="[:··״‧︓﹕:]",i="[±+*/,;;։،؍٬߸⁄︐︔﹐﹔,;]",n="[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",l="\\r",s="\\n",r="[\v\f…\u2028\u2029]",o="[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿‌‍⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-゙゚︦]",u="[­؀-؃۝܏឴឵‎‏‪-‮⁠-⁤-\ufeff-]",c="[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",d="[=_‿⁀⁔︳︴﹍-﹏_∀-⋿<>]",m="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]",h={characterIndices:{ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},SETS:[new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),new RegExp(t),new RegExp(a),new RegExp(i),new RegExp(n),new RegExp(l),new RegExp(s),new RegExp(r),new RegExp(o),new RegExp(u),new RegExp(c),new RegExp(d),new RegExp("@")],EMPTY_STRING:"",PUNCTUATION:new RegExp("^"+m+"$"),WHITESPACE:/^\s+$/},f=function(e,t,a){var i,n;if(!e)return 0;if(a=a||e,void 0!==e.length){for(i=0,n=e.length;i<n;i++)if(!1===t.call(a,e[i],i,e))return 0}else for(i in e)if(e.hasOwnProperty(i)&&!1===t.call(a,e[i],i,e))return 0;return 1},v=function(e,t){var a=[];return f(e,function(i,n){a.push(t(i,n,e))}),a},p=h.SETS,g=h.characterIndices.OTHER,b=function(e){var t,a,i=g,n=p.length;for(t=0;t<n;++t)if((a=p[t])&&a.test(e)){i=t;break}return i},_=function(e){var t,a,i=(t=b,a={},function(e){if(a[e])return a[e];var i=t(e);return a[e]=i,i});return v(e.split(""),i)},y=h.characterIndices,w=function(e,t){var a,i,n=e[t],l=e[t+1];return!(t<0||t>e.length-1&&0!==t||n===y.ALETTER&&l===y.ALETTER||(i=e[t+2],n===y.ALETTER&&(l===y.MIDLETTER||l===y.MIDNUMLET||l===y.AT)&&i===y.ALETTER||(a=e[t-1],(n===y.MIDLETTER||n===y.MIDNUMLET||l===y.AT)&&l===y.ALETTER&&a===y.ALETTER||!(n!==y.NUMERIC&&n!==y.ALETTER||l!==y.NUMERIC&&l!==y.ALETTER)||(n===y.MIDNUM||n===y.MIDNUMLET)&&l===y.NUMERIC&&a===y.NUMERIC||n===y.NUMERIC&&(l===y.MIDNUM||l===y.MIDNUMLET)&&i===y.NUMERIC||n===y.EXTEND||n===y.FORMAT||a===y.EXTEND||a===y.FORMAT||l===y.EXTEND||l===y.FORMAT||n===y.CR&&l===y.LF||n!==y.NEWLINE&&n!==y.CR&&n!==y.LF&&l!==y.NEWLINE&&l!==y.CR&&l!==y.LF&&(n===y.KATAKANA&&l===y.KATAKANA||l===y.EXTENDNUMLET&&(n===y.ALETTER||n===y.NUMERIC||n===y.KATAKANA||n===y.EXTENDNUMLET)||n===y.EXTENDNUMLET&&(l===y.ALETTER||l===y.NUMERIC||l===y.KATAKANA)||n===y.AT))))},x=h.EMPTY_STRING,C=h.WHITESPACE,A=h.PUNCTUATION,k=function(e){return"http"===e||"https"===e},E=function(e,t,a){var i=function(e,t){var a;for(a=t;a<e.length;++a){var i=e.charAt(a);if(C.test(i))break}return a}(t,a+1),n=t.substring(a+1,i);return"://"===n.substr(0,3)?{word:e+n,index:i}:{word:e,index:a}},D=function(e,t){return function(e,t){var a,i,n,l=0,s=_(e),r=s.length,o=[],u=[];for(t||(t={}),t.ignoreCase&&(e=e.toLowerCase()),i=t.includePunctuation,n=t.includeWhitespace;l<r;++l)if(a=e.charAt(l),o.push(a),w(s,l)){if((o=o.join(x))&&(n||!C.test(o))&&(i||!A.test(o)))if(k(o)){var c=E(o,e,l);u.push(c.word),l=c.index}else u.push(o);o=[]}return u}(e.replace(/\ufeff/g,""),t)},S=function(e){return D(function(e){return e.removed?"":e.getBody().innerText}(e)).length},I=function(e){return{getCount:function(){return S(e)}}},T=tinymce.util.Tools.resolve("tinymce.util.Delay"),B=tinymce.util.Tools.resolve("tinymce.util.I18n"),M=function(e){var t=function(e){return B.translate(["{0} words",S(e)])},a=function(){e.theme.panel.find("#wordcount").text(t(e))};e.on("init",function(){var i=e.theme.panel&&e.theme.panel.find("#statusbar")[0],n=T.debounce(a,300);i&&T.setEditorTimeout(e,function(){i.insert({type:"label",name:"wordcount",text:t(e),classes:"wordcount",disabled:e.settings.readonly},0),e.on("setcontent beforeaddundo undo redo keyup",n)},0)})};e.add("wordcount",function(e){return M(e),I(e)})}()},eYtY:function(e,t){},ehgR:function(e,t){},fil7:function(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CRQLnmdh8JfCBwDqn9rQCOZ3NeT/9W8D9FgzOBqRDLlgAAAABJRU5ErkJggg=="},hCNC:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__=__webpack_require__("mvHQ"),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_keys__=__webpack_require__("fZjL"),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_keys___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_keys__),__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_get_iterator__=__webpack_require__("BO1k"),__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_get_iterator___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_get_iterator__),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty__=__webpack_require__("bOdI"),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty__);__webpack_exports__.a={filters:{ellipsis:function(e){return e?e.length>8?e.slice(0,8)+"...":e:""}},data:function(){var e;return e={data24:[],id:this.$route.params.id,effect:0,zanwu:"/images/expertDiagnosis/zanwu.png",realTimeArr:[],imgArr:["../../../../static/images/weather/3.png","../../../../static/images/weather/4.png","../../../../static/images/weather/5.png","../../../../static/images/weather/6.png","../../../../static/images/weather/7.png"],uptime:"",isShow:!0,value:!0,manualArr:[],dialogVisible:!1,switchName:"",index:null,timingArr:[],thresholdArr:[],setFactorShow:!1,tableDataA:[],activeName:"sim",simLoading:!1,equip_id:"",dialogVisibleA:!1,maxValIpt:"",minValIpt:"",radio:"1",offShow:!0,dialogVisibleB:!1,options:[{value:"0",label:"0"},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"23",label:"23"}]},__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"value",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"optionsA",[{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"23",label:"23"},{value:"24",label:"24"}]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"valueA",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"simCodeVisible",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"phoneNumberA",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"phoneNumber",""),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"simLoading",!1),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"activeName","sim"),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"tableData",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"idoptions",[]),__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_defineProperty___default()(e,"idvalue",this.$route.params.id),e},watch:{dialogVisible:function(e){0==e&&(this.switchName="",this.index=null)},dialogVisibleA:function(e){0==e&&(this.maxValIpt="",this.minValIpt="",this.index=null)},radio:function(e){1==e?this.offShow=!0:2==e&&(this.offShow=!1)}},mounted:function(){this.realTimeAxios()},methods:{backtrack:function(){this.$router.go(-1)},get24List:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_day_data",data:this.qs.stringify({device_id:e})}).then(function(e){var a=new Array,i=e.data.data.data;if(t.data24=[],i&&i.length>0){var n=!0,l=!1,s=void 0;try{for(var r,o=__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_get_iterator___default()(i);!(n=(r=o.next()).done);n=!0){var u=r.value,c=u.ekey;c=c.split("e"),a.push({e:c[1],name:u.enum[1],min:"-99.99"==u.min?"N/A":u.min,mintime:u.mintime,max:"-99.99"==u.max?"N/A":u.max,maxtime:u.maxtime})}}catch(e){l=!0,s=e}finally{try{!n&&o.return&&o.return()}finally{if(l)throw s}}t.data24=a}})},switchChu:function(){this.effect,new Swiper(".swiper-container",{speed:1500,slidesPerView:10,spaceBetween:30,observer:!0,centeredSlides:!0})},refresh:function(){0==document.getElementsByClassName("el-message").length&&this.$message.success("指令下发成功"),this.realTimeAxios()},realTimeAxios:function(){var e=this,t=this.id,a=this.qs.stringify({device_id:t});this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_status",data:a}).then(function(t){if(""==t.data.message){var a=new Array,i=t.data.data.conf,n=t.data.data.dat,l=e.imgArr,s=0;for(var r in i)i[r]&&s++;if(s>l.length)for(var o=s-l.length,u=e.imgArr,c=0;c<o;c++)u.push(u[c]);else u=l;for(var d in i)if(i[d]){var m=i[d].split("#"),h={};h.e="通道"+d.slice(1),h.name=m[0],h.unit=m[1],h.ekey=d;var f=d.replace("e","");for(var v in h.img=u[f-1],n)if(d==v){var p=n[v].split("#");h.tu=p[1],h.num="-99.99"==p[0]?"N/A":p[0],h.icon=p[1],"117"==h.icon&&(h.num=0==h.num?"无":"有"),a.push(h)}s++}a=a.sort(function(e,t){return e.e.slice(2)-t.e.slice(2)}),e.uptime=t.data.data.dat.uptime;var g=[];for(f=0;f<a.length;f++)void 0!==a[f].icon&&void 0!==a[f].tu&&g.push(a[f]);e.realTimeArr=g,e.realTimeArr,e.thresholdValAxios()}}).catch(function(t){0==document.getElementsByClassName("el-message").length&&e.$message.error("获取数据失败!")})},thresholdValAxios:function thresholdValAxios(){var _this3=this,that=this,id=that.id,postData=that.qs.stringify({device_id:id});that.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_switch_status",data:postData}).then(function(res){var qxz_switch=res.data.data.qxz_switch,switch_name=res.data.data.switch_name,timing_list=res.data.data.timing_list,auto_list=res.data.data.auto_list;if(""!==qxz_switch){qxz_switch=eval("("+qxz_switch+")"),switch_name=eval("("+switch_name+")");var arr=[];for(var i in qxz_switch)255!==qxz_switch[i].JK&&arr.push({aisle:"通道"+(qxz_switch[i].JK+1),status:0!=qxz_switch[i].status,ekey:qxz_switch[i].JK+1,name:""==switch_name[i].name?"开关"+i:switch_name[i].name,way:i});_this3.manualArr=arr}if(""!==timing_list){timing_list=eval("("+timing_list+")");var arr=[];for(var i in timing_list)if(255!==timing_list[i].JK){if(32767!==timing_list[i].Duration&&32767!==timing_list[i].StartTime)var a=!0;else var a=!1;arr.push({aisle:"通道"+(timing_list[i].JK+1),duration:timing_list[i].Duration,startTime:timing_list[i].StartTime,name:""==switch_name[i].name?"开关"+i:switch_name[i].name,status:a,JK:timing_list[i].JK})}_this3.timingArr=arr}if(""!==auto_list){auto_list=eval("("+auto_list+")");var arr=[];for(var i in auto_list)if(255!==auto_list[i].JK){if(32767!==auto_list[i].upper&&32767!==auto_list[i].lower)var a=!0,txt=auto_list[i].upper,txtA=auto_list[i].lower;else var a=!1,txt=auto_list[i].upper,txtA=auto_list[i].lower;if(255!==auto_list[i].method&&0==auto_list[i].method)var b="低于下限开启,高于下限关闭",a=auto_list[i].method;else if(255!==auto_list[i].method&&1==auto_list[i].method)var b="低于下限关闭,高于下限开启",a=auto_list[i].method;arr.push({status:a,ekey:_this3.realTimeArr[i].name,unit:_this3.realTimeArr[i].unit,maxVal:txt,minVal:txtA,aisle:"通道"+(auto_list[i].JK+1),name:(""==switch_name[i].name?"开关":switch_name[i].name)+i,method:b,methodNum:a,JK:auto_list[i].JK,eKeyNum:auto_list[i].eKey})}_this3.thresholdArr=arr}""==res.data.data.qxz_switch?(_this3.isShow=!0,_this3.get24List(_this3.id)):""!==res.data.data.qxz_switch&&(_this3.isShow=!1)}).catch(function(e){})},tableRowClassName:function(e){var t=e.row,a=e.rowIndex;t.index=a},renderHeader:function(e,t){return e("div",[e("span",t.column.label),e("i",{class:"el-icon-edit",style:"color:#409eff;margin-left:5px;"})])},dataWarning:function(){this.simCodeVisible=!0,this.warningAxios(this.id)},warningAxios:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_early_warning",data:this.qs.stringify({device_id:e,status:"see",alarm:""})}).then(function(e){var a=e.data.data.conf,i=[],n=__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_keys___default()(a).length;if(e.data.data.alarm){var l=e.data.data.alarm;t.phoneNumber=l}else{l={};t.phoneNumber=l}for(var s=1;s<=n;s++){var r="e"+s;if(a[r]){var o=a[r].split("#")[0];if(l.dat)if(l.dat[r])var u=l.dat[r].split("#")[0],c=l.dat[r].split("#")[1];else u=0,c="";i.push({ekey:r,name:o,type:u,alarmVal:c})}}t.tableData=i}).catch(function(e){})},confirmPhone:function(){var e=this,t=this.phoneNumberA;if(""==t)alert("手机号码不能为空"),0==document.getElementsByClassName("el-message").length&&this.$message({message:"手机号码不能为空",type:"warning",duration:1500});else if(/^[1][345789]\d{9}$/.test(t)&&/^[1-9]\d*$/.test(t)&&11===t.length){for(var a={},i={},n=0;n<this.tableData.length;n++){var l=1==this.tableData[n].type?1:0,s=void 0==this.tableData[n].alarmVal?"":this.tableData[n].alarmVal;i["e"+(n+1)]=l+"#"+s}a.dat=i,a.tel=this.phoneNumberA,a.equip_id=this.equip_id;var r=this.qs.stringify({device_id:this.id,status:"save",alarm:__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default()(a)});this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_early_warning",data:r}).then(function(t){0==t.data.data.code?0==document.getElementsByClassName("el-message").length&&e.$message({message:"设置成功",type:"success",duration:1500}):0==document.getElementsByClassName("el-message").length&&e.$message({message:"设置失败",type:"error",duration:1500})}).catch(function(t){0==document.getElementsByClassName("el-message").length&&e.$message({message:"设置失败",type:"error",duration:1500})})}else 0==document.getElementsByClassName("el-message").length&&this.$message({message:"手机号码不符合规范",type:"warning",duration:1500})},switchChangeFin:function(e,t){this.tableData[e].type=t},amendFactor:function(e){var t=this,a=e.name,i=e.type,n=e.ekey;a!==e.metadata?this.$confirm("此操作将修改该要素名称, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e=t.qs.stringify({device_id:t.id,status:"save",ekey:n,conf:a});t.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_element_conf",data:e}).then(function(e){0==e.data.data.code?(0==document.getElementsByClassName("el-message").length&&t.$message({type:"success",message:"修改成功!"}),t.realTimeAxios(),t.setFactorShow=!1):0==document.getElementsByClassName("el-message").length&&t.$message({type:"error",message:"修改失败!"})}).catch(function(e){0==document.getElementsByClassName("el-message").length&&t.$message({type:"error",message:"修改失败!"})})}).catch(function(){t.tableDataA[e.index].name=i,0==document.getElementsByClassName("el-message").length&&t.$message({type:"info",message:"已取消修改"})}):e.metadata},setFactor:function(){this.factorAxios(),this.setFactorShow=!0},factorAxios:function(){var e=this,t=e.qs.stringify({device_id:this.id,status:"see",ekey:"",conf:""});e.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_element_conf",data:t}).then(function(t){for(var a=t.data.data.conf,i=t.data.data.default,n=[],l=__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_keys___default()(a).length,s=1;s<=l;s++){var r="e"+s;if(a[r]){var o=a[r].split("#")[0],u=i[r].split("#")[0];n.push({ekey:r,name:o,type:u,metadata:o})}}e.tableDataA=n}).catch(function(e){})},ceshiAxios:function(){var e=this,t=this.id,a=this.qs.stringify({device_id:t,JK:"1",eKey:"1",upper:"32767",lower:"300",method:"1"});this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_value_mqtt",data:a}).then(function(t){0==t.data.data.code?0==document.getElementsByClassName("el-message").length&&e.$message({message:"下发成功",type:"success",duration:1500}):0==document.getElementsByClassName("el-message").length&&e.$message({message:"下发失败",type:"error",duration:1500})}).catch(function(t){0==document.getElementsByClassName("el-message").length&&e.$message({message:"修改失败",type:"error",duration:1500})})},amendName:function(e,t){this.switchName=e,this.index=t,this.dialogVisible=!0},addrName:function(){var e=this,t=this;if(""!==t.switchName)if(t.manualArr[t.index].name==t.switchName)0==document.getElementsByClassName("el-message").length&&this.$message({message:"当前开关名称未改变!",type:"warning",duration:1500});else{var a=t.qs.stringify({device_id:t.id,way:t.manualArr[t.index].way,sw_name:t.switchName});t.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_switch_name",data:a}).then(function(a){a.data.data.code,0==a.data.data.code?(0==document.getElementsByClassName("el-message").length&&e.$message({message:"修改成功",type:"success",duration:1500}),t.thresholdValAxios()):1==a.data.data.code&&0==document.getElementsByClassName("el-message").length&&e.$message({message:"修改错误,请重试",type:"error",duration:1500}),t.dialogVisible=!1}).catch(function(e){})}else 0==document.getElementsByClassName("el-message").length&&this.$message({message:"输入框不能为空!",type:"warning",duration:1500})},switchingState:function(e,t){var a=this,i=this,n=1==e.status?"开启":"关闭";this.$confirm("是否"+n+"?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var l=i.qs.stringify({device_id:i.id,status:"set",way:e.way,switch:"开启"==n?1:0});i.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_mqtt_set",data:l}).then(function(e){e.data,0==e.data.data.code?0==document.getElementsByClassName("el-message").length&&a.$message({message:"下发成功",type:"success",duration:1500}):(0==document.getElementsByClassName("el-message").length&&a.$message({message:"下发失败",type:"error",duration:1500}),a.manualArr[t].status=!a.manualArr[t].status)})}).catch(function(){e.status=1!=e.status,a.$message({type:"info",message:"已取消下发",duration:1500})})},setValuepopUp:function(e,t){this.index=t,this.minValIpt=e.minVal,this.maxValIpt=e.maxVal,1==e.methodNum?this.radio="1":0==e.methodNum&&(this.radio="2"),this.dialogVisibleA=!0},setValueAdd:function(){var e=this,t=this;if(""!==t.minValIpt&&""!==t.maxValIpt)if(t.thresholdArr[t.index].maxVal==t.maxValIpt&&t.thresholdArr[t.index].minVal==t.minValIpt)0==document.getElementsByClassName("el-message").length&&this.$message({message:"当前最大值最小值未改变!",type:"warning",duration:1500});else{var a=t.qs.stringify({JK:t.thresholdArr[t.index].JK,eKey:t.thresholdArr[t.index].eKeyNum,upper:t.maxValIpt,lower:t.minValIpt,method:"1"==t.radio?1:"0",device_id:t.id});t.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_value_mqtt",data:a}).then(function(a){0==a.data.data.code?(0==document.getElementsByClassName("el-message").length&&e.$message({message:"下发成功",type:"success",duration:1500}),t.thresholdValAxios()):1==a.data.data.code&&0==document.getElementsByClassName("el-message").length&&e.$message({message:"下发错误,请重试",type:"error",duration:1500}),t.dialogVisibleA=!1}).catch(function(e){})}else 0==document.getElementsByClassName("el-message").length&&this.$message({message:"最大值或最小值不能为空!",type:"warning",duration:1500})},setThreshold:function(e,t){this.index=t,this.value=e.startTime,this.valueA=e.duration,this.dialogVisibleB=!0},setThresholdAdd:function(){var e=this,t=this,a=t.qs.stringify({device_id:t.id,JK:t.timingArr[t.index].JK,starttime:t.value,endtime:t.valueA});t.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_timing_mqtt",data:a}).then(function(a){0==a.data.data.code?(0==document.getElementsByClassName("el-message").length&&e.$message({message:"下发成功",type:"success",duration:1500}),t.thresholdValAxios()):1==a.data.data.code&&0==document.getElementsByClassName("el-message").length&&e.$message({message:"下发错误,请重试",type:"error",duration:1500}),t.dialogVisibleB=!1}).catch(function(e){})},remoteMethod:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=weather.weather.qxz_page",data:this.qs.stringify({device_id:e})}).then(function(e){e.data.data.ids,t.idoptions=[],e.data.data.ids.forEach(function(e,a){t.idoptions.push({value:a,label:e.equip_id})})})},idchange:function(e){this.id=this.idoptions[e].label,this.realTimeAxios(),this.get24List(this.id)}}}},hqiV:function(e,t){},jIrg:function(e,t){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),a=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),i=tinymce.util.Tools.resolve("tinymce.util.VK"),n=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),l=tinymce.util.Tools.resolve("tinymce.util.Tools"),s=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),r=function(e){return e&&"BR"===e.nodeName},o=function(e){return e&&3===e.nodeType},u=function(e){return e&&/^(OL|UL|DL)$/.test(e.nodeName)},c=function(e){return e&&/^(LI|DT|DD)$/.test(e.nodeName)},d=function(e){return e&&/^(TH|TD)$/.test(e.nodeName)},m=r,h=function(e){return e.parentNode.firstChild===e},f=function(e){return e.parentNode.lastChild===e},v=function(e,t){return t&&!!e.schema.getTextBlockElements()[t.nodeName]},p=function(e,t){return e&&e.nodeName in t},g=function(e,t){return!!r(t)&&!(!e.isBlock(t.nextSibling)||r(t.previousSibling))},b=function(e,t,a){var i=e.isEmpty(t);return!(a&&e.select("span[data-mce-type=bookmark]",t).length>0)&&i},_=function(e,t){return e.isChildOf(t,e.getRoot())},y=function(e,a){var i=t.getNode(e,a);return c(e)&&o(i)?{container:i,offset:a>=e.childNodes.length?i.data.length:0}:{container:e,offset:a}},w=function(e){var t=e.cloneRange(),a=y(e.startContainer,e.startOffset);t.setStart(a.container,a.offset);var i=y(e.endContainer,e.endOffset);return t.setEnd(i.container,i.offset),t},x=s.DOM,C=function(e){var t={},a=function(a){var i,n,l;n=e[a?"startContainer":"endContainer"],l=e[a?"startOffset":"endOffset"],1===n.nodeType&&(i=x.create("span",{"data-mce-type":"bookmark"}),n.hasChildNodes()?(l=Math.min(l,n.childNodes.length-1),a?n.insertBefore(i,n.childNodes[l]):x.insertAfter(i,n.childNodes[l])):n.appendChild(i),n=i,l=0),t[a?"startContainer":"endContainer"]=n,t[a?"startOffset":"endOffset"]=l};return a(!0),e.collapsed||a(),t},A=function(e){function t(t){var a,i,n;a=n=e[t?"startContainer":"endContainer"],i=e[t?"startOffset":"endOffset"],a&&(1===a.nodeType&&(i=function(e){for(var t=e.parentNode.firstChild,a=0;t;){if(t===e)return a;1===t.nodeType&&"bookmark"===t.getAttribute("data-mce-type")||a++,t=t.nextSibling}return-1}(a),a=a.parentNode,x.remove(n),!a.hasChildNodes()&&x.isBlock(a)&&a.appendChild(x.create("br"))),e[t?"startContainer":"endContainer"]=a,e[t?"startOffset":"endOffset"]=i)}t(!0),t();var a=x.createRng();return a.setStart(e.startContainer,e.startOffset),e.endContainer&&a.setEnd(e.endContainer,e.endOffset),w(a)},k=s.DOM,E=function(e,t){var a,i=t.parentNode;"LI"===i.nodeName&&i.firstChild===t&&((a=i.previousSibling)&&"LI"===a.nodeName?(a.appendChild(t),b(e,i)&&k.remove(i)):k.setStyle(i,"listStyleType","none")),u(i)&&(a=i.previousSibling)&&"LI"===a.nodeName&&a.appendChild(t)},D=function(e,t){l.each(l.grep(e.select("ol,ul",t)),function(t){E(e,t)})},S=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),I=function(e){var t=e.selection.getStart(!0);return e.dom.getParent(t,"OL,UL,DL",T(e,t))},T=function(e,t){var a=e.dom.getParents(t,"TD,TH");return a.length>0?a[0]:e.getBody()},B={getParentList:I,getSelectedSubLists:function(e){var t=I(e),a=e.selection.getSelectedBlocks();return function(e,t){return e&&1===t.length&&t[0]===e}(t,a)?function(e){return l.grep(e.querySelectorAll("ol,ul,dl"),function(e){return u(e)})}(t):l.grep(a,function(e){return u(e)&&t!==e})},getSelectedListItems:function(e){var t=e.selection.getSelectedBlocks();return l.grep(function(e,t){var a=l.map(t,function(t){var a=e.dom.getParent(t,"li,dd,dt",T(e,t));return a||t});return S.unique(a)}(e,t),function(e){return c(e)})},getClosestListRootElm:T},M=tinymce.util.Tools.resolve("tinymce.Env"),P=s.DOM,L=function(e,t,a){var i,n,l,s=P.createFragment(),r=e.schema.getBlockElements();if(e.settings.forced_root_block&&(a=a||e.settings.forced_root_block),a&&((n=P.create(a)).tagName===e.settings.forced_root_block&&P.setAttribs(n,e.settings.forced_root_block_attrs),p(t.firstChild,r)||s.appendChild(n)),t)for(;i=t.firstChild;){var o=i.nodeName;l||"SPAN"===o&&"bookmark"===i.getAttribute("data-mce-type")||(l=!0),p(i,r)?(s.appendChild(i),n=null):a?(n||(n=P.create(a),s.appendChild(n)),n.appendChild(i)):s.appendChild(i)}return e.settings.forced_root_block?l||M.ie&&!(M.ie>10)||n.appendChild(P.create("br",{"data-mce-bogus":"1"})):s.appendChild(P.create("br")),s},R=s.DOM,N=function(e,t,a,i){var n,s,r,o,u;for(r=R.select('span[data-mce-type="bookmark"]',t),i=i||L(e,a),(n=R.createRng()).setStartAfter(a),n.setEndAfter(t),o=(s=n.extractContents()).firstChild;o;o=o.firstChild)if("LI"===o.nodeName&&e.dom.isEmpty(o)){R.remove(o);break}e.dom.isEmpty(s)||R.insertAfter(s,t),R.insertAfter(i,t),b(e.dom,a.parentNode)&&(u=a.parentNode,l.each(r,function(e){u.parentNode.insertBefore(e,a.parentNode)}),R.remove(u)),R.remove(a),b(e.dom,t)&&R.remove(t)},O=s.DOM,q=function(e,t){b(e,t)&&O.remove(t)},z=function(e,t){var a,i,n=t.parentNode;return n?(a=n.parentNode,!(n!==e.getBody()&&("DD"===t.nodeName?(O.rename(t,"DT"),0):h(t)&&f(t)?("LI"===a.nodeName?(O.insertAfter(t,a),q(e.dom,a),O.remove(n)):u(a)?O.remove(n,!0):(a.insertBefore(L(e,t),n),O.remove(n)),0):h(t)?("LI"===a.nodeName?(O.insertAfter(t,a),t.appendChild(n),q(e.dom,a)):u(a)?a.insertBefore(t,n):(a.insertBefore(L(e,t),n),O.remove(t)),0):f(t)?("LI"===a.nodeName?O.insertAfter(t,a):u(a)?O.insertAfter(t,n):(O.insertAfter(L(e,t),n),O.remove(t)),0):("LI"===a.nodeName?(n=a,i=L(e,t,"LI")):i=u(a)?L(e,t,"LI"):L(e,t),N(e,n,t,i),D(e.dom,n.parentNode),0)))):(q(e.dom,t),!0)},F=z,U=function(e){var t=B.getSelectedListItems(e);if(t.length){var a=C(e.selection.getRng()),i=void 0,n=void 0,l=B.getClosestListRootElm(e,e.selection.getStart(!0));for(i=t.length;i--;)for(var s=t[i].parentNode;s&&s!==l;){for(n=t.length;n--;)if(t[n]===s){t.splice(i,1);break}s=s.parentNode}for(i=0;i<t.length&&(z(e,t[i])||0!==i);i++);return e.selection.setRng(A(a)),e.nodeChanged(),!0}},W=function(e,t){l.each(t,function(t,a){e.setAttribute(a,t)})},V=function(e,t,a){!function(e,t,a){var i=a["list-style-type"]?a["list-style-type"]:null;e.setStyle(t,"list-style-type",i)}(e,t,a),function(e,t,a){W(t,a["list-attributes"]),l.each(e.select("li",t),function(e){W(e,a["list-item-attributes"])})}(e,t,a)},j=function(e,t,a,i){var n,l;for(n=t[a?"startContainer":"endContainer"],l=t[a?"startOffset":"endOffset"],1===n.nodeType&&(n=n.childNodes[Math.min(l,n.childNodes.length-1)]||n),!a&&m(n.nextSibling)&&(n=n.nextSibling);n.parentNode!==i;){if(v(e,n))return n;if(/^(TD|TH)$/.test(n.parentNode.nodeName))return n;n=n.parentNode}return n},H=function(e,t,a){void 0===a&&(a={});var i,s=e.selection.getRng(!0),r="LI",o=B.getClosestListRootElm(e,e.selection.getStart(!0)),c=e.dom;"false"!==c.getContentEditable(e.selection.getNode())&&("DL"===(t=t.toUpperCase())&&(r="DT"),i=C(s),l.each(function(e,t,a){for(var i,s=[],r=e.dom,o=j(e,t,!0,a),u=j(e,t,!1,a),c=[],d=o;d&&(c.push(d),d!==u);d=d.nextSibling);return l.each(c,function(t){if(v(e,t))return s.push(t),void(i=null);if(r.isBlock(t)||m(t))return m(t)&&r.remove(t),void(i=null);var l=t.nextSibling;n.isBookmarkNode(t)&&(v(e,l)||!l&&t.parentNode===a)?i=null:(i||(i=r.create("p"),t.parentNode.insertBefore(i,t),s.push(i)),i.appendChild(t))}),s}(e,s,o),function(i){var n,s;(s=i.previousSibling)&&u(s)&&s.nodeName===t&&function(e,t,a){var i=e.getStyle(t,"list-style-type"),n=a?a["list-style-type"]:"";return i===(n=null===n?"":n)}(c,s,a)?(n=s,i=c.rename(i,r),s.appendChild(i)):(n=c.create(t),i.parentNode.insertBefore(n,i),n.appendChild(i),i=c.rename(i,r)),function(e,t,a){l.each(a,function(a){var i;return e.setStyle(t,((i={})[a]="",i))})}(c,i,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),V(c,n,a),Q(e.dom,n)}),e.selection.setRng(A(i)))},K=function(e){var t=C(e.selection.getRng(!0)),a=B.getClosestListRootElm(e,e.selection.getStart(!0)),i=B.getSelectedListItems(e),n=l.grep(i,function(t){return e.dom.isEmpty(t)});i=l.grep(i,function(t){return!e.dom.isEmpty(t)}),l.each(n,function(t){b(e.dom,t)&&F(e,t)}),l.each(i,function(t){var i,n;if(t.parentNode!==e.getBody()){for(i=t;i&&i!==a;i=i.parentNode)u(i)&&(n=i);N(e,n,t),D(e.dom,n.parentNode)}}),e.selection.setRng(A(t))},Y=function(e,t,a){return function(e,t){return e&&t&&u(e)&&e.nodeName===t.nodeName}(t,a)&&function(e,t,a){return e.getStyle(t,"list-style-type",!0)===e.getStyle(a,"list-style-type",!0)}(e,t,a)&&(i=a,t.className===i.className);var i},Q=function(e,t){var a,i;if(a=t.nextSibling,Y(e,t,a)){for(;i=a.firstChild;)t.appendChild(i);e.remove(a)}if(a=t.previousSibling,Y(e,t,a)){for(;i=a.lastChild;)t.insertBefore(i,t.firstChild);e.remove(a)}},G=function(e,t,a,i,n){if(t.nodeName!==i||J(n)){var s=C(e.selection.getRng(!0));l.each([t].concat(a),function(t){!function(e,t,a,i){if(t.nodeName!==a){var n=e.rename(t,a);V(e,n,i)}else V(e,t,i)}(e.dom,t,i,n)}),e.selection.setRng(A(s))}else K(e)},J=function(e){return"list-style-type"in e},X={toggleList:function(e,t,a){var i=B.getParentList(e),n=B.getSelectedSubLists(e);a=a||{},i&&n.length>0?G(e,i,n,t,a):function(e,t,a,i){if(t!==e.getBody())if(t)if(t.nodeName!==a||J(i)){var n=C(e.selection.getRng(!0));V(e.dom,t,i),Q(e.dom,e.dom.rename(t,a)),e.selection.setRng(A(n))}else K(e);else H(e,a,i)}(e,i,t,a)},removeList:K,mergeWithAdjacentLists:Q},Z=function(e,i,n,l){var s,r,o=i.startContainer,u=i.startOffset;if(3===o.nodeType&&(n?u<o.data.length:u>0))return o;for(s=e.schema.getNonEmptyElements(),1===o.nodeType&&(o=t.getNode(o,u)),r=new a(o,l),n&&g(e.dom,o)&&r.next();o=r[n?"next":"prev2"]();){if("LI"===o.nodeName&&!o.hasChildNodes())return o;if(s[o.nodeName])return o;if(3===o.nodeType&&o.data.length>0)return o}},$=function(e,t){var a=t.childNodes;return 1===a.length&&!u(a[0])&&e.isBlock(a[0])},ee=function(e,t,a){var i,n;if(n=$(e,a)?a.firstChild:a,function(e,t){$(e,t)&&e.remove(t.firstChild,!0)}(e,t),!b(e,t,!0))for(;i=t.firstChild;)n.appendChild(i)},te=function(e,t,a){var i,n,l=t.parentNode;_(e,t)&&_(e,a)&&(u(a.lastChild)&&(n=a.lastChild),l===a.lastChild&&m(l.previousSibling)&&e.remove(l.previousSibling),(i=a.lastChild)&&m(i)&&t.hasChildNodes()&&e.remove(i),b(e,a,!0)&&e.$(a).empty(),ee(e,t,a),n&&a.appendChild(n),e.remove(t),b(e,l)&&l!==e.getRoot()&&e.remove(l))},ae=function(e,t,a,i){var n=e.dom;if(n.isEmpty(i))!function(e,t,a){e.dom.$(a).empty(),te(e.dom,t,a),e.selection.setCursorLocation(a)}(e,a,i);else{var l=C(t);te(n,a,i),e.selection.setRng(A(l))}},ie=function(e,t){var a,i,n,l=e.dom,s=e.selection,r=s.getStart(),o=B.getClosestListRootElm(e,r),u=l.getParent(s.getStart(),"LI",o);if(u){if((a=u.parentNode)===e.getBody()&&b(l,a))return!0;if(i=w(s.getRng(!0)),(n=l.getParent(Z(e,i,t,o),"LI",o))&&n!==u)return t?ae(e,i,n,u):function(e,t,a,i){var n=C(t);te(e.dom,a,i);var l=A(n);e.selection.setRng(l)}(e,i,u,n),!0;if(!n&&!t&&X.removeList(e))return!0}return!1},ne=function(e,t){return ie(e,t)||function(e,t){var a=e.dom,i=e.selection.getStart(),n=B.getClosestListRootElm(e,i),l=a.getParent(i,a.isBlock,n);if(l&&a.isEmpty(l)){var s=w(e.selection.getRng(!0)),r=a.getParent(Z(e,s,t,n),"LI",n);if(r)return e.undoManager.transact(function(){!function(e,t,a){var i=e.getParent(t.parentNode,e.isBlock,a);e.remove(t),i&&e.isEmpty(i)&&e.remove(i)}(a,l,n),X.mergeWithAdjacentLists(a,r.parentNode),e.selection.select(r,!0),e.selection.collapse(t)}),!0}return!1}(e,t)},le=function(e,t){return e.selection.isCollapsed()?ne(e,t):function(e){var t=e.selection.getStart(),a=B.getClosestListRootElm(e,t);return!!(e.dom.getParent(t,"LI,DT,DD",a)||B.getSelectedListItems(e).length>0)&&(e.undoManager.transact(function(){e.execCommand("Delete"),D(e.dom,e.getBody())}),!0)}(e)},se=function(e){e.on("keydown",function(t){t.keyCode===i.BACKSPACE?le(e,!1)&&t.preventDefault():t.keyCode===i.DELETE&&le(e,!0)&&t.preventDefault()})},re=le,oe=function(e){return{backspaceDelete:function(t){re(e,t)}}},ue=s.DOM,ce=function(e,t){var a;if(u(e)){for(;a=e.firstChild;)t.appendChild(a);ue.remove(e)}},de=function(e){var t,a,i,n,l=B.getSelectedListItems(e);if(l.length){for(var s=C(e.selection.getRng(!0)),r=0;r<l.length&&(t=l[r],a=void 0,i=void 0,n=void 0,("DT"===t.nodeName?(ue.rename(t,"DD"),1):(a=t.previousSibling)&&u(a)?(a.appendChild(t),1):a&&"LI"===a.nodeName&&u(a.lastChild)?(a.lastChild.appendChild(t),ce(t.lastChild,a.lastChild),1):(a=t.nextSibling)&&u(a)?(a.insertBefore(t,a.firstChild),1):(a=t.previousSibling)&&"LI"===a.nodeName&&(i=ue.create(t.parentNode.nodeName),(n=ue.getStyle(t.parentNode,"listStyleType"))&&ue.setStyle(i,"listStyleType",n),a.appendChild(i),i.appendChild(t),ce(t.lastChild,i),1))||0!==r);r++);return e.selection.setRng(A(s)),e.nodeChanged(),!0}},me=function(e,t){return function(){var a=e.dom.getParent(e.selection.getStart(),"UL,OL,DL");return a&&a.nodeName===t}},he=function(e){e.on("BeforeExecCommand",function(t){var a,i=t.command.toLowerCase();if("indent"===i?de(e)&&(a=!0):"outdent"===i&&U(e)&&(a=!0),a)return e.fire("ExecCommand",{command:t.command}),t.preventDefault(),!0}),e.addCommand("InsertUnorderedList",function(t,a){X.toggleList(e,"UL",a)}),e.addCommand("InsertOrderedList",function(t,a){X.toggleList(e,"OL",a)}),e.addCommand("InsertDefinitionList",function(t,a){X.toggleList(e,"DL",a)}),e.addQueryStateHandler("InsertUnorderedList",me(e,"UL")),e.addQueryStateHandler("InsertOrderedList",me(e,"OL")),e.addQueryStateHandler("InsertDefinitionList",me(e,"DL"))},fe=function(e){return e.getParam("lists_indent_on_tab",!0)},ve=function(e){fe(e)&&function(e){e.on("keydown",function(t){t.keyCode!==i.TAB||i.metaKeyPressed(t)||e.dom.getParent(e.selection.getStart(),"LI,DT,DD")&&(t.preventDefault(),t.shiftKey?U(e):de(e))})}(e),se(e)},pe=function(e,t){return function(a){var i=a.control;e.on("NodeChange",function(e){var a=function(e,t){for(var a=0;a<e.length;a++)if(t(e[a]))return a;return-1}(e.parents,d),n=-1!==a?e.parents.slice(0,a):e.parents,s=l.grep(n,u);i.active(s.length>0&&s[0].nodeName===t)})}},ge=function(e){(function(e,t){var a=e.settings.plugins?e.settings.plugins:"";return-1!==l.inArray(a.split(/[ ,]/),t)})(e,"advlist")||(e.addButton("numlist",{active:!1,title:"Numbered list",cmd:"InsertOrderedList",onPostRender:pe(e,"OL")}),e.addButton("bullist",{active:!1,title:"Bullet list",cmd:"InsertUnorderedList",onPostRender:pe(e,"UL")})),e.addButton("indent",{icon:"indent",title:"Increase indent",cmd:"Indent",onPostRender:function(e){return function(t){var a=t.control;e.on("nodechange",function(){var t=B.getSelectedListItems(e),i=t.length>0&&h(t[0]);a.disabled(i)})}}(e)})};e.add("lists",function(e){return ve(e),ge(e),he(e),oe(e)})}()},mDj6:function(e,t){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t={hasDimensions:function(e){return!1!==e.settings.image_dimensions},hasAdvTab:function(e){return!0===e.settings.image_advtab},getPrependUrl:function(e){return e.getParam("image_prepend_url","")},getClassList:function(e){return e.getParam("image_class_list")},hasDescription:function(e){return!1!==e.settings.image_description},hasImageTitle:function(e){return!0===e.settings.image_title},hasImageCaption:function(e){return!0===e.settings.image_caption},getImageList:function(e){return e.getParam("image_list",!1)},hasUploadUrl:function(e){return e.getParam("images_upload_url",!1)},hasUploadHandler:function(e){return e.getParam("images_upload_handler",!1)},getUploadUrl:function(e){return e.getParam("images_upload_url")},getUploadHandler:function(e){return e.getParam("images_upload_handler")},getUploadBasePath:function(e){return e.getParam("images_upload_base_path")},getUploadCredentials:function(e){return e.getParam("images_upload_credentials")}},a="undefined"!=typeof window?window:Function("return this;")(),i=function(e,t){return function(e,t){for(var i=void 0!==t&&null!==t?t:a,n=0;n<e.length&&void 0!==i&&null!==i;++n)i=i[e[n]];return i}(e.split("."),t)},n={getOrDie:function(e,t){var a=function(e,t){return i(e,t)}(e,t);if(void 0===a||null===a)throw e+" not available on this browser";return a}};function l(){return new(n.getOrDie("FileReader"))}var s,r=tinymce.util.Tools.resolve("tinymce.util.Promise"),o=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=tinymce.util.Tools.resolve("tinymce.util.XHR"),c=function(e,t){return Math.max(parseInt(e,10),parseInt(t,10))},d={getImageSize:function(e,t){var a=document.createElement("img");function i(e,i){a.parentNode&&a.parentNode.removeChild(a),t({width:e,height:i})}a.onload=function(){i(c(a.width,a.clientWidth),c(a.height,a.clientHeight))},a.onerror=function(){i(0,0)};var n=a.style;n.visibility="hidden",n.position="fixed",n.bottom=n.left="0px",n.width=n.height="auto",document.body.appendChild(a),a.src=e},buildListItems:function(e,t,a){return function e(a,i){return i=i||[],o.each(a,function(a){var n={text:a.text||a.title};a.menu?n.menu=e(a.menu):(n.value=a.value,t(n)),i.push(n)}),i}(e,a||[])},removePixelSuffix:function(e){return e&&(e=e.replace(/px$/,"")),e},addPixelSuffix:function(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e},mergeMargins:function(e){if(e.margin){var t=e.margin.split(" ");switch(t.length){case 1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case 2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case 3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case 4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}delete e.margin}return e},createImageList:function(e,a){var i=t.getImageList(e);"string"==typeof i?u.send({url:i,success:function(e){a(JSON.parse(e))}}):"function"==typeof i?i(a):a(i)},waitLoadImage:function(e,a,i){function n(){i.onload=i.onerror=null,e.selection&&(e.selection.select(i),e.nodeChanged())}i.onload=function(){a.width||a.height||!t.hasDimensions(e)||e.dom.setAttribs(i,{width:i.clientWidth,height:i.clientHeight}),n()},i.onerror=n},blobToDataUri:function(e){return new r(function(t,a){var i=new l;i.onload=function(){t(i.result)},i.onerror=function(){a(l.error.message)},i.readAsDataURL(e)})}},m=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),h=Object.prototype.hasOwnProperty,f=(s=function(e,t){return t},function(){for(var e=new Array(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];if(0===e.length)throw new Error("Can't merge zero objects");for(var a={},i=0;i<e.length;i++){var n=e[i];for(var l in n)h.call(n,l)&&(a[l]=s(a[l],n[l]))}return a}),v=m.DOM,p=function(e){return e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?d.removePixelSuffix(e.style.marginLeft):""},g=function(e){return e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?d.removePixelSuffix(e.style.marginTop):""},b=function(e){return e.style.borderWidth?d.removePixelSuffix(e.style.borderWidth):""},_=function(e,t){return e.hasAttribute(t)?e.getAttribute(t):""},y=function(e,t){return e.style[t]?e.style[t]:""},w=function(e){return null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName},x=function(e,t,a){e.setAttribute(t,a)},C=function(e){w(e)?function(e){var t=e.parentNode;v.insertAfter(e,t),v.remove(t)}(e):function(e){var t=v.create("figure",{class:"image"});v.insertAfter(t,e),t.appendChild(e),t.appendChild(v.create("figcaption",{contentEditable:!0},"Caption")),t.contentEditable="false"}(e)},A=function(e,t){var a=e.getAttribute("style"),i=t(null!==a?a:"");i.length>0?(e.setAttribute("style",i),e.setAttribute("data-mce-style",i)):e.removeAttribute("style")},k=function(e,t){return function(e,a,i){e.style[a]?(e.style[a]=d.addPixelSuffix(i),A(e,t)):x(e,a,i)}},E=function(e,t){return e.style[t]?d.removePixelSuffix(e.style[t]):_(e,t)},D=function(e,t){var a=d.addPixelSuffix(t);e.style.marginLeft=a,e.style.marginRight=a},S=function(e,t){var a=d.addPixelSuffix(t);e.style.marginTop=a,e.style.marginBottom=a},I=function(e,t){var a=d.addPixelSuffix(t);e.style.borderWidth=a},T=function(e,t){e.style.borderStyle=t},B=function(e){return"FIGURE"===e.nodeName},M=function(e,t){var a=document.createElement("img");return x(a,"style",t.style),(p(a)||""!==t.hspace)&&D(a,t.hspace),(g(a)||""!==t.vspace)&&S(a,t.vspace),(b(a)||""!==t.border)&&I(a,t.border),(function(e){return y(e,"borderStyle")}(a)||""!==t.borderStyle)&&T(a,t.borderStyle),e(a.getAttribute("style"))},P=function(e,t){return{src:_(t,"src"),alt:_(t,"alt"),title:_(t,"title"),width:E(t,"width"),height:E(t,"height"),class:_(t,"class"),style:e(_(t,"style")),caption:w(t),hspace:p(t),vspace:g(t),border:b(t),borderStyle:y(t,"borderStyle")}},L=function(e,t,a,i,n){a[i]!==t[i]&&n(e,i,a[i])},R=function(e,t){return function(a,i,n){e(a,n),A(a,t)}},N=function(e,t,a){var i=P(e,a);L(a,i,t,"caption",function(e,t,a){return C(e)}),L(a,i,t,"src",x),L(a,i,t,"alt",x),L(a,i,t,"title",x),L(a,i,t,"width",k(0,e)),L(a,i,t,"height",k(0,e)),L(a,i,t,"class",x),L(a,i,t,"style",R(function(e,t){return x(e,"style",t)},e)),L(a,i,t,"hspace",R(D,e)),L(a,i,t,"vspace",R(S,e)),L(a,i,t,"border",R(I,e)),L(a,i,t,"borderStyle",R(T,e))},O=function(e,t){var a=e.dom.styles.parse(t),i=d.mergeMargins(a),n=e.dom.styles.parse(e.dom.styles.serialize(i));return e.dom.styles.serialize(n)},q=function(e){var t=e.selection.getNode(),a=e.dom.getParent(t,"figure.image");return a?e.dom.select("img",a)[0]:t&&("IMG"!==t.nodeName||t.getAttribute("data-mce-object")||t.getAttribute("data-mce-placeholder"))?null:t},z=function(e,t){var a=e.dom,i=a.getParent(t.parentNode,function(t){return e.schema.getTextBlockElements()[t.nodeName]});return i?a.split(i,t):t},F=function(e){var t=q(e);return t?P(function(t){return O(e,t)},t):{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:""}},U=function(e,t){var a=function(e,t){var a=document.createElement("img");if(N(e,f(t,{caption:!1}),a),x(a,"alt",t.alt),t.caption){var i=v.create("figure",{class:"image"});return i.appendChild(a),i.appendChild(v.create("figcaption",{contentEditable:!0},"Caption")),i.contentEditable="false",i}return a}(function(t){return O(e,t)},t);e.dom.setAttrib(a,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(a.outerHTML);var i=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(i,"data-mce-id",null),B(i)){var n=z(e,i);e.selection.select(n)}else e.selection.select(i)},W=function(e,t){var a=q(e);a?t.src?function(e,t){var a=q(e);if(N(function(t){return O(e,t)},t,a),function(e,t){e.dom.setAttrib(t,"src",t.getAttribute("src"))}(e,a),B(a.parentNode)){var i=a.parentNode;z(e,i),e.selection.select(a.parentNode)}else e.selection.select(a),d.waitLoadImage(e,t,a)}(e,t):function(e,t){if(t){var a=e.dom.is(t.parentNode,"figure.image")?t.parentNode:t;e.dom.remove(a),e.focus(),e.nodeChanged(),e.dom.isEmpty(e.getBody())&&(e.setContent(""),e.selection.setCursorLocation())}}(e,a):t.src&&U(e,t)},V=function(e,t){t.find("#style").each(function(a){var i=M(function(t){return O(e,t)},f({src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:""},t.toJSON()));a.value(i)})},j={makeTab:function(e){return{title:"Advanced",type:"form",pack:"start",items:[{label:"Style",name:"style",type:"textbox",onchange:function(e){return function(a){var i=e.dom,n=a.control.rootControl;if(t.hasAdvTab(e)){var l=n.toJSON(),s=i.parseStyle(l.style);n.find("#vspace").value(""),n.find("#hspace").value(""),((s=d.mergeMargins(s))["margin-top"]&&s["margin-bottom"]||s["margin-right"]&&s["margin-left"])&&(s["margin-top"]===s["margin-bottom"]?n.find("#vspace").value(d.removePixelSuffix(s["margin-top"])):n.find("#vspace").value(""),s["margin-right"]===s["margin-left"]?n.find("#hspace").value(d.removePixelSuffix(s["margin-right"])):n.find("#hspace").value("")),s["border-width"]?n.find("#border").value(d.removePixelSuffix(s["border-width"])):n.find("#border").value(""),s["border-style"]?n.find("#borderStyle").value(s["border-style"]):n.find("#borderStyle").value(""),n.find("#style").value(i.serializeStyle(i.parseStyle(i.serializeStyle(s))))}}}(e)},{type:"form",layout:"grid",packV:"start",columns:2,padding:0,defaults:{type:"textbox",maxWidth:50,onchange:function(t){V(e,t.control.rootControl)}},items:[{label:"Vertical space",name:"vspace"},{label:"Border width",name:"border"},{label:"Horizontal space",name:"hspace"},{label:"Border style",type:"listbox",name:"borderStyle",width:90,maxWidth:90,onselect:function(t){V(e,t.control.rootControl)},values:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}}},H=function(e,t){e.state.set("oldVal",e.value()),t.state.set("oldVal",t.value())},K=function(e,t){var a=e.find("#width")[0],i=e.find("#height")[0],n=e.find("#constrain")[0];a&&i&&n&&t(a,i,n.checked())},Y=function(e,t,a){var i=e.state.get("oldVal"),n=t.state.get("oldVal"),l=e.value(),s=t.value();a&&i&&n&&l&&s&&(l!==i?(s=Math.round(l/i*s),isNaN(s)||t.value(s)):(l=Math.round(s/n*l),isNaN(l)||e.value(l))),H(e,t)},Q=function(e){K(e,Y)},G={createUi:function(){var e=function(e){Q(e.control.rootControl)};return{type:"container",label:"Dimensions",layout:"flex",align:"center",spacing:5,items:[{name:"width",type:"textbox",maxLength:5,size:5,onchange:e,ariaLabel:"Width"},{type:"label",text:"x"},{name:"height",type:"textbox",maxLength:5,size:5,onchange:e,ariaLabel:"Height"},{name:"constrain",type:"checkbox",checked:!0,text:"Constrain proportions"}]}},syncSize:function(e){K(e,H)},updateSize:Q},J=function(e){e.meta=e.control.rootControl.toJSON()},X=function(e,a){var i=[{name:"src",type:"filepicker",filetype:"image",label:"Source",autofocus:!0,onchange:function(a){!function(e,a){var i,n,l,s=e.meta||{},r=e.control,u=r.rootControl,c=u.find("#image-list")[0];c&&c.value(a.convertURL(r.value(),"src")),o.each(s,function(e,t){u.find("#"+t).value(e)}),s.width||s.height||(i=a.convertURL(r.value(),"src"),n=t.getPrependUrl(a),l=new RegExp("^(?:[a-z]+:)?//","i"),n&&!l.test(i)&&i.substring(0,n.length)!==n&&(i=n+i),r.value(i),d.getImageSize(a.documentBaseURI.toAbsolute(r.value()),function(e){e.width&&e.height&&t.hasDimensions(a)&&(u.find("#width").value(e.width),u.find("#height").value(e.height),G.syncSize(u))}))}(a,e)},onbeforecall:J},a];return t.hasDescription(e)&&i.push({name:"alt",type:"textbox",label:"Image description"}),t.hasImageTitle(e)&&i.push({name:"title",type:"textbox",label:"Image Title"}),t.hasDimensions(e)&&i.push(G.createUi()),t.getClassList(e)&&i.push({name:"class",type:"listbox",label:"Class",values:d.buildListItems(t.getClassList(e),function(t){t.value&&(t.textStyle=function(){return e.formatter.getCssText({inline:"img",classes:[t.value]})})})}),t.hasImageCaption(e)&&i.push({name:"caption",type:"checkbox",label:"Caption"}),i},Z={makeTab:function(e,t){return{title:"General",type:"form",items:X(e,t)}},getGeneralItems:X},$=function(){return n.getOrDie("URL")},ee=function(e){return $().createObjectURL(e)},te=function(e){$().revokeObjectURL(e)},ae=tinymce.util.Tools.resolve("tinymce.ui.Factory"),ie=function(){},ne=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t};function le(e){var t=function(t,a,i,l){var s,r;(s=new function(){return new(n.getOrDie("XMLHttpRequest"))}).open("POST",e.url),s.withCredentials=e.credentials,s.upload.onprogress=function(e){l(e.loaded/e.total*100)},s.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+s.status)},s.onload=function(){var t;s.status<200||s.status>=300?i("HTTP Error: "+s.status):(t=JSON.parse(s.responseText))&&"string"==typeof t.location?a(ne(e.basePath,t.location)):i("Invalid JSON: "+s.responseText)},(r=new FormData).append("file",t.blob(),t.filename()),s.send(r)};return e=o.extend({credentials:!1,handler:t},e),{upload:function(a){return e.url||e.handler!==t?function(e,t){return new r(function(a,i){try{t(e,a,i,ie)}catch(e){i(e.message)}})}(a,e.handler):r.reject("Upload url missing from the settings.")}}}var se=function(e){return function(a){var i=ae.get("Throbber"),n=a.control.rootControl,l=new i(n.getEl()),s=a.control.value(),r=ee(s),o=le({url:t.getUploadUrl(e),basePath:t.getUploadBasePath(e),credentials:t.getUploadCredentials(e),handler:t.getUploadHandler(e)}),u=function(){l.hide(),te(r)};return l.show(),d.blobToDataUri(s).then(function(t){var a=e.editorUpload.blobCache.create({blob:s,blobUri:r,name:s.name?s.name.replace(/\.[^\.]+$/,""):null,base64:t.split(",")[1]});return o.upload(a).then(function(e){var t=n.find("#src");return t.value(e),n.find("tabpanel")[0].activateTab(0),t.fire("change"),u(),e})}).catch(function(t){e.windowManager.alert(t),u()})}},re={makeTab:function(e){return{title:"Upload",type:"form",layout:"flex",direction:"column",align:"stretch",padding:"20 20 20 20",items:[{type:"container",layout:"flex",direction:"column",align:"center",spacing:10,items:[{text:"Browse for an image",type:"browsebutton",accept:".jpg,.jpeg,.png,.gif",onchange:se(e)},{text:"OR",type:"label"}]},{text:"Drop an image here",type:"dropzone",accept:".jpg,.jpeg,.png,.gif",height:100,onchange:se(e)}]}}},oe=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];for(var i=new Array(arguments.length-1),n=1;n<arguments.length;n++)i[n-1]=arguments[n];return function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];for(var n=new Array(arguments.length),l=0;l<n.length;l++)n[l]=arguments[l];var s=i.concat(n);return e.apply(null,s)}},ue=function(e,t){var a=t.control.getRoot();G.updateSize(a),e.undoManager.transact(function(){var t=f(F(e),a.toJSON());W(e,t)}),e.editorUpload.uploadImagesAuto()};function ce(e){function a(a){var i,n,l=F(e);if(a&&(n={type:"listbox",label:"Image list",name:"image-list",values:d.buildListItems(a,function(t){t.value=e.convertURL(t.value||t.url,"src")},[{text:"None",value:""}]),value:l.src&&e.convertURL(l.src,"src"),onselect:function(e){var t=i.find("#alt");(!t.value()||e.lastControl&&t.value()===e.lastControl.text())&&t.value(e.control.text()),i.find("#src").value(e.control.value()).fire("change")},onPostRender:function(){n=this}}),t.hasAdvTab(e)||t.hasUploadUrl(e)||t.hasUploadHandler(e)){var s=[Z.makeTab(e,n)];t.hasAdvTab(e)&&s.push(j.makeTab(e)),(t.hasUploadUrl(e)||t.hasUploadHandler(e))&&s.push(re.makeTab(e)),i=e.windowManager.open({title:"Insert/edit image",data:l,bodyType:"tabpanel",body:s,onSubmit:oe(ue,e)})}else i=e.windowManager.open({title:"Insert/edit image",data:l,body:Z.getGeneralItems(e,n),onSubmit:oe(ue,e)});G.syncSize(i)}return{open:function(){d.createImageList(e,a)}}}var de=function(e){e.addCommand("mceImage",ce(e).open)},me=function(e){var t=e.attr("class");return t&&/\bimage\b/.test(t)},he=function(e){return function(t){for(var a,i=t.length,n=function(t){t.attr("contenteditable",e?"true":null)};i--;)a=t[i],me(a)&&(a.attr("contenteditable",e?"false":null),o.each(a.getAll("figcaption"),n))}},fe=function(e){e.on("preInit",function(){e.parser.addNodeFilter("figure",he(!0)),e.serializer.addNodeFilter("figure",he(!1))})},ve=function(e){e.addButton("image",{icon:"image",tooltip:"Insert/edit image",onclick:ce(e).open,stateSelector:"img:not([data-mce-object],[data-mce-placeholder]),figure.image"}),e.addMenuItem("image",{icon:"image",text:"Image",onclick:ce(e).open,context:"insert",prependToContext:!0})};e.add("image",function(e){fe(e),ve(e),de(e)})}()},mPC0:function(e,t){},mxEA:function(e,t,a){a("d6/u")},ncv9:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__=__webpack_require__("bOdI"),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);__webpack_exports__.a={components:{},data:function(){return{map:null,center:[116.412427,39.303573],baselistitem_id:"",baselist:[],alreadyhave:{area_addr:[]},faclist:[],facpolylist:[],equipmentlistnum:"",equipmentlist:[],equipmentpolylist:[],offlinelist:{count:0},waringlist:{count:0},basetype:0,basetype2:0,dialogVisible:!1,detailsdata:{warning_info:{}},factypa:"",html:"",factypalist:{3:"虫情监测",5:"气象监测",6:"监控设备",7:"病害监测",8:"墒情监测"},listloading:!1,infoloading:!1,player:null,devicenameoff:!1,devilist:[],selfacindex:0,textlist:[]}},computed:{},watch:{basetype:function(e){this.getdevlist()},basetype2:function(e){this.getdevlist()},dialogVisible:function(e){!e&&this.player&&this.player.stop()},devicenameoff:function(e){if(e){this.equipmentpolylist;for(var t=0;t<this.equipmentpolylist.length;t++)for(var a=0;a<this.devilist.length;a++)this.equipmentpolylist[t]._opts.data==this.devilist[a].device_id&&this.equipmentpolylist[t].setLabel({direction:"top",offset:new AMap.Pixel(0,0),content:"<div class='basecontent'>"+this.devilist[a].device_name+"</div>"})}else for(t=0;t<this.equipmentpolylist.length;t++)this.equipmentpolylist[t].setLabel({direction:"top",offset:new AMap.Pixel(0,0),content:""})}},methods:{getcenter:function(){var e=this;this.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.list_land_base",data:this.qs.stringify(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({page:1},"page",999999))}).then(function(t){if(t.data.data){var a=t.data.data.data;e.center=JSON.parse(a[0].coordinates)[0],e.init()}})},init:function(){var e=this,t=new AMap.Map("mapbox",{center:this.center,resizeEnable:!0,zoom:15,lang:"en",layers:[new AMap.TileLayer.Satellite,new AMap.TileLayer.RoadNet]});AMap.plugin(["AMap.ToolBar","AMap.Geocoder"],function(){t.addControl(new AMap.ToolBar),e.geocoder=new AMap.Geocoder({city:"全国",radius:1e3})}),this.map=t,this.getbaselist()},getbaselist:function(){var e=this;this.listloading=!0,this.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.list_land_base",data:this.qs.stringify({page:1,page_size:999999})}).then(function(t){if(t.data.data){for(var a=t.data.data.data,i=0;i<a.length;i++){var n={value:a[i].base_id,label:a[i].base_name};e.baselist.push(n);var l=JSON.parse(a[i].coordinates);new AMap.Polygon({map:e.map,path:l,strokeColor:"#4f71ff",strokeOpacity:.5,strokeWeight:3,fillColor:"#1791fc",fillOpacity:.35,data:a[i].base_id}).on("click",function(t){e.baselistitem_id=t.target._opts.data,e.selbasechange()})}e.baselistitem_id=a[0].base_id,e.alreadyhave=a[0],e.getbasepoltlist(),e.getpoltlist()}})},selbasechange:function(){this.selfacindex=0,this.devicenameoff=!1,this.getbaselistinfo(),this.getbasepoltlist(),this.getpoltlist()},getbaselistinfo:function(){var e=this;this.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.list_land_base",data:this.qs.stringify({base_id:this.baselistitem_id})}).then(function(t){if(t.data.data){var a=t.data.data.data;e.alreadyhave=a[0],e.map.setZoomAndCenter(15,[JSON.parse(a[0].coordinates)[0][0],JSON.parse(a[0].coordinates)[0][1]])}})},getbasepoltlist:function(){var e=this;this.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.get_massif_list",data:this.qs.stringify({base_id:this.baselistitem_id})}).then(function(t){if(e.listloading=!1,t.data.data){var a=t.data.data.data;e.faclist=a}})},getpoltlist:function(){for(var e=this,t=0;t<this.facpolylist.length;t++)this.map.remove(this.facpolylist[t]);for(t=0;t<this.textlist.length;t++)this.map.remove(this.textlist[t]);this.$axios({method:"post",url:"api/api_gateway?method=basemanager.baseinfo.get_massif_list",data:this.qs.stringify({base_id:this.baselistitem_id,page:1,page_size:9999999})}).then(function(t){if(t.data.data){var a=t.data.data.data;e.facpolylist=[],e.textlist=[];for(var i="",n=0;n<a.length;n++){var l=JSON.parse(a[n].coordinates);i=0==n?new AMap.Polygon({map:e.map,path:l,strokeColor:a[n].crop_colors,strokeOpacity:1,strokeWeight:3,fillColor:a[n].crop_colors,fillOpacity:.7,data:a[n].base_id}):new AMap.Polygon({map:e.map,path:l,strokeColor:a[n].crop_colors,strokeOpacity:.5,strokeWeight:3,fillColor:a[n].crop_colors,fillOpacity:.35,data:a[n].base_id}),e.facpolylist.push(i);var s=new AMap.Text({text:a[n].crop_name,anchor:"center",draggable:!1,cursor:"pointer",angle:0,style:{padding:"0","margin-bottom":"1rem","border-radius":".25rem","background-color":"rgba(0,0,0,0)",width:"15rem","border-width":0,"box-shadow":"0 2px 6px 0 rgba(114, 124, 245, 0)","text-align":"center","font-size":"14px",color:"#fff","text-shadow":"2px 2px rgba(0,0,0,0.3)"},position:e.getPointsCenter(JSON.parse(a[n].coordinates))});e.getPointsCenter(JSON.parse(a[n].coordinates)),s.setMap(e.map),e.textlist.push(s),i.on("click",function(t){e.baselistitem_id=t.target._opts.data,e.selbasechange()})}e.getdevlist()}})},getPointsCenter:function(e){for(var t=e.length,a=0,i=0,n=0,l=0;l<e.length;l++)if(""!=e[l]){var s,r,o=e[l];s=parseFloat(o[1])*Math.PI/180,r=parseFloat(o[0])*Math.PI/180,a+=Math.cos(s)*Math.cos(r),i+=Math.cos(s)*Math.sin(r),n+=Math.sin(s)}a/=t,i/=t,n/=t;var u=Math.atan2(i,a),c=Math.atan2(n,Math.sqrt(a*a+i*i));return[180*u/Math.PI,180*c/Math.PI]},getdevlist:function(){for(var e=this,t=0;t<this.equipmentpolylist.length;t++)this.map.remove(this.equipmentpolylist[t]);this.$axios({method:"post",url:"api/api_gateway?method=basemanager.device.list_land_device",data:this.qs.stringify({base_id:this.baselistitem_id,page:1,page_size:99999999})}).then(function(t){if(t.data.data){var a=t.data.data.data;e.devilist=a,e.equipmentlist=t.data.data.statistic,e.equipmentlistnum=t.data.data.total_num,e.waringlist=t.data.data.waring,e.offlinelist=t.data.data.offline;for(var i=t.data.data.warn_and_off.result,n=0;n<a.length;n++)0!=e.basetype&&a[n].device_type_id!=e.basetype&&(a[n].device_type_id,e.basetype,a.splice(n,1),n--);for(n=0;n<a.length;n++)1==e.basetype2?a[n].is_warning||(a.splice(n,1),n--):2==e.basetype2&&(a[n].offline||(a.splice(n,1),n--));for(n=0;n<a.length;n++){for(var l="../../../static/images/gisshow/"+a[n].device_type_id+".png",s=0;s<e.waringlist.result.length;s++)a[n].device_id==e.waringlist.result[s]&&(l="../../../static/images/gisshow/"+a[n].device_type_id+".gif");for(s=0;s<e.offlinelist.result.length;s++)if(a[n].device_id==e.offlinelist.result[s]){l="../../../static/images/gisshow/"+a[n].device_type_id+"off.png";for(var r=0;r<i.length;r++)a[n].device_id,i[r],a[n].device_id==i[r]&&(l="../../../static/images/gisshow/"+a[n].device_type_id+"off.gif")}var o=new AMap.Icon({size:new AMap.Size(30,30),image:l,imageSize:new AMap.Size(30,30)});JSON.parse(a[n].coordinates);var u=new AMap.Marker({position:new AMap.LngLat(JSON.parse(a[n].coordinates)[0],JSON.parse(a[n].coordinates)[1]),icon:o,map:e.map,offset:new AMap.Pixel(-15,-30),data:a[n].device_id,qrtype:a[n].device_type_id});e.equipmentpolylist.push(u),u.on("click",function(t){t.target._opts.qrtype;var a=t.target._opts.qrtype;e.dialogVisible=!0,e.factypa=t.target._opts.qrtype,e.infoloading=!0,5==a||8==a?e.getqxzinfo(t.target._opts.data):3==a?e.getcbdinfo(t.target._opts.data):7==a?e.getbzyinfo(t.target._opts.data):6==a&&e.getjklist(t.target._opts.data)})}}})},getqxzinfo:function(e){var t=this;this.$axios({method:"post",url:"api/api_gateway?method=basemanager.device.get_qxz_or_sq_info",data:this.qs.stringify({device_id:e})}).then(function(e){t.infoloading=!1,e.data.data&&(e.data.data,t.detailsdata=e.data.data)})},getcbdinfo:function(e){var t=this;this.$axios({method:"post",url:"api/api_gateway?method=basemanager.device.get_cbd_info",data:this.qs.stringify({device_id:e})}).then(function(e){t.infoloading=!1,e.data.data&&(e.data.data,t.detailsdata=e.data.data)})},getbzyinfo:function(e){var t=this;this.$axios({method:"post",url:"api/api_gateway?method=basemanager.device.get_bzy_info",data:this.qs.stringify({device_id:e})}).then(function(e){t.infoloading=!1,e.data.data&&(e.data.data,t.detailsdata=e.data.data)})},getjklist:function getjklist(id){var _this11=this;this.$axios({url:"/api/api_gateway?method=camera.camera_manage.addr_camera_list",method:"POST",data:this.qs.stringify({device_id:id})}).then(function(res){if(_this11.infoloading=!1,res.data.data){res.data.data;var data=eval("("+res.data.data+")"),rtmpHdSrc=data.rtmp,hlsHdSrc=data.hlsHd;_this11.html='<video id="myPlayer" autoplay controls playsInline webkit-playsinline [autoplay] style="width:100%; height:100%;"><source src="'+hlsHdSrc+'" type="application/x-mpegURL"></video>',setTimeout(function(){var e=new EZUIKit.EZUIPlayer(myPlayer);e.play(),_this11.player=e},1e3)}})},selfac:function(e){this.selfacindex=e,this.facpolylist;for(var t=0;t<this.facpolylist.length;t++)t==e?this.facpolylist[t].setOptions({strokeColor:this.facpolylist[t]._opts.strokeColor,strokeOpacity:1,strokeWeight:3,fillColor:this.facpolylist[t]._opts.fillColor,fillOpacity:.7}):this.facpolylist[t].setOptions({strokeColor:this.facpolylist[t]._opts.strokeColor,strokeOpacity:.5,strokeWeight:3,fillColor:this.facpolylist[t]._opts.fillColor,fillOpacity:.35})}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getcenter()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}}},oV1X:function(e,t){},pA9f:function(e,t){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t){var a;return e.dom.getParents(e.selection.getStart(),function(e){var i;(i=e.style["forecolor"===t?"color":"background-color"])&&(a=i)}),a},a=function(e){var t,a=[];for(t=0;t<e.length;t+=2)a.push({text:e[t+1],color:"#"+e[t]});return a},i=function(e,t,a){e.undoManager.transact(function(){e.focus(),e.formatter.apply(t,{value:a}),e.nodeChanged()})},n=function(e,t){e.undoManager.transact(function(){e.focus(),e.formatter.remove(t,{value:null},null,!0),e.nodeChanged()})},l=function(e){e.addCommand("mceApplyTextcolor",function(t,a){i(e,t,a)}),e.addCommand("mceRemoveTextcolor",function(t){n(e,t)})},s=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),r=tinymce.util.Tools.resolve("tinymce.util.Tools"),o=["000000","Black","993300","Burnt orange","333300","Dark olive","003300","Dark green","003366","Dark azure","000080","Navy Blue","333399","Indigo","333333","Very dark gray","800000","Maroon","FF6600","Orange","808000","Olive","008000","Green","008080","Teal","0000FF","Blue","666699","Grayish blue","808080","Gray","FF0000","Red","FF9900","Amber","99CC00","Yellow green","339966","Sea green","33CCCC","Turquoise","3366FF","Royal blue","800080","Purple","999999","Medium gray","FF00FF","Magenta","FFCC00","Gold","FFFF00","Yellow","00FF00","Lime","00FFFF","Aqua","00CCFF","Sky blue","993366","Red violet","FFFFFF","White","FF99CC","Pink","FFCC99","Peach","FFFF99","Light yellow","CCFFCC","Pale green","CCFFFF","Pale cyan","99CCFF","Light sky blue","CC99FF","Plum"],u=function(e){return e.getParam("textcolor_map",o)},c=function(e){return e.getParam("textcolor_rows",5)},d=function(e){return e.getParam("textcolor_cols",8)},m=function(e){return e.getParam("color_picker_callback",null)},h=function(e){return e.getParam("forecolor_map",u(e))},f=function(e){return e.getParam("backcolor_map",u(e))},v=function(e){return e.getParam("forecolor_rows",c(e))},p=function(e){return e.getParam("backcolor_rows",c(e))},g=function(e){return e.getParam("forecolor_cols",d(e))},b=function(e){return e.getParam("backcolor_cols",d(e))},_=m,y=function(e){return"function"==typeof m(e)},w=tinymce.util.Tools.resolve("tinymce.util.I18n"),x=function(e,t,i,n){var l,r,o,u,c,d,m,h=0,f=s.DOM.uniqueId("mcearia"),v=function(e,t){var a="transparent"===e;return'<td class="mce-grid-cell'+(a?" mce-colorbtn-trans":"")+'"><div id="'+f+"-"+h+++'" data-mce-color="'+(e||"")+'" role="option" tabIndex="-1" style="'+(e?"background-color: "+e:"")+'" title="'+w.translate(t)+'">'+(a?"&#215;":"")+"</div></td>"};for((l=a(i)).push({text:w.translate("No color"),color:"transparent"}),o='<table class="mce-grid mce-grid-border mce-colorbutton-grid" role="list" cellspacing="0"><tbody>',u=l.length-1,d=0;d<t;d++){for(o+="<tr>",c=0;c<e;c++)o+=(m=d*e+c)>u?"<td></td>":v((r=l[m]).color,r.text);o+="</tr>"}if(n){for(o+='<tr><td colspan="'+e+'" class="mce-custom-color-btn"><div id="'+f+'-c" class="mce-widget mce-btn mce-btn-small mce-btn-flat" role="button" tabindex="-1" aria-labelledby="'+f+'-c" style="width: 100%"><button type="button" role="presentation" tabindex="-1">'+w.translate("Custom...")+"</button></div></td></tr>",o+="<tr>",c=0;c<e;c++)o+=v("","Custom color");o+="</tr>"}return o+="</tbody></table>"},C=function(e,t){e.style.background=t,e.setAttribute("data-mce-color",t)},A=function(e){return function(t){var a=t.control;a._color?e.execCommand("mceApplyTextcolor",a.settings.format,a._color):e.execCommand("mceRemoveTextcolor",a.settings.format)}},k=function(e,a){return function(i){var n,l=this.parent(),o=t(e,l.settings.format),u=function(t){e.execCommand("mceApplyTextcolor",l.settings.format,t),l.hidePanel(),l.color(t)};s.DOM.getParent(i.target,".mce-custom-color-btn")&&(l.hidePanel(),_(e).call(e,function(e){var t,i,n,s=l.panel.getEl().getElementsByTagName("table")[0];for(t=r.map(s.rows[s.rows.length-1].childNodes,function(e){return e.firstChild}),n=0;n<t.length&&(i=t[n]).getAttribute("data-mce-color");n++);if(n===a)for(n=0;n<a-1;n++)C(t[n],t[n+1].getAttribute("data-mce-color"));C(i,e),u(e)},o)),(n=i.target.getAttribute("data-mce-color"))?(this.lastId&&s.DOM.get(this.lastId).setAttribute("aria-selected","false"),i.target.setAttribute("aria-selected",!0),this.lastId=i.target.id,"transparent"===n?(e.execCommand("mceRemoveTextcolor",l.settings.format),l.hidePanel(),l.resetColor()):u(n)):null!==n&&l.hidePanel()}},E=function(e,t){return function(){var a=t?g(e):b(e),i=t?v(e):p(e),n=t?h(e):f(e),l=y(e);return x(a,i,n,l)}},D=function(e){e.addButton("forecolor",{type:"colorbutton",tooltip:"Text color",format:"forecolor",panel:{role:"application",ariaRemember:!0,html:E(e,!0),onclick:k(e,g(e))},onclick:A(e)}),e.addButton("backcolor",{type:"colorbutton",tooltip:"Background color",format:"hilitecolor",panel:{role:"application",ariaRemember:!0,html:E(e,!1),onclick:k(e,b(e))},onclick:A(e)})};e.add("textcolor",function(e){l(e),D(e)})}()},phGo:function(e,t,a){e.exports=a.p+"static/img/shot-1.cbad617.gif"},r5ih:function(e,t,a){a("Q+KN")},sNl0:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAiCAYAAADroA+yAAAABHNCSVQICAgIfAhkiAAAAnpJREFUaIHtmb9y2kAQxr9d2Zp0UZsq+AlCCioKnCcILlMFP4GPQoe7uASpsN7AcpmOMp3tRq3JG5AuJZSouHURkSGKQswcSKDxr9Pt/fnmG+lub0WoMb7vNwF0iMgDACKaLBaLhyiKZvm+VLq6EtBadwFcA2gUxYkoXiwW/VVDameE1lrhlwn/YyoiZ2EYToCaGeH7fpOIHjcYMkvT9CSKohnvTFUFOI7jbTjEc133BqjZG6GU8lzXnQB4u9LcZ+YJABhjrgB08uOY+aRWRgC/zegB8Jg5Hg6H09W41nqKP40CgP5ROfLKIzsJojVdYgBfcm1erfaI57DMKf5qL1tIlVxeXp4aY+4KQmeUdWgYYz6XrKtUROSUiE4LQvMgCLyjzIRHAJsePQcFUfHLLyIKANgY00PNTVjDbRiGMQCwiEyr1VIZ/SAIessHJ0mSSbvdJgDvAbyqTFY5fCeir8z8aTQafatazAsvvHA4EABora8BqIq1PJcZEY2J6HY4HN5va1Lyfb9HRDfbmrBkxmmanhfVIDeFiahhr6cyuq7r3imlrBNCZuYYwNxeU2U0l1UmG1YvXT1rSTtGRJrZxel1PsbMH2z2jIO7hmcVqHsA73Kh29WUeVMOrjATRdGMmYtOuIbNvAdnRMZ02xPubc0yqyZ1mPkh/+0bY7rbXm8vjRgMBpEx5gIAjDHQWkciMgYwJ6KPAK4Kho1t1txLI0TkItekiGhd5jtP0zS2WXNf94gfm3QWEWWbXe6lESLSxTPNEJHzZbnNBsd2gl2QJMnPVqsVO47zBkDzH90emPk8CAKrvWHJ3idUSinv+Pi4u3InmjHzOP8rz5YnXIbT6ew42Z0AAAAASUVORK5CYII="},sime:function(e,t,a){e.exports=a.p+"static/img/quexingye.712caa2.png"},tDEo:function(e,t){},tIvl:function(e,t){},tvR6:function(e,t){},uRZV:function(e,t){},uWkF:function(e,t,a){a("jIrg")},uqz0:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAAKV0lEQVRo3sVba4xUZxl+3ndmd4Flb4DcbXGk7C7gUEovAr0lVZAQUrS1kqVQ7B8butLGGFvbmnqpWNtKALltjKKgGNtYQdIgCaU/CrvV0mAdKwtsLCXLHfbG7MLuzn6vP+b2fd/5zpnZC/Ukk8ycOXPme87zfM/zfu+cIQzxNju2NUSQ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ne0uzvf385NJChiwiUisZ8iXSfg4wwOYG10EkBwiygyD7Ho3U9wx2bEMCUN/WNy0OEWQOQd3DkFkEmcokkwkyiiDFDOlN9UtaCXKBIE2E1N8KCEdWRg4N6d8K/gcgsnlPeZdj5QAAAABJRU5ErkJggg=="},uuvx:function(e,t){},uxeu:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAABHNCSVQICAgIfAhkiAAAAM9JREFUKJHVktFtwjAURc+NOki6AWzQDoBghHYCzAZkgpoJYATTLpAN2hE8QifI5YNIlZwEf/dJlqV3dOSr96xt8BnxRlE2x8+oDmAX3BrOiBbIMl2K6rU92KU4Vr5+6HkXvLL4LuFg3psF8S8B7Of6jdhXZcRqgbR12eQF8lOVBQfgd9I3XWMRgVyewZwAUlSWWWMSkDG9zGuK6qupH6Ya9/xSgsGcvqLiJjg0mk7cIj3NfRC4rwKI491OXjWhPu0H9W9lc5kDFgnACxxzuQGhjkuaZnedigAAAABJRU5ErkJggg=="},v6mr:function(e,t,a){a("mDj6")},"vkN/":function(e,t){},wF6d:function(e,t){},wbKn:function(e,t){!function(){"use strict";var e=function(t){var a=t,i=function(){return a};return{get:i,set:function(e){a=e},clone:function(){return e(i())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(e){return{isContextMenuVisible:function(){return e.get()}}},i=function(e){return e.settings.contextmenu_never_use_native},n=function(e){return e.getParam("contextmenu","link openlink image inserttable | cell row column deletetable")},l=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),s=function(e){return l.DOM.select(e.settings.ui_container)[0]},r=function(e,t){return{x:e,y:t}},o=function(e,t,a){return r(e.x+t,e.y+a)},u=function(e,t){if(e&&"static"!==l.DOM.getStyle(e,"position",!0)){var a=l.DOM.getPos(e),i=a.x-e.scrollLeft,n=a.y-e.scrollTop;return o(t,-i,-n)}return o(t,0,0)},c=function(e,t){if(e.inline)return u(s(e),function(e){return r(e.pageX,e.pageY)}(t));var a,i,n,c=(a=e.getContentAreaContainer(),i=function(e){return r(e.clientX,e.clientY)}(t),n=l.DOM.getPos(a),o(i,n.x,n.y));return u(s(e),c)},d=tinymce.util.Tools.resolve("tinymce.ui.Factory"),m=tinymce.util.Tools.resolve("tinymce.util.Tools"),h=function(e,t,a,i){null===i.get()?i.set(function(e,t){var a,i,l=[];i=n(e),m.each(i.split(/[ ,]/),function(t){var a=e.menuItems[t];"|"===t&&(a={text:t}),a&&(a.shortcut="",l.push(a))});for(var r=0;r<l.length;r++)"|"===l[r].text&&(0!==r&&r!==l.length-1||l.splice(r,1));return(a=d.create("menu",{items:l,context:"contextmenu",classes:"contextmenu"})).uiContainer=s(e),a.renderTo(s(e)),a.on("hide",function(e){e.control===this&&t.set(!1)}),e.on("remove",function(){a.remove(),a=null}),a}(e,a)):i.get().show(),i.get().moveTo(t.x,t.y),a.set(!0)},f=function(e,t,a){e.on("contextmenu",function(n){(function(e,t){return t.ctrlKey&&!i(e)})(e,n)||(n.preventDefault(),h(e,c(e,n),t,a))})};t.add("contextmenu",function(t){var i=e(null),n=e(!1);return f(t,n,i),a(n)})}()},x0aL:function(e,t){},x6tY:function(e,t){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.VK"),a=function(e){return e.target_list},i=function(e){return e.rel_list},n=function(e){return e.link_class_list},l=function(e){return"boolean"==typeof e.link_assume_external_targets&&e.link_assume_external_targets},s=function(e){return"boolean"==typeof e.link_context_toolbar&&e.link_context_toolbar},r=function(e){return e.link_list},o=function(e){return"string"==typeof e.default_link_target},u=function(e){return e.default_link_target},c=a,d=function(e,t){e.settings.target_list=t},m=function(e){return!1!==a(e)},h=i,f=function(e){return void 0!==i(e)},v=n,p=function(e){return void 0!==n(e)},g=function(e){return!1!==e.link_title},b=function(e){return"boolean"==typeof e.allow_unsafe_link_target&&e.allow_unsafe_link_target},_=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),y=tinymce.util.Tools.resolve("tinymce.Env"),w=function(e){if(!y.ie||y.ie>10){var t=document.createElement("a");t.target="_blank",t.href=e,t.rel="noreferrer noopener";var a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),function(e,t){document.body.appendChild(e),e.dispatchEvent(t),document.body.removeChild(e)}(t,a)}else{var i=window.open("","_blank");if(i){i.opener=null;var n=i.document;n.open(),n.write('<meta http-equiv="refresh" content="0; url='+_.DOM.encode(e)+'">'),n.close()}}},x=tinymce.util.Tools.resolve("tinymce.util.Tools"),C=function(e,t){var a=["noopener"],i=e?e.split(/\s+/):[],n=function(e){return e.filter(function(e){return-1===x.inArray(a,e)})};return(i=t?function(e){return(e=n(e)).length?e.concat(a):a}(i):n(i)).length?function(e){return x.trim(e.sort().join(" "))}(i):null},A=function(e,t){return t=t||e.selection.getNode(),E(t)?e.dom.select("a[href]",t)[0]:e.dom.getParent(t,"a[href]")},k=function(e){return e&&"A"===e.nodeName&&e.href},E=function(e){return e&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className)},D=function(e,t){var a,i;(i=e.dom.select("img",t)[0])&&(a=e.dom.getParents(i,"a[href]",t)[0])&&(a.parentNode.insertBefore(i,a),e.dom.remove(a))},S=function(e,t,a){var i,n;(n=e.dom.select("img",t)[0])&&(i=e.dom.create("a",a),n.parentNode.insertBefore(i,n),i.appendChild(n))},I=function(e,t){return function(a){e.undoManager.transact(function(){var i=e.selection.getNode(),n=A(e,i),l={href:a.href,target:a.target?a.target:null,rel:a.rel?a.rel:null,class:a.class?a.class:null,title:a.title?a.title:null};f(e.settings)||!1!==b(e.settings)||(l.rel=C(l.rel,"_blank"===l.target)),a.href===t.href&&(t.attach(),t={}),n?(e.focus(),a.hasOwnProperty("text")&&("innerText"in n?n.innerText=a.text:n.textContent=a.text),e.dom.setAttribs(n,l),e.selection.select(n),e.undoManager.add()):E(i)?S(e,i,l):a.hasOwnProperty("text")?e.insertContent(e.dom.createHTML("a",l,e.dom.encode(a.text))):e.execCommand("mceInsertLink",!1,l)})}},T=function(e){return function(){e.undoManager.transact(function(){var t=e.selection.getNode();E(t)?D(e,t):e.execCommand("unlink")})}},B=k,M=function(e){return x.grep(e,k).length>0},P=function(e){return!(/</.test(e)&&(!/^<a [^>]+>[^<]+<\/a>$/.test(e)||-1===e.indexOf("href=")))},L=A,R=function(e,t){return function(e){return e.replace(/\uFEFF/g,"")}(t?t.innerText||t.textContent:e.getContent({format:"text"}))},N=C,O=tinymce.util.Tools.resolve("tinymce.util.Delay"),q=tinymce.util.Tools.resolve("tinymce.util.XHR"),z={},F=function(e,t,a){var i=function(e,a){return a=a||[],x.each(e,function(e){var n={text:e.text||e.title};e.menu?n.menu=i(e.menu):(n.value=e.value,t&&t(n)),a.push(n)}),a};return i(e,a||[])},U=function(e,t,a){var i=e.selection.getRng();O.setEditorTimeout(e,function(){e.windowManager.confirm(t,function(t){e.selection.setRng(i),a(t)})})},W=function(e,t){var a,i,n,s,r,_,y,w,C,A,k,E={},D=e.selection,S=e.dom,B=function(e){var t=n.find("#text");(!t.value()||e.lastControl&&t.value()===e.lastControl.text())&&t.value(e.control.text()),n.find("#href").value(e.control.value())},M=function(){i||!s||E.text||this.parent().parent().find("#text")[0].value(this.value())};s=P(D.getContent()),a=L(e),E.text=i=R(e.selection,a),E.href=a?S.getAttrib(a,"href"):"",a?E.target=S.getAttrib(a,"target"):o(e.settings)&&(E.target=u(e.settings)),(k=S.getAttrib(a,"rel"))&&(E.rel=k),(k=S.getAttrib(a,"class"))&&(E.class=k),(k=S.getAttrib(a,"title"))&&(E.title=k),s&&(r={name:"text",type:"textbox",size:40,label:"Text to display",onchange:function(){E.text=this.value()}}),t&&(_={type:"listbox",label:"Link list",values:F(t,function(t){t.value=e.convertURL(t.value||t.url,"href")},[{text:"None",value:""}]),onselect:B,value:e.convertURL(E.href,"href"),onPostRender:function(){_=this}}),m(e.settings)&&(void 0===c(e.settings)&&d(e,[{text:"None",value:""},{text:"New window",value:"_blank"}]),w={name:"target",type:"listbox",label:"Target",values:F(c(e.settings))}),f(e.settings)&&(y={name:"rel",type:"listbox",label:"Rel",values:F(h(e.settings),function(t){!1===b(e.settings)&&(t.value=N(t.value,"_blank"===E.target))})}),p(e.settings)&&(C={name:"class",type:"listbox",label:"Class",values:F(v(e.settings),function(t){t.value&&(t.textStyle=function(){return e.formatter.getCssText({inline:"a",classes:[t.value]})})})}),g(e.settings)&&(A={name:"title",type:"textbox",label:"Title",value:E.title}),n=e.windowManager.open({title:"Insert link",data:E,body:[{name:"href",type:"filepicker",filetype:"file",size:40,autofocus:!0,label:"Url",onchange:function(t){var a=t.meta||{};_&&_.value(e.convertURL(this.value(),"href")),x.each(t.meta,function(e,t){var a=n.find("#"+t);"text"===t?0===i.length&&(a.value(e),E.text=e):a.value(e)}),a.attach&&(z={href:this.value(),attach:a.attach}),a.text||M.call(this)},onkeyup:M,onpaste:M,onbeforecall:function(e){e.meta=n.toJSON()}},r,A,function(t){var a=[];if(x.each(e.dom.select("a:not([href])"),function(e){var i=e.name||e.id;i&&a.push({text:i,value:"#"+i,selected:-1!==t.indexOf("#"+i)})}),a.length)return a.unshift({text:"None",value:""}),{name:"anchor",type:"listbox",label:"Anchors",values:a,onselect:B}}(E.href),_,y,w,C],onSubmit:function(t){var a=l(e.settings),n=I(e,z),r=T(e),o=x.extend({},E,t.data),u=o.href;u?(s&&o.text!==i||delete o.text,u.indexOf("@")>0&&-1===u.indexOf("//")&&-1===u.indexOf("mailto:")?U(e,"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",function(e){e&&(o.href="mailto:"+u),n(o)}):!0===a&&!/^\w+:/i.test(u)||!1===a&&/^\s*www[\.|\d\.]/i.test(u)?U(e,"The URL you entered seems to be an external link. Do you want to add the required http:// prefix?",function(e){e&&(o.href="http://"+u),n(o)}):n(o)):r()}})},V=function(e){!function(e,t){var a=r(e.settings);"string"==typeof a?q.send({url:a,success:function(a){t(e,JSON.parse(a))}}):"function"==typeof a?a(function(a){t(e,a)}):t(e,a)}(e,W)},j=function(e,t){return e.dom.getParent(t,"a[href]")},H=function(e){return j(e,e.selection.getStart())},K=function(e,t){if(t){var a=function(e){var t=e.getAttribute("data-mce-href");return t||e.getAttribute("href")}(t);if(/^#/.test(a)){var i=e.$(a);i.length&&e.selection.scrollIntoView(i[0],!0)}else w(t.href)}},Y=function(e){return function(){V(e)}},Q=function(e){return function(){K(e,H(e))}},G=function(e){return function(t){var a,i,n;return!!(s(e.settings)&&!function(e){var t=e.plugins.contextmenu;return!!t&&t.isContextMenuVisible()}(e)&&B(t)&&3===(n=(i=(a=e.selection).getRng()).startContainer).nodeType&&a.isCollapsed()&&i.startOffset>0&&i.startOffset<n.data.length)}},J=function(e){e.on("click",function(a){var i=j(e,a.target);i&&t.metaKeyPressed(a)&&(a.preventDefault(),K(e,i))}),e.on("keydown",function(t){var a=H(e);a&&13===t.keyCode&&function(e){return!0===e.altKey&&!1===e.shiftKey&&!1===e.ctrlKey&&!1===e.metaKey}(t)&&(t.preventDefault(),K(e,a))})},X=function(e){return function(){var t=this;e.on("nodechange",function(a){t.active(!e.readonly&&!!L(e,a.element))})}},Z=function(e){return function(){var t=this,a=function(e){M(e.parents)?t.show():t.hide()};M(e.dom.getParents(e.selection.getStart()))||t.hide(),e.on("nodechange",a),t.on("remove",function(){e.off("nodechange",a)})}},$=function(e){e.addCommand("mceLink",Y(e))},ee=function(e){e.addShortcut("Meta+K","",Y(e))},te=function(e){e.addButton("link",{active:!1,icon:"link",tooltip:"Insert/edit link",onclick:Y(e),onpostrender:X(e)}),e.addButton("unlink",{active:!1,icon:"unlink",tooltip:"Remove link",onclick:T(e),onpostrender:X(e)}),e.addContextToolbar&&e.addButton("openlink",{icon:"newtab",tooltip:"Open link",onclick:Q(e)})},ae=function(e){e.addMenuItem("openlink",{text:"Open link",icon:"newtab",onclick:Q(e),onPostRender:Z(e),prependToContext:!0}),e.addMenuItem("link",{icon:"link",text:"Link",shortcut:"Meta+K",onclick:Y(e),stateSelector:"a[href]",context:"insert",prependToContext:!0}),e.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onclick:T(e),stateSelector:"a[href]"})},ie=function(e){e.addContextToolbar&&e.addContextToolbar(G(e),"openlink | link unlink")};e.add("link",function(e){te(e),ae(e),ie(e),J(e),$(e),ee(e)})}()},xid7:function(e,t){},yFFU:function(e,t){},yNHL:function(e,t){},yhpR:function(e,t,a){a("67Va")},yiDG:function(e,t){},"zb/+":function(e,t){},"zgi+":function(e,t,a){e.exports=a.p+"static/img/none.c0f5d9c.png"},zjOh:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a={data:function(){return{currPage:1,totalPage:0,id:"",activeIndex:0,jktype:"",divNum:1,hlsHdSrc:"",rtmpHdSrc:"",takePhotoDialogVisible:!1,Idlist:[],divMainHeight:"",selected:1,playType:0,html:"",picUrl:"",playBackDialogVisible:!1,mapTojkId:this.$route.query.id,mapTojktype:this.$route.query.jktype,myVideo:{},backForm:{time:"",start:"",end:"",aisle:1},backFormRules:{time:[{required:!0,message:"请选择时间范围",trigger:"change"}],aisle:[{required:!0,message:"请选择通道",trigger:"change"}]},accessToken:"",addEquipment:!1,equipmentID:"",equipmentIDlist:[],equipmentOptions:[],equipmentChannel:[{value:"0",label:"0"},{value:1,label:1},{value:2,label:2},{value:3,label:3},{value:4,label:4},{value:5,label:5},{value:6,label:6},{value:7,label:7},{value:8,label:8},{value:9,label:9},{value:10,label:10},{value:11,label:11},{value:12,label:12},{value:13,label:13},{value:14,label:14},{value:15,label:15},{value:16,label:16},{value:17,label:17},{value:18,label:18},{value:19,label:19},{value:20,label:20},{value:21,label:21},{value:22,label:22},{value:23,label:23},{value:24,label:24},{value:25,label:25},{value:26,label:26},{value:27,label:27},{value:28,label:28},{value:29,label:29},{value:30,label:30},{value:31,label:31}],equipmentNumber:"",playback:!1,restaurants:[],state:"",timeout:null,idName:"",addEquipmentA:!1,addEquipmentB:!1,equipmentICCID:"",sim:{iccid:"",account_status:0,data_plan:0,data_usage:0,data_balance:0,expiry_date:0},simCodeVisible:!1,input3:"",value3:[],code:0,query:[],simloading:!1,equipmentValue:"",FluoriteClouduser:"",salesman:"",tokenData:"",secretKey:"",furtiveData:"",FluoriteClouduserID:"",stepIndex:0,tltArray:[{name:"添加账号"},{name:"添加监控设备"}],userNameID:[],bangDsimoptions:[],bangDsimId:null,VideoList:[],longtimetf:!1,monthitortime:null,radio:"0",loading:!1,jkcondialogVisible:!1,jkconinfo:{name:"",onoff:"on",statetime:"",endtime:"",device_id:""},rules:{name:[{required:!0,message:"请输入设备名称",trigger:"blur"}],onoff:[{required:!0,message:"请选择设备状态",trigger:"blur"}]}}},filters:{formatName:function(e){if(!e)return"";e.device_name&&e.device_name.length>20&&e.device_name.slice(0,20),e.device_id.length>30&&e.device_id.slice(0,30);var t="";if(t=""!=e.device_name?e.device_name:e.device_id,e.device_name,e.device_id,t.length>20)var a=t.slice(0,20)+"...";else a=t;return a}},mounted:function(){void 0!==this.$route.query.id&&(this.idName=this.$route.query.id),this.getJkList()},created:function(){},destroyed:function(){for(var e=0;e<this.VideoList.length;e++)this.VideoList[e].stop()},methods:{viewPhoto:function(e){this.$router.push("/index/photoView/"+e)},getJkList:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.list_camera",data:this.qs.stringify({page:this.currPage,page_size:8,device_id:this.idName})}).then(function(t){""==t.data.message&&t.data.data.data.length&&(e.Idlist=t.data.data.data,e.accessToken=t.data.data.accessToken,e.totalPage=Math.ceil(t.data.data.counts/8),e.mapTojkId&&e.mapTojktype?e.selectEquip(e.mapTojkId,e.mapTojktype,99999):e.selectEquip(e.Idlist[0].device_id,e.Idlist[0].jktype,0)),e.Idlist;for(var a=0;a<e.Idlist.length;a++){var i={value:a,label:e.Idlist[a].device_id};e.equipmentOptions.push(i)}e.restaurants=e.loadAll()})},splitPage:function(e){"jian"==e?this.currPage>1&&(this.currPage--,this.getJkList()):this.currPage<this.totalPage&&(this.currPage++,this.getJkList())},stopConfigCamera:function(){this.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.ctrl_camera",data:this.qs.stringify({device_id:this.id,ctrl:"stop"})})},configCamera:function(e,t){var a=this;"takephoto"==e?this.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.camera_takephoto",data:this.qs.stringify({device_id:this.id})}).then(function(e){var t=JSON.parse(e.data.data);200==t.code?(a.picUrl=t.data.picUrl,a.takePhotoDialogVisible=!0):0==document.getElementsByClassName("el-message").length&&a.$message.error(t.msg)}):this.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.ctrl_camera",data:this.qs.stringify({device_id:this.id,ctrl:e,movenum:t})}).then(function(e){})},photograph:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.camera_takephoto",data:this.qs.stringify({device_id:this.id})}).then(function(t){""==t.data.message?(t.data,e.picUrl=t.data.data.addr,0==document.getElementsByClassName("el-message").length&&e.$message({message:"拍照成功",type:"success"})):0==document.getElementsByClassName("el-message").length&&e.$message({message:t.data.message,type:"warning",duration:1500})}).catch(function(e){})},selectEquip:function selectEquip(device_id,jktype,index){var _this4=this;this.jktype=jktype,this.activeIndex=index,this.id=device_id,this.$axios({url:"/api/api_gateway?method=camera.camera_manage.addr_camera_list",method:"POST",data:this.qs.stringify({device_id:device_id})}).then(function(res){if(""==res.data.message){var data=eval("("+res.data.data+")"),hlsHdSrc=data.hlsHd,rtmpHdSrc=data.rtmpHd;if(1==_this4.playType)_this4.html='<video id="player" autoplay muted poster=\'\' controls playsInline webkit-playsinline src="'+rtmpHdSrc+'" style="width:100%; height:100%;"></video>',setTimeout(function(){_this4.myVideo.xPlayer=new EZUIKit.EZUIPlayer(player),_this4.myVideo.xPlayer.play()},1e3);else if(0==_this4.playType){var playHtml='<video id="myPlayer'+_this4.selected+"\" muted autoplay poster='' controls playsInline webkit-playsinline src=\""+hlsHdSrc+'" style="width:100%; height:100%;"></video>';document.getElementById("my-video"+_this4.selected).innerHTML=playHtml,_this4.$nextTick(function(){data.hlsHd,_this4.myVideo["myPlayer"+_this4.selected]=new EZUIKit.EZUIPlayer("myPlayer"+_this4.selected),setTimeout(function(){_this4.myVideo["myPlayer"+_this4.selected].play()},150),_this4.VideoList.push(_this4.myVideo["myPlayer"+_this4.selected])})}_this4.guanbilong()}})},splitView:function(e){for(var t in this.myVideo)this.myVideo[t].stop();this.divNum=e,this.selected=1,this.selectEquip(this.id,this.jktype,this.activeIndex)},selectVideo:function(e){this.selected=e},checkPlayType:function(e){for(var t in this.playType=e,this.myVideo)this.myVideo[t].stop();this.myVideo,this.selectEquip(this.id,this.jktype,this.activeIndex)},copyPicUrl:function(){document.getElementById("picUrl").select(),0==document.getElementsByClassName("el-message").length&&this.$message({showClose:!0,message:"手动复制,在浏览器打开,另存为"})},addConfirm:function(){var e=this;this.equipmentNumber,""==this.equipmentID?0==document.getElementsByClassName("el-message").length&&this.$message({message:"设备ID不能为空",type:"warning",duration:1500}):""==this.equipmentNumber?0==document.getElementsByClassName("el-message").length&&this.$message({message:"通道号不能为空",type:"warning",duration:1500}):""==this.FluoriteClouduserID?0==document.getElementsByClassName("el-message").length&&this.$message({message:"萤石云账号ID不能为空",type:"warning",duration:1500}):""!==this.equipmentID&&""!==this.equipmentNumber&&this.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.add_camera",data:this.qs.stringify({device_id:this.equipmentID,camera_channel:this.equipmentNumber,camera_playback:1==this.playback?1:0,account_id:this.FluoriteClouduserID})}).then(function(t){""==t.data.message&&(0==document.getElementsByClassName("el-message").length&&e.$message({message:"添加成功",type:"success",duration:1500}),e.equipmentID="",e.equipmentNumber="",e.playback=!1,e.addEquipment=!1,e.getJkList())})},addEquip:function(){this.addEquipment=!0},handleClose:function(){this.addEquipment=!1},addConfirmSIM:function(){var e=this;this.bangDsimId,this.bangDsimoptions,null==this.bangDsimId?0==document.getElementsByClassName("el-message").length&&this.$message({message:"设备ID不能为空",type:"warning",duration:1500}):""==this.equipmentValue?0==document.getElementsByClassName("el-message").length&&this.$message({message:"iccid不能为空",type:"warning",duration:1500}):""!==this.bangDsimId&&""!==this.equipmentValue&&this.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.add_camera_sim",data:this.qs.stringify({device_id:this.equipmentOptions[this.bangDsimId].label,iccid:this.equipmentValue})}).then(function(t){1==t.data.data?(0==document.getElementsByClassName("el-message").length&&e.$message({type:"success",message:"sim卡绑定成功",duration:1500}),e.bangDsimId="",e.equipmentValue="",e.playback=!1,e.addEquipmentA=!1):0==document.getElementsByClassName("el-message").length&&e.$message({type:"error",message:t.data.message,duration:1500})}).catch(function(t){0==document.getElementsByClassName("el-message").length&&e.$message({type:"error",message:"sim卡绑定失败",duration:1500})}),this.equipmentID,this.equipmentValue,this.playback},addCancel:function(){this.equipmentID="",this.equipmentValue="",this.playback=!1,0==document.getElementsByClassName("el-message").length&&this.$message({type:"info",message:"取消添加"}),this.input3=""},playBackSubmit:function(){var e=this;this.$refs.backFormRef.validate(function(t){if(!t)return!1;var a=new Date(e.backForm.time[0]),i=new Date(e.backForm.time[1]),n="",l="";function s(e){return e<10&&(e="0"+e),e}n=n+a.getFullYear()+s(a.getMonth()+1)+s(a.getDate())+s(a.getHours())+s(a.getMinutes())+s(a.getSeconds()),l=l+i.getFullYear()+s(i.getMonth()+1)+s(i.getDate())+s(i.getHours())+s(i.getMinutes())+s(i.getSeconds()),document.getElementById("playWind")||(document.getElementById("videoBack").innerHTML='<div id="playWind"></div>');var r="ezopen://open.ys7.com/"+e.id+"/"+e.backForm.aisle+".local.rec?begin="+n+"&end="+l;e.playback=new EZUIKit.EZUIPlayer({id:"playWind",autoplay:!0,url:r,accessToken:e.accessToken,decoderPath:"static/js/",width:560,height:460})})},palyBackClose:function(){this.$refs.backFormRef.resetFields(),this.playback.stop(),document.getElementById("videoBack").innerHTML=""},loadAll:function(){for(var e=this.Idlist,t=[],a=0;a<e.length;a++){var i={};i.value=e[a].device_id,i.name=""==e[a].device_name?"暂无设备名称":e[a].device_name,t.push(i)}return t},querySearchAsync:function(e,t){var a=this.restaurants,i=e?a.filter(this.createStateFilter(e)):a;clearTimeout(this.timeout),this.timeout=setTimeout(function(){t(i)},3e3*Math.random())},createStateFilter:function(e){return function(t){return 0===t.value.toLowerCase().indexOf(e.toLowerCase())}},handleSelect:function(e){this.idName=e.value,this.getJkList()},axiosList:function(){this.idName=this.state,this.getJkList()},bindingSIM:function(){this.addEquipmentA=!0},simsearch:function(e){var t=this;this.equipmentIDlist=[],""!=e&&this.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.list_camera",data:this.qs.stringify({device_id:e})}).then(function(e){for(var a=e.data.data.data,i=0;i<a.length;i++){var n={label:a[i].device_id,value:i};t.equipmentIDlist.push(n)}})},simsearchB:function(e){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.list_camera",data:this.qs.stringify({device_id:e})}).then(function(e){var a=e.data.data.data;a[0].sim,t.equipmentValue=a[0].sim})},simidchangae:function(e){this.equipmentID=this.equipmentIDlist[e].label,this.simsearchB(this.equipmentIDlist[e].label)},simidchangaeB:function(e){this.equipmentOptions,this.equipmentID=this.equipmentOptions[e].label,this.simsearchB(this.equipmentOptions[e].label)},inquireSIM:function(){this.addEquipmentB=!0},addEquipmentBfirm:function(){var e=this;if(""==this.equipmentValue)0==document.getElementsByClassName("el-message").length&&this.$message({type:"info",message:"请输入正确的iccid"});else{var t=this.qs.stringify({iccid:this.equipmentValue});this.simloading=!0,this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.send_control.sim_query",data:t}).then(function(t){if(e.simloading=!1,t.data,e.code=t.data.data.code,e.code,1==t.data.data.code){if("OK"==t.data.data.data.message)e.sim=t.data.data.data.data,e.sim,"TEST_READY_NAME"==e.sim.deviceStatus?a="可测试":"INVENTORY_NAME"==e.sim.deviceStatus?a="库存":"ACTIVATION_READY_NAME"==e.sim.deviceStatus?a="可激活":"ACTIVATED_NAME"==e.sim.deviceStatus?a="已激活":"DEACTIVATED_NAME"==e.sim.deviceStatus?a="已停卡":"RETIRED_NAME"==e.sim.deviceStatus?a="已销卡":"PURGED_NAME"==e.sim.deviceStatus&&(a="已清除"),e.sim.deviceStatus=a;else 0==document.getElementsByClassName("el-message").length&&e.$message({type:"info",message:"查询失败"});e.simCodeVisible=!0}else if(2==t.data.data.code){if(t.data.data.data,""==t.data.data.data.msg){var a,i=t.data.data.data.data;if(i)0==i.account_status?a="未知":1==i.account_status?a="测试期":2==i.account_status?a="沉默期":3==i.account_status?a="使用中":4==i.account_status?a="停机":5==i.account_status?a="停机保号":6==i.account_status?a="预销号":7==i.account_status&&(a="销号"),e.sim={iccid:i.iccid,account_status:a,data_plan:i.data_plan,data_usage:i.data_usage,expiry_date:i.expiry_date},e.sim;else 0==document.getElementsByClassName("el-message").length&&e.$message({type:"info",message:"查询失败"})}else 0==document.getElementsByClassName("el-message").length&&e.$message({type:"info",message:"查询失败"});e.simCodeVisible=!0}else 0==document.getElementsByClassName("el-message").length&&e.$message({type:"info",message:"暂无查询数据"})}).catch(function(e){})}},addEquipmentBCancel:function(){},next:function(e){1==e&&this.FluoriteClouduserUserID(),this.stepIndex=e},FluoriteClouduserAdd:function(){var e=this;if(""==this.FluoriteClouduser)0==document.getElementsByClassName("el-message").length&&this.$message({message:"账号不能为空,请填写!",type:"warning",duration:1500});else if(""==this.salesman)0==document.getElementsByClassName("el-message").length&&this.$message({message:"业务员不能为空,请填写!",type:"warning",duration:1500});else if(""==this.tokenData)0==document.getElementsByClassName("el-message").length&&this.$message({message:"token不能为空,请填写!",type:"warning",duration:1500});else if(""==this.secretKey)0==document.getElementsByClassName("el-message").length&&this.$message({message:"appkey不能为空,请填写!",type:"warning",duration:1500});else if(""==this.furtiveData)0==document.getElementsByClassName("el-message").length&&this.$message({message:"appSecret不能为空,请填写!",type:"warning",duration:1500});else{var t=this.qs.stringify({account:this.FluoriteClouduser,salesman:this.salesman,app_token:this.tokenData,app_key:this.secretKey,app_secret:this.furtiveData,account_type:"1"});this.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.add_camera_account",data:t}).then(function(t){1==t.data.data?(0==document.getElementsByClassName("el-message").length&&e.$message({message:"添加萤石云账号成功!",type:"success",duration:1500}),e.addEquipment=!1):0==document.getElementsByClassName("el-message").length&&e.$message({message:"添加萤石云账号失败",type:"warning",duration:1500})}).catch(function(t){0==document.getElementsByClassName("el-message").length&&e.$message({message:"添加萤石云账号失败",type:"warning",duration:1500})})}},FluoriteClouduserUserID:function(){var e=this,t=this.qs.stringify({account:"",salesman:""});this.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.see_camera_account",data:t}).then(function(t){if(t.data.data,0!==t.data.data.length){for(var a=t.data.data,i=[],n=0;n<a.length;n++){var l={};l.value=a[n].id,l.label=a[n].account,i.push(l)}e.userNameID=i}}).catch(function(e){})},remoteMethod:function(e){var t=this;this.$axios({url:"/api/api_gateway?method=camera.camera_manage.list_camera",method:"POST",data:this.qs.stringify({device_id:e})}).then(function(e){e.data.data.data,t.bangDsimoptions=[];for(var a=e.data.data.data,i=0;i<a.length;i++)t.bangDsimoptions.push({value:i,label:a[i].device_id,iccid:a[i].sim})})},bangDsimIdselect:function(e){this.equipmentValue=this.bangDsimoptions[e].iccid,""==this.bangDsimoptions[e].iccid&&0==document.getElementsByClassName("el-message").length&&this.$message({message:"该设备尚未绑定sim卡!",type:"warning"})},guanbilong:function(){var e=this;this.longtimetf=!1,this.monthitortime&&clearTimeout(this.monthitortime),this.monthitortime=setTimeout(function(){e.longtimetf=!0},18e5)},toplay:function(e){this.$router.push("/index/playback?id="+e)},setjk:function(e){this.jkcondialogVisible=!0,this.jkconinfo.name=e.device_name,this.jkconinfo.device_id=e.device_id,this.jkconinfo.onoff=e.off_on,this.jkconinfo.statetime=e.status_time,this.jkconinfo.endtime=e.end_time},jkprimary:function(){var e=this;this.$refs.ruleForm.validate(function(t){if(!t)return!1;e.$axios({method:"POST",url:"/api/api_gateway?method=camera.camera_manage.camera_config",data:e.qs.stringify({device_id:e.jkconinfo.device_id,start_time:e.jkconinfo.statetime,end_time:e.jkconinfo.endtime,off_on:e.jkconinfo.onoff,device_name:e.jkconinfo.name})}).then(function(t){t.data.data?(0==document.getElementsByClassName("el-message").length&&e.$message.success("指令下发成功"),e.jkcondialogVisible=!1):0==document.getElementsByClassName("el-message").length&&e.$message.error(t.data.message)})})}},watch:{addEquipment:function(e){0==e&&(this.equipmentID="",this.equipmentValue="",this.playback=!1,this.equipmentNumber="",this.FluoriteClouduserID="",this.FluoriteClouduser="",this.salesman="",this.tokenData="",this.secretKey="",this.furtiveData="",this.stepIndex=0)}}}}},["NHnr"]);
  2. //# sourceMappingURL=app.7ac7f944c6fa22904ce3.js.map