You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
16 KiB
10 lines
16 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e7064788"],{"0d2b":function(e,t,r){"use strict";var i=r("2a95");r("8237");function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t["a"]={props:{options:{type:Array,default:function(){return[]}},value:{type:String|Number|Array,default:""},placeholder:{type:String,default:""},title:{type:String,default:""},type:{type:String,default:"text"},suffix:{type:String,default:""},prefix:{type:String,default:""},styleModel:{type:String,default:""},className:{type:String,default:""},field:{type:String,default:""},timerType:{type:String,default:"timerange"},timerFormat:{type:String,default:"HH:mm:ss"},info:{type:String,default:""},on:{type:Object,default:function(){return{}}},validate:{type:Object,default:function(){return{}}},errorsValidate:{type:Array,default:function(){return[]}}},data:function(){return{valueModel:this.value,errorMessage:"",exampleImage:{store_terminal_number:"/statics/system/yilianyunPrinter.png",store_config_export_siid:"/statics/system/kuadi100Dump.png"},exampleSize:{store_terminal_number:364,store_config_export_siid:364}}},watch:{errorsValidate:{handler:function(e){var t=this;if(e){var r=e.find((function(e){return e.field===t.field}));this.errorMessage=r?r.message:""}else this.errorMessage=""},deep:!0}},methods:{getClassName:function(){var e=["input-build-"+this.field];this.errorMessage&&e.push("ivu-form-item-error");var t=this.validate[this.field]?this.validate[this.field].filter((function(e){return!0===e.required})):[];return t.length&&e.push("ivu-form-item-required"),e},changeEvent:function(e,t){"change"===e&&this.$emit("changeValue",{field:this.field,value:this.valueModel}),this.on[e]&&this.on[e](t),this.validator(e)},validator:function(e){var t=this,r=this.validate[this.field]?this.validate[this.field].filter((function(t){return t.trigger===e})):[];if(r.length){var a=new i["a"](this.validate),n=s({},this.field,this.valueModel);a.validate(n,(function(e,r){if(e){var i=e.find((function(e){return e.field===t.field}));t.errorMessage=i?i.message:""}else t.errorMessage=""}))}}}}},"3c35":function(e,t){(function(t){e.exports=t}).call(this,{})},"5af1":function(e,t,r){},8237:function(module,exports,__webpack_require__){(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__;
|
|
/**
|
|
* [js-md5]{@link https://github.com/emn178/js-md5}
|
|
*
|
|
* @namespace md5
|
|
* @version 0.7.3
|
|
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
* @copyright Chen, Yi-Cyuan 2014-2017
|
|
* @license MIT
|
|
*/(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"===typeof module&&module.exports,AMD=__webpack_require__("3c35"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(t){return new Md5(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var r=OUTPUT_TYPES[t];e[r]=createOutputMethod(r)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"===typeof e)return crypto.createHash("md5").update(e,"utf8").digest("hex");if(null===e||void 0===e)throw ERROR;return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash("md5").update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod};function Md5(e){if(e)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(e){if(!this.finalized){var t,r=typeof e;if("string"!==r){if("object"!==r)throw ERROR;if(null===e)throw ERROR;if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw ERROR;t=!0}var i,s,a=0,n=e.length,o=this.blocks,l=this.buffer8;while(a<n){if(this.hashed&&(this.hashed=!1,o[0]=o[16],o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),t)if(ARRAY_BUFFER)for(s=this.start;a<n&&s<64;++a)l[s++]=e[a];else for(s=this.start;a<n&&s<64;++a)o[s>>2]|=e[a]<<SHIFT[3&s++];else if(ARRAY_BUFFER)for(s=this.start;a<n&&s<64;++a)i=e.charCodeAt(a),i<128?l[s++]=i:i<2048?(l[s++]=192|i>>6,l[s++]=128|63&i):i<55296||i>=57344?(l[s++]=224|i>>12,l[s++]=128|i>>6&63,l[s++]=128|63&i):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++a)),l[s++]=240|i>>18,l[s++]=128|i>>12&63,l[s++]=128|i>>6&63,l[s++]=128|63&i);else for(s=this.start;a<n&&s<64;++a)i=e.charCodeAt(a),i<128?o[s>>2]|=i<<SHIFT[3&s++]:i<2048?(o[s>>2]|=(192|i>>6)<<SHIFT[3&s++],o[s>>2]|=(128|63&i)<<SHIFT[3&s++]):i<55296||i>=57344?(o[s>>2]|=(224|i>>12)<<SHIFT[3&s++],o[s>>2]|=(128|i>>6&63)<<SHIFT[3&s++],o[s>>2]|=(128|63&i)<<SHIFT[3&s++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++a)),o[s>>2]|=(240|i>>18)<<SHIFT[3&s++],o[s>>2]|=(128|i>>12&63)<<SHIFT[3&s++],o[s>>2]|=(128|i>>6&63)<<SHIFT[3&s++],o[s>>2]|=(128|63&i)<<SHIFT[3&s++]);this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,t,r,i,s,a,n=this.blocks;this.first?(e=n[0]-680876937,e=(e<<7|e>>>25)-271733879<<0,i=(-1732584194^2004318071&e)+n[1]-117830708,i=(i<<12|i>>>20)+e<<0,r=(-271733879^i&(-271733879^e))+n[2]-1126478375,r=(r<<17|r>>>15)+i<<0,t=(e^r&(i^e))+n[3]-1316259209,t=(t<<22|t>>>10)+r<<0):(e=this.h0,t=this.h1,r=this.h2,i=this.h3,e+=(i^t&(r^i))+n[0]-680876936,e=(e<<7|e>>>25)+t<<0,i+=(r^e&(t^r))+n[1]-389564586,i=(i<<12|i>>>20)+e<<0,r+=(t^i&(e^t))+n[2]+606105819,r=(r<<17|r>>>15)+i<<0,t+=(e^r&(i^e))+n[3]-1044525330,t=(t<<22|t>>>10)+r<<0),e+=(i^t&(r^i))+n[4]-176418897,e=(e<<7|e>>>25)+t<<0,i+=(r^e&(t^r))+n[5]+1200080426,i=(i<<12|i>>>20)+e<<0,r+=(t^i&(e^t))+n[6]-1473231341,r=(r<<17|r>>>15)+i<<0,t+=(e^r&(i^e))+n[7]-45705983,t=(t<<22|t>>>10)+r<<0,e+=(i^t&(r^i))+n[8]+1770035416,e=(e<<7|e>>>25)+t<<0,i+=(r^e&(t^r))+n[9]-1958414417,i=(i<<12|i>>>20)+e<<0,r+=(t^i&(e^t))+n[10]-42063,r=(r<<17|r>>>15)+i<<0,t+=(e^r&(i^e))+n[11]-1990404162,t=(t<<22|t>>>10)+r<<0,e+=(i^t&(r^i))+n[12]+1804603682,e=(e<<7|e>>>25)+t<<0,i+=(r^e&(t^r))+n[13]-40341101,i=(i<<12|i>>>20)+e<<0,r+=(t^i&(e^t))+n[14]-1502002290,r=(r<<17|r>>>15)+i<<0,t+=(e^r&(i^e))+n[15]+1236535329,t=(t<<22|t>>>10)+r<<0,e+=(r^i&(t^r))+n[1]-165796510,e=(e<<5|e>>>27)+t<<0,i+=(t^r&(e^t))+n[6]-1069501632,i=(i<<9|i>>>23)+e<<0,r+=(e^t&(i^e))+n[11]+643717713,r=(r<<14|r>>>18)+i<<0,t+=(i^e&(r^i))+n[0]-373897302,t=(t<<20|t>>>12)+r<<0,e+=(r^i&(t^r))+n[5]-701558691,e=(e<<5|e>>>27)+t<<0,i+=(t^r&(e^t))+n[10]+38016083,i=(i<<9|i>>>23)+e<<0,r+=(e^t&(i^e))+n[15]-660478335,r=(r<<14|r>>>18)+i<<0,t+=(i^e&(r^i))+n[4]-405537848,t=(t<<20|t>>>12)+r<<0,e+=(r^i&(t^r))+n[9]+568446438,e=(e<<5|e>>>27)+t<<0,i+=(t^r&(e^t))+n[14]-1019803690,i=(i<<9|i>>>23)+e<<0,r+=(e^t&(i^e))+n[3]-187363961,r=(r<<14|r>>>18)+i<<0,t+=(i^e&(r^i))+n[8]+1163531501,t=(t<<20|t>>>12)+r<<0,e+=(r^i&(t^r))+n[13]-1444681467,e=(e<<5|e>>>27)+t<<0,i+=(t^r&(e^t))+n[2]-51403784,i=(i<<9|i>>>23)+e<<0,r+=(e^t&(i^e))+n[7]+1735328473,r=(r<<14|r>>>18)+i<<0,t+=(i^e&(r^i))+n[12]-1926607734,t=(t<<20|t>>>12)+r<<0,s=t^r,e+=(s^i)+n[5]-378558,e=(e<<4|e>>>28)+t<<0,i+=(s^e)+n[8]-2022574463,i=(i<<11|i>>>21)+e<<0,a=i^e,r+=(a^t)+n[11]+1839030562,r=(r<<16|r>>>16)+i<<0,t+=(a^r)+n[14]-35309556,t=(t<<23|t>>>9)+r<<0,s=t^r,e+=(s^i)+n[1]-1530992060,e=(e<<4|e>>>28)+t<<0,i+=(s^e)+n[4]+1272893353,i=(i<<11|i>>>21)+e<<0,a=i^e,r+=(a^t)+n[7]-155497632,r=(r<<16|r>>>16)+i<<0,t+=(a^r)+n[10]-1094730640,t=(t<<23|t>>>9)+r<<0,s=t^r,e+=(s^i)+n[13]+681279174,e=(e<<4|e>>>28)+t<<0,i+=(s^e)+n[0]-358537222,i=(i<<11|i>>>21)+e<<0,a=i^e,r+=(a^t)+n[3]-722521979,r=(r<<16|r>>>16)+i<<0,t+=(a^r)+n[6]+76029189,t=(t<<23|t>>>9)+r<<0,s=t^r,e+=(s^i)+n[9]-640364487,e=(e<<4|e>>>28)+t<<0,i+=(s^e)+n[12]-421815835,i=(i<<11|i>>>21)+e<<0,a=i^e,r+=(a^t)+n[15]+530742520,r=(r<<16|r>>>16)+i<<0,t+=(a^r)+n[2]-995338651,t=(t<<23|t>>>9)+r<<0,e+=(r^(t|~i))+n[0]-198630844,e=(e<<6|e>>>26)+t<<0,i+=(t^(e|~r))+n[7]+1126891415,i=(i<<10|i>>>22)+e<<0,r+=(e^(i|~t))+n[14]-1416354905,r=(r<<15|r>>>17)+i<<0,t+=(i^(r|~e))+n[5]-57434055,t=(t<<21|t>>>11)+r<<0,e+=(r^(t|~i))+n[12]+1700485571,e=(e<<6|e>>>26)+t<<0,i+=(t^(e|~r))+n[3]-1894986606,i=(i<<10|i>>>22)+e<<0,r+=(e^(i|~t))+n[10]-1051523,r=(r<<15|r>>>17)+i<<0,t+=(i^(r|~e))+n[1]-2054922799,t=(t<<21|t>>>11)+r<<0,e+=(r^(t|~i))+n[8]+1873313359,e=(e<<6|e>>>26)+t<<0,i+=(t^(e|~r))+n[15]-30611744,i=(i<<10|i>>>22)+e<<0,r+=(e^(i|~t))+n[6]-1560198380,r=(r<<15|r>>>17)+i<<0,t+=(i^(r|~e))+n[13]+1309151649,t=(t<<21|t>>>11)+r<<0,e+=(r^(t|~i))+n[4]-145523070,e=(e<<6|e>>>26)+t<<0,i+=(t^(e|~r))+n[11]-1120210379,i=(i<<10|i>>>22)+e<<0,r+=(e^(i|~t))+n[2]+718787259,r=(r<<15|r>>>17)+i<<0,t+=(i^(r|~e))+n[9]-343485551,t=(t<<21|t>>>11)+r<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=r-1732584194<<0,this.h3=i+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+r<<0,this.h3=this.h3+i<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,i=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,i=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&i,i>>8&255,i>>16&255,i>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,r,i="",s=this.array(),a=0;a<15;)e=s[a++],t=s[a++],r=s[a++],i+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|r>>>6)]+BASE64_ENCODE_CHAR[63&r];return e=s[a],i+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"==",i};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__("f28c"),__webpack_require__("c8ba"))},d18b:function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("FormItem",{staticClass:"input-build",class:e.getClassName(),attrs:{label:e.title}},[r("div",{staticClass:"input-error-wrapper"},[r("Input",{style:e.styleModel,attrs:{prefix:e.prefix,name:e.field,placeholder:e.placeholder,maxlength:0!==e.maxlength?e.maxlength:null,rows:e.rows,disabled:e.disabled,type:e.type?e.type:"text",suffix:e.suffix},on:{"on-blur":function(t){return e.changeEvent("blur",t)},"on-keyup":function(t){return e.changeEvent("keyup",t)},"on-focus":function(t){return e.changeEvent("focus",t)},"on-click":function(t){return e.changeEvent("click",t)},"on-change":function(t){return e.changeEvent("change",t)}},model:{value:e.valueModel,callback:function(t){e.valueModel=t},expression:"valueModel"}}),e.copy?r("Button",{directives:[{name:"clipboard",rawName:"v-clipboard",value:e.valueModel,expression:"valueModel"},{name:"clipboard",rawName:"v-clipboard:success",value:e.handleCopySuccess,expression:"handleCopySuccess",arg:"success"}],attrs:{type:"primary"}},[e._v(e._s(e.copyText))]):e._e(),0!==e.randToken?r("Button",{attrs:{type:"primary"},on:{click:e.randTokenClick}},[e._v("随机生成")]):e._e(),e.errorMessage&&!e.copy?r("div",{staticClass:"error-wrapper"},[e._v(e._s(e.errorMessage))]):e._e()],1),e.info?r("div",{staticClass:"info-wrapper"},[e._v(e._s(e.info)+"\n "),e.exampleImage[e.field]?r("Poptip",{attrs:{placement:"bottom",trigger:"hover",width:e.exampleSize[e.field],transfer:!0,padding:"8px"}},[r("a",[e._v("查看示例")]),r("div",{staticClass:"exampleImg",class:364==e.exampleSize[e.field]?"on":"",attrs:{slot:"content"},slot:"content"},[r("img",{attrs:{src:e.baseURL+e.exampleImage[e.field],alt:""}})])]):e._e()],1):e._e()])],1)},s=[],a=r("0d2b"),n=r("d708"),o={name:"inputBuild",mixins:[a["a"]],props:{rows:{type:Number,default:2},disabled:{type:Boolean,default:!1},copyText:{type:String,default:!1},copy:{type:Boolean,default:!1},randToken:{type:Number,default:0},maxlength:{type:Number,default:0}},data:function(){return{baseURL:n["a"].apiBaseURL.replace(/storeapi/,"")}},methods:{handleCopySuccess:function(){this.$Message.success("复制成功")},encodingAESKeyGen:function(){for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t="",r=0;r<43;r++){var i=parseInt(61*Math.random()+1);t+=e[i]}return t},token:function(){for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t="",r=0;r<32;r++){var i=parseInt(61*Math.random()+1);t+=e[i]}return t},randTokenClick:function(){var e=this;this.valueModel?this.$Modal.confirm({title:this.title+"值已存在是否重新生成?",onOk:function(){e.changeToken()}}):this.changeToken()},changeToken:function(){1===this.randToken?(this.valueModel=this.token(),this.$emit("changeValue",{field:this.field,value:this.valueModel})):2===this.randToken&&(this.valueModel=this.encodingAESKeyGen(),this.$emit("changeValue",{field:this.field,value:this.valueModel}))}}},l=o,u=(r("eb01"),r("2877")),h=Object(u["a"])(l,i,s,!1,null,"17611e7a",null);t["default"]=h.exports},eb01:function(e,t,r){"use strict";var i=r("5af1"),s=r.n(i);s.a}}]); |