UNPKG

sd-statistical-analysis

Version:
7 lines 18.9 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("sd-statistical-analysis",[],e):"object"==typeof exports?exports["sd-statistical-analysis"]=e():t["sd-statistical-analysis"]=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=1)}([function(t,e,n){"use strict";var r=n(9),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a={props:{mark:String},data:function(){return{appCode:serverConfig.APP_CODE,formValidate:{}}},methods:i({},Object(r.a)(["postRequest","authGetRequest","authPostRequest"]),{getDataByid:function(){var t=this;this.postRequest({url:"/bsp-uac/com/card/getByMark",params:{mark:this.mark}}).then(function(e){e.success?(t.formValidate=e.data,t.getMultiQuery(t.formValidate.queryMark)):t.$Notice.error({title:"错误提示",desc:e.msg})})},getMultiQuery:function(t){var e=this,n=Object.assign({mark:t},this.$route.query);this.$store.dispatch("postRequest",{url:"/bsp-uac/com/form/handle/executeMultiQuery",params:n}).then(function(t){t.success&&t.data&&t.data.length>0&&(Object.assign(e.formValidate,t.data[0]),e.$forceUpdate())})},oprate:function(){"02"==this.formValidate.triggerType||"03"==this.formValidate.triggerType&&this.formValidate.url&&window.open(this.formValidate.url,"_blank")}}),mounted:function(){this.getDataByid()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2);n.d(e,"statisticalAnalysis",function(){return r.a});var i={install:function(t){t.component("statistical-analysis",r.a)}};e.default=i},function(t,e,n){"use strict";function r(t){n(3)}var i=n(0),o=n(11),a=n(8),s=r,c=a(i.a,o.a,!1,s,null,null);e.a=c.exports},function(t,e,n){var r=n(4);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(6)("74090f6e",r,!0)},function(t,e,n){e=t.exports=n(5)(!1),e.push([t.i,".analyWrap{justify-content:space-around;padding:16px 16px 16px 0}.analyWrap,.analyWrapChild{border-right:1px solid #e8eef0}.analyWrapChild{cursor:pointer}.analyWrapFlex{display:flex;align-items:center;background:#fff;border-radius:4px}.analyWrapFlex .imgMarkWrap{width:68px;height:68px;text-align:center;display:flex;align-content:center;align-items:center;justify-content:center;margin:0 16px}.analyWrapFlex .title{color:#616f6f;font-size:16px}.analyWrapFlex .num{line-height:40px;font-weight:700;font-size:30px;height:40px}",""])},function(t,e){function n(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){function r(t){for(var e=0;e<t.length;e++){var n=t[e],r=f[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(o(n.parts[i]));f[n.id]={id:n.id,refs:1,parts:a}}}}function i(){var t=document.createElement("style");return t.type="text/css",l.appendChild(t),t}function o(t){var e,n,r=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(r){if(h)return m;r.parentNode.removeChild(r)}if(v){var o=d++;r=p||(p=i()),e=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=i(),e=s.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}function a(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=g(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function s(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u=n(7),f={},l=c&&(document.head||document.getElementsByTagName("head")[0]),p=null,d=0,h=!1,m=function(){},v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n){h=n;var i=u(t,e);return r(i),function(e){for(var n=[],o=0;o<i.length;o++){var a=i[o],s=f[a.id];s.refs--,n.push(s)}e?(i=u(t,e),r(i)):i=[];for(var o=0;o<n.length;o++){var s=n[o];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete f[s.id]}}}};var g=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=o[0],s=o[1],c=o[2],u=o[3],f={id:t+":"+i,css:s,media:c,sourceMap:u};r[a]?r[a].parts.push(f):n.push(r[a]={id:a,parts:[f]})}return n}},function(t,e){t.exports=function(t,e,n,r,i,o){var a,s=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(a=t,s=t.default);var u="function"==typeof s?s.options:s;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i);var f;if(o?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=f):r&&(f=r),f){var l=u.functional,p=l?u.render:u.beforeCreate;l?(u._injectStyles=f,u.render=function(t,e){return f.call(e),p(t,e)}):u.beforeCreate=p?[].concat(p,f):[f]}return{esModule:a,exports:s,options:u}}},function(t,e,n){"use strict";(function(t){/*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function r(t){function e(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,n.call(this,t)}}}function i(t){V&&(t._devtoolHook=V,V.emit("vuex:init",t),V.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){V.emit("vuex:mutation",t,e)},{prepend:!0}),t.subscribeAction(function(t,e){V.emit("vuex:action",t,e)},{prepend:!0}))}function o(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function a(t){return null!==t&&"object"==typeof t}function s(t){return t&&"function"==typeof t.then}function c(t,e){return function(){return t(e)}}function u(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return;u(t.concat(r),e.getChild(r),n.modules[r])}}function f(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function l(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;d(t,n,[],t._modules.root,!0),p(t,n,e)}function p(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,a={};o(i,function(e,n){a[n]=c(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var s=R.config.silent;R.config.silent=!0,t._vm=new R({data:{$$state:e},computed:a}),R.config.silent=s,t.strict&&_(t),r&&(n&&t._withCommit(function(){r._data.$$state=null}),R.nextTick(function(){return r.$destroy()}))}function d(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=b(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit(function(){R.set(s,c,r.state)})}var u=r.context=h(t,a,n);r.forEachMutation(function(e,n){v(t,a+n,e,u)}),r.forEachAction(function(e,n){var r=e.root?n:a+n,i=e.handler||e;g(t,r,i,u)}),r.forEachGetter(function(e,n){y(t,a+n,e,u)}),r.forEachChild(function(r,o){d(t,e,n.concat(o),r,i)})}function h(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=x(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:r?t.commit:function(n,r,i){var o=x(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return m(t,e)}},state:{get:function(){return b(t.state,n)}}}),i}function m(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach(function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}}),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function v(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,r.state,e)})}function g(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push(function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return s(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):i})}function y(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function _(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function b(t,e){return e.reduce(function(t,e){return t[e]},t)}function x(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function w(t){R&&t===R||(R=t,r(R))}function C(t){return M(t)?Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function M(t){return Array.isArray(t)||a(t)}function j(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function O(t,e,n){return t._modulesNamespaceMap[n]}n.d(e,"a",function(){return A});var $="undefined"!=typeof window?window:void 0!==t?t:{},V=$.__VUE_DEVTOOLS_GLOBAL_HOOK__,k=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},E={namespaced:{configurable:!0}};E.namespaced.get=function(){return!!this._rawModule.namespaced},k.prototype.addChild=function(t,e){this._children[t]=e},k.prototype.removeChild=function(t){delete this._children[t]},k.prototype.getChild=function(t){return this._children[t]},k.prototype.hasChild=function(t){return t in this._children},k.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},k.prototype.forEachChild=function(t){o(this._children,t)},k.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},k.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},k.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(k.prototype,E);var S=function(t){this.register([],t,!1)};S.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},S.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},S.prototype.update=function(t){u([],this.root,t)},S.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new k(e,n);if(0===t.length)this.root=i;else{this.get(t.slice(0,-1)).addChild(t[t.length-1],i)}e.modules&&o(e.modules,function(e,i){r.register(t.concat(i),e,n)})},S.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},S.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var R,N=function(t){var e=this;void 0===t&&(t={}),!R&&"undefined"!=typeof window&&window.Vue&&w(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new S(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new R,this._makeLocalGettersCache=Object.create(null);var o=this,a=this,s=a.dispatch,c=a.commit;this.dispatch=function(t,e){return s.call(o,t,e)},this.commit=function(t,e,n){return c.call(o,t,e,n)},this.strict=r;var u=this._modules.root.state;d(this,u,[],this._modules.root),p(this,u),n.forEach(function(t){return t(e)}),(void 0!==t.devtools?t.devtools:R.config.devtools)&&i(this)},G={state:{configurable:!0}};G.state.get=function(){return this._vm._data.$$state},G.state.set=function(t){},N.prototype.commit=function(t,e,n){var r=this,i=x(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit(function(){c.forEach(function(t){t(a)})}),this._subscribers.slice().forEach(function(t){return t(s,r.state)}))},N.prototype.dispatch=function(t,e){var n=this,r=x(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter(function(t){return t.before}).forEach(function(t){return t.before(a,n.state)})}catch(t){}var c=s.length>1?Promise.all(s.map(function(t){return t(o)})):s[0](o);return new Promise(function(t,e){c.then(function(e){try{n._actionSubscribers.filter(function(t){return t.after}).forEach(function(t){return t.after(a,n.state)})}catch(t){}t(e)},function(t){try{n._actionSubscribers.filter(function(t){return t.error}).forEach(function(e){return e.error(a,n.state,t)})}catch(t){}e(t)})})}},N.prototype.subscribe=function(t,e){return f(t,this._subscribers,e)},N.prototype.subscribeAction=function(t,e){return f("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},N.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},N.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},N.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),d(this,this.state,t,this._modules.get(t),n.preserveState),p(this,this.state)},N.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=b(e.state,t.slice(0,-1));R.delete(n,t[t.length-1])}),l(this)},N.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},N.prototype.hotUpdate=function(t){this._modules.update(t),l(this,!0)},N.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(N.prototype,G);var A=(j(function(t,e){var n={};return C(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=O(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0}),n}),j(function(t,e){var n={};return C(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=O(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n}),j(function(t,e){var n={};return C(e).forEach(function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||O(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0}),n}),j(function(t,e){var n={};return C(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=O(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n}))}).call(e,n(10))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"analyWrapChild analyWrapFlex",style:{height:t.formValidate.height?t.formValidate.height:"60px",width:t.formValidate.width?t.formValidate.width:"200px"},on:{click:t.oprate}},[n("div",{staticClass:"imgMarkWrap"},[t.formValidate.icon?n("img",{staticClass:"imgMark",style:{height:t.formValidate.heightImg?t.formValidate.heightImg:"48px",width:t.formValidate.widthImg?t.formValidate.widthImg:"48px"},attrs:{src:t.formValidate.icon}}):t._e(),t._v(" "),t.formValidate.iconMark&&t.formValidate.iconMark.indexOf("^custom^")>-1?n("img",{staticStyle:{width:"50px",margin:"auto"},attrs:{src:"/bsp-com/static/icon/"+t.appCode+"/"+t.formValidate.iconMark.replace("^custom^",""),alt:"暂未发布"}}):n("Icon",{attrs:{type:t.formValidate.iconMark,size:48,color:t.formValidate.color?t.formValidate.color:"#23ade5"}})],1),t._v(" "),n("div",[n("p",{staticClass:"title"},[t._v(t._s(t.formValidate.name))]),t._v(" "),n("span",{staticClass:"num",style:{color:t.formValidate.color?t.formValidate.color:"#23ade5"}},[t._v(t._s(t.formValidate.value?t.formValidate.value:0))])])])},i=[],o={render:r,staticRenderFns:i};e.a=o}])}); //# sourceMappingURL=sd-statistical-analysis.js.map