| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1ef5d1a0"],{"1cfa":function(e,t,r){"use strict";var o=r("8170"),n=r("b852"),i=r("a3da");e.exports={formats:i,parse:n,stringify:o}},"7e2f":function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,n=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e){while(e.length>1){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var o=[],i=0;i<r.length;++i)"undefined"!==typeof r[i]&&o.push(r[i]);t.obj[t.prop]=o}}},l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)"undefined"!==typeof e[o]&&(r[o]=e[o]);return r},s=function e(t,r,i){if(!r)return t;if("object"!==typeof r){if(n(t))t.push(r);else{if(!t||"object"!==typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(r);var a=t;return n(t)&&!n(r)&&(a=l(t,i)),n(t)&&n(r)?(r.forEach((function(r,n){if(o.call(t,n)){var a=t[n];a&&"object"===typeof a&&r&&"object"===typeof r?t[n]=e(a,r,i):t.push(r)}else t[n]=r})),t):Object.keys(r).reduce((function(t,n){var a=r[n];return o.call(t,n)?t[n]=e(t[n],a,i):t[n]=a,t}),a)},c=function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},u=function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(n){return o}},f=function(e,t,r){if(0===e.length)return e;var o=e;if("symbol"===typeof e?o=Symbol.prototype.toString.call(e):"string"!==typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var n="",a=0;a<o.length;++a){var l=o.charCodeAt(a);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122?n+=o.charAt(a):l<128?n+=i[l]:l<2048?n+=i[192|l>>6]+i[128|63&l]:l<55296||l>=57344?n+=i[224|l>>12]+i[128|l>>6&63]+i[128|63&l]:(a+=1,l=65536+((1023&l)<<10|1023&o.charCodeAt(a)),n+=i[240|l>>18]+i[128|l>>12&63]+i[128|l>>6&63]+i[128|63&l])}return n},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var n=t[o],i=n.obj[n.prop],l=Object.keys(i),s=0;s<l.length;++s){var c=l[s],u=i[c];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:c}),r.push(u))}return a(t),e},d=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},y=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},m=function(e,t){return[].concat(e,t)},h=function(e,t){if(n(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)};e.exports={arrayToObject:l,assign:c,combine:m,compact:p,decode:u,encode:f,isBuffer:y,isRegExp:d,maybeMap:h,merge:s}},8170:function(e,t,r){"use strict";var o=r("7e2f"),n=r("a3da"),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,s=Array.prototype.push,c=function(e,t){s.apply(e,l(t)?t:[t])},u=Date.prototype.toISOString,f=n["default"],p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:n.formatters[f],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},d=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},y=function e(t,r,n,i,a,s,u,f,y,m,h,v,b){var g=t;if("function"===typeof u?g=u(r,g):g instanceof Date?g=m(g):"comma"===n&&l(g)&&(g=o.maybeMap(g,(function(e){return e instanceof Date?m(e):e})).join(",")),null===g){if(i)return s&&!v?s(r,p.encoder,b,"key"):r;g=""}if(d(g)||o.isBuffer(g)){if(s){var w=v?r:s(r,p.encoder,b,"key");return[h(w)+"="+h(s(g,p.encoder,b,"value"))]}return[h(r)+"="+h(String(g))]}var j,O=[];if("undefined"===typeof g)return O;if(l(u))j=u;else{var k=Object.keys(g);j=f?k.sort(f):k}for(var x=0;x<j.length;++x){var C=j[x],F=g[C];if(!a||null!==F){var N=l(g)?"function"===typeof n?n(r,C):r:r+(y?"."+C:"["+C+"]");c(O,e(F,N,n,i,a,s,u,f,y,m,h,v,b))}}return O},m=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=n["default"];if("undefined"!==typeof e.format){if(!i.call(n.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o=n.formatters[r],a=p.filter;return("function"===typeof e.filter||l(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:a,formatter:o,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var r,o,n=e,i=m(t);"function"===typeof i.filter?(o=i.filter,n=o("",n)):l(i.filter)&&(o=i.filter,r=o);var s,u=[];if("object"!==typeof n||null===n)return"";s=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=a[s];r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var p=0;p<r.length;++p){var d=r[p];i.skipNulls&&null===n[d]||c(u,y(n[d],d,f,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.formatter,i.encodeValuesOnly,i.charset))}var h=u.join(i.delimiter),v=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),h.length>0?v+h:""}},a3da:function(e,t,r){"use strict";var o=String.prototype.replace,n=/%20/g,i=r("7e2f"),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return o.call(e,n,"+")},RFC3986:function(e){return String(e)}}},a)},b852:function(e,t,r){"use strict";var o=r("7e2f"),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",f=function(e,t){var r,f={},p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,y=p.split(t.delimiter,d),m=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r<y.length;++r)0===y[r].indexOf("utf8=")&&(y[r]===u?h="utf-8":y[r]===c&&(h="iso-8859-1"),m=r,r=y.length);for(r=0;r<y.length;++r)if(r!==m){var v,b,g=y[r],w=g.indexOf("]="),j=-1===w?g.indexOf("="):w+1;-1===j?(v=t.decoder(g,a.decoder,h,"key"),b=t.strictNullHandling?null:""):(v=t.decoder(g.slice(0,j),a.decoder,h,"key"),b=o.maybeMap(s(g.slice(j+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),b&&t.interpretNumericEntities&&"iso-8859-1"===h&&(b=l(b)),g.indexOf("[]=")>-1&&(b=i(b)?[b]:b),n.call(f,v)?f[v]=o.combine(f[v],b):f[v]=b}return f},p=function(e,t,r,o){for(var n=o?t:s(t,r),i=e.length-1;i>=0;--i){var a,l=e[i];if("[]"===l&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var c="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,u=parseInt(c,10);r.parseArrays||""!==c?!isNaN(u)&&l!==c&&String(u)===c&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(a=[],a[u]=n):a[c]=n:a={0:n}}n=a}return n},d=function(e,t,r,o){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=r.depth>0&&a.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}var f=0;while(r.depth>0&&null!==(s=l.exec(i))&&f<r.depth){if(f+=1,!r.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),p(u,t,r,o)}},y=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=y(t);if(""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var n="string"===typeof e?f(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(n),l=0;l<a.length;++l){var s=a[l],c=d(s,n[s],r,"string"===typeof e);i=o.merge(i,c,r)}return o.compact(i)}},f21c:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("br"),r("br"),r("br"),r("el-row",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{gutter:20}},[r("el-col",{attrs:{span:10}},[r("el-card",{staticClass:"box-card"},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",[e._v("app版本控制")])]),r("div",{staticClass:"text item"},[e._v(" 当前版本 "+e._s(e.Version)+" ")]),r("br"),r("div",{staticClass:"text item"},[e._v(" 时间 "+e._s(e._f("filterFmtDate")(e.CreatedAt))+" ")]),r("br"),r("div",{staticClass:"text item"},[e._v(" 文件名 "+e._s(e.FileName)+" ")]),r("br"),r("div",{staticClass:"text item"},[e._v(" 升级内容 "+e._s(e.UpdateContent)+" ")])])],1),r("el-col",{attrs:{span:10}},[r("el-card",{staticClass:"box-card"},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",[e._v("wgt上传")])]),r("div",{staticClass:"text item"},[e._v(" 版本号 "),r("el-input",{attrs:{placeholder:"如1.1.1"},model:{value:e.upload.version,callback:function(t){e.$set(e.upload,"version",t)},expression:"upload.version"}})],1),r("div",{staticClass:"text item"},[e._v(" 更新内容 "),r("el-input",{attrs:{placeholder:"更新内容"},model:{value:e.upload.updateContent,callback:function(t){e.$set(e.upload,"updateContent",t)},expression:"upload.updateContent "}})],1),r("div",{staticClass:"text item"},[r("el-upload",{ref:"my-upload",staticClass:"upload-demo",attrs:{action:e.trueApi.UpVueFramework,"http-request":e.upqiniu,"show-file-list":!1,limit:1,"before-upload":e.beforeUpload}},[r("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只能上传wgt文件,且不超过50mb")])],1)],1)])],1)],1)],1)},n=[],i=r("1cfa"),a={name:"versionControlMefisto",data:function(){return{trueApi:{UpVueFramework:headbpi+"v1/Sensors/UpVueFramework",QueryVueFramework:headbpi+"v1/Sensors/QueryVueFramework"},falseApi:{UpVueFramework:"http://192.168.0.3:19096/v1/Sensors/UpVueFramework",QueryVueFramework:"http://192.168.0.3:19096/v1/Sensors/QueryVueFramework"},loading:!1,Version:"",CreatedAt:"",FileName:"",UpdateContent:"",fileList:[],upload:{version:"1.3.0",updateContent:"基础功能",file:[]}}},mounted:function(){this.QueryVueFramework()},methods:{upqiniu:function(e){var t=this;t.loading=!0;var r={headers:{"Content-Type":"multipart/form-data"}},o=new FormData;o.append("file",e.file),o.append("version",t.upload.version),o.append("updateContent",t.upload.updateContent),this.axios.post(this.trueApi.UpVueFramework,o,r).then((function(e){console.log(e.data),t.QueryVueFramework(),t.loading=!1,t.$refs["my-upload"].clearFiles()}))},beforeUpload:function(e){var t=e.size/1024/1024<50;return t||this.$message.error("上传wgt大小不能超过 50MB!"),t},QueryVueFramework:function(){var e=this,t={token:localStorage.token},r=i.stringify(t),o=e.trueApi.QueryVueFramework;axios.post(o,r).then((function(t){var r=t.data;0==r.Code?(e.Version=r.VueFramework.Version,e.CreatedAt=r.VueFramework.CreatedAt,e.FileName=r.VueFramework.FileName,e.UpdateContent=r.VueFramework.UpdateContent,e.upload.version=r.VueFramework.Version):console.log(r.Memo)}))}},filters:{filterFmtDate:function(e){return e?nonTfmtDate(e,16):"--"}}},l=a,s=r("9ca4"),c=Object(s["a"])(l,o,n,!1,null,"d2cfc026",null);t["default"]=c.exports}}]);
- //# sourceMappingURL=chunk-1ef5d1a0.8e8b6539.js.map
|