Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

2 linhas
16 KiB

  1. webpackJsonp([27],{"3eLu":function(e,t,r){"use strict";function i(e){return r.i(u.a)({url:"/service-ota/upgradePackages",method:"post",data:e})}function n(e){return r.i(u.a)({url:"/service-ota/upgradePackage",method:"post",data:e})}function o(e){return r.i(u.a)({url:"/service-ota/upgradePackage",method:"delete",data:e})}function a(e){return r.i(u.a)({url:"/service-ota/upgradePackage/"+e,method:"delete"})}t.a=i,t.d=n,t.b=o,t.c=a;var u=r("Vo7i")},"4lE3":function(e,t,r){var i=r("fNc5");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);r("rjj0")("aad91ca2",i,!0)},"9bCr":function(e,t,r){"use strict";var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"上传文件",prop:"mediaUuid"}},[r("el-tag",{attrs:{type:"danger"}},[e._v("请上传zip文件升级包,文件传输过程中请勿操作页面")]),e._v(" "),r("el-upload",{attrs:{action:e.updata.url,"show-file-list":!0,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload,data:e.updata.data,fileList:e.fileList,"on-remove":e.handleRemove}},[r("el-button",{attrs:{plain:"",type:"primary"}},[e._v("点击上传")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"版本",prop:"versionCode"}},[r("el-input",{staticStyle:{width:"50%"},attrs:{disabled:!0},model:{value:e.ruleForm.versionCode,callback:function(t){e.$set(e.ruleForm,"versionCode",t)},expression:"ruleForm.versionCode"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"包类型",prop:"fileType"}},[r("el-select",{attrs:{placeholder:"请选择",disabled:!0},model:{value:e.ruleForm.fileType,callback:function(t){e.$set(e.ruleForm,"fileType",t)},expression:"ruleForm.fileType"}},e._l(e.options,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),r("el-form-item",{attrs:{label:"文件名",prop:"fileName"}},[r("el-input",{staticStyle:{width:"50%"},attrs:{disabled:!0},model:{value:e.ruleForm.fileName,callback:function(t){e.$set(e.ruleForm,"fileName",t)},expression:"ruleForm.fileName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"路径",prop:"filePath"}},[r("el-input",{staticStyle:{width:"50%"},attrs:{disabled:!0},model:{value:e.ruleForm.filePath,callback:function(t){e.$set(e.ruleForm,"filePath",t)},expression:"ruleForm.filePath"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"MD5",prop:"md5Code"}},[r("el-input",{staticStyle:{width:"50%"},attrs:{disabled:!0},model:{value:e.ruleForm.md5Code,callback:function(t){e.$set(e.ruleForm,"md5Code",t)},expression:"ruleForm.md5Code"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"大小",prop:"fileSize"}},[r("el-input",{staticStyle:{width:"50%"},attrs:{disabled:!0},model:{value:e.ruleForm.fileSize,callback:function(t){e.$set(e.ruleForm,"fileSize",t)},expression:"ruleForm.fileSize"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"厂商",prop:"manufacturer"}},[r("el-input",{staticStyle:{width:"50%"},model:{value:e.ruleForm.manufacturer,callback:function(t){e.$set(e.ruleForm,"manufacturer",t)},expression:"ruleForm.manufacturer"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"设备",prop:"deviceType"}},[r("el-input",{staticStyle:{width:"50%"},model:{value:e.ruleForm.deviceType,callback:function(t){e.$set(e.ruleForm,"deviceType",t)},expression:"ruleForm.deviceType"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"型号",prop:"deviceModel"}},[r("el-input",{staticStyle:{width:"50%"},model:{value:e.ruleForm.deviceModel,callback:function(t){e.$set(e.ruleForm,"deviceModel",t)},expression:"ruleForm.deviceModel"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"客户",prop:"customer"}},[r("el-input",{staticStyle:{width:"50%"},model:{value:e.ruleForm.customer,callback:function(t){e.$set(e.ruleForm,"customer",t)},expression:"ruleForm.customer"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"ReleaseNote",prop:"releaseNote"}},[r("el-input",{staticStyle:{width:"50%"},attrs:{type:"textarea"},model:{value:e.ruleForm.releaseNote,callback:function(t){e.$set(e.ruleForm,"releaseNote",t)},expression:"ruleForm.releaseNote"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("立即创建")]),e._v(" "),r("el-button",{on:{click:function(t){e.resetForm("ruleForm")}}},[e._v("重置")])],1)],1)],1)},n=[],o={render:i,staticRenderFns:n};t.a=o},CBWy:function(e,t,r){"use strict";var i=r("JSQk");e.exports=function(e,t){function r(){var t=u*o,r=t+o>=e.size?e.size:t+o;s.readAsArrayBuffer(n.call(e,t,r))}var n=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,o=2097152,a=Math.ceil(e.size/o),u=0,l=new i.ArrayBuffer,s=new FileReader;r(),s.onloadend=function(e){l.append(e.target.result),u++,u<a?r():t(null,l.end())},s.onerror=function(){t("oops, something went wrong.")}}},JSQk:function(e,t,r){!function(t){e.exports=t()}(function(e){"use strict";function t(e,t,r,i,n,o){return t=b(b(t,e),b(i,o)),b(t<<n|t>>>32-n,r)}function r(e,r,i,n,o,a,u){return t(r&i|~r&n,e,r,o,a,u)}function i(e,r,i,n,o,a,u){return t(r&n|i&~n,e,r,o,a,u)}function n(e,r,i,n,o,a,u){return t(r^i^n,e,r,o,a,u)}function o(e,r,i,n,o,a,u){return t(i^(r|~n),e,r,o,a,u)}function a(e,t){var a=e[0],u=e[1],l=e[2],s=e[3];a=r(a,u,l,s,t[0],7,-680876936),s=r(s,a,u,l,t[1],12,-389564586),l=r(l,s,a,u,t[2],17,606105819),u=r(u,l,s,a,t[3],22,-1044525330),a=r(a,u,l,s,t[4],7,-176418897),s=r(s,a,u,l,t[5],12,1200080426),l=r(l,s,a,u,t[6],17,-1473231341),u=r(u,l,s,a,t[7],22,-45705983),a=r(a,u,l,s,t[8],7,1770035416),s=r(s,a,u,l,t[9],12,-1958414417),l=r(l,s,a,u,t[10],17,-42063),u=r(u,l,s,a,t[11],22,-1990404162),a=r(a,u,l,s,t[12],7,1804603682),s=r(s,a,u,l,t[13],12,-40341101),l=r(l,s,a,u,t[14],17,-1502002290),u=r(u,l,s,a,t[15],22,1236535329),a=i(a,u,l,s,t[1],5,-165796510),s=i(s,a,u,l,t[6],9,-1069501632),l=i(l,s,a,u,t[11],14,643717713),u=i(u,l,s,a,t[0],20,-373897302),a=i(a,u,l,s,t[5],5,-701558691),s=i(s,a,u,l,t[10],9,38016083),l=i(l,s,a,u,t[15],14,-660478335),u=i(u,l,s,a,t[4],20,-405537848),a=i(a,u,l,s,t[9],5,568446438),s=i(s,a,u,l,t[14],9,-1019803690),l=i(l,s,a,u,t[3],14,-187363961),u=i(u,l,s,a,t[8],20,1163531501),a=i(a,u,l,s,t[13],5,-1444681467),s=i(s,a,u,l,t[2],9,-51403784),l=i(l,s,a,u,t[7],14,1735328473),u=i(u,l,s,a,t[12],20,-1926607734),a=n(a,u,l,s,t[5],4,-378558),s=n(s,a,u,l,t[8],11,-2022574463),l=n(l,s,a,u,t[11],16,1839030562),u=n(u,l,s,a,t[14],23,-35309556),a=n(a,u,l,s,t[1],4,-1530992060),s=n(s,a,u,l,t[4],11,1272893353),l=n(l,s,a,u,t[7],16,-155497632),u=n(u,l,s,a,t[10],23,-1094730640),a=n(a,u,l,s,t[13],4,681279174),s=n(s,a,u,l,t[0],11,-358537222),l=n(l,s,a,u,t[3],16,-722521979),u=n(u,l,s,a,t[6],23,76029189),a=n(a,u,l,s,t[9],4,-640364487),s=n(s,a,u,l,t[12],11,-421815835),l=n(l,s,a,u,t[15],16,530742520),u=n(u,l,s,a,t[2],23,-995338651),a=o(a,u,l,s,t[0],6,-198630844),s=o(s,a,u,l,t[7],10,1126891415),l=o(l,s,a,u,t[14],15,-1416354905),u=o(u,l,s,a,t[5],21,-57434055),a=o(a,u,l,s,t[12],6,1700485571),s=o(s,a,u,l,t[3],10,-1894986606),l=o(l,s,a,u,t[10],15,-1051523),u=o(u,l,s,a,t[1],21,-2054922799),a=o(a,u,l,s,t[8],6,1873313359),s=o(s,a,u,l,t[15],10,-30611744),l=o(l,s,a,u,t[6],15,-1560198380),u=o(u,l,s,a,t[13],21,1309151649),a=o(a,u,l,s,t[4],6,-145523070),s=o(s,a,u,l,t[11],10,-1120210379),l=o(l,s,a,u,t[2],15,718787259),u=o(u,l,s,a,t[9],21,-343485551),e[0]=b(a,e[0]),e[1]=b(u,e[1]),e[2]=b(l,e[2]),e[3]=b(s,e[3])}function u(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function l(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function s(e){var t,r,i,n,o,l,s=e.length,f=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=s;t+=64)a(f,u(e.substring(t-64,t)));for(e=e.substring(t-64),r=e.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(a(f,i),t=0;t<16;t+=1)i[t]=0;return n=8*s,n=n.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(n[2],16),l=parseInt(n[1],16)||0,i[14]=o,i[15]=l,a(f,i),f}function f(e){var t,r,i,n,o,u,s=e.length,f=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=s;t+=64)a(f,l(e.subarray(t-64,t)));for(e=t-64<s?e.subarray(t-64):new Uint8Array(0),r=e.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)i[t>>2]|=e[t]<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(a(f,i),t=0;t<16;t+=1)i[t]=0;return n=8*s,n=n.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(n[2],16),u=parseInt(n[1],16)||0,i[14]=o,i[15]=u,a(f,i),f}function c(e){var t,r="";for(t=0;t<4;t+=1)r+=F[e>>8*t+4&15]+F[e>>8*t&15];return r}function d(e){var t;for(t=0;t<e.length;t+=1)e[t]=c(e[t]);return e.join("")}function p(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function h(e,t){var r,i=e.length,n=new ArrayBuffer(i),o=new Uint8Array(n);for(r=0;r<i;r+=1)o[r]=e.charCodeAt(r);return t?o:n}function m(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function v(e,t,r){var i=new Uint8Array(e.byteLength+t.byteLength);return i.set(new Uint8Array(e)),i.set(new Uint8Array(t),e.byteLength),r?i:i.buffer}function y(e){var t,r=[],i=e.length;for(t=0;t<i-1;t+=2)r.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,r)}function g(){this.reset()}var b=function(e,t){return e+t&4294967295},F=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return"5d41402abc4b2a76b9719d911017c592"!==d(s("hello"))&&(b=function(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return e=0|e||0,e<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(r,i){var n,o,a,u,l=this.byteLength,s=t(r,l),f=l;return i!==e&&(f=t(i,l)),s>f?new ArrayBuffer(0):(n=f-s,o=new ArrayBuffer(n),a=new Uint8Array(o),u=new Uint8Array(this,s,n),a.set(u),o)}}(),g.prototype.append=function(e){return this.appendBinary(p(e)),this},g.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,r=this._buff.length;for(t=64;t<=r;t+=64)a(this._hash,u(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},g.prototype.end=function(e){var t,r,i=this._buff,n=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<n;t+=1)o[t>>2]|=i.charCodeAt(t)<<(t%4<<3);return this._finish(o,n),r=d(this._hash),e&&(r=y(r)),this.reset(),r},g.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},g.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},g.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},g.prototype._finish=function(e,t){var r,i,n,o=t;if(e[o>>2]|=128<<(o%4<<3),o>55)for(a(this._hash,e),o=0;o<16;o+=1)e[o]=0;r=8*this._length,r=r.toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),n=parseInt(r[1],16)||0,e[14]=i,e[15]=n,a(this._hash,e)},g.hash=function(e,t){return g.hashBinary(p(e),t)},g.hashBinary=function(e,t){var r=s(e),i=d(r);return t?y(i):i},g.ArrayBuffer=function(){this.reset()},g.ArrayBuffer.prototype.append=function(e){var t,r=v(this._buff.buffer,e,!0),i=r.length;for(this._length+=e.byteLength,t=64;t<=i;t+=64)a(this._hash,l(r.subarray(t-64,t)));return this._buff=t-64<i?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},g.ArrayBuffer.prototype.end=function(e){var t,r,i=this._buff,n=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<n;t+=1)o[t>>2]|=i[t]<<(t%4<<3);return this._finish(o,n),r=d(this._hash),e&&(r=y(r)),this.reset(),r},g.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.ArrayBuffer.prototype.getState=function(){var e=g.prototype.getState.call(this);return e.buff=m(e.buff),e},g.ArrayBuffer.prototype.setState=function(e){return e.buff=h(e.buff,!0),g.prototype.setState.call(this,e)},g.ArrayBuffer.prototype.destroy=g.prototype.destroy,g.ArrayBuffer.prototype._finish=g.prototype._finish,g.ArrayBuffer.hash=function(e,t){var r=f(new Uint8Array(e)),i=d(r);return t?y(i):i},g})},V8q2:function(e,t,r){"use strict";function i(e){return r.i(d.a)({url:"/unionService/AliOSS/signature",method:"post",params:{dir:e},withCredentials:!1})}function n(){return r.i(d.a)({url:"/unionService/AliOSS/mediaResource/oss/url",method:"get"})}function o(){return r.i(d.a)({url:"/unionService/AliOSS/upgradePackage/oss/url",method:"get"})}function a(){return r.i(d.a)({url:"/unionService/AliOSS/deviceConfig/oss/url",method:"get"})}function u(){return r.i(d.a)({url:"/unionService/AliOSS/store/logo/oss/url",method:"get"})}function l(){return r.i(d.a)({url:"/unionService/AliOSS/trade/oss/url",method:"get"})}function s(){return r.i(d.a)({url:"/unionService/AliOSS/goods/oss/url",method:"get"})}function f(){return r.i(d.a)({url:"/unionService/AliOSS/apk/oss/url",method:"get"})}function c(e){return r.i(d.a)({url:"/service-org/Region/getCitys?parentId="+e,method:"get"})}t.a=i,t.g=n,t.d=o,t.e=a,t.h=u,t.i=l,t.b=s,t.f=f,t.c=c;var d=r("Vo7i")},fNc5:function(e,t,r){t=e.exports=r("FZ+f")(!0),t.push([e.i,".el-upload-list{width:50%}","",{version:3,sources:["D:/projects/gitLab/wxpos/posadmin/src/views/ota/version/add.vue"],names:[],mappings:"AACA,gBACE,SAAW,CACZ",file:"add.vue",sourcesContent:["\n.el-upload-list {\n width: 50%;\n}\n"],sourceRoot:""}])},iVxu:function(e,t,r){e.exports=r("CBWy")},t7x4:function(e,t,r){"use strict";var i=r("V8q2"),n=r("3eLu"),o=r("iVxu"),a=r.n(o);t.a={created:function(){var e=this;r.i(i.a)("otadev").then(function(t){e.updata.data.policy=t.result.policy,e.updata.data.OSSAccessKeyId=t.result.accessid,e.updata.data.success_action_status="200",e.updata.data.signature=t.result.signature,e.updata.url=t.result.host}),r.i(i.d)().then(function(t){e.mediaUrl=t.result})},data:function(){return{fileList:[],loadingInstance:null,options:[{value:"0",label:"增量包"},{value:"1",label:"全量包"},{value:"2",label:"PDA包"}],ruleForm:{fileName:"",filePath:"",md5Code:"",fileSize:"",versionCode:"",manufacturer:"",deviceType:"",deviceModel:"",customer:"",fileType:"",prevPackageId:0,releaseNote:""},rules:{versionCode:[{required:!0,message:"请输入版本",trigger:"blur"}],fileType:[{required:!0,message:"请选择包类型",trigger:"blur"}]},updata:{url:"",data:{}},selected:[],mediaUrl:""}},methods:{handleRemove:function(e,t){this.ruleForm={fileName:"",filePath:"",md5Code:"",fileSize:"",versionCode:"",manufacturer:"",deviceType:"",deviceModel:"",customer:"",fileType:"",releaseNote:""}},submitForm:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return!1;r.i(n.d)(t.ruleForm).then(function(e){var r=t.$router;t.$message({message:"操作成功",type:"success",duration:1e3,onClose:function(){r.push({path:"index"})}})})})},resetForm:function(e){this.$refs[e].resetFields()},handleAvatarSuccess:function(e,t){console.log(t),this.ruleForm.fileName=t.name,this.ruleForm.filePath=this.mediaUrl,this.ruleForm.fileSize=t.size,this.fileList=[]},beforeAvatarUpload:function(e){var t=e.name,r="",i=this.findPackageType(t);if("zeng"===i)r=t.split("-")[2].split(".")[0]+"."+t.split("-")[2].split(".")[1]+"."+t.split("-")[3].split(".")[0],this.ruleForm.fileType="0";else if("quan"===i)r=t.split(".")[2]+"."+t.split(".")[3]+"."+t.split(".")[4],this.ruleForm.fileType="1";else{var n=t.substring(0,t.lastIndexOf(".")).split("#")[1];r=n,this.ruleForm.fileType="2"}if(r.indexOf("undefined")>=0)return this.$message.error("包名称错误!"),!1;this.updata.data.key="otadev/"+e.name,this.ruleForm.versionCode=r;var o=this.ruleForm;return a()(e,function(e,t){o.md5Code=t}),!0},findPackageType:function(e){if(e.indexOf("#")>=0)return"pda";var t=e.split(".");return t[t.length-2].indexOf("-")>=0?"zeng":"quan"}}}},"yq/Z":function(e,t,r){"use strict";function i(e){r("4lE3")}Object.defineProperty(t,"__esModule",{value:!0});var n=r("t7x4"),o=r("9bCr"),a=r("VU/8"),u=i,l=a(n.a,o.a,u,null,null);t.default=l.exports}});
  2. //# sourceMappingURL=27.9a1da23cb618a5b23528.js.map