Commit be202117 authored by 郭铭瑶's avatar 郭铭瑶 🤘

安全排查撒点&档案增加设施设备和拓展信息

parent 953d7502
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2016,4 +2016,4 @@ PERFORMANCE OF THIS SOFTWARE. ...@@ -2016,4 +2016,4 @@ PERFORMANCE OF THIS SOFTWARE.
* https://clipboardjs.com/ * https://clipboardjs.com/
* *
* Licensed MIT © Zeno Rocha * Licensed MIT © Zeno Rocha
*/(function(t,e){(function(n,o){t.exports=o()})(Cd,function(){return function(){var r={134:function(i,a,s){s.d(a,{default:function(){return I}});var l=s(279),u=s.n(l),c=s(370),d=s.n(c),f=s(817),h=s.n(f);function p(k){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(z){return typeof z}:p=function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},p(k)}function v(k,$){if(!(k instanceof $))throw new TypeError("Cannot call a class as a function")}function g(k,$){for(var z=0;z<$.length;z++){var U=$[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(k,U.key,U)}}function m(k,$,z){return $&&g(k.prototype,$),z&&g(k,z),k}var y=function(){function k($){v(this,k),this.resolveOptions($),this.initSelection()}return m(k,[{key:"resolveOptions",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=z.action,this.container=z.container,this.emitter=z.emitter,this.target=z.target,this.text=z.text,this.trigger=z.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var z=document.documentElement.getAttribute("dir")==="rtl";this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[z?"right":"left"]="-9999px";var U=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(U,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var z=this,U=this.createFakeElement();this.fakeHandlerCallback=function(){return z.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(U),this.selectedText=h()(U),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=h()(this.target),this.copyText()}},{key:"copyText",value:function(){var z;try{z=document.execCommand(this.action)}catch(U){z=!1}this.handleResult(z)}},{key:"handleResult",value:function(z){this.emitter.emit(z?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=z,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(z){if(z!==void 0)if(z&&p(z)==="object"&&z.nodeType===1){if(this.action==="copy"&&z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(z.hasAttribute("readonly")||z.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=z}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),k}(),b=y;function x(k){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(z){return typeof z}:x=function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},x(k)}function S(k,$){if(!(k instanceof $))throw new TypeError("Cannot call a class as a function")}function w(k,$){for(var z=0;z<$.length;z++){var U=$[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(k,U.key,U)}}function _(k,$,z){return $&&w(k.prototype,$),z&&w(k,z),k}function T(k,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create($&&$.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),$&&C(k,$)}function C(k,$){return C=Object.setPrototypeOf||function(U,ee){return U.__proto__=ee,U},C(k,$)}function A(k){var $=R();return function(){var U=L(k),ee;if($){var ae=L(this).constructor;ee=Reflect.construct(U,arguments,ae)}else ee=U.apply(this,arguments);return M(this,ee)}}function M(k,$){return $&&(x($)==="object"||typeof $=="function")?$:D(k)}function D(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function R(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(k){return!1}}function L(k){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(z){return z.__proto__||Object.getPrototypeOf(z)},L(k)}function E(k,$){var z="data-clipboard-".concat(k);if(!!$.hasAttribute(z))return $.getAttribute(z)}var O=function(k){T(z,k);var $=A(z);function z(U,ee){var ae;return S(this,z),ae=$.call(this),ae.resolveOptions(ee),ae.listenClick(U),ae}return _(z,[{key:"resolveOptions",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ee.action=="function"?ee.action:this.defaultAction,this.target=typeof ee.target=="function"?ee.target:this.defaultTarget,this.text=typeof ee.text=="function"?ee.text:this.defaultText,this.container=x(ee.container)==="object"?ee.container:document.body}},{key:"listenClick",value:function(ee){var ae=this;this.listener=d()(ee,"click",function(oe){return ae.onClick(oe)})}},{key:"onClick",value:function(ee){var ae=ee.delegateTarget||ee.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new b({action:this.action(ae),target:this.target(ae),text:this.text(ae),container:this.container,trigger:ae,emitter:this})}},{key:"defaultAction",value:function(ee){return E("action",ee)}},{key:"defaultTarget",value:function(ee){var ae=E("target",ee);if(ae)return document.querySelector(ae)}},{key:"defaultText",value:function(ee){return E("text",ee)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],ae=typeof ee=="string"?[ee]:ee,oe=!!document.queryCommandSupported;return ae.forEach(function(Pe){oe=oe&&!!document.queryCommandSupported(Pe)}),oe}}]),z}(u()),I=O},828:function(i){var a=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(u,c){for(;u&&u.nodeType!==a;){if(typeof u.matches=="function"&&u.matches(c))return u;u=u.parentNode}}i.exports=l},438:function(i,a,s){var l=s(828);function u(f,h,p,v,g){var m=d.apply(this,arguments);return f.addEventListener(p,m,g),{destroy:function(){f.removeEventListener(p,m,g)}}}function c(f,h,p,v,g){return typeof f.addEventListener=="function"?u.apply(null,arguments):typeof p=="function"?u.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(m){return u(m,h,p,v,g)}))}function d(f,h,p,v){return function(g){g.delegateTarget=l(g.target,h),g.delegateTarget&&v.call(f,g)}}i.exports=c},879:function(i,a){a.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},a.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||a.node(s[0]))},a.string=function(s){return typeof s=="string"||s instanceof String},a.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}},370:function(i,a,s){var l=s(879),u=s(438);function c(p,v,g){if(!p&&!v&&!g)throw new Error("Missing required arguments");if(!l.string(v))throw new TypeError("Second argument must be a String");if(!l.fn(g))throw new TypeError("Third argument must be a Function");if(l.node(p))return d(p,v,g);if(l.nodeList(p))return f(p,v,g);if(l.string(p))return h(p,v,g);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(p,v,g){return p.addEventListener(v,g),{destroy:function(){p.removeEventListener(v,g)}}}function f(p,v,g){return Array.prototype.forEach.call(p,function(m){m.addEventListener(v,g)}),{destroy:function(){Array.prototype.forEach.call(p,function(m){m.removeEventListener(v,g)})}}}function h(p,v,g){return u(document.body,p,v,g)}i.exports=c},817:function(i){function a(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var u=s.hasAttribute("readonly");u||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),u||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var c=window.getSelection(),d=document.createRange();d.selectNodeContents(s),c.removeAllRanges(),c.addRange(d),l=c.toString()}return l}i.exports=a},279:function(i){function a(){}a.prototype={on:function(s,l,u){var c=this.e||(this.e={});return(c[s]||(c[s]=[])).push({fn:l,ctx:u}),this},once:function(s,l,u){var c=this;function d(){c.off(s,d),l.apply(u,arguments)}return d._=l,this.on(s,d,u)},emit:function(s){var l=[].slice.call(arguments,1),u=((this.e||(this.e={}))[s]||[]).slice(),c=0,d=u.length;for(c;c<d;c++)u[c].fn.apply(u[c].ctx,l);return this},off:function(s,l){var u=this.e||(this.e={}),c=u[s],d=[];if(c&&l)for(var f=0,h=c.length;f<h;f++)c[f].fn!==l&&c[f].fn._!==l&&d.push(c[f]);return d.length?u[s]=d:delete u[s],this}},i.exports=a,i.exports.TinyEmitter=a}},n={};function o(i){if(n[i])return n[i].exports;var a=n[i]={exports:{}};return r[i](a,a.exports,o),a.exports}return function(){o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,{a}),a}}(),function(){o.d=function(i,a){for(var s in a)o.o(a,s)&&!o.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:a[s]})}}(),function(){o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)}}(),o(134)}().default})})(OO);var Lce=zz(OO.exports);function $x(t){return($x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var $ce=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,zce={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(){var t,e=this.jsonValue,r=$ce.test(e);return this.expand?(t={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},r?(e='<a href="'.concat(e,'" target="_blank" class="jv-link">').concat(e,"</a>"),t.innerHTML='"'.concat(e.toString(),'"')):t.innerText='"'.concat(e.toString(),'"')):t={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},P("span",{},[this.canExtend&&P("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),P("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),P("span",t)])},__file:"src/Components/types/json-string.vue"},Bce={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(){return P("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:this.jsonValue===null?"null":"undefined"})},__file:"src/Components/types/json-undefined.vue"},Fce={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(){var t=Number.isInteger(this.jsonValue);return P("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t,"jv-number-float":!t},innerText:this.jsonValue.toString()})},__file:"src/Components/types/json-number.vue"},Nce={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(){return P("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:this.jsonValue.toString()})},__file:"src/Components/types/json-boolean.vue"},Hce={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,sort:Boolean,previewMode:Boolean},data:function(){return{value:{}}},computed:{ordered:function(){var t=this;if(!this.sort)return this.value;var e={};return Object.keys(this.value).sort().forEach(function(r){e[r]=t.value[r]}),e}},watch:{jsonValue:function(t){this.setValue(t)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(t){var e=this;setTimeout(function(){e.value=t},0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(e){var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(){var t=[];if(this.previewMode||this.keyName||t.push(P("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),t.push(P("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"})),this.expand){for(var e in this.ordered)if(this.ordered.hasOwnProperty(e)){var r=this.ordered[e];t.push(P(zx,{key:e,style:{display:this.expand?void 0:"none"},sort:this.sort,keyName:e,depth:this.depth+1,value:r,previewMode:this.previewMode}))}}return!this.expand&&Object.keys(this.value).length&&t.push(P("span",{style:{display:this.expand?"none":void 0},class:{"jv-ellipsis":!0},onClick:this.toggle,title:"click to reveal object content (keys: ".concat(Object.keys(this.ordered).join(", "),")"),innerText:"..."})),t.push(P("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),P("span",t)},__file:"src/Components/types/json-object.vue"},Vce={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean,previewMode:Boolean},data:function(){return{value:[]}},watch:{jsonValue:function(t){this.setValue(t)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(t){var e=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;r===0&&(this.value=[]),setTimeout(function(){t.length>r&&(e.value.push(t[r]),e.setValue(t,r+1))},0)},toggle:function(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch(e){var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(){var t=this,e=[];return this.previewMode||this.keyName||e.push(P("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(P("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["})),this.expand&&this.value.forEach(function(r,n){e.push(P(zx,{key:n,style:{display:t.expand?void 0:"none"},sort:t.sort,depth:t.depth+1,value:r,previewMode:t.previewMode}))}),!this.expand&&this.value.length&&e.push(P("span",{style:{display:void 0},class:{"jv-ellipsis":!0},onClick:this.toggle,title:"click to reveal ".concat(this.value.length," hidden items"),innerText:"..."})),e.push(P("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),P("span",e)},__file:"src/Components/types/json-array.vue"},Wce={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(){return P("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:this.jsonValue.toString()},innerHTML:"&lt;function&gt;"})},__file:"src/Components/types/json-function.vue"},jce={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(){var t=this.jsonValue,e=this.timeformat;return P("span",{class:{"jv-item":!0,"jv-string":!0},innerText:'"'.concat(e(t),'"')})},__file:"src/Components/types/json-date.vue"},zx={name:"JsonBox",inject:["expandDepth"],props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0},previewMode:Boolean},data:function(){return{expand:!0}},mounted:function(){this.expand=this.previewMode||!(this.depth>=this.expandDepth)},methods:{toggle:function(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch(e){var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(){var t,e=this,r=[];this.value===null||this.value===void 0?t=Bce:Array.isArray(this.value)?t=Vce:Object.prototype.toString.call(this.value)==="[object Date]"?t=jce:$x(this.value)==="object"?t=Hce:typeof this.value=="number"?t=Fce:typeof this.value=="string"?t=zce:typeof this.value=="boolean"?t=Nce:typeof this.value=="function"&&(t=Wce);var n=this.keyName&&this.value&&(Array.isArray(this.value)||$x(this.value)==="object"&&Object.prototype.toString.call(this.value)!=="[object Date]");return!this.previewMode&&n&&r.push(P("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),this.keyName&&r.push(P("span",{class:{"jv-key":!0},innerText:"".concat(this.keyName,":")})),r.push(P(t,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand,previewMode:this.previewMode,"onUpdate:expand":function(o){e.expand=o}})),P("div",{class:{"jv-node":!0,"jv-key-node":Boolean(this.keyName)&&!n,toggle:!this.previewMode&&n}},r)},__file:"src/Components/json-box.vue"},Bp={name:"JsonViewer",components:{JsonBox:zx},props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expanded:{type:Boolean,default:!1},expandDepth:{type:Number,default:1},copyable:{type:[Boolean,Object],default:!1},sort:{type:Boolean,default:!1},boxed:{type:Boolean,default:!1},theme:{type:String,default:"jv-light"},timeformat:{type:Function,default:function(t){return t.toLocaleString()}},previewMode:{type:Boolean,default:!1}},provide:function(){return{expandDepth:this.expandDepth,timeformat:this.timeformat}},data:function(){return{copied:!1,expandableCode:!1,expandCode:this.expanded}},computed:{jvClass:function(){return"jv-container "+this.theme+(this.boxed?" boxed":"")},copyText:function(){var t=this.copyable,e=t.copyText;return{copyText:e||"copy",copiedText:t.copiedText||"copied!",timeout:t.timeout||2e3,align:t.align}}},watch:{value:function(){this.onResized()}},mounted:function(){var t,e,r,n,o=this;this.debounceResized=(t=this.debResized.bind(this),e=200,n=Date.now(),function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];Date.now()-n<e&&r&&clearTimeout(r),r=setTimeout(function(){t.apply(void 0,a)},e),n=Date.now()}),this.boxed&&this.$refs.jsonBox&&(this.onResized(),this.$refs.jsonBox.$el.addEventListener("resized",this.onResized,!0)),this.copyable&&new Lce(this.$refs.clip,{text:function(){return JSON.stringify(o.value,null,2)}}).on("success",function(i){o.onCopied(i)})},methods:{onResized:function(){this.debounceResized()},debResized:function(){var t=this;this.$nextTick(function(){t.$refs.jsonBox&&(t.$refs.jsonBox.$el.clientHeight>=250?t.expandableCode=!0:t.expandableCode=!1)})},onCopied:function(t){var e=this;this.copied||(this.copied=!0,setTimeout(function(){e.copied=!1},this.copyText.timeout),this.$emit("copied",t))},toggleExpandCode:function(){this.expandCode=!this.expandCode}}};Bp.render=function(t,e,r,n,o,i){var a=$$("json-box");return Ga(),Ya("div",{class:i.jvClass},[r.copyable?(Ga(),Ya("div",{key:0,class:"jv-tooltip ".concat(i.copyText.align||"right")},[Et("span",{ref:"clip",class:["jv-button",{copied:o.copied}]},[vt(t.$slots,"copy",{copied:o.copied},function(){return[Ka(fL(o.copied?i.copyText.copiedText:i.copyText.copyText),1)]})],2)],2)):Y1("v-if",!0),Et("div",{class:["jv-code",{open:o.expandCode,boxed:r.boxed}]},[Et(a,{ref:"jsonBox",value:r.value,sort:r.sort,"preview-mode":r.previewMode},null,8,["value","sort","preview-mode"])],2),o.expandableCode&&r.boxed?(Ga(),Ya("div",{key:1,class:"jv-more",onClick:e[1]||(e[1]=function(){return i.toggleExpandCode&&i.toggleExpandCode.apply(i,arguments)})},[Et("span",{class:["jv-toggle",{open:!!o.expandCode}]},null,2)])):Y1("v-if",!0)],2)},Bp.__file="src/Components/json-viewer.vue";var Wde={install:function(t){t.component(Bp.name,Bp)}};export{GC as $,Ka as A,Ti as B,ts as C,rde as D,Y1 as E,$t as F,Zr as G,uv as H,Rl as I,po as J,Et as K,XL as L,Gp as M,Yce as N,Kce as O,nde as P,Qce as Q,qce as R,_de as S,xr as T,ode as U,fr as V,pde as W,gde as X,mde as Y,m7 as Z,cde as _,$$ as a,dde as a0,hde as a1,Rj as a2,ede as a3,ude as a4,Al as a5,yde as a6,vde as a7,fde as a8,bde as a9,Ode as aA,Jce as aB,tde as aC,Wde as aD,wde as aE,DU as aF,xde as aa,Gce as ab,sde as ac,lde as ad,Sde as ae,ade as af,Cde as ag,Pde as ah,Tde as ai,Ade as aj,$n as ak,$de as al,Vde as am,Fde as an,Bde as ao,zde as ap,Nde as aq,Hde as ar,Mde as as,Pb as at,Dde as au,kde as av,Lde as aw,Rde as ax,Ede as ay,Ide as az,t$ as b,Ya as c,he as d,G1 as e,Xce as f,Zce as g,V as h,Le as i,P as j,vt as k,ja as l,ke as m,Yp as n,Ga as o,rt as p,qa as q,J as r,Xr as s,fL as t,ho as u,L$ as v,gt as w,qr as x,Qr as y,Nn as z}; */(function(t,e){(function(n,o){t.exports=o()})(Cd,function(){return function(){var r={134:function(i,a,s){s.d(a,{default:function(){return I}});var l=s(279),u=s.n(l),c=s(370),d=s.n(c),f=s(817),h=s.n(f);function p(k){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(z){return typeof z}:p=function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},p(k)}function v(k,$){if(!(k instanceof $))throw new TypeError("Cannot call a class as a function")}function g(k,$){for(var z=0;z<$.length;z++){var U=$[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(k,U.key,U)}}function m(k,$,z){return $&&g(k.prototype,$),z&&g(k,z),k}var y=function(){function k($){v(this,k),this.resolveOptions($),this.initSelection()}return m(k,[{key:"resolveOptions",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=z.action,this.container=z.container,this.emitter=z.emitter,this.target=z.target,this.text=z.text,this.trigger=z.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var z=document.documentElement.getAttribute("dir")==="rtl";this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[z?"right":"left"]="-9999px";var U=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(U,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var z=this,U=this.createFakeElement();this.fakeHandlerCallback=function(){return z.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(U),this.selectedText=h()(U),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=h()(this.target),this.copyText()}},{key:"copyText",value:function(){var z;try{z=document.execCommand(this.action)}catch(U){z=!1}this.handleResult(z)}},{key:"handleResult",value:function(z){this.emitter.emit(z?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=z,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(z){if(z!==void 0)if(z&&p(z)==="object"&&z.nodeType===1){if(this.action==="copy"&&z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(z.hasAttribute("readonly")||z.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=z}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),k}(),b=y;function x(k){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(z){return typeof z}:x=function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},x(k)}function S(k,$){if(!(k instanceof $))throw new TypeError("Cannot call a class as a function")}function w(k,$){for(var z=0;z<$.length;z++){var U=$[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(k,U.key,U)}}function _(k,$,z){return $&&w(k.prototype,$),z&&w(k,z),k}function T(k,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create($&&$.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),$&&C(k,$)}function C(k,$){return C=Object.setPrototypeOf||function(U,ee){return U.__proto__=ee,U},C(k,$)}function A(k){var $=R();return function(){var U=L(k),ee;if($){var ae=L(this).constructor;ee=Reflect.construct(U,arguments,ae)}else ee=U.apply(this,arguments);return M(this,ee)}}function M(k,$){return $&&(x($)==="object"||typeof $=="function")?$:D(k)}function D(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function R(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(k){return!1}}function L(k){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(z){return z.__proto__||Object.getPrototypeOf(z)},L(k)}function E(k,$){var z="data-clipboard-".concat(k);if(!!$.hasAttribute(z))return $.getAttribute(z)}var O=function(k){T(z,k);var $=A(z);function z(U,ee){var ae;return S(this,z),ae=$.call(this),ae.resolveOptions(ee),ae.listenClick(U),ae}return _(z,[{key:"resolveOptions",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ee.action=="function"?ee.action:this.defaultAction,this.target=typeof ee.target=="function"?ee.target:this.defaultTarget,this.text=typeof ee.text=="function"?ee.text:this.defaultText,this.container=x(ee.container)==="object"?ee.container:document.body}},{key:"listenClick",value:function(ee){var ae=this;this.listener=d()(ee,"click",function(oe){return ae.onClick(oe)})}},{key:"onClick",value:function(ee){var ae=ee.delegateTarget||ee.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new b({action:this.action(ae),target:this.target(ae),text:this.text(ae),container:this.container,trigger:ae,emitter:this})}},{key:"defaultAction",value:function(ee){return E("action",ee)}},{key:"defaultTarget",value:function(ee){var ae=E("target",ee);if(ae)return document.querySelector(ae)}},{key:"defaultText",value:function(ee){return E("text",ee)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],ae=typeof ee=="string"?[ee]:ee,oe=!!document.queryCommandSupported;return ae.forEach(function(Pe){oe=oe&&!!document.queryCommandSupported(Pe)}),oe}}]),z}(u()),I=O},828:function(i){var a=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(u,c){for(;u&&u.nodeType!==a;){if(typeof u.matches=="function"&&u.matches(c))return u;u=u.parentNode}}i.exports=l},438:function(i,a,s){var l=s(828);function u(f,h,p,v,g){var m=d.apply(this,arguments);return f.addEventListener(p,m,g),{destroy:function(){f.removeEventListener(p,m,g)}}}function c(f,h,p,v,g){return typeof f.addEventListener=="function"?u.apply(null,arguments):typeof p=="function"?u.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(m){return u(m,h,p,v,g)}))}function d(f,h,p,v){return function(g){g.delegateTarget=l(g.target,h),g.delegateTarget&&v.call(f,g)}}i.exports=c},879:function(i,a){a.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},a.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||a.node(s[0]))},a.string=function(s){return typeof s=="string"||s instanceof String},a.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}},370:function(i,a,s){var l=s(879),u=s(438);function c(p,v,g){if(!p&&!v&&!g)throw new Error("Missing required arguments");if(!l.string(v))throw new TypeError("Second argument must be a String");if(!l.fn(g))throw new TypeError("Third argument must be a Function");if(l.node(p))return d(p,v,g);if(l.nodeList(p))return f(p,v,g);if(l.string(p))return h(p,v,g);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(p,v,g){return p.addEventListener(v,g),{destroy:function(){p.removeEventListener(v,g)}}}function f(p,v,g){return Array.prototype.forEach.call(p,function(m){m.addEventListener(v,g)}),{destroy:function(){Array.prototype.forEach.call(p,function(m){m.removeEventListener(v,g)})}}}function h(p,v,g){return u(document.body,p,v,g)}i.exports=c},817:function(i){function a(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var u=s.hasAttribute("readonly");u||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),u||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var c=window.getSelection(),d=document.createRange();d.selectNodeContents(s),c.removeAllRanges(),c.addRange(d),l=c.toString()}return l}i.exports=a},279:function(i){function a(){}a.prototype={on:function(s,l,u){var c=this.e||(this.e={});return(c[s]||(c[s]=[])).push({fn:l,ctx:u}),this},once:function(s,l,u){var c=this;function d(){c.off(s,d),l.apply(u,arguments)}return d._=l,this.on(s,d,u)},emit:function(s){var l=[].slice.call(arguments,1),u=((this.e||(this.e={}))[s]||[]).slice(),c=0,d=u.length;for(c;c<d;c++)u[c].fn.apply(u[c].ctx,l);return this},off:function(s,l){var u=this.e||(this.e={}),c=u[s],d=[];if(c&&l)for(var f=0,h=c.length;f<h;f++)c[f].fn!==l&&c[f].fn._!==l&&d.push(c[f]);return d.length?u[s]=d:delete u[s],this}},i.exports=a,i.exports.TinyEmitter=a}},n={};function o(i){if(n[i])return n[i].exports;var a=n[i]={exports:{}};return r[i](a,a.exports,o),a.exports}return function(){o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,{a}),a}}(),function(){o.d=function(i,a){for(var s in a)o.o(a,s)&&!o.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:a[s]})}}(),function(){o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)}}(),o(134)}().default})})(OO);var Lce=zz(OO.exports);function $x(t){return($x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var $ce=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,zce={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(){var t,e=this.jsonValue,r=$ce.test(e);return this.expand?(t={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},r?(e='<a href="'.concat(e,'" target="_blank" class="jv-link">').concat(e,"</a>"),t.innerHTML='"'.concat(e.toString(),'"')):t.innerText='"'.concat(e.toString(),'"')):t={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},P("span",{},[this.canExtend&&P("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),P("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),P("span",t)])},__file:"src/Components/types/json-string.vue"},Bce={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(){return P("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:this.jsonValue===null?"null":"undefined"})},__file:"src/Components/types/json-undefined.vue"},Fce={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(){var t=Number.isInteger(this.jsonValue);return P("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t,"jv-number-float":!t},innerText:this.jsonValue.toString()})},__file:"src/Components/types/json-number.vue"},Nce={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(){return P("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:this.jsonValue.toString()})},__file:"src/Components/types/json-boolean.vue"},Hce={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,sort:Boolean,previewMode:Boolean},data:function(){return{value:{}}},computed:{ordered:function(){var t=this;if(!this.sort)return this.value;var e={};return Object.keys(this.value).sort().forEach(function(r){e[r]=t.value[r]}),e}},watch:{jsonValue:function(t){this.setValue(t)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(t){var e=this;setTimeout(function(){e.value=t},0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(e){var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(){var t=[];if(this.previewMode||this.keyName||t.push(P("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),t.push(P("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"})),this.expand){for(var e in this.ordered)if(this.ordered.hasOwnProperty(e)){var r=this.ordered[e];t.push(P(zx,{key:e,style:{display:this.expand?void 0:"none"},sort:this.sort,keyName:e,depth:this.depth+1,value:r,previewMode:this.previewMode}))}}return!this.expand&&Object.keys(this.value).length&&t.push(P("span",{style:{display:this.expand?"none":void 0},class:{"jv-ellipsis":!0},onClick:this.toggle,title:"click to reveal object content (keys: ".concat(Object.keys(this.ordered).join(", "),")"),innerText:"..."})),t.push(P("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),P("span",t)},__file:"src/Components/types/json-object.vue"},Vce={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean,previewMode:Boolean},data:function(){return{value:[]}},watch:{jsonValue:function(t){this.setValue(t)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(t){var e=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;r===0&&(this.value=[]),setTimeout(function(){t.length>r&&(e.value.push(t[r]),e.setValue(t,r+1))},0)},toggle:function(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch(e){var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(){var t=this,e=[];return this.previewMode||this.keyName||e.push(P("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(P("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["})),this.expand&&this.value.forEach(function(r,n){e.push(P(zx,{key:n,style:{display:t.expand?void 0:"none"},sort:t.sort,depth:t.depth+1,value:r,previewMode:t.previewMode}))}),!this.expand&&this.value.length&&e.push(P("span",{style:{display:void 0},class:{"jv-ellipsis":!0},onClick:this.toggle,title:"click to reveal ".concat(this.value.length," hidden items"),innerText:"..."})),e.push(P("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),P("span",e)},__file:"src/Components/types/json-array.vue"},Wce={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(){return P("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:this.jsonValue.toString()},innerHTML:"&lt;function&gt;"})},__file:"src/Components/types/json-function.vue"},jce={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(){var t=this.jsonValue,e=this.timeformat;return P("span",{class:{"jv-item":!0,"jv-string":!0},innerText:'"'.concat(e(t),'"')})},__file:"src/Components/types/json-date.vue"},zx={name:"JsonBox",inject:["expandDepth"],props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0},previewMode:Boolean},data:function(){return{expand:!0}},mounted:function(){this.expand=this.previewMode||!(this.depth>=this.expandDepth)},methods:{toggle:function(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch(e){var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(){var t,e=this,r=[];this.value===null||this.value===void 0?t=Bce:Array.isArray(this.value)?t=Vce:Object.prototype.toString.call(this.value)==="[object Date]"?t=jce:$x(this.value)==="object"?t=Hce:typeof this.value=="number"?t=Fce:typeof this.value=="string"?t=zce:typeof this.value=="boolean"?t=Nce:typeof this.value=="function"&&(t=Wce);var n=this.keyName&&this.value&&(Array.isArray(this.value)||$x(this.value)==="object"&&Object.prototype.toString.call(this.value)!=="[object Date]");return!this.previewMode&&n&&r.push(P("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),this.keyName&&r.push(P("span",{class:{"jv-key":!0},innerText:"".concat(this.keyName,":")})),r.push(P(t,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand,previewMode:this.previewMode,"onUpdate:expand":function(o){e.expand=o}})),P("div",{class:{"jv-node":!0,"jv-key-node":Boolean(this.keyName)&&!n,toggle:!this.previewMode&&n}},r)},__file:"src/Components/json-box.vue"},Bp={name:"JsonViewer",components:{JsonBox:zx},props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expanded:{type:Boolean,default:!1},expandDepth:{type:Number,default:1},copyable:{type:[Boolean,Object],default:!1},sort:{type:Boolean,default:!1},boxed:{type:Boolean,default:!1},theme:{type:String,default:"jv-light"},timeformat:{type:Function,default:function(t){return t.toLocaleString()}},previewMode:{type:Boolean,default:!1}},provide:function(){return{expandDepth:this.expandDepth,timeformat:this.timeformat}},data:function(){return{copied:!1,expandableCode:!1,expandCode:this.expanded}},computed:{jvClass:function(){return"jv-container "+this.theme+(this.boxed?" boxed":"")},copyText:function(){var t=this.copyable,e=t.copyText;return{copyText:e||"copy",copiedText:t.copiedText||"copied!",timeout:t.timeout||2e3,align:t.align}}},watch:{value:function(){this.onResized()}},mounted:function(){var t,e,r,n,o=this;this.debounceResized=(t=this.debResized.bind(this),e=200,n=Date.now(),function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];Date.now()-n<e&&r&&clearTimeout(r),r=setTimeout(function(){t.apply(void 0,a)},e),n=Date.now()}),this.boxed&&this.$refs.jsonBox&&(this.onResized(),this.$refs.jsonBox.$el.addEventListener("resized",this.onResized,!0)),this.copyable&&new Lce(this.$refs.clip,{text:function(){return JSON.stringify(o.value,null,2)}}).on("success",function(i){o.onCopied(i)})},methods:{onResized:function(){this.debounceResized()},debResized:function(){var t=this;this.$nextTick(function(){t.$refs.jsonBox&&(t.$refs.jsonBox.$el.clientHeight>=250?t.expandableCode=!0:t.expandableCode=!1)})},onCopied:function(t){var e=this;this.copied||(this.copied=!0,setTimeout(function(){e.copied=!1},this.copyText.timeout),this.$emit("copied",t))},toggleExpandCode:function(){this.expandCode=!this.expandCode}}};Bp.render=function(t,e,r,n,o,i){var a=$$("json-box");return Ga(),Ya("div",{class:i.jvClass},[r.copyable?(Ga(),Ya("div",{key:0,class:"jv-tooltip ".concat(i.copyText.align||"right")},[Et("span",{ref:"clip",class:["jv-button",{copied:o.copied}]},[vt(t.$slots,"copy",{copied:o.copied},function(){return[Ka(fL(o.copied?i.copyText.copiedText:i.copyText.copyText),1)]})],2)],2)):Y1("v-if",!0),Et("div",{class:["jv-code",{open:o.expandCode,boxed:r.boxed}]},[Et(a,{ref:"jsonBox",value:r.value,sort:r.sort,"preview-mode":r.previewMode},null,8,["value","sort","preview-mode"])],2),o.expandableCode&&r.boxed?(Ga(),Ya("div",{key:1,class:"jv-more",onClick:e[1]||(e[1]=function(){return i.toggleExpandCode&&i.toggleExpandCode.apply(i,arguments)})},[Et("span",{class:["jv-toggle",{open:!!o.expandCode}]},null,2)])):Y1("v-if",!0)],2)},Bp.__file="src/Components/json-viewer.vue";var Wde={install:function(t){t.component(Bp.name,Bp)}};export{GC as $,Ka as A,Ti as B,ts as C,rde as D,Y1 as E,$t as F,Zr as G,uv as H,Rl as I,po as J,Et as K,XL as L,Gp as M,Yce as N,Kce as O,nde as P,Qce as Q,qce as R,_de as S,xr as T,ode as U,fr as V,pde as W,gde as X,mde as Y,m7 as Z,cde as _,$$ as a,dde as a0,hde as a1,Rj as a2,ede as a3,ude as a4,Al as a5,yde as a6,bde as a7,fde as a8,xde as a9,Ode as aA,Jce as aB,tde as aC,Wde as aD,wde as aE,DU as aF,vde as aa,Gce as ab,sde as ac,lde as ad,Sde as ae,ade as af,Cde as ag,Pde as ah,Tde as ai,Ade as aj,$n as ak,$de as al,Vde as am,Fde as an,Bde as ao,zde as ap,Nde as aq,Hde as ar,Mde as as,Pb as at,Dde as au,kde as av,Lde as aw,Rde as ax,Ede as ay,Ide as az,t$ as b,Ya as c,he as d,G1 as e,Xce as f,Zce as g,V as h,Le as i,P as j,vt as k,ja as l,ke as m,Yp as n,Ga as o,rt as p,qa as q,J as r,Xr as s,fL as t,ho as u,L$ as v,gt as w,qr as x,Qr as y,Nn as z};
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
<link rel="icon" href="./favicon.ico" /> <link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>静安智慧房管</title> <title>静安智慧房管</title>
<script type="module" crossorigin src="./assets/index.ef0d55ee.js"></script> <script type="module" crossorigin src="./assets/index.d6d19cd8.js"></script>
<link rel="modulepreload" href="./assets/vendor.4690f6ba.js"> <link rel="modulepreload" href="./assets/vendor.d3136cff.js">
<link rel="stylesheet" href="./assets/vendor.db35e2cd.css"> <link rel="stylesheet" href="./assets/vendor.db35e2cd.css">
<link rel="stylesheet" href="./assets/index.64a73471.css"> <link rel="stylesheet" href="./assets/index.beb19b4d.css">
</head> </head>
<body> <body>
......
...@@ -28,7 +28,7 @@ const showLoading = computed(() => store.state.showLoading) ...@@ -28,7 +28,7 @@ const showLoading = computed(() => store.state.showLoading)
const themeOverrides: GlobalThemeOverrides = { const themeOverrides: GlobalThemeOverrides = {
common: { common: {
fontSizeTiny: '.08rem', fontSizeTiny: '.08rem',
fontSizeSmall: '.09rem', fontSizeSmall: '.1rem',
fontSize: '.1rem', fontSize: '.1rem',
primaryColor: '#2F86EE', primaryColor: '#2F86EE',
borderColor: '#2F86EE', borderColor: '#2F86EE',
...@@ -69,7 +69,7 @@ html, body ...@@ -69,7 +69,7 @@ html, body
width 100% width 100%
height 100% height 100%
user-select none user-select none
font-size 16vh font-size 15vh
line-height 1.5 line-height 1.5
p p
margin 0 margin 0
......
...@@ -20,4 +20,7 @@ export default { ...@@ -20,4 +20,7 @@ export default {
CHECK_ORDERS: '/service-documents-ddd/public/checkOrder/pages', // 检查单列表 CHECK_ORDERS: '/service-documents-ddd/public/checkOrder/pages', // 检查单列表
BX: '/service-documents-ddd/public/reportBX', // 物业报修 BX: '/service-documents-ddd/public/reportBX', // 物业报修
TS: '/service-documents-ddd/public/reportTS', // 物业投诉 TS: '/service-documents-ddd/public/reportTS', // 物业投诉
EQUIPMENT: '/service-basicdatasync-ddd/public/community/facEqus', // 设施设备
EXPAND_INFO:
'/service-basicdatasync-ddd/public/tbl_community/entity/{id}/ext', // 小区拓展信息
} }
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
v-if="addition.value || addition.value === 0" v-if="addition.value || addition.value === 0"
class="count orange-count" class="count orange-count"
:value="addition.value" :value="addition.value"
:decimal="addition.decimal || 0"
/> />
<span v-if="addition.unit">{{ addition.unit }}</span> <span v-if="addition.unit">{{ addition.unit }}</span>
<!-- <img src="@/assets/images/title-dec.png" /> --> <!-- <img src="@/assets/images/title-dec.png" /> -->
...@@ -52,6 +53,7 @@ export interface AdditionProp { ...@@ -52,6 +53,7 @@ export interface AdditionProp {
name?: string name?: string
value?: number value?: number
unit?: string unit?: string
decimal?: number
} }
export default defineComponent({ export default defineComponent({
name: 'MySub', name: 'MySub',
......
...@@ -7,8 +7,8 @@ export function toPoints(options: LayerOption) { ...@@ -7,8 +7,8 @@ export function toPoints(options: LayerOption) {
const iconSize = Array.isArray(size) const iconSize = Array.isArray(size)
? new SMap.Size(...size) ? new SMap.Size(...size)
: new SMap.Size(size, size) : new SMap.Size(size, size)
const x = item.minx || item.maxx || item.X || item.x || item.gpsx const x = item.minx || item.x || item.maxx || item.X || item.gpsx
const y = item.miny || item.maxy || item.Y || item.y || item.gpsy const y = item.miny || item.y || item.maxy || item.Y || item.gpsy
if ((x !== 0 && !x) || (y !== 0 && !y)) { if ((x !== 0 && !x) || (y !== 0 && !y)) {
console.error(`add point: 非法的坐标[${x}, ${y}] 存在于数据: `, item) console.error(`add point: 非法的坐标[${x}, ${y}] 存在于数据: `, item)
} }
......
...@@ -192,7 +192,7 @@ const _hoisted_8$a = { ...@@ -192,7 +192,7 @@ const _hoisted_8$a = {
class: "count" class: "count"
}; };
const _hoisted_9$9 = /*#__PURE__*/createTextVNode("%"); const _hoisted_9$8 = /*#__PURE__*/createTextVNode("%");
const _hoisted_10$8 = /*#__PURE__*/_withScopeId$8(() => /*#__PURE__*/createElementVNode("p", null, "完成率", -1)); const _hoisted_10$8 = /*#__PURE__*/_withScopeId$8(() => /*#__PURE__*/createElementVNode("p", null, "完成率", -1));
const _config$5 = { const _config$5 = {
...@@ -275,7 +275,7 @@ function setup$f(__props) { ...@@ -275,7 +275,7 @@ function setup$f(__props) {
value: 63 value: 63
})]), _hoisted_6$b]), _hoisted_7$a, createElementVNode("div", null, [createElementVNode("p", _hoisted_8$a, [createVNode(_component_m_count, { })]), _hoisted_6$b]), _hoisted_7$a, createElementVNode("div", null, [createElementVNode("p", _hoisted_8$a, [createVNode(_component_m_count, {
value: 76 value: 76
}), _hoisted_9$9]), _hoisted_10$8])])])])]), }), _hoisted_9$8]), _hoisted_10$8])])])])]),
_: 1 _: 1
}, 8, ["title"]); }, 8, ["title"]);
}; };
...@@ -13847,7 +13847,7 @@ const _hoisted_8$9 = { ...@@ -13847,7 +13847,7 @@ const _hoisted_8$9 = {
class: "count" class: "count"
}; };
const _hoisted_9$8 = /*#__PURE__*/_withScopeId$6(() => /*#__PURE__*/createElementVNode("span", null, "个", -1)); const _hoisted_9$7 = /*#__PURE__*/_withScopeId$6(() => /*#__PURE__*/createElementVNode("span", null, "个", -1));
const _hoisted_10$7 = /*#__PURE__*/_withScopeId$6(() => /*#__PURE__*/createElementVNode("p", null, "小区", -1)); const _hoisted_10$7 = /*#__PURE__*/_withScopeId$6(() => /*#__PURE__*/createElementVNode("p", null, "小区", -1));
...@@ -13895,7 +13895,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) { ...@@ -13895,7 +13895,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
value: 100 value: 100
}), _hoisted_5$9]), _hoisted_6$9]), _hoisted_7$9, createElementVNode("div", null, [createElementVNode("p", _hoisted_8$9, [createVNode(_component_m_count, { }), _hoisted_5$9]), _hoisted_6$9]), _hoisted_7$9, createElementVNode("div", null, [createElementVNode("p", _hoisted_8$9, [createVNode(_component_m_count, {
value: 180 value: 180
}), _hoisted_9$8]), _hoisted_10$7])])]), createElementVNode("div", null, [_hoisted_11$7, createElementVNode("div", null, [createElementVNode("div", null, [createElementVNode("p", _hoisted_12$4, [createVNode(_component_m_count, { }), _hoisted_9$7]), _hoisted_10$7])])]), createElementVNode("div", null, [_hoisted_11$7, createElementVNode("div", null, [createElementVNode("div", null, [createElementVNode("p", _hoisted_12$4, [createVNode(_component_m_count, {
value: 169 value: 169
}), _hoisted_13$4]), _hoisted_14$4]), _hoisted_15$4, createElementVNode("div", null, [createElementVNode("p", _hoisted_16$3, [createVNode(_component_m_count, { }), _hoisted_13$4]), _hoisted_14$4]), _hoisted_15$4, createElementVNode("div", null, [createElementVNode("p", _hoisted_16$3, [createVNode(_component_m_count, {
value: 156 value: 156
...@@ -13937,7 +13937,7 @@ const _hoisted_7$8 = /*#__PURE__*/createTextVNode("已完成 "); ...@@ -13937,7 +13937,7 @@ const _hoisted_7$8 = /*#__PURE__*/createTextVNode("已完成 ");
const _hoisted_8$8 = { const _hoisted_8$8 = {
class: "rate" class: "rate"
}; };
const _hoisted_9$7 = { const _hoisted_9$6 = {
class: "des" class: "des"
}; };
...@@ -13985,7 +13985,7 @@ function setup$c(__props) { ...@@ -13985,7 +13985,7 @@ function setup$c(__props) {
"rail-color": "#0091FF", "rail-color": "#0091FF",
value: 30, value: 30,
"show-info": false "show-info": false
}), createElementVNode("div", _hoisted_9$7, [createElementVNode("p", null, [_hoisted_10$6, createVNode(_component_m_count, { }), createElementVNode("div", _hoisted_9$6, [createElementVNode("p", null, [_hoisted_10$6, createVNode(_component_m_count, {
class: "count", class: "count",
style: { style: {
"color": "#f7b500" "color": "#f7b500"
...@@ -14039,7 +14039,7 @@ const _hoisted_7$7 = /*#__PURE__*/createTextVNode("% "); ...@@ -14039,7 +14039,7 @@ const _hoisted_7$7 = /*#__PURE__*/createTextVNode("% ");
const _hoisted_8$7 = /*#__PURE__*/_withScopeId$5(() => /*#__PURE__*/createElementVNode("p", null, "日查", -1)); const _hoisted_8$7 = /*#__PURE__*/_withScopeId$5(() => /*#__PURE__*/createElementVNode("p", null, "日查", -1));
const _hoisted_9$6 = /*#__PURE__*/createTextVNode("% "); const _hoisted_9$5 = /*#__PURE__*/createTextVNode("% ");
const _hoisted_10$5 = /*#__PURE__*/_withScopeId$5(() => /*#__PURE__*/createElementVNode("p", null, "双周查", -1)); const _hoisted_10$5 = /*#__PURE__*/_withScopeId$5(() => /*#__PURE__*/createElementVNode("p", null, "双周查", -1));
...@@ -14089,7 +14089,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) { ...@@ -14089,7 +14089,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
}), _hoisted_7$7]), _hoisted_8$7]), createElementVNode("div", null, [createElementVNode("span", null, [createVNode(_component_m_count, { }), _hoisted_7$7]), _hoisted_8$7]), createElementVNode("div", null, [createElementVNode("span", null, [createVNode(_component_m_count, {
class: "count", class: "count",
value: 82 value: 82
}), _hoisted_9$6]), _hoisted_10$5]), createElementVNode("div", null, [createElementVNode("span", null, [createVNode(_component_m_count, { }), _hoisted_9$5]), _hoisted_10$5]), createElementVNode("div", null, [createElementVNode("span", null, [createVNode(_component_m_count, {
class: "count", class: "count",
value: 76 value: 76
}), _hoisted_11$5]), _hoisted_12$3])])]), createElementVNode("div", _hoisted_13$3, [_hoisted_14$3, createElementVNode("div", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(new Array(12), (_, i) => { }), _hoisted_11$5]), _hoisted_12$3])])]), createElementVNode("div", _hoisted_13$3, [_hoisted_14$3, createElementVNode("div", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(new Array(12), (_, i) => {
...@@ -14130,7 +14130,7 @@ const _hoisted_7$6 = /*#__PURE__*/createTextVNode("/"); ...@@ -14130,7 +14130,7 @@ const _hoisted_7$6 = /*#__PURE__*/createTextVNode("/");
const _hoisted_8$6 = /*#__PURE__*/createTextVNode(" 个 "); const _hoisted_8$6 = /*#__PURE__*/createTextVNode(" 个 ");
const _hoisted_9$5 = { const _hoisted_9$4 = {
class: "bar" class: "bar"
}; };
const _hoisted_10$4 = { const _hoisted_10$4 = {
...@@ -14206,7 +14206,7 @@ function setup$b(__props) { ...@@ -14206,7 +14206,7 @@ function setup$b(__props) {
value: 4 value: 4
}), _hoisted_7$6, createVNode(_component_m_count, { }), _hoisted_7$6, createVNode(_component_m_count, {
value: 18 value: 18
})]), _hoisted_8$6])]), createElementVNode("div", _hoisted_9$5, [(openBlock(), createElementBlock(Fragment, null, renderList(list, item => { })]), _hoisted_8$6])]), createElementVNode("div", _hoisted_9$4, [(openBlock(), createElementBlock(Fragment, null, renderList(list, item => {
return createElementVNode("div", { return createElementVNode("div", {
key: item.name, key: item.name,
style: normalizeStyle({ style: normalizeStyle({
...@@ -14525,7 +14525,7 @@ const _hoisted_8$5 = /*#__PURE__*/_withScopeId$4(() => /*#__PURE__*/createElemen ...@@ -14525,7 +14525,7 @@ const _hoisted_8$5 = /*#__PURE__*/_withScopeId$4(() => /*#__PURE__*/createElemen
class: "company" class: "company"
}, "上海北航置业发展有限公司", -1)); }, "上海北航置业发展有限公司", -1));
const _hoisted_9$4 = { const _hoisted_9$3 = {
class: "info" class: "info"
}; };
...@@ -14585,7 +14585,7 @@ function setup$8(__props) { ...@@ -14585,7 +14585,7 @@ function setup$8(__props) {
class: "orange-count", class: "orange-count",
value: 13.2, value: 13.2,
decimal: 2 decimal: 2
}, null, 8, ["value"]), _hoisted_7$5])]), _hoisted_8$5, createElementVNode("div", _hoisted_9$4, [createElementVNode("div", null, [_hoisted_10$3, createElementVNode("p", null, [createVNode(_component_m_count, { }, null, 8, ["value"]), _hoisted_7$5])]), _hoisted_8$5, createElementVNode("div", _hoisted_9$3, [createElementVNode("div", null, [_hoisted_10$3, createElementVNode("p", null, [createVNode(_component_m_count, {
class: "count", class: "count",
value: 199 value: 199
}), _hoisted_11$3])]), createElementVNode("div", null, [_hoisted_12$2, createElementVNode("p", null, [createVNode(_component_m_count, { }), _hoisted_11$3])]), createElementVNode("div", null, [_hoisted_12$2, createElementVNode("p", null, [createVNode(_component_m_count, {
...@@ -14637,7 +14637,7 @@ const _hoisted_8$4 = /*#__PURE__*/_withScopeId$3(() => /*#__PURE__*/createElemen ...@@ -14637,7 +14637,7 @@ const _hoisted_8$4 = /*#__PURE__*/_withScopeId$3(() => /*#__PURE__*/createElemen
class: "company" class: "company"
}, "上海北航置业发展有限公司", -1)); }, "上海北航置业发展有限公司", -1));
const _hoisted_9$3 = { const _hoisted_9$2 = {
class: "info" class: "info"
}; };
...@@ -14764,7 +14764,7 @@ function setup$7(__props) { ...@@ -14764,7 +14764,7 @@ function setup$7(__props) {
class: "orange-count", class: "orange-count",
value: 13.2, value: 13.2,
decimal: 2 decimal: 2
}, null, 8, ["value"]), _hoisted_7$4])]), _hoisted_8$4, createElementVNode("div", _hoisted_9$3, [createElementVNode("div", null, [_hoisted_10$2, createElementVNode("p", null, [createVNode(_component_m_count, { }, null, 8, ["value"]), _hoisted_7$4])]), _hoisted_8$4, createElementVNode("div", _hoisted_9$2, [createElementVNode("div", null, [_hoisted_10$2, createElementVNode("p", null, [createVNode(_component_m_count, {
class: "count", class: "count",
value: 199 value: 199
}), _hoisted_11$2])]), createElementVNode("div", null, [_hoisted_12$1, createElementVNode("p", null, [createVNode(_component_m_count, { }), _hoisted_11$2])]), createElementVNode("div", null, [_hoisted_12$1, createElementVNode("p", null, [createVNode(_component_m_count, {
...@@ -15051,7 +15051,7 @@ const _hoisted_7$3 = /*#__PURE__*/_withScopeId$2(() => /*#__PURE__*/createElemen ...@@ -15051,7 +15051,7 @@ const _hoisted_7$3 = /*#__PURE__*/_withScopeId$2(() => /*#__PURE__*/createElemen
const _hoisted_8$3 = /*#__PURE__*/_withScopeId$2(() => /*#__PURE__*/createElementVNode("span", null, "租金", -1)); const _hoisted_8$3 = /*#__PURE__*/_withScopeId$2(() => /*#__PURE__*/createElementVNode("span", null, "租金", -1));
const _hoisted_9$2 = { const _hoisted_9$1 = {
class: "row" class: "row"
}; };
...@@ -15108,7 +15108,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { ...@@ -15108,7 +15108,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
}, },
color: "#F7D600", color: "#F7D600",
"background-color": "#0091FF" "background-color": "#0091FF"
})])]), createElementVNode("div", _hoisted_9$2, [createElementVNode("div", null, [createVNode(_component_m_sub, null, { })])]), createElementVNode("div", _hoisted_9$1, [createElementVNode("div", null, [createVNode(_component_m_sub, null, {
default: withCtx(() => [_hoisted_10$1]), default: withCtx(() => [_hoisted_10$1]),
_: 1 _: 1
}), createVNode(_component_m_progress, { }), createVNode(_component_m_progress, {
...@@ -15562,7 +15562,7 @@ styleInject(css_248z$4); ...@@ -15562,7 +15562,7 @@ styleInject(css_248z$4);
script$4.__scopeId = "data-v-72a8e10b"; script$4.__scopeId = "data-v-72a8e10b";
const _withScopeId = n => (pushScopeId("data-v-2b156870"), n = n(), popScopeId(), n); const _withScopeId = n => (pushScopeId("data-v-3dfd0e1e"), n = n(), popScopeId(), n);
const _hoisted_1$3 = { const _hoisted_1$3 = {
class: "wrapper" class: "wrapper"
...@@ -15588,7 +15588,7 @@ const _hoisted_8$2 = { ...@@ -15588,7 +15588,7 @@ const _hoisted_8$2 = {
class: "count" class: "count"
}; };
const _hoisted_9$1 = /*#__PURE__*/createTextVNode("%"); const _hoisted_9 = /*#__PURE__*/createTextVNode("% ");
const _hoisted_10 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/createElementVNode("p", null, "完成率", -1)); const _hoisted_10 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/createElementVNode("p", null, "完成率", -1));
...@@ -15614,7 +15614,10 @@ const _config$3 = { ...@@ -15614,7 +15614,10 @@ const _config$3 = {
title: '物业监管', title: '物业监管',
row: 2, row: 2,
apis: { apis: {
main: '/service-documents-ddd/public/checkOrder/operatingIndex' main: '/service-documents-ddd/public/checkOrder/operatingIndex',
capital: '/service-documents-ddd/public/maintenance/count/amt',
amount: '/service-documents-ddd/public/houseContinuedWarnings',
list: '/service-documents-ddd/public/buildingWarnings/countByStreet'
} }
}; };
const __default__$3 = _config$3; const __default__$3 = _config$3;
...@@ -15655,7 +15658,49 @@ function setup$3(__props) { ...@@ -15655,7 +15658,49 @@ function setup$3(__props) {
rectifyRatio rectifyRatio
}; };
}); });
ajax$1.get({
url: _config$3.apis.capital
}).then(res => {
var _res$data2;
const {
tranAmt = 0
} = (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.content) || {};
capital.value = tranAmt / 10000;
}); });
ajax$1.get({
url: _config$3.apis.amount
}).then(res => {
var _res$data3;
const {
yjmpzSum = 0,
//门牌幢
yjxqSum = 0,
//小区
yjfhSum = 0 //分户
} = (res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.content) || {};
list.value = [{
name: '续筹预警',
value: yjfhSum
}, {
name: '涉及门牌',
value: yjmpzSum
}, {
name: '涉及小区',
value: yjxqSum
}];
});
ajax$1.get({
url: _config$3.apis.list
}).then(res => {
var _res$data4;
barData.value.source = (res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.content) || [];
});
});
const capital = ref(0);
const info = ref({ const info = ref({
alreadyCheckCount: 0, alreadyCheckCount: 0,
rectifyRatio: 0 rectifyRatio: 0
...@@ -15672,13 +15717,13 @@ function setup$3(__props) { ...@@ -15672,13 +15717,13 @@ function setup$3(__props) {
}]); }]);
const list = ref([{ const list = ref([{
name: '续筹预警', name: '续筹预警',
value: 47520 value: 0
}, { }, {
name: '涉及门牌', name: '涉及门牌',
value: 3960 value: 0
}, { }, {
name: '涉及小区', name: '涉及小区',
value: 45 value: 0
}]); }]);
const partys = [{ const partys = [{
name: '业委会党小组', name: '业委会党小组',
...@@ -15690,47 +15735,24 @@ function setup$3(__props) { ...@@ -15690,47 +15735,24 @@ function setup$3(__props) {
name: '物业公司党小组', name: '物业公司党小组',
value: 167 value: 167
}]; }];
const barData = { const barData = ref({
dimensions: [{ dimensions: [{
name: 'street', name: 'streetName',
displayName: '街道' displayName: '街道'
}, { }, {
name: 'value', name: 'num',
displayName: '数量' displayName: '数量'
}], }],
source: [{ source: []
street: '街道1', });
value: 20
}, {
street: '街道2',
value: 20
}, {
street: '街道3',
value: 30
}, {
street: '街道4',
value: 40
}, {
street: '街道5',
value: 50
}, {
street: '街道6',
value: 50
}, {
street: '街道7',
value: 50
}, {
street: '街道8',
value: 20
}]
};
const barOption = { const barOption = {
legend: false, legend: false,
yAxis: { yAxis: {
minInterval: 1 minInterval: 1
}, },
grid: { grid: {
bottom: 0 bottom: 0,
height: '100%'
}, },
xAxis: [{ xAxis: [{
type: 'category', type: 'category',
...@@ -15773,29 +15795,32 @@ function setup$3(__props) { ...@@ -15773,29 +15795,32 @@ function setup$3(__props) {
}), 128))]), createElementVNode("div", _hoisted_3$3, [_hoisted_4$2, createElementVNode("div", null, [createElementVNode("div", null, [createElementVNode("p", _hoisted_5$2, [createVNode(_component_m_count, { }), 128))]), createElementVNode("div", _hoisted_3$3, [_hoisted_4$2, createElementVNode("div", null, [createElementVNode("div", null, [createElementVNode("p", _hoisted_5$2, [createVNode(_component_m_count, {
value: info.value.alreadyCheckCount value: info.value.alreadyCheckCount
}, null, 8, ["value"])]), _hoisted_6$2]), _hoisted_7$2, createElementVNode("div", null, [createElementVNode("p", _hoisted_8$2, [createVNode(_component_m_count, { }, null, 8, ["value"])]), _hoisted_6$2]), _hoisted_7$2, createElementVNode("div", null, [createElementVNode("p", _hoisted_8$2, [createVNode(_component_m_count, {
value: info.value.rectifyRatio value: info.value.rectifyRatio,
}, null, 8, ["value"]), _hoisted_9$1]), _hoisted_10])])])]), createVNode(_component_m_sub, { decimal: 2
}, null, 8, ["value"]), _hoisted_9]), _hoisted_10])])])]), createVNode(_component_m_sub, {
addition: { addition: {
value: 1684, value: capital.value,
unit: '万元' unit: '万元',
decimal: 2
} }
}, { }, {
default: withCtx(() => [_hoisted_11]), default: withCtx(() => [_hoisted_11]),
_: 1 _: 1
}), createElementVNode("div", _hoisted_12, [createElementVNode("div", null, [createElementVNode("p", null, toDisplayString(list.value[0].name), 1), createVNode(_component_m_count, { }, 8, ["addition"]), createElementVNode("div", _hoisted_12, [createElementVNode("div", null, [createElementVNode("p", null, toDisplayString(list.value[0].name), 1), createVNode(_component_m_count, {
class: "orange-count", class: "orange-count",
value: list.value[0].value value: list.value[0].value
}, null, 8, ["value"]), _hoisted_13]), (openBlock(true), createElementBlock(Fragment, null, renderList(list.value.slice(1), item => { }, null, 8, ["value"]), _hoisted_13]), (openBlock(true), createElementBlock(Fragment, null, renderList(list.value.slice(1), item => {
return openBlock(), createElementBlock("div", { return openBlock(), createElementBlock("div", {
key: item.name key: item.name
}, [createVNode(_component_m_count, { }, [createVNode(_component_m_count, {
class: "count",
value: item.value value: item.value
}, null, 8, ["value"]), createElementVNode("p", null, toDisplayString(item.name), 1)]); }, null, 8, ["value"]), createElementVNode("p", null, toDisplayString(item.name), 1)]);
}), 128))]), createElementVNode("div", _hoisted_14, [barData.source.length > 0 ? (openBlock(), createBlock(_component_m_bar, { }), 128))]), createElementVNode("div", _hoisted_14, [barData.value.source.length > 0 ? (openBlock(), createBlock(_component_m_bar, {
key: 0, key: 0,
dataset: barData, dataset: barData.value,
option: barOption option: barOption
})) : (openBlock(), createBlock(_component_m_empty, { }, null, 8, ["dataset"])) : (openBlock(), createBlock(_component_m_empty, {
key: 1 key: 1
}))]), createVNode(_component_m_sub, null, { }))]), createVNode(_component_m_sub, null, {
default: withCtx(() => [_hoisted_15]), default: withCtx(() => [_hoisted_15]),
...@@ -15817,10 +15842,10 @@ var script$3 = /*#__PURE__*/defineComponent({ ...__default__$3, ...@@ -15817,10 +15842,10 @@ var script$3 = /*#__PURE__*/defineComponent({ ...__default__$3,
setup: setup$3 setup: setup$3
}); });
var css_248z$3 = ".wrapper[data-v-2b156870] {\n display: flex;\n padding-bottom: 0.04rem;\n}\n.wrapper .left[data-v-2b156870] {\n flex: 1.8;\n}\n.wrapper .right[data-v-2b156870] {\n flex: 1;\n background: rgba(70,83,97,0.4);\n border-radius: 0.04rem;\n box-shadow: 0 0.01rem 0.01rem 0 rgba(255,255,255,0.2) inset;\n box-sizing: border-box;\n margin: 0.06rem 0.06rem 0 0.1rem;\n padding: 0.06rem 0.1rem;\n}\n.wrapper .right >div[data-v-2b156870] {\n display: flex;\n align-items: center;\n margin-top: 0.1rem;\n}\n.wrapper .right >div >div[data-v-2b156870] {\n flex: 1;\n text-align: center;\n}\n.wrapper .right >div >div .count[data-v-2b156870] {\n font-size: 0.12rem;\n color: #edb872;\n font-family: DIN, 'Avenir', Helvetica, Arial, sans-serif;\n font-weight: bold;\n}\n.wrapper .right >div >div >p[data-v-2b156870] {\n color: #ccc;\n}\n.warn[data-v-2b156870] {\n background: rgba(70,83,97,0.4);\n border-radius: 0.04rem;\n box-shadow: 0 0.01rem 0.01rem 0 rgba(255,255,255,0.2) inset;\n box-sizing: border-box;\n padding: 0.05rem 0.1rem;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.warn >div[data-v-2b156870] {\n text-align: center;\n flex: 1;\n position: relative;\n}\n.warn >div p[data-v-2b156870] {\n color: #ccc;\n}\n.warn >div span[data-v-2b156870] {\n font-size: 0.08rem;\n margin-left: 0.05rem;\n color: #ccc;\n}\n.warn >div[data-v-2b156870]:first-child {\n flex: 1.5;\n}\n.warn >div:first-child p[data-v-2b156870] {\n font-size: 0.12rem;\n color: #fff;\n}\n.warn >div[data-v-2b156870]:last-child:before {\n content: '|';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 0;\n}\n.chart[data-v-2b156870] {\n width: 100%;\n height: 0.8rem;\n margin-bottom: 0.03rem;\n}\n.party[data-v-2b156870] {\n display: flex;\n justify-content: space-between;\n text-align: center;\n margin-bottom: 0.04rem;\n}\n.party p[data-v-2b156870] {\n font-size: 0.09rem;\n color: #ccc;\n}\n"; var css_248z$3 = ".wrapper[data-v-3dfd0e1e] {\n display: flex;\n padding-bottom: 0.04rem;\n}\n.wrapper .left[data-v-3dfd0e1e] {\n flex: 1.8;\n}\n.wrapper .right[data-v-3dfd0e1e] {\n flex: 1;\n background: rgba(70,83,97,0.4);\n border-radius: 0.04rem;\n box-shadow: 0 0.01rem 0.01rem 0 rgba(255,255,255,0.2) inset;\n box-sizing: border-box;\n margin: 0.06rem 0.06rem 0 0.1rem;\n padding: 0.06rem 0.1rem;\n}\n.wrapper .right >div[data-v-3dfd0e1e] {\n display: flex;\n align-items: center;\n margin-top: 0.1rem;\n}\n.wrapper .right >div >div[data-v-3dfd0e1e] {\n flex: 1;\n text-align: center;\n}\n.wrapper .right >div >div .count[data-v-3dfd0e1e] {\n font-size: 0.12rem;\n color: #edb872;\n font-family: DIN, 'Avenir', Helvetica, Arial, sans-serif;\n font-weight: bold;\n}\n.wrapper .right >div >div >p[data-v-3dfd0e1e] {\n color: #ccc;\n}\n.warn[data-v-3dfd0e1e] {\n background: rgba(70,83,97,0.4);\n border-radius: 0.04rem;\n box-shadow: 0 0.01rem 0.01rem 0 rgba(255,255,255,0.2) inset;\n box-sizing: border-box;\n padding: 0.05rem 0.1rem;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.warn >div[data-v-3dfd0e1e] {\n text-align: center;\n flex: 1;\n position: relative;\n}\n.warn >div .count[data-v-3dfd0e1e] {\n font-size: 0.12rem;\n}\n.warn >div p[data-v-3dfd0e1e] {\n color: #ccc;\n}\n.warn >div span[data-v-3dfd0e1e] {\n font-size: 0.08rem;\n margin-left: 0.05rem;\n color: #ccc;\n}\n.warn >div[data-v-3dfd0e1e]:first-child {\n flex: 1.5;\n}\n.warn >div:first-child p[data-v-3dfd0e1e] {\n font-size: 0.12rem;\n color: #fff;\n}\n.warn >div[data-v-3dfd0e1e]:last-child:before {\n content: '|';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 0;\n}\n.chart[data-v-3dfd0e1e] {\n width: 100%;\n height: 0.8rem;\n margin-bottom: 0.03rem;\n}\n.party[data-v-3dfd0e1e] {\n display: flex;\n justify-content: space-between;\n text-align: center;\n margin-bottom: 0.04rem;\n}\n.party p[data-v-3dfd0e1e] {\n font-size: 0.09rem;\n color: #ccc;\n}\n";
styleInject(css_248z$3); styleInject(css_248z$3);
script$3.__scopeId = "data-v-2b156870"; script$3.__scopeId = "data-v-3dfd0e1e";
var img$4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAABACAMAAAB83JS9AAABL1BMVEUAAAAAYtQAYNEAY9YAZNoAYNEAat4AY9cAdeMAYNEAYdEAZNMAYNEAYNAAYdEAYdIAYtMAat4AYdEAYNEAYdIAYdEAYdEAYtEAYdEAZNQAZdgAaNYAYNEAYNEAYNEAYdEAYNEAYdEAYdEAYdEAYNEAYtIAYtMAiP8AYdAAYdEAYdEAYNEAYNEAYtMAYNEAYdEAdv////8AYNFJnf8AdPv9/f/k8P9rr//e7f8Adf0Abu8Abetkq/8AaeScyv8Aa+iEvP8DeP8AcvgAcfYAb/Emiv/n8v+t0v9fqf8xkP8rjf8AcPPM5P8jiP8AZ9+Qw/8Gef/1+v/t9f9Sov8MfP/7/P/X6f/A3f+32P+Wx/8TgP8AZdyNwf98uP91tf9tsf9Dmv8dhv/S5v/O5P9WpP+mEhg2AAAAMHRSTlMA/fr9/u8K/gXbhSH18oxKOg/MwJ2XaV1RKhsV6+K3rqR+d21hVyYC1dPGqm9BkzJd9676AAADZElEQVRIx62WaVfiMBSGk5ayCSgKirjvu3NzLWKL7K6guOG+z8z//w1DQEpDaameeT72nIebexPehPx/xseCG9Prw+vTs3NLy+4179iMghwqU+RMzQ76XdWLhRA9Wb2sAUct61kf4mQk2U9c3mh4GRVESnkfSvEJx6UGJfRUoRe6jOGFFVtzYBVlHWzQMhRH7ApvKZgHB7QsBsZ7mqMSPQBnMhgeJFYiKJegH1WKo9aa6FGhPyVZ6q67JcncdOFSZVmcrUKbq62cpVg3vw8F9wADUfN+rmJrQmesB0eim8Fpkzrf3pUUO7vZMXPE7lPdbg0ThjkRljVowtgNCOyx9EmK7QquSgP+zr7o0FZ3LCpw9xxM5I0dGpA84KRaXI1OeltqDKuOast9EiY13xpvyAMO6vFly90XygYIZwwz9uo9a5MGE1kc4uoMqvbqx1VPtYyRhrmieMBehaeP1v6KKtDhhvoLs7aqOC7xWEQJWcQDUS3u7Lf5tFXzvNkglkT1LzPYs1V1XORT0kT1/Gy3TcFWLWGQkBEKP+hVxTghw67U3NWpGHE4S8iqz40KdRDBGfsFO6NijJAN7FLrhVzuBODzJdfgjX89TF+kK2Ad0zaqonrCGEvVocCaVKBYuOVfCpdCquICIXNYFtWnx+Pjd4Dz3HGDQpH/xtHDLmMX4r4u8dOkO/Z6eMtyl1C8YKlK92ka6HOG99kRX2pxj71Bh+cQj6eA7Ki+sHvgPJhXrLUCNY4lJzVtVH015/gmVxOY6dPrY7HZ66E5Jca5Gg37nFQ+4d2HPcauTi3ZRIJ8xkKECxQLzXvoil0bbh4Xv8Kf57DNxdGM38r742vl9NpwNTrVjv+4EcR/WBepTnQ33Lt2DG8SI/59GkDPS/KuDh33LgcclYd/56bLgnueMUEMVkbwwLWZwRgxkQxT1aVZxoCXmFlCn+rOpNKQ5QUjq+5M68tpgbsuTavr4rVmmCIJBbOaU5TVcGqI9CY5grJ9YZ3ibJTYsTIvoU/v/aSVUVkiTiQjIfTlyyBSzVKcnIuSPkwEFURa040OMzWKOLXpJS7wb0XW0HhVe1BanxvyE9ck17D6FSXxKPkeyyGqNvNr2E++yxg+879meIB8nxjmwYMJ8gO8a1jDbfIjxkOWRt23qzg1+g/trepQHNm+xgAAAABJRU5ErkJggg=="; var img$4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAABACAMAAAB83JS9AAABL1BMVEUAAAAAYtQAYNEAY9YAZNoAYNEAat4AY9cAdeMAYNEAYdEAZNMAYNEAYNAAYdEAYdIAYtMAat4AYdEAYNEAYdIAYdEAYdEAYtEAYdEAZNQAZdgAaNYAYNEAYNEAYNEAYdEAYNEAYdEAYdEAYdEAYNEAYtIAYtMAiP8AYdAAYdEAYdEAYNEAYNEAYtMAYNEAYdEAdv////8AYNFJnf8AdPv9/f/k8P9rr//e7f8Adf0Abu8Abetkq/8AaeScyv8Aa+iEvP8DeP8AcvgAcfYAb/Emiv/n8v+t0v9fqf8xkP8rjf8AcPPM5P8jiP8AZ9+Qw/8Gef/1+v/t9f9Sov8MfP/7/P/X6f/A3f+32P+Wx/8TgP8AZdyNwf98uP91tf9tsf9Dmv8dhv/S5v/O5P9WpP+mEhg2AAAAMHRSTlMA/fr9/u8K/gXbhSH18oxKOg/MwJ2XaV1RKhsV6+K3rqR+d21hVyYC1dPGqm9BkzJd9676AAADZElEQVRIx62WaVfiMBSGk5ayCSgKirjvu3NzLWKL7K6guOG+z8z//w1DQEpDaameeT72nIebexPehPx/xseCG9Prw+vTs3NLy+4179iMghwqU+RMzQ76XdWLhRA9Wb2sAUct61kf4mQk2U9c3mh4GRVESnkfSvEJx6UGJfRUoRe6jOGFFVtzYBVlHWzQMhRH7ApvKZgHB7QsBsZ7mqMSPQBnMhgeJFYiKJegH1WKo9aa6FGhPyVZ6q67JcncdOFSZVmcrUKbq62cpVg3vw8F9wADUfN+rmJrQmesB0eim8Fpkzrf3pUUO7vZMXPE7lPdbg0ThjkRljVowtgNCOyx9EmK7QquSgP+zr7o0FZ3LCpw9xxM5I0dGpA84KRaXI1OeltqDKuOast9EiY13xpvyAMO6vFly90XygYIZwwz9uo9a5MGE1kc4uoMqvbqx1VPtYyRhrmieMBehaeP1v6KKtDhhvoLs7aqOC7xWEQJWcQDUS3u7Lf5tFXzvNkglkT1LzPYs1V1XORT0kT1/Gy3TcFWLWGQkBEKP+hVxTghw67U3NWpGHE4S8iqz40KdRDBGfsFO6NijJAN7FLrhVzuBODzJdfgjX89TF+kK2Ad0zaqonrCGEvVocCaVKBYuOVfCpdCquICIXNYFtWnx+Pjd4Dz3HGDQpH/xtHDLmMX4r4u8dOkO/Z6eMtyl1C8YKlK92ka6HOG99kRX2pxj71Bh+cQj6eA7Ki+sHvgPJhXrLUCNY4lJzVtVH015/gmVxOY6dPrY7HZ66E5Jca5Gg37nFQ+4d2HPcauTi3ZRIJ8xkKECxQLzXvoil0bbh4Xv8Kf57DNxdGM38r742vl9NpwNTrVjv+4EcR/WBepTnQ33Lt2DG8SI/59GkDPS/KuDh33LgcclYd/56bLgnueMUEMVkbwwLWZwRgxkQxT1aVZxoCXmFlCn+rOpNKQ5QUjq+5M68tpgbsuTavr4rVmmCIJBbOaU5TVcGqI9CY5grJ9YZ3ibJTYsTIvoU/v/aSVUVkiTiQjIfTlyyBSzVKcnIuSPkwEFURa040OMzWKOLXpJS7wb0XW0HhVe1BanxvyE9ck17D6FSXxKPkeyyGqNvNr2E++yxg+879meIB8nxjmwYMJ8gO8a1jDbfIjxkOWRt23qzg1+g/trepQHNm+xgAAAABJRU5ErkJggg==";
var p1 = img$4; var p1 = img$4;
...@@ -15847,12 +15872,9 @@ const _hoisted_5$1 = { ...@@ -15847,12 +15872,9 @@ const _hoisted_5$1 = {
const _hoisted_6$1 = { const _hoisted_6$1 = {
class: "legend" class: "legend"
}; };
const _hoisted_7$1 = { const _hoisted_7$1 = ["title"];
class: "inner"
};
const _hoisted_8$1 = ["title"];
const _hoisted_9 = /*#__PURE__*/createTextVNode("%"); const _hoisted_8$1 = /*#__PURE__*/createTextVNode("%");
const _config$2 = { const _config$2 = {
name: 'A017', name: 'A017',
title: '安全排查', title: '安全排查',
...@@ -15860,7 +15882,8 @@ const _config$2 = { ...@@ -15860,7 +15882,8 @@ const _config$2 = {
baseUrl: window._base_url, baseUrl: window._base_url,
apis: { apis: {
main: '/service-special-ja-ddd/public/risk/type/statistical', main: '/service-special-ja-ddd/public/risk/type/statistical',
list: '/service-special-ja-ddd/public/wholeBuildingRiskss' list: '/service-special-ja-ddd/public/getBuildingCoordinates' // list: '/service-special-ja-ddd/public/wholeBuildingRiskss',
} }
}; };
const __default__$2 = _config$2; const __default__$2 = _config$2;
...@@ -15953,7 +15976,8 @@ function setup$2(__props) { ...@@ -15953,7 +15976,8 @@ function setup$2(__props) {
})) === null || _await$ajax$get === void 0 ? void 0 : (_await$ajax$get$data = _await$ajax$get.data) === null || _await$ajax$get$data === void 0 ? void 0 : _await$ajax$get$data.content) || []; })) === null || _await$ajax$get === void 0 ? void 0 : (_await$ajax$get$data = _await$ajax$get.data) === null || _await$ajax$get$data === void 0 ? void 0 : _await$ajax$get$data.content) || [];
EventBus.emit('addPoints', { EventBus.emit('addPoints', {
data, data,
icon icon,
size: 12
}); });
} }
...@@ -15984,7 +16008,7 @@ function setup$2(__props) { ...@@ -15984,7 +16008,7 @@ function setup$2(__props) {
key: 0, key: 0,
dataset: pieData, dataset: pieData,
option: pieOption option: pieOption
})) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_6$1, [createElementVNode("div", _hoisted_7$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(pieData.source, (item, i) => { })) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_6$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(pieData.source, (item, i) => {
return openBlock(), createElementBlock("div", { return openBlock(), createElementBlock("div", {
key: item.type key: item.type
}, [createElementVNode("i", { }, [createElementVNode("i", {
...@@ -15992,10 +16016,10 @@ function setup$2(__props) { ...@@ -15992,10 +16016,10 @@ function setup$2(__props) {
style: normalizeStyle(`background:${pieOption.color[i]}`) style: normalizeStyle(`background:${pieOption.color[i]}`)
}, null, 4), createElementVNode("p", { }, null, 4), createElementVNode("p", {
title: item.type title: item.type
}, toDisplayString(item.type), 9, _hoisted_8$1), createElementVNode("span", null, [createVNode(_component_m_count, { }, toDisplayString(item.type), 9, _hoisted_7$1), createElementVNode("span", null, [createVNode(_component_m_count, {
value: item.rate value: item.rate
}, null, 8, ["value"]), _hoisted_9])]); }, null, 8, ["value"]), _hoisted_8$1])]);
}), 128))])])], 64)) : (openBlock(), createBlock(_component_m_empty, { }), 128))])], 64)) : (openBlock(), createBlock(_component_m_empty, {
key: 1 key: 1
}))])]), }))])]),
_: 1 _: 1
...@@ -16007,10 +16031,10 @@ var script$2 = /*#__PURE__*/defineComponent({ ...__default__$2, ...@@ -16007,10 +16031,10 @@ var script$2 = /*#__PURE__*/defineComponent({ ...__default__$2,
setup: setup$2 setup: setup$2
}); });
var css_248z$2 = ".chart-wrapper[data-v-366208e7] {\n display: flex;\n}\n.chart-wrapper .chart[data-v-366208e7] {\n width: 25%;\n height: 1rem;\n}\n.chart-wrapper .legend[data-v-366208e7] {\n flex: 1;\n}\n.chart-wrapper .legend .inner[data-v-366208e7] {\n display: flex;\n flex-wrap: wrap;\n}\n.chart-wrapper .legend .inner >div[data-v-366208e7] {\n display: flex;\n align-items: center;\n width: 48%;\n font-size: 0.08rem;\n}\n.chart-wrapper .legend .inner >div[data-v-366208e7]:nth-of-type(2n) {\n margin-left: 0.05rem;\n}\n.chart-wrapper .legend .inner >div .dot[data-v-366208e7] {\n display: inline-block;\n width: 0.06rem;\n height: 0.06rem;\n border-radius: 50%;\n}\n.chart-wrapper .legend .inner >div p[data-v-366208e7] {\n margin: 0 0.04rem;\n flex: 1;\n color: #ccc;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.summary[data-v-366208e7] {\n display: flex;\n justify-content: space-between;\n margin-bottom: 0.04rem;\n}\n.summary >div[data-v-366208e7] {\n text-align: center;\n cursor: pointer;\n}\n.summary >div[data-v-366208e7]:hover {\n color: #edb872;\n}\n"; var css_248z$2 = ".chart-wrapper[data-v-c43b26b0] {\n display: flex;\n flex: 1;\n}\n.chart-wrapper .chart[data-v-c43b26b0] {\n width: 25%;\n height: 1rem;\n}\n.chart-wrapper .legend[data-v-c43b26b0] {\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n}\n.chart-wrapper .legend >div[data-v-c43b26b0] {\n display: flex;\n align-items: center;\n width: 48%;\n font-size: 0.09rem;\n}\n.chart-wrapper .legend >div[data-v-c43b26b0]:nth-of-type(2n) {\n margin-left: 0.05rem;\n}\n.chart-wrapper .legend >div .dot[data-v-c43b26b0] {\n display: inline-block;\n width: 0.06rem;\n height: 0.06rem;\n border-radius: 50%;\n}\n.chart-wrapper .legend >div p[data-v-c43b26b0] {\n margin: 0 0.04rem;\n flex: 1;\n color: #ccc;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.summary[data-v-c43b26b0] {\n display: flex;\n justify-content: space-between;\n margin: 0.05rem 0;\n}\n.summary >div[data-v-c43b26b0] {\n text-align: center;\n cursor: pointer;\n}\n.summary >div[data-v-c43b26b0]:hover {\n color: #edb872;\n}\n";
styleInject(css_248z$2); styleInject(css_248z$2);
script$2.__scopeId = "data-v-366208e7"; script$2.__scopeId = "data-v-c43b26b0";
var img$1 = "data:image/png;base64,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"; var img$1 = "data:image/png;base64,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";
var ele1 = img$1; var ele1 = img$1;
...@@ -16201,10 +16225,10 @@ var script$1 = /*#__PURE__*/defineComponent({ ...__default__$1, ...@@ -16201,10 +16225,10 @@ var script$1 = /*#__PURE__*/defineComponent({ ...__default__$1,
setup: setup$1 setup: setup$1
}); });
var css_248z$1 = ".sum[data-v-a1b5cab6] {\n display: flex;\n justify-content: space-around;\n}\n.sum >div[data-v-a1b5cab6] {\n display: flex;\n align-items: center;\n font-size: 0.09rem;\n color: #ccc;\n cursor: pointer;\n}\n.sum >div .orange-count[data-v-a1b5cab6] {\n margin: 0 0.04rem 0.02rem;\n}\n.sum >div[data-v-a1b5cab6]:hover {\n color: #edb872;\n}\n.chart[data-v-a1b5cab6] {\n width: 100%;\n height: 1.5rem;\n}\n"; var css_248z$1 = ".sum[data-v-d4603a2e] {\n display: flex;\n justify-content: space-around;\n}\n.sum >div[data-v-d4603a2e] {\n display: flex;\n align-items: center;\n color: #ccc;\n cursor: pointer;\n}\n.sum >div .orange-count[data-v-d4603a2e] {\n margin: 0 0.04rem 0.02rem;\n}\n.sum >div[data-v-d4603a2e]:hover {\n color: #edb872;\n}\n.chart[data-v-d4603a2e] {\n width: 100%;\n height: 1.5rem;\n}\n";
styleInject(css_248z$1); styleInject(css_248z$1);
script$1.__scopeId = "data-v-a1b5cab6"; script$1.__scopeId = "data-v-d4603a2e";
const _hoisted_1 = /*#__PURE__*/createTextVNode(" 住宅预销售金额 "); const _hoisted_1 = /*#__PURE__*/createTextVNode(" 住宅预销售金额 ");
...@@ -16214,7 +16238,7 @@ const _hoisted_2 = { ...@@ -16214,7 +16238,7 @@ const _hoisted_2 = {
} }
}; };
const _hoisted_3 = /*#__PURE__*/createTextVNode(" 元 "); const _hoisted_3 = /*#__PURE__*/createTextVNode(" 亿元 ");
const _hoisted_4 = { const _hoisted_4 = {
class: "bar" class: "bar"
...@@ -16271,7 +16295,7 @@ function setup(__props) { ...@@ -16271,7 +16295,7 @@ function setup(__props) {
totalArea = 0 //总面积 totalArea = 0 //总面积
} = (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.content) || {}; } = (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.content) || {};
total.value = totalPrice; total.value = totalPrice / 100000000;
list.value = [{ list.value = [{
name: '住房', name: '住房',
value: livePresaleNum, value: livePresaleNum,
...@@ -16343,7 +16367,8 @@ function setup(__props) { ...@@ -16343,7 +16367,8 @@ function setup(__props) {
}, { }, {
default: withCtx(() => [createElementVNode("p", null, [_hoisted_1, createElementVNode("span", _hoisted_2, [createVNode(_component_m_count, { default: withCtx(() => [createElementVNode("p", null, [_hoisted_1, createElementVNode("span", _hoisted_2, [createVNode(_component_m_count, {
class: "orange-count", class: "orange-count",
value: total.value value: total.value,
decimal: 2
}, null, 8, ["value"]), _hoisted_3])]), createVNode(unref(NSelect), { }, null, 8, ["value"]), _hoisted_3])]), createVNode(unref(NSelect), {
value: year.value, value: year.value,
"onUpdate:value": _cache[0] || (_cache[0] = $event => year.value = $event), "onUpdate:value": _cache[0] || (_cache[0] = $event => year.value = $event),
...@@ -16390,10 +16415,10 @@ var script = /*#__PURE__*/defineComponent({ ...__default__, ...@@ -16390,10 +16415,10 @@ var script = /*#__PURE__*/defineComponent({ ...__default__,
setup setup
}); });
var css_248z = ".bar[data-v-4fa7064f] {\n display: flex;\n width: 100%;\n height: 0.06rem;\n margin: 0.14rem 0;\n}\n.bar >div[data-v-4fa7064f] {\n position: relative;\n}\n.bar >div .count[data-v-4fa7064f] {\n font-size: 0.12rem;\n}\n.bar >div >div[data-v-4fa7064f] {\n height: 0.15rem;\n transform: translateY(-100%);\n}\n.bar >div >div p[data-v-4fa7064f] {\n min-width: 0.5rem;\n}\n.bar >div >div .name[data-v-4fa7064f] {\n margin-top: 0.05rem;\n}\n.bar >div:nth-of-type(1) >div[data-v-4fa7064f] {\n border-left: 0.01rem solid;\n}\n.bar >div:nth-of-type(1) p[data-v-4fa7064f] {\n width: 100%;\n margin-left: 0.05rem;\n}\n.bar >div:nth-of-type(2) >div[data-v-4fa7064f] {\n border-right: 0.01rem solid;\n padding-right: 0.1rem;\n}\n.bar >div:nth-of-type(2) p[data-v-4fa7064f] {\n width: 100%;\n text-align: right;\n margin-right: 0.1rem;\n}\n.areas[data-v-4fa7064f] {\n display: flex;\n justify-content: space-between;\n}\n.areas >div[data-v-4fa7064f] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: rgba(70,83,97,0.4);\n border-radius: 0.04rem;\n box-shadow: 0 0.01rem 0.01rem 0 rgba(255,255,255,0.2) inset;\n box-sizing: border-box;\n color: #ccc;\n padding: 0.05rem 0.08rem;\n}\n.areas >div+div[data-v-4fa7064f] {\n flex: 1;\n margin-left: 0.05rem;\n}\n.areas >div .orange-count[data-v-4fa7064f] {\n margin: 0 0.04rem 0.02rem 0.1rem;\n}\n.areas >div span[data-v-4fa7064f] {\n display: flex;\n align-items: center;\n font-size: 0.09rem;\n color: #aaa;\n}\n"; var css_248z = ".bar[data-v-8e13bfa0] {\n display: flex;\n width: 100%;\n height: 0.06rem;\n margin: 0.14rem 0;\n}\n.bar >div[data-v-8e13bfa0] {\n position: relative;\n}\n.bar >div .count[data-v-8e13bfa0] {\n font-size: 0.12rem;\n}\n.bar >div >div[data-v-8e13bfa0] {\n height: 0.15rem;\n transform: translateY(-100%);\n}\n.bar >div >div p[data-v-8e13bfa0] {\n min-width: 0.5rem;\n}\n.bar >div >div .name[data-v-8e13bfa0] {\n margin-top: 0.05rem;\n}\n.bar >div:nth-of-type(1) >div[data-v-8e13bfa0] {\n border-left: 0.01rem solid;\n}\n.bar >div:nth-of-type(1) p[data-v-8e13bfa0] {\n width: 100%;\n margin-left: 0.05rem;\n}\n.bar >div:nth-of-type(2) >div[data-v-8e13bfa0] {\n border-right: 0.01rem solid;\n padding-right: 0.1rem;\n}\n.bar >div:nth-of-type(2) p[data-v-8e13bfa0] {\n width: 100%;\n text-align: right;\n margin-right: 0.1rem;\n}\n.areas[data-v-8e13bfa0] {\n display: flex;\n justify-content: space-between;\n}\n.areas >div[data-v-8e13bfa0] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: rgba(70,83,97,0.4);\n border-radius: 0.04rem;\n box-shadow: 0 0.01rem 0.01rem 0 rgba(255,255,255,0.2) inset;\n box-sizing: border-box;\n color: #ccc;\n padding: 0.05rem 0.08rem;\n}\n.areas >div+div[data-v-8e13bfa0] {\n flex: 1;\n margin-left: 0.05rem;\n}\n.areas >div .orange-count[data-v-8e13bfa0] {\n margin: 0 0.04rem 0.02rem;\n}\n.areas >div span[data-v-8e13bfa0] {\n display: flex;\n align-items: center;\n font-size: 0.09rem;\n color: #aaa;\n}\n";
styleInject(css_248z); styleInject(css_248z);
script.__scopeId = "data-v-4fa7064f"; script.__scopeId = "data-v-8e13bfa0";
var componentLib = /*#__PURE__*/Object.freeze({ var componentLib = /*#__PURE__*/Object.freeze({
__proto__: null, __proto__: null,
......
...@@ -63,6 +63,61 @@ ...@@ -63,6 +63,61 @@
]" ]"
:data="info" :data="info"
/> />
<m-sub>设施设备信息</m-sub>
<n-tabs
v-model:value="curEquipment"
type="line"
size="small"
@update:value="fetchEquipment"
>
<n-tab-pane name="大门" tab="大门信息">
<n-data-table
size="small"
:columns="equipmentColumns[0]"
:data="equipmentList"
:pagination="pagination"
/>
</n-tab-pane>
<n-tab-pane name="防盗门" tab="防盗门信息">
<n-data-table
size="small"
:columns="equipmentColumns[1]"
:data="equipmentList"
:pagination="pagination"
/>
</n-tab-pane>
<n-tab-pane name="电梯" tab="电梯信息">
<n-data-table
size="small"
:columns="equipmentColumns[2]"
:data="equipmentList"
:pagination="pagination"
/>
</n-tab-pane>
<n-tab-pane name="监控设备" tab="监控设备信息">
<n-data-table
size="small"
:columns="equipmentColumns[3]"
:data="equipmentList"
:pagination="pagination"
/>
</n-tab-pane>
<n-tab-pane name="消防泵、生活泵" tab="消防泵、生活泵信息">
<n-data-table
size="small"
:columns="equipmentColumns[4]"
:data="equipmentList"
:pagination="pagination"
/>
</n-tab-pane>
</n-tabs>
<m-sub>小区拓展信息</m-sub>
<m-form
v-if="expandColumn?.length > 0"
:template="expandColumn"
:data="expandData"
/>
<m-empty v-else />
</template> </template>
<template v-else-if="curMenu === 2"> <template v-else-if="curMenu === 2">
<template v-if="showBuildingInfo"> <template v-if="showBuildingInfo">
...@@ -152,7 +207,16 @@ ...@@ -152,7 +207,16 @@
</template> </template>
</template> </template>
<template v-else-if="curMenu === 3"> <template v-else-if="curMenu === 3">
<n-tabs type="line" size="small" @update:value="showOrderInfo = false"> <n-tabs
type="line"
size="small"
@update:value="
() => {
showOrderInfo = false
pagination.page = 1
}
"
>
<n-tab-pane name="1" tab="房办月查"> <n-tab-pane name="1" tab="房办月查">
<template v-if="showOrderInfo"> <template v-if="showOrderInfo">
<n-space justify="end"> <n-space justify="end">
...@@ -279,7 +343,16 @@ ...@@ -279,7 +343,16 @@
</n-tabs> </n-tabs>
</template> </template>
<template v-else-if="curMenu === 4"> <template v-else-if="curMenu === 4">
<n-tabs type="line" size="small" @update:value="showBxInfo = false"> <n-tabs
type="line"
size="small"
@update:value="
() => {
showBxInfo = false
pagination.page = 1
}
"
>
<n-tab-pane name="1" tab="物业报修"> <n-tab-pane name="1" tab="物业报修">
<template v-if="showBxInfo"> <template v-if="showBxInfo">
<n-space justify="end"> <n-space justify="end">
...@@ -363,6 +436,161 @@ const menus = [ ...@@ -363,6 +436,161 @@ const menus = [
{ label: '维修资金', key: 5, disabled: true }, { label: '维修资金', key: 5, disabled: true },
] ]
const searchKey = ref<undefined | string>() const searchKey = ref<undefined | string>()
const curEquipment = ref('大门')
const equipmentColumns = [
[
{
title: '设备名称',
key: 'ieName',
},
{
title: '安装位置',
key: 'ieAddr',
},
{
title: '设备类型',
key: 'ieType',
},
{
title: '维保单位',
key: 'ieUnit',
},
{
title: '是否是主出入口',
key: 'isMainGate',
},
{
title: '是否有门卫室',
key: 'ffCode',
},
],
[
{
title: '设备名称',
key: 'ieName',
},
{
title: '安装位置',
key: 'ieAddr',
},
{
title: '设备类型',
key: 'ieType',
},
{
title: '维保单位',
key: 'ieUnit',
},
{
title: '启用日期',
key: 'ieDate',
},
],
[
{
title: '设备名称',
key: 'ieName',
},
{
title: '安装位置',
key: 'ieAddr',
},
{
title: '设备类型',
key: 'ieType',
},
{
title: '维保单位',
key: 'ieUnit',
},
{
title: '启用日期',
key: 'ieDate',
},
{
title: '型号',
key: 'ieModel',
},
{
title: '品牌',
key: 'ieBrand',
},
{
title: '特种设备代码',
key: 'specialEquipCode',
},
{
title: '检验单位',
key: 'inspectionUnit',
},
{
title: '救援电话',
key: 'rescuePhone',
},
],
[
{
title: '设备名称',
key: 'ieName',
},
{
title: '安装位置',
key: 'ieAddr',
},
{
title: '设备类型',
key: 'ieType',
},
{
title: '维保单位',
key: 'ieUnit',
},
],
[
{
title: '设备名称',
key: 'ieName',
},
{
title: '安装位置',
key: 'ieAddr',
},
{
title: '设备类型',
key: 'ieType',
},
{
title: '维保单位',
key: 'ieUnit',
},
{
title: '生产厂家',
key: 'ieFactory',
},
{
title: '供水门牌号',
key: 'ieWaterDoorplate',
},
],
]
const equipmentList = ref<any[]>([])
async function fetchEquipment(val: string) {
pagination.page = 1
curEquipment.value = val
equipmentList.value =
(
await ajax.get({
url: api.EQUIPMENT,
params: {
sectId: props.info?.sectId,
type: '1',
ieClassify: val,
pageSize: 9000,
},
})
)?.data?.content || []
}
const showBuildingInfo = ref(false) const showBuildingInfo = ref(false)
const buildingInfo = ref<{ [key: string]: unknown }>({}) const buildingInfo = ref<{ [key: string]: unknown }>({})
const buildingsColumn = [ const buildingsColumn = [
...@@ -833,11 +1061,44 @@ const tsColumn = [ ...@@ -833,11 +1061,44 @@ const tsColumn = [
] ]
const tsData = ref<any[]>([]) const tsData = ref<any[]>([])
const expandData = ref<{ [key: string]: unknown }>({})
const expandColumn = ref<{ title: string; key: string }[]>([])
watch( watch(
() => curMenu.value, () => curMenu.value,
async (menu) => { async (menu) => {
pagination.page = 1 pagination.page = 1
switch (menu) { switch (menu) {
case 1:
fetchEquipment('大门')
const data =
(
await ajax.get({
url: api.EXPAND_INFO.replace(
'{id}',
props.info?.sectId as string,
),
})
)?.data?.content || []
const result: any = {}
const columns = data.map((item) => {
result[item.id] = item.keyVal
return {
title: item.keyName,
key: item.id,
}
})
const templates: any[] = []
for (let i = 0; i < columns.length; i += 3) {
const arr = (columns.slice(i, i + 3) || [])?.map(
(item) => `${item.key}:${item.title}`,
)
while (arr.length < 3) {
arr.push('')
}
templates.push(arr)
}
expandColumn.value = templates.map((item) => item.join('|'))
expandData.value = result
case 2: case 2:
showRiskBuilding.value = false showRiskBuilding.value = false
showBuildingInfo.value = false showBuildingInfo.value = false
...@@ -922,6 +1183,7 @@ watch( ...@@ -922,6 +1183,7 @@ watch(
break break
} }
}, },
{ immediate: true },
) )
</script> </script>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
v-show="!btn.hidden" v-show="!btn.hidden"
:key="btn.key" :key="btn.key"
:src="btn.icon" :src="btn.icon"
:title="btn?.tip"
@click="onClick(btn.key)" @click="onClick(btn.key)"
/> />
</div> </div>
...@@ -18,6 +19,7 @@ import btn4 from '@/assets/images/btn4.png' ...@@ -18,6 +19,7 @@ import btn4 from '@/assets/images/btn4.png'
import btn5 from '@/assets/images/btn5.png' import btn5 from '@/assets/images/btn5.png'
import btn6 from '@/assets/images/btn6.png' import btn6 from '@/assets/images/btn6.png'
import btn7 from '@/assets/images/btn7.png' import btn7 from '@/assets/images/btn7.png'
import btn8 from '@/assets/images/btn8.png'
import { computed, PropType } from 'vue' import { computed, PropType } from 'vue'
const props = defineProps({ const props = defineProps({
...@@ -41,17 +43,20 @@ const btns = computed(() => [ ...@@ -41,17 +43,20 @@ const btns = computed(() => [
key: 'home', key: 'home',
icon: btn7, icon: btn7,
hidden: props.isDefaultScreen || props.onlyOneView, hidden: props.isDefaultScreen || props.onlyOneView,
tip: '回到首屏',
}, },
{ key: 'search', icon: btn1 }, { key: 'search', icon: btn1, tip: '搜索小区' },
{ key: 'full', icon: btn2 }, { key: 'full', icon: btn2, tip: '切换全屏幕' },
{ key: 'in', icon: btn3 }, { key: 'in', icon: btn3, tip: '放大' },
{ key: 'out', icon: btn4 }, { key: 'out', icon: btn4, tip: '缩小' },
{ {
key: 'list', key: 'list',
icon: btn5, icon: btn5,
hidden: props.onlyOneView, hidden: props.onlyOneView,
tip: '屏幕列表',
}, },
{ key: 'btn6', icon: btn6 }, { key: 'btn6', icon: btn6 },
{ key: 'reset', icon: btn8, tip: '重置' },
]) ])
const onClick = (key: string) => { const onClick = (key: string) => {
emit('touch', key) emit('touch', key)
......
...@@ -11,7 +11,15 @@ import jinganPath from '@/utils/jingan-path.js' ...@@ -11,7 +11,15 @@ import jinganPath from '@/utils/jingan-path.js'
let map: MyMap let map: MyMap
let polygonLayer: any let polygonLayer: any
defineExpose({ zoomIn, zoomOut, zoomTo, focus, addPoints, remove, setCommunityPoints }) defineExpose({
zoomIn,
zoomOut,
zoomTo,
focus,
addPoints,
remove,
setCommunityPoints,
})
const emit = defineEmits(['event', 'complete']) const emit = defineEmits(['event', 'complete'])
onMounted(async () => { onMounted(async () => {
...@@ -51,7 +59,7 @@ function onComplete() { ...@@ -51,7 +59,7 @@ function onComplete() {
emit('complete') emit('complete')
} }
function setCommunityPoints(query = "HPB_NAME = '静安区'") { function setCommunityPoints(query = 'HPB_NAME = \'静安区\'') {
map.instance.getLayer('wg_gis_xq_point').visible = false map.instance.getLayer('wg_gis_xq_point').visible = false
map.instance.setFilter('wg_gis_mpz', query) map.instance.setFilter('wg_gis_mpz', query)
map.instance.setFilter('wg_gis_xq_poly', query) map.instance.setFilter('wg_gis_xq_poly', query)
......
...@@ -170,6 +170,10 @@ function handleMapBtnsEvents(key: string) { ...@@ -170,6 +170,10 @@ function handleMapBtnsEvents(key: string) {
case 'search': case 'search':
showSearchModal.value = true showSearchModal.value = true
break break
case 'reset':
onMapComplete()
mapRef.value?.setCommunityPoints()
break
default: default:
break break
} }
...@@ -183,7 +187,7 @@ bus.on('communityList', (data) => { ...@@ -183,7 +187,7 @@ bus.on('communityList', (data) => {
store.commit('SET_COMMUNITY_LIST', data) store.commit('SET_COMMUNITY_LIST', data)
}) })
function onMapComplete() { function onMapComplete() {
addPoints({ data: store.state.communityList, icon: CommunityIcon, size: 6 }) addPoints({ data: store.state.communityList, icon: CommunityIcon, size: 8 })
} }
function addPoints(data) { function addPoints(data) {
...@@ -199,10 +203,32 @@ const elevatorDetail = ref<{ [key: string]: any }>({}) ...@@ -199,10 +203,32 @@ const elevatorDetail = ref<{ [key: string]: any }>({})
const showSafetyDrawer = ref(false) const showSafetyDrawer = ref(false)
const safetyDetail = ref<{ [key: string]: any }>({}) const safetyDetail = ref<{ [key: string]: any }>({})
const onMapClick = (data) => { const onMapClick = async (e) => {
if (!data.id) return if (e?.unitId) {
communityDetail.value = data safetyDetail.value =
(
await ajax.get({
url: api.RISK_BUILDINGS,
params: {
unitId_in: e.unitId,
},
})
)?.data?.content?.[0] || {}
showSafetyDrawer.value = true
} else if (e?.sectId) {
const data =
(
await ajax.get({
url: api.GET_COMMUNITY.replace('{id}', e.sectId),
})
)?.data?.content || {}
communityDetail.value = {
...(data?.cmInfo || {}),
...(data?.caoInfo || {}),
...data,
}
showCommunityDrawer.value = true showCommunityDrawer.value = true
}
} }
const onSelectCommunity = async (data: any) => { const onSelectCommunity = async (data: any) => {
const { stKind } = data const { stKind } = data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment