TransFlow/dist/static/js/chunk-25a6b5bf.31998b63.js

2 lines
12 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25a6b5bf"],{2707:function(e,t,r){"use strict";t["a"]={dataUrl:"http://172.16.1.168:5000/api/AddShipjk",getSpareElementOrder:"http://172.16.1.168:5000/api/Upload",postSetQuanjsz:"http://172.16.1.168:5000/api/SetQuanjsz",addFigure:"http://172.16.1.168:5000/api/AddJianktx",editFigure:"http://172.16.1.168:5000/api/EditTuxmc",editComponent:"http://172.16.1.168:5000/api/SetMonqjkzjcs"}},"2cba":function(e,t,r){"use strict";var n=r("99d2"),a=r.n(n);a.a},"365c":function(e,t,r){"use strict";r.d(t,"e",(function(){return o})),r.d(t,"f",(function(){return i})),r.d(t,"a",(function(){return c})),r.d(t,"h",(function(){return l})),r.d(t,"c",(function(){return s})),r.d(t,"d",(function(){return u})),r.d(t,"i",(function(){return p})),r.d(t,"k",(function(){return d})),r.d(t,"l",(function(){return f})),r.d(t,"j",(function(){return m})),r.d(t,"b",(function(){return y})),r.d(t,"g",(function(){return b})),r.d(t,"m",(function(){return h}));var n=r("bc3a"),a=r.n(n);r("4328");a.a.defaults.baseURL="/";var o=function(e){return a.a.get("api/GetShipjk",{params:e})},i=function(e){return a.a.get("api/GetQuanjsz",{params:e})},c=function(e){return a.a.get("api/SyncVideo",{params:e})},l=function(e){return a.a.get("api/StopAlgorithm",{params:e})},s=function(e){return a.a.get("api/DeleteShipjk",{params:e})},u=function(e){return a.a.get("api/GetFeixpz",{params:e})},p=function(e){return a.a.post("api/SetCameraPosition",e,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},d=function(e){return a.a.post("api/SetLicensePlate",e,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},f=function(e){return a.a.post("api/SetParkingStatus",e,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},m=function(e){return a.a.post("api/SetFeixzbzh",e,{headers:{"Content-Type":"application/json"}})},y=function(e){return a.a.get("api/GetMonqjkzjcsDetails",{params:e})},b=function(e){return a.a.get("api/GetSection",{params:e})},h=function(e){return a.a.post("api/SetQuanjsz",e,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})}},4127:function(e,t,r){"use strict";var n=r("d233"),a=r("b313"),o={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},i=Date.prototype.toISOString,c={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(e){return i.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,r,a,o,i,l,s,u,p,d,f,m){var y=t;if("function"===typeof s)y=s(r,y);else if(y instanceof Date)y=d(y);else if(null===y){if(o)return l&&!m?l(r,c.encoder):r;y=""}if("string"===typeof y||"number"===typeof y||"boolean"===typeof y||n.isBuffer(y)){if(l){var b=m?r:l(r,c.encoder);return[f(b)+"="+f(l(y,c.encoder))]}return[f(r)+"="+f(String(y))]}var h,g=[];if("undefined"===typeof y)return g;if(Array.isArray(s))h=s;else{var v=Object.keys(y);h=u?v.sort(u):v}for(var j=0;j<h.length;++j){var w=h[j];i&&null===y[w]||(g=Array.isArray(y)?g.concat(e(y[w],a(r,w),a,o,i,l,s,u,p,d,f,m)):g.concat(e(y[w],r+(p?"."+w:"["+w+"]"),a,o,i,l,s,u,p,d,f,m)))}return g};e.exports=function(e,t){var r=e,i=t?n.assign({},t):{};if(null!==i.encoder&&void 0!==i.encoder&&"function"!==typeof i.encoder)throw new TypeError("Encoder has to be a function.");var s="undefined"===typeof i.delimiter?c.delimiter:i.delimiter,u="boolean"===typeof i.strictNullHandling?i.strictNullHandling:c.strictNullHandling,p="boolean"===typeof i.skipNulls?i.skipNulls:c.skipNulls,d="boolean"===typeof i.encode?i.encode:c.encode,f="function"===typeof i.encoder?i.encoder:c.encoder,m="function"===typeof i.sort?i.sort:null,y="undefined"!==typeof i.allowDots&&i.allowDots,b="function"===typeof i.serializeDate?i.serializeDate:c.serializeDate,h="boolean"===typeof i.encodeValuesOnly?i.encodeValuesOnly:c.encodeValuesOnly;if("undefined"===typeof i.format)i.format=a["default"];else if(!Object.prototype.hasOwnProperty.call(a.formatters,i.format))throw new TypeError("Unknown format option provided.");var g,v,j=a.formatters[i.format];"function"===typeof i.filter?(v=i.filter,r=v("",r)):Array.isArray(i.filter)&&(v=i.filter,g=v);var w,S=[];if("object"!==typeof r||null===r)return"";w=i.arrayFormat in o?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var O=o[w];g||(g=Object.keys(r)),m&&g.sort(m);for(var x=0;x<g.length;++x){var A=g[x];p&&null===r[A]||(S=S.concat(l(r[A],A,O,u,p,d?f:null,v,m,y,b,j,h)))}var F=S.join(s),k=!0===i.addQueryPrefix?"?":"";return F.length>0?k+F:""}},4328:function(e,t,r){"use strict";var n=r("4127"),a=r("9e6a"),o=r("b313");e.exports={formats:o,parse:a,stringify:n}},"6d8a":function(e,t,r){"use strict";var n=r("8dbd"),a=r.n(n);a.a},"8dbd":function(e,t,r){},"99d2":function(e,t,r){},"9e6a":function(e,t,r){"use strict";var n=r("d233"),a=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},i=function(e,t){for(var r={},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,c=n.split(t.delimiter,i),l=0;l<c.length;++l){var s,u,p=c[l],d=p.indexOf("]="),f=-1===d?p.indexOf("="):d+1;-1===f?(s=t.decoder(p,o.decoder),u=t.strictNullHandling?null:""):(s=t.decoder(p.slice(0,f),o.decoder),u=t.decoder(p.slice(f+1),o.decoder)),a.call(r,s)?r[s]=[].concat(r[s]).concat(u):r[s]=u}return r},c=function(e,t,r){for(var n=t,a=e.length-1;a>=0;--a){var o,i=e[a];if("[]"===i)o=[],o=o.concat(n);else{o=r.plainObjects?Object.create(null):{};var c="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,l=parseInt(c,10);!isNaN(l)&&i!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(o=[],o[l]=n):o[c]=n}n=o}return n},l=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,l=o.exec(n),s=l?n.slice(0,l.index):n,u=[];if(s){if(!r.plainObjects&&a.call(Object.prototype,s)&&!r.allowPrototypes)return;u.push(s)}var p=0;while(null!==(l=i.exec(n))&&p<r.depth){if(p+=1,!r.plainObjects&&a.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(l[1])}return l&&u.push("["+n.slice(l.index)+"]"),c(u,t,r)}};e.exports=function(e,t){var r=t?n.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!==typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"===typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:o.delimiter,r.depth="number"===typeof r.depth?r.depth:o.depth,r.arrayLimit="number"===typeof r.arrayLimit?r.arrayLimit:o.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"===typeof r.decoder?r.decoder:o.decoder,r.allowDots="boolean"===typeof r.allowDots?r.allowDots:o.allowDots,r.plainObjects="boolean"===typeof r.plainObjects?r.plainObjects:o.plainObjects,r.allowPrototypes="boolean"===typeof r.allowPrototypes?r.allowPrototypes:o.allowPrototypes,r.parameterLimit="number"===typeof r.parameterLimit?r.parameterLimit:o.parameterLimit,r.strictNullHandling="boolean"===typeof r.strictNullHandling?r.strictNullHandling:o.strictNullHandling,""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var a="string"===typeof e?i(e,r):e,c=r.plainObjects?Object.create(null):{},s=Object.keys(a),u=0;u<s.length;++u){var p=s[u],d=l(p,a[p],r);c=n.merge(c,d,r)}return n.compact(c)}},b313:function(e,t,r){"use strict";var n=String.prototype.replace,a=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},d233:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e){var t;while(e.length){var r=e.pop();if(t=r.obj[r.prop],Array.isArray(t)){for(var n=[],a=0;a<t.length;++a)"undefined"!==typeof t[a]&&n.push(t[a]);r.obj[r.prop]=n}}return t},i=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!==typeof e[n]&&(r[n]=e[n]);return r},c=function e(t,r,a){if(!r)return t;if("object"!==typeof r){if(Array.isArray(t))t.push(r);else{if("object"!==typeof t)return[t,r];(a.plainObjects||a.allowPrototypes||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!==typeof t)return[t].concat(r);var o=t;return Array.isArray(t)&&!Array.isArray(r)&&(o=i(t,a)),Array.isArray(t)&&Array.isArray(r)?(r.forEach((function(r,o){n.call(t,o)?t[o]&&"object"===typeof t[o]?t[o]=e(t[o],r,a):t.push(r):t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return n.call(t,o)?t[o]=e(t[o],i,a):t[o]=i,t}),o)},l=function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},s=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},u=function(e){if(0===e.length)return e;for(var t="string"===typeof e?e:String(e),r="",n=0;n<t.length;++n){var o=t.charCodeAt(n);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=t.charAt(n):o<128?r+=a[o]:o<2048?r+=a[192|o>>6]+a[128|63&o]:o<55296||o>=57344?r+=a[224|o>>12]+a[128|o>>6&63]+a[128|63&o]:(n+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(n)),r+=a[240|o>>18]+a[128|o>>12&63]+a[128|o>>6&63]+a[128|63&o])}return r},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var a=t[n],i=a.obj[a.prop],c=Object.keys(i),l=0;l<c.length;++l){var s=c[l],u=i[s];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:s}),r.push(u))}return o(t)},d=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},f=function(e){return null!==e&&"undefined"!==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};e.exports={arrayToObject:i,assign:l,compact:p,decode:s,encode:u,isBuffer:f,isRegExp:d,merge:c}},d3b4:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"content-box"},[r("div",{staticClass:"container"},[r("p",{staticClass:"title"},[e._v("全局设置")]),r("el-form",{attrs:{"label-position":"left","label-width":"120px"}},[r("el-form-item",{attrs:{label:"视频接入上限:"}},[r("el-input-number",{attrs:{min:1,size:"mini",max:8},model:{value:e.videoNumber,callback:function(t){e.videoNumber=t},expression:"videoNumber"}}),r("i",{staticClass:"el-icon-warning",staticStyle:{color:"#409EFF",margin:"0 3px 0 10px"}}),e._v("范围1-8、默认6\n ")],1),r("el-form-item",{attrs:{label:"跳帧设置:"}},[r("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:e.FPS,callback:function(t){e.FPS=t},expression:"FPS"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),r("i",{staticClass:"el-icon-warning",staticStyle:{color:"#409EFF",margin:"0 3px 0 10px"}}),e._v("默认取值:单路视频流 0 2-3 路视频流 14-6 路视频流 4\n ")],1),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.commit()}}},[e._v("保存")])],1)],1)])},a=[],o=r("365c"),i=r("2707"),c=r("bc3a"),l=r.n(c),s={data:function(){return{videoNumber:6,FPS:"0",id:"",options:[{value:"0",label:"0"},{value:"1",label:"1"},{value:"4",label:"4"}]}},mounted:function(){this.getShipjkDatalist()},methods:{handleChangeVideoNumber:function(e){var t=this;console.log("videoNumber",e),this.videoNumber=e;var r=new FormData;r.append("F_NB_SHIPJRSX",e),r.append("F_NB_TIAOZSZ",this.FPS),r.append("F_VC_ID",this.id),l()({method:"post",url:i["a"].postSetQuanjsz,data:r}).then((function(e){console.log("res",e),200==e.data.code?t.$message({message:e.data.msg,type:"success"}):t.$message({message:e.data.msg,type:"warning"})}))},handleChange:function(e){var t=this;console.log("FPS",e),this.FPS=e;var r=new URLSearchParams;r.append("VideoAccessLimit",this.videoNumber),r.append("SkipFrame",e),r.append("GlobalSettingId",this.id),r(r).then((function(e){t.$message({message:e.data.msg,type:"success"})}))},getShipjkDatalist:function(){var e=this;Object(o["f"])().then((function(t){console.log("res11111",t),200==t.data.code&&(e.videoNumber=t.data.data.videoAccessLimit,e.FPS=t.data.data.skipFrame,e.id=t.data.data.globalSettingId)}))},commit:function(){var e=this,t=new URLSearchParams;t.append("VideoAccessLimit",this.videoNumber),t.append("SkipFrame",this.FPS),t.append("GlobalSettingId",this.id),Object(o["m"])(t).then((function(t){e.$message({message:t.data.msg,type:"success"})}))}}},u=s,p=(r("2cba"),r("6d8a"),r("2877")),d=Object(p["a"])(u,n,a,!1,null,"4415e7e6",null);t["default"]=d.exports}}]);
//# sourceMappingURL=chunk-25a6b5bf.31998b63.js.map