webpackJsonp([6],{"+4oF":function(t,e,i){t.exports=i.p+"static/img/updatelog2024-8-1.c72f8ac.jpg"},"+708":function(t,e,i){"use strict";var a={name:"vue-particles",props:{color:{type:String,default:"#dedede"},particleOpacity:{type:Number,default:.7},particlesNumber:{type:Number,default:80},shapeType:{type:String,default:"circle"},particleSize:{type:Number,default:4},linesColor:{type:String,default:"#dedede"},linesWidth:{type:Number,default:1},lineLinked:{type:Boolean,default:!0},lineOpacity:{type:Number,default:.4},linesDistance:{type:Number,default:150},moveSpeed:{type:Number,default:3},hoverEffect:{type:Boolean,default:!0},hoverMode:{type:String,default:"grab"},clickEffect:{type:Boolean,default:!0},clickMode:{type:String,default:"push"}},mounted:function(){var t=this;i("JAHf"),this.$nextTick(function(){t.initParticleJS(t.color,t.particleOpacity,t.particlesNumber,t.shapeType,t.particleSize,t.linesColor,t.linesWidth,t.lineLinked,t.lineOpacity,t.linesDistance,t.moveSpeed,t.hoverEffect,t.hoverMode,t.clickEffect,t.clickMode)})},methods:{initParticleJS:function(t,e,i,a,n,o,s,r,l,c,d,h,u,f,g){particlesJS("particles-js",{particles:{number:{value:i,density:{enable:!0,value_area:800}},color:{value:t},shape:{type:a,stroke:{width:0,color:"#192231"},polygon:{nb_sides:5}},opacity:{value:e,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:n,random:!0,anim:{enable:!1,speed:40,size_min:.1,sync:!1}},line_linked:{enable:r,distance:c,color:o,opacity:l,width:s},move:{enable:!0,speed:d,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:h,mode:u},onclick:{enable:f,mode:g},onresize:{enable:!0,density_auto:!0,density_area:400}},modes:{grab:{distance:140,line_linked:{opacity:1}},bubble:{distance:400,size:40,duration:2,opacity:8,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0})}}},n={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{attrs:{id:"particles-js",color:t.color,particleOpacity:t.particleOpacity,linesColor:t.linesColor,particlesNumber:t.particlesNumber,shapeType:t.shapeType,particleSize:t.particleSize,linesWidth:t.linesWidth,lineLinked:t.lineLinked,lineOpacity:t.lineOpacity,linesDistance:t.linesDistance,moveSpeed:t.moveSpeed,hoverEffect:t.hoverEffect,hoverMode:t.hoverMode,clickEffect:t.clickEffect,clickMode:t.clickMode}})},staticRenderFns:[]},o=i("VU/8")(a,n,!1,null,null,null);e.a=o.exports},"/6zp":function(t,e,i){"use strict";var a=i("9A4f"),n=i("qf0b"),o={name:"DvDecoration7",props:{color:{type:Array,default:function(){return[]}}},data:function(){return{defaultColor:["#1dc1f5","#1dc1f5"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(a.deepMerge)(Object(n.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"dv-decoration-7"},[i("svg",{attrs:{width:"21px",height:"20px"}},[i("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:t.mergedColor[0],points:"10, 0 19, 10 10, 20"}}),t._v(" "),i("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:t.mergedColor[1],points:"2, 0 11, 10 2, 20"}})]),t._v(" "),t._t("default"),t._v(" "),i("svg",{attrs:{width:"21px",height:"20px"}},[i("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:t.mergedColor[0],points:"11, 0 2, 10 11, 20"}}),t._v(" "),i("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:t.mergedColor[1],points:"19, 0 10, 10 19, 20"}})])],2)},staticRenderFns:[]},r=i("VU/8")(o,s,!1,null,null,null);e.a=r.exports},"/Q7J":function(t,e,i){"use strict";var a=i("Dd8w"),n=i.n(a),o=i("kN6d"),s=i("9A4f"),r=i("qf0b"),l={name:"DvConicalColumnChart",mixins:[o.a],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"conical-column-chart",defaultConfig:{data:[],img:[],fontSize:12,imgSideLength:30,columnColor:"rgba(0, 194, 255, 0.4)",textColor:"#fff",showValue:!1},mergedConfig:null,column:[]}},watch:{config:function(){(0,this.calcData)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcData)()},onResize:function(){(0,this.calcData)()},calcData:function(){var t=this.mergeConfig,e=this.initData,i=this.calcSVGPath;t(),e(),i()},mergeConfig:function(){var t=this.defaultConfig,e=this.config;this.mergedConfig=Object(s.deepMerge)(Object(r.deepClone)(t,!0),e||{})},initData:function(){var t=this.mergedConfig,e=t.data;(e=Object(r.deepClone)(e,!0)).sort(function(t,e){var i=t.value,a=e.value;return i>a?-1:i<a?1:i===a?0:void 0});var i=e[0]?e[0].value:10;e=e.map(function(t){return n()({},t,{percent:t.value/i})}),t.data=e},calcSVGPath:function(){var t=this.mergedConfig,e=this.width,i=this.height,a=t.imgSideLength,o=t.fontSize,s=t.data,r=e/(s.length+1),l=i-a-o-5,c=i-o-5;this.column=s.map(function(t,e){var i=t.percent,a=r*(e+1),s=r*e,d=c-l*i,h=l*i*.6+d,u="\n          M"+s+", "+c+"\n          Q"+a+", "+h+" "+a+","+d+"\n          M"+a+","+d+"\n          Q"+a+", "+h+" "+r*(e+2)+","+c+"\n          L"+s+", "+c+"\n          Z\n        ",f=(c+d)/2+o/2;return n()({},t,{d:u,x:a,y:d,textY:f})})}}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-conical-column-chart"},[i("svg",{attrs:{width:t.width,height:t.height}},t._l(t.column,function(e,a){return i("g",{key:a},[i("path",{attrs:{d:e.d,fill:t.mergedConfig.columnColor}}),t._v(" "),i("text",{style:"fontSize:"+t.mergedConfig.fontSize+"px",attrs:{fill:t.mergedConfig.textColor,x:e.x,y:t.height-4}},[t._v("\n        "+t._s(e.name)+"\n      ")]),t._v(" "),t.mergedConfig.img.length?i("image",{attrs:{"xlink:href":t.mergedConfig.img[a%t.mergedConfig.img.length],width:t.mergedConfig.imgSideLength,height:t.mergedConfig.imgSideLength,x:e.x-t.mergedConfig.imgSideLength/2,y:e.y-t.mergedConfig.imgSideLength}}):t._e(),t._v(" "),t.mergedConfig.showValue?i("text",{style:"fontSize:"+t.mergedConfig.fontSize+"px",attrs:{fill:t.mergedConfig.textColor,x:e.x,y:e.textY}},[t._v("\n        "+t._s(e.value)+"\n      ")]):t._e()])}),0)])},staticRenderFns:[]},d=i("VU/8")(l,c,!1,null,null,null);e.a=d.exports},"/hz0":function(t,e){},0:function(t,e,i){i("j1ja"),t.exports=i("NHnr")},"0xDb":function(t,e,i){"use strict";e.a=function t(e){if(!e&&"object"!==(void 0===e?"undefined":s()(e)))throw new Error("error arguments","deepClone");var i=e.constructor===Array?[]:{};n()(e).forEach(function(a){e[a]&&"object"===s()(e[a])?i[a]=t(e[a]):i[a]=e[a]});return i};var a=i("fZjL"),n=i.n(a),o=i("pFYg"),s=i.n(o)},1:function(t,e){},"11IE":function(t,e){},"17FL":function(t,e){},"1BEG":function(t,e,i){"use strict";var a=i("Gu7T"),n=i.n(a),o=i("d7EF"),s=i.n(o),r=i("kN6d"),l=i("9A4f"),c=i("qf0b"),d={name:"DvDecoration1",mixins:[r.a],props:{color:{type:Array,default:function(){return[]}}},data:function(){return{ref:"decoration-1",svgWH:[200,50],svgScale:[1,1],rowNum:4,rowPoints:20,pointSideLength:2.5,halfPointSideLength:1.25,points:[],rects:[],defaultColor:["#fff","#0de7c2"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcSVGData)()},calcSVGData:function(){var t=this.calcPointsPosition,e=this.calcRectsPosition,i=this.calcScale;t(),e(),i()},calcPointsPosition:function(){var t=this.svgWH,e=this.rowNum,i=this.rowPoints,a=s()(t,2),o=a[0],r=a[1],l=o/(i+1),c=r/(e+1),d=new Array(e).fill(0).map(function(t,e){return new Array(i).fill(0).map(function(t,i){return[l*(i+1),c*(e+1)]})});this.points=d.reduce(function(t,e){return[].concat(n()(t),n()(e))},[])},calcRectsPosition:function(){var t=this.points,e=this.rowPoints,i=t[2*e-1],a=t[2*e-3];this.rects=[i,a]},calcScale:function(){var t=this.width,e=this.height,i=this.svgWH,a=s()(i,2),n=a[0],o=a[1];this.svgScale=[t/n,e/o]},onResize:function(){(0,this.calcSVGData)()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(l.deepMerge)(Object(c.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},h={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-decoration-1"},[i("svg",{style:"transform:scale("+t.svgScale[0]+","+t.svgScale[1]+");",attrs:{width:t.svgWH[0]+"px",height:t.svgWH[1]+"px"}},[t._l(t.points,function(e,a){return[Math.random()>.6?i("rect",{key:a,attrs:{fill:t.mergedColor[0],x:e[0]-t.halfPointSideLength,y:e[1]-t.halfPointSideLength,width:t.pointSideLength,height:t.pointSideLength}},[Math.random()>.6?i("animate",{attrs:{attributeName:"fill",values:t.mergedColor[0]+";transparent",dur:"1s",begin:2*Math.random(),repeatCount:"indefinite"}}):t._e()]):t._e()]}),t._v(" "),t.rects[0]?i("rect",{attrs:{fill:t.mergedColor[1],x:t.rects[0][0]-t.pointSideLength,y:t.rects[0][1]-t.pointSideLength,width:2*t.pointSideLength,height:2*t.pointSideLength}},[i("animate",{attrs:{attributeName:"width",values:"0;"+2*t.pointSideLength,dur:"2s",repeatCount:"indefinite"}}),t._v(" "),i("animate",{attrs:{attributeName:"height",values:"0;"+2*t.pointSideLength,dur:"2s",repeatCount:"indefinite"}}),t._v(" "),i("animate",{attrs:{attributeName:"x",values:t.rects[0][0]+";"+(t.rects[0][0]-t.pointSideLength),dur:"2s",repeatCount:"indefinite"}}),t._v(" "),i("animate",{attrs:{attributeName:"y",values:t.rects[0][1]+";"+(t.rects[0][1]-t.pointSideLength),dur:"2s",repeatCount:"indefinite"}})]):t._e(),t._v(" "),t.rects[1]?i("rect",{attrs:{fill:t.mergedColor[1],x:t.rects[1][0]-40,y:t.rects[1][1]-t.pointSideLength,width:40,height:2*t.pointSideLength}},[i("animate",{attrs:{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"}}),t._v(" "),i("animate",{attrs:{attributeName:"x",values:t.rects[1][0]+";"+(t.rects[1][0]-40)+";"+t.rects[1][0],dur:"2s",repeatCount:"indefinite"}})]):t._e()],2)])},staticRenderFns:[]},u=i("VU/8")(d,h,!1,null,null,null);e.a=u.exports},"1lWj":function(t,e,i){t.exports=i.p+"static/img/wximg.c22a874.png"},2:function(t,e){},"2l50":function(t,e,i){t.exports=i.p+"static/img/bcc3.d382434.png"},3:function(t,e){},"3M+E":function(t,e,i){t.exports=i.p+"static/img/cma.e944b38.jpg"},4:function(t,e){},"46Ky":function(t,e,i){"use strict";var a={name:"DvFullScreenContainer",mixins:[i("kN6d").a],data:function(){return{ref:"full-screen-container",allWidth:0,scale:0,datavRoot:"",ready:!1}},methods:{afterAutoResizeMixinInit:function(){var t=this.initConfig,e=this.setAppScale;t(),e(),this.ready=!0},initConfig:function(){var t=this.dom,e=screen,i=e.width,a=e.height;this.allWidth=i,t.style.width=i+"px",t.style.height=a+"px"},setAppScale:function(){var t=this.allWidth,e=this.dom,i=document.body.clientWidth;e.style.transform="scale("+i/t+")"},onResize:function(){(0,this.setAppScale)()}}},n={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{ref:this.ref,attrs:{id:"dv-full-screen-container"}},[this.ready?[this._t("default")]:this._e()],2)},staticRenderFns:[]},o=i("VU/8")(a,n,!1,null,null,null);e.a=o.exports},"4LX4":function(t,e){},"4Vh3":function(t,e){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},"4vb6":function(t,e){},"5NCg":function(t,e){},"5o8e":function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s={name:"DvBorderBox2",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-2",defaultColor:["#fff","rgba(255, 255, 255, 0.6)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-border-box-2"},[i("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[i("polygon",{attrs:{fill:t.backgroundColor,points:"\n      7, 7 "+(t.width-7)+", 7 "+(t.width-7)+", "+(t.height-7)+" 7, "+(t.height-7)+"\n    "}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],points:"2, 2 "+(t.width-2)+" ,2 "+(t.width-2)+", "+(t.height-2)+" 2, "+(t.height-2)+" 2, 2"}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[1],points:"6, 6 "+(t.width-6)+", 6 "+(t.width-6)+", "+(t.height-6)+" 6, "+(t.height-6)+" 6, 6"}}),t._v(" "),i("circle",{attrs:{fill:t.mergedColor[0],cx:"11",cy:"11",r:"1"}}),t._v(" "),i("circle",{attrs:{fill:t.mergedColor[0],cx:t.width-11,cy:"11",r:"1"}}),t._v(" "),i("circle",{attrs:{fill:t.mergedColor[0],cx:t.width-11,cy:t.height-11,r:"1"}}),t._v(" "),i("circle",{attrs:{fill:t.mergedColor[0],cx:"11",cy:t.height-11,r:"1"}})]),t._v(" "),i("div",{staticClass:"border-box-content"},[t._t("default")],2)])},staticRenderFns:[]},l=i("VU/8")(s,r,!1,null,null,null);e.a=l.exports},"5ujs":function(t,e){},"653D":function(t,e){},"66xU":function(t,e,i){t.exports=i.p+"static/img/cnas.2093417.jpg"},"6ZSt":function(t,e){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},"7xIN":function(t,e){},"80xR":function(t,e,i){"use strict";var a=i("kN6d"),n=i("3e7c"),o=i("9A4f"),s=i("qf0b"),r={name:"DvBorderBox8",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3},backgroundColor:{type:String,default:"transparent"},reverse:{type:Boolean,default:!1}},data:function(){var t=Object(n.e)();return{ref:"border-box-8",path:"border-box-8-path-"+t,gradient:"border-box-8-gradient-"+t,mask:"border-box-8-mask-"+t,defaultColor:["#235fa7","#4fd2dd"],mergedColor:[]}},computed:{length:function(){return 2*(this.width+this.height-5)},pathD:function(){var t=this.reverse,e=this.width,i=this.height;return t?"M 2.5, 2.5 L 2.5, "+(i-2.5)+" L "+(e-2.5)+", "+(i-2.5)+" L "+(e-2.5)+", 2.5 L 2.5, 2.5":"M2.5, 2.5 L"+(e-2.5)+", 2.5 L"+(e-2.5)+", "+(i-2.5)+" L2.5, "+(i-2.5)+" L2.5, 2.5"}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(o.deepMerge)(Object(s.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-border-box-8"},[i("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[i("defs",[i("path",{attrs:{id:t.path,d:t.pathD,fill:"transparent"}}),t._v(" "),i("radialGradient",{attrs:{id:t.gradient,cx:"50%",cy:"50%",r:"50%"}},[i("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),t._v(" "),i("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),t._v(" "),i("mask",{attrs:{id:t.mask}},[i("circle",{attrs:{cx:"0",cy:"0",r:"150",fill:"url(#"+t.gradient+")"}},[i("animateMotion",{attrs:{dur:t.dur+"s",path:t.pathD,rotate:"auto",repeatCount:"indefinite"}})],1)])],1),t._v(" "),i("polygon",{attrs:{fill:t.backgroundColor,points:"5, 5 "+(t.width-5)+", 5 "+(t.width-5)+" "+(t.height-5)+" 5, "+(t.height-5)}}),t._v(" "),i("use",{attrs:{stroke:t.mergedColor[0],"stroke-width":"1","xlink:href":"#"+t.path}}),t._v(" "),i("use",{attrs:{stroke:t.mergedColor[1],"stroke-width":"3","xlink:href":"#"+t.path,mask:"url(#"+t.mask+")"}},[i("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+t.length,to:t.length+", 0",dur:t.dur+"s",repeatCount:"indefinite"}})])]),t._v(" "),i("div",{staticClass:"border-box-content"},[t._t("default")],2)])},staticRenderFns:[]},c=i("VU/8")(r,l,!1,null,null,null);e.a=c.exports},"8YCc":function(t,e){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},"8j9S":function(t,e,i){t.exports=i.p+"static/img/qrcode (1).bb4eeed.png"},"8oBm":function(t,e,i){t.exports=i.p+"static/img/极化方向分析.cfa1653.png"},"8slu":function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s={name:"DvDecoration8",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1}},data:function(){return{ref:"decoration-8",defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{xPos:function(t){var e=this.reverse,i=this.width;return e?i-t:t},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-decoration-8"},[i("svg",{attrs:{width:t.width,height:t.height}},[i("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",fill:"transparent",points:t.xPos(0)+", 0 "+t.xPos(30)+", "+t.height/2}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",fill:"transparent",points:t.xPos(20)+", 0 "+t.xPos(50)+", "+t.height/2+" "+t.xPos(t.width)+", "+t.height/2}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[1],fill:"transparent","stroke-width":"3",points:t.xPos(0)+", "+(t.height-3)+", "+t.xPos(200)+", "+(t.height-3)}})])])},staticRenderFns:[]},l=i("VU/8")(s,r,!1,null,null,null);e.a=l.exports},"977A":function(t,e){},"9Eed":function(t,e){},APxr:function(t,e,i){t.exports=i.p+"static/img/f3.8177ace.png"},AUKR:function(t,e,i){t.exports=i.p+"static/img/测试下单.5c3af13.png"},AzjG:function(t,e,i){"use strict";e.b=function(t){return Object(a.a)({url:"/system/userCenter/addPoints",method:"post",params:t})},e.f=function(t){return Object(a.a)({url:"/system/userCenter/selectName/"+t,method:"get"})},e.d=function(t){return Object(a.a)({method:"get",url:"/system/userCenter/getPoints",params:t})},e.c=function(t){return Object(a.a)({method:"get",url:"/system/SignInPoints/GetAllSignIn",params:t})},e.a=function(t){return Object(a.a)({method:"post",url:"/system/SignInPoints/AddSignInPoints",params:t})},e.e=function(t){return Object(a.a)({method:"get",url:"/system/SignInPoints/GetSignIn",params:t})};var a=i("vLgD")},BAOd:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={records:[{phase:"sample",hkl1:"0,0,2",hkl2:"0,2,0",dError:"0.01",d1:"1.00",d2:"1.00",ang12:"90",zone:"-1,0,0",diffPoints:[{hkl:"0,0,-2",position:{x:150,y:150}},{hkl:"0,-2,0",position:{x:200,y:150}},{hkl:"0,2,0",position:{x:250,y:150}},{hkl:"0,0,2",position:{x:150,y:200}},{hkl:"0,2,2",position:{x:200,y:200}},{hkl:"0,2,-2",position:{x:250,y:200}},{hkl:"0,-2,2",position:{x:150,y:250}},{hkl:"0,-2,-2",position:{x:200,y:250}},{hkl:"0,-2,-2",position:{x:250,y:250}}]},{phase:"sample",hkl1:"0,0,2",hkl2:"2,0,0",dError:"0.01",d1:"1.00",d2:"1.00",ang12:"90",zone:"0,1,0",diffPoints:[{hkl:"0,0,-2",position:{x:230,y:230}},{hkl:"0,-2,0",position:{x:300,y:230}},{hkl:"0,2,0",position:{x:370,y:230}},{hkl:"0,0,2",position:{x:230,y:300}},{hkl:"0,2,2",position:{x:300,y:300}},{hkl:"0,2,-2",position:{x:370,y:300}},{hkl:"0,-2,2",position:{x:230,y:370}},{hkl:"0,-2,-2",position:{x:300,y:370}},{hkl:"0,-2,-2",position:{x:370,y:370}}]},{phase:"sample",hkl1:"0,0,2",hkl2:"-2,0,0",dError:"0.01",d1:"1.00",d2:"1.00",ang12:"90",zone:"0,-1,0",diffPoints:[{hkl:"0,0,-2",position:{x:240,y:240}},{hkl:"0,-2,0",position:{x:280,y:240}},{hkl:"0,2,0",position:{x:320,y:240}},{hkl:"0,0,2",position:{x:260,y:280}},{hkl:"0,2,2",position:{x:300,y:280}},{hkl:"0,2,-2",position:{x:340,y:280}},{hkl:"0,-2,2",position:{x:280,y:320}},{hkl:"0,-2,-2",position:{x:320,y:320}},{hkl:"0,-2,-2",position:{x:360,y:320}}]},{phase:"sample",hkl1:"0,0,2",hkl2:"0,-2,0",dError:"0.01",d1:"1.00",d2:"1.00",ang12:"90",zone:"1,0,0",diffPoints:[{hkl:"0,0,-2",position:{x:105,y:105}},{hkl:"0,-2,0",position:{x:155,y:105}},{hkl:"0,2,0",position:{x:205,y:105}},{hkl:"0,0,2",position:{x:105,y:155}},{hkl:"0,2,2",position:{x:155,y:155}},{hkl:"0,2,-2",position:{x:205,y:155}},{hkl:"0,-2,2",position:{x:105,y:205}},{hkl:"0,-2,-2",position:{x:155,y:205}},{hkl:"0,-2,-2",position:{x:205,y:205}}]}]}},BNBy:function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s={name:"DvBorderBox13",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-13",defaultColor:["#6586ec","#2cf7fe"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-border-box-13"},[i("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[i("path",{attrs:{fill:t.backgroundColor,stroke:t.mergedColor[0],d:"\n        M 5 20 L 5 10 L 12 3  L 60 3 L 68 10\n        L "+(t.width-20)+" 10 L "+(t.width-5)+" 25\n        L "+(t.width-5)+" "+(t.height-5)+" L 20 "+(t.height-5)+"\n        L 5 "+(t.height-20)+" L 5 20\n      "}}),t._v(" "),i("path",{attrs:{fill:"transparent","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"10, 5",stroke:t.mergedColor[0],d:"M 16 9 L 61 9"}}),t._v(" "),i("path",{attrs:{fill:"transparent",stroke:t.mergedColor[1],d:"M 5 20 L 5 10 L 12 3  L 60 3 L 68 10"}}),t._v(" "),i("path",{attrs:{fill:"transparent",stroke:t.mergedColor[1],d:"M "+(t.width-5)+" "+(t.height-30)+" L "+(t.width-5)+" "+(t.height-5)+" L "+(t.width-30)+" "+(t.height-5)}})]),t._v(" "),i("div",{staticClass:"border-box-content"},[t._t("default")],2)])},staticRenderFns:[]},l=i("VU/8")(s,r,!1,null,null,null);e.a=l.exports},BpKH:function(t,e){},BvmP:function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s={name:"DvDecoration5",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:1.2}},data:function(){return{ref:"decoration-5",line1Points:"",line2Points:"",line1Length:0,line2Length:0,defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcSVGData)()},calcSVGData:function(){var t=this.width,e=this.height,i=[[0,.2*e],[.18*t,.2*e],[.2*t,.4*e],[.25*t,.4*e],[.27*t,.6*e],[.72*t,.6*e],[.75*t,.4*e],[.8*t,.4*e],[.82*t,.2*e],[t,.2*e]],a=[[.3*t,.8*e],[.7*t,.8*e]],o=Object(n.getPolylineLength)(i),s=Object(n.getPolylineLength)(a);i=i.map(function(t){return t.join(",")}).join(" "),a=a.map(function(t){return t.join(",")}).join(" "),this.line1Points=i,this.line2Points=a,this.line1Length=o,this.line2Length=s},onResize:function(){(0,this.calcSVGData)()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-decoration-5"},[i("svg",{attrs:{width:t.width,height:t.height}},[i("polyline",{attrs:{fill:"transparent",stroke:t.mergedColor[0],"stroke-width":"3",points:t.line1Points}},[i("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, "+t.line1Length/2+", 0, "+t.line1Length/2,to:"0, 0, "+t.line1Length+", 0",dur:t.dur+"s",begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"}})]),t._v(" "),i("polyline",{attrs:{fill:"transparent",stroke:t.mergedColor[1],"stroke-width":"2",points:t.line2Points}},[i("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, "+t.line2Length/2+", 0, "+t.line2Length/2,to:"0, 0, "+t.line2Length+", 0",dur:t.dur+"s",begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"}})])])])},staticRenderFns:[]},l=i("VU/8")(s,r,!1,null,null,null);e.a=l.exports},Bwl3:function(t,e){},BySr:function(t,e,i){"use strict";var a=i("Xxa5"),n=i.n(a),o=i("//Fk"),s=i.n(o),r=i("exGp"),l=i.n(r),c=i("Dd8w"),d=i.n(c),h=i("Gu7T"),u=i.n(h),f=i("kN6d"),g=i("9A4f"),p=i("qf0b"),m={name:"DvScrollBoard",mixins:[f.a],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"scroll-board",defaultConfig:{header:[],data:[],rowNum:5,headerBGC:"#00BAFF",oddRowBGC:"#003B51",evenRowBGC:"#0A2732",waitTime:2e3,headerHeight:35,columnWidth:[],align:[],index:!1,indexHeader:"#",carousel:"single",hoverPause:!0},mergedConfig:null,header:[],rowsData:[],rows:[],widths:[],heights:[],avgHeight:0,aligns:[],animationIndex:0,animationHandler:"",updater:0,needCalc:!1}},watch:{config:function(){var t=this.stopAnimation,e=this.calcData;t(),this.animationIndex=0,e()}},methods:{handleHover:function(t,e,i,a,n){var o=this.mergedConfig,s=this.emitEvent,r=this.stopAnimation,l=this.animation;t&&s("mouseover",e,i,a,n),o.hoverPause&&(t?r():l(!0))},afterAutoResizeMixinInit:function(){(0,this.calcData)()},onResize:function(){var t=this.mergedConfig,e=this.calcWidths,i=this.calcHeights;t&&(e(),i())},calcData:function(){var t=this.mergeConfig,e=this.calcHeaderData,i=this.calcRowsData;t(),e(),i();var a=this.calcWidths,n=this.calcHeights,o=this.calcAligns;a(),n(),o(),(0,this.animation)(!0)},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(g.deepMerge)(Object(p.deepClone)(e,!0),t||{})},calcHeaderData:function(){var t=this.mergedConfig,e=t.header,i=t.index,a=t.indexHeader;e.length?(e=[].concat(u()(e)),i&&e.unshift(a),this.header=e):this.header=[]},calcRowsData:function(){var t=this.mergedConfig,e=t.data,i=t.index,a=t.headerBGC,n=t.rowNum;i&&(e=e.map(function(t,e){t=[].concat(u()(t));var i='<span class="index" style="background-color: '+a+';">'+(e+1)+"</span>";return t.unshift(i),t}));var o=(e=e.map(function(t,e){return{ceils:t,rowIndex:e}})).length;o>n&&o<2*n&&(e=[].concat(u()(e),u()(e))),e=e.map(function(t,e){return d()({},t,{scroll:e})}),this.rowsData=e,this.rows=e},calcWidths:function(){var t=this.width,e=this.mergedConfig,i=this.rowsData,a=e.columnWidth,n=e.header,o=a.reduce(function(t,e){return t+e},0),s=0;i[0]?s=i[0].ceils.length:n.length&&(s=n.length);var r=(t-o)/(s-a.length),l=new Array(s).fill(r);this.widths=Object(g.deepMerge)(l,a)},calcHeights:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.height,i=this.mergedConfig,a=this.header,n=i.headerHeight,o=i.rowNum,s=i.data,r=e;a.length&&(r-=n);var l=r/o;this.avgHeight=l,t||(this.heights=new Array(s.length).fill(l))},calcAligns:function(){var t=this.header,e=this.mergedConfig,i=t.length,a=new Array(i).fill("left"),n=e.align;this.aligns=Object(g.deepMerge)(a,n)},animation:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return l()(n.a.mark(function i(){var a,o,r,l,c,d,h,f,g,p,m,v,b,y,w,x,C;return n.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(o=t.needCalc,r=t.calcHeights,l=t.calcRowsData,o&&(l(),r(),t.needCalc=!1),c=t.avgHeight,d=t.animationIndex,h=t.mergedConfig,f=t.rowsData,g=t.animation,p=t.updater,m=h.waitTime,v=h.carousel,b=h.rowNum,y=f.length,!(b>=y)){i.next=7;break}return i.abrupt("return");case 7:if(!e){i.next=12;break}return i.next=10,new s.a(function(t){return setTimeout(t,m)});case 10:if(p===t.updater){i.next=12;break}return i.abrupt("return");case 12:return w="single"===v?1:b,(x=f.slice(d)).push.apply(x,u()(f.slice(0,d))),t.rows=x.slice(0,"page"===v?2*b:b+1),t.heights=new Array(y).fill(c),i.next=19,new s.a(function(t){return setTimeout(t,300)});case 19:if(p===t.updater){i.next=21;break}return i.abrupt("return");case 21:(a=t.heights).splice.apply(a,[0,w].concat(u()(new Array(w).fill(0)))),(C=(d+=w)-y)>=0&&(d=C),t.animationIndex=d,t.animationHandler=setTimeout(g,m-300);case 27:case"end":return i.stop()}},i,t)}))()},stopAnimation:function(){var t=this.animationHandler,e=this.updater;this.updater=(e+1)%999999,t&&clearTimeout(t)},emitEvent:function(t,e,i,a,n){var o=a.ceils,s=a.rowIndex;this.$emit(t,{row:o,ceil:n,rowIndex:s,columnIndex:i})},updateRows:function(t,e){var i=this.mergedConfig,a=this.animationHandler,n=this.animation;this.mergedConfig=d()({},i,{data:[].concat(u()(t))}),this.needCalc=!0,"number"==typeof e&&(this.animationIndex=e),a||n(!0)}},destroyed:function(){(0,this.stopAnimation)()}},v={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-scroll-board"},[t.header.length&&t.mergedConfig?i("div",{staticClass:"header",style:"background-color: "+t.mergedConfig.headerBGC+";"},t._l(t.header,function(e,a){return i("div",{key:""+e+a,staticClass:"header-item",style:"\n        height: "+t.mergedConfig.headerHeight+"px;\n        line-height: "+t.mergedConfig.headerHeight+"px;\n        width: "+t.widths[a]+"px;\n      ",attrs:{align:t.aligns[a]},domProps:{innerHTML:t._s(e)}})}),0):t._e(),t._v(" "),t.mergedConfig?i("div",{staticClass:"rows",style:"height: "+(t.height-(t.header.length?t.mergedConfig.headerHeight:0))+"px;"},t._l(t.rows,function(e,a){return i("div",{key:""+e.toString()+e.scroll,staticClass:"row-item",style:"\n        height: "+t.heights[a]+"px;\n        line-height: "+t.heights[a]+"px;\n        background-color: "+t.mergedConfig[e.rowIndex%2==0?"evenRowBGC":"oddRowBGC"]+";\n      "},t._l(e.ceils,function(n,o){return i("div",{key:""+n+a+o,staticClass:"ceil",style:"width: "+t.widths[o]+"px;",attrs:{align:t.aligns[o]},domProps:{innerHTML:t._s(n)},on:{click:function(i){return t.emitEvent("click",a,o,e,n)},mouseenter:function(i){return t.handleHover(!0,a,o,e,n)},mouseleave:function(e){return t.handleHover(!1)}}})}),0)}),0):t._e()])},staticRenderFns:[]},b=i("VU/8")(m,v,!1,null,null,null);e.a=b.exports},CfEr:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=(t=>(t.transparent="rgba(0,0,0,0)",t.black="#000000",t.silver="#C0C0C0",t.gray="#808080",t.white="#FFFFFF",t.maroon="#800000",t.red="#FF0000",t.purple="#800080",t.fuchsia="#FF00FF",t.green="#008000",t.lime="#00FF00",t.olive="#808000",t.yellow="#FFFF00",t.navy="#000080",t.blue="#0000FF",t.teal="#008080",t.aqua="#00FFFF",t.aliceblue="#f0f8ff",t.antiquewhite="#faebd7",t.aquamarine="#7fffd4",t.azure="#f0ffff",t.beige="#f5f5dc",t.bisque="#ffe4c4",t.blanchedalmond="#ffebcd",t.blueviolet="#8a2be2",t.brown="#a52a2a",t.burlywood="#deb887",t.cadetblue="#5f9ea0",t.chartreuse="#7fff00",t.chocolate="#d2691e",t.coral="#ff7f50",t.cornflowerblue="#6495ed",t.cornsilk="#fff8dc",t.crimson="#dc143c",t.cyan="#00ffff",t.darkblue="#00008b",t.darkcyan="#008b8b",t.darkgoldenrod="#b8860b",t.darkgray="#a9a9a9",t.darkgreen="#006400",t.darkgrey="#a9a9a9",t.darkkhaki="#bdb76b",t.darkmagenta="#8b008b",t.darkolivegreen="#556b2f",t.darkorange="#ff8c00",t.darkorchid="#9932cc",t.darkred="#8b0000",t.darksalmon="#e9967a",t.darkseagreen="#8fbc8f",t.darkslateblue="#483d8b",t.darkslategray="#2f4f4f",t.darkslategrey="#2f4f4f",t.darkturquoise="#00ced1",t.darkviolet="#9400d3",t.deeppink="#ff1493",t.deepskyblue="#00bfff",t.dimgray="#696969",t.dimgrey="#696969",t.dodgerblue="#1e90ff",t.firebrick="#b22222",t.floralwhite="#fffaf0",t.forestgreen="#228b22",t.gainsboro="#dcdcdc",t.ghostwhite="#f8f8ff",t.gold="#ffd700",t.goldenrod="#daa520",t.greenyellow="#adff2f",t.grey="#808080",t.honeydew="#f0fff0",t.hotpink="#ff69b4",t.indianred="#cd5c5c",t.indigo="#4b0082",t.ivory="#fffff0",t.khaki="#f0e68c",t.lavender="#e6e6fa",t.lavenderblush="#fff0f5",t.lawngreen="#7cfc00",t.lemonchiffon="#fffacd",t.lightblue="#add8e6",t.lightcoral="#f08080",t.lightcyan="#e0ffff",t.lightgoldenrodyellow="#fafad2",t.lightgray="#d3d3d3",t.lightgreen="#90ee90",t.lightgrey="#d3d3d3",t.lightpink="#ffb6c1",t.lightsalmon="#ffa07a",t.lightseagreen="#20b2aa",t.lightskyblue="#87cefa",t.lightslategray="#778899",t.lightslategrey="#778899",t.lightsteelblue="#b0c4de",t.lightyellow="#ffffe0",t.limegreen="#32cd32",t.linen="#faf0e6",t.magenta="#ff00ff",t.mediumaquamarine="#66cdaa",t.mediumblue="#0000cd",t.mediumorchid="#ba55d3",t.mediumpurple="#9370db",t.mediumseagreen="#3cb371",t.mediumslateblue="#7b68ee",t.mediumspringgreen="#00fa9a",t.mediumturquoise="#48d1cc",t.mediumvioletred="#c71585",t.midnightblue="#191970",t.mintcream="#f5fffa",t.mistyrose="#ffe4e1",t.moccasin="#ffe4b5",t.navajowhite="#ffdead",t.oldlace="#fdf5e6",t.olivedrab="#6b8e23",t.orange="#ffa500",t.orangered="#ff4500",t.orchid="#da70d6",t.palegoldenrod="#eee8aa",t.palegreen="#98fb98",t.paleturquoise="#afeeee",t.palevioletred="#db7093",t.papayawhip="#ffefd5",t.peachpuff="#ffdab9",t.peru="#cd853f",t.pink="#ffc0cb",t.plum="#dda0dd",t.powderblue="#b0e0e6",t.rosybrown="#bc8f8f",t.royalblue="#4169e1",t.saddlebrown="#8b4513",t.salmon="#fa8072",t.sandybrown="#f4a460",t.seagreen="#2e8b57",t.seashell="#fff5ee",t.sienna="#a0522d",t.skyblue="#87ceeb",t.slateblue="#6a5acd",t.slategray="#708090",t.snow="#fffafa",t.springgreen="#00ff7f",t.steelblue="#4682b4",t.tan="#d2b48c",t.thistle="#d8bfd8",t.tomato="#ff6347",t.turquoise="#40e0d0",t.violet="#ee82ee",t.wheat="#f5deb3",t.whitesmoke="#f5f5f5",t.yellowgreen="#9acd32",t))(a||{});function n(t){return"string"==typeof t&&(t=t.toLowerCase(),/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t))}function o(t){return"string"==typeof t&&(t=t.toLowerCase(),/^(rgb\(|RGB\()/.test(t))}function s(t){return"string"==typeof t&&(t=t.toLowerCase(),/^(rgba|RGBA)/.test(t))}function r(t){return/^(rgb|rgba|RGB|RGBA)/.test(t)}function l(t){if(n(t)||r(t))return t;const e=function(t){return a[t]}(t);if(!e)throw new Error(`Color: Invalid Input of ${t}`);return e}function c(t){const e=l(t).toLowerCase();return n(e)?function(t){3===(t=t.replace("#","")).length&&(t=Array.from(t).map(t=>t+t).join(""));const e=t.split("");return new Array(3).fill(0).map((t,i)=>parseInt(`0x${e[2*i]}${e[2*i+1]}`))}(e):function(t){return t.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map(t=>parseInt(t))}(e)}function d(t){const e=l(t);return s(e)?Number(e.toLowerCase().split(",").slice(-1)[0].replace(/[)|\s]/g,"")):1}function h(t){const e=c(t);return e&&[...e,d(t)]}function u(t,e){const i=c(t);return"number"==typeof e?`rgba(${i.join(",")},${e})`:`rgb(${i.join(",")})`}function f(t){if(n(t))return t;return`#${c(t).map(t=>Number(t).toString(16).padStart(2,"0")).join("")}`}function g(t){if(!Array.isArray(t))throw new Error(`getColorFromRgbValue: ${t} is not an array`);const{length:e}=t;if(3!==e&&4!==e)throw new Error("getColorFromRgbValue: value length should be 3 or 4");return(3===e?"rgb(":"rgba(")+t.join(",")+")"}function p(t,e=0){let i=h(t);return g(i=i.map((t,i)=>3===i?t:t-Math.ceil(2.55*e)).map(t=>t<0?0:t))}function m(t,e=0){let i=h(t);return g(i=i.map((t,i)=>3===i?t:t+Math.ceil(2.55*e)).map(t=>t>255?255:t))}function v(t,e=100){return g([...c(t),e/100])}i.d(e,"darken",function(){return p}),i.d(e,"fade",function(){return v}),i.d(e,"getColorFromRgbValue",function(){return g}),i.d(e,"getOpacity",function(){return d}),i.d(e,"getRgbValue",function(){return c}),i.d(e,"getRgbaValue",function(){return h}),i.d(e,"isHex",function(){return n}),i.d(e,"isRgb",function(){return o}),i.d(e,"isRgbOrRgba",function(){return r}),i.d(e,"isRgba",function(){return s}),i.d(e,"lighten",function(){return m}),i.d(e,"toHex",function(){return f}),i.d(e,"toRgb",function(){return u})},DTqG:function(t,e){},DgXS:function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s={name:"DvBorderBox4",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-4",defaultColor:["red","rgba(0,0,255,0.8)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-border-box-4"},[i("svg",{class:"dv-border-svg-container "+(t.reverse&&"dv-reverse"),attrs:{width:t.width,height:t.height}},[i("polygon",{attrs:{fill:t.backgroundColor,points:"\n      "+(t.width-15)+", 22 170, 22 150, 7 40, 7 28, 21 32, 24\n      16, 42 16, "+(t.height-32)+" 41, "+(t.height-7)+" "+(t.width-15)+", "+(t.height-7)+"\n    "}}),t._v(" "),i("polyline",{staticClass:"dv-bb4-line-1",attrs:{stroke:t.mergedColor[0],points:"145, "+(t.height-5)+" 40, "+(t.height-5)+" 10, "+(t.height-35)+"\n        10, 40 40, 5 150, 5 170, 20 "+(t.width-15)+", 20"}}),t._v(" "),i("polyline",{staticClass:"dv-bb4-line-2",attrs:{stroke:t.mergedColor[1],points:"245, "+(t.height-1)+" 36, "+(t.height-1)+" 14, "+(t.height-23)+"\n        14, "+(t.height-100)}}),t._v(" "),i("polyline",{staticClass:"dv-bb4-line-3",attrs:{stroke:t.mergedColor[0],points:"7, "+(t.height-40)+" 7, "+(t.height-75)}}),t._v(" "),i("polyline",{staticClass:"dv-bb4-line-4",attrs:{stroke:t.mergedColor[0],points:"28, 24 13, 41 13, 64"}}),t._v(" "),i("polyline",{staticClass:"dv-bb4-line-5",attrs:{stroke:t.mergedColor[0],points:"5, 45 5, 140"}}),t._v(" "),i("polyline",{staticClass:"dv-bb4-line-6",attrs:{stroke:t.mergedColor[1],points:"14, 75 14, 180"}}),t._v(" "),i("polyline",{staticClass:"dv-bb4-line-7",attrs:{stroke:t.mergedColor[1],points:"55, 11 147, 11 167, 26 250, 26"}}),t._v(" "),i("polyline",{staticClass:"dv-bb4-line-8",attrs:{stroke:t.mergedColor[1],points:"158, 5 173, 16"}}),t._v(" "),i("polyline",{staticClass:"dv-bb4-line-9",attrs:{stroke:t.mergedColor[0],points:"200, 17 "+(t.width-10)+", 17"}}),t._v(" "),i("polyline",{staticClass:"dv-bb4-line-10",attrs:{stroke:t.mergedColor[1],points:"385, 17 "+(t.width-10)+", 17"}})]),t._v(" "),i("div",{staticClass:"border-box-content"},[t._t("default")],2)])},staticRenderFns:[]},l=i("VU/8")(s,r,!1,null,null,null);e.a=l.exports},EdGx:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkM2RTcwNTA1NzNCRDExRUFBNDI1RDdFNkQxQUMyQTVBIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkM2RTcwNTA2NzNCRDExRUFBNDI1RDdFNkQxQUMyQTVBIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QzZFNzA1MDM3M0JEMTFFQUE0MjVEN0U2RDFBQzJBNUEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QzZFNzA1MDQ3M0JEMTFFQUE0MjVEN0U2RDFBQzJBNUEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6EJadjAAAKRUlEQVR42uxZCWwc1Rn+59rbu96Nj7V3fR97xI4dJ7ZjO5FDwtWWRASSUoraFIHaQlAFlB5UlFIk1FZCqkvLFQNqUkBqShEIqEAcCUlIjI848rHxubbja9e73vUe3p2d2Znpe7NxIFAaAoHEyE96mp3dnXnf9//f/7/3/kfAxxqlyaAy6n/2A3Ve/Q3qrApzwj84E504/F585sQxdqazn4/MxOFrapTKAMqsyjK1Zf0GbV7jFm1eg5MLT7Gsp+ftQOfTz8VnT8x8/P/E0gdlhi3fsr11ryqr4hogSPSNCPJVFEBMsnFh0TfGhyd74rPd7bHp9g5ufniAC7j9kshfFOCMIU+jMBaXqnPXrUXg69HnGlpnLicZnZEg6Y/wSCIIsflRzzv33x3qf+n1c4ggEjn53z1wED1sQ6D5+GzXG4nAxECSSiui0kucjC67mFFptQqFEiiKAkngQOSifi441p+YH+6IT33YFp/pOInuxwV2QTgfaJLRIuBWsyqnZrXGWl+Pxq9XriqrolTGAoJWgpTk5DEwAZGPzbPzw/1x/0iHAIxSkbP+22qDuVhJE/z0G3u2h/oOvCkTIUgG8m966XldydZbhJjfN/vWL3eF+g+8z1AATVdcu7pu682NC0l99vgcz0yGVbkRyCyXVKZyRp1mVqq0QNE0EJKEiIW5ZGx+KOFzdcU9vcdZz8ku1Af58FSEUqUzyqyKEo2lbq0qy7lBZa6qpbXZdlKpNxIUep5AxpGQ5/m4mIwvjJI0k0Mp9bqZQ4/+aqHz2Rbg57gMkwFK7JWFm2+8Z6cLmh9wTfMGhuCm3M81VyEDBgi9Y0eD5bonDhGMhvG8dd+OQFfrq/bVVbaW1hcfd1Y4t2KXiUkANrY4O+uZHRocnRlyT4emXVMxfiJIrwpyulJRnWunNaZihUpD04wCSIKQLZqM+Sa5wKib0eVk0XoLkomaSskDEU+E0EWC5KJvaHH6xJuRqRNHouNH2iAeniq97fVuSpNTnXn6rw9tKgVvTdPVW4rLnGsNRn2RFolizCPA3fu8EEqmQbCt5Z65gw+2ENYb9j2ut22/kw+OdQ23Nq4vLy/N2f/yO8dzrdkF0cjHggkxQsYHhkHSQPccy4V8Ps/oyMj4wNhsZKxvIhoemWU1C5K5gCUyHZTOYFNrdOk0liLSNba8EItMJQLunsW53qPp5df+kNHn2qdf37M74dq/v6TMbli/YVOtc+3G5tf8W+5y+6T0R26xwvY6AkJRAJ5DBhVlG4BOBfDk2yF44RgLafxEx9CzmzfQyux11djqrG+gmxBYePAPT/7Rmp9dEFpIgV9q+AU8n+opYgrDquz8GrM1v6YZMRM4kQvM+8Y9Xt8p19Ds+70j3S/2xZ1Xx1Tl3+Gjvl73K3ftkmZ7BkEKgtmaC2rnVdcvRBfh9jt+vmdnw8N3mswFTp0O0pIowg4+MQeixEKCjUMkrAE2cW6MYUIl2QoQ+BAUlTlrG3587820QmfSYYsluESwrNyWXtvQuCsSPpfE/2qYWDKZ6mdCWKEzZpfbM7PLK6srYDdyxBNvBtm9B2NQbFRoN29bU2nKvGprbVPz5jL7mpqHX0kUfjAQhcISR11hMQMLiwB4XAGBFPHL/9/YOEExBJDIgGyCg+tvuvUOWhIFCcUaApTkHavXOjUaUh2JfLEUKgipnkAWFJU4kdBqnk9CTpap+JEH/vKvJAKZ5FNdFONy0uSRZjiOwVn1vMb7pCFx4zgOrPlFdvojdwlSic1pvJCXnX8wSQYnIC2EQ+h6ZnCSuLiTJ0mSGvJc7YkELMOGDUbCN6RdNkSw3L6MrC8LIgoUqTxKEhT5xePnkhPRKAnoGOXgp894YO+7IaCpFKELbfSl9QQBnW4Wek8nYCrAw2k/D3xSOruSWDZEGIqAQ66YDN5qYiAYFeDVzgio0GSHf1sW0lqauzlEoixHAX/enQXfa9LLsZIUlkmM4IDG66VQTERrJgZ+vysDco0U3LpZD7ddkQ4JRC6WEOE8K5VLKy0MDut/R20aZKRh8OmQg0gsomUNVtPu5jS0uiXkuKnMVyKPXcYxgsE1O9WwpUItS4nlUltVEZFk0Trshjod3Fivk//3eWV2yYL9sywtnSGzbGf2b8wSZYXICpEVIitEVoisEFkhskJkhcgKka9h10nS5Ce20cuiLVVZlkCT3MKYXz5slCQdiLhevgysj0wfZUV596iiCaBIAsjY1IcH8fmd2lJ7TVpBk5O8zP2Ci3f46OLwqRgIaG9sMdGgZoAg59seeyoZ9U5oVhU4evja33qDImiVX64O+1U1FZMqr7a+F4YPBmIIJwnfqtYBzQBPcsExn+ftX9+pJCWhZ5LX3/ePOTjkigOOHA0ixNAX/zzjQuIAl1DVCoQF9aFZHh48MA8vHAnJJ1s3Neqhwa4E71x4RC4+hAde/c80Se20bHtq30SQ1j/00jysK1LCNVVa+awuy0Cf9RJ+AdamfDD5FWgfGxCDxw1XV+ZCAkz4eTiCpHT4VBzmo0nkGRJ+tNkAt20xyHn3b4/+7k9nqygh18uvCGxoU0bTLx5RW+qu65oUoW0kAHo1gMXIQHEWA7ZcBZSYFeiehnQtCfgsHpdwMLGkCBdUUMNGoc5YXNY9ej7CSjCxkAS3l4fBGQ5GvBxMzfMIvAAJXgIlIrAmXwXfb9LDlVVqUGkBnmx55v79rS3/PKccFHW/2xN1v7dNb7tuY1bd7T8pcjTsCHNKrWsmAt3jrDygTkVClp6GgkwGyhCpckSuIIOBzDRKdj8uUCWFT1fUsTxJKgUek8DloEBUlIEOezgkGw7G5njwICLhuCiXUpfGs5gYKETjba3QQXOFCjJNAJNT0aGW+x/6zf7Wx/79GXUtCcKDrx2Noq5e12jbdsu9e6wbr9w5HdHmjHoFGPPGwBNkYRRd3+1bRBmDAKOOglzkNVz+lL2G5FhqpuW0uEQCe2w2kLI2Bo3BTyIS/oggl0exR3B13qAhwX7mHQ6rChx5GigyA5jS5LN21u2e7t339IF9L/597/NjIwOhsx7+PDKoqHAabY4Kh6OqqT7PXt8g6QqrfZyxeDxAUG4vCzP+OISiCZQWRbmKrlOTsvyw0rDFMVET6tOIyMKiINd2CTkLkeh7EqyrUt515mvAZlFAflYquNkYBMbcoy7X8Kn27mNH2rraP+gedPWNRiOhT4n4gvMRlkZurllpc64pdVTWrrOUrt1gyKuujVI5ttNBJs3t42FyDiEIJ/BJsXxEwAuSLBWcLjNlWdLI6ioEXAvlFhKyjSlpzPsjE+Pj7p6ujuPH248d/nBk0NXvHh7wJhKJ88fcxcg2RoMOymwOa5m9co2temN9dlFNXYQ0V3gTBuuEXwSTBqAEWdmGwJfkkLJMBB4WZ6Y8w67+k119vSfbOtuOdp3qPTE05/UsStKF58OvZIbQoJnLmpdnqKyutReWr6ltbNrU4KioWrewEAl0th8/1tV+9Lir72T3UH/PeCgUvCjLov8KMACh7o3ZuB5PhQAAAABJRU5ErkJggg=="},F5G8:function(t,e){},FC45:function(t,e,i){t.exports=i.p+"static/img/sample0.4625962.jpg"},"G/KL":function(t,e){},HJfr:function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s={name:"DvBorderBox10",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-10",border:["left-top","right-top","left-bottom","right-bottom"],defaultColor:["#1d48c4","#d3e1f8"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-border-box-10",style:"box-shadow: inset 0 0 25px 3px "+t.mergedColor[0]},[i("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[i("polygon",{attrs:{fill:t.backgroundColor,points:"\n      4, 0 "+(t.width-4)+", 0 "+t.width+", 4 "+t.width+", "+(t.height-4)+" "+(t.width-4)+", "+t.height+"\n      4, "+t.height+" 0, "+(t.height-4)+" 0, 4\n    "}})]),t._v(" "),t._l(t.border,function(e){return i("svg",{key:e,class:e+" dv-border-svg-container",attrs:{width:"150px",height:"150px"}},[i("polygon",{attrs:{fill:t.mergedColor[1],points:"40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3"}})])}),t._v(" "),i("div",{staticClass:"border-box-content"},[t._t("default")],2)],2)},staticRenderFns:[]},l=i("VU/8")(s,r,!1,null,null,null);e.a=l.exports},HMS8:function(t,e,i){"use strict";var a=i("Xxa5"),n=i.n(a),o=i("exGp"),s=i.n(o),r=i("3e7c"),l=i("9A4f"),c=i("qf0b"),d={name:"DvPercentPond",props:{config:{type:Object,default:function(){return{}}}},data:function(){var t=Object(r.e)();return{gradientId1:"percent-pond-gradientId1-"+t,gradientId2:"percent-pond-gradientId2-"+t,width:0,height:0,defaultConfig:{value:0,colors:["#3DE7C9","#00BAFF"],borderWidth:3,borderGap:3,lineDash:[5,1],textColor:"#fff",borderRadius:5,localGradient:!1,formatter:"{value}%"},mergedConfig:null}},computed:{rectWidth:function(){var t=this.mergedConfig,e=this.width;return t?e-t.borderWidth:0},rectHeight:function(){var t=this.mergedConfig,e=this.height;return t?e-t.borderWidth:0},points:function(){var t=this.mergedConfig,e=this.width,i=this.height/2;if(!t)return"0, "+i+" 0, "+i;var a=t.borderWidth,n=t.borderGap;return"\n        "+(a+n)+", "+i+"\n        "+(a+n+(e-2*(a+n))/100*t.value)+", "+(i+.001)+"\n      "},polylineWidth:function(){var t=this.mergedConfig,e=this.height;return t?e-2*(t.borderWidth+t.borderGap):0},linearGradient:function(){var t=this.mergedConfig;if(!t)return[];var e=t.colors,i=100/(e.length-1);return e.map(function(t,e){return[i*e,t]})},polylineGradient:function(){var t=this.gradientId1,e=this.gradientId2,i=this.mergedConfig;return i&&i.localGradient?t:e},gradient2XPos:function(){var t=this.mergedConfig;return t?200-t.value+"%":"100%"},details:function(){var t=this.mergedConfig;if(!t)return"";var e=t.value;return t.formatter.replace("{value}",e)}},watch:{config:function(){(0,this.mergeConfig)()}},methods:{init:function(){var t=this;return s()(n.a.mark(function e(){var i,a,o;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.initWH,a=t.config,o=t.mergeConfig,e.next=3,i();case 3:if(a){e.next=5;break}return e.abrupt("return");case 5:o();case 6:case"end":return e.stop()}},e,t)}))()},initWH:function(){var t=this;return s()(n.a.mark(function e(){var i,a,o,s,r;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.$nextTick,a=t.$refs,e.next=3,i();case 3:o=a["percent-pond"],s=o.clientWidth,r=o.clientHeight,t.width=s,t.height=r;case 6:case"end":return e.stop()}},e,t)}))()},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(l.deepMerge)(Object(c.deepClone)(e,!0),t||{})}},mounted:function(){(0,this.init)()}},h={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"percent-pond",staticClass:"dv-percent-pond"},[i("svg",[i("defs",[i("linearGradient",{attrs:{id:t.gradientId1,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},t._l(t.linearGradient,function(t){return i("stop",{key:t[0],attrs:{offset:t[0]+"%","stop-color":t[1]}})}),1),t._v(" "),i("linearGradient",{attrs:{id:t.gradientId2,x1:"0%",y1:"0%",x2:t.gradient2XPos,y2:"0%"}},t._l(t.linearGradient,function(t){return i("stop",{key:t[0],attrs:{offset:t[0]+"%","stop-color":t[1]}})}),1)],1),t._v(" "),i("rect",{attrs:{x:t.mergedConfig?t.mergedConfig.borderWidth/2:"0",y:t.mergedConfig?t.mergedConfig.borderWidth/2:"0",rx:t.mergedConfig?t.mergedConfig.borderRadius:"0",ry:t.mergedConfig?t.mergedConfig.borderRadius:"0",fill:"transparent","stroke-width":t.mergedConfig?t.mergedConfig.borderWidth:"0",stroke:"url(#"+t.gradientId1+")",width:t.rectWidth>0?t.rectWidth:0,height:t.rectHeight>0?t.rectHeight:0}}),t._v(" "),i("polyline",{attrs:{"stroke-width":t.polylineWidth,"stroke-dasharray":t.mergedConfig?t.mergedConfig.lineDash.join(","):"0",stroke:"url(#"+t.polylineGradient+")",points:t.points}}),t._v(" "),i("text",{attrs:{stroke:t.mergedConfig?t.mergedConfig.textColor:"#fff",fill:t.mergedConfig?t.mergedConfig.textColor:"#fff",x:t.width/2,y:t.height/2}},[t._v("\n      "+t._s(t.details)+"\n    ")])])])},staticRenderFns:[]},u=i("VU/8")(d,h,!1,null,null,null);e.a=u.exports},HX3G:function(t,e,i){"use strict";var a=i("d7EF"),n=i.n(a),o=i("kN6d"),s=i("3e7c"),r=i("9A4f"),l=i("qf0b"),c=i("CfEr"),d={name:"DvDecoration12",mixins:[o.a],props:{color:{type:Array,default:function(){return[]}},scanDur:{type:Number,default:3},haloDur:{type:Number,default:2}},data:function(){var t=Object(s.e)();return{ref:"decoration-12",gId:"decoration-12-g-"+t,gradientId:"decoration-12-gradient-"+t,defaultColor:["#2783ce","#2cf7fe"],mergedColor:[],pathD:[],pathColor:[],circleR:[],splitLinePoints:[],arcD:[],segment:30,sectorAngle:Math.PI/3,ringNum:3,ringWidth:1,showSplitLine:!0}},watch:{color:function(){(0,this.mergeColor)()}},computed:{x:function(){return this.width/2},y:function(){return this.height/2}},methods:{init:function(){var t=this.mergeColor,e=this.calcPathD,i=this.calcPathColor,a=this.calcCircleR,n=this.calcSplitLinePoints,o=this.calcArcD;t(),e(),i(),a(),n(),o()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(r.deepMerge)(Object(l.deepClone)(e,!0),t||[])},calcPathD:function(){var t=this.x,e=this.y,i=this.width,a=this.segment,n=this.sectorAngle,o=-Math.PI/2,s=n/a,r=i/4,c=Object(l.getCircleRadianPoint)(t,e,r,o);this.pathD=new Array(a).fill("").map(function(i,a){var n=Object(l.getCircleRadianPoint)(t,e,r,o-(a+1)*s).map(function(t){return t.toFixed(5)}),d="M"+c.join(",")+" A"+r+", "+r+" 0 0 0 "+n.join(",");return c=n,d})},calcPathColor:function(){var t=n()(this.mergedColor,1)[0],e=this.segment,i=100/(e-1);this.pathColor=new Array(e).fill(t).map(function(e,a){return Object(c.fade)(t,100-a*i)})},calcCircleR:function(){this.segment;var t=this.ringNum,e=(this.width/2-this.ringWidth/2)/t;this.circleR=new Array(t).fill(0).map(function(t,i){return e*(i+1)})},calcSplitLinePoints:function(){var t=this.x,e=this.y,i=this.width,a=Math.PI/6,n=i/2;this.splitLinePoints=new Array(6).fill("").map(function(i,o){var s=a*(o+1),r=s+Math.PI,c=Object(l.getCircleRadianPoint)(t,e,n,s),d=Object(l.getCircleRadianPoint)(t,e,n,r);return c.join(",")+" "+d.join(",")})},calcArcD:function(){var t=this.x,e=this.y,i=this.width,a=Math.PI/6,n=i/2-1;this.arcD=new Array(4).fill("").map(function(i,o){var s=a*(3*o+1),r=s+a,c=Object(l.getCircleRadianPoint)(t,e,n,s),d=Object(l.getCircleRadianPoint)(t,e,n,r);return"M"+c.join(",")+" A"+t+", "+e+" 0 0 1 "+d.join(",")})},afterAutoResizeMixinInit:function(){(0,this.init)()},fade:c.fade}},h={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-decoration-12"},[i("svg",{attrs:{width:t.width,height:t.height}},[i("defs",[i("g",{attrs:{id:t.gId}},t._l(t.pathD,function(e,a){return i("path",{key:e,attrs:{stroke:t.pathColor[a],"stroke-width":t.width/2,fill:"transparent",d:e}})}),0),t._v(" "),i("radialGradient",{attrs:{id:t.gradientId,cx:"50%",cy:"50%",r:"50%"}},[i("stop",{attrs:{offset:"0%","stop-color":"transparent","stop-opacity":"1"}}),t._v(" "),i("stop",{attrs:{offset:"100%","stop-color":t.fade(t.mergedColor[1]||t.defaultColor[1],30),"stop-opacity":"1"}})],1)],1),t._v(" "),t._l(t.circleR,function(e){return i("circle",{key:e,attrs:{r:e,cx:t.x,cy:t.y,stroke:t.mergedColor[1],"stroke-width":.5,fill:"transparent"}})}),t._v(" "),i("circle",{attrs:{r:"1",cx:t.x,cy:t.y,stroke:"transparent",fill:"url(#"+t.gradientId+")"}},[i("animate",{attrs:{attributeName:"r",values:"1;"+t.width/2,dur:t.haloDur+"s",repeatCount:"indefinite"}}),t._v(" "),i("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:t.haloDur+"s",repeatCount:"indefinite"}})]),t._v(" "),i("circle",{attrs:{r:"2",cx:t.x,cy:t.y,fill:t.mergedColor[1]}}),t._v(" "),t.showSplitLine?i("g",t._l(t.splitLinePoints,function(e){return i("polyline",{key:e,attrs:{points:e,stroke:t.mergedColor[1],"stroke-width":.5,opacity:"0.5"}})}),0):t._e(),t._v(" "),t._l(t.arcD,function(e){return i("path",{key:e,attrs:{d:e,stroke:t.mergedColor[1],"stroke-width":"2",fill:"transparent"}})}),t._v(" "),i("use",{attrs:{"xlink:href":"#"+t.gId}},[i("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0, "+t.x+" "+t.y+";360, "+t.x+" "+t.y,dur:t.scanDur+"s",repeatCount:"indefinite"}})],1)],2),t._v(" "),i("div",{staticClass:"decoration-content"},[t._t("default")],2)])},staticRenderFns:[]},u=i("VU/8")(d,h,!1,null,null,null);e.a=u.exports},"I/zu":function(t,e){},IcnI:function(t,e,i){"use strict";var a=i("7+uW"),n=i("NYxO"),o={showlogin:function(t){return t.user.showlogin}},s={state:{openid:""},mutations:{SET_OPENID:function(t,e){t.openid=e}},actions:{login:function(t,e){(0,t.commit)("SET_OPENID",e)},logout:function(t){(0,t.commit)("SET_OPENID",null)}}};a.default.use(n.a);var r=new n.a.Store({modules:{user:s},getters:o});e.a=r},In5b:function(t,e){},J1Kv:function(t,e){},JYXt:function(t,e){},JeZZ:function(t,e){},JrbI:function(t,e,i){t.exports=i.p+"static/img/bcc1.dc7b5b8.png"},JsWj:function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0icmVkIiBjbGFzcz0iYmkgYmktZmlyZSIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNOCAxNmMzLjMxNCAwIDYtMiA2LTUuNSAwLTEuNS0uNS00LTIuNS02IC4yNSAxLjUtMS4yNSAyLTEuMjUgMkMxMSA0IDkgLjUgNiAwYy4zNTcgMiAuNSA0LTIgNi0xLjI1IDEtMiAyLjcyOS0yIDQuNUMyIDE0IDQuNjg2IDE2IDggMTZabTAtMWMtMS42NTcgMC0zLTEtMy0yLjc1IDAtLjc1LjI1LTIgMS4yNS0zQzYuMTI1IDEwIDcgMTAuNSA3IDEwLjVjLS4zNzUtMS4yNS41LTMuMjUgMi0zLjUtLjE3OSAxLS4yNSAyIDEgMyAuNjI1LjUgMSAxLjM2NCAxIDIuMjVDMTEgMTQgOS42NTcgMTUgOCAxNVoiLz4KPC9zdmc+"},K7ah:function(t,e,i){t.exports=i.p+"static/img/fcc1.3f2b8c7.png"},KYqO:function(t,e){t.exports={_args:[["elliptic@6.5.1","D:\\mydemo\\vue"]],_development:!0,_from:"elliptic@6.5.1",_id:"elliptic@6.5.1",_inBundle:!1,_integrity:"sha512-xvJINNLbTeWQjrl6X+7eQCrIy/YPv5XCpKW6kB5mKvtnGILoLDcySuwomfdzt0BMdLNVnuRNTuzKNHj0bva1Cg==",_location:"/elliptic",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"elliptic@6.5.1",name:"elliptic",escapedName:"elliptic",rawSpec:"6.5.1",saveSpec:null,fetchSpec:"6.5.1"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.5.1.tgz",_spec:"6.5.1",_where:"D:\\mydemo\\vue",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^3.0.4",grunt:"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.2",jscs:"^3.0.7",jshint:"^2.6.0",mocha:"^6.1.4"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.5.1"}},LG4y:function(t,e,i){t.exports=i.p+"static/img/fcc4.5e5ee99.png"},MDGh:function(t,e){},MFQN:function(t,e){},MPgH:function(t,e,i){"use strict";var a=i("lHA8"),n=i.n(a),o=i("c/Tr"),s=i.n(o),r=i("Gu7T"),l=i.n(r),c=i("9A4f"),d=i("qf0b"),h={name:"DvCapsuleChart",props:{config:{type:Object,default:function(){return{}}}},data:function(){return{defaultConfig:{data:[],colors:["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293"],unit:"",showValue:!1},mergedConfig:null,capsuleLength:[],capsuleValue:[],labelData:[],labelDataLength:[]}},watch:{config:function(){(0,this.calcData)()}},methods:{calcData:function(){var t=this.mergeConfig,e=this.calcCapsuleLengthAndLabelData;t(),e()},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(c.deepMerge)(Object(d.deepClone)(e,!0),t||{})},calcCapsuleLengthAndLabelData:function(){var t=this.mergedConfig.data;if(t.length){var e=t.map(function(t){return t.value}),i=Math.max.apply(Math,l()(e));this.capsuleValue=e,this.capsuleLength=e.map(function(t){return i?t/i:0});var a=i/5,o=s()(new n.a(new Array(6).fill(0).map(function(t,e){return Math.ceil(e*a)})));this.labelData=o,this.labelDataLength=s()(o).map(function(t){return i?t/i:0})}}},mounted:function(){(0,this.calcData)()}},u={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"dv-capsule-chart"},[t.mergedConfig?[i("div",{staticClass:"label-column"},[t._l(t.mergedConfig.data,function(e){return i("div",{key:e.name},[t._v(t._s(e.name))])}),t._v(" "),i("div",[t._v(" ")])],2),t._v(" "),i("div",{staticClass:"capsule-container"},[t._l(t.capsuleLength,function(e,a){return i("div",{key:a,staticClass:"capsule-item"},[i("div",{staticClass:"capsule-item-column",style:"width: "+100*e+"%; background-color: "+t.mergedConfig.colors[a%t.mergedConfig.colors.length]+";"},[t.mergedConfig.showValue?i("div",{staticClass:"capsule-item-value"},[t._v(t._s(t.capsuleValue[a]))]):t._e()])])}),t._v(" "),i("div",{staticClass:"unit-label"},t._l(t.labelData,function(e,a){return i("div",{key:e+a},[t._v(t._s(e))])}),0)],2),t._v(" "),t.mergedConfig.unit?i("div",{staticClass:"unit-text"},[t._v(t._s(t.mergedConfig.unit))]):t._e()]:t._e()],2)},staticRenderFns:[]},f=i("VU/8")(h,u,!1,null,null,null);e.a=f.exports},"MU2+":function(t,e){},MqVR:function(t,e){},NHnr:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("qubY"),n=i.n(a),o=i("+TD8"),s=i.n(o),r=i("2X9z"),l=i.n(r),c=(i("tvR6"),i("qBF2")),d=i.n(c),h=i("7+uW"),u=i("VU/8")(null,null,!1,null,null,null).exports,f=(i("7xIN"),i("mvHQ")),g=i.n(f),p=i("fZjL"),m=i.n(p),v=i("p8qR"),b=i("mtWM"),y=i.n(b),w={props:{isShow:{type:Boolean,default:!1}},data:function(){return{childIsShow:this.isShow,sceneStr:"",url:"",signature:"",timer:null,openId:"",changeLoginData:1,form:{phone:"",code:""},sendModel:{countNum:60,countFlag:!1,intervalBtn:{},btnMsg:"获取验证码"},rules:{phone:[{required:!0,message:"请输入手机号码",trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}],code:[{required:!0,message:"请输入6位验证码",trigger:"blur"},{min:6,max:6,message:"请输入6位验证码",trigger:"blur"}]}}},computed:{},created:function(){var t=this;fetch("http://cry.simr.ac.cn/prod-api/getGenerateCode").then(function(t){return t.json()}).then(function(e){t.sceneStr=e.data.sceneStr,t.url=e.data.url;var i=e.data.url.indexOf("ticket");t.signature=e.data.url.slice(i+7),t.timer=setInterval(t.timing,2e3);var a=t.timer;setTimeout(function(){clearInterval(a),console.log("111")},12e4)}).catch(function(t){console.log(t)})},methods:{timing:function(){var t=this,e={"二维码链接参数":this.signature},i=m()(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&");fetch("http://cry.simr.ac.cn/prod-api/hasItBeenScanned?"+i).then(function(t){return t.json()}).then(function(e){if(null!=e.data){clearInterval(t.timer),t.timer=null,t.openId=e.data,Object(v.h)(e.data);fetch("http://cry.simr.ac.cn/prod-api/officialAccountLogin",{method:"POST",headers:{"Content-Type":"application/json"},body:g()({openId:t.openId})}).then(function(t){return t.json()}).then(function(e){null!=e.data.phone?(Object(v.j)(e.data.token),Object(v.i)(e.data.username),Object(v.h)(e.data.openId),Object(v.k)(e.data.userId),localStorage.setItem("zc_nickname",e.data.nickname?e.data.nickname:""),localStorage.setItem("tokenshow",!1),t.childIsShow=!1,t.$message.success("登录成功"),window.location.reload()):(t.$message.success("扫码成功"),Object(v.h)(e.data.openId),t.$router.push("registry"),window.location.reload())}).catch(function(e){return t.$message.error(e),!1})}})},getCode:function(){var t=this;this.$refs.form.validateField("phone",function(e){if(""!=e)return!1;y()({url:"http://cry.simr.ac.cn/prod-api/sendNote/"+t.form.phone,method:"POST"}),t.countDown()})},countDown:function(){var t=this;this.sendModel.btnMsg=null,this.sendModel.countFlag=!this.sendModel.countFlag,this.sendModel.intervalBtn=setInterval(function(){t.sendModel.countNum<=0&&(t.sendModel.btnMsg="获取验证码",clearInterval(t.sendModel.intervalBtn),t.sendModel.countFlag=!t.sendModel.countFlag,t.sendModel.countNum=60),t.sendModel.countNum--},1e3)},onSubmit:function(){var t=this;this.$refs.form.validate(function(e){if(!e)return!1;t.form.openId=Object(v.a)(),y()({url:"http://cry.simr.ac.cn/prod-api/loginByPhone",method:"POST",data:t.form}).then(function(e){200===e.data.code?(Object(v.j)(e.data.data.token),t.$message.success("登录成功"),t.$router.push({path:"/"})):500===e.data.code&&t.$message.error("该手机号未被注册"),window.location.reload()}).catch(function(e){return t.$message.error(e),!1})})}}},x={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-dialog",{attrs:{center:"",visible:t.isShow,width:"25%"},on:{close:function(e){return t.$emit("update:isShow",!1)}}},[a("div",[a("div",{staticClass:"dialog-head"},[a("img",{attrs:{src:i("aCAP"),alt:""}})])]),t._v(" "),a("div",{staticClass:"wxlogin"},[a("div",{staticClass:"wxqrcode"},[1===t.changeLoginData?a("div",{staticClass:"wxcode-top"},[a("h2",[t._v("扫码登录")]),t._v(" "),a("div",{staticClass:"change-login",on:{click:function(e){t.changeLoginData=2}}},[t._v("短信登录")])]):t._e(),t._v(" "),2===t.changeLoginData?a("div",{staticClass:"wxcode-top"},[a("h2",[t._v("短信登录")]),t._v(" "),a("div",{staticClass:"change-login",on:{click:function(e){t.changeLoginData=1}}},[t._v("微信登录")])]):t._e(),t._v(" "),1===t.changeLoginData?a("div",[""!=t.url?a("img",{staticStyle:{width:"180px",height:"180px",background:"#ffffff","box-shadow":"0px 13px 30px 0px rgba(0, 0, 0, 0.12)",border:"1px solid rgba(100, 108, 122, 0.31)",position:"absolute",left:"50%",transform:"translate(-50%, -50%)",top:"50%"},attrs:{src:t.url}}):t._e(),a("br"),t._v(" "),a("h4",[t._v("打开微信扫一扫，快速登录/注册")])]):t._e(),t._v(" "),2===t.changeLoginData?a("div",{staticClass:"phone-login"},[a("div",{staticClass:"phone-login-top"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px",size:"25px",rules:t.rules}},[a("el-form-item",{attrs:{label:"手机号:",prop:"phone"}},[a("el-input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入手机号码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSubmit(e)}},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"验证码:",prop:"code"}},[a("el-input",{staticStyle:{width:"45%"},attrs:{placeholder:"请输入验证码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSubmit(e)}},model:{value:t.form.code,callback:function(e){t.$set(t.form,"code",e)},expression:"form.code"}}),t._v(" "),a("el-button",{staticClass:"visBut",attrs:{type:"primary",size:"small",disabled:t.sendModel.countFlag},on:{click:t.getCode}},[t._v("\n                  "+t._s(null==t.sendModel.btnMsg?t.sendModel.countNum+"s后重发":t.sendModel.btnMsg)+"\n                ")])],1),t._v(" "),a("el-form-item",[a("el-button",{staticClass:"sum-but",attrs:{type:"primary"},nativeOn:{click:function(e){return e.preventDefault(),t.onSubmit(e)}}},[t._v("登录")])],1)],1)],1)]):t._e()])])])],1)},staticRenderFns:[]};var C=i("VU/8")(w,x,!1,function(t){i("UaMl")},"data-v-25cda8f6",null).exports,k={components:{login:u,WxLogin:C},data:function(){return{isShow:!1,isLogin:!0,showLogin:null==Object(v.c)()||"undefined"==Object(v.c)(),isupdatecode:!1,phone:"",url:""===Object(v.c)()||null==Object(v.c)()?"http://cry.simr.ac.cn?logout":"http://cry.simr.ac.cn?token="+Object(v.c)()}},computed:{},methods:{showDialog:function(t){console.log("111"+t),this.isLogin=t,this.isShow=!this.isShow},logout:function(){fetch("http://cry.simr.ac.cn/prod-api/logout",{method:"POST",headers:{client:"Bearer "+Object(v.c)()}}).then(function(){localStorage.removeItem("u"),Object(v.g)(),Object(v.d)(),Object(v.f)(),Object(v.e)(),window.location.reload()}).catch(function(t){console.log(t)})},handleindex:function(t){this.isupdatecode=!0},handlemover:function(){var t=this;this.$refs.headbottom.style.display="block",setTimeout(function(){t.$refs.headright.style.transform="translateX(-100%) translateY(-50%)",t.$refs.headleft.style.transform="translateX(20%) translateY(-50%)"},0)},handleusercenter:function(){this.$router.push({path:"/userCenter"})},handleexchange:function(){this.$router.push({path:"/userCenter",query:{value:"second"}})},handleleave:function(){this.$refs.headbottom.style.display="none",this.$refs.headleft.style.transform="translateX(-50%) translateY(-50%)",this.$refs.headright.style.transform="translateX(-50%) translateY(-50%)"},myself:function(){this.$router.push({path:"/member"})}},created:function(){"undefined"==Object(v.c)()&&(Object(v.f)(),this.$router.replace("/"));var t=localStorage.getItem("u")?JSON.parse(localStorage.getItem("u")):"";localStorage.getItem("u")&&(this.showLogin=!1),t&&t.uuid&&(this.showLogin=!1),function(){var t=document.createElement("script");t.src="https://hm.baidu.com/hm.js?d07847d1517c5d522caca950189b27ca";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}()},mounted:function(){this.phone=Object(v.b)()}},_={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"nav-header"},[a("div",{staticClass:"container"},[a("div",{staticClass:"logo",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center",width:"500px"}},[a("router-link",{attrs:{to:"/"}},[a("img",{attrs:{src:i("aCAP")}})]),t._v(" "),t._m(0)],1),t._v(" "),a("h2",[t._v("TEM数据分析平台(功能持续更新中)")]),t._v(" "),a("div",{staticClass:"service",attrs:{span:10}},[a("el-row",[a("div",{staticClass:"vip"},[a("router-link",{staticStyle:{"margin-top":"2px"},attrs:{to:"/",tag:"div"}},[a("el-row",{staticClass:"icon-order"}),t._v(" "),a("el-row",[a("p",[t._v("首页")])])],1)],1),t._v(" "),a("div",{staticClass:"vip vip3",on:{mouseover:t.handlemover,mouseleave:t.handleleave}},[a("router-link",{attrs:{to:"/",tag:"div"}},[a("el-row",[a("p",[a("i",{staticClass:"iconfont icon-zixun"})])]),t._v(" "),a("el-row",[a("p",[t._v("1对1咨询")])]),t._v(" "),a("div",{ref:"headbottom",staticClass:"logo-bottom"},[a("div",{staticClass:"head"},[a("img",{attrs:{src:i("Px9X"),alt:""}}),t._v(" "),a("span",[t._v("微信扫码咨询客服")])]),t._v(" "),a("div",{ref:"headright",staticClass:"l"},[a("img",{attrs:{src:i("8j9S"),alt:""}})]),t._v(" "),a("div",{ref:"headleft",staticClass:"r"},[a("img",{attrs:{src:i("1lWj"),alt:""}})])])],1)],1),t._v(" "),a("div",{staticClass:"call"},[a("el-row",[a("div",{staticClass:"icon-phone"}),t._v(" "),a("div",{staticClass:"lx"},[a("el-row",[t._v("联系电话")]),t._v(" "),a("el-row",{staticClass:"phone-num"},[t._v("13318842335")])],1)])],1)])],1),t._v(" "),t.showLogin?a("div",{staticClass:"member icon-login"},[a("a",{on:{click:function(e){return e.preventDefault(),t.showDialog(!0)}}},[t._v("登 录")])]):a("div",{staticClass:"member icon-login"},[a("a",{on:{click:function(e){return e.preventDefault(),t.logout(e)}}},[t._v("退出")])])])]),t._v(" "),t.isShow?a("wx-login",{attrs:{isShow:t.isShow},on:{"update:isShow":function(e){t.isShow=e},"update:is-show":function(e){t.isShow=e}}}):t._e(),t._v(" "),a("el-dialog",{staticClass:"mydialog",attrs:{visible:t.isupdatecode,width:"350px"},on:{"update:visible":function(e){t.isupdatecode=e}}},[a("el-card",{attrs:{"body-style":{padding:"0px"}}},[a("img",{staticClass:"updatelogimg",attrs:{src:i("8j9S"),alt:""}})])],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{display:"flex","justify-content":"center",gap:"2px","align-items":"center"}},[e("img",{staticStyle:{"object-fit":"cover",height:"62px",width:"62px"},attrs:{src:i("3M+E")}}),this._v(" "),e("img",{staticStyle:{"object-fit":"cover",height:"54px",width:"54px","margin-top":"-4px","margin-left":"3px"},attrs:{src:i("66xU")}}),this._v(" "),e("img",{staticStyle:{"object-fit":"cover",height:"60px",width:"60px"},attrs:{src:i("ccdI")}})])}]};var S={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"footer"},[a("el-row",{staticClass:"container"},[a("el-col",{attrs:{offset:4,span:10}},[a("el-row",[a("el-col",{staticClass:"company"},[a("h1",{staticStyle:{cursor:"pointer"},attrs:{onclick:"window.open('http://www.zcjce.com',null,'')"}},[t._v(t._s(t.company.name))]),t._v(" "),a("br"),t._v(" "),a("span",[t._v(t._s(t.company.en_name))])])],1),t._v(" "),a("el-row",{staticClass:"company-info"},[a("ul",t._l(t.company.info,function(e,i){return a("li",{key:i},[t._v(t._s(e))])}),0)])],1),t._v(" "),a("el-col",{staticClass:"wechat",attrs:{span:3}},[a("el-row",[a("img",{attrs:{src:i("rqlL")}})]),t._v(" "),a("el-row",[a("span",[t._v("加入分析交流群")])])],1),t._v(" "),a("el-col",{staticClass:"wechat",attrs:{span:3}},[a("el-row",[a("img",{attrs:{src:i("zuiJ")}})]),t._v(" "),a("el-row",[a("span",[t._v("关注电镜分析技术")])])],1)],1),t._v(" "),a("el-row",{staticClass:"h",staticStyle:{margin:"30px","text-align":"center"}},[a("a",{attrs:{href:"http://www.zcjce.com",target:"simr-www-index"}},[t._v("©版权所有 "+t._s(t.company.name)+" |")]),t._v(" "),a("a",{attrs:{href:"https://beian.miit.gov.cn/",target:"icp-www-index"}},[t._v(t._s(t.company.icp))])])],1)},staticRenderFns:[]};var P={name:"App",components:{top:i("VU/8")(k,_,!1,function(t){i("tdzN")},"data-v-6be9c77a",null).exports,bottom:i("VU/8")({data:function(){return{company:{name:"中材新材料研究院（广州）有限公司",en_name:"Sinoma Institute of Materials Research (Guang Zhou) Co. Ltd",icp:"粤ICP备18008253号",info:["业务手机: 133 1884 2335","业务微信: 133 1884 2335","邮箱: test@zcjce. com","测试地点：广州、北京","地址: 广东省广州市黄埔区开源大道11号B9栋101室"]}}},methods:{}},S,!1,function(t){i("cRcz")},"data-v-12af3ff4",null).exports},mounted:function(){h.default.prototype.about_simr?console.log("about_simr Exsits."):h.default.prototype.axios.get("/static/About_SIMR.pdf",{responseType:"arraybuffer"}).then(function(t){console.log("App mount OK"),h.default.prototype.about_simr=t.data}).catch(function(t){throw console.log("App mount Err"),h.default.prototype.$message.error("请求出错了!"),new Error(t)}),h.default.prototype.Questions_code?console.log("Questions_code Exsits."):h.default.prototype.axios.get("/static/newQ2(1).png",{responseType:"arraybuffer"}).then(function(t){h.default.prototype.Questions_code=t.data}).catch(function(t){throw h.default.prototype.$message.error("请求出错了!"),new Error(t)})}},I={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("top"),this._v(" "),e("keep-alive",[this.$route.meta.keepAlive?e("router-view"):this._e()],1),this._v(" "),this.$route.meta.keepAlive?this._e():e("router-view"),this._v(" "),e("bottom")],1)},staticRenderFns:[]};var A=i("VU/8")(P,I,!1,function(t){i("4vb6")},null,null).exports,D=i("/ocq"),M=i("Xxa5"),L=i.n(M),O=i("//Fk"),R=i.n(O),F=i("exGp"),B=i.n(F),N=i("LQMI"),z=i.n(N),j=i("aMwW"),E=i.n(j),T=(i("NYxO"),i("l/9O")),W=(i("j7an"),i("BpKH"),{props:["showLoginDialog"],data:function(){return{commonshow:!0,fileList:[]}},methods:{isLogin:function(){return new R.a(function(t,e){var i=this;fetch("http://cry.simr.ac.cn/prod-api/client/bill/getUserBillList",{method:"POST",headers:{"Content-Type":"application/json",client:Object(v.c)()}}).then(function(t){return t.json()}).then(function(e){401===e.code&&(i.$message.error("登录过期，请重新登录"),Object(v.f)(),t("操作失败！")),t("操作成功！")}).catch(function(e){Object(v.f)(),t("操作失败！")})})},commonAnalyze:function(){var t=this;return B()(L.a.mark(function e(){return L.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.isLogin();case 2:Object(v.c)()?t.$router.push({path:"/commonAnalyze"}):t.$emit("showLoginDialog",!0);case 3:case"end":return e.stop()}},e,t)}))()},singleCrystal:function(){var t=this;return B()(L.a.mark(function e(){return L.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.isLogin();case 2:Object(v.c)()?t.$router.push({path:"/analyze"}):t.$emit("showLoginDialog",!0);case 3:case"end":return e.stop()}},e,t)}))()},singleCrystalNew:function(){var t=this;return B()(L.a.mark(function e(){return L.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return Object(v.c)(),e.next=3,t.isLogin();case 3:Object(v.c)()?window.open("http://www.simr.ac.cn/crystal/login/singleCrystal?code="+Object(v.c)(),"_self"):t.$emit("showLoginDialog",!0);case 4:case"end":return e.stop()}},e,t)}))()},handlevideo:function(){window.open("https://space.bilibili.com/544647763/lists/3836758?type=season","_blank")},toDetail:function(){var t=this;return B()(L.a.mark(function e(){return L.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return Object(v.c)(),e.next=3,t.isLogin();case 3:Object(v.c)()?window.open("http://www.simr.ac.cn/crystal/login?code="+Object(v.c)(),"_self"):t.$emit("showLoginDialog",!0);case 4:case"end":return e.stop()}},e,t)}))()},toLineCount:function(){var t=this;return B()(L.a.mark(function e(){return L.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return Object(v.c)(),e.next=3,t.isLogin();case 3:Object(v.c)()?window.open("http://www.simr.ac.cn/crystal/login/linecount?code="+Object(v.c)(),"_self"):t.$emit("showLoginDialog",!0);case 4:case"end":return e.stop()}},e,t)}))()},toDetail2:function(){var t=this;return B()(L.a.mark(function e(){return L.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return Object(v.c)(),e.next=3,t.isLogin();case 3:Object(v.c)()?window.open("http://www.simr.ac.cn/crystal/login/measurement?code="+Object(v.c)(),"_self"):t.$emit("showLoginDialog",!0);case 4:case"end":return e.stop()}},e,t)}))()},handlecard:function(){var t=this;return B()(L.a.mark(function e(){var i;return L.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.isLogin();case 2:Object(v.c)()?(i="calculationa",t.$router.push({path:"/calculationA",query:{routeName:i}})):t.$emit("showLoginDialog",!0);case 3:case"end":return e.stop()}},e,t)}))()},handlecard2:function(){var t=this;return B()(L.a.mark(function e(){return L.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.isLogin();case 2:Object(v.c)()?(Object(T.d)("消光表"),t.$router.push({path:"/referenceImages"})):t.$emit("showLoginDialog",!0);case 3:case"end":return e.stop()}},e,t)}))()},diffractionRing:function(){var t=this;return B()(L.a.mark(function e(){return L.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.isLogin();case 2:Object(v.c)()?t.$router.push({path:"/diffRings"}):t.$emit("showLoginDialog",!0);case 3:case"end":return e.stop()}},e,t)}))()},handledistance:function(){var t=this;return B()(L.a.mark(function e(){var i;return L.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.isLogin();case 2:Object(v.c)()?(i="calculationb",t.$router.push({path:"/calculationA",query:{routeName:i}})):t.$emit("showLoginDialog",!0);case 3:case"end":return e.stop()}},e,t)}))()},hrtem:function(){this.$router.push({path:"/hrtem"})}},mounted:function(){}}),U={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"upload-box"},[a("vue-particles",{staticClass:"particles",attrs:{color:"#fff",particleOpacity:.3,particlesNumber:30,shapeType:"circle",particleSize:6,linesColor:"#fff",linesWidth:1,lineLinked:!0,lineOpacity:.3,linesDistance:150,moveSpeed:2,hoverEffect:!0,hoverMode:"grab",clickEffect:!1,clickMode:"push"}}),t._v(" "),a("el-row",{staticClass:"upload-container"},[a("el-row",{staticClass:"intr-text"},[a("img",{attrs:{src:i("Prft")}})]),t._v(" "),a("el-row",{staticClass:"row"},[a("el-col",{staticClass:"upload"},[a("el-button",{staticClass:"upload-btn",attrs:{"v-if":t.commonshow},on:{click:t.commonAnalyze}},[t._v("\n            常规晶体学\n            "),a("br"),t._v("计算\n          ")])],1),t._v(" "),a("el-col",{staticClass:"upload"},[a("el-button",{staticClass:"upload-btn",on:{click:t.singleCrystal}},[t._v("\n            单晶衍射斑\n            "),a("br"),t._v("标定(旧版)\n          ")])],1),t._v(" "),a("el-col",{staticClass:"upload"},[a("div",{staticStyle:{position:"absolute"}},[a("img",{staticStyle:{"margin-right":"2px",width:"44px","margin-left":"8px","margin-top":"4px"},attrs:{src:i("p9hd")}})]),t._v(" "),a("el-button",{staticClass:"upload-btn",on:{click:t.singleCrystalNew}},[t._v("\n            单晶衍射斑\n            "),a("br"),t._v("标定(v25.6.10)\n          ")])],1),t._v(" "),a("el-col",{staticClass:"upload"},[a("el-button",{staticClass:"upload-btn",on:{click:t.diffractionRing}},[t._v("\n            多晶衍射环\n            "),a("br"),t._v("标定\n          ")])],1),t._v(" "),a("el-col",{staticClass:"upload",staticStyle:{position:"relative"}},[a("el-button",{staticClass:"upload-btn my-btn",on:{click:t.toLineCount}},[a("p",[t._v("位错密度")]),t._v(" "),a("p",[t._v("统计")])])],1)],1),t._v(" "),a("el-row",{staticClass:"row"},[a("el-col",{staticClass:"upload",staticStyle:{"margin-top":"10px"}},[a("el-button",{staticClass:"upload-btn my-btn",on:{click:t.handlecard}},[a("p",[t._v("晶面夹角测量")])])],1),t._v(" "),a("el-col",{staticClass:"upload",staticStyle:{"margin-top":"10px"}},[a("el-button",{staticClass:"upload-btn my-btn",on:{click:t.handledistance}},[a("p",[t._v("晶面间距测量")])])],1),t._v(" "),a("el-col",{staticClass:"upload",staticStyle:{"margin-top":"10px"}},[a("el-button",{staticClass:"upload-btn my-btn",on:{click:t.handlecard2}},[a("p",[a("img",{staticStyle:{height:"18px","margin-right":"2px"},attrs:{src:i("JsWj")}}),t._v("FCC/BCC/HCP")]),t._v(" "),a("p",[t._v("消光表")]),t._v(" "),a("p",[t._v("(确定伯氏矢量)")])])],1),t._v(" "),a("el-col",{staticClass:"upload",staticStyle:{"margin-top":"10px"}},[a("el-button",{staticClass:"upload-btn my-btn",on:{click:t.toDetail}},[a("p",[a("img",{staticStyle:{height:"18px","margin-right":"2px"},attrs:{src:i("JsWj")}}),t._v("孪晶衍射斑")]),t._v(" "),a("p",[t._v("标定")])])],1),t._v(" "),a("el-col",{staticClass:"upload",staticStyle:{"margin-top":"10px"}},[a("el-button",{staticClass:"upload-btn my-btn",on:{click:t.toDetail2}},[a("p",[a("img",{staticStyle:{height:"18px","margin-right":"2px"},attrs:{src:i("JsWj")}}),t._v("尺寸测量")]),t._v(" "),a("p",[t._v("(粒径分布)")])])],1),t._v(" "),a("el-col",{staticClass:"upload",staticStyle:{"margin-top":"10px"}},[a("el-button",{staticClass:"upload-btn my-btn",on:{click:t.handlevideo}},[a("p",[t._v("视频学习")]),t._v(" "),a("p",[t._v("TEM数据分析")]),t._v(" "),a("p",[t._v("(史老师专讲)")])])],1)],1)],1)],1)},staticRenderFns:[]};var $=i("VU/8")(W,U,!1,function(t){i("wlkb")},"data-v-f681e980",null).exports,q={props:{advertisingFlag:{type:Boolean,default:!1}},methods:{close:function(){this.$emit("update:advertisingFlag",!1)}}},G={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.advertisingFlag?i("div",{staticClass:"mask",on:{click:t.close}},[i("div",{staticClass:"main",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"close",on:{click:t.close}}),t._v(" "),i("div",{staticClass:"time"},[t._v("活动时间：2022年9月01日至9月30日")]),t._v(" "),t._m(0)])]):t._e()},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"con"},[i("div",{staticClass:"item"},[i("div",{staticClass:"title"},[t._v("STEP 1：获取暗号海报（暗号有效期为7天）")]),t._v(" "),i("div",{staticClass:"text",staticStyle:{"margin-top":"7px","line-height":"20px"}},[t._v("①收到样品后工作人员提供带暗号拼团海报 ； ")]),t._v(" "),i("div",{staticClass:"text"},[t._v("②参与其他暗号拼团者，委托书附暗号或联系工作人员报暗号。")])]),t._v(" "),i("div",{staticClass:"item"},[i("span",{staticClass:"title"},[t._v("STEP 2：海报分享：")]),t._v(" "),i("span",{staticClass:"text"},[t._v(" 拼团人员越多，福利越多！")])]),t._v(" "),i("div",{staticClass:"item"},[i("span",{staticClass:"title"},[t._v("STEP 3：拼团查询： ")]),t._v(" "),i("span",{staticClass:"text"},[t._v("关注微信公众号 “中材新材料研究院” ，点")]),t._v(" "),i("div",{staticClass:"text",staticStyle:{"line-height":"20px"}},[t._v("击 “拼团进度查询” ，输入 “暗号” 即可实时查询。")])]),t._v(" "),i("div",{staticClass:"item"},[i("span",{staticClass:"title"},[t._v("STEP 4：成团福利获取： ")]),t._v(" "),i("span",{staticClass:"text"},[t._v("拼团截止，根据 “成团条件” 确定 “成团福利” ，")]),t._v(" "),i("div",{staticClass:"text",staticStyle:{"line-height":"20px"}},[t._v("样品检测完成后，联系工作人员领取福利！")])])])}]};var Y=i("VU/8")(q,G,!1,function(t){i("fP//")},"data-v-3401bb94",null).exports,V=(i("6pDh"),{components:{MainParts:$,login:u,Share:Y,"el-tooltip":E.a,"el-card":z.a,WxLogin:C},data:function(){return{isShow:!1,isLogin:!0,advertisingFlag:!1,isupdatelog:!1,activityNoteImgUrl:i("yuHK"),isFirstTime:!0,isupdatecode:!1,list:[{tag:"VIP测试",introduct:"TEM/FIB/EBSD/球差",link:"http://vip.simr.ac.cn/",img:i("AUKR"),svg:i("JsWj")},{tag:"GPA(应力应变)",introduct:"付费分析",link:"http://web.simr.ac.cn/service/39",img:i("d+3u")},{tag:"极化方向",introduct:"付费分析",link:"http://web.simr.ac.cn",img:i("8oBm")},{tag:"样品厚度(CBED)计算",blacktext:"析出相数密度计算",introduct:"付费分析",link:"http://web.simr.ac.cn/service/38",img:i("owY9")},{tag:"电子衍射模拟",introduct:"付费分析",link:"http://web.simr.ac.cn/service/39",img:i("WwQN")},{tag:"粒径统计",introduct:"付费分析",link:"http://web.simr.ac.cn/case/25",img:i("gqle")},{tag:"一维晶格错配度计算",introduct:"付费分析",link:"http://web.simr.ac.cn/case/25",img:""},{tag:"查看官网",link:"http://web.simr.ac.cn"}],srcList:[i("apZ3")]}},methods:{showLoginDialog:function(t){console.log(t,"ee"),this.isShow=t},handleindex:function(t){switch(t){case 0:window.open("http://vip.simr.ac.cn/","_blank");break;case 7:window.open("http://web.simr.ac.cn/","_blank");break;default:this.isupdatecode=!0}},showImage:function(t){this.$refs["image"+t][0].style.display="block"},showFlashsale:function(){var t=this;this.$nextTick(function(){t.$refs.flashsale.style.left="-400px",t.$refs.flashsale.style.opacity=1})},leaveimage:function(t){this.$refs["image"+t][0].style.display="none"},leaveFlashsale:function(){this.$refs.flashsale.style.left="0px",this.$refs.flashsale.style.opacity=0},isdatelog:function(){this.isupdatelog=!0},loginFromFF:function(){var t=this;return B()(L.a.mark(function e(){var i,a,n,o,s,r,l,c;return L.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=window.location.href,-1===(a=i.indexOf("="))){e.next=17;break}return e.prev=3,n=i.substring(a+1),e.next=7,y()({method:"POST",url:"http://cry.simr.ac.cn/prod-api/loginByToken",data:{},params:{},headers:{client:"Bearer "+n}});case 7:return o=e.sent,s=o.data,r=s.openId,l=s.userId,e.next=11,R.a.all([Object(v.j)(n),Object(v.h)(r),Object(v.k)(l)]);case 11:window.location.href="http://www.simr.ac.cn/",e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),t.$message.error(e.t0);case 17:c=i.indexOf("?"),"logout"===i.substring(c+1)&&(Object(v.d)(),Object(v.f)(),Object(v.g)(),window.location.href="http://www.simr.ac.cn/");case 19:case"end":return e.stop()}},e,t,[[3,14]])}))()},showUpdateLog:function(){var t=this;localStorage.getItem("zc_showUpdateLog")||setTimeout(function(){t.isupdatelog=!0,localStorage.setItem("zc_showUpdateLog",!0),console.log(t.isupdatelog)},1e3)},handleBeforeUnload:function(t){var e=localStorage.getItem("zc_isActivityNote");console.log("isActivityNote---\x3e",e),e&&localStorage.setItem("zc_isActivityNote",!1),console.log("窗口即将关闭，执行清理操作")}},mounted:function(){var t=window.location.href;console.log("url",t);var e=t.indexOf("?");console.log("索引",e),-1!==e&&this.loginFromFF(),this.isShow=JSON.parse(localStorage.getItem("tokenshow"))},created:function(){"undefined"==Object(v.c)()&&(Object(v.f)(),this.$router.replace("/"))}}),Z={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("MainParts",{on:{showLoginDialog:t.showLoginDialog}}),t._v(" "),a("div",{staticClass:"index-nav-box"},[a("div",{staticClass:"container",attrs:{align:"center"}},[a("el-row",{staticStyle:{width:"80%"},attrs:{gutter:12}},t._l(t.list,function(e,i){return a("el-col",{key:i,staticClass:"index-nav-hover",attrs:{span:6},nativeOn:{mouseover:function(e){return t.showImage(i)},mouseleave:function(e){return t.leaveimage(i)}}},[a("el-row",{staticClass:"index-nav-item",nativeOn:{click:function(e){return t.handleindex(i)}}},[a("el-col",[a("el-row",{staticClass:"index-nav-row"},[a("div",{ref:"image"+i,refInFor:!0,staticClass:"image"},[[6,7].includes(i)?t._e():a("img",{attrs:{src:e.img,alt:""}})]),t._v(" "),a("el-col",{class:"icon-s"+(i+1)}),t._v(" "),a("el-col",{staticClass:"blf"},[a("img",{attrs:{src:e.svg,alt:""}}),t._v(" "),a("span",{style:{color:0===i?"#e58181":"black","font-weight":0===i?550:"normal"}},[t._v(t._s(e.tag))]),t._v(" "),a("p",[t._v(t._s(e.blacktext))]),t._v(" "),a("span",[t._v(t._s(e.introduct))])])],1)],1)],1)],1)}),1)],1),t._v(" "),a("div",{staticClass:"updateLog"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"更新日志",placement:"top-end"}},[a("div",[a("i",{staticClass:"el-icon-date",on:{click:t.isdatelog}}),t._v(" "),a("div",{staticClass:"updatelogtext"},[t._v("更新日志")])])])],1)]),t._v(" "),a("el-dialog",{staticClass:"mydialog",attrs:{visible:t.isupdatelog,width:"28%"},on:{"update:visible":function(e){t.isupdatelog=e}}},[a("img",{staticClass:"updatelogimg",attrs:{src:i("+4oF"),alt:""}})]),t._v(" "),a("el-dialog",{attrs:{visible:t.isupdatecode,width:"655px"},on:{"update:visible":function(e){t.isupdatecode=e}}},[a("el-card",{attrs:{"body-style":{padding:"0px"}}},[a("div",{staticClass:"code-all"},[a("div",{staticClass:"code-left"},[a("img",{attrs:{src:i("8j9S"),alt:""}})]),t._v(" "),a("div",{staticClass:"code-conent"}),t._v(" "),a("div",{staticClass:"code-right"},[a("div",[a("i",{staticClass:"el-icon-location-information"}),t._v(" "),a("span",[t._v("中材新材料研究院")])]),t._v(" "),a("div",[a("i",{staticClass:"el-icon-phone-outline"}),t._v(" "),a("span",[t._v("13318842335")])]),t._v(" "),a("div",[a("i",{staticClass:"el-icon-chat-line-round"}),t._v(" "),a("span",[t._v("微信扫码咨询客服")])])])])])],1),t._v(" "),t.isShow?a("wx-login",{attrs:{isShow:t.isShow},on:{"update:isShow":function(e){t.isShow=e},"update:is-show":function(e){t.isShow=e}}}):t._e()],1)},staticRenderFns:[]};var H=i("VU/8")(V,Z,!1,function(t){i("/hz0")},"data-v-3944ebcc",null).exports,Q=i("oAV5"),X={name:"Member",data:function(){return{userInfo:{phone:""},order_list:[],expired:0}},methods:{getHistory:function(t){var e=this;this.axios.get(this.BASEURL+"/material/api/"+t+"/result_picture").then(function(t){t.data.map(function(t){t.create_time=t.create_time.split("T")[0]}),e.order_list=t.data})},exportZip:function(t){var e=this,i=this.order_list[t],a=i.result,n=i.id;"{}"!==g()(a)?this.axios.get(this.BASEURL+"/material/api/get_pic?id="+n).then(function(t){var i=t.data,n=(i.base64_data,i.code);if(200===n||"success"===n||"SUCCESS"===n){var o=t.data,s=o.data;o.code;Object(Q.a)(a,s)}else e.$message.error("请求出错!")}).catch(function(t){throw e.$message.error("请求出错!"),new Error(t)}):this.$message({type:"warning",message:"暂无数据"})}},created:function(){var t=this,e=window.atob(JSON.parse(localStorage.getItem("u")).uuid);if(e){this.showLogin=!1;var i=JSON.parse(localStorage.getItem("u"));this.getHistory(e),this.$request.get("/material/api/user/",{uuid:e},function(e){t.userInfo=e.data;var a=(new Date).getTime(),n=new Date(e.expired).getTime();if(i.v_expired=n,localStorage.setItem("u",g()(i)),a<n){var o=n-a;t.expired=Math.ceil(o/1e3/60/60/24)}})}}},J={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"member-container"},[a("el-row",{staticClass:"container member"},[a("el-col",{attrs:{tag:"section"}},[a("el-row",{staticClass:"user-info"},[a("el-image",{staticClass:"user-avatar",attrs:{fit:"cover",src:i("odpv")}}),t._v(" "),a("span",[t._v(t._s(t._f("replaceStr")(t.userInfo.phone,"*",3,7)))]),t._v(" "),a("div",{staticClass:"status"},[t._v(t._s("否"===t.userInfo.vip_type?"非会员":t.userInfo.vip_type))]),t._v(" "),a("router-link",{staticClass:"upgrade",attrs:{to:"/pay",tag:"div"}},[t._v(t._s("否"===t.userInfo.vip_type?"成为会员":3===t.userInfo.vip_type?"续费会员":"升级会员"))]),t._v(" "),t.expired>0?a("el-row",{staticClass:"member-expired"},[t._v("距离会员到期还有"+t._s(t.expired)+"天")]):t._e()],1),t._v(" "),a("el-row",{staticClass:"option"},[a("el-row",{staticClass:"option-item"},[a("i",{staticClass:"order-icon icon-order"}),t._v(" "),a("span",[t._v("历史分析记录")]),t._v(" "),a("el-icon",{staticClass:"el-icon-arrow-right"})],1)],1)],1),t._v(" "),a("el-col",{staticClass:"order"},[a("el-row",{attrs:{gutter:50}},t._l(t.order_list,function(e,i){return a("el-col",{key:i,staticClass:"order-item",attrs:{span:12}},[a("el-image",{attrs:{src:e.url,fit:"cover"}}),t._v(" "),a("el-row",{staticStyle:{"line-height":"30px"}},[a("el-col",{attrs:{span:12}},[t._v(t._s(e.create_time))]),t._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[a("el-button",{staticClass:"export",on:{click:function(e){return t.exportZip(i)}}},[t._v("导出结果")])],1)],1)],1)}),1)],1)],1)],1)},staticRenderFns:[]};var K=i("VU/8")(X,J,!1,function(t){i("qUsR")},"data-v-2ffb9ad4",null).exports,tt={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("baidu-map",{attrs:{id:"allmap","scroll-wheel-zoom":!0},on:{ready:this.mapReady}},[e("bm-marker",{attrs:{position:this.point}})],1)],1)},staticRenderFns:[]};var et=i("VU/8")({name:"BaiduMapComponent",data:function(){return{point:""}},methods:{mapReady:function(t){var e=t.BMap,i=t.map;this.point=new e.Point(113.503632,23.16192),i.centerAndZoom(this.point,30)}}},tt,!1,function(t){i("fKe7")},null,null).exports,it=i("+6Bu"),at=i.n(it),nt=i("Dd8w"),ot=i.n(nt),st=i("d7EF"),rt=i.n(st),lt={props:{title:{type:String},span:{type:String}}},ct={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("el-row",{staticClass:"step-title"},[e("h1",{staticClass:"icon-rectangular"},[this._v(this._s(this.title))]),this._v(" "),e("span",[this._v(this._s(this.span))])])],1)},staticRenderFns:[]};var dt=i("VU/8")(lt,ct,!1,function(t){i("NOBc")},"data-v-63dcca78",null).exports,ht=i("BO1k"),ut=i.n(ht),ft=i("Gu7T"),gt=i.n(ft),pt=i("OOaC"),mt=i("0xDb"),vt={props:{step1:{type:Object},showHcp:{type:Boolean,default:!1}},data:function(){return{visible:!1,stepurl:i("VBZ/"),crystalOptions:[].concat(gt()(this.crystalTreeOption)),latticeTypeOptions:[{name:"简单点阵(P)",value:"P"},{name:"面心点阵(F)",value:"F"},{name:"体心点阵(I)",value:"I"},{name:"A底心点阵(A)",value:"A"},{name:"B底心点阵(B)",value:"B"},{name:"C底心点阵(C)",value:"C"},{name:"R心点阵(R)",value:"R"},{name:"密排六方(HCP)",value:"HCP"}],selectedValue:null}},computed:{newCrystalTreeOption:function(){var t=Object(mt.a)(this.crystalTreeOption);return this.showHcp&&t.find(function(t){return"Hexagonal"===t.value}).children.push({name:"密排六方(HCP)",value:"HCP"}),t}},watch:{"step1.type":{handler:function(t){this.step1.center_type&&this.step1.type&&(this.selectedValue=[this.step1.type,this.step1.center_type])},deep:!0}},methods:{toConfirm:function(){this.visible=!1,this.step1.center_type="P"},open:function(){this.$refs.file.click()},changeType:function(t){if(t){var e=this.crystalTreeOption.find(function(e){return e.value===t}).children.map(function(t){return t});this.latticeTypeOptions=e,"Hexagonal"!==t||this.step1.center_type?this.visible=!1:this.visible=!0}},handleChange:function(t){console.log("optionValue",t),2===t.length&&(this.step1.type=t[0],this.step1.center_type=t[1])},crystalOptionsClear:function(){this.step1.type||this.step1.center_type||this.reset(),this.latticeTypeOptions=[{name:"简单点阵(P)",value:"P"},{name:"面心点阵(F)",value:"F"},{name:"体心点阵(I)",value:"I"},{name:"A底心点阵(A)",value:"A"},{name:"B底心点阵(B)",value:"B"},{name:"C底心点阵(C)",value:"C"},{name:"R心点阵(R)",value:"R"}]},reset:function(){this.latticeTypeOptions=[{name:"简单点阵(P)",value:"P"},{name:"面心点阵(F)",value:"F"},{name:"体心点阵(I)",value:"I"},{name:"A底心点阵(A)",value:"A"},{name:"B底心点阵(B)",value:"B"},{name:"C底心点阵(C)",value:"C"},{name:"R心点阵(R)",value:"R"}],this.crystalOptions=this.crystalTreeOption},latticeTypeOptionsClear:function(){this.step1.type||this.step1.center_type||this.reset(),this.crystalOptions=this.crystalTreeOption},changeCenterType:function(t){if(t){var e=function(t,e){var i=[],a=!0,n=!1,o=void 0;try{for(var s,r=ut()(t);!(a=(s=r.next()).done);a=!0){var l=s.value;if(l.children){var c=!0,d=!1,h=void 0;try{for(var u,f=ut()(l.children);!(c=(u=f.next()).done);c=!0){var g=u.value;g.value===e&&i.push(l)}}catch(t){d=!0,h=t}finally{try{!c&&f.return&&f.return()}finally{if(d)throw h}}}}}catch(t){n=!0,o=t}finally{try{!a&&r.return&&r.return()}finally{if(n)throw o}}return i}(this.crystalTreeOption,t);this.crystalOptions=e}},addToList:function(){console.log("--addToList--"),this.$emit("addToList",{})},upload:function(t){var e=this;console.log("--upload (e)--");var i=new FormData;if(0!==t.target.files.length){var a=t.target.files[0],n=this;i.append("file",a),Object(pt.b)(i).then(function(t){200===t.status&&(200===t.data.code||"success"===t.data.code||"SUCCESSS"===t.data.code?(console.log(t.data.data),n.$emit("update:canupload",!0),n.$emit("update:step1",ot()({},t.data.data))):e.$message.error("请求失败！"+t.data.error_message))}).catch(function(t){throw e.$message.error("操作出错！"),new Error(t)})}else this.$message.info("没有选中任何文件.")}},mounted:function(){this.step1.center_type&&this.step1.type&&(this.selectedValue=[this.step1.type,this.step1.center_type])}},bt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-row",{staticClass:"phase"},[i("el-button",{staticClass:"a-btn-default",staticStyle:{width:"80%",margin:"10px"},on:{click:t.open}},[t._v("导入PDF文件")]),t._v(" "),i("label",[t._v("物相命名")]),t._v(" "),i("el-input",{staticClass:"item",model:{value:t.step1.phase,callback:function(e){t.$set(t.step1,"phase",e)},expression:"step1.phase"}})],1),t._v(" "),i("el-row",{staticClass:"item"},[i("div",{staticStyle:{display:"flex","align-items":"center",position:"relative"}},[i("label",[t._v("所属晶系")]),t._v(" "),i("el-cascader",{attrs:{options:t.newCrystalTreeOption,props:{expandTrigger:"hover",label:"name"}},on:{change:t.handleChange},model:{value:t.selectedValue,callback:function(e){t.selectedValue=e},expression:"selectedValue"}})],1),t._v(" "),i("input",{ref:"file",staticStyle:{opacity:"0",position:"fixed"},attrs:{type:"file",name:"argstxt",accept:".txt"},on:{change:t.upload}})]),t._v(" "),i("el-row",{staticClass:"item",staticStyle:{display:"flex","align-items":"center"}},[i("label",{staticStyle:{width:"72px"}},[t._v("点阵类型")]),t._v(" "),i("el-select",{attrs:{placeholder:"选择/添加",clearable:"",disabled:""},on:{change:t.changeCenterType,clear:t.latticeTypeOptionsClear},model:{value:t.step1.center_type,callback:function(e){t.$set(t.step1,"center_type",e)},expression:"step1.center_type"}},t._l(t.latticeTypeOptions,function(t,e){return i("el-option",{key:e,attrs:{label:t.name,value:t.value}})}),1),t._v(" "),i("el-image",{ref:"imagePreview",staticStyle:{display:"none"},attrs:{lazy:!0,"preview-src-list":[t.stepurl]}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",placement:"top",trigger:"hover","open-delay":1e3}},[i("div",{staticStyle:{"text-align":"center"},attrs:{slot:"content"},slot:"content"},[t._v("\n          空间群↔点阵类型判定表"),i("br"),t._v("\n          (手动输入晶胞参数时对照使用)\n        ")]),t._v(" "),i("el-button",{staticStyle:{padding:"4px",margin:"0"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.$refs.imagePreview.clickHandler()}}},[i("div",{staticStyle:{"font-size":"11px"}},[t._v("空间群判定表")])])],1)],1),t._v(" "),i("el-row",[i("el-col",{staticStyle:{"justify-content":"line-height:25px"},attrs:{span:4}},[i("label",[t._v("\n          晶胞\n          "),i("br"),t._v("参数\n          "),i("br"),t._v("A,°\n        ")])]),t._v(" "),i("el-col",{attrs:{span:18}},[i("el-row",[i("el-col",{staticClass:"input",attrs:{span:8}},[i("label",[t._v("a")]),t._v(" "),i("el-input",{attrs:{type:"number"},model:{value:t.step1.a,callback:function(e){t.$set(t.step1,"a","string"==typeof e?e.trim():e)},expression:"step1.a"}})],1),t._v(" "),i("el-col",{staticClass:"input",attrs:{span:8}},[i("label",[t._v("b")]),t._v(" "),i("el-input",{attrs:{type:"number"},model:{value:t.step1.b,callback:function(e){t.$set(t.step1,"b","string"==typeof e?e.trim():e)},expression:"step1.b"}})],1),t._v(" "),i("el-col",{staticClass:"input",attrs:{span:8}},[i("label",[t._v("c")]),t._v(" "),i("el-input",{attrs:{type:"number"},model:{value:t.step1.c,callback:function(e){t.$set(t.step1,"c","string"==typeof e?e.trim():e)},expression:"step1.c"}})],1),t._v(" "),i("el-col",{staticClass:"input",attrs:{span:8}},[i("label",[t._v("α")]),t._v(" "),i("el-input",{attrs:{type:"number"},model:{value:t.step1.alpha,callback:function(e){t.$set(t.step1,"alpha",t._n(e))},expression:"step1.alpha"}})],1),t._v(" "),i("el-col",{staticClass:"input",attrs:{span:8}},[i("label",[t._v("β")]),t._v(" "),i("el-input",{attrs:{type:"number"},model:{value:t.step1.beta,callback:function(e){t.$set(t.step1,"beta",t._n(e))},expression:"step1.beta"}})],1),t._v(" "),i("el-col",{staticClass:"input",attrs:{span:8}},[i("label",[t._v("γ")]),t._v(" "),i("el-input",{attrs:{type:"number"},model:{value:t.step1.gamma,callback:function(e){t.$set(t.step1,"gamma",t._n(e))},expression:"step1.gamma"}})],1)],1)],1)],1)],1)},staticRenderFns:[]};var yt=i("VU/8")(vt,bt,!1,function(t){i("5ujs")},"data-v-6fc05b97",null).exports,wt={props:{step2:{type:Object}},data:function(){return{}},methods:{}},xt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-col",{staticClass:"input",attrs:{span:12}},[i("label",[t._v("\n      像素\n      "),i("br"),t._v("长度\n    ")]),t._v(" "),i("el-input",{model:{value:t.step2.pixels,callback:function(e){t.$set(t.step2,"pixels",e)},expression:"step2.pixels"}})],1),t._v(" "),i("el-col",{staticClass:"input",attrs:{span:12}},[i("label",{staticStyle:{color:"red"}},[t._v("\n      实际\n      "),i("br"),t._v("(1/nm)\n    ")]),t._v(" "),i("el-input",{staticClass:"input2",model:{value:t.step2.scale,callback:function(e){t.$set(t.step2,"scale",t._n(e))},expression:"step2.scale"}},[i("template",{slot:"append"},[t._v("1/nm")])],2)],1)],1)},staticRenderFns:[]};var Ct=i("VU/8")(wt,xt,!1,function(t){i("aS4y")},"data-v-0d8ac618",null).exports,kt={props:{step3:{type:Object}},data:function(){return{}},methods:{}},_t={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-col",{staticClass:"input",attrs:{span:12}},[i("label",[t._v("x")]),t._v(" "),i("el-input",{attrs:{placeholder:"透射斑坐标x"},model:{value:t.step3.x,callback:function(e){t.$set(t.step3,"x",e)},expression:"step3.x"}})],1),t._v(" "),i("el-col",{staticClass:"input",attrs:{span:12}},[i("label",[t._v("y")]),t._v(" "),i("el-input",{attrs:{placeholder:"透射斑坐标y"},model:{value:t.step3.y,callback:function(e){t.$set(t.step3,"y",e)},expression:"step3.y"}})],1)],1)},staticRenderFns:[]};var St=i("VU/8")(kt,_t,!1,function(t){i("MqVR")},"data-v-4e41d172",null).exports,Pt={props:{step4:{type:Object}},computed:{},data:function(){return{}},methods:{}},It={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-col",{staticClass:"input",attrs:{span:12}},[i("label",[t._v("点A")]),t._v(" "),i("el-input",{attrs:{placeholder:"坐标 (x,y)"},model:{value:t.step4.d1_a,callback:function(e){t.$set(t.step4,"d1_a",e)},expression:"step4.d1_a"}})],1),t._v(" "),i("el-col",{staticClass:"input",attrs:{span:12}},[i("label",[t._v("允许误差")]),t._v(" "),i("el-input",{attrs:{placeholder:"允许误差"},model:{value:t.step4.dp1,callback:function(e){t.$set(t.step4,"dp1",e)},expression:"step4.dp1"}})],1),t._v(" "),i("el-col",{staticClass:"input",attrs:{span:12}},[i("label",[t._v("点B")]),t._v(" "),i("el-input",{attrs:{placeholder:"坐标 (x,y)"},model:{value:t.step4.d2_a,callback:function(e){t.$set(t.step4,"d2_a",e)},expression:"step4.d2_a"}})],1),t._v(" "),i("el-col",{staticClass:"input",attrs:{span:12}},[i("label",[t._v("允许误差")]),t._v(" "),i("el-input",{attrs:{placeholder:"允许误差"},model:{value:t.step4.dp2,callback:function(e){t.$set(t.step4,"dp2",e)},expression:"step4.dp2"}})],1),t._v(" "),i("el-col",{staticClass:"input",attrs:{span:12}},[i("label",{staticStyle:{width:"30%"}},[t._v("∠AOB")]),t._v(" "),i("el-input",{style:{width:"96px","margin-left":"3px"},attrs:{type:"number",disabled:""},model:{value:t.step4.canvasarray,callback:function(e){t.$set(t.step4,"canvasarray",e)},expression:"step4.canvasarray"}},[i("template",{slot:"append"},[t._v("度")])],2)],1),t._v(" "),i("el-col",{staticClass:"input",attrs:{span:12}},[i("label",{staticStyle:{"text-align":"right",width:"50%"}},[t._v("允许误差")]),t._v(" "),i("el-input",{attrs:{type:"number"},model:{value:t.step4.error_angle,callback:function(e){t.$set(t.step4,"error_angle",e)},expression:"step4.error_angle"}},[i("template",{slot:"append"},[t._v("度")])],2)],1)],1)},staticRenderFns:[]};var At=i("VU/8")(Pt,It,!1,function(t){i("bn/u")},"data-v-5c26ae79",null).exports,Dt={props:{tableData:{type:Array},currentPoint:{type:Number},tbindex:{type:Number},showExponentThree:{type:Boolean,default:function(){return!0}}},data:function(){return{opt_list:[{name:"newname",selected:!0,label:"物相名称"},{name:"hkl1",selected:!0,label:"hkl1"},{name:"hkl2",selected:!0,label:"hkl2"},{name:"zone",selected:!0,label:"zone"},{name:"d1",selected:!0,label:"OA理论值(埃)"},{name:"d2",selected:!0,label:"OB理论值(埃)"},{name:"ang12",selected:!0,label:"∠AOB理论值"},{name:"newProperty",selected:!0,label:"OA测量值(埃)"},{name:"newProperty1",selected:!0,label:"OB测量值(埃)"}],opt_list1:[{name:"newname",selected:!0,label:"物相名称"},{name:"hkl1",selected:!0,label:"hkl1"},{name:"hkl2",selected:!0,label:"hkl2"},{name:"zone",selected:!0,label:"zone"},{name:"d1",selected:!0,label:"OA理论值"},{name:"d2",selected:!0,label:"OB理论值"},{name:"ang12",selected:!0,label:"∠AOB理论值"},{name:"newProperty",selected:!0,label:"OA测量值"},{name:"newProperty1",selected:!0,label:"OB测量值"}],resultIndex:-1}},computed:{},watch:{showExponentThree:function(t){var e=this.opt_list.find(function(t){return"hkl1"===t.name}),i=this.opt_list.find(function(t){return"hkl2"===t.name});e.label=t?"hkl1":"hkil1",i.label=t?"hkl2":"hkil2";var a=this.opt_list1.find(function(t){return"hkl1"===t.name}),n=this.opt_list1.find(function(t){return"hkl2"===t.name});a.label=t?"hkl1":"hkil1",n.label=t?"hkl2":"hkil2"}},methods:{print:function(t){console.log("--Result.vue.print--"),this.opt_list1[t].selected=!this.opt_list1[t].selected,this.opt_list[t].selected=!this.opt_list[t].selected},tableRowClassName:function(t){var e=t.row,i=t.rowIndex;console.log("--Result.vue.tableRowClassName--"),e.index=i},getRowIndex:function(t){console.log("--Result.vue.getRowIndex--"),t&&(this.resultIndex=t.index,console.log("resultIndex: "+this.resultIndex),this.$emit("update:currentPoint",parseInt(t.index)),this.$emit("currentRowIndexChange",parseInt(t.index)))}}},Mt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{margin:"10px"}},[i("h1",[t._v("晶体分析报告-中材新材料研究院")]),t._v(" "),i("el-row",{staticClass:"set-option"},t._l(t.opt_list,function(e,a){return i("el-col",{key:a,staticClass:"item",attrs:{span:6}},[i("div",{on:{click:function(e){return t.print(a)}}},[i("el-icon",{class:e.selected?"el-icon-success":"el-icon-circle-check"}),t._v(" "),i("span",[t._v(t._s(e.label))])],1)])}),1),t._v(" "),i("el-row",{staticClass:"result"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData.slice(0,t.tbindex),border:"","highlight-current-row":"","row-class-name":t.tableRowClassName,height:"420px"},on:{"current-change":t.getRowIndex}},t._l(t.opt_list1,function(t,e){return i("el-table-column",{key:e,attrs:{index:e,prop:t.name,label:t.label,"class-name":t.selected?"":"hide",align:"center"}})}),1)],1)],1)},staticRenderFns:[]};var Lt=i("VU/8")(Dt,Mt,!1,function(t){i("pjCe")},"data-v-0cc9885b",null).exports,Ot={props:{pdfList:{type:Array,Default:[]},renderCrystalArgs:{type:Function}},data:function(){return{argsList:[],currentShow:null}},methods:{indexMethod:function(t){return console.log("--indexMethod--"),t+1},tableRowClassName:function(t){var e=t.row,i=t.rowIndex;console.log("--tableRowClassName--"),e.index=i},getRowIndex:function(t){console.log("--getRowIndex--"),this.$emit("renderCrystalArgs",t.index)},addtoArglist:function(){console.log("--addtoArglist--"),this.$emit("addToList",{})},showRow:function(){if(console.log("--showRow--"),this.currentShow){var t=this.currentShow.index;this.$emit("renderCrystalArgs",t)}},setCurrent:function(t){console.log("--setCurrent--"),this.$refs.singleTable.setCurrentRow(this.pdfList[t])},handleCurrentChange:function(t){console.log("--handleCurrentChange--"),this.currentShow=t},rmCurrentPdfRow:function(){if(console.log("--rmCurrentPdfRow--"),this.currentShow){var t=this.currentShow.index;this.$emit("rmCurrentPdfRow",t)}}}},Rt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-row",{staticClass:"table1"},[i("el-row",{staticStyle:{"text-align":"center","margin-bottom":"10px"}},[i("el-button",{staticClass:"a-btn-default",attrs:{span:8},on:{click:t.addtoArglist}},[t._v("加入列表")]),t._v(" "),i("el-button",{staticClass:"a-btn-default",attrs:{span:8},on:{click:t.showRow}},[t._v("显示选中行")]),t._v(" "),i("el-button",{staticClass:"a-btn-default",attrs:{span:8},on:{click:t.rmCurrentPdfRow}},[t._v("删除选中行")])],1),t._v(" "),i("el-table",{ref:"singleTable",staticStyle:{width:"100%"},attrs:{data:t.pdfList,"row-class-name":t.tableRowClassName,border:"","highlight-current-row":"",height:"160px"},on:{"row-click":t.navigatorEdit,"current-change":t.handleCurrentChange}},[i("el-table-column",{attrs:{prop:"phase",label:"物相命名",align:"center",width:"120"}}),t._v(" "),i("el-table-column",{attrs:{prop:"typeName",align:"center",label:"晶体类型",width:"85"}}),t._v(" "),i("el-table-column",{attrs:{prop:"centerTypeName",align:"center",label:"点阵类型"}})],1)],1),t._v(" "),i("br")],1)},staticRenderFns:[]};var Ft=i("VU/8")(Ot,Rt,!1,function(t){i("l2os")},"data-v-4b80f8b2",null).exports,Bt=i("eMjc"),Nt=i.n(Bt),zt={props:{x:{type:String},y:{type:String},d1:{type:String},d2:{type:String},pixelLen:{type:String},realLen:{type:String},upload:{type:Boolean},currentPoints:{type:Array},zone:{type:String},dp1:{type:String},dp2:{type:String},handscale:{type:Boolean},manualhide:{type:Boolean,default:!0}},data:function(){return{imgPercent:0,imgSize:{},containerBox:{},check1:!1,check2:!1,check3:!1,showPoint:!1,mouseX:0,mouseY:0,canvas2Visible:!1,index:-1,flagPosition:[{y:0,x:0,r:25,show:!1,create:!1},{y:0,x:0,r:10,show:!1,create:!1},{y:0,x:0,r:10,show:!1,create:!1}],flagPosInImage:[{y:0,x:0,r:25},{y:0,x:0,r:10},{y:0,x:0,r:10}],handindex:-1,linePosition:[{x:0,y:0,r:2,show:!1},{x:0,y:0,r:2,show:!1}],linePosInImage:[{x:0,y:0,r:2},{x:0,y:0,r:2}],scalePosition:[{x:0,y:0,r:2,show:!1},{x:0,y:0,r:2,show:!1}],scalePosInImage:[{x:0,y:0,r:2},{x:0,y:0,r:2}],pointArr:[],pointArrInImage:[],showIndex:-1,isCtrl:!1,isAlt:!1,showBigImg:!1,myimage:new Image,ispoinArr:1,imgScale:1,imgX:0,imgY:0,ScaleWidth:[],tipmsg:"首选，选择一张 SAED图片 或 FFT图片，必须要带标尺哦~ 最好是矩形标尺"}},computed:{scaleLength:function(){return Math.abs(this.scalePosInImage[1].x-this.scalePosInImage[0].x+1).toFixed(2)},showCheckBox1:{get:function(){return this.flagPosition[0].show},set:function(t){this.check1=t}},showCheckBox2:{get:function(){return this.flagPosition[1].show&&this.flagPosition[2].show},set:function(t){this.check2=t}},showCheckBox3:{get:function(){return this.showPoint},set:function(t){this.check3=t,this.showPoint=t,this.ispoinArr=t}},showCheckBoxDisable1:function(){return!this.upload||!this.flagPosition[0].create},showCheckBoxDisable2:function(){return 0===this.currentPoints.length},showCheckBoxDisable3:function(){return 0===this.currentPoints.length}},watch:{index:function(t){0===t?this.tipmsg="选中了透射斑，上下左右键、鼠标拖拽，均可调整位置，鼠标滚轮可缩放哦~<br>再次点击，将拾取第1个衍射斑坐标":1===t?this.tipmsg="选中了第1个衍射斑，上下左右键、鼠标拖拽，均可调整位置，半径代表误差棒哦~":2===t?this.tipmsg="选中了第2个衍射斑，上下左右键、鼠标拖拽，均可调整位置，半径代表误差棒哦~":this.showIndex>2&&(this.tipmsg="有问题可以点击右侧的操作说明<br>")},x:function(t){this.flagPosInImage[0].x=parseFloat(t),this.flagPosition[0].x=this.flagPosInImage[0].x/this.imgPercent,this.calculateAngle(),this.renderCanvas(!0)},y:function(t){this.flagPosInImage[0].y=parseFloat(t),this.flagPosition[0].y=this.flagPosInImage[0].y/this.imgPercent,this.calculateAngle(),this.renderCanvas(!0)},d1:function(t){var e=t.split(",");this.flagPosInImage[1].x=parseFloat(e[0]),this.flagPosInImage[1].y=parseFloat(e[1]),this.flagPosition[1].x=this.flagPosInImage[1].x/this.imgPercent,this.flagPosition[1].y=this.flagPosInImage[1].y/this.imgPercent,this.calculateAngle(),this.renderCanvas(!0)},dp1:function(t){this.flagPosInImage[1].r=parseFloat(t),this.flagPosition[1].r=this.flagPosInImage[1].r/this.imgPercent,this.renderCanvas(!0)},d2:function(t){var e=t.split(",");this.flagPosInImage[2].x=parseFloat(e[0]),this.flagPosInImage[2].y=parseFloat(e[1]),this.flagPosition[2].x=this.flagPosInImage[2].x/this.imgPercent,this.flagPosition[2].y=this.flagPosInImage[2].y/this.imgPercent,this.calculateAngle(),this.renderCanvas(!0)},dp2:function(t){this.flagPosInImage[2].r=parseFloat(t),this.flagPosition[2].r=this.flagPosInImage[2].r/this.imgPercent,this.renderCanvas(!0)},currentPoints:function(t,e){console.log("currentPoints"),this.ispoinArr=1,t&&t.length>0?(this.scalePosition.map(function(t){t.show=!1}),this.flagPosition[0].show=!1,this.pointArrInImage=JSON.parse(g()(t)),this.updateDiffPointArr()):(this.pointArrInImage=[],this.updateDiffPointArr())}},methods:{calculateAngle:function(){var t=rt()(this.flagPosition,3),e=t[0],i=e.x,a=e.y,n=t[1],o=n.x,s=n.y,r=t[2],l=[o-i,s-a],c=[r.x-i,r.y-a],d=(l[0]*c[0]+l[1]*c[1])/(Math.sqrt(l[0]*l[0]+l[1]*l[1])*Math.sqrt(c[0]*c[0]+c[1]*c[1])),h=(Math.acos(d)*(180/Math.PI)).toFixed(0);this.showIndex>=2&&this.$emit("update:canvaslist",h)},saveResult:function(t){var e=this;console.log("--saveResult--");var i,a="",n=this.$refs.bigimg,o=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,s=n.getBoundingClientRect();Nt()(n,{x:s.left+13,y:s.top+o,backgroundColor:null,width:s.width-15,height:s.height,useCORS:!0,scale:3}).then((i=B()(L.a.mark(function i(n){var o,s;return L.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:a=n.toDataURL("image/png"),o="",o=localStorage.getItem("u")?window.atob(JSON.parse(localStorage.getItem("u")).uuid):"tourist",Object(pt.a)(o,{img:a,result:t}).then(function(t){200===t.status||e.$message.error("请求出错")}).catch(function(t){throw e.$message.error("请求出错"),new Error(t)}),s=a.split(";base64,")[1],Object(Q.a)(t,s);case 6:case"end":return i.stop()}},i,e)})),function(t){return i.apply(this,arguments)})).catch(function(t){throw e.$message.error("请求出错"),new Error(t)})},updateFlagPosition:function(){for(var t=0;t<this.flagPosition.length;t++)this.flagPosition[t].x=this.flagPosInImage[t].x/this.imgPercent*this.imgScale+this.imgX,this.flagPosition[t].y=this.flagPosInImage[t].y/this.imgPercent*this.imgScale+this.imgY,this.flagPosition[t].r=Math.abs(this.flagPosInImage[t].r/this.imgPercent)*this.imgScale},updatelinePosition:function(){for(var t=0;t<this.linePosition.length;t++)this.linePosition[t].x=this.linePosInImage[t].x*this.imgScale+this.imgX,this.linePosition[t].y=this.linePosInImage[t].y*this.imgScale+this.imgY},updateScalePosition:function(){for(var t=0;t<this.scalePosition.length;t++)this.scalePosition[t].x=this.scalePosInImage[t].x/this.imgPercent*this.imgScale+this.imgX,this.scalePosition[t].y=this.scalePosInImage[t].y/this.imgPercent*this.imgScale+this.imgY},updateDiffPointArr:function(){var t=this.imgPercent;this.pointArr=this.pointArrInImage,this.pointArr.map(function(e){e.position={x:e.position.x/t-2,y:e.position.y/t-2,x1:e.position_true.x/t-2,y1:e.position_true.y/t-2}}),this.showPoint=!0},_reset:function(){for(var t in this.flagPosition=[{y:0,x:0,r:25,show:!1,create:!1},{y:0,x:0,r:10,show:!1,create:!1},{y:0,x:0,r:10,show:!1,create:!1}],this.flagPosInImage=[{y:0,x:0,r:25},{y:0,x:0,r:10},{y:0,x:0,r:10}],this.linePosition=[{x:0,y:0,r:2,show:!1},{x:0,y:0,r:2,show:!1}],this.linePosInImage=[{x:0,y:0,r:2},{x:0,y:0,r:2}],this.handindex=-1,this.$emit("update:handscale",!1),this.scalePosition=[{x:0,y:0,r:2,show:!1},{x:0,y:0,r:2,show:!1}],this.scalePosInImage=[{x:0,y:0,r:2},{x:0,y:0,r:2}],this.index=-1,this.showIndex=-1,this.imgPercent=0,this.containerPercent=0,this.$props)this.$props.hasOwnProperty(t)&&this.$emit("update:"+t,"");this.$emit("update:realLen","2"),this.pointArr=[]},clickFile:function(){this.$refs.file.click()},uploadImg:function(t){var e=this,i=this,a=new FileReader;if(0!==t.target.files.length){var n=t.target.files[0];a.readAsDataURL(n),a.onload=function(t){i._reset(),i.$emit("update:upload",!0),i.$emit("resetSquare",{currentPoint:-1}),i.myimage.src=t.target.result,i.myimage.onload=function(){var t=e.$refs.org_canvas,a=t.getContext("2d",{willReadFrequently:!1}),n=i.myimage,o=n.width,s=n.height;t.width=o,t.height=s,a.drawImage(i.myimage,0,0,o,s),i.renderCanvas(!0,function(){var t=e.imgSize.width/2,a=e.imgSize.height/2,n=e.imgSize.width<e.imgSize.height?e.imgSize.width:e.imgSize.height;n/=80,i.flagPosInImage.map(function(e){e.x=t,e.y=a}),i.flagPosInImage[0].r=5*n,i.updateFlagPosition(),i.$emit("update:dp1",n.toFixed(1)),i.$emit("update:dp2",n.toFixed(1)),e.tipmsg="点击图片中透射斑的位置，将拾取透射斑"})}}}else this.$message.error("没有选中任何文件.")},renderCanvas:function(t,e){console.log("--- renderCanvas---");var i=this.$refs.canvas,a=this.$refs.draw,n=this.$refs.bigimg,o=i.getContext("2d"),s=this.myimage,r=s.width,l=s.height;this.imgSize={width:r,height:l};var c=window,d=c.innerWidth,h=c.innerHeight,u=1,f=0,g=0;if(t?(f=this.containerBox.width,g=this.containerBox.height):(f=d,g=h),console.log("dockerwidth: "+f),r/l<f/g?(u=g/l,this.imgPercent=l/g,this.containerPercent=parseFloat((g/l).toFixed(4))):(u=f/r,this.imgPercent=r/f,this.containerPercent=parseFloat((this.containerBox.width/r).toFixed(4))),r*=u,l*=u,t)n.style.left=((a.clientWidth-r)/2).toFixed(0)+"px",n.style.top=((a.clientHeight-l)/2).toFixed(0)+"px",n.style.width=r.toFixed(0)+"px",n.style.height=l.toFixed(0)+"px",i.width=r,i.height=l,this.ScaleWidth=[r,l],o.drawImage(this.myimage,this.imgX,this.imgY,this.ScaleWidth[0]*this.imgScale,this.ScaleWidth[1]*this.imgScale);else{n.style.left="0px",n.style.top="0px",n.style.width=r.toFixed(0)+"px",n.style.height=l.toFixed(0)+"px",i.width=r,i.height=l,o.drawImage(this.myimage,this.imgX,this.imgY,r*this.imgScale,l*this.imgScale);o.fillStyle="white",o.rect(0,0,150,30),o.fill(),o.fillStyle="black",o.font='16px "Microsoft YaHei"',o.textBaseline="middle",o.textAlign="center",o.fillText("按ESC退出全屏",75,15)}this.updateFlagPosition(),this.updateScalePosition(),this.updateDiffPointArr(),this.updatelinePosition(),e&&e()},handleMouseMove:function(t){if(!this.manualhide){console.log(111);var e=this.$refs.canvas.getBoundingClientRect();this.mouseX=t.clientX-e.left,this.mouseY=t.clientY-e.top,this.renderZoomedImage()}},renderZoomedImage:function(){var t=this.$refs.canvas2,e=t.getContext("2d"),i=this.mouseX-10,a=this.mouseY-10;e.drawImage(this.$refs.canvas,i,a,20,20,0,0,t.width,t.height)},cancelruler:function(){this.$emit("resthide",!0),this.$emit("update:handscale",!0),this.$refs.childElement.classList.remove("custom-cursor"),this.linePosition=[{x:0,y:0,r:2,show:!1},{x:0,y:0,r:2,show:!1}],this.linePosInImage=[{x:0,y:0,r:2},{x:0,y:0,r:2}]},viewturial:function(){this.canvas2Visible=!0},handleCanvasClick_bak:function(t){console.log("--- handleCanvasClick ---"),this.index=-1;var e=this.$refs.canvas.getContext("2d"),i=t.layerX,a=t.layerY,n=[[0,a],[0,a]];if(this.isCtrl||this.create(t),this.isCtrl){var o=e.getImageData(i,a,1,1).data;if(o[0]<50&&o[1]<50&&o[2]<50){console.log("黑色标尺");for(var s=i;s>=0;s--){var r=e.getImageData(s,a,1,1).data;if(r[0]>50&&r[1]>50&&r[2]>50){n[0]=[s+1,a];break}}for(var l=i,c=this.imgSize.width/this.imgPercent;l<=c;l++){var d=e.getImageData(l,a,1,1).data;if(d[0]>50&&d[1]>50&&d[2]>50){n[1]=[l,a];break}}}else{if(!(o[0]>200&&o[1]>200&&o[2]>200))return void(this.tipmsg="不能识别图中的标尺，请再点击，或手动输入标尺长度");console.log("白色标尺");for(var h=i;h>=0;h--){var u=e.getImageData(h,a,1,1).data;if(u[0]<200&&u[1]<200&&u[2]<200){n[0]=[h+1,a];break}}for(var f=i,g=this.imgSize.width/this.imgPercent;f<=g;f++){var p=e.getImageData(f,a,1,1).data;if(p[0]<200&&p[1]<200&&p[2]<200){n[1]=[f,a];break}}}m(this.scalePosition,n[0],0),m(this.scalePosition,n[1],1),this.$emit("update:pixelLen",this.scaleLength),this.tipmsg="标尺的实际长度需要手动输入"}function m(t,e,i){t[i].x=e[0],t[i].y=e[1],t[i].show=!0}},handleCanvasClick:function(t){console.log("--- handleCanvasClick ---"),this.index=-1;var e=this.$refs.org_canvas.getContext("2d",{willReadFrequently:!1}),i=t.layerX,a=t.layerY;if(this.isCtrl){if(this.isCtrl){var n=Math.round(i*this.imgPercent),o=Math.round(a*this.imgPercent),s=this.imgSize,r=s.width,l=s.height,c=void 0,d=void 0,h=Math.round(l/100);h<5&&(h=5),o-=h;var u=e.getImageData(n,o,1,2*h+1);c=Array(u.height),console.log(c);for(var f=Array(u.height),g=0;g<u.height;g++)c[g]=u.data[4*g];f[0]=0;for(var p={count:0,i:0},m=1;m<u.height;m++)if(c[m]==c[m-1]){var v=f[m-1]+1;f[m]=v,v>p.count&&(p={count:v,i:m})}else f[m]=0;p.count>3?(o=p.i-Math.round(p.count/2)+o,a=Math.round(o/this.imgPercent)):(o+=h,console.log("The best yy value is not found."));var b=e.getImageData(0,o,r,1).data;c=Array(r),d=Array(r);for(var y=0,w=0,x=r,C=0;C<r;C++){var k=b[4*C];c[C]=k,k>y&&(y=k)}for(var _=y/2,S=0;S<r;S++)d[S]=c[S]>_;for(var P=d[n],I=n;I>=0;I--)if(d[I]!=P){w=I+1;break}for(var A=n;A<d.length;A++)if(d[A]!=P){x=A+.5;break}this.scalePosInImage[0].x=w,this.scalePosInImage[0].y=o,this.scalePosInImage[1].x=x,this.scalePosInImage[1].y=o,this.scalePosition[0].x=w/this.imgPercent,this.scalePosition[0].y=a,this.scalePosition[0].show=!0,this.scalePosition[1].x=x/this.imgPercent,this.scalePosition[1].y=a,this.scalePosition[1].show=!0,this.$emit("update:pixelLen",this.scaleLength),this.tipmsg="标尺的实际长度需要手动输入"}}else this.create(t)},create:function(t){console.log("--- create flag  ---");if(!this.isAlt&&!this.isCtrl&&this.upload){if(this.showIndex>2&&(this.index=-1),this.handscale){this.showIndex++;var e=(t.offsetX-this.imgX)/this.imgScale*this.imgPercent,i=(t.offsetY-this.imgY)/this.imgScale*this.imgPercent;this.updateFlagCenterText(this.showIndex,e,i),this.flagPosition[this.showIndex].show=!0,this.flagPosition[this.showIndex].create=!0,this.index=0===this.showIndex?0:-1}else{if(this.handindex++,0===this.handindex)this.linePosInImage[0].x=(t.offsetX-this.imgX)/this.imgScale,this.linePosInImage[0].y=(t.offsetY-this.imgY)/this.imgScale,this.linePosition[0].show=!0;else if(1===this.handindex){this.linePosInImage[1].x=(t.offsetX-this.imgX)/this.imgScale,this.linePosInImage[1].y=(t.offsetY-this.imgY)/this.imgScale,this.linePosition[1].show=!0;var a=this.linePosInImage[0],n=this.linePosInImage[1],o=Math.sqrt(Math.pow(n.x-a.x,2)+Math.pow(n.y-a.y,2))*this.imgPercent;this.$emit("update:handscale",!0),this.$refs.childElement.classList.remove("custom-cursor"),this.$emit("update:pixelLen",o.toFixed(2)),this.$emit("resthide",!0)}this.renderCanvas(!0)}0===this.showIndex?this.tipmsg="选中了透射斑，上下左右键、鼠标拖拽，均可调整位置，鼠标滚轮可缩放哦~<br>再次点击，将拾取第1个衍射斑坐标":1===this.showIndex?this.tipmsg="添加了第1个衍射斑，点击可选中它，记得要低指数哦！<br>再次点击，将拾取第2个衍射斑坐标":2===this.showIndex?this.tipmsg="添加了第2个衍射斑，点击可选中它，记得要低指数哦！<br>在图片的标尺中间, 点击 "+(this.isMac?"Option+鼠标左键":"Crtl+鼠标左键")+", 程序自动识别标尺的像素长度, 或者手动输入":this.tipmsg="有问题可以点击右侧的操作说明<br>"}},updateFlagCenterText:function(t,e,i){switch(parseInt(t)){case 0:this.$emit("update:x",e.toFixed(1)),this.$emit("update:y",i.toFixed(1));break;case 1:this.$emit("update:d1",e.toFixed(1)+","+i.toFixed(1));break;case 2:this.$emit("update:d2",e.toFixed(1)+","+i.toFixed(1)),this.calculateAngle()}},restore:function(){console.log("---restore---"),this.showBigImg=!1;var t=document.getElementsByTagName("body")[0];t.classList="",t.style.paddingRight=null,this.renderCanvas(!0)},magnify:function(){console.log("---magnify---")},move:function(t){var e=this;console.log("--- move ---");var i=t.target.dataset.index;if(i&&(i=parseInt(i))>=0){var a=t.clientX-this.flagPosition[i].x,n=t.clientY-this.flagPosition[i].y;document.onmousemove=function(t){var o=t.clientX-a,s=t.clientY-n;e.updateFlagCenterText(i,(o-e.imgX)/e.imgScale*e.imgPercent,(s-e.imgY)/e.imgScale*e.imgPercent)},document.onmouseup=function(t){document.onmousemove=null,document.onmouseup=null}}},canvasEventsInit:function(){var t=this,e=this.$refs.bigimg;e.onmousewheel=e.onwheel=function(e){e.preventDefault();var i=e.deltaY<0?1.2:.9,a=t.$refs.canvas,n=a.getBoundingClientRect(),o=e.clientX-n.left,s=e.clientY-n.top,r=t.imgScale*i,l=o-(o-t.imgX)*(r/t.imgScale),c=s-(s-t.imgY)*(r/t.imgScale);r>=1.2&&r*t.ScaleWidth[0]>=a.width?(t.imgScale=r,t.imgX=l,t.imgY=c,t.renderCanvas(!0)):r<1.19&&t.imgScale>1&&(t.ScaleWidth[1]=699,t.ScaleWidth[0]=693,t.imgScale=1,t.imgX=0,t.imgY=0,t.renderCanvas(!0))}},flagScale:function(t,e){e=e*this.imgSize.width/100,t>=0&&0!==e&&(this.flagPosInImage[t].r=this.flagPosInImage[t].r+e,this.flagPosInImage[t].r<2&&this.flagPosInImage[t].r>-2&&(this.flagPosInImage[t].r=e>=0?2:-2),this.flagPosition[t].r=Math.abs(this.flagPosInImage[t].r/this.imgPercent))}},mounted:function(){var t=this,e=this,i=this.$refs.draw,a=i.clientHeight,n=i.clientWidth;this.containerBox={width:n,height:a},this.imgSize={width:n,height:a},document.addEventListener("click",function(){e.index=-1}),document.addEventListener("keydown",function(e){"Control"===e.key&&(t.isCtrl=!0)}),document.addEventListener("keyup",function(e){"Control"===e.key&&(t.isCtrl=!1)}),document.onkeydown=function(i){i=window.event||i;var a=e.index;if(a>=0){var n=0,o=0;switch(i.key){case"ArrowLeft":n=-1;break;case"ArrowRight":n=1;break;case"ArrowUp":o=-1;break;case"ArrowDown":o=1}t.calculateAngle(),t.updateFlagCenterText(a,t.flagPosInImage[a].x+n,t.flagPosInImage[a].y+o),t.$refs.s.select()}};var o=function(t){var i=void 0;if("wheelDelta"in(t=t||window.event))i=t.wheelDelta/120;else if("detail"in t)i=-t.detail/3;else{if(!("deltaY"in t))return void console.log(t);console.log("deltaY"),i=t.deltaY/120}0===e.showIndex?(e.flagScale(e.index,i),t.returnValue=!1):e.showIndex};void 0===document.onmousewheel?(console.log("DOMMouseScroll"),document.addEventListener("DOMMouseScroll",o,{passive:!1})):(console.log("wheel"),window.addEventListener("wheel",o,{passive:!1}))},beforeDestroy:function(){document.removeEventListener("click",function(){});var t=document.getElementsByTagName("body")[0];t.classList="",t.style.paddingRight=null,void 0===document.onmousewheel?document.removeEventListener("DOMMouseScroll",function(){}):document.removeEventListener("wheel",function(){})}},jt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"childElement"},[a("el-row",[a("div",{ref:"tipbox",staticClass:"tipbox",domProps:{innerHTML:t._s(t.tipmsg)},on:{click:t.calculateAngle}}),t._v(" "),a("div",{staticClass:"canvas-ct"},[a("div",{ref:"draw",staticClass:"draw-img",staticStyle:{float:"left"}},[t.upload?t._e():a("img",{staticClass:"upload-img",attrs:{src:i("FC45")}}),t._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:!t.upload,expression:"!upload"}],staticClass:"cant-click",nativeOn:{click:function(e){return e.stopPropagation(),t.clickFile(e)}}}),t._v(" "),a("el-row",{staticClass:"operation"},[a("el-checkbox",{attrs:{label:"显示透射斑标记",disabled:t.showCheckBoxDisable1},on:{change:function(e){t.flagPosition[0].show=!t.flagPosition[0].show}},model:{value:t.showCheckBox1,callback:function(e){t.showCheckBox1=e},expression:"showCheckBox1"}}),t._v(" "),a("el-radio",{attrs:{label:1,disabled:t.showCheckBoxDisable2},model:{value:t.ispoinArr,callback:function(e){t.ispoinArr=e},expression:"ispoinArr"}},[t._v("标记图中衍射斑")]),t._v(" "),a("el-radio",{attrs:{label:2,disabled:t.showCheckBoxDisable3},model:{value:t.ispoinArr,callback:function(e){t.ispoinArr=e},expression:"ispoinArr"}},[t._v("标记理论衍射斑")]),t._v(" "),a("el-checkbox",{attrs:{label:"显示分析结果标记",disabled:t.pointArr.length<=0},model:{value:t.showCheckBox3,callback:function(e){t.showCheckBox3=e},expression:"showCheckBox3"}})],1),t._v(" "),a("el-row",{class:["shade",t.showBigImg?"click":""],nativeOn:{click:function(e){return t.restore(e)}}},[a("el-row",{ref:"imgbox"},[a("div",{ref:"bigimg",class:["bigimg-container",t.showBigImg?"translate":""],on:{mousemove:t.handleMouseMove},nativeOn:{click:function(t){t.stopPropagation()}}},[a("input",{ref:"s",staticStyle:{"c width":"0",height:"0",opacity:"0",border:"none",padding:"0",margin:"0",display:"inline"},attrs:{type:"text",autocomplete:"off"}}),t._v(" "),a("canvas",{ref:"canvas",on:{click:function(e){return e.stopPropagation(),t.handleCanvasClick(e)}}}),t._v(" "),a("canvas",{ref:"org_canvas",staticStyle:{display:"none"}}),t._v(" "),a("div",{style:[{left:"0"},{top:"0"},{width:t.imgSize.width/t.imgPercent+"px"},{height:t.imgSize.height/t.imgPercent+"px"},{display:t.flagPosition[2].show?"block":"none"},{"z-index":"1"},{position:"absolute"},{border:"none"},{padding:"0"},{margin:"0"}],on:{click:function(e){return e.stopPropagation(),t.handleCanvasClick(e)}}},[a("svg",{ref:"svg",staticStyle:{background:"rgba(0,0,0,0)"},attrs:{width:"100%",height:"100%",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[a("text",{attrs:{fill:"red",x:t.flagPosition[0].x,y:t.flagPosition[0].y+25}},[t._v("\n                    O\n                  ")]),t._v(" "),a("text",{attrs:{fill:"red",x:t.flagPosition[1].x,y:t.flagPosition[1].y+25}},[t._v("\n                    A\n                  ")]),t._v(" "),a("text",{attrs:{fill:"red",x:t.flagPosition[2].x,y:t.flagPosition[2].y+25}},[t._v("\n                    B\n                  ")]),t._v(" "),a("path",{directives:[{name:"show",rawName:"v-show",value:t.linePosition[1].show,expression:"linePosition[1].show"}],attrs:{"stroke-width":"3",stroke:"rgba(255,0,0,0.5)",fill:"none",d:"M "+t.linePosition[0].x+" "+t.linePosition[0].y+"L"+t.linePosition[1].x+" "+t.linePosition[1].y}}),t._v(" "),a("path",{attrs:{stroke:"rgba(255,0,0,0.5)",fill:"none",d:"M "+t.flagPosition[0].x+" "+t.flagPosition[0].y+"m "+(t.flagPosition[0].x-t.flagPosition[1].x)+" "+(t.flagPosition[0].y-t.flagPosition[1].y)+"l "+2*(t.flagPosition[1].x-t.flagPosition[0].x)+" "+2*(t.flagPosition[1].y-t.flagPosition[0].y)+"m "+(t.flagPosition[0].x-t.flagPosition[2].x)+" "+(t.flagPosition[0].y-t.flagPosition[2].y)+"l "+2*(t.flagPosition[0].x-t.flagPosition[1].x)+" "+2*(t.flagPosition[0].y-t.flagPosition[1].y)+"l "+2*(t.flagPosition[2].x-t.flagPosition[0].x)+" "+2*(t.flagPosition[2].y-t.flagPosition[0].y)+"l "+2*(t.flagPosition[1].x-t.flagPosition[0].x)+" "+2*(t.flagPosition[1].y-t.flagPosition[0].y)+"l "+2*(t.flagPosition[0].x-t.flagPosition[2].x)+" "+2*(t.flagPosition[0].y-t.flagPosition[2].y)+"m "+(t.flagPosition[0].x-t.flagPosition[1].x)+" "+(t.flagPosition[0].y-t.flagPosition[1].y)+"l "+2*(t.flagPosition[2].x-t.flagPosition[0].x)+" "+2*(t.flagPosition[2].y-t.flagPosition[0].y)}})])]),t._v(" "),1==t.ispoinArr?t._l(t.pointArr,function(e,i){return a("div",{key:0-i-1,staticClass:"point",style:[{left:e.position.x+"px",top:e.position.y+"px"}]},[a("span",[t._v("("+t._s(e.hkl)+")")])])}):t._e(),t._v(" "),2==t.ispoinArr?t._l(t.pointArr,function(e,i){return a("div",{key:0-i-1,staticClass:"point",style:[{left:e.position.x1+"px",top:e.position.y1+"px"}]},[a("span",[t._v("("+t._s(e.hkl)+")")])])}):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.showPoint&&t.upload&&t.zone,expression:"showPoint && upload && zone"}],staticClass:"zoneText",style:[{left:t.imgSize.width/t.imgPercent/2+"px",top:t.imgSize.height/t.imgPercent+"px"}]},[a("span",[t._v("Zone = "+t._s(t.zone))])]),t._v(" "),a("div",{class:"flag1",style:[{left:t.flagPosition[0].x-2*t.flagPosition[0].r+"px"},{top:t.flagPosition[0].y-2*t.flagPosition[0].r+"px"},{width:4*t.flagPosition[0].r+"px"},{height:4*t.flagPosition[0].r+"px"},{display:t.flagPosition[0].show?"block":"none"}],attrs:{"data-index":"0"},on:{click:function(e){e.stopPropagation(),t.index=0},mousedown:t.move}}),t._v(" "),a("div",{staticClass:"rect",style:[{left:t.flagPosition[0].x-2*t.flagPosition[0].r+"px"},{top:t.flagPosition[0].y-2*t.flagPosition[0].r+"px"},{width:4*t.flagPosition[0].r+"px"},{height:4*t.flagPosition[0].r+"px"},{display:t.flagPosition[0].show&&0===t.index?"block":"none"}]}),t._v(" "),a("div",{staticClass:"rect",style:[{left:t.flagPosition[1].x-t.flagPosition[1].r+"px"},{top:t.flagPosition[1].y-t.flagPosition[1].r+"px"},{width:2*t.flagPosition[1].r+"px"},{height:2*t.flagPosition[1].r+"px"},{display:t.flagPosition[1].show&&1===t.index?"block":"none"}]}),t._v(" "),a("div",{staticClass:"rect",style:[{left:t.flagPosition[2].x-t.flagPosition[2].r+"px"},{top:t.flagPosition[2].y-t.flagPosition[2].r+"px"},{width:2*t.flagPosition[2].r+"px"},{height:2*t.flagPosition[2].r+"px"},{display:t.flagPosition[2].show&&2===t.index?"block":"none"}]}),t._v(" "),a("div",{staticClass:"linerules",style:[{left:t.linePosition[0].x+"px"},{top:t.linePosition[0].y-2*t.linePosition[0].r+"px"},{width:t.linePosition[0].r+"px"},{height:4*t.linePosition[0].r+"px"},{display:t.linePosition[0].show?"block":"none"}]}),t._v(" "),a("div",{staticClass:"linerules",style:[{left:t.linePosition[1].x+"px"},{top:t.linePosition[1].y-2*t.linePosition[1].r+"px"},{width:t.linePosition[1].r+"px"},{height:4*t.linePosition[1].r+"px"},{display:t.linePosition[1].show?"block":"none"}]}),t._v(" "),t._l(t.flagPosition,function(e,i){return a("div",{key:i,ref:"flag"+(i+1),refInFor:!0,class:"flag"+(i+1),style:[{left:e.x-e.r+"px"},{top:e.y-e.r+"px"},{width:2*e.r+"px"},{height:2*e.r+"px"},{display:e.show?"block":"none"}],attrs:{"data-index":i},on:{click:function(e){e.stopPropagation(),t.index=i},mousedown:t.move}})}),t._v(" "),t.scalePosition[0].x>0?a("div",{directives:[{name:"show",rawName:"v-show",value:t.pixelLen>0,expression:"pixelLen > 0"}],staticClass:"rulerText",style:[{left:t.scalePosition[0].x+"px",top:t.scalePosition[0].y-20+"px",width:t.scalePosition[1].x-t.scalePosition[0].x-2+"px"}]},[a("span",[t._v(t._s(t.realLen)+" (1/nm)")])]):a("div",{directives:[{name:"show",rawName:"v-show",value:t.realLen>0&&t.pixelLen>0,expression:"realLen > 0 && pixelLen > 0"}],staticClass:"lineText",style:[{left:t.linePosition[0].x+"px",top:t.linePosition[0].y-20+"px"}]},[a("span",[t._v(t._s(t.realLen)+" (1/nm)")])]),t._v(" "),!t.showBigImg&&t.upload?a("div",{staticClass:"screen el-icon-full-screen",on:{click:function(e){return e.stopPropagation(),t.magnify(e)}}}):t._e()],2)])],1),t._v(" "),t.showBigImg?t._e():a("el-row",{staticClass:"upload",nativeOn:{click:function(e){return e.stopPropagation(),t.clickFile(e)}}},[a("el-button",{staticClass:"a-btn-default",staticStyle:{align:"left",float:"left"},attrs:{icon:"el-icon-upload",size:"small"}},[t._v("选择衍射图片")]),t._v(" "),a("input",{ref:"file",attrs:{type:"file",accept:".png, .jpg, .jpeg, .bmp",multiple:"1"},on:{change:t.uploadImg}})],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.manualhide,expression:"!manualhide"}],staticStyle:{width:"400px",float:"right",position:"relative"}},[a("div",{staticStyle:{"text-align":"center"}}),t._v(" "),a("div",{staticStyle:{margin:"20px 0"}},[a("el-row",[a("el-button",{attrs:{type:"primary"},on:{click:t.cancelruler}},[t._v("取消手动标尺")]),t._v(" "),a("el-button",{attrs:{type:"success"},on:{click:t.viewturial}},[t._v("查看标尺教程")])],1)],1),t._v(" "),a("canvas",{ref:"canvas2",attrs:{width:"400",height:"400"}}),t._v(" "),a("svg",{ref:"svg",staticStyle:{background:"rgba(232, 46, 13, 0)",left:"0",position:"absolute"},attrs:{width:"100%",height:"100%",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{stroke:"rgba(255,0,0,0.5)","stroke-width":"2",fill:"none",d:" M 195 135   L 195 250  M 195 135 L 180 135 M 195 135 L 210 135 M 200 250 L 180 250 L 210 250"}})]),t._v(" "),a("el-dialog",{attrs:{title:"标尺教程",visible:t.canvas2Visible,width:"80%"},on:{"update:visible":function(e){t.canvas2Visible=e}}},[a("img",{attrs:{src:i("APxr"),alt:""}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})])],1)])])],1)},staticRenderFns:[]};var Et=i("VU/8")(zt,jt,!1,function(t){i("653D")},"data-v-6ee3a001",null).exports,Tt={props:["questions"],data:function(){return{questionIndex:0}},methods:{showHide:function(t){console.log("--showHide--"+t);var e=this.questions[t];this.questionIndex!==t&&(this.questions[this.questionIndex].showDetail=!1,document.getElementById("itemPId"+this.questionIndex).style.height="0px",this.questionIndex=t),e.showDetail=!e.showDetail;var i=document.getElementById("itemPId"+t);e.showDetail?i.style.height=i.scrollHeight+"px":i.style.height=0}},mounted:function(){}},Wt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{width:"400px"}},[i("el-row",{attrs:{id:"questions"}},[i("ul",{staticClass:"question-container"},t._l(t.questions,function(e,a){return i("li",{key:a},[i("p",[t._v("\n          Q："+t._s(e.q)+"\n          "),i("span",{class:["arrow","bottom-arrow",e.showDetail?"active":""],on:{click:function(e){return t.showHide(a)}}})]),t._v(" "),i("el-row",{staticClass:"answer",attrs:{id:e.pid}},t._l(e.a,function(e,n){return i("li",{key:"p"+a+"a"+n},[i("p",[t._v("▶ "+t._s(e))])])}),0)],1)}),0)])],1)},staticRenderFns:[]};var Ut=i("VU/8")(Tt,Wt,!1,function(t){i("n6vE")},"data-v-95e0f056",null).exports,$t=i("++k8"),qt=i.n($t),Gt={name:"CanvasWithUploadedBackground",props:{x:{type:String},y:{type:String},d1:{type:String},d2:{type:String},pixelLen:{type:String},realLen:{default:function(){return 2}},upload:{type:Boolean},currentPoints:{type:Array,default:function(){return[]}},zone:{type:String},dp1:{type:String},dp2:{type:String},handscale:{type:Boolean},manualhide:{type:Boolean,default:!0},showExponentThree:{type:Boolean,default:function(){return!0}}},watch:{showExponentThree:function(t){this.redrawCanvas()},x:function(t){var e=parseFloat(t);this.coordinatePoint.x!==e&&(this.coordinatePoint.x=e,this.redrawCanvas())},y:function(t){var e=parseFloat(t);this.coordinatePoint.y!==e&&(this.coordinatePoint.y=e,this.redrawCanvas())},d1:function(t){var e=t.split(",");if(2===e.length){var i=parseFloat(e[0]),a=parseFloat(e[1]);this.pointA.x===i&&this.pointA.y===a||(this.pointA.x=i,this.pointA.y=a,this.redrawCanvas())}},dp1:function(t){if(t){var e=parseFloat(t);this.pointA.r!==e&&(this.pointA.r=e,this.redrawCanvas())}},d2:function(t){var e=t.split(",");if(2===e.length){var i=parseFloat(e[0]),a=parseFloat(e[1]);this.pointB.x===i&&this.pointB.y===a||(this.pointB.x=i,this.pointB.y=a,this.redrawCanvas())}},dp2:function(t){if(t){var e=parseFloat(t);this.pointB.r!==e&&(this.pointB.r=e,this.redrawCanvas())}},currentPoints:function(t,e){console.log("currentPoints=>",t),this.redrawCanvas()},realLen:function(t){var e=Number(t);this.imgScale.realLength!==e&&(this.imgScale.realLength=e,this.redrawCanvas())},"coordinatePoint.x":{handler:function(t,e){this.$emit("update:x",""+t.toFixed(2))},immediate:!0},"coordinatePoint.y":{handler:function(t,e){this.$emit("update:y",""+t.toFixed(2))},immediate:!0},"pointA.r":{handler:function(t,e){this.$emit("update:dp1",""+t)},immediate:!0},"pointB.r":{handler:function(t,e){this.$emit("update:dp2",""+t)},immediate:!0},pointA:{handler:function(t){this.$emit("update:d1",t.x.toFixed(1)+","+t.y.toFixed(1))},deep:!0},pointB:{handler:function(t){this.$emit("update:d2",t.x.toFixed(1)+","+t.y.toFixed(1))},deep:!0}},data:function(){var t=this;return{showAngleAndDistance:!1,angleAndDistanceColor:"#FAFF04",showAnalyze:!0,dragCanvas:!1,fixedCanvas:!0,showCoordinatePoint:!0,showSpotType:"position_true",focusItem:null,draggingItem:null,coordinatePoint:{x:0,y:0,outerRing:{y:0,x:0,r:80},innerRing:{y:0,x:0,r:40},showAxis:!0,show:!1,draw:function(e,i,a){var n=t.coordinatePoint;i&&a?(n.x=i,n.y=a,n.outerRing.x=i,n.outerRing.y=a):(e=t.context,i=n.x,a=n.y),t.showCoordinatePoint&&(e.beginPath(),e.arc(i,a,n.outerRing.r<1?1:n.outerRing.r,0,2*Math.PI),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.beginPath(),e.arc(i,a,n.innerRing.r<1?1:n.innerRing.r,0,2*Math.PI),e.stroke(),n.showAxis&&n.outerRing.r>15&&(e.beginPath(),e.moveTo(i-2*n.outerRing.r,a),e.lineTo(i+2*n.outerRing.r,a),e.moveTo(i,a-2*n.outerRing.r),e.lineTo(i,a+2*n.outerRing.r),e.strokeStyle="red",e.lineWidth=.4,e.stroke()),e.font="16px Arial",e.fillStyle="blue",e.fillText("O",i-20,a+20),n.show=!0)},ifCursorInside:function(e,i){if(t.showCoordinatePoint){var a=t.coordinatePoint,n=a.x,o=a.y;return Math.sqrt(Math.pow(n-e,2)+Math.pow(o-i,2))<a.outerRing.r}},highlight:function(){if(t.showCoordinatePoint){var e=t.context,i=t.coordinatePoint,a=i.x,n=i.y,o=i.outerRing.r;e.beginPath(),e.rect(a-o,n-o,2*o,2*o),e.strokeStyle="#ffc66d",e.lineWidth=1,e.stroke()}},zoomOut:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=t.coordinatePoint;(i.outerRing.r>1||e>0)&&(i.outerRing.r+=5*e,i.innerRing.r+=5*e)}},imgScale:{show:!1,headPoint:{y:0,x:0},tailPoint:{y:0,x:0},pixelLength:0,realLength:2,draw:function(e,i,a){var n=t.context,o=t.imgScale;n.beginPath(),n.moveTo(o.headPoint.x,o.headPoint.y),n.lineTo(o.tailPoint.x,o.tailPoint.y),n.moveTo(o.headPoint.x,o.headPoint.y-10),n.lineTo(o.headPoint.x,o.headPoint.y+10),n.moveTo(o.tailPoint.x,o.tailPoint.y-10),n.lineTo(o.tailPoint.x,o.tailPoint.y+10),n.closePath(),n.lineWidth=1,n.strokeStyle="red",n.font="30px Arial",n.fillStyle="red",n.fillText(o.realLength+"(1/nm)",o.tailPoint.x+15,o.tailPoint.y+10),n.stroke()}},pointA:{y:0,x:0,r:10,color:"green",show:!1,draw:function(e,i,a){var n=t.context,o=t.pointA;i&&a?(o.x=i,o.y=a):(i=o.x,a=o.y);var s=o.r>1?o.r:1;n.beginPath(),n.arc(i,a,s,0,2*Math.PI),n.strokeStyle="red",n.lineWidth=1,n.stroke(),n.font="16px Arial",n.fillStyle="blue",n.fillText("A",i+8,a+20),o.show=!0},ifCursorInside:function(e,i){var a=t.pointA,n=a.x,o=a.y,s=a.r;return Math.sqrt(Math.pow(n-e,2)+Math.pow(o-i,2))<s},highlight:function(){var e=t.context,i=t.pointA,a=i.x,n=i.y,o=i.r;e.beginPath(),e.rect(a-o,n-o,2*o,2*o),e.strokeStyle="#ffc66d",e.lineWidth=1,e.stroke()},zoomOut:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=t.pointA;(i.r>3||e>0)&&(i.r+=e,i.r+=e)}},pointB:{y:0,x:0,r:10,color:"green",show:!1,draw:function(e,i,a){var n=t.context,o=t.pointB;i&&a?(o.x=i,o.y=a):(i=o.x,a=o.y);var s=o.r>1?o.r:1;n.beginPath(),n.arc(i,a,s,0,2*Math.PI),n.strokeStyle="red",n.lineWidth=1,n.stroke(),n.font="16px Arial",n.fillStyle="blue",n.fillText("B",i+8,a+20),o.show=!0},ifCursorInside:function(e,i){var a=t.pointB,n=a.x,o=a.y,s=a.r;return Math.sqrt(Math.pow(n-e,2)+Math.pow(o-i,2))<s},highlight:function(){var e=t.context,i=t.pointB,a=i.x,n=i.y,o=i.r;e.beginPath(),e.rect(a-o,n-o,2*o,2*o),e.strokeStyle="#ffc66d",e.lineWidth=1,e.stroke()},zoomOut:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=t.pointB;(i.r>3||e>0)&&(i.r+=e,i.r+=e)}},points:[],context:null,draggingPointIndex:null,scale:1,originX:0,originY:0,backgroundImage:null,offsetX:0,offsetY:0,isDraggingCanvas:!1,lastMouseX:0,lastMouseY:0,zoneTextOffsetX:375,zoneTextOffsetY:725,canvasInfo:{offsetEvtPos:{x:null,y:null}},isCtrlDown:!1}},mounted:function(){var t=this;this.context=this.$refs.canvas.getContext("2d"),this.$refs.canvas.addEventListener("wheel",this.handleWheel),document.addEventListener("keyup",function(e){"Control"===e.key&&(t.isCtrlDown=!1)}),document.addEventListener("keydown",function(e){if("Control"===e.key&&(t.isCtrlDown=!0),t.focusItem&&["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(event.key)){if(event.preventDefault(),!t.focusItem)return;switch(e.key){case"ArrowUp":t.focusItem.y-=1;break;case"ArrowDown":t.focusItem.y+=1;break;case"ArrowLeft":t.focusItem.x-=1;break;case"ArrowRight":t.focusItem.x+=1}t.redrawCanvas()}})},methods:{getCanvasImage64:function(){return this.$refs.canvas.toDataURL("image/png")},drawZone:function(){if(this.zone&&this.showAnalyze){var t=this.$refs.canvas.getContext("2d"),e=24/this.scale;t.font=e+"px Arial",t.fillStyle="red",t.textAlign="center";var i,a;i=(this.zoneTextOffsetX-this.originX)/this.scale,a=(this.zoneTextOffsetY-this.originY)/this.scale,t.fillText("zone = "+(this.showExponentThree?this.zone:"["+this.zone+"]")+" ",i,a)}},toDefault:function(t){this.scale=1,this.originX=0,this.originY=0,this.offsetX=0,this.offsetY=0,this.redrawCanvas()},tempColorChange:function(t){this.angleAndDistanceColor=t,this.redrawCanvas()},uploadImg:function(){this.$refs.file.click()},drawDiffractionSpot:function(){var t=this;if(this.currentPoints.length&&this.showAnalyze){var e=this.context;this.currentPoints.forEach(function(i){e.beginPath(),e.arc(i[""+t.showSpotType].x,i[""+t.showSpotType].y,1.5,0,2*Math.PI),e.strokeStyle="red",e.fillStyle="red",e.fill(),e.stroke();var a=t.getPixelLengthDistance(t.coordinatePoint,t.pointA),n=t.getPixelLengthDistance(t.coordinatePoint,t.pointB),o="16px Arial",s=(a>n?n:a)/5;s<16&&(o=s.toFixed(2)+"px Arial"),e.font=o;var r=t.showExponentThree?"("+i.hkl+")":"("+i.hkil+")",l=e.measureText(r).width/2,c=i[""+t.showSpotType].x-l;e.fillText(r,c,i[""+t.showSpotType].y-10)})}},reSet:function(){this.coordinatePoint.show=!1,this.coordinatePoint.outerRing={y:0,x:0,r:80},this.coordinatePoint.innerRing={y:0,x:0,r:40},this.pointA.show=!1,this.pointA.r=10,this.pointB.show=!1,this.pointB.r=10,this.imgScale.show=!1,this.focusItem=null,this.scale=1,this.originX=0,this.originY=0,this.offsetX=0,this.offsetY=0},drawOAOBLength:function(){if([this.coordinatePoint,this.pointA,this.pointB].every(function(t){return t.show})&&this.showAngleAndDistance){var t=this.getPixelLengthDistance(this.coordinatePoint,this.pointA),e=this.getPixelLengthDistance(this.coordinatePoint,this.pointB),i="10px Arial";t/10<10&&(i=(t/10).toFixed(2)+"px Arial"),this.drawTextNearLine(this.context,this.coordinatePoint,this.pointA,this.disTance(this.coordinatePoint,this.pointA,!0),i,this.angleAndDistanceColor);var a="10px Arial";e/10<10&&(a=(e/10).toFixed(2)+"px Arial"),this.drawTextNearLine(this.context,this.coordinatePoint,this.pointB,this.disTance(this.coordinatePoint,this.pointB,!0),a,this.angleAndDistanceColor)}},drawAOB:function(){if([this.coordinatePoint,this.pointA,this.pointB].every(function(t){return t.show})){var t=this.calculateAngle([this.coordinatePoint,this.pointA],[this.coordinatePoint,this.pointB]),e=t.angleDeg,i=t.angleRad,a=t.vector1,n=t.vector2,o=this.context,s=this,r=this.getPixelLengthDistance(this.coordinatePoint,this.pointA),l=this.getPixelLengthDistance(this.coordinatePoint,this.pointB),c=r>l?l:r,d="10px Arial",h=c/10;h<10&&(d=h.toFixed(2)+"px Arial"),o.font=d,o.fillStyle=this.angleAndDistanceColor;var u=this.coordinatePoint,f=u.x,g=u.y;this.showAngleAndDistance&&function(t,i,r){var l=Math.atan2(a.y,a.x),d=void 0;a.y*n.x<a.x*n.y?(d=l+t,o.beginPath(),o.arc(i,r,c/3<30?c/3:30,l,d,!1),o.strokeStyle=s.angleAndDistanceColor,o.stroke(),p(i,r,c/3<30?c/2:62,l,d,!1,e.toFixed(2)+"°")):(d=l-t,o.beginPath(),o.arc(i,r,c/3<30?c/3:30,l,d,!0),o.strokeStyle=s.angleAndDistanceColor,o.stroke(),p(i,r,c/3<30?c/2:62,l,d,!0,e.toFixed(2)+"°"))}(i,f,g),this.$emit("update:canvaslist",""+e.toFixed(2))}function p(t,e,i,a,n,r,l){var c=(a+n)/2,h=t+i/2*Math.cos(c),u=e+i/2*Math.sin(c);o.font=d,o.fillStyle=s.angleAndDistanceColor,o.fillText(l,h,u)}},calculateAngle:function(t,e){var i={x:t[1].x-t[0].x,y:t[1].y-t[0].y},a={x:e[1].x-e[0].x,y:e[1].y-e[0].y};function n(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function o(t,e){var i=(t.x*e.x+t.y*e.y)/(n(t)*n(e));return Math.acos(i)}var s=o(i,a);return{angleDeg:s*(180/Math.PI),angleRad:s,vector1:i,vector2:a}},getDifferentColorCoordinates:function(t,e,i,a){for(var n=t.canvas.width,o=(t.canvas.height,t.getImageData(e,i,1,1).data),s=function(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,a=0;a<4;a++)if(Math.abs(t[a]-e[a])>i)return!1;return!0},r=null,l=null,c=e;c>=0;c--){var d=t.getImageData(c,i,1,1).data;if(!s(o,d,a)){r={x:c,y:i,color:d};break}}for(var h=e;h<n;h++){var u=t.getImageData(h,i,1,1).data;if(!s(o,u,a)){l={x:h,y:i,color:u};break}}return{left:r,right:l}},getScale:function(t,e){this.focusItem=null,this.draggingItem=null;var i=this.$refs.canvas.getContext("2d"),a=this.getDifferentColorCoordinates(i,t,e,30);a.left&&a.right&&a.left.x&&a.right.x?(this.imgScale.show&&(this.imgScale.show=!1,this.redrawCanvas()),this.imgScale.headPoint=this.getRealPointPosition(a.left),this.imgScale.tailPoint=this.getRealPointPosition(a.right),this.imgScale.show=!0,i.beginPath(),i.moveTo(a.left.x,a.left.y),i.lineTo(a.right.x,a.right.y),i.closePath(),i.strokeStyle="red",i.stroke(),this.imgScale.pixelLength=Math.sqrt(Math.pow(this.imgScale.tailPoint.x-this.imgScale.headPoint.x,2)+Math.pow(this.imgScale.tailPoint.y-this.imgScale.headPoint.y,2)),this.$emit("update:pixelLen",""+this.imgScale.pixelLength.toFixed(2)),this.redrawCanvas()):this.$message.error("找不到正确的标尺位置，请重新调整")},handleWheel:function(t){t.preventDefault();var e=this.$refs.canvas.getBoundingClientRect(),i=t.clientX-e.left,a=t.clientY-e.top;if(this.focusItem)return this.focusItem.zoomOut(t.deltaY>0?-1:1),void this.redrawCanvas();var n=t.deltaY>0?-.1:.1,o=this.scale+n;if(o>.1&&o<10){var s=(i-this.originX)/this.scale,r=(a-this.originY)/this.scale;this.scale=o,this.originX=i-s*this.scale,this.originY=a-r*this.scale,this.redrawCanvas()}},handleFileChange:function(t){var e=this,i=t.target.files[0];if(i&&i.type.startsWith("image/"))if("image/tiff"===i.type){var a=new FileReader;a.onload=function(t){var i=t.target.result;if(i instanceof ArrayBuffer)try{qt.a.initialize({TOTAL_MEMORY:973041e3});var a=new qt.a({buffer:i}).toCanvas().toDataURL("image/png");e.backgroundImage=new Image,e.backgroundImage.src=a,e.backgroundImage.onload=function(){e.redrawCanvas()},e.backgroundImage.onerror=function(){e.$message.error("图片格式错误，请将图片转换png等格式后上传"),e.backgroundImage=null}}catch(t){e.$message.error("某些tif文件不支持，请转换png等格式后上传")}},a.readAsArrayBuffer(i)}else e.loadImage(i)},getSymmetricPoint:function(t,e,i){var a=t.x,n=t.y,o=e.x,s=e.y,r=i.x,l=i.y,c=l-s,d=o-r,h=r*s-o*l,u=c*c+d*d;return{x:a-2*c*(c*a+d*n+h)/u,y:n-2*d*(c*a+d*n+h)/u}},loadImage:function(t){var e=this,i=this,a=new FileReader;a.onload=function(t){e.reSet(),i.$emit("update:upload",!0),i.$emit("resetSquare",{currentPoint:-1}),e.backgroundImage=new Image,e.backgroundImage.src=t.target.result,e.backgroundImage.onload=function(){e.drawCanvasWithBackground()},e.backgroundImage.onerror=function(){i.$message.error("图片格式错误，请将图片转换png等格式后上传"),i.backgroundImage=null}},a.readAsDataURL(t)},drawCanvasWithBackground:function(){if(this.backgroundImage){this.points=[];var t=this.$refs.canvas,e=t.getContext("2d");e.clearRect(0,0,t.width,t.height);var i=this.backgroundImage.width/this.backgroundImage.height,a=void 0,n=void 0,o=void 0,s=void 0;i>t.width/t.height?(a=t.width,n=t.width/i,o=0,s=(t.height-n)/2):(a=t.height*i,n=t.height,o=(t.width-a)/2,s=0),e.drawImage(this.backgroundImage,o,s,a,n),console.log("drawImage")}},getRealPosition:function(t){var e=this.$refs.canvas.getBoundingClientRect(),i=t.clientX-e.left,a=t.clientY-e.top;return{x:(i-this.originX)/this.scale,y:(a-this.originY)/this.scale}},getRealPointPosition:function(t){return{x:(t.x-this.originX)/this.scale,y:(t.y-this.originY)/this.scale}},handleMouseDown:function(t){console.log("mouseDown");var e=this.$refs.canvas.getBoundingClientRect(),i=t.clientX-e.left,a=t.clientY-e.top;console.log(this.getRealPosition(t));var n=this.getRealPosition(t),o=n.x,s=n.y;if(this.isCtrlDown)this.getScale(t.offsetX,t.offsetY);else{var r=[this.coordinatePoint,this.pointA,this.pointB].find(function(t){return t.ifCursorInside(o,s)&&t.show});r&&!this.dragCanvas?(this.offsetX=o-r.x,this.offsetY=s-r.y,this.draggingItem=r,this.redrawCanvas(),this.isDraggingCanvas=!1):(this.isDraggingCanvas=!0,this.lastMouseX=i,this.lastMouseY=a,this.focusItem=null,this.redrawCanvas()),r||this.dragCanvas||(this.coordinatePoint.show?!1===this.pointA.show?(this.pointA.draw(this.context,o,s),this.draggingItem=this.pointA,this.redrawCanvas()):!1===this.pointB.show&&(this.pointB.draw(this.context,o,s),this.draggingItem=this.pointB,this.redrawCanvas()):(this.coordinatePoint.draw(this.context,o,s),this.draggingItem=this.coordinatePoint,this.redrawCanvas()))}},handleMouseMove:function(t){var e=this.$refs.canvas.getBoundingClientRect(),i=t.clientX-e.left,a=t.clientY-e.top,n=(i-this.originX)/this.scale,o=(a-this.originY)/this.scale;if([this.coordinatePoint,this.pointA,this.pointB].find(function(t){return t.ifCursorInside(n,o)})&&!this.dragCanvas?this.$refs.canvas.style.cursor="move":this.$refs.canvas.style.cursor="default",this.isDraggingCanvas&&!this.fixedCanvas){var s=i-this.lastMouseX,r=a-this.lastMouseY;this.originX+=s,this.originY+=r,this.lastMouseX=i,this.lastMouseY=a,this.zoneTextOffsetX+=s,this.zoneTextOffsetY+=r,this.redrawCanvas()}else this.draggingItem&&!this.dragCanvas&&(this.draggingItem.x=n-this.offsetX,this.draggingItem.y=o-this.offsetY,this.redrawCanvas())},handleMouseUp:function(){this.draggingPointIndex=null,this.draggingItem&&(this.focusItem=this.draggingItem,this.draggingItem=null),this.offsetX=0,this.offsetY=0,this.isDraggingCanvas=!1},drawPoint:function(t,e,i){var a=this.context;a.beginPath(),a.arc(t,e,20,0,2*Math.PI),a.strokeStyle="red",a.lineWidth=1,a.stroke();var n=["A","B","C","D"];a.font="16px Arial",a.fillStyle="green",n[i-1]&&a.fillText(n[i-1],t+8,e-8),this.draggingPointIndex===i-1&&(a.beginPath(),a.rect(t-20,e-20,40,40),a.strokeStyle="#ffc66d",a.lineWidth=1,a.stroke())},drawGrid:function(){if([this.coordinatePoint,this.pointA,this.pointB].every(function(t){return t.show})){var t=function(t,e,i,a,n){for(var o=[],s=(i.x,e.x,t.x,i.y,e.y,t.y,{x:e.x-t.x,y:e.y-t.y}),r={x:i.x-t.x,y:i.y-t.y},l=-Math.floor(a/2);l<=Math.floor(a/2);l++){for(var c=[],d=-Math.floor(n/2);d<=Math.floor(n/2);d++){var h=t.x+l*s.x+d*r.x,u=t.y+l*s.y+d*r.y;c.push({x:h,y:u})}o.push(c)}return o}(this.coordinatePoint,this.pointA,this.pointB,2,2);!function(t,e){for(var i=0;i<e.length-1;i++)for(var a=0;a<e[i].length-1;a++){var n=e[i][a],o=e[i][a+1],s=e[i+1][a],r=e[i+1][a+1];t.beginPath(),t.moveTo(n.x,n.y),t.lineTo(o.x,o.y),t.lineTo(r.x,r.y),t.lineTo(s.x,s.y),t.closePath(),t.strokeStyle="blue",t.lineWidth=.8,t.stroke()}}(this.context,t)}},drawParallelogram:function(){var t=this;if(!(this.points.length<3)){var e=this.context,i=this.points[0],a=this.points[1],n=this.points[2],o={x:n.x+(a.x-i.x),y:n.y+(a.y-i.y)},s=[],r=[];if(n&&function(t,e,i,a,n){i.x,e.x,t.x,i.y,e.y,t.y;for(var o={x:e.x-t.x,y:e.y-t.y},l={x:i.x-t.x,y:i.y-t.y},c=-Math.floor(a/2);c<=Math.floor(a/2);c++){for(var d=[],h=-Math.floor(n/2);h<=Math.floor(n/2);h++){var u=t.x+c*o.x+h*l.x,f=t.y+c*o.y+h*l.y;d.push({x:u,y:f}),s.push({x:u,y:f})}r.push(d)}}(i,a,n,2,2),this.points=[].concat(gt()(this.points.slice(0,4)),s),this.context.clearRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.backgroundImage){var l=this.backgroundImage.width/this.backgroundImage.height,c=void 0,d=void 0,h=void 0,u=void 0;l>this.$refs.canvas.width/this.$refs.canvas.height?(c=this.$refs.canvas.width,d=this.$refs.canvas.width/l,h=0,u=(this.$refs.canvas.height-d)/2):(c=this.$refs.canvas.height*l,d=this.$refs.canvas.height,h=(this.$refs.canvas.width-c)/2,u=0),e.drawImage(this.backgroundImage,h,u,c,d)}if(this.points.forEach(function(e,i){return t.drawPoint(e.x,e.y,i+1)}),e.beginPath(),e.moveTo(i.x,i.y),e.lineTo(a.x,a.y),e.lineTo(o.x,o.y),e.lineTo(n.x,n.y),e.closePath(),e.strokeStyle="red",e.lineWidth=1,e.stroke(),function(t,e){for(var i=0;i<e.length-1;i++)for(var a=0;a<e[i].length-1;a++){var n=e[i][a],o=e[i][a+1],s=e[i+1][a],r=e[i+1][a+1];t.beginPath(),t.moveTo(n.x,n.y),t.lineTo(o.x,o.y),t.lineTo(r.x,r.y),t.lineTo(s.x,s.y),t.closePath(),t.strokeStyle="blue",t.lineWidth=1,t.stroke()}}(e,r),this.drawTextNearLine(e,i,a,this.disTance(i,a)),this.drawTextNearLine(e,a,o,this.disTance(a,o)),this.drawTextNearLine(e,o,n,this.disTance(o,n)),this.drawTextNearLine(e,n,i,this.disTance(n,i)),o){var f=n,g=o,p=this.getSymmetricPoint(i,o,n),m=this.getSymmetricPoint(a,o,n);e.beginPath(),e.moveTo(f.x,f.y),e.lineTo(g.x,g.y),e.lineTo(m.x,m.y),e.lineTo(p.x,p.y),e.closePath(),e.strokeStyle="blue",e.stroke()}}},redrawCanvas:function(){if(this.$refs.canvas.width){if(this.context.clearRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.context.save(),this.context.translate(this.originX,this.originY),this.context.scale(this.scale,this.scale),this.backgroundImage){var t=this.backgroundImage.width/this.backgroundImage.height,e=void 0,i=void 0,a=void 0,n=void 0;t>this.$refs.canvas.width/this.$refs.canvas.height?(e=this.$refs.canvas.width,i=this.$refs.canvas.width/t,a=0,n=(this.$refs.canvas.height-i)/2):(e=this.$refs.canvas.height*t,i=this.$refs.canvas.height,a=(this.$refs.canvas.width-e)/2,n=0),this.context.drawImage(this.backgroundImage,a,n,e,i)}this.coordinatePoint.show&&this.coordinatePoint.draw(),this.imgScale.show&&this.imgScale.draw(),this.pointA.show&&this.pointA.draw(),this.pointB.show&&this.pointB.draw(),this.draggingItem?this.draggingItem.highlight():this.focusItem&&this.focusItem.highlight(),this.drawGrid(),this.drawAOB(),this.drawOAOBLength(),this.drawDiffractionSpot(),this.drawZone(),this.context.restore()}},drawTextNearLine:function(t,e,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"10px Arial",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"green",s=(e.x+i.x)/2,r=(e.y+i.y)/2;t.font=n,t.fillStyle=o,t.fillText(a,s-10,r-5)},disTance:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t.x,n=t.y,o=e.x,s=e.y;if(0===o&&0===s)return null;var r=o-a,l=s-n;return i?this.imgScale.realLength&&this.imgScale.pixelLength?(Math.sqrt(r*r+l*l)*this.imgScale.realLength/this.imgScale.pixelLength).toFixed(2)+"nm":"":Math.sqrt(r*r+l*l).toFixed(2)+"nm"},getPixelLengthDistance:function(t,e){var i=t.x,a=t.y,n=e.x,o=e.y;if(0===n&&0===o)return null;var s=n-i,r=o-a;return Math.sqrt(s*s+r*r)}}},Yt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{position:"relative"}},[a("el-button",{staticStyle:{position:"absolute",top:"10px",left:"10px","z-index":"100"},attrs:{icon:"el-icon-upload",type:"primary",plain:"",size:"small"},on:{click:t.uploadImg}},[t._v("选择衍射图片\n    ")]),t._v(" "),a("input",{ref:"file",staticStyle:{position:"absolute",visibility:"hidden"},attrs:{type:"file",accept:".png, .jpg, .jpeg, .bmp, .tiff , .tif",multiple:"1"},on:{change:t.handleFileChange}}),t._v(" "),a("canvas",{ref:"canvas",staticStyle:{border:"1px solid rgb(126,160,255)"},attrs:{width:"750",height:"750"},on:{mousedown:t.handleMouseDown,mousemove:t.handleMouseMove,mouseup:t.handleMouseUp}}),t._v(" "),t.backgroundImage?t._e():a("div",{staticStyle:{position:"absolute",width:"752px",height:"751px",top:"0",left:"0","z-index":"99"},on:{click:t.uploadImg}},[t.backgroundImage?t._e():a("img",{staticStyle:{width:"100%",height:"100%","object-fit":"cover"},attrs:{src:i("FC45"),alt:"img"}})]),t._v(" "),a("div",{staticStyle:{display:"flex",gap:"32px",width:"750px","align-items":"center",padding:"6px 0","flex-wrap":"wrap"}},[a("el-tooltip",{attrs:{effect:"dark",placement:"left",trigger:"hover","open-delay":600,content:"回到导入图片时的放大倍数"}},[a("el-button",{attrs:{type:"primary",size:"mini",round:""},on:{click:t.toDefault}},[t._v("返回初始位置")])],1),t._v(" "),a("el-switch",{attrs:{"active-text":"透射斑",disabled:!t.backgroundImage},on:{change:t.redrawCanvas},model:{value:t.showCoordinatePoint,callback:function(e){t.showCoordinatePoint=e},expression:"showCoordinatePoint"}}),t._v(" "),a("el-checkbox",{attrs:{disabled:!t.backgroundImage},on:{change:t.redrawCanvas},model:{value:t.showAnalyze,callback:function(e){t.showAnalyze=e},expression:"showAnalyze"}},[t._v("分析结果")]),t._v(" "),a("el-switch",{attrs:{disabled:!t.showAnalyze||!t.backgroundImage,"active-value":"position_true","inactive-value":"position","active-text":"理论衍射斑","inactive-text":"实际衍射斑"},on:{change:t.redrawCanvas},model:{value:t.showSpotType,callback:function(e){t.showSpotType=e},expression:"showSpotType"}})],1)],1)},staticRenderFns:[]};var Vt={components:{"analyze-title":dt,"analyze-step1":yt,"analyze-step2":Ct,"analyze-step3":St,"analyze-step4":At,"analyze-result":Lt,"analyze-args":Ft,"analyze-draw":Et,mQuestions:Ut,Test:i("VU/8")(Gt,Yt,!1,function(t){i("Wc9y")},"data-v-20047605",null).exports},watch:{},data:function(){return{showExponentThree:!0,resultData:[],resultDataCopy:[],square:[],squareCopy:[],explainVisible:!1,pdfList:[],crystal:{phase:"",center_type:"",type:"",a:"",b:"",c:"",alpha:"",beta:"",gamma:""},scale:{pixels:"",scale:"2"},center:{x:"",y:""},step4:{d1_a:"",d2_a:"",dp1:"10",dp2:"10",error_angle:10,canvasarray:0},canExport:!0,upload:!1,currentPoint:-1,currentPoints_new:[],zoneText_new:"",loading:!1,newplayer:!0,questions:[{q:"程序声明",a:["本程序研发目的是辅助用户进行基础的数据分析，受能力和精力所限，不可能考虑所有可能出现的情况；","本程序产生或展示的内容仅供参考，务必严格确认后再进行引用或发表；","对应直接或间接因本程序引起的后果，本站点及单位不承担任何责任；","由于研究对象和研究目的具有客观复杂性，我们另提供人工分析服务；","严禁对本程序进行逆向分析和破解等攻击破坏行为，保留追责权利；","本程序将持续更新和改进，恕不另行通知，请及时备份和保存数据；","若使用，即代表同意上述观点。本站点及单位具有最终解释权。","欢迎大家提出任何意见或建议~~","Email: test@zcjce.com"]},{q:"如何选择SAED或FFT图片？",a:["点击“选择衍射图片”按钮，选择带标尺的图片, 支持扩展名.jpg, .png, .bmp等。","图片要带标尺，最好是矩形的标尺，例如DM软件自动生成的标尺。"]},{q:"如何选择透射斑？",a:["在图片区域中首次单击，将选择一个坐标位置，即计算使用的透射斑坐标， 并用同心辅助圆标记。"]},{q:"如何移动透射斑位置？",a:["选中透射斑标记后，可通过鼠标拖拽、键盘方向键、文本输入三种方式来调整其位置。","一般来说，鼠标拖拽适合粗调，键盘方向键适合微调，或者文本输入精确坐标值；请选择你最喜欢的方式。","选中透射斑标记后，通过“Ctrl+鼠标滚轮”的方式，可以将辅助标记放大或缩小。当对称的衍射斑点位于辅助圆上时，说明此时的透射斑位置是正确的。"]},{q:"如何选择衍射斑？",a:["在图片区域中第二、三次单击，将创建2个衍射斑，并用小圆标记。","小圆的半径大小，代表计算允许误差的大小。","允许误差的大小，只支持通过左侧文本输入的方式更改"]},{q:"如何移动衍射斑位置？",a:["选中衍射斑标记后，可通过鼠标拖拽、键盘方向键、文本输入三种方式来调整其位置。","一般来说，鼠标拖拽适合粗调，键盘方向键适合微调，或者文本输入精确坐标值；请选择你最喜欢的方式。","允许误差的大小，只支持通过左侧文本输入的方式更改。"]},{q:"如何设置图片的标尺？",a:["在图片的标尺▄▄中间, 点击组合键, 程序自动识别标尺的像素长度。目前自动识别功能只支持纯黑色或白色的矩形标尺。也可以手动输入标尺的像素长度。","组合键：Window系统: Ctrl+鼠标左键；Mac系统: Option+鼠标左键。","手动输入标尺的实际长度。"]},{q:"程序的计算原理是怎样的？",a:["程序根据输入信息，构建平行四边形，根据两个边长及其夹角，匹配衍射指数。夹角数值自动计算，但夹角允许误差需要手动更改。"]},{q:"如何显示模拟结果？",a:["分析结果出来以后，点击分析报告列表中的数据行，可以在衍射图片中显示模拟结果。若需要导出结果，可以点击按钮“导出结果”"]},{q:"计算程序是免费使用吗？",a:["本程序目前是免费提供给所有人使用的，如果将来维护成本超出预算，可能会采取收费策略。"]},{q:"作者寄语",a:["相识即是缘分！","制样、测试和分析相关的问题，扫描底部二维码咨询我们。","中材为您的电镜测试保驾护航~~"]}],questionIndex:0,handscale:!1,exponentdata:"",tableDataIndex:1,squareisshow:!0,dataChose:!1,executed:!1,hklloading:!1,manualhide:!0}},methods:{convertToThreeIndex:function(t){var e=rt()(t,4),i=e[0],a=e[1],n=e[2];return[i-n,a-n,e[3]]},convertToFourIndex:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=rt()(t,3),a=i[0],n=i[1],o=i[2],s=(2*a-n)/3,r=(2*n-a)/3,l=-(s+r),c=o;return!e||s%1==0&&r%1==0&&l%1==0&&c%1==0||(l=-((s=(2*a*3-3*n)/3)+(r=(2*n*3-3*a)/3)),c=3*o),[s,r,l,c]},calExponentSix:function(){function t(t,e,i){var a=[t[i],t[e]];t[e]=a[0],t[i]=a[1]}this.showExponentThree=!this.showExponentThree,this.resultData.forEach(function(e){t(e,"hkl1","hkil1"),t(e,"hkl2","hkil2"),t(e,"zone","uvtw")})},findOptionName:function(t,e){for(var i="",a=0,n=t.length;a<n;a++)if(t[a].value===e){i=t[a].name;break}return i},addToList:function(t){console.log("--addToList--"),console.log(this.crystal);var e=this.crystal.phase;console.log(this.options1,this.crystal.type);var i=this.findOptionName(this.options1,this.crystal.type),a=this.findOptionName(this.options2,this.crystal.center_type);console.log(this.crystal);var n={phase:e,typeName:i,centerTypeName:a,crystal:Object(mt.a)(this.crystal)};this.pdfList.push(n),this.$refs.analyzeTable.setCurrent(this.pdfList.length-1),(localStorage.getItem("pdfList")?JSON.parse(localStorage.getItem("pdfList")):[]).push(n),localStorage.setItem("pdfList",g()(this.pdfList)),localStorage.setItem("lastSelect",this.pdfList.length-1)},rmCurrentPdfRow:function(t){console.log("--rmCurrentPdfRow--"),this.pdfList.splice(t,1),this.phaseName1="undefined";var e=localStorage.getItem("pdfList")?JSON.parse(localStorage.getItem("pdfList")):[];e.splice(t,1),localStorage.setItem("pdfList",g()(e)),localStorage.setItem("lastSelect","")},renderCrystalArgs:function(t){console.log("--before renderCrystalArgs--"),console.log(this.crystal);var e=this.pdfList[t].crystal;this.crystal=Object(mt.a)(e),localStorage.setItem("lastSelect",t),console.log("--after renderCrystalArgs--"),console.log(this.crystal)},resetSquare:function(t){console.log("--resetSquare--"),this.currentPoint=t.currentPoint,this.square=this.resultData=[],console.log(this.currentPoint),this.currentPoints_new=[]},resthide:function(t){this.manualhide=t},handlescle:function(){this.handscale=!1,this.manualhide=!1,this.$refs.drawbox.$el.classList.add("custom-cursor");var t=this.$createElement;this.$notify({title:"提示",message:t("i",{style:"color: teal"},"请手动选择标尺的起点和终点,可通过鼠标滚轮放大画布")})},disTance:function(t,e,i,a){if(0===i&&0===a)return null;var n=i-t,o=a-e;return Math.sqrt(n*n+o*o).toFixed(0)},computedresult:function(t,e,i){return 1/(t/e*i)},startnumber:function(){var t=this.step4.d1_a.split(","),e=this.step4.d2_a.split(","),i=[parseFloat(this.disTance(this.center.x,this.center.y,t[0],t[1])),parseFloat(this.disTance(this.center.x,this.center.y,e[0],e[1]))];if(this.scale.scale>20)this.$confirm("信息可能输入有误，请联系工作人员或仔细检查标尺长度","提示",{type:"warning",showCancelButton:!1});else if(i[0]<this.step4.dp1&&i[1]<this.step4.dp2){this.$confirm('允许误差可能输入有误，请同时减小衍射点"A"和"B"的允许误差',"提示",{type:"warning",showCancelButton:!1})}else if(i[0]<this.step4.dp1||i[1]<this.step4.dp2){var a="";i[0]<this.step4.dp1&&(a+='请减小衍射点"A"的允许误差'),i[1]<this.step4.dp2&&(a+='请减小衍射点"B"的允许误差'),this.$confirm("允许误差可能输入有误，"+a,"提示",{type:"warning",showCancelButton:!1})}else this.start()},listRow:function(){1!=this.tableDataIndex?this.tableDataIndex=1:this.tableDataIndex=this.resultData.length},start:function(){var t=this;console.log("--开始分析--");var e=[],i=this.step4.d1_a.split(","),a=this.step4.d2_a.split(",");e.push({x:i[0],y:i[1],r:this.step4.dp1},{x:a[0],y:a[1],r:this.step4.dp2});var n=Object(mt.a)(this.crystal),o={crystal:ot()({},n),scale:ot()({},this.scale),center:ot()({},this.center),diff_points:e,error_angle:this.step4.error_angle},s=[this.disTance(this.center.x,this.center.y,e[0].x,e[0].y),this.disTance(this.center.x,this.center.y,e[1].x,e[1].y)],r=[10*this.computedresult(this.scale.scale,this.scale.pixels,s[0]),10*this.computedresult(this.scale.scale,this.scale.pixels,s[1])];console.log("发送数据如下：");var l=function t(e){for(var i in e)if("string"==typeof e[i]||"number"==typeof e[i]){if(!e[i])return i}else if(e[i]instanceof Object){var a=t(e[i]);if(a)return a}return""}(o);if(l)this.$message({type:"error",message:l+" 参数不能为空，请认真检查",center:!0});else{var c="";c=localStorage.getItem("u")?window.atob(JSON.parse(localStorage.getItem("u")).uuid):"tourist",this.loading=!0,Object(T.b)(c,o).then(function(e){t.loading=!1;var i=e.data,a=i.data,o=i.records,s=i.error_message,l=i.code;if(t.currentPoint=-1,a=a||o,200===l||"success"===l||"SUCCESS"===l){for(var c=[],d=0,h=a.length;d<h;d++){a[d].temp_diffPoints=a[d].diffPoints;var u=rt()(a[d].f1,3),f=u[0],p=u[1],m=u[2];a[d].hkil1=f+","+p+","+-(Number(f)+Number(p))+","+m;var v=rt()(a[d].f2,3),b=v[0],y=v[1],w=v[2];a[d].hkil2=b+","+y+","+-(Number(b)+Number(y))+","+w,a[d].uvtw=t.convertToFourIndex(a[d].uvw,!0).toString(),a[d].temp_diffPoints&&a[d].temp_diffPoints.forEach(function(t){var e=t.hkl.split(",");if(3===e.length){var i=rt()(e,3),a=i[0],n=i[1],o=i[2];t.hkil=a+","+n+","+-(Number(a)+Number(n))+","+o}}),c.push(a[d].diffPoints),delete a[d].diffPoints}t.resultData=a.map(function(t,e){return t.newname=n.phase,t.newProperty=r[0].toFixed(4),t.newProperty1=r[1].toFixed(4),t.hkl1="("+t.hkl1+")",t.hkl2="("+t.hkl2+")",t.newzone=t.zone,t.zone="["+t.zone+"]",t}),t.resultDataCopy=JSON.parse(g()(t.resultData)),t.square=c,t.squareisshow=!1,t.squareCopy=JSON.parse(g()(t.square)),t.canExport=!1}else t.$message({type:"warning",message:s,center:!0,duration:5e3});Object(T.d)("单晶标定")}).catch(function(e){throw t.loading=!1,console.log(e),t.$message({type:"error",message:"操作出错了",center:!0}),new Error(e)})}},test:function(){var t=i("BAOd").default.data,e=Object(mt.a)(t),a=[];e.map(function(t){a.push(t.diffPoints),delete t.diffPoints}),this.resultData=e,this.square=a,this.canExport=!1},saveResult:function(){var t=this,e=this.resultData.map(function(t){var e=t.d1,i=t.d2,a=t.newProperty,n=t.newname,o=t.ang12,s=t.newProperty1,r=(t.phase,at()(t,["d1","d2","newProperty","newname","ang12","newProperty1","phase"]));return ot()({"物相名称":n},r,{"OA理论值(埃)":e,"OB理论值(埃)":i,"∠AOB理论值":o,"OA测量值(埃)":a,"OB测量值(埃)":s})}),i=this.$refs.canvasRef.getCanvasImage64(),a="";a=localStorage.getItem("u")?window.atob(JSON.parse(localStorage.getItem("u")).uuid):"tourist",Object(pt.a)(a,{img:i,result:e}).then(function(e){200===e.status||t.$message.error("请求出错")}).catch(function(e){throw t.$message.error("请求出错"),new Error(e)}),Object(Q.a)(e,i.split(";base64,")[1])},exponent:function(){var t=this;this.hklloading=!0;var e="";e=localStorage.getItem("u")?window.atob(JSON.parse(localStorage.getItem("u")).uuid):"tourist";for(var i=function(i){var a={command:"orientchange",hkl1:t.resultData[i].newzone,hkl2:"1,0,0",uvw1:t.resultData[i].newzone,uvw2:"1,0,0"};Object(T.c)(e,a).then(function(n){for(var o=n.data.data.replace(/\[|\]/g,"").split(" ").map(function(t){return parseFloat(t)}).filter(function(t){return!isNaN(t)}),s=0;s<o.length;s++){if(Math.abs(o[s])<1&&Math.abs(o[s])>0){var r=a.hkl1.split(",").map(Number).map(function(t){return 3*t});a.hkl1=r.join(","),a.uvw1=r.join(","),Object(T.c)(e,a).then(function(e){var a=e.data.data.replace(/\./g,",");a.trim(),t.resultData[i].zone=a.slice(0,-2)+"]",i==t.resultData.length-1&&(t.hklloading=!1)});break}Object(T.c)(e,a).then(function(e){var a=e.data.data.replace(/\./g,",");a.trim(),t.resultData[i].zone=a.slice(0,-2)+"]",i==t.resultData.length-1&&(t.hklloading=!1)}),console.log("error")}t.exponentdata=n.data.data});var n=t.square[i];console.log(n,"transformArr");var o=n.map(function(t){var e=t.hkl.split(",").map(Number),i=rt()(e,3),a=i[0],n=i[1];return""+a+","+(""+n)+","+-(a+n)+","+(""+i[2])});t.square[i]=t.square[i].map(function(t,e){return t.hkl=o[e],t});var s=t.step4.d1_a.split(","),r=t.step4.d2_a.split(","),l=t.square[i].findIndex(function(t){return t.position.x==Number(s[0])}),c=t.square[i].findIndex(function(t){return t.position.x==Number(r[0])});t.resultData[i].hkl1=t.square[i][l].hkl,t.resultData[i].hkl2=t.square[i][c].hkl},a=0;a<this.resultData.length;a++)i(a);this.dataChose=!0},resuleBack:function(){for(var t=0;t<this.resultDataCopy.length;t++)this.resultData[t].hkl1=this.resultDataCopy[t].hkl1,this.resultData[t].hkl2=this.resultDataCopy[t].hkl2,this.resultData[t].zone=this.resultDataCopy[t].zone,this.square[t]=JSON.parse(g()(this.squareCopy[t]));this.dataChose=!1},resuleChoose:function(){this.dataChose?this.resuleBack():this.exponent()}},created:function(){var t=localStorage.getItem("pdfList")?JSON.parse(localStorage.getItem("pdfList")):[],e=Number(localStorage.getItem("lastSelect"));if(this.pdfList=t,e&&e>=0){var i=t[e].crystal;this.crystal=i}},mounted:function(){this.questions=this.questions.map(function(t,e){return ot()({},t,{showDetail:!1,pid:"itemPId"+e})}),this.canExport=this.resultData.length<=0;var t=Number(localStorage.getItem("lastSelect"));t&&t>=0&&this.$refs.analyzeTable.setCurrent(t)}},Zt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"analyze"},[i("el-row",{staticClass:"container"},[i("el-col",{staticClass:"block1"},[i("el-row",{staticClass:"col",staticStyle:{"text-align":"right"}},[i("el-checkbox",{attrs:{label:"显示提示"},model:{value:t.newplayer,callback:function(e){t.newplayer=e},expression:"newplayer"}})],1),t._v(" "),i("el-row",{staticClass:"col"},[i("analyze-title",{attrs:{title:"step0",span:"在右侧选择衍射图片"}})],1),t._v(" "),i("el-row",{staticClass:"col"},[i("analyze-title",{attrs:{title:"step1",span:"点击透射斑位置"}}),t._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:t.newplayer,expression:"newplayer"}],staticClass:"label"},[i("el-col",{attrs:{span:1}},[t._v("*")]),t._v(" "),i("el-col",{attrs:{span:23}},[t._v("在图片中第一次单击，将创建透射斑; 支持鼠标拖动、键盘方向移动、手动输入更改。单位：pixels\n            ")])],1),t._v(" "),i("el-row",{staticClass:"type"},[i("analyze-step3",{attrs:{step3:t.center}})],1)],1),t._v(" "),i("el-row",{staticClass:"col"},[i("analyze-title",{attrs:{title:"step2",span:"点击两个低指衍射斑位置"}}),t._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:t.newplayer,expression:"newplayer"}],staticClass:"label"},[i("el-col",{attrs:{span:1}},[t._v("*")]),t._v(" "),i("el-col",{attrs:{span:23}},[t._v("在图片中第二、三次单击，将依次创建两个衍射斑点;\n              支持鼠标拖动、键盘方向移动、手动输入更改。允许误差需要手动输入更改。单位：Pixels\n            ")])],1),t._v(" "),i("el-row",{staticClass:"type"},[i("analyze-step4",{attrs:{step4:t.step4}})],1),t._v(" "),i("el-row",{staticClass:"label"},[i("el-col",{attrs:{span:1}},[t._v("*")]),t._v(" "),i("el-col",{attrs:{span:23}},[t._v("\n              计算原理：利用透射斑+两个衍射斑，构建平行四边形◇，根据两个边长d1,d2及其夹角Ang12，匹配衍射指数。\n            ")])],1)],1),t._v(" "),i("el-row",{staticClass:"col"},[i("analyze-title",{attrs:{title:"step3",span:"点击标尺的中间位置"}}),t._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:t.newplayer,expression:"newplayer"}],staticClass:"label"},[i("el-col",{attrs:{span:1}},[t._v("*")]),t._v(" "),i("el-col",{attrs:{span:23}},[t._v("\n              自动识别在图片的标尺▄▄中间, 点击\n              "),i("kbd",[t._v(t._s(this.isMac?"Option+鼠标左键":"Crtl+鼠标左键"))]),t._v(", 程序自动识别标尺的像素长度。自动识别功能只支持纯黑色或白色的矩形标尺。\n            ")]),t._v(" "),i("el-col",{attrs:{span:1}},[t._v("*")]),t._v(" "),i("el-col",{attrs:{span:23}},[t._v("\n              手动识别可通过点击下方手动识别按钮实现手动识别像素长度,点击图标的标尺起点和终点,可通过鼠标滚轮对画布进行放大缩小更精确获取长度\n            ")])],1),t._v(" "),i("el-row",{staticClass:"type"},[i("analyze-step2",{attrs:{step2:t.scale}})],1),t._v(" "),i("el-row",{staticClass:"label"},[i("el-col",{attrs:{span:1}},[t._v("*")]),t._v(" "),i("el-col",{staticStyle:{color:"red"},attrs:{span:15}},[t._v("手动输入标尺的实际长度↗↗↗")]),t._v(" "),i("el-col",{attrs:{span:8}},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"手动选择标尺更精准",placement:"top-start"}},[t._e()],1)],1)],1)],1),t._v(" "),i("el-row",{staticClass:"col"},[i("el-row",{staticClass:"step1"},[i("analyze-title",{attrs:{title:"step4",span:"设置晶体结构参数"}}),t._v(" "),i("el-row",{staticClass:"type"},[i("analyze-step1",{attrs:{step1:t.crystal,options1:t.options1},on:{"update:step1":function(e){t.crystal=e}}})],1),t._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:t.newplayer,expression:"newplayer"}],staticClass:"label"},[i("el-col",{attrs:{span:1}},[t._v("*")]),t._v(" "),i("el-col",{attrs:{span:23}},[t._v("将参数加入列表区，方便后续调用")])],1),t._v(" "),i("el-row",{staticClass:"label"},[i("el-col",{attrs:{span:1}},[t._v("*")]),t._v(" "),i("el-col",{attrs:{span:23}},[t._v("目前暂只支持本地存储")])],1),t._v(" "),i("el-row",{staticClass:"label"},[i("el-col",{attrs:{span:1}},[t._v("*")]),t._v(" "),i("el-col",{attrs:{span:23}},[t._v("由于多次衍射,密排六方的斑点一般用简单六方标定")])],1)],1),t._v(" "),i("analyze-args",{ref:"analyzeTable",attrs:{pdfList:t.pdfList},on:{addToList:t.addToList,renderCrystalArgs:t.renderCrystalArgs,rmCurrentPdfRow:t.rmCurrentPdfRow}})],1)],1),t._v(" "),i("el-col",{staticClass:"block2",style:{width:t.manualhide?"840px":"1200px"}},[i("el-row",[i("Test",{ref:"canvasRef",attrs:{x:t.center.x,y:t.center.y,d1:t.step4.d1_a,d2:t.step4.d2_a,dp1:t.step4.dp1,dp2:t.step4.dp2,upload:t.upload,pixelLen:t.scale.pixels,realLen:t.scale.scale,canvaslist:t.step4.canvasarray,manualhide:t.manualhide,currentPoints:t.currentPoints_new,handscale:t.handscale,zone:t.currentPoint>=0?t.resultData[t.currentPoint].zone:"","show-exponent-three":t.showExponentThree},on:{"update:x":function(e){return t.$set(t.center,"x",e)},"update:y":function(e){return t.$set(t.center,"y",e)},"update:d1":function(e){return t.$set(t.step4,"d1_a",e)},"update:d2":function(e){return t.$set(t.step4,"d2_a",e)},"update:dp1":function(e){return t.$set(t.step4,"dp1",e)},"update:dp2":function(e){return t.$set(t.step4,"dp2",e)},"update:upload":function(e){t.upload=e},"update:pixelLen":function(e){return t.$set(t.scale,"pixels",e)},"update:pixel-len":function(e){return t.$set(t.scale,"pixels",e)},"update:realLen":function(e){return t.$set(t.scale,"scale",e)},"update:real-len":function(e){return t.$set(t.scale,"scale",e)},"update:canvaslist":function(e){return t.$set(t.step4,"canvasarray",e)},"update:handscale":function(e){t.handscale=e},resetSquare:t.resetSquare}})],1),t._v(" "),i("el-row",{staticStyle:{border:"1px dotted #aaa",width:"1240px","z-index":"99","background-color":"rgb(243 243 243)"}},[i("el-col",{attrs:{span:5}},[i("el-row",{staticClass:"operation"},[i("el-row",{staticStyle:{"margin-bottom":"5px"}},[t._e(),t._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",disabled:t.squareisshow},on:{click:function(e){return t.calExponentSix()}}},[t._v("\n                  "+t._s(t.showExponentThree?"显示六方指数":"显示三指数")+"\n                ")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",disabled:t.squareisshow},on:{click:t.listRow}},[t._v("\n                  "+t._s(1===this.tableDataIndex?"显示更多数据":"收起更多数据")+"\n                ")])],1),t._v(" "),i("el-row",[i("el-button",{staticClass:"btn-analyze",attrs:{loading:t.loading},on:{click:t.startnumber}},[i("span",[t._v("STEP 5")]),t._v(" "),i("i",{staticClass:"icon icon-analyze"}),t._v(" "),i("span",[t._v("开始分析")])])],1),t._v(" "),i("el-row",[i("el-button",{staticClass:"btn-download",attrs:{disabled:t.resultData.length<=0},on:{click:function(e){return t.saveResult()}}},[i("span",[t._v("STEP 6")]),t._v(" "),i("i",{staticClass:"icon icon-download"}),t._v(" "),i("span",[t._v("导出结果")])])],1),t._v(" "),t.upload?t._e():i("div",{staticClass:"disable"})],1)],1),t._v(" "),i("el-col",{attrs:{span:19}},[i("el-row",[i("analyze-result",{attrs:{tableData:t.resultData,tbindex:t.tableDataIndex,"show-exponent-three":t.showExponentThree,currentPoint:t.currentPoint},on:{"update:currentPoint":function(e){t.currentPoint=e},"update:current-point":function(e){t.currentPoint=e},currentRowIndexChange:function(e){t.currentPoints_new=t.resultData[e].temp_diffPoints,t.zoneText_new=t.resultData[e].zone}}},[t._v("\n                >\n              ")])],1)],1)],1)],1),t._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:t.manualhide,expression:"manualhide"}],staticClass:"block3",attrs:{id:"questions"}},[i("mQuestions",{attrs:{questions:t.questions},on:{"update:questions":function(e){t.questions=e}}})],1)],1)],1)},staticRenderFns:[]};var Ht=i("VU/8")(Vt,Zt,!1,function(t){i("oqm/")},"data-v-815da010",null).exports,Qt={components:{"analyze-title":dt,"analyze-step1":yt,"analyze-args":Ft,mQuestions:Ut},data:function(){return{explainVisible:!1,pdfList:[],crystal:{phase:"示例物相",center_type:"P",type:"Cubic",a:"1",b:"1",c:"1",alpha:"90",beta:"90",gamma:"90"},loading:!1,btn_list:[{name:"计算面间距",msg:"计算晶面指数对应的面间距。单位：埃米。",hkl:1,uvw:0,comm:"facespacing",crystalshow:!0},{name:"计算晶向长度",msg:"计算晶向指数对应的晶向长度。单位：埃米。",hkl:0,uvw:1,comm:"orientlength",crystalshow:!0},{name:"计算晶面夹角",msg:"计算两个晶面指数之间的夹角。单位：角度。",hkl:2,uvw:0,comm:"faceangle",crystalshow:!0},{name:"计算晶向夹角",msg:"计算两个晶向指数之间的夹角。角度。",hkl:0,uvw:2,comm:"orientangle",crystalshow:!0},{name:"计算等效晶面",msg:"计算晶面指数的等效晶面（晶面族）。",hkl:1,uvw:0,comm:"equalface",crystalshow:!0},{name:"计算等效晶向",msg:"计算晶向指数的等效晶向（晶向族）。",hkl:0,uvw:1,comm:"equalorient",crystalshow:!0},{name:"六方晶面指数变换",msg:"六方晶系，三指数和四指数互换（晶面）。",hkl:1,uvw:0,comm:"facechange",crystalshow:!1},{name:"六方晶向指数变换",msg:"六方晶系，三指数和四指数互换（晶向）。",hkl:0,uvw:1,comm:"orientchange",crystalshow:!1},{name:"计算晶带轴",msg:"根据两个晶面计算晶带轴，即它们同时包含的晶向。",hkl:2,uvw:0,comm:"zone",crystalshow:!1}],btn_index:0,hkl1:"1,0,0",hkl2:"1,0,0",uvw1:"1,0,0",uvw2:"1,0,0",result:"",questions:[{q:"对晶体结构参数的解释",a:["晶体结构参数，包括所属晶系、点阵类型、晶胞的特征值。","晶系，指7种布拉菲晶系。","点阵类型，除了常见的有心点阵以外，还加入了密排六方、R心六方等。"]},{q:"计算等效晶面，需要设置晶体结构吗？",a:["需要。因为等效晶面本质上是晶体对称性问题，而不同晶系的对称性是不同的。"]},{q:"六方指数变换是什么意思？",a:["六方晶系，有三指数和四指数两种表示方法。","输入三指数，可变换得到四指数表示。","输入四指数，可变换得到三指数表示。"]},{q:"六方指数变换，需要设置晶体结构吗？",a:["不需要。"]},{q:"程序声明",a:["本程序研发目的是辅助用户进行基础的数据分析，受能力和精力所限，不可能考虑所有可能出现的情况；","本程序产生或展示的内容仅供参考，务必严格确认后再进行引用或发表；","对应直接或间接因本程序引起的后果，本站点及单位不承担任何责任；","由于研究对象和研究目的具有客观复杂性，我们另提供人工分析服务；","严禁对本程序进行逆向分析和破解等攻击破坏行为，保留追责权利；","本程序将持续更新和改进，恕不另行通知，请及时备份和保存数据；","若使用，即代表同意上述观点。本站点及单位具有最终解释权。","欢迎大家提出任何意见或建议~~","Email: test@zcjce.com"]},{q:"作者寄语",a:["相识即是缘分！","制样、测试和分析相关的问题，扫描底部二维码咨询我们。","中材为您的电镜测试保驾护航~~"]}]}},methods:{findOptionName:function(t,e){for(var i="",a=0,n=t.length;a<n;a++)if(t[a].value===e){i=t[a].name;break}return i},addToList:function(t){console.log("--addToList--"),console.log(this.crystal);var e=this.crystal.phase,i=this.findOptionName(this.options1,this.crystal.type),a=this.findOptionName(this.options2,this.crystal.center_type);console.log({phase:e,typeName:i,centerTypeName:a});var n={phase:e,typeName:i,centerTypeName:a,crystal:Object(mt.a)(this.crystal)};this.pdfList.push(n),this.$refs.analyzeTable.setCurrent(this.pdfList.length-1),(localStorage.getItem("pdfList")?JSON.parse(localStorage.getItem("pdfList")):[]).push(n),localStorage.setItem("pdfList",g()(this.pdfList)),localStorage.setItem("lastSelect",this.pdfList.length-1)},rmCurrentPdfRow:function(t){console.log("--rmCurrentPdfRow--"),this.pdfList.splice(t,1);var e=localStorage.getItem("pdfList")?JSON.parse(localStorage.getItem("pdfList")):[];e.splice(t,1),localStorage.setItem("pdfList",g()(e)),localStorage.setItem("lastSelect","")},renderCrystalArgs:function(t){console.log("--before renderCrystalArgs--"),console.log(this.crystal),this.crystal=Object(mt.a)(this.pdfList[t].crystal),localStorage.setItem("lastSelect",t),console.log("--after renderCrystalArgs--"),console.log(this.crystal)},start:function(){var t=this;console.log("--开始分析--");var e=this,i=e.btn_list[e.btn_index],a=i.comm,n=e.hkl1,o=e.hkl2,s=e.uvw1,r=e.uvw2,l=Object(mt.a)(e.crystal);if(i.hkl>0&&!n)this.$message.error("请输入晶面指数");else if(i.hkl>1&&!o)this.$message.error("请输入第二个晶面指数");else if(i.uvw>0&&!s)this.$message.error("请输入晶向指数");else if(i.uvw>1&&!r)this.$message.error("请输入第二个晶向指数");else{var c={command:a,hkl1:n,hkl2:o,uvw1:s,uvw2:r,crystal:ot()({},l)};console.log("发送数据如下：");var d="";d=localStorage.getItem("u")?window.atob(JSON.parse(localStorage.getItem("u")).uuid):"tourist",e.loading=!0,Object(T.c)(d,c).then(function(i){if(e.loading=!1,console.log("返回数据如下："),200===i.data.code||"success"===i.data.code||"SUCCESS"===i.data.code)t.result=i.data.data;else{var a=i.data.error_message||"操作出错了";e.$message({type:"error",message:a,center:!0})}Object(T.d)("晶体学计算")}).catch(function(t){throw e.loading=!1,console.log(t),e.$message({type:"error",message:"操作出错了",center:!0}),new Error(t)})}}},created:function(){console.log("---commonAnalyze created---");var t=localStorage.getItem("pdfList")?JSON.parse(localStorage.getItem("pdfList")):[],e=Number(localStorage.getItem("lastSelect"));if(this.pdfList=t,e&&e>=0){var i=t[e].crystal;console.log(i),this.crystal=i}},mounted:function(){this.questions=this.questions.map(function(t,e){return ot()({},t,{showDetail:!1,pid:"itemPId"+e})});var t=Number(localStorage.getItem("lastSelect"));t&&t>=0&&this.$refs.analyzeTable.setCurrent(t)}},Xt={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"analyze"},[i("el-row",{staticClass:"container",staticStyle:{width:"1200px"}},[i("el-col",{staticClass:"block1"},[i("el-row",t._l(t.btn_list,function(e,a){return i("el-col",{key:"option"+a,staticClass:"radio"},[i("input",{attrs:{type:"radio",id:e.name},domProps:{checked:t.btn_index===a},on:{click:function(e){t.btn_index=a}}}),t._v(" "),i("label",{attrs:{for:"item.name"},on:{click:function(e){t.btn_index=a}}},[t._v(t._s(e.name))])])}),1),t._v(" "),i("el-row",{staticClass:"label",staticStyle:{margin:"20px","font-size":"16px"}},[i("el-col",{attrs:{span:2}},[t._v("说明:")]),t._v(" "),i("el-col",{attrs:{span:21}},[i("p",[t._v(t._s(t.btn_list[t.btn_index].msg))]),t._v(" "),i("p",[t._v("指数内用英文逗号(,)或者空格间隔")]),t._v(" "),i("p",[t._v("如 1,1,1 或 1 1 1")])])],1),t._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:t.btn_list[t.btn_index].hkl>0,expression:"btn_list[btn_index].hkl>0"}],staticClass:"input"},[i("label",[t._v("晶面指数"+t._s(t.btn_list[t.btn_index].hkl>1?1:""))]),t._v(" "),i("el-input",{attrs:{placeholder:"例如 1,1,1"},model:{value:t.hkl1,callback:function(e){t.hkl1=e},expression:"hkl1"}})],1),t._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:t.btn_list[t.btn_index].hkl>1,expression:"btn_list[btn_index].hkl>1"}],staticClass:"input"},[i("label",[t._v("晶面指数2")]),t._v(" "),i("el-input",{attrs:{placeholder:"例如 1,1,1"},model:{value:t.hkl2,callback:function(e){t.hkl2=e},expression:"hkl2"}})],1),t._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:t.btn_list[t.btn_index].uvw>0,expression:"btn_list[btn_index].uvw>0"}],staticClass:"input"},[i("label",[t._v("晶向指数"+t._s(t.btn_list[t.btn_index].uvw>1?1:""))]),t._v(" "),i("el-input",{attrs:{placeholder:"例如 1,1,1"},model:{value:t.uvw1,callback:function(e){t.uvw1=e},expression:"uvw1"}})],1),t._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:t.btn_list[t.btn_index].uvw>1,expression:"btn_list[btn_index].uvw>1"}],staticClass:"input"},[i("label",[t._v("晶向指数2")]),t._v(" "),i("el-input",{attrs:{placeholder:"例如 1,1,1"},model:{value:t.uvw2,callback:function(e){t.uvw2=e},expression:"uvw2"}})],1),t._v(" "),i("el-row",{staticClass:"operation"},[i("el-button",{staticClass:"btn-analyze",attrs:{loading:t.loading},on:{click:t.start}},[i("i",{staticClass:"icon icon-analyze"}),t._v(" "),i("span",[t._v("开始分析")])])],1),t._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:t.result,expression:"result"}],staticClass:"label",staticStyle:{margin:"10px","font-size":"16px",color:"black"}},[i("el-col",{attrs:{span:12}},[t._v("计算结果:")]),t._v(" "),i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.result,expression:"result"}],staticStyle:{color:"red",width:"100%",height:"120px","font-size":"16px"},attrs:{span:20},domProps:{value:t.result},on:{input:function(e){e.target.composing||(t.result=e.target.value)}}})],1)],1),t._v(" "),i("el-col",{staticClass:"block1"},[i("el-row",{staticClass:"col"},[i("el-row",{staticClass:"step1"},[i("analyze-title",{attrs:{title:"PDF卡片",span:"设置晶体结构参数"}}),t._v(" "),i("el-row",{staticClass:"type"},[i("analyze-step1",{staticStyle:{display:"inline"},attrs:{"show-hcp":!0,step1:t.crystal,options1:t.options1},on:{"update:step1":function(e){t.crystal=e}}})],1),t._v(" "),i("el-row",{staticClass:"label"},[i("el-col",{attrs:{span:1}},[t._v("*")]),t._v(" "),i("el-col",{attrs:{span:23}},[t._v("将参数加入列表区，方便后续调用")])],1),t._v(" "),i("el-row",{staticClass:"label"},[i("el-col",{attrs:{span:1}},[t._v("*")]),t._v(" "),i("el-col",{attrs:{span:23}},[t._v("目前暂只支持本地存储")])],1)],1),t._v(" "),i("analyze-args",{ref:"analyzeTable",attrs:{pdfList:t.pdfList},on:{addToList:t.addToList,renderCrystalArgs:t.renderCrystalArgs,rmCurrentPdfRow:t.rmCurrentPdfRow}})],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.btn_list[t.btn_index].crystalshow,expression:"!btn_list[btn_index].crystalshow"}],staticClass:"disable"})],1),t._v(" "),i("el-col",{staticClass:"block1",staticStyle:{border:"none"}},[i("mQuestions",{attrs:{questions:t.questions},on:{"update:questions":function(e){t.questions=e}}})],1)],1)],1)},staticRenderFns:[]};var Jt=i("VU/8")(Qt,Xt,!1,function(t){i("ilCB")},"data-v-73ec31aa",null).exports,Kt={data:function(){return{type:"fcc",radio1:1,radio1Img:[i("K7ah"),i("xanx"),i("YDTR"),i("LG4y")],radio2:1,radio2Img:[i("JrbI"),i("fNZA"),i("2l50"),i("t6G3")],radio3:1,radio3Img:[i("RTVb"),i("TJq8"),i("fcCt")]}}},te={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"analyze",staticStyle:{display:"flex","justify-content":"center","align-items":"center",gap:"160px"}},[t._m(0),t._v(" "),i("div",{staticClass:"analyze",staticStyle:{display:"flex","justify-content":"center","align-items":"center","flex-direction":"column"}},[i("h1",{staticStyle:{"margin-top":"40px"}},[t._v("位错分析(TEM双束条件)：确定FCC/BCC/HCP的伯氏矢量")]),t._v(" "),"fcc"===t.type?i("div",{staticStyle:{height:"580px",display:"flex","justify-content":"center","align-items":"center","flex-direction":"column",gap:"32px"}},[i("div",{staticClass:"title-radio"},[i("div",{staticStyle:{"margin-left":"8px","font-size":"18px","font-weight":"700",color:"#606266"}},[t._v("选择晶系:")]),t._v(" "),i("div",[i("el-radio",{attrs:{label:"fcc"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t._v("FCC消光表")]),t._v(" "),i("el-radio",{attrs:{label:"bcc"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t._v("BCC消光表")]),t._v(" "),i("el-radio",{attrs:{label:"hcp"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t._v("HCP消光表")])],1),t._v(" "),i("div")]),t._v(" "),i("div",{staticStyle:{display:"flex",width:"100%","justify-content":"space-between","align-items":"center"}},[i("div",{staticStyle:{"margin-left":"8px","font-size":"18px","font-weight":"700",color:"#606266"}},[t._v("选择带轴:")]),t._v(" "),i("div",[i("el-radio",{attrs:{label:1,border:""},model:{value:t.radio1,callback:function(e){t.radio1=e},expression:"radio1"}},[t._v("[ 0 0 1 ]")]),t._v(" "),i("el-radio",{attrs:{label:2,border:""},model:{value:t.radio1,callback:function(e){t.radio1=e},expression:"radio1"}},[t._v("[ 0 1 1 ]")]),t._v(" "),i("el-radio",{attrs:{label:3,border:""},model:{value:t.radio1,callback:function(e){t.radio1=e},expression:"radio1"}},[t._v("[ 1 1 1 ]")]),t._v(" "),i("el-radio",{attrs:{label:4,border:""},model:{value:t.radio1,callback:function(e){t.radio1=e},expression:"radio1"}},[t._v("[ -1 1 2 ]")])],1),t._v(" "),i("div")]),t._v(" "),i("div",[i("el-image",{staticStyle:{height:"350px",width:"990px"},attrs:{fit:"contain",src:t.radio1Img[t.radio1-1],"preview-src-list":t.radio1Img}})],1)]):"bcc"===t.type?i("div",{staticStyle:{height:"580px",display:"flex","justify-content":"center","align-items":"center","flex-direction":"column",gap:"32px"}},[i("div",{staticClass:"title-radio"},[i("div",{staticStyle:{"margin-left":"8px","font-size":"18px","font-weight":"700",color:"#606266"}},[t._v("选择晶系:")]),t._v(" "),i("div",[i("el-radio",{attrs:{label:"fcc"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t._v("FCC消光表")]),t._v(" "),i("el-radio",{attrs:{label:"bcc"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t._v("BCC消光表")]),t._v(" "),i("el-radio",{attrs:{label:"hcp"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t._v("HCP消光表")])],1),t._v(" "),i("div")]),t._v(" "),i("div",{staticStyle:{display:"flex",width:"100%","justify-content":"space-between","align-items":"center"}},[i("div",{staticStyle:{"margin-left":"8px","font-size":"18px","font-weight":"700",color:"#606266"}},[t._v("选择带轴:")]),t._v(" "),i("div",[i("el-radio",{attrs:{label:1,border:""},model:{value:t.radio2,callback:function(e){t.radio2=e},expression:"radio2"}},[t._v("[ 0 0 1 ]")]),t._v(" "),i("el-radio",{attrs:{label:2,border:""},model:{value:t.radio2,callback:function(e){t.radio2=e},expression:"radio2"}},[t._v("[ 0 1 1 ]")]),t._v(" "),i("el-radio",{attrs:{label:3,border:""},model:{value:t.radio2,callback:function(e){t.radio2=e},expression:"radio2"}},[t._v("[ -1 1 1 ]")]),t._v(" "),i("el-radio",{attrs:{label:4,border:""},model:{value:t.radio2,callback:function(e){t.radio2=e},expression:"radio2"}},[t._v("[ -1 1 2 ]")])],1),t._v(" "),i("div")]),t._v(" "),i("div",[i("el-image",{staticStyle:{height:"350px",width:"990px"},attrs:{fit:"contain",src:t.radio2Img[t.radio2-1],"preview-src-list":t.radio2Img}})],1)]):i("div",{staticStyle:{height:"580px",display:"flex","justify-content":"center","align-items":"center","flex-direction":"column",gap:"32px"}},[i("div",{staticClass:"title-radio"},[i("div",{staticStyle:{"margin-left":"8px","font-size":"18px","font-weight":"700",color:"#606266"}},[t._v("选择晶系:")]),t._v(" "),i("div",[i("el-radio",{attrs:{label:"fcc"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t._v("FCC消光表")]),t._v(" "),i("el-radio",{attrs:{label:"bcc"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t._v("BCC消光表")]),t._v(" "),i("el-radio",{attrs:{label:"hcp"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t._v("HCP消光表")])],1),t._v(" "),i("div")]),t._v(" "),i("div",{staticStyle:{display:"flex",width:"100%","justify-content":"space-between","align-items":"center"}},[i("div",{staticStyle:{"margin-left":"8px","font-size":"18px","font-weight":"700",color:"#606266"}},[t._v("选择带轴:")]),t._v(" "),i("div",[i("el-radio",{attrs:{label:1,border:""},model:{value:t.radio3,callback:function(e){t.radio3=e},expression:"radio3"}},[t._v("[ 0 0 0 1]")]),t._v(" "),i("el-radio",{attrs:{label:2,border:""},model:{value:t.radio3,callback:function(e){t.radio3=e},expression:"radio3"}},[t._v("[ 0 1 -1 0 ]")]),t._v(" "),i("el-radio",{attrs:{label:3,border:""},model:{value:t.radio3,callback:function(e){t.radio3=e},expression:"radio3"}},[t._v("[ 2 -1 -1 0 ]")])],1),t._v(" "),i("div")]),t._v(" "),i("div",[i("el-image",{staticStyle:{height:"350px",width:"990px"},attrs:{fit:"contain",src:t.radio3Img[t.radio3-1],"preview-src-list":t.radio3Img}})],1)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center","flex-direction":"column",gap:"16px"}},[e("div",{staticStyle:{height:"100px",width:"100px"}}),this._v(" "),e("img",{staticStyle:{height:"160px",width:"160px"},attrs:{src:i("jL7h")}}),this._v(" "),e("div",{staticStyle:{"font-size":"18px","line-height":"1.6"}},[this._v("\n      1. 如需位错类型拍摄与分析\n      "),e("br"),this._v("\n      2. 如需一对一教学、培训\n      "),e("br"),this._v("\n      请扫描二维码联系业务人员\n    ")])])}]};var ee=i("VU/8")(Kt,te,!1,function(t){i("yE5f")},"data-v-852f79cc",null).exports,ie=i("pFYg"),ae=i.n(ie),ne={props:{tableData:{type:Array}},data:function(){return{opt_list:[{name:"phase",selected:!0,label:"phase"},{name:"hkl",selected:!0,label:"hkl"},{name:"d",selected:!0,label:"d"},{name:"faceNoExt",selected:!0,label:"不消光"}],busy:!1}},watch:{},methods:{chooseItem:function(t){console.log("chooseItem: "+t)},tableRowClassName:function(t){var e=t.row,i=t.rowIndex;console.log("--Result.vue.tableRowClassName--"),e.index=i}},mounted:function(){console.log("DiffRings_Result mounted")}},oe={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("h1",[t._v("晶体分析报告-中材新材料研究院")]),t._v(" "),i("el-row",{staticClass:"result",staticStyle:{height:"100%"}},[i("el-table",{ref:"resultTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,border:"","row-class-name":t.tableRowClassName,height:"calc(100% - 50px)",stripe:""}},[t._l(t.opt_list,function(t,e){return i("el-table-column",{key:e,attrs:{index:e,prop:t.name,label:t.label,"class-name":t.selected?"":"hide",align:"center",width:"68px"}})}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否显示"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-checkbox",{attrs:{label:e.row.show?"是":"否"},on:{change:function(i){return t.chooseItem(e.row.index)}},model:{value:e.row.show,callback:function(i){t.$set(e.row,"show",i)},expression:"scope.row.show"}})]}}])})],2)],1)],1)},staticRenderFns:[]};var se=i("VU/8")(ne,oe,!1,function(t){i("zy7+")},"data-v-444de1bc",null).exports,re={props:{x:{type:String},y:{type:String},pixelLen:{type:String},realLen:{type:String},upload:{type:Boolean},ringsData:{type:Array}},data:function(){return{imgPercent:0,imgSize:{},containerBox:{},check1:!1,check2:!1,check3:!1,showPoint:!0,index:-1,flagPosition:[{y:0,x:0,r:25,show:!1,create:!1},{y:0,x:0,r:10,show:!1,create:!1},{y:0,x:0,r:10,show:!1,create:!1}],flagPosInImage:[{y:0,x:0,r:25},{y:0,x:0,r:10},{y:0,x:0,r:10}],scalePosition:[{x:0,y:0,r:2,show:!1},{x:0,y:0,r:2,show:!1}],scalePosInImage:[{x:0,y:0,r:2},{x:0,y:0,r:2}],ringsInPixel:[],showIndex:-1,isCtrl:!1,isAlt:!1,showBigImg:!1,myimage:new Image,tipmsg:"首选，选择一张 SAED图片 或 FFT图片，必须要带标尺哦~ 最好是矩形标尺"}},computed:{scaleLength:function(){return Math.abs(this.scalePosInImage[1].x-this.scalePosInImage[0].x+1).toFixed(2)},showCheckBox1:{get:function(){return this.flagPosition[0].show},set:function(t){this.check1=t}},showCheckBox2:{get:function(){return this.flagPosition[1].show&&this.flagPosition[2].show},set:function(t){this.check2=t}},showCheckBox3:{get:function(){return this.showPoint},set:function(t){this.check3=t}},showCheckBoxDisable1:function(){return!this.upload||!this.flagPosition[0].create},showCheckBoxDisable2:function(){return!this.upload||!this.flagPosition[1].create||!this.flagPosition[2].create}},watch:{index:function(t){0===t?this.tipmsg="选中了透射斑，上下左右键、鼠标拖拽，均可调整位置，鼠标滚轮可缩放哦~":1===t?this.tipmsg="选中了第1个衍射斑，上下左右键、鼠标拖拽，均可调整位置，半径代表误差棒哦~":2===t?this.tipmsg="选中了第2个衍射斑，上下左右键、鼠标拖拽，均可调整位置，半径代表误差棒哦~":this.showIndex>2&&(this.tipmsg="有问题可以点击右侧的操作说明<br>")},x:function(t){this.flagPosInImage[0].x=parseFloat(t),this.flagPosition[0].x=this.flagPosInImage[0].x/this.imgPercent},y:function(t){this.flagPosInImage[0].y=parseFloat(t),this.flagPosition[0].y=this.flagPosInImage[0].y/this.imgPercent},ringsData:function(t){console.log("update: ringsData"),t&&t.length>0&&(this.scalePosition.map(function(t){t.show=!1}),this.flagPosition[0].show=!1),this.updateDiffRings()},pixelLen:function(){console.log("pixelLen"),this.updateDiffRings()},realLen:function(){console.log("realLen"),this.updateDiffRings()}},methods:{saveResult:function(t){var e=this;console.log("--saveResult--");var i,a="",n=this.$refs.bigimg,o=n.getBoundingClientRect();Nt()(n,{scale:2048/o.width,y:window.scrollY+o.top,backgroundColor:null,allowTaint:!0,useCORS:!0}).then((i=B()(L.a.mark(function i(n){var o,s;return L.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:a=n.toDataURL("image/png"),o="",o=localStorage.getItem("u")?window.atob(JSON.parse(localStorage.getItem("u")).uuid):"tourist",Object(pt.a)(o,{img:a,result:t}).then(function(t){200===t.status||e.$message.error("请求出错")}).catch(function(t){throw e.$message.error("请求出错"),new Error(t)}),s=a.split(";base64,")[1],Object(Q.a)(t,s);case 6:case"end":return i.stop()}},i,e)})),function(t){return i.apply(this,arguments)})).catch(function(t){throw e.$message.error("请求出错"),new Error(t)})},updateFlagPosition:function(){console.log("updateScalePosition");for(var t=0;t<this.flagPosition.length;t++)this.flagPosition[t].x=this.flagPosInImage[t].x/this.imgPercent,this.flagPosition[t].y=this.flagPosInImage[t].y/this.imgPercent,this.flagPosition[t].r=this.flagPosInImage[t].r/this.imgPercent},updateScalePosition:function(){console.log("updateScalePosition"),this.scalePosition.map(function(t){t.show=!0});for(var t=0;t<this.scalePosition.length;t++)this.scalePosition[t].x=this.scalePosInImage[t].x/this.imgPercent,this.scalePosition[t].y=this.scalePosInImage[t].y/this.imgPercent},updateDiffRings:function(){if(console.log("updateDiffRings"),this.ringsData&&this.ringsData.length>0){for(var t=this.imgPercent,e=[],i=0;i<this.ringsData.length;i++)e.push({d:10/this.ringsData[i].d/this.realLen*this.pixelLen/t});this.ringsInPixel=e}else this.ringsInPixel=[]},_reset:function(){for(var t in this.flagPosition=[{y:0,x:0,r:25,show:!1,create:!1},{y:0,x:0,r:10,show:!1,create:!1},{y:0,x:0,r:10,show:!1,create:!1}],this.flagPosInImage=[{y:0,x:0,r:25},{y:0,x:0,r:10},{y:0,x:0,r:10}],this.scalePosition=[{x:0,y:0,r:2,show:!1},{x:0,y:0,r:2,show:!1}],this.scalePosInImage=[{x:0,y:0,r:2},{x:0,y:0,r:2}],this.index=-1,this.showIndex=-1,this.imgPercent=0,this.containerPercent=0,this.ringsInPixel=[],this.$props)this.$props.hasOwnProperty(t)&&this.$emit("update:"+t,"");this.$emit("update:realLen","2")},clickFile:function(){this.$refs.file.click()},parseBase64:function(t){return new R.a(function(e,i){var a=null;if(t&&t.type.startsWith("image/")&&"image/tiff"===t.type){if("image/tiff"===t.type){var n=new FileReader;n.onload=function(t){var i=t.target.result;if(i instanceof ArrayBuffer)try{qt.a.initialize({TOTAL_MEMORY:973041e3});var n=new qt.a({buffer:i}).toCanvas();a=n.toDataURL("image/png"),e(a)}catch(t){e(null)}},n.readAsArrayBuffer(t)}}else e(null)})},uploadImg:function(t){var e=this;return B()(L.a.mark(function i(){var a,n,o,s;return L.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(a=e,n=new FileReader,0!==t.target.files.length){i.next=5;break}return e.$message.error("没有选中任何文件."),i.abrupt("return");case 5:if(o=t.target.files[0],s=null,!o||!o.type.startsWith("image/")||"image/tiff"!==o.type){i.next=14;break}return i.next=10,e.parseBase64(o);case 10:if(s=i.sent){i.next=14;break}return a.$message.error("某些tif文件不支持，请转换png等格式后上传"),i.abrupt("return");case 14:n.readAsDataURL(o),n.onload=function(t){a._reset(),a.$emit("update:upload",!0),a.$emit("resetSquare"),a.myimage.src=s||t.target.result,a.myimage.onload=function(){var t=e.$refs.org_canvas,i=t.getContext("2d",{willReadFrequently:!1}),n=a.myimage,o=n.width,s=n.height;t.width=o,t.height=s,i.drawImage(a.myimage,0,0,o,s),a.renderCanvas(!0,function(){var t=e.imgSize.width/2,i=e.imgSize.height/2,n=e.imgSize.width<e.imgSize.height?e.imgSize.width:e.imgSize.height;n/=100,a.flagPosInImage.map(function(e){e.x=t,e.y=i}),a.flagPosInImage[0].r=5*n,a.updateFlagPosition(),e.tipmsg="点击图片中透射斑的位置，将拾取透射斑"})},a.myimage.onerror=function(){a.$message.error("图片格式错误，请将图片转换png等格式后上传")}};case 16:case"end":return i.stop()}},i,e)}))()},renderCanvas:function(t,e){console.log("--- renderCanvas---");var i=this.$refs.canvas,a=this.$refs.draw,n=this.$refs.bigimg,o=i.getContext("2d"),s=this.myimage,r=s.width,l=s.height;this.imgSize={width:r,height:l};var c=window,d=c.innerWidth,h=c.innerHeight,u=1,f=0,g=0;if(console.log(t),t?(f=this.containerBox.width,g=this.containerBox.height):(f=d,g=h),console.log("dockerwidth: "+f),r/l<f/g?(u=g/l,this.imgPercent=l/g,this.containerPercent=parseFloat((g/l).toFixed(4))):(u=f/r,this.imgPercent=r/f,this.containerPercent=parseFloat((this.containerBox.width/r).toFixed(4))),r*=u,l*=u,t)n.style.left=((a.clientWidth-r)/2).toFixed(0)+"px",n.style.top=((a.clientHeight-l)/2).toFixed(0)+"px",n.style.width=r.toFixed(0)+"px",n.style.height=l.toFixed(0)+"px",i.width=r,i.height=l,o.drawImage(this.myimage,0,0,r,l);else{n.style.left="0px",n.style.top="0px",n.style.width=r.toFixed(0)+"px",n.style.height=l.toFixed(0)+"px",i.width=r,i.height=l,o.drawImage(this.myimage,0,0,r,l);o.fillStyle="white",o.rect(0,0,150,30),o.fill(),o.fillStyle="black",o.font='16px "Microsoft YaHei"',o.textBaseline="middle",o.textAlign="center",o.fillText("按ESC退出全屏",75,15)}this.updateFlagPosition(),this.updateScalePosition(),this.updateDiffRings(),e&&(console.log("success"),e())},handleCanvasClick_bak:function(t){console.log("--- handleCanvasClick ---"),this.index=-1,console.log(this.ringsData),console.log(ae()(this.ringsData));var e=this.$refs.canvas.getContext("2d"),i=t.layerX,a=t.layerY,n=[[0,a],[0,a]];if(this.isCtrl){if(this.isCtrl){var o=e.getImageData(i,a,1,1).data;if(o[0]<50&&o[1]<50&&o[2]<50){console.log("黑色标尺");for(var s=i;s>=0;s--){var r=e.getImageData(s,a,1,1).data;if(r[0]>50&&r[1]>50&&r[2]>50){n[0]=[s+1,a];break}}for(var l=i,c=this.imgSize.width/this.imgPercent;l<=c;l++){var d=e.getImageData(l,a,1,1).data;if(d[0]>50&&d[1]>50&&d[2]>50){n[1]=[l,a];break}}}else{if(!(o[0]>200&&o[1]>200&&o[2]>200))return void(this.tipmsg="不能识别图中的标尺，请再点击，或手动输入标尺长度");console.log("白色标尺");for(var h=i;h>=0;h--){var u=e.getImageData(h,a,1,1).data;if(u[0]<200&&u[1]<200&&u[2]<200){n[0]=[h+1,a];break}}for(var f=i,g=this.imgSize.width/this.imgPercent;f<=g;f++){var p=e.getImageData(f,a,1,1).data;if(p[0]<200&&p[1]<200&&p[2]<200){n[1]=[f,a];break}}}this.scalePosition[0].x=n[0][0],this.scalePosition[0].y=n[0][1],this.scalePosition[0].show=!0,this.scalePosition[1].x=n[1][0],this.scalePosition[1].y=n[1][1],this.scalePosition[1].show=!0,this.scalePosInImage[0].x=this.scalePosition[0].x*this.imgPercent,this.scalePosInImage[0].y=this.scalePosition[0].y*this.imgPercent,this.scalePosInImage[1].x=this.scalePosition[1].x*this.imgPercent,this.scalePosInImage[1].y=this.scalePosition[1].y*this.imgPercent,this.$emit("update:pixelLen",this.scaleLength),this.tipmsg="标尺的实际长度需要手动输入"}}else this.create(t)},handleCanvasClick:function(t){console.log("--- handleCanvasClick ---"),this.index=-1;var e=this.$refs.org_canvas.getContext("2d",{willReadFrequently:!1}),i=t.layerX,a=t.layerY;if(this.isCtrl){if(this.isCtrl){var n=Math.round(i*this.imgPercent),o=Math.round(a*this.imgPercent),s=this.imgSize,r=s.width,l=s.height,c=void 0,d=void 0,h=Math.round(l/100);h<5&&(h=5),o-=h;var u=e.getImageData(n,o,1,2*h+1);c=Array(u.height);for(var f=Array(u.height),g=0;g<u.height;g++)c[g]=u.data[4*g];console.log("yy_test_range",h),console.log("height",l),console.log("red_arr",c),f[0]=0;for(var p={count:0,i:0},m=1;m<u.height;m++)if(c[m]==c[m-1]){var v=f[m-1]+1;f[m]=v,v>p.count&&(p={count:v,i:m})}else f[m]=0;p.count>3?(o=p.i-Math.round(p.count/2)+o,a=Math.round(o/this.imgPercent)):(o+=h,console.log("Best yy value is not found."));var b=e.getImageData(0,o,r,1).data;c=Array(r),d=Array(r);for(var y=0,w=0,x=r,C=0;C<r;C++){var k=b[4*C];c[C]=k,k>y&&(y=k)}for(var _=y/2,S=0;S<r;S++)d[S]=c[S]>_;var P=d[n];console.log(P);for(var I=n;I>=0;I--)if(d[I]!=P){w=I+1;break}for(var A=n;A<d.length;A++)if(d[A]!=P){x=A-1;break}this.scalePosInImage[0].x=w,this.scalePosInImage[0].y=o,this.scalePosInImage[1].x=x,this.scalePosInImage[1].y=o,this.scalePosition[0].x=w/this.imgPercent,this.scalePosition[0].y=a,this.scalePosition[0].show=!0,this.scalePosition[1].x=x/this.imgPercent,this.scalePosition[1].y=a,this.scalePosition[1].show=!0,console.log(this.scalePosition[0].x,this.scalePosition[1].x),this.$emit("update:pixelLen",this.scaleLength),this.tipmsg="标尺的实际长度需要手动输入"}}else this.create(t)},create:function(t){console.log("--- create flag ---");if(!this.isAlt&&!this.isCtrl&&this.upload){if(this.showIndex++,this.showIndex>0)this.index=-1;else{var e=t.offsetX,i=t.offsetY;this.updateFlagCenterText(this.showIndex,e*this.imgPercent,i*this.imgPercent),this.flagPosition[this.showIndex].show=!0,this.flagPosition[this.showIndex].create=!0,this.index=0===this.showIndex?0:-1}0===this.showIndex?this.tipmsg="选中了透射斑，上下左右键、鼠标拖拽，均可调整位置，鼠标滚轮可缩放哦~<br>再次点击，将拾取第1个衍射斑坐标":this.tipmsg="有问题可以点击右侧的操作说明<br>"}},updateFlagCenterText:function(t,e,i){switch(parseInt(t)){case 0:this.$emit("update:x",e.toFixed(1)),this.$emit("update:y",i.toFixed(1))}},restore:function(){console.log("---restore---"),this.showBigImg=!1;var t=document.getElementsByTagName("body")[0];t.classList="",t.style.paddingRight=null,this.renderCanvas(!0)},magnify:function(){console.log("---magnify---")},move:function(t){var e=this;console.log("--- move ---");var i=t.target.dataset.index;if(i&&(i=parseInt(i))>=0){console.log(i);var a=t.clientX-this.flagPosition[i].x,n=t.clientY-this.flagPosition[i].y;document.onmousemove=function(t){var o=t.clientX-a,s=t.clientY-n;e.updateFlagCenterText(i,o*e.imgPercent,s*e.imgPercent)},document.onmouseup=function(t){document.onmousemove=null,document.onmouseup=null}}},flagScale:function(t,e){e=e*this.imgSize.width/100,t>=0&&0!==e&&(this.flagPosInImage[t].r=this.flagPosInImage[t].r+e,this.flagPosInImage[t].r<2&&this.flagPosInImage[t].r>-2&&(this.flagPosInImage[t].r=e>=0?2:-2),this.flagPosition[t].r=Math.abs(this.flagPosInImage[t].r/this.imgPercent))}},mounted:function(){var t=this,e=this;function i(){console.log("--onResize()--");var t=e.$refs.draw,i=t.clientHeight,a=t.clientWidth;e.containerBox={width:a,height:i},e.imgSize={width:a,height:i},e.upload&&e.renderCanvas(!0)}i(),window.onresize=i,document.addEventListener("click",function(){e.index=-1}),document.addEventListener("keydown",function(e){"Control"===e.key&&(t.isCtrl=!0)}),document.addEventListener("keyup",function(e){"Control"===e.key&&(t.isCtrl=!1)}),document.onkeydown=function(i){i=window.event||i;var a=e.index;if(a>=0){var n=0,o=0;switch(i.key){case"ArrowLeft":n=-1;break;case"ArrowRight":n=1;break;case"ArrowUp":o=-1;break;case"ArrowDown":o=1}t.updateFlagCenterText(a,t.flagPosInImage[a].x+n,t.flagPosInImage[a].y+o),t.$refs.s.select()}};var a=function(t){var i=void 0;if("wheelDelta"in(t=t||window.event))i=t.wheelDelta/120;else if("detail"in t)i=-t.detail/3;else{if(!("deltaY"in t))return void console.log(t);console.log("deltaY"),i=t.deltaY/120}0===e.index&&(e.flagScale(e.index,i),t.returnValue=!1)};void 0===document.onmousewheel?(console.log("DOMMouseScroll"),document.addEventListener("DOMMouseScroll",a,{passive:!1})):(console.log("wheel"),window.addEventListener("wheel",a,{passive:!1}))},beforeDestroy:function(){document.removeEventListener("click",function(){});var t=document.getElementsByTagName("body")[0];t.classList="",t.style.paddingRight=null,void 0===document.onmousewheel?document.removeEventListener("DOMMouseScroll",function(){}):document.removeEventListener("wheel",function(){})}},le={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"draw-docker"},[a("el-row",[a("div",{ref:"draw",staticClass:"draw-img"},[t.upload?t._e():a("img",{staticClass:"upload-img",attrs:{src:i("nrce")}}),t._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:!t.upload,expression:"!upload"}],staticClass:"cant-click",staticStyle:{display:"none"},nativeOn:{click:function(e){return e.stopPropagation(),t.clickFile(e)}}}),t._v(" "),a("el-row",{class:["shade",t.showBigImg?"click":""],nativeOn:{click:function(e){return t.restore(e)}}},[a("el-row",{ref:"imgbox"},[a("div",{ref:"bigimg",class:["bigimg-container",t.showBigImg?"translate":""],nativeOn:{click:function(t){t.stopPropagation()}}},[a("input",{ref:"s",staticStyle:{position:"absolute",width:"0",height:"0",opacity:"0",border:"none",padding:"0",margin:"0",display:"inline"},attrs:{type:"text",autocomplete:"off"}}),t._v(" "),a("canvas",{ref:"canvas",on:{click:function(e){return e.stopPropagation(),t.handleCanvasClick(e)}}}),t._v(" "),a("canvas",{ref:"org_canvas",staticStyle:{display:"none"}}),t._v(" "),t._l(t.ringsInPixel,function(e,i){return a("div",{directives:[{name:"show",rawName:"v-show",value:t.showPoint&&t.upload&&t.ringsData[i].show,expression:"showPoint && upload && ringsData[i].show"}],key:"calCircle"+i,staticClass:"flagCircle",style:[{left:t.flagPosition[0].x-t.ringsInPixel[i].d+"px"},{top:t.flagPosition[0].y-t.ringsInPixel[i].d+"px"},{width:2*t.ringsInPixel[i].d+"px"},{height:2*t.ringsInPixel[i].d+"px"}]},[a("span",[t._v(t._s(t.ringsData[i].hkl))])])}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.flagPosition[0].show,expression:"flagPosition[0].show"}],staticClass:"flag1",style:[{left:t.flagPosition[0].x-2*t.flagPosition[0].r+"px"},{top:t.flagPosition[0].y-2*t.flagPosition[0].r+"px"},{width:4*t.flagPosition[0].r+"px"},{height:4*t.flagPosition[0].r+"px"}],attrs:{"data-index":"0"},on:{click:function(e){e.stopPropagation(),t.index=0},mousedown:t.move}}),t._v(" "),a("div",{staticClass:"rect",style:[{left:t.flagPosition[0].x-2*t.flagPosition[0].r+"px"},{top:t.flagPosition[0].y-2*t.flagPosition[0].r+"px"},{width:4*t.flagPosition[0].r+"px"},{height:4*t.flagPosition[0].r+"px"},{display:t.flagPosition[0].show&&0===t.index?"block":"none"}]}),t._v(" "),t._l(t.flagPosition,function(e,i){return a("div",{key:i,ref:"flag"+(i+1),refInFor:!0,class:"flag"+(i+1),style:[{left:e.x-e.r+"px"},{top:e.y-e.r+"px"},{width:2*e.r+"px"},{height:2*e.r+"px"},{display:e.show?"block":"none"}],attrs:{"data-index":i},on:{click:function(e){e.stopPropagation(),t.index=i},mousedown:t.move}})}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.scalePosition[0].show&&t.realLen>0&&t.pixelLen>0,expression:"scalePosition[0].show && realLen > 0 && pixelLen > 0"}],staticClass:"rulerText",style:[{left:t.scalePosition[0].x+"px",top:t.scalePosition[0].y-20+"px",width:t.scalePosition[1].x-t.scalePosition[0].x-2+"px"}]},[a("span",[t._v(t._s(t.realLen)+" (1/nm)")])])],2)])],1),t._v(" "),t.showBigImg?t._e():a("el-row",{staticClass:"upload",nativeOn:{click:function(e){return e.stopPropagation(),t.clickFile(e)}}},[a("el-button",{staticClass:"a-btn-default",staticStyle:{align:"left",float:"left"},attrs:{icon:"el-icon-upload",size:"small"}},[t._v("选择衍射图片")]),t._v(" "),a("input",{ref:"file",attrs:{type:"file",accept:".png, .jpg, .jpeg, .bmp, .tiff , .tif",multiple:"1"},on:{change:t.uploadImg}})],1),t._v(" "),a("el-row",{staticClass:"operation"},[a("el-checkbox",{attrs:{label:"显示透射斑标记",disabled:t.showCheckBoxDisable1},on:{change:function(e){t.flagPosition[0].show=!t.flagPosition[0].show}},model:{value:t.showCheckBox1,callback:function(e){t.showCheckBox1=e},expression:"showCheckBox1"}}),t._v(" "),a("el-checkbox",{attrs:{label:"显示衍射斑点标记",disabled:t.showCheckBoxDisable2},on:{change:function(e){t.flagPosition[1].show=t.flagPosition[2].show=!t.flagPosition[1].show}},model:{value:t.showCheckBox2,callback:function(e){t.showCheckBox2=e},expression:"showCheckBox2"}}),t._v(" "),a("el-checkbox",{attrs:{label:"显示分析结果标记",disabled:t.ringsInPixel.length<=0},on:{change:function(e){t.showPoint=!t.showPoint}},model:{value:t.showCheckBox3,callback:function(e){t.showCheckBox3=e},expression:"showCheckBox3"}})],1)],1)])],1)},staticRenderFns:[]};var ce=i("VU/8")(re,le,!1,function(t){i("c9ur")},"data-v-5323b368",null).exports,de=(i("AzjG"),{components:{"analyze-title":dt,"analyze-step1":yt,"analyze-step2":Ct,"analyze-step3":St,"analyze-result":se,"analyze-args":Ft,"analyze-draw":ce,mQuestions:Ut},data:function(){return{activeStep:0,drawer:!1,resultData:[],resultDataCopy:[],square:[],explainVisible:!1,pdfList:[],crystal:{phase:"",center_type:"",type:"",a:"",b:"",c:"",alpha:"",beta:"",gamma:""},scale:{pixels:"",scale:"2"},center:{x:"",y:""},step4:{d1_a:"",d2_a:"",dp1:"10",dp2:"10",error_angle:10},upload:!1,loading:!1,infoShow:!0,questions:[{q:"如何选择SAED或FFT图片？",a:["点击“选择衍射图片”按钮，选择带标尺的图片, 支持扩展名.jpg, .png, .bmp等。","图片要带标尺，最好是矩形的标尺，例如DM软件自动生成的标尺。"]},{q:"如何选择透射斑？",a:["在图片区域中首次单击，将选择一个坐标位置，即计算使用的透射斑坐标， 并用同心辅助圆标记。"]},{q:"如何移动透射斑位置？",a:["选中透射斑标记后，可通过鼠标拖拽、键盘方向键、文本输入三种方式来调整其位置。","一般来说，鼠标拖拽适合粗调，键盘方向键适合微调，或者文本输入精确坐标值；请选择你最喜欢的方式。","选中透射斑标记后，通过“Ctrl+鼠标滚轮”的方式，可以将辅助标记放大或缩小。当对称的衍射斑点位于辅助圆上时，说明此时的透射斑位置是正确的。"]},{q:"如何设置图片的标尺？",a:["在图片的标尺▄▄中间, 点击组合键, 程序自动识别标尺的像素长度。目前自动识别功能只支持纯黑色或白色的矩形标尺。也可以手动输入标尺的像素长度。","组合键：Window系统: Ctrl+鼠标左键；Mac系统: Option+鼠标左键。","手动输入标尺的实际长度。"]},{q:"程序分析原理是怎样的？",a:["1. 程序根据所选物相的晶体结构参数，计算各个晶面间距及消光规律","2. 将计算出的晶面信息绘制在衍射图片上。","3. 将实际拍摄图片中的衍射环位置和绘制的晶面位置进行比对，根据比对结果的匹配程度，判断是否是所选的物相。"]},{q:"计算程序是免费使用吗？",a:["本程序目前是免费提供给所有人使用的，如果将来维护成本超出预算，可能会采取收费策略。"]},{q:"程序声明",a:["本程序研发目的是辅助用户进行基础的数据分析，受能力和精力所限，不可能考虑所有可能出现的情况；","本程序产生或展示的内容仅供参考，务必严格确认后再进行引用或发表；","对应直接或间接因本程序引起的后果，本站点及单位不承担任何责任；","由于研究对象和研究目的具有客观复杂性，我们另提供人工分析服务；","严禁对本程序进行逆向分析和破解等攻击破坏行为，保留追责权利；","本程序将持续更新和改进，恕不另行通知，请及时备份和保存数据；","若使用，即代表同意上述观点。本站点及单位具有最终解释权。","欢迎大家提出任何意见或建议~~","Email: test@zcjce.com"]},{q:"作者寄语",a:["相识即是缘分！","制样、测试和分析相关的问题，扫描底部二维码咨询我们。","中材为您的电镜测试保驾护航~~"]}],questionIndex:0,buttonChange:!0,selectedAll:!1}},methods:{cancelAllSelected:function(){var t=this;console.log(this.crystal),this.resultData.forEach(function(e,i){e.show=t.selectedAll}),this.selectedAll=!this.selectedAll},lastStep:function(){this.activeStep>0&&this.activeStep--},nextStep:function(){this.upload?this.activeStep<4&&this.activeStep++:this.$message({type:"warning",message:"请先上传衍射图片",center:!0})},findOptionName:function(t,e){for(var i="",a=0,n=t.length;a<n;a++)if(t[a].value===e){i=t[a].name;break}return i},addToList:function(t){console.log("--addToList--"),console.log(this.crystal);var e=this.crystal.phase,i=this.findOptionName(this.options1,this.crystal.type),a=this.findOptionName(this.options2,this.crystal.center_type);console.log(this.crystal);var n={phase:e,typeName:i,centerTypeName:a,crystal:Object(mt.a)(this.crystal)};this.pdfList.push(n),this.$refs.analyzeTable.setCurrent(this.pdfList.length-1),(localStorage.getItem("pdfList")?JSON.parse(localStorage.getItem("pdfList")):[]).push(n),localStorage.setItem("pdfList",g()(this.pdfList)),localStorage.setItem("lastSelect",this.pdfList.length-1)},rmCurrentPdfRow:function(t){console.log("--rmCurrentPdfRow--"),this.pdfList.splice(t,1),this.phaseName1="undefined";var e=localStorage.getItem("pdfList")?JSON.parse(localStorage.getItem("pdfList")):[];e.splice(t,1),localStorage.setItem("pdfList",g()(e)),localStorage.setItem("lastSelect","")},renderCrystalArgs:function(t){console.log("--before renderCrystalArgs--"),console.log(this.crystal);var e=this.pdfList[t].crystal;this.crystal=Object(mt.a)(e),localStorage.setItem("lastSelect",t),console.log("--after renderCrystalArgs--"),console.log(this.crystal)},resetSquare:function(){console.log("--resetSquare--"),this.square=this.selectedData=this.resultData=[]},start:function(){var t=this;console.log("--开始分析--");var e=Object(mt.a)(this.crystal),i={crystal:ot()({},e),scale:ot()({},this.scale),center:ot()({},this.center)};console.log("发送数据如下："),console.log(i);var a=function t(e){for(var i in e)if("string"==typeof e[i]||"number"==typeof e[i]){if(!e[i])return i}else if(e[i]instanceof Object){var a=t(e[i]);if(a)return a}return""}(i);if(a)this.$message({type:"error",message:a+" 参数不能为空，请认真检查",center:!0});else{console.log(ae()(e.a)),"string"==typeof e.a&&(i.crystal.a=parseFloat(e.a)),"string"==typeof e.b&&(i.crystal.b=parseFloat(e.b)),"string"==typeof e.c&&(i.crystal.c=parseFloat(e.c)),"string"==typeof e.alpha&&(i.crystal.alpha=parseFloat(e.alpha)),"string"==typeof e.beta&&(i.crystal.beta=parseFloat(e.beta)),"string"==typeof e.gamma&&(i.crystal.gamma=parseFloat(e.gamma));var n="";n=localStorage.getItem("u")?window.atob(JSON.parse(localStorage.getItem("u")).uuid):"tourist",this.loading=!0,Object(T.a)(n,{crystal:i.crystal}).then(function(e){t.loading=!1;var i=e.data,a=i.data,n=i.error_message,o=i.code;200===o||"success"===o||"SUCCESS"===o?(t.resultData=a,console.log(a),t.resultDataCopy=JSON.parse(g()(t.resultData))):t.$message({type:"warning",message:n,center:!0}),t.loading=!1,Object(T.d)("多晶标定")}).catch(function(e){t.loading=!1;var i={records:[{phase:"test",hkl:"1 0 1",d:4.43,show:!0,NoExtinct:"Yes"},{phase:"test",hkl:"0 0 2",d:3.41,show:!1,NoExtinct:"Yes"},{phase:"test",hkl:"1 0 2",d:2.939,show:!0,NoExtinct:"Yes"}],error_message:"",code:"SUCCESS"},a=i.records,n=i.error_message,o=i.code;throw 200===o||"success"===o||"SUCCESS"===o?t.resultData=a:t.$message({type:"warning",message:n,center:!0}),t.$message({type:"error",message:"操作出错了",center:!0}),new Error(e)})}},saveResult:function(){this.$refs.drawbox.saveResult(this.resultData)},exponent:function(){var t=this.resultData.map(function(t){var e=t.hkl.split(",").map(Number),i=rt()(e,3),a=i[0],n=i[1];return"("+(""+a)+","+(""+n)+","+-(n+a)+","+(""+i[2])+")"});this.resultData=this.resultData.map(function(e,i){return e.hkl=t[i],e}),this.buttonChange=!1,console.log(t),console.log(this.resultData,"www")},resuleBack:function(){this.resultData=JSON.parse(g()(this.resultDataCopy)),this.buttonChange=!0},resuleChoose:function(){this.buttonChange?this.exponent():this.resuleBack()}},created:function(){var t=localStorage.getItem("pdfList")?JSON.parse(localStorage.getItem("pdfList")):[],e=Number(localStorage.getItem("lastSelect"));if(this.pdfList=t,e&&e>=0){var i=t[e].crystal;this.crystal=i}},mounted:function(){this.questions=this.questions.map(function(t,e){return ot()({},t,{showDetail:!1,pid:"itemPId"+e})});var t=Number(localStorage.getItem("lastSelect"));t&&t>=0&&this.$refs.analyzeTable.setCurrent(t)}}),he={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"analyze"},[a("el-row",{staticClass:"container"},[a("el-row",{attrs:{gutter:20,type:"flex",align:"middle"}},[a("el-col",[a("div",{ref:"imageWrapper",staticClass:"img-block"},[a("analyze-draw",{ref:"drawbox",attrs:{x:t.center.x,y:t.center.y,upload:t.upload,pixelLen:t.scale.pixels,realLen:t.scale.scale,ringsData:t.resultData},on:{"update:x":function(e){return t.$set(t.center,"x",e)},"update:y":function(e){return t.$set(t.center,"y",e)},"update:upload":function(e){t.upload=e},"update:pixelLen":function(e){return t.$set(t.scale,"pixels",e)},"update:pixel-len":function(e){return t.$set(t.scale,"pixels",e)},"update:realLen":function(e){return t.$set(t.scale,"scale",e)},"update:real-len":function(e){return t.$set(t.scale,"scale",e)},"update:ringsData":function(e){t.resultData=e},"update:rings-data":function(e){t.resultData=e},resetSquare:t.resetSquare}})],1)]),t._v(" "),a("el-col",[a("el-row",[a("el-steps",{attrs:{active:t.activeStep}},[a("el-step",{attrs:{title:"步骤 1",description:"选择图片"}}),t._v(" "),a("el-step",{attrs:{title:"步骤 2",description:"设置透射斑"}}),t._v(" "),a("el-step",{attrs:{title:"步骤 3",description:"设置标尺"}}),t._v(" "),a("el-step",{attrs:{title:"步骤 4",description:"设置晶体参数"}}),t._v(" "),a("el-step",{attrs:{title:"步骤 5",description:"计算/模拟/导出"}})],1)],1),t._v(" "),a("el-row",{staticStyle:{height:"600px"},attrs:{type:"flex",justify:"center",align:"middle"}},[a("el-row",{directives:[{name:"show",rawName:"v-show",value:0==t.activeStep,expression:"activeStep==0"}],staticStyle:{width:"90%"}},[a("h2",{attrs:{align:"center"}},[t._v("多晶衍射环分析程序")]),a("br"),a("br"),t._v(" "),a("p",[t._v("*  点击左侧“选择衍射图片”按钮，打开衍射图片 或 FFT图片。")]),a("br"),t._v(" "),a("p",[t._v("*  支持扩展名.jpg, .png, .bmp等。")]),a("br"),t._v(" "),a("p",[t._v("*  图片要带标尺，最好是矩形的标尺，黑底白边或白底黑边的标尺，例如DM软件或GMS软件自动生成的标尺。")])]),t._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:1==t.activeStep,expression:"activeStep==1"}],staticClass:"col",staticStyle:{width:"90%"}},[a("el-row",[a("p",[t._v("*  在左侧图片中单击透射斑所在的位置，将创建透射斑标记。")]),a("br"),t._v(" "),a("p",[t._v("*  支持鼠标拖动、键盘方向移动、或者直接输入坐标值。")]),a("br"),t._v(" "),a("p",[t._v("*  选中透射斑标记后，可以用鼠标滚轮调节辅助圆的大小，当对称斑点都落在辅助圆上时，可以认为此时透射斑的位置是准确的。")]),a("br"),t._v(" "),a("p",[t._v("*  坐标值单位：Pixels。")]),a("br")]),t._v(" "),a("el-row",[a("analyze-step3",{attrs:{step3:t.center}})],1)],1),t._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:2==t.activeStep,expression:"activeStep==2"}],staticClass:"col",staticStyle:{width:"90%"}},[a("el-row",[a("p",[t._v("*  在图片的标尺 ▄▄ 中间, 点击\n                  "),a("kbd",[t._v(t._s(this.isMac?"Option+鼠标左键":"Crtl+鼠标左键"))]),t._v(", 程序自动识别标尺的像素长度。")]),a("br"),t._v(" "),a("p",[t._v("*  目前自动识别功能只支持纯黑色或白色的矩形标尺。")]),a("br"),t._v(" "),a("p",[t._v("*  也可以用其他软件测量标尺的像素长度后，手动输入下面的文本框中。")]),a("br"),t._v(" "),a("p",[t._v("*  目前，标尺的实际长度只能手动输入。倒易空间中的长度单位：1/nm。")]),a("br"),t._v(" "),a("analyze-step2",{attrs:{step2:t.scale}})],1),t._v(" "),a("el-row",[a("p",{staticStyle:{color:"red"}},[a("br"),t._v("*  手动输入标尺的实际长度 ↗↗↗")])])],1),t._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:3==t.activeStep,expression:"activeStep==3"}],staticClass:"col",staticStyle:{width:"90%"}},[a("el-row",{staticClass:"col"},[a("el-row",{staticClass:"type"},[a("analyze-step1",{attrs:{step1:t.crystal,options1:t.options1},on:{"update:step1":function(e){t.crystal=e}}})],1)],1),t._v(" "),a("analyze-args",{ref:"analyzeTable",attrs:{pdfList:t.pdfList},on:{addToList:t.addToList,renderCrystalArgs:t.renderCrystalArgs,rmCurrentPdfRow:t.rmCurrentPdfRow}}),t._v(" "),a("el-row",[a("p",[t._v("*  将参数加入列表区，方便后续调用。暂只支持本地存储。")]),a("br")])],1),t._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:4==t.activeStep,expression:"activeStep==4"}],staticClass:"col",staticStyle:{width:"90%"}},[a("analyze-result",{directives:[{name:"show",rawName:"v-show",value:4==t.activeStep,expression:"activeStep==4"}],ref:"resultTable",staticStyle:{height:"500px",width:"100%"},attrs:{tableData:t.resultData},on:{"update:tableData":function(e){t.resultData=e},"update:table-data":function(e){t.resultData=e}}}),t._v(" "),a("el-row",[a("p",[t._v("*  hkl: 晶面指数；d：晶面间距；")]),t._v(" "),a("p",[t._v("* 不消光：理论计算得到的消光规律；")]),t._v(" "),a("p",[t._v("* 是否显示：是否将晶面对应的衍射环绘制在左图中。")]),t._v(" "),a("p",[t._v("* 当衍射图片中的衍射环与理论情况一致时，证明标定正确。")])])],1)],1),t._v(" "),a("el-row",{attrs:{type:"flex",justify:"space-around",align:"bottom"}},[a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{disabled:0==t.activeStep},on:{click:t.lastStep}},[t._v(" 上一步 ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.activeStep<4,expression:"activeStep < 4"}],staticStyle:{"margin-top":"12px"},on:{click:t.nextStep}},[t._v(" 下一步 ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:4==t.activeStep,expression:"activeStep==4"}],staticStyle:{"margin-top":"12px"},attrs:{loading:t.loading},on:{click:t.start}},[t._v("开始计算")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:4==t.activeStep,expression:"activeStep==4"}],staticStyle:{"margin-top":"12px"},attrs:{loading:t.loading},on:{click:t.resuleChoose}},[t._v("显示六方指数")]),t._v(" "),4==t.activeStep&&"P"===t.crystal.center_type?a("el-button",{on:{click:t.cancelAllSelected}},[t._v(t._s(t.selectedAll?"全选":"取消全选"))]):t._e(),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:4==t.activeStep,expression:"activeStep==4"}],staticStyle:{"margin-top":"12px"},attrs:{loading:t.loading},on:{click:t.saveResult}},[t._v("导出结果")])],1)],1)],1),t._v(" "),a("el-row",{staticStyle:{width:"100%",height:"50px"}})],1),t._v(" "),a("div",{staticClass:"drawer-btn",on:{click:function(e){t.drawer=!0}}},[a("img",{attrs:{src:i("EdGx")}}),t._v(" "),a("span",[t._v("使用说明")])]),t._v(" "),a("el-drawer",{attrs:{"show-close":!1,visible:t.drawer,size:"400px",withHeader:!1,modal:!1,direction:"rtl"},on:{"update:visible":function(e){t.drawer=e}}},[a("mQuestions",{attrs:{questions:t.questions},on:{"update:questions":function(e){t.questions=e}}})],1)],1)},staticRenderFns:[]};var ue=i("VU/8")(de,he,!1,function(t){i("XfaR")},"data-v-71be76d4",null).exports,fe={props:{x:{type:String},y:{type:String},pixelLen:{type:String},realLen:{type:String},upload:{type:Boolean},ringsData:{type:Array}},data:function(){return{imgPercent:0,imgSize:{},containerBox:{},check1:!1,check2:!1,check3:!1,showPoint:!0,index:-1,flagPosition:[{y:0,x:0,r:25,show:!1,create:!1},{y:0,x:0,r:10,show:!1,create:!1},{y:0,x:0,r:10,show:!1,create:!1}],flagPosInImage:[{y:0,x:0,r:25},{y:0,x:0,r:10},{y:0,x:0,r:10}],showPosition:{x:0,y:0},showMag:1,scalePosition:[{x:0,y:0,r:2,show:!1},{x:0,y:0,r:2,show:!1}],scalePosInImage:[{x:0,y:0,r:2},{x:0,y:0,r:2}],ringsInPixel:[],showIndex:-1,isCtrl:!1,isAlt:!1,showBigImg:!1,myimage:new Image,tipmsg:"首选，选择一张 SAED图片 或 FFT图片，必须要带标尺哦~ 最好是矩形标尺"}},computed:{scaleLength:function(){var t=(this.scalePosition[0].x*this.imgPercent).toFixed(4),e=(this.scalePosition[0].y*this.imgPercent).toFixed(4),i=(this.scalePosition[1].x*this.imgPercent).toFixed(4),a=(this.scalePosition[1].y*this.imgPercent).toFixed(4);return Math.abs(Math.sqrt(Math.pow(t-i,2)+Math.pow(e-a,2))).toFixed(2)},showCheckBox1:{get:function(){return this.flagPosition[0].show},set:function(t){this.check1=t}},showCheckBox2:{get:function(){return this.flagPosition[1].show&&this.flagPosition[2].show},set:function(t){this.check2=t}},showCheckBox3:{get:function(){return this.showPoint},set:function(t){this.check3=t}},showCheckBoxDisable1:function(){return!this.upload||!this.flagPosition[0].create},showCheckBoxDisable2:function(){return!this.upload||!this.flagPosition[1].create||!this.flagPosition[2].create}},watch:{index:function(t){0===t?this.tipmsg="选中了透射斑，上下左右键、鼠标拖拽，均可调整位置，鼠标滚轮可缩放哦~":1===t?this.tipmsg="选中了第1个衍射斑，上下左右键、鼠标拖拽，均可调整位置，半径代表误差棒哦~":2===t?this.tipmsg="选中了第2个衍射斑，上下左右键、鼠标拖拽，均可调整位置，半径代表误差棒哦~":this.showIndex>2&&(this.tipmsg="有问题可以点击右侧的操作说明<br>")},x:function(t){this.flagPosInImage[0].x=parseFloat(t),this.flagPosition[0].x=this.flagPosInImage[0].x/this.imgPercent},y:function(t){this.flagPosInImage[0].y=parseFloat(t),this.flagPosition[0].y=this.flagPosInImage[0].y/this.imgPercent},ringsData:function(t){console.log("update: ringsData"),t&&t.length>0&&(this.scalePosition.map(function(t){t.show=!1}),this.flagPosition[0].show=!1),this.updateDiffRings()},pixelLen:function(){console.log("pixelLen"),this.updateDiffRings()},realLen:function(){console.log("realLen"),this.updateDiffRings()}},methods:{saveResult:function(t){var e=this;console.log("--saveResult--");var i,a="",n=this.$refs.bigimg,o=n.getBoundingClientRect();Nt()(n,{scale:2048/o.width,y:window.scrollY+o.top,backgroundColor:null,allowTaint:!0,useCORS:!0}).then((i=B()(L.a.mark(function i(n){var o,s;return L.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:a=n.toDataURL("image/png"),o="",o=localStorage.getItem("u")?window.atob(JSON.parse(localStorage.getItem("u")).uuid):"tourist",e.axios.post(e.BASEURL+"/material/api/"+o+"/result_picture",{img:a,result:t},{headers:{client:"Bearer "+localStorage.getItem("TOKEN")}}).then(function(t){200===t.status?console.log("save ok"):e.$message.error("请求出错")}).catch(function(t){throw e.$message.error("请求出错"),new Error(t)}),s=a.split(";base64,")[1],Object(Q.a)(t,s);case 6:case"end":return i.stop()}},i,e)})),function(t){return i.apply(this,arguments)})).catch(function(t){throw e.$message.error("请求出错"),new Error(t)})},updateFlagPosition:function(){console.log("updateScalePosition");for(var t=0;t<this.flagPosition.length;t++)this.flagPosition[t].x=this.flagPosInImage[t].x/this.imgPercent,this.flagPosition[t].y=this.flagPosInImage[t].y/this.imgPercent,this.flagPosition[t].r=this.flagPosInImage[t].r/this.imgPercent},updateScalePosition:function(){console.log("updateScalePosition"),this.scalePosition.map(function(t){t.show=!0});for(var t=0;t<this.scalePosition.length;t++)this.scalePosition[t].x=this.scalePosInImage[t].x/this.imgPercent,this.scalePosition[t].y=this.scalePosInImage[t].y/this.imgPercent},updateDiffRings:function(){if(console.log("updateDiffRings"),this.ringsData&&this.ringsData.length>0){for(var t=this.imgPercent,e=[],i=0;i<this.ringsData.length;i++)e.push({d:10/this.ringsData[i].d/this.realLen*this.pixelLen/t});this.ringsInPixel=e}else this.ringsInPixel=[]},_reset:function(){for(var t in this.flagPosition=[{y:0,x:0,r:25,show:!1,create:!1},{y:0,x:0,r:10,show:!1,create:!1},{y:0,x:0,r:10,show:!1,create:!1}],this.flagPosInImage=[{y:0,x:0,r:25},{y:0,x:0,r:10},{y:0,x:0,r:10}],this.scalePosition=[{x:0,y:0,r:2,show:!1},{x:0,y:0,r:2,show:!1}],this.scalePosInImage=[{x:0,y:0,r:2},{x:0,y:0,r:2}],this.index=-1,this.showIndex=-1,this.imgPercent=0,this.containerPercent=0,this.ringsInPixel=[],this.$props)this.$props.hasOwnProperty(t)&&this.$emit("update:"+t,"");this.$emit("update:realLen","2")},clickFile:function(){this.$refs.file.click()},uploadImg:function(t){var e=this,i=this,a=new FileReader;if(0!==t.target.files.length){var n=t.target.files[0];a.readAsDataURL(n),a.onload=function(t){i._reset(),i.$emit("update:upload",!0),i.$emit("resetSquare"),i.myimage.src=t.target.result,i.myimage.onload=function(){i.renderCanvas(!0,function(){var t=e.imgSize.width/2,a=e.imgSize.height/2,n=e.imgSize.width<e.imgSize.height?e.imgSize.width:e.imgSize.height;n/=100,i.flagPosInImage.map(function(e){e.x=t,e.y=a}),i.flagPosInImage[0].r=5*n,i.updateFlagPosition(),e.tipmsg="点击图片中透射斑的位置，将拾取透射斑"})}}}else this.$message.error("没有选中任何文件.")},renderCanvas:function(t,e){console.log("--- renderCanvas---");var i=this.$refs.canvas,a=this.$refs.draw,n=this.$refs.bigimg,o=i.getContext("2d"),s=this.myimage,r=s.width,l=s.height;this.imgSize={width:r,height:l};var c=window,d=c.innerWidth,h=c.innerHeight,u=1,f=0,g=0;if(t?(f=this.containerBox.width,g=this.containerBox.height):(f=d,g=h),console.log("dockerwidth: "+f),r/l<f/g?(u=g/l,this.imgPercent=l/g,this.containerPercent=parseFloat((g/l).toFixed(4))):(u=f/r,this.imgPercent=r/f,this.containerPercent=parseFloat((this.containerBox.width/r).toFixed(4))),r*=u,l*=u,t)n.style.left=((a.clientWidth-r)/2).toFixed(0)+"px",n.style.top=((a.clientHeight-l)/2).toFixed(0)+"px",n.style.width=r.toFixed(0)+"px",n.style.height=l.toFixed(0)+"px",i.width=r,i.height=l,o.drawImage(this.myimage,0,0,r,l);else{n.style.left="0px",n.style.top="0px",n.style.width=r.toFixed(0)+"px",n.style.height=l.toFixed(0)+"px",i.width=r,i.height=l,o.drawImage(this.myimage,0,0,r,l);o.fillStyle="white",o.rect(0,0,150,30),o.fill(),o.fillStyle="black",o.font='16px "Microsoft YaHei"',o.textBaseline="middle",o.textAlign="center",o.fillText("按ESC退出全屏",75,15)}this.updateFlagPosition(),this.updateScalePosition(),this.updateDiffRings(),e&&(console.log("success"),e())},handleCanvasClick:function(t){console.log("--- handleCanvasClick ---"),this.index=-1,console.log(this.ringsData),console.log(ae()(this.ringsData));var e=this.$refs.canvas.getContext("2d"),i=t.layerX,a=t.layerY,n=[[0,a],[0,a]];if(this.isCtrl){if(this.isCtrl){var o=e.getImageData(i,a,1,1).data;if(o[0]<50&&o[1]<50&&o[2]<50){console.log("黑色标尺");for(var s=i;s>=0;s--){var r=e.getImageData(s,a,1,1).data;if(r[0]>50&&r[1]>50&&r[2]>50){n[0]=[s,a];break}}for(var l=i,c=this.imgSize.width/this.imgPercent;l<=c;l++){var d=e.getImageData(l,a,1,1).data;if(d[0]>50&&d[1]>50&&d[2]>50){n[1]=[l,a];break}}}else{if(!(o[0]>200&&o[1]>200&&o[2]>200))return void(this.tipmsg="不能识别图中的标尺，请再点击，或手动输入标尺长度");console.log("白色标尺");for(var h=i;h>=0;h--){var u=e.getImageData(h,a,1,1).data;if(u[0]<200&&u[1]<200&&u[2]<200){n[0]=[h,a];break}}for(var f=i,g=this.imgSize.width/this.imgPercent;f<=g;f++){var p=e.getImageData(f,a,1,1).data;if(p[0]<200&&p[1]<200&&p[2]<200){n[1]=[f,a];break}}}this.scalePosition[0].x=n[0][0],this.scalePosition[0].y=n[0][1],this.scalePosition[0].show=!0,this.scalePosition[1].x=n[1][0],this.scalePosition[1].y=n[1][1],this.scalePosition[1].show=!0,this.scalePosInImage[0].x=this.scalePosition[0].x*this.imgPercent,this.scalePosInImage[0].y=this.scalePosition[0].y*this.imgPercent,this.scalePosInImage[1].x=this.scalePosition[1].x*this.imgPercent,this.scalePosInImage[1].y=this.scalePosition[1].y*this.imgPercent,this.$emit("update:pixelLen",this.scaleLength),this.tipmsg="标尺的实际长度需要手动输入"}}else this.create(t)},create:function(t){console.log("--- create flag ---");if(!this.isAlt&&!this.isCtrl&&this.upload){if(this.showIndex++,this.showIndex>0)this.index=-1;else{var e=t.offsetX,i=t.offsetY;this.updateFlagCenterText(this.showIndex,e*this.imgPercent,i*this.imgPercent),this.flagPosition[this.showIndex].show=!0,this.flagPosition[this.showIndex].create=!0,this.index=0===this.showIndex?0:-1}0===this.showIndex?this.tipmsg="选中了透射斑，上下左右键、鼠标拖拽，均可调整位置，鼠标滚轮可缩放哦~<br>再次点击，将拾取第1个衍射斑坐标":this.tipmsg="有问题可以点击右侧的操作说明<br>"}},updateFlagCenterText:function(t,e,i){switch(parseInt(t)){case 0:this.$emit("update:x",e.toFixed(1)),this.$emit("update:y",i.toFixed(1))}},restore:function(){console.log("---restore---"),this.showBigImg=!1;var t=document.getElementsByTagName("body")[0];t.classList="",t.style.paddingRight=null,this.renderCanvas(!0)},magnify:function(){console.log("---magnify---")},move:function(t){var e=this;console.log("--- move ---");var i=t.target.dataset.index;if(i&&(i=parseInt(i))>=0){console.log(i);var a=t.clientX-this.flagPosition[i].x,n=t.clientY-this.flagPosition[i].y;document.onmousemove=function(t){var o=t.clientX-a,s=t.clientY-n;e.updateFlagCenterText(i,o*e.imgPercent,s*e.imgPercent)},document.onmouseup=function(t){document.onmousemove=null,document.onmouseup=null}}},flagScale:function(t,e){e=e*this.imgSize.width/100,t>=0&&0!==e&&(this.flagPosInImage[t].r=this.flagPosInImage[t].r+e,this.flagPosInImage[t].r<2&&this.flagPosInImage[t].r>-2&&(this.flagPosInImage[t].r=e>=0?2:-2),this.flagPosition[t].r=Math.abs(this.flagPosInImage[t].r/this.imgPercent))}},mounted:function(){var t=this,e=this;function i(){console.log("--onResize()--");var t=e.$refs.draw,i=t.clientHeight,a=t.clientWidth;e.containerBox={width:a,height:i},e.imgSize={width:a,height:i},e.upload&&e.renderCanvas(!0)}this.upload=!1,i(),window.onresize=i,document.addEventListener("click",function(){e.index=-1}),document.addEventListener("keydown",function(e){"Control"===e.key&&(t.isCtrl=!0)}),document.addEventListener("keyup",function(e){"Control"===e.key&&(t.isCtrl=!1)}),document.onkeydown=function(i){i=window.event||i;var a=e.index;if(a>=0){var n=0,o=0;switch(i.key){case"ArrowLeft":n=-1;break;case"ArrowRight":n=1;break;case"ArrowUp":o=-1;break;case"ArrowDown":o=1}t.updateFlagCenterText(a,t.flagPosInImage[a].x+n,t.flagPosInImage[a].y+o),t.$refs.s.select()}};var a=function(t){var i=void 0;if("wheelDelta"in(t=t||window.event))i=t.wheelDelta/120;else if("detail"in t)i=-t.detail/3;else{if(!("deltaY"in t))return void console.log(t);console.log("deltaY"),i=t.deltaY/120}0===e.index&&(e.flagScale(e.index,i),t.returnValue=!1)};void 0===document.onmousewheel?(console.log("DOMMouseScroll"),document.addEventListener("DOMMouseScroll",a,{passive:!1})):(console.log("wheel"),window.addEventListener("wheel",a,{passive:!1}))},beforeDestroy:function(){document.removeEventListener("click",function(){});var t=document.getElementsByTagName("body")[0];t.classList="",t.style.paddingRight=null,void 0===document.onmousewheel?document.removeEventListener("DOMMouseScroll",function(){}):document.removeEventListener("wheel",function(){})}},ge={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"draw-docker"},[a("el-row",[a("div",{ref:"draw",staticClass:"draw-img"},[t.upload?t._e():a("img",{staticClass:"upload-img",attrs:{src:i("n/EX")}}),t._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:!t.upload,expression:"!upload"}],staticClass:"cant-click",staticStyle:{display:"none"},nativeOn:{click:function(e){return e.stopPropagation(),t.clickFile(e)}}}),t._v(" "),a("el-row",{class:["shade",t.showBigImg?"click":""],nativeOn:{click:function(e){return t.restore(e)}}},[a("el-row",{ref:"imgbox"},[a("div",{ref:"bigimg",class:["bigimg-container",t.showBigImg?"translate":""],nativeOn:{click:function(t){t.stopPropagation()}}},[a("input",{ref:"s",staticStyle:{position:"absolute",width:"0",height:"0",opacity:"0",border:"none",padding:"0",margin:"0",display:"inline"},attrs:{type:"text",autocomplete:"off"}}),t._v(" "),a("canvas",{ref:"canvas",on:{click:function(e){return e.stopPropagation(),t.handleCanvasClick(e)}}}),t._v(" "),t._l(t.ringsInPixel,function(e,i){return a("div",{directives:[{name:"show",rawName:"v-show",value:t.showPoint&&t.upload&&t.ringsData[i].show,expression:"showPoint && upload && ringsData[i].show"}],key:"calCircle"+i,staticClass:"flagCircle",style:[{left:t.flagPosition[0].x-t.ringsInPixel[i].d+"px"},{top:t.flagPosition[0].y-t.ringsInPixel[i].d+"px"},{width:2*t.ringsInPixel[i].d+"px"},{height:2*t.ringsInPixel[i].d+"px"}]},[a("span",[t._v(t._s(t.ringsData[i].hkl))])])}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.flagPosition[0].show,expression:"flagPosition[0].show"}],staticClass:"flag1",style:[{left:t.flagPosition[0].x-2*t.flagPosition[0].r+"px"},{top:t.flagPosition[0].y-2*t.flagPosition[0].r+"px"},{width:4*t.flagPosition[0].r+"px"},{height:4*t.flagPosition[0].r+"px"}],attrs:{"data-index":"0"},on:{click:function(e){e.stopPropagation(),t.index=0},mousedown:t.move}}),t._v(" "),a("div",{staticClass:"rect",style:[{left:t.flagPosition[0].x-2*t.flagPosition[0].r+"px"},{top:t.flagPosition[0].y-2*t.flagPosition[0].r+"px"},{width:4*t.flagPosition[0].r+"px"},{height:4*t.flagPosition[0].r+"px"},{display:t.flagPosition[0].show&&0===t.index?"block":"none"}]}),t._v(" "),t._l(t.flagPosition,function(e,i){return a("div",{key:i,ref:"flag"+(i+1),refInFor:!0,class:"flag"+(i+1),style:[{left:e.x-e.r+"px"},{top:e.y-e.r+"px"},{width:2*e.r+"px"},{height:2*e.r+"px"},{display:e.show?"block":"none"}],attrs:{"data-index":i},on:{click:function(e){e.stopPropagation(),t.index=i},mousedown:t.move}})}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.scalePosition[0].show&&t.realLen>0&&t.pixelLen>0,expression:"scalePosition[0].show && realLen>0 && pixelLen>0"}],staticClass:"rulerText",style:[{left:t.scalePosition[0].x+"px",top:t.scalePosition[0].y-20+"px",width:t.scalePosition[1].x-t.scalePosition[0].x+"px"}]},[a("span",[t._v(t._s(t.realLen)+" (1/nm)")])])],2)])],1),t._v(" "),t.showBigImg?t._e():a("el-row",{staticClass:"upload",nativeOn:{click:function(e){return e.stopPropagation(),t.clickFile(e)}}},[a("el-button",{staticClass:"a-btn-default",staticStyle:{align:"left",float:"left"},attrs:{icon:"el-icon-upload",size:"small"}},[t._v("选择衍射图片")]),t._v(" "),a("input",{ref:"file",attrs:{type:"file",accept:".png, .jpg, .jpeg, .bmp",multiple:"1"},on:{change:t.uploadImg}})],1),t._v(" "),a("el-row",{staticClass:"operation"},[a("el-checkbox",{attrs:{label:"显示透射斑标记",disabled:t.showCheckBoxDisable1},on:{change:function(e){t.flagPosition[0].show=!t.flagPosition[0].show}},model:{value:t.showCheckBox1,callback:function(e){t.showCheckBox1=e},expression:"showCheckBox1"}}),t._v(" "),a("el-checkbox",{attrs:{label:"显示衍射斑点标记",disabled:t.showCheckBoxDisable2},on:{change:function(e){t.flagPosition[1].show=t.flagPosition[2].show=!t.flagPosition[1].show}},model:{value:t.showCheckBox2,callback:function(e){t.showCheckBox2=e},expression:"showCheckBox2"}}),t._v(" "),a("el-checkbox",{attrs:{label:"显示分析结果标记",disabled:t.ringsInPixel.length<=0},on:{change:function(e){t.showPoint=!t.showPoint}},model:{value:t.showCheckBox3,callback:function(e){t.showCheckBox3=e},expression:"showCheckBox3"}})],1)],1)])],1)},staticRenderFns:[]};var pe={components:{"analyze-title":dt,"analyze-step1":yt,"analyze-step2":Ct,"analyze-step3":St,"analyze-result":se,"analyze-args":Ft,"analyze-draw":i("VU/8")(fe,ge,!1,function(t){i("SYSz")},"data-v-1be911c0",null).exports,mQuestions:Ut},data:function(){return{activeStep:0,drawer:!1,resultData:[],square:[],explainVisible:!1,pdfList:[],crystal:{phase:"",center_type:"",type:"",a:"",b:"",c:"",alpha:"",beta:"",gamma:""},scale:{pixels:"",scale:"2"},center:{x:"",y:""},step4:{d1_a:"",d2_a:"",dp1:"10",dp2:"10",error_angle:10},upload:!1,loading:!1,infoShow:!0,questions:[{q:"如何选择SAED或FFT图片？",a:["点击“选择衍射图片”按钮，选择带标尺的图片, 支持扩展名.jpg, .png, .bmp等。","图片要带标尺，最好是矩形的标尺，例如DM软件自动生成的标尺。"]},{q:"如何选择透射斑？",a:["在图片区域中首次单击，将选择一个坐标位置，即计算使用的透射斑坐标， 并用同心辅助圆标记。"]},{q:"如何移动透射斑位置？",a:["选中透射斑标记后，可通过鼠标拖拽、键盘方向键、文本输入三种方式来调整其位置。","一般来说，鼠标拖拽适合粗调，键盘方向键适合微调，或者文本输入精确坐标值；请选择你最喜欢的方式。","选中透射斑标记后，通过“Ctrl+鼠标滚轮”的方式，可以将辅助标记放大或缩小。当对称的衍射斑点位于辅助圆上时，说明此时的透射斑位置是正确的。"]},{q:"如何设置图片的标尺？",a:["在图片的标尺▄▄中间, 点击组合键, 程序自动识别标尺的像素长度。目前自动识别功能只支持纯黑色或白色的矩形标尺。也可以手动输入标尺的像素长度。","组合键：Window系统: Ctrl+鼠标左键；Mac系统: Option+鼠标左键。","手动输入标尺的实际长度。"]},{q:"程序分析原理是怎样的？",a:["1. 程序根据所选物相的晶体结构参数，计算各个晶面间距及消光规律","2. 将计算出的晶面信息绘制在衍射图片上。","3. 将实际拍摄图片中的衍射环位置和绘制的晶面位置进行比对，根据比对结果的匹配程度，判断是否是所选的物相。"]},{q:"计算程序是免费使用吗？",a:["本程序目前是免费提供给所有人使用的，如果将来维护成本超出预算，可能会采取收费策略。"]},{q:"程序声明",a:["本程序研发目的是辅助用户进行基础的数据分析，受能力和精力所限，不可能考虑所有可能出现的情况；","本程序产生或展示的内容仅供参考，务必严格确认后再进行引用或发表；","对应直接或间接因本程序引起的后果，本站点及单位不承担任何责任；","由于研究对象和研究目的具有客观复杂性，我们另提供人工分析服务；","严禁对本程序进行逆向分析和破解等攻击破坏行为，保留追责权利；","本程序将持续更新和改进，恕不另行通知，请及时备份和保存数据；","若使用，即代表同意上述观点。本站点及单位具有最终解释权。","欢迎大家提出任何意见或建议~~","Email: test@zcjce.com"]},{q:"作者寄语",a:["相识即是缘分！","制样、测试和分析相关的问题，扫描底部二维码咨询我们。","中材为您的电镜测试保驾护航~~"]}],questionIndex:0}},methods:{lastStep:function(){this.activeStep>0&&this.activeStep--},nextStep:function(){this.upload?this.activeStep<4&&this.activeStep++:this.$message({type:"warning",message:"请先上传衍射图片",center:!0})},findOptionName:function(t,e){for(var i="",a=0,n=t.length;a<n;a++)if(t[a].value===e){i=t[a].name;break}return i},addToList:function(t){console.log("--addToList--"),console.log(this.crystal);var e=this.crystal.phase,i=this.findOptionName(this.options1,this.crystal.type),a=this.findOptionName(this.options2,this.crystal.center_type);console.log(this.crystal);var n={phase:e,typeName:i,centerTypeName:a,crystal:Object(mt.a)(this.crystal)};this.pdfList.push(n),this.$refs.analyzeTable.setCurrent(this.pdfList.length-1),(localStorage.getItem("pdfList")?JSON.parse(localStorage.getItem("pdfList")):[]).push(n),localStorage.setItem("pdfList",g()(this.pdfList)),localStorage.setItem("lastSelect",this.pdfList.length-1)},rmCurrentPdfRow:function(t){console.log("--rmCurrentPdfRow--"),this.pdfList.splice(t,1),this.phaseName1="undefined";var e=localStorage.getItem("pdfList")?JSON.parse(localStorage.getItem("pdfList")):[];e.splice(t,1),localStorage.setItem("pdfList",g()(e)),localStorage.setItem("lastSelect","")},renderCrystalArgs:function(t){console.log("--before renderCrystalArgs--"),console.log(this.crystal);var e=this.pdfList[t].crystal;this.crystal=Object(mt.a)(e),localStorage.setItem("lastSelect",t),console.log("--after renderCrystalArgs--"),console.log(this.crystal)},resetSquare:function(){console.log("--resetSquare--"),this.square=this.selectedData=this.resultData=[]},start:function(){var t=this;console.log("--开始分析--");var e=Object(mt.a)(this.crystal);console.log(this.crystal);var i={crystal:ot()({},e),scale:ot()({},this.scale),center:ot()({},this.center)};console.log("发送数据如下："),console.log(i);var a=function t(e){for(var i in e)if("string"==typeof e[i]||"number"==typeof e[i]){if(!e[i])return i}else if(e[i]instanceof Object){var a=t(e[i]);if(a)return a}return""}(i);if(a)this.$message({type:"error",message:a+" 参数不能为空，请认真检查",center:!0});else{console.log(ae()(e.a)),"string"==typeof e.a&&(i.crystal.a=parseFloat(e.a)),"string"==typeof e.b&&(i.crystal.b=parseFloat(e.b)),"string"==typeof e.c&&(i.crystal.c=parseFloat(e.c)),"string"==typeof e.alpha&&(i.crystal.alpha=parseFloat(e.alpha)),"string"==typeof e.beta&&(i.crystal.beta=parseFloat(e.beta)),"string"==typeof e.gamma&&(i.crystal.gamma=parseFloat(e.gamma));var n="";n=localStorage.getItem("u")?window.atob(JSON.parse(localStorage.getItem("u")).uuid):"tourist",this.loading=!0,this.axios.post(this.BASEURL+"/material/api/diffrings?uuid="+n,{crystal:i.crystal},{headers:{"Content-Type":"application/json",client:"Bearer "+localStorage.getItem("TOKEN")}}).then(function(e){t.loading=!1;var i=e.data,a=i.data,n=i.error_message,o=i.code;200===o||"success"===o||"SUCCESS"===o?(console.log("成功获取数据"),console.log(a),console.log("errMsg: "+n),console.log("code: "+o),200===o||"success"===o||"SUCCESS"===o?t.resultData=a:t.$message({type:"warning",message:n,center:!0}),t.loading=!1):t.$message({type:"warning",message:n,center:!0}),t.loading=!1}).catch(function(e){t.loading=!1;var i={records:[{phase:"test",hkl:"1 0 1",d:4.43,show:!0,NoExtinct:"Yes"},{phase:"test",hkl:"0 0 2",d:3.41,show:!1,NoExtinct:"Yes"},{phase:"test",hkl:"1 0 2",d:2.939,show:!0,NoExtinct:"Yes"}],error_message:"",code:"SUCCESS"},a=i.records,n=i.error_message,o=i.code;throw console.log(a),console.log("errMsg: "+n),console.log("code: "+o),200===o||"success"===o||"SUCCESS"===o?t.resultData=a:t.$message({type:"warning",message:n,center:!0}),console.log(e),t.$message({type:"error",message:"操作出错了",center:!0}),new Error(e)})}},saveResult:function(){this.$refs.drawbox.saveResult(this.resultData)}},created:function(){var t=localStorage.getItem("pdfList")?JSON.parse(localStorage.getItem("pdfList")):[],e=Number(localStorage.getItem("lastSelect"));if(this.pdfList=t,e&&e>=0){var i=t[e].crystal;this.crystal=i}},mounted:function(){this.questions=this.questions.map(function(t,e){return ot()({},t,{showDetail:!1,pid:"itemPId"+e})});var t=Number(localStorage.getItem("lastSelect"));t&&t>=0&&this.$refs.analyzeTable.setCurrent(t)}},me={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"analyze"},[a("el-row",{staticClass:"container"},[a("el-row",{attrs:{gutter:20,type:"flex",align:"middle"}},[a("el-col",[a("div",{ref:"imageWrapper",staticClass:"img-block"},[a("analyze-draw",{ref:"drawbox",attrs:{x:t.center.x,y:t.center.y,upload:t.upload,pixelLen:t.scale.pixels,realLen:t.scale.scale,ringsData:t.resultData},on:{"update:x":function(e){return t.$set(t.center,"x",e)},"update:y":function(e){return t.$set(t.center,"y",e)},"update:upload":function(e){t.upload=e},"update:pixelLen":function(e){return t.$set(t.scale,"pixels",e)},"update:pixel-len":function(e){return t.$set(t.scale,"pixels",e)},"update:realLen":function(e){return t.$set(t.scale,"scale",e)},"update:real-len":function(e){return t.$set(t.scale,"scale",e)},"update:ringsData":function(e){t.resultData=e},"update:rings-data":function(e){t.resultData=e},resetSquare:t.resetSquare}})],1)]),t._v(" "),a("el-col",[a("el-row",[a("el-steps",{attrs:{active:t.activeStep}},[a("el-step",{attrs:{title:"步骤 1",description:"选择图片"}}),t._v(" "),a("el-step",{attrs:{title:"步骤 2",description:"设置透射斑"}}),t._v(" "),a("el-step",{attrs:{title:"步骤 3",description:"设置标尺"}}),t._v(" "),a("el-step",{attrs:{title:"步骤 4",description:"设置晶体参数"}}),t._v(" "),a("el-step",{attrs:{title:"步骤 5",description:"计算/模拟/导出"}})],1)],1),t._v(" "),a("el-row",{staticStyle:{height:"600px"},attrs:{type:"flex",justify:"center",align:"middle"}},[a("el-row",{directives:[{name:"show",rawName:"v-show",value:0==t.activeStep,expression:"activeStep==0"}],staticStyle:{width:"90%"}},[a("h2",{attrs:{align:"center"}},[t._v("多晶衍射环分析程序")]),a("br"),a("br"),t._v(" "),a("p",[t._v("*  点击左侧“选择衍射图片”按钮，打开衍射图片 或 FFT图片。")]),a("br"),t._v(" "),a("p",[t._v("*  支持扩展名.jpg, .png, .bmp等。")]),a("br"),t._v(" "),a("p",[t._v("*  图片要带标尺，最好是矩形的标尺，黑底白边或白底黑边的标尺，例如DM软件或GMS软件自动生成的标尺。")])]),t._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:1==t.activeStep,expression:"activeStep==1"}],staticClass:"col",staticStyle:{width:"90%"}},[a("el-row",[a("p",[t._v("*  在左侧图片中单击透射斑所在的位置，将创建透射斑标记。")]),a("br"),t._v(" "),a("p",[t._v("*  支持鼠标拖动、键盘方向移动、或者直接输入坐标值。")]),a("br"),t._v(" "),a("p",[t._v("*  选中透射斑标记后，可以用鼠标滚轮调节辅助圆的大小，当对称斑点都落在辅助圆上时，可以认为此时透射斑的位置是准确的。")]),a("br"),t._v(" "),a("p",[t._v("*  坐标值单位：Pixels。")]),a("br")]),t._v(" "),a("el-row",[a("analyze-step3",{attrs:{step3:t.center}})],1)],1),t._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:2==t.activeStep,expression:"activeStep==2"}],staticClass:"col",staticStyle:{width:"90%"}},[a("el-row",[a("p",[t._v("*  在图片的标尺 ▄▄ 中间, 点击\n                  "),a("kbd",[t._v(t._s(this.isMac?"Option+鼠标左键":"Crtl+鼠标左键"))]),t._v(", 程序自动识别标尺的像素长度。")]),a("br"),t._v(" "),a("p",[t._v("*  目前自动识别功能只支持纯黑色或白色的矩形标尺。")]),a("br"),t._v(" "),a("p",[t._v("*  也可以用其他软件测量标尺的像素长度后，手动输入下面的文本框中。")]),a("br"),t._v(" "),a("p",[t._v("*  目前，标尺的实际长度只能手动输入。倒易空间中的长度单位：1/nm。")]),a("br"),t._v(" "),a("analyze-step2",{attrs:{step2:t.scale}})],1),t._v(" "),a("el-row",[a("p",{staticStyle:{color:"red"}},[a("br"),t._v("*  手动输入标尺的实际长度 ↗↗↗")])])],1),t._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:3==t.activeStep,expression:"activeStep==3"}],staticClass:"col",staticStyle:{width:"90%"}},[a("el-row",{staticClass:"col"},[a("el-row",{staticClass:"type"},[a("analyze-step1",{attrs:{step1:t.crystal,options1:t.options1},on:{"update:step1":function(e){t.crystal=e}}})],1)],1),t._v(" "),a("analyze-args",{ref:"analyzeTable",attrs:{pdfList:t.pdfList},on:{addToList:t.addToList,renderCrystalArgs:t.renderCrystalArgs,rmCurrentPdfRow:t.rmCurrentPdfRow}}),t._v(" "),a("el-row",[a("p",[t._v("*  将参数加入列表区，方便后续调用。暂只支持本地存储。")]),a("br")])],1),t._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:4==t.activeStep,expression:"activeStep==4"}],staticClass:"col",staticStyle:{width:"90%"}},[a("analyze-result",{directives:[{name:"show",rawName:"v-show",value:4==t.activeStep,expression:"activeStep==4"}],ref:"resultTable",staticStyle:{height:"500px",width:"100%"},attrs:{tableData:t.resultData},on:{"update:tableData":function(e){t.resultData=e},"update:table-data":function(e){t.resultData=e}}}),t._v(" "),a("el-row",[a("p",[t._v("*  hkl: 晶面指数；d：晶面间距；")]),t._v(" "),a("p",[t._v("* 不消光：理论计算得到的消光规律；")]),t._v(" "),a("p",[t._v("* 是否显示：是否将晶面对应的衍射环绘制在左图中。")]),t._v(" "),a("p",[t._v("* 当衍射图片中的衍射环与理论情况一致时，证明标定正确。")])])],1)],1),t._v(" "),a("el-row",{attrs:{type:"flex",justify:"space-around",align:"bottom"}},[a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{disabled:0==t.activeStep},on:{click:t.lastStep}},[t._v(" 上一步 ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.activeStep<4,expression:"activeStep < 4"}],staticStyle:{"margin-top":"12px"},on:{click:t.nextStep}},[t._v(" 下一步 ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:4==t.activeStep,expression:"activeStep==4"}],staticStyle:{"margin-top":"12px"},attrs:{loading:t.loading},on:{click:t.start}},[t._v("开始计算")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:4==t.activeStep,expression:"activeStep==4"}],staticStyle:{"margin-top":"12px"},attrs:{loading:t.loading},on:{click:t.saveResult}},[t._v("导出结果")])],1)],1)],1),t._v(" "),a("el-row",{staticStyle:{width:"100%",height:"50px"}})],1),t._v(" "),a("div",{staticClass:"drawer-btn",on:{click:function(e){t.drawer=!0}}},[a("img",{attrs:{src:i("EdGx")}}),t._v(" "),a("span",[t._v("使用说明")])]),t._v(" "),a("el-drawer",{attrs:{"show-close":!1,visible:t.drawer,size:"400px",withHeader:!1,modal:!1,direction:"rtl"},on:{"update:visible":function(e){t.drawer=e}}},[a("mQuestions",{attrs:{questions:t.questions},on:{"update:questions":function(e){t.questions=e}}})],1)],1)},staticRenderFns:[]};var ve=i("VU/8")(pe,me,!1,function(t){i("PEJZ")},"data-v-d78d001a",null).exports,be={name:"Registry",data:function(){return{form:{phone:"",verificationCode:"",openId:Object(v.a)()},token:Object(v.c)(),sendModel:{countNum:60,countFlag:!1,intervalBtn:{},btnMsg:"获取验证码"},rules:{phone:[{required:!0,message:"请输入手机号码",trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}],verificationCode:[{required:!0,message:"请输入6位验证码",trigger:"blur"},{min:6,max:6,message:"请输入6位验证码",trigger:"blur"}]},checked:!0}},watch:{},methods:{countDown:function(){var t=this;this.sendModel.btnMsg=null,this.sendModel.countFlag=!this.sendModel.countFlag,this.sendModel.intervalBtn=setInterval(function(){t.sendModel.countNum<=0&&(t.sendModel.btnMsg="获取验证码",clearInterval(t.sendModel.intervalBtn),t.sendModel.countFlag=!t.sendModel.countFlag,t.sendModel.countNum=60),t.sendModel.countNum--},1e3)},getCode:function(){var t=this;this.$refs.form.validateField("phone",function(e){if(""!=e)return!1;y()({url:"http://cry.simr.ac.cn/prod-api/sendNote/"+t.form.phone,method:"POST"}),t.countDown()})},onSubmit:function(){var t=this;this.checked?this.$refs.form.validate(function(e){if(!e)return!1;console.log("提交"),console.log(t.openid),t.form.openId=Object(v.a)(),y()({url:"http://cry.simr.ac.cn/prod-api/registry",method:"POST",data:t.form}).then(function(e){console.log("abcedfg",e),200===e.data.code?(Object(v.j)(e.data.data.token),t.$message.success("注册成功"),t.$router.push({path:"/"})):500===e.data.code&&t.$message.error("该手机号已被注册"),window.location.reload()}).catch(function(e){return t.$message.error(e),!1})}):this.$modal.msgWarning("请勾选XXXX！！")}},created:function(){},computed:{}},ye={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"main"},[i("div",{staticClass:"warp"},[i("div",{staticClass:"cont"},[t._m(0),t._v(" "),i("div",{staticClass:"right"},[i("div",{staticClass:"title"},[t._v(t._s(this.$route.meta.title))]),t._v(" "),i("el-form",{ref:"form",staticClass:"form",attrs:{model:t.form,"label-width":"80px",size:"25px",rules:t.rules}},[i("el-form-item",{attrs:{label:"手机号:",prop:"phone"}},[i("el-input",{staticStyle:{width:"275px"},attrs:{placeholder:"请输入手机号码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSubmit(e)}},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"验证码:",prop:"verificationCode"}},[i("el-input",{staticStyle:{width:"142px"},attrs:{placeholder:"请输入验证码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSubmit(e)}},model:{value:t.form.verificationCode,callback:function(e){t.$set(t.form,"verificationCode",e)},expression:"form.verificationCode"}}),t._v(" "),i("el-button",{staticClass:"visBut",attrs:{type:"primary",disabled:t.sendModel.countFlag},on:{click:t.getCode}},[t._v("\n                "+t._s(null==t.sendModel.btnMsg?t.sendModel.countNum+"s后重新发送":t.sendModel.btnMsg)+"\n              ")])],1),t._v(" "),i("el-form-item",[i("el-button",{staticClass:"sum-but",attrs:{type:"primary"},nativeOn:{click:function(e){return e.preventDefault(),t.onSubmit(e)}}},[t._v("注册")])],1)],1),t._v(" "),i("el-checkbox",{staticStyle:{"margin-left":"10px","margin-top":"30px"},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t._v("\n            首次使用微信扫码登录时，需要绑定手机号后，才能使用微信扫码登录\n          ")])],1)])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"letf"},[e("img",{attrs:{src:i("nkOi"),alt:""}})])}]};var we=i("VU/8")(be,ye,!1,function(t){i("dkI2")},"data-v-af77b3c2",null).exports,xe=i("IcnI");h.default.use(D.a);var Ce=new D.a({mode:"history",routes:[{path:"/",name:"Index",component:H,meta:{keepAlive:!1}},{path:"/member",name:"Member",component:K,meta:{keepAlive:!1}},{path:"/registry",name:"Registry",component:we,meta:{keepAlive:!1}},{path:"/pay",name:"Pay",component:et,meta:{keepAlive:!1}},{path:"/analyze",name:"Analyze",component:Ht,meta:{keepAlive:!0}},{path:"/commonAnalyze",name:"commonAnalyze",component:Jt,meta:{keepAlive:!0}},,{path:"/referenceImages",name:"referenceImages",component:ee,meta:{keepAlive:!0}},{path:"/diffRings",name:"diffRings",component:ue,meta:{keepAlive:!0}},{path:"/hrtem",name:"hrtem",component:ve,meta:{keepAlive:!0}},{path:"/card",name:"card",component:function(){return i.e(4).then(i.bind(null,"e88E"))}},{path:"/calculationA",name:"calculationA",component:function(){return i.e(0).then(i.bind(null,"OcQ3"))}},{path:"/userCenter",name:"userCenter",component:function(){return i.e(3).then(i.bind(null,"lpge"))}},{path:"/thickness",name:"thickness",component:function(){return i.e(1).then(i.bind(null,"jWta"))}},{path:"/both",name:"both",component:function(){return i.e(2).then(i.bind(null,"GA/6"))}}]});Ce.beforeEach(function(t,e,i){"/"===t.path||"/registry"===t.path||"/wxLogin"===t.path||Object(v.c)()?i():i("/")});var ke=Ce,_e=i("Rf8U"),Se=i.n(_e),Pe=i("7JE7"),Ie=i.n(Pe),Ae=i("mM94"),De=(i("s2gB"),i("G/KL"),i("j1ja"),i("Vi3T")),Me=i.n(De),Le=i("5wnc"),Oe=i("dAEq"),Re=i.n(Oe);h.default.use(Re.a,{ak:"z6rhNeDuGeF9qxGwxU1xcJfnvem3BYbf"}),h.default.use(d.a,{locale:Me.a}),h.default.use(Le.a),h.default.config.productionTip=!1,h.default.use(Ae.a),h.default.use(Se.a,y.a),h.default.prototype.$message=l.a,h.default.prototype.$confirm=s.a.confirm,h.default.prototype.$alert=s.a.alert,h.default.prototype.$prompt=s.a.prompt,h.default.prototype.$dialog=n.a,h.default.prototype.isMac="Mac68K"===navigator.platform||"MacPPC"===navigator.platform||"Macintosh"===navigator.platform||"MacIntel"===navigator.platform,console.log=function(){},h.default.prototype.BASEURL="http://crystal.simr.ac.cn:80",h.default.prototype.about_simr=null,h.default.prototype.Questions_code=null,h.default.prototype.options1=[{name:"立方晶系",value:"Cubic"},{name:"正交晶系",value:"Orthorhombic"},{name:"六方晶系",value:"Hexagonal"},{name:"四方晶系",value:"Tetragonal"},{name:"单斜晶系",value:"Monoclinic"},{name:"菱方晶系",value:"Rhombohedral"},{name:"三斜晶系",value:"Triclinic"}],h.default.prototype.options2=[{name:"简单点阵",value:"P"},{name:"面心点阵",value:"F"},{name:"体心点阵",value:"I"},{name:"A底心点阵",value:"A"},{name:"B底心点阵",value:"B"},{name:"C底心点阵",value:"C"},{name:"R心点阵",value:"R"},{name:"密排六方",value:"HCP"}],h.default.prototype.crystalTreeOption=[{name:"立方晶系(Cubic)",value:"Cubic",children:[{name:"简单点阵(P)",value:"P"},{name:"面心点阵(F)",value:"F"},{name:"体心点阵(I)",value:"I"}]},{name:"正交晶系(Orthorhombic)",value:"Orthorhombic",children:[{name:"简单点阵(P)",value:"P"},{name:"面心点阵(F)",value:"F"},{name:"体心点阵(I)",value:"I"},{name:"C底心点阵(C)",value:"C"}]},{name:"六方晶系(Hexagonal)",value:"Hexagonal",children:[{name:"简单点阵(P)",value:"P"},{name:"R心点阵(R)",value:"R"}]},{name:"四方晶系(Tetragonal)",value:"Tetragonal",children:[{name:"简单点阵(P)",value:"P"},{name:"体心点阵(I)",value:"I"}]},{name:"单斜晶系(Monoclinic)",value:"Monoclinic",children:[{name:"简单点阵(P)",value:"P"},{name:"体心点阵(I)",value:"I"},{name:"A底心点阵(A)",value:"A"},{name:"B底心点阵(B)",value:"B"},{name:"C底心点阵(C)",value:"C"}]},{name:"菱方晶系(Rhombohedral)",value:"Rhombohedral",children:[{name:"简单点阵(P)",value:"P"}]},{name:"三斜晶系(Triclinic)",value:"Triclinic",children:[{name:"简单点阵(P)",value:"P"}]}],h.default.prototype.$request={post:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};arguments[4];console.log(h.default.prototype.BASEURL+t),y.a.post(h.default.prototype.BASEURL+t,Ie.a.stringify(e),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(t){if(200===t.status){var e=t.data;200===e.code||"OK"===t.statusText?i(e):a(e)}}).catch(function(t){throw h.default.prototype.$message.error("请求出错了!"),new Error(t)})},get:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};console.log(h.default.prototype.BASEURL+t),y.a.get(h.default.prototype.BASEURL+t,{params:e}).then(function(t){if(200===t.status){var e=t.data;200===e.code?i(e):a(e)}}).catch(function(t){throw h.default.prototype.$message.error("请求出错了!"),new Error(t)})}},h.default.filter("replaceStr",function(t,e,i,a){var n=t.slice(i,a);return t.replace(n,function(t){for(var i="",a=0;a<t.length;a++)i+=e;return i}(n))}),new h.default({el:"#app",router:ke,store:xe.a,components:{App:A},template:"<App/>"})},NOBc:function(t,e){},OOaC:function(t,e,i){"use strict";e.a=function(t,e){return Object(a.b)({url:"/material/api/"+t+"/result_picture",method:"post",data:e})},e.b=function(t){return Object(a.b)({url:"/material/api/upload/txt",method:"post",data:t})};var a=i("vLgD")},OmSs:function(t,e){},Oo05:function(t,e){},PC80:function(t,e){},PEJZ:function(t,e){},Prft:function(t,e,i){t.exports=i.p+"static/img/text.4ffe5e6.png"},Px9X:function(t,e,i){t.exports=i.p+"static/img/weixin.fa23cca.png"},QDfD:function(t,e){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},RFQG:function(t,e,i){"use strict";var a=i("Gu7T"),n=i.n(a),o=i("d7EF"),s=i.n(o),r=i("kN6d"),l=i("3e7c"),c=i("9A4f"),d=i("qf0b"),h={name:"DvDecoration6",mixins:[r.a],props:{color:{type:Array,default:function(){return[]}}},data:function(){return{ref:"decoration-6",svgWH:[300,35],svgScale:[1,1],rowNum:1,rowPoints:40,rectWidth:7,halfRectWidth:3.5,points:[],heights:[],minHeights:[],randoms:[],defaultColor:["#7acaec","#7acaec"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcSVGData)()},calcSVGData:function(){var t=this.calcPointsPosition,e=this.calcScale;t(),e()},calcPointsPosition:function(){var t=this.svgWH,e=this.rowNum,i=this.rowPoints,a=s()(t,2),o=a[0],r=a[1],c=o/(i+1),d=r/(e+1),h=new Array(e).fill(0).map(function(t,e){return new Array(i).fill(0).map(function(t,i){return[c*(i+1),d*(e+1)]})});this.points=h.reduce(function(t,e){return[].concat(n()(t),n()(e))},[]);var u=this.heights=new Array(e*i).fill(0).map(function(t){return Math.random()>.8?Object(l.d)(.7*r,r):Object(l.d)(.2*r,.5*r)});this.minHeights=new Array(e*i).fill(0).map(function(t,e){return u[e]*Math.random()}),this.randoms=new Array(e*i).fill(0).map(function(t){return Math.random()+1.5})},calcScale:function(){var t=this.width,e=this.height,i=this.svgWH,a=s()(i,2),n=a[0],o=a[1];this.svgScale=[t/n,e/o]},onResize:function(){(0,this.calcSVGData)()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(c.deepMerge)(Object(d.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},u={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-decoration-6"},[i("svg",{style:"transform:scale("+t.svgScale[0]+","+t.svgScale[1]+");",attrs:{width:t.svgWH[0]+"px",height:t.svgWH[1]+"px"}},[t._l(t.points,function(e,a){return[i("rect",{key:a,attrs:{fill:t.mergedColor[Math.random()>.5?0:1],x:e[0]-t.halfRectWidth,y:e[1]-t.heights[a]/2,width:t.rectWidth,height:t.heights[a]}},[i("animate",{attrs:{attributeName:"y",values:e[1]-t.minHeights[a]/2+";"+(e[1]-t.heights[a]/2)+";"+(e[1]-t.minHeights[a]/2),dur:t.randoms[a]+"s",keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"}}),t._v(" "),i("animate",{attrs:{attributeName:"height",values:t.minHeights[a]+";"+t.heights[a]+";"+t.minHeights[a],dur:t.randoms[a]+"s",keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"}})])]})],2)])},staticRenderFns:[]},f=i("VU/8")(h,u,!1,null,null,null);e.a=f.exports},RTVb:function(t,e,i){t.exports=i.p+"static/img/3.c3b3a76.png"},RWIN:function(t,e){},SS1b:function(t,e){},SYSz:function(t,e){},SvTU:function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s={name:"DvBorderBox7",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-7",defaultColor:["rgba(128,128,128,0.3)","rgba(128,128,128,0.5)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-border-box-7",style:"box-shadow: inset 0 0 40px "+t.mergedColor[0]+"; border: 1px solid "+t.mergedColor[0]+"; background-color: "+t.backgroundColor},[i("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[i("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:t.mergedColor[0],points:"0, 25 0, 0 25, 0"}}),t._v(" "),i("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:t.mergedColor[0],points:t.width-25+", 0 "+t.width+", 0 "+t.width+", 25"}}),t._v(" "),i("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:t.mergedColor[0],points:t.width-25+", "+t.height+" "+t.width+", "+t.height+" "+t.width+", "+(t.height-25)}}),t._v(" "),i("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:t.mergedColor[0],points:"0, "+(t.height-25)+" 0, "+t.height+" 25, "+t.height}}),t._v(" "),i("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:t.mergedColor[1],points:"0, 10 0, 0 10, 0"}}),t._v(" "),i("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:t.mergedColor[1],points:t.width-10+", 0 "+t.width+", 0 "+t.width+", 10"}}),t._v(" "),i("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:t.mergedColor[1],points:t.width-10+", "+t.height+" "+t.width+", "+t.height+" "+t.width+", "+(t.height-10)}}),t._v(" "),i("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:t.mergedColor[1],points:"0, "+(t.height-10)+" 0, "+t.height+" 10, "+t.height}})]),t._v(" "),i("div",{staticClass:"border-box-content"},[t._t("default")],2)])},staticRenderFns:[]},l=i("VU/8")(s,r,!1,null,null,null);e.a=l.exports},TJq8:function(t,e,i){t.exports=i.p+"static/img/2.ce026b5.png"},UaMl:function(t,e){},UsbJ:function(t,e,i){"use strict";var a=i("d7EF"),n=i.n(a),o=i("kN6d"),s=i("3e7c"),r=i("9A4f"),l=i("qf0b"),c=i("CfEr"),d={name:"DvDecoration9",mixins:[o.a],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3}},data:function(){return{ref:"decoration-9",polygonId:"decoration-9-polygon-"+Object(s.e)(),svgWH:[100,100],svgScale:[1,1],defaultColor:["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcScale)()},calcScale:function(){var t=this.width,e=this.height,i=this.svgWH,a=n()(i,2),o=a[0],s=a[1];this.svgScale=[t/o,e/s]},onResize:function(){(0,this.calcScale)()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(r.deepMerge)(Object(l.deepClone)(e,!0),t||[])},fade:c.fade},mounted:function(){(0,this.mergeColor)()}},h={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-decoration-9"},[i("svg",{style:"transform:scale("+t.svgScale[0]+","+t.svgScale[1]+");",attrs:{width:t.svgWH[0]+"px",height:t.svgWH[1]+"px"}},[i("defs",[i("polygon",{attrs:{id:t.polygonId,points:"15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"}})]),t._v(" "),i("circle",{attrs:{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:t.mergedColor[1],"stroke-width":"10","stroke-dasharray":"80, 100, 30, 100"}},[i("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:t.dur+"s",repeatCount:"indefinite"}})],1),t._v(" "),i("circle",{attrs:{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:t.mergedColor[0],"stroke-width":"6","stroke-dasharray":"50, 66, 100, 66"}},[i("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;-360 50 50",dur:t.dur+"s",repeatCount:"indefinite"}})],1),t._v(" "),i("circle",{attrs:{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:t.fade(t.mergedColor[1]||t.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}}),t._v(" "),t._l(new Array(20).fill(0),function(e,a){return i("use",{key:a,attrs:{"xlink:href":"#"+t.polygonId,stroke:t.mergedColor[1],fill:Math.random()>.4?"transparent":t.mergedColor[0]}},[i("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:t.dur+"s",begin:a*t.dur/20+"s",repeatCount:"indefinite"}})],1)}),t._v(" "),i("circle",{attrs:{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:t.fade(t.mergedColor[1]||t.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}})],2),t._v(" "),t._t("default")],2)},staticRenderFns:[]},u=i("VU/8")(d,h,!1,null,null,null);e.a=u.exports},"VBZ/":function(t,e,i){t.exports=i.p+"static/img/bravais.8e71f1d.png"},"Vyt+":function(t,e,i){"use strict";var a=i("Gu7T"),n=i.n(a),o=i("d7EF"),s=i.n(o),r=i("kN6d"),l=i("9A4f"),c=i("qf0b"),d={name:"DvDecoration3",mixins:[r.a],props:{color:{type:Array,default:function(){return[]}}},data:function(){return{ref:"decoration-3",svgWH:[300,35],svgScale:[1,1],rowNum:2,rowPoints:25,pointSideLength:7,halfPointSideLength:3.5,points:[],defaultColor:["#7acaec","transparent"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcSVGData)()},calcSVGData:function(){var t=this.calcPointsPosition,e=this.calcScale;t(),e()},calcPointsPosition:function(){var t=this.svgWH,e=this.rowNum,i=this.rowPoints,a=s()(t,2),o=a[0],r=a[1],l=o/(i+1),c=r/(e+1),d=new Array(e).fill(0).map(function(t,e){return new Array(i).fill(0).map(function(t,i){return[l*(i+1),c*(e+1)]})});this.points=d.reduce(function(t,e){return[].concat(n()(t),n()(e))},[])},calcScale:function(){var t=this.width,e=this.height,i=this.svgWH,a=s()(i,2),n=a[0],o=a[1];this.svgScale=[t/n,e/o]},onResize:function(){(0,this.calcSVGData)()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(l.deepMerge)(Object(c.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},h={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-decoration-3"},[i("svg",{style:"transform:scale("+t.svgScale[0]+","+t.svgScale[1]+");",attrs:{width:t.svgWH[0]+"px",height:t.svgWH[1]+"px"}},[t._l(t.points,function(e,a){return[i("rect",{key:a,attrs:{fill:t.mergedColor[0],x:e[0]-t.halfPointSideLength,y:e[1]-t.halfPointSideLength,width:t.pointSideLength,height:t.pointSideLength}},[Math.random()>.6?i("animate",{attrs:{attributeName:"fill",values:""+t.mergedColor.join(";"),dur:Math.random()+1+"s",begin:2*Math.random(),repeatCount:"indefinite"}}):t._e()])]})],2)])},staticRenderFns:[]},u=i("VU/8")(d,h,!1,null,null,null);e.a=u.exports},WO7A:function(t,e,i){"use strict";var a=i("Gu7T"),n=i.n(a),o=i("Dd8w"),s=i.n(o),r=i("z0b2"),l=i.n(r),c=i("XMhG"),d=i("9A4f"),h=i("qf0b"),u={name:"DvActiveRingChart",components:{dvDigitalFlop:c.a},props:{config:{type:Object,default:function(){return{}}}},data:function(){return{defaultConfig:{radius:"50%",activeRadius:"55%",data:[{name:"",value:0}],lineWidth:20,activeTimeGap:3e3,color:[],digitalFlopStyle:{fontSize:25,fill:"#fff"},digitalFlopToFixed:0,digitalFlopUnit:"",animationCurve:"easeOutCubic",animationFrame:50,showOriginValue:!1},mergedConfig:null,chart:null,activeIndex:0,animationHandler:""}},computed:{digitalFlop:function(){var t=this.mergedConfig,e=this.activeIndex;if(!t)return{};var i=t.digitalFlopStyle,a=t.digitalFlopToFixed,n=t.data,o=t.showOriginValue,s=t.digitalFlopUnit,r=n.map(function(t){return t.value}),l=void 0;if(o)l=r[e];else{var c=r.reduce(function(t,e){return t+e},0);l=parseFloat(r[e]/c*100)||0}return{content:o?"{nt}"+s:"{nt}"+(s||"%"),number:[l],style:i,toFixed:a}},ringName:function(){var t=this.mergedConfig,e=this.activeIndex;return t?t.data[e].name:""},fontSize:function(){var t=this.mergedConfig;return t?"font-size: "+t.digitalFlopStyle.fontSize+"px;":""}},watch:{config:function(){var t=this.animationHandler,e=this.mergeConfig,i=this.setRingOption;clearTimeout(t),this.activeIndex=0,e(),i()}},methods:{init:function(){var t=this.initChart,e=this.mergeConfig,i=this.setRingOption;t(),e(),i()},initChart:function(){var t=this.$refs;this.chart=new l.a(t["active-ring-chart"])},mergeConfig:function(){var t=this.defaultConfig,e=this.config;this.mergedConfig=Object(d.deepMerge)(Object(h.deepClone)(t,!0),e||{})},setRingOption:function(){var t=this.getRingOption,e=this.chart,i=this.ringAnimation,a=t();e.setOption(a,!0),i()},getRingOption:function(){var t=this.mergedConfig,e=(0,this.getRealRadius)();return t.data.forEach(function(t){t.radius=e}),{series:[s()({type:"pie"},t,{outsideLabel:{show:!1}})],color:t.color}},getRealRadius:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.mergedConfig,i=this.chart,a=e.radius,o=e.activeRadius,s=e.lineWidth,r=Math.min.apply(Math,n()(i.render.area))/2,l=s/2,c=t?o:a;return"number"!=typeof c&&(c=parseInt(c)/100*r),[c-l,c+l]},ringAnimation:function(){var t=this,e=this.activeIndex,i=this.getRingOption,a=this.chart,n=this.getRealRadius,o=n(),s=n(!0),r=i(),l=r.series[0].data;l.forEach(function(t,i){t.radius=i===e?s:o}),a.setOption(r,!0);var c=r.series[0].activeTimeGap;this.animationHandler=setTimeout(function(i){(e+=1)>=l.length&&(e=0),t.activeIndex=e,t.ringAnimation()},c)}},mounted:function(){(0,this.init)()},beforeDestroy:function(){var t=this.animationHandler;clearTimeout(t)}},f={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"dv-active-ring-chart"},[e("div",{ref:"active-ring-chart",staticClass:"active-ring-chart-container"}),this._v(" "),e("div",{staticClass:"active-ring-info"},[e("dv-digital-flop",{attrs:{config:this.digitalFlop}}),this._v(" "),e("div",{staticClass:"active-ring-name",style:this.fontSize},[this._v(this._s(this.ringName))])],1)])},staticRenderFns:[]},g=i("VU/8")(u,f,!1,null,null,null);e.a=g.exports},Wc9y:function(t,e){},WkBw:function(t,e){},WwQN:function(t,e,i){t.exports=i.p+"static/img/电子衍射模拟.06e3690.png"},XMhG:function(t,e,i){"use strict";var a=i("d7EF"),n=i.n(a),o=i("TzJp"),s=i.n(o),r=(i("5/ib"),i("9A4f")),l=i("qf0b"),c={name:"DvDigitalFlop",props:{config:{type:Object,default:function(){return{}}}},data:function(){return{renderer:null,defaultConfig:{number:[],content:"",toFixed:0,textAlign:"center",rowGap:0,style:{fontSize:30,fill:"#3de7c9"},formatter:void 0,animationCurve:"easeOutCubic",animationFrame:50},mergedConfig:null,graph:null}},watch:{config:function(){(0,this.update)()}},methods:{init:function(){var t=this.initRender,e=this.mergeConfig,i=this.initGraph;t(),e(),i()},initRender:function(){var t=this.$refs;this.renderer=new s.a(t["digital-flop"])},mergeConfig:function(){var t=this.defaultConfig,e=this.config;this.mergedConfig=Object(r.deepMerge)(Object(l.deepClone)(t,!0),e||{})},initGraph:function(){var t=this.getShape,e=this.getStyle,i=this.renderer,a=this.mergedConfig,n=a.animationCurve,o=a.animationFrame,s=t(),r=e();this.graph=i.add({name:"numberText",animationCurve:n,animationFrame:o,shape:s,style:r})},getShape:function(){var t=this.mergedConfig,e=t.number,i=t.content,a=t.toFixed,o=t.textAlign,s=t.rowGap,r=t.formatter,l=n()(this.renderer.area,2),c=l[0],d=[c/2,l[1]/2];return"left"===o&&(d[0]=0),"right"===o&&(d[0]=c),{number:e,content:i,toFixed:a,position:d,rowGap:s,formatter:r}},getStyle:function(){var t=this.mergedConfig,e=t.style,i=t.textAlign;return Object(r.deepMerge)(e,{textAlign:i,textBaseline:"middle"})},update:function(){var t=this.mergeConfig,e=this.mergeShape,i=this.getShape,a=this.getStyle,n=this.graph,o=this.mergedConfig;if(n.animationEnd(),t(),n){var s=o.animationCurve,r=o.animationFrame,l=i(),c=a();e(n,l),n.animationCurve=s,n.animationFrame=r,n.animation("style",c,!0),n.animation("shape",l)}},mergeShape:function(t,e){t.shape.number.length!==e.number.length&&(t.shape.number=e.number)}},mounted:function(){(0,this.init)()}},d={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"dv-digital-flop"},[e("canvas",{ref:"digital-flop"})])},staticRenderFns:[]},h=i("VU/8")(c,d,!1,null,null,null);e.a=h.exports},XfaR:function(t,e){},YDTR:function(t,e,i){t.exports=i.p+"static/img/fcc3.e2946cf.png"},Zy5R:function(t,e,i){"use strict";var a=i("kN6d"),n=i("3e7c"),o=i("9A4f"),s=i("qf0b"),r=i("CfEr"),l={name:"DvBorderBox12",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-12",filterId:"borderr-box-12-filterId-"+Object(n.e)(),defaultColor:["#2e6099","#7ce7fd"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(o.deepMerge)(Object(s.deepClone)(e,!0),t||[])},fade:r.fade},mounted:function(){(0,this.mergeColor)()}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-border-box-12"},[i("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[i("defs",[i("filter",{attrs:{id:t.filterId,height:"150%",width:"150%",x:"-25%",y:"-25%"}},[i("feMorphology",{attrs:{operator:"dilate",radius:"1",in:"SourceAlpha",result:"thicken"}}),t._v(" "),i("feGaussianBlur",{attrs:{in:"thicken",stdDeviation:"2",result:"blurred"}}),t._v(" "),i("feFlood",{attrs:{"flood-color":t.fade(t.mergedColor[1]||t.defaultColor[1],70),result:"glowColor"}},[i("animate",{attrs:{attributeName:"flood-color",values:"\n              "+t.fade(t.mergedColor[1]||t.defaultColor[1],70)+";\n              "+t.fade(t.mergedColor[1]||t.defaultColor[1],30)+";\n              "+t.fade(t.mergedColor[1]||t.defaultColor[1],70)+";\n            ",dur:"3s",begin:"0s",repeatCount:"indefinite"}})]),t._v(" "),i("feComposite",{attrs:{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"}}),t._v(" "),i("feMerge",[i("feMergeNode",{attrs:{in:"softGlowColored"}}),t._v(" "),i("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1)]),t._v(" "),t.width&&t.height?i("path",{attrs:{fill:t.backgroundColor,"stroke-width":"2",stroke:t.mergedColor[0],d:"\n        M15 5 L "+(t.width-15)+" 5 Q "+(t.width-5)+" 5, "+(t.width-5)+" 15\n        L "+(t.width-5)+" "+(t.height-15)+" Q "+(t.width-5)+" "+(t.height-5)+", "+(t.width-15)+" "+(t.height-5)+"\n        L 15, "+(t.height-5)+" Q 5 "+(t.height-5)+" 5 "+(t.height-15)+" L 5 15\n        Q 5 5 15 5\n      "}}):t._e(),t._v(" "),i("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+t.filterId+")",stroke:t.mergedColor[1],d:"M 20 5 L 15 5 Q 5 5 5 15 L 5 20"}}),t._v(" "),i("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+t.filterId+")",stroke:t.mergedColor[1],d:"M "+(t.width-20)+" 5 L "+(t.width-15)+" 5 Q "+(t.width-5)+" 5 "+(t.width-5)+" 15 L "+(t.width-5)+" 20"}}),t._v(" "),i("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+t.filterId+")",stroke:t.mergedColor[1],d:"\n        M "+(t.width-20)+" "+(t.height-5)+" L "+(t.width-15)+" "+(t.height-5)+"\n        Q "+(t.width-5)+" "+(t.height-5)+" "+(t.width-5)+" "+(t.height-15)+"\n        L "+(t.width-5)+" "+(t.height-20)+"\n      "}}),t._v(" "),i("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+t.filterId+")",stroke:t.mergedColor[1],d:"\n        M 20 "+(t.height-5)+" L 15 "+(t.height-5)+"\n        Q 5 "+(t.height-5)+" 5 "+(t.height-15)+"\n        L 5 "+(t.height-20)+"\n      "}})]),t._v(" "),i("div",{staticClass:"border-box-content"},[t._t("default")],2)])},staticRenderFns:[]},d=i("VU/8")(l,c,!1,null,null,null);e.a=d.exports},aBM5:function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s=i("CfEr"),r={name:"DvDecoration11",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}}},data:function(){return{ref:"decoration-11",defaultColor:["#1a98fc","#2cf7fe"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])},fade:s.fade},mounted:function(){(0,this.mergeColor)()}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-decoration-11"},[i("svg",{attrs:{width:t.width,height:t.height}},[i("polygon",{attrs:{fill:t.fade(t.mergedColor[1]||t.defaultColor[1],10),stroke:t.mergedColor[1],points:"20 10, 25 4, 55 4 60 10"}}),t._v(" "),i("polygon",{attrs:{fill:t.fade(t.mergedColor[1]||t.defaultColor[1],10),stroke:t.mergedColor[1],points:"20 "+(t.height-10)+", 25 "+(t.height-4)+", 55 "+(t.height-4)+" 60 "+(t.height-10)}}),t._v(" "),i("polygon",{attrs:{fill:t.fade(t.mergedColor[1]||t.defaultColor[1],10),stroke:t.mergedColor[1],points:t.width-20+" 10, "+(t.width-25)+" 4, "+(t.width-55)+" 4 "+(t.width-60)+" 10"}}),t._v(" "),i("polygon",{attrs:{fill:t.fade(t.mergedColor[1]||t.defaultColor[1],10),stroke:t.mergedColor[1],points:t.width-20+" "+(t.height-10)+", "+(t.width-25)+" "+(t.height-4)+", "+(t.width-55)+" "+(t.height-4)+" "+(t.width-60)+" "+(t.height-10)}}),t._v(" "),i("polygon",{attrs:{fill:t.fade(t.mergedColor[0]||t.defaultColor[0],20),stroke:t.mergedColor[0],points:"\n        20 10, 5 "+t.height/2+" 20 "+(t.height-10)+"\n        "+(t.width-20)+" "+(t.height-10)+" "+(t.width-5)+" "+t.height/2+" "+(t.width-20)+" 10\n      "}}),t._v(" "),i("polyline",{attrs:{fill:"transparent",stroke:t.fade(t.mergedColor[0]||t.defaultColor[0],70),points:"25 18, 15 "+t.height/2+" 25 "+(t.height-18)}}),t._v(" "),i("polyline",{attrs:{fill:"transparent",stroke:t.fade(t.mergedColor[0]||t.defaultColor[0],70),points:t.width-25+" 18, "+(t.width-15)+" "+t.height/2+" "+(t.width-25)+" "+(t.height-18)}})]),t._v(" "),i("div",{staticClass:"decoration-content"},[t._t("default")],2)])},staticRenderFns:[]},c=i("VU/8")(r,l,!1,null,null,null);e.a=c.exports},aCAP:function(t,e,i){t.exports=i.p+"static/img/logo4.ddfb430.png"},aS4y:function(t,e){},abaV:function(t,e){},acHp:function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s={name:"DvBorderBox3",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-3",defaultColor:["#2862b7","#2862b7"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-border-box-3"},[i("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[i("polygon",{attrs:{fill:t.backgroundColor,points:"\n      23, 23 "+(t.width-24)+", 23 "+(t.width-24)+", "+(t.height-24)+" 23, "+(t.height-24)+"\n    "}}),t._v(" "),i("polyline",{staticClass:"dv-bb3-line1",attrs:{stroke:t.mergedColor[0],points:"4, 4 "+(t.width-22)+" ,4 "+(t.width-22)+", "+(t.height-22)+" 4, "+(t.height-22)+" 4, 4"}}),t._v(" "),i("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:t.mergedColor[1],points:"10, 10 "+(t.width-16)+", 10 "+(t.width-16)+", "+(t.height-16)+" 10, "+(t.height-16)+" 10, 10"}}),t._v(" "),i("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:t.mergedColor[1],points:"16, 16 "+(t.width-10)+", 16 "+(t.width-10)+", "+(t.height-10)+" 16, "+(t.height-10)+" 16, 16"}}),t._v(" "),i("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:t.mergedColor[1],points:"22, 22 "+(t.width-4)+", 22 "+(t.width-4)+", "+(t.height-4)+" 22, "+(t.height-4)+" 22, 22"}})]),t._v(" "),i("div",{staticClass:"border-box-content"},[t._t("default")],2)])},staticRenderFns:[]},l=i("VU/8")(s,r,!1,null,null,null);e.a=l.exports},apZ3:function(t,e,i){t.exports=i.p+"static/img/618.754a688.png"},bQSR:function(t,e){},bX3P:function(t,e,i){"use strict";var a=i("Xxa5"),n=i.n(a),o=i("exGp"),s=i.n(o),r=i("d7EF"),l=i.n(r),c=i("Gu7T"),d=i.n(c),h=i("3e7c"),u=i("9A4f"),f=i("qf0b"),g=i("TzJp"),p=i.n(g),m={name:"DvWaterLevelPond",props:{config:Object,default:function(){return{}}},data:function(){return{gradientId:"water-level-pond-"+Object(h.e)(),defaultConfig:{data:[],shape:"rect",waveNum:3,waveHeight:40,waveOpacity:.4,colors:["#3DE7C9","#00BAFF"],formatter:"{value}%"},mergedConfig:{},renderer:null,svgBorderGradient:[],details:"",waves:[],animation:!1}},computed:{radius:function(){var t=this.mergedConfig.shape;return"round"===t?"50%":"rect"===t?"0":"roundRect"===t?"10px":"0"},shape:function(){var t=this.mergedConfig.shape;return t||"rect"}},watch:{config:function(){var t=this.calcData;this.renderer.delAllGraph(),this.waves=[],setTimeout(t,0)}},methods:{init:function(){var t=this.initRender,e=this.config,i=this.calcData;t(),e&&i()},initRender:function(){var t=this.$refs;this.renderer=new p.a(t["water-pond-level"])},calcData:function(){var t=this.mergeConfig,e=this.calcSvgBorderGradient,i=this.calcDetails;t(),e(),i();var a=this.addWave,n=this.animationWave;a(),n()},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(u.deepMerge)(Object(f.deepClone)(e,!0),t)},calcSvgBorderGradient:function(){var t=this.mergedConfig.colors,e=100/(t.length-1);this.svgBorderGradient=t.map(function(t,i){return[e*i,t]})},calcDetails:function(){var t=this.mergedConfig,e=t.data,i=t.formatter;if(e.length){var a=Math.max.apply(Math,d()(e));this.details=i.replace("{value}",a)}else this.details=""},addWave:function(){var t=this.renderer,e=this.getWaveShapes,i=this.getWaveStyle,a=this.drawed,n=e(),o=i();this.waves=n.map(function(e){return t.add({name:"smoothline",animationFrame:300,shape:e,style:o,drawed:a})})},getWaveShapes:function(){var t=this.mergedConfig,e=this.renderer,i=this.mergeOffset,a=t.waveNum,n=t.waveHeight,o=t.data,s=l()(e.area,2),r=s[0],c=s[1],d=4*a+4,h=r/a/2;return o.map(function(t){var e=new Array(d).fill(0).map(function(e,i){var a=(1-t/100)*c;return[r-h*i,i%2==0?a:a-n]});return{points:e=e.map(function(t){return i(t,[2*h,0])})}})},mergeOffset:function(t,e){var i=l()(t,2),a=i[0],n=i[1],o=l()(e,2);return[a+o[0],n+o[1]]},getWaveStyle:function(){var t=this.renderer,e=this.mergedConfig,i=t.area[1];return{gradientColor:e.colors,gradientType:"linear",gradientParams:[0,0,0,i],gradientWith:"fill",opacity:e.waveOpacity,translate:[0,0]}},drawed:function(t,e){var i=t.shape.points,a=e.ctx,n=e.area,o=i[0],s=i.slice(-1)[0],r=n[1];a.lineTo(s[0],r),a.lineTo(o[0],r),a.closePath(),a.fill()},animationWave:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return s()(n.a.mark(function i(){var a,o,s;return n.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(a=t.waves,o=t.renderer,!t.animation){i.next=3;break}return i.abrupt("return");case 3:return t.animation=!0,s=o.area[0],a.forEach(function(t){t.attr("style",{translate:[0,0]}),t.animation("style",{translate:[s,0]},!0)}),i.next=8,o.launchAnimation();case 8:if(t.animation=!1,o.graphs.length){i.next=11;break}return i.abrupt("return");case 11:t.animationWave(e+1);case 12:case"end":return i.stop()}},i,t)}))()}},mounted:function(){(0,this.init)()},beforeDestroy:function(){this.renderer.delAllGraph(),this.waves=[]}},v={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"dv-water-pond-level"},[t.renderer?i("svg",[i("defs",[i("linearGradient",{attrs:{id:t.gradientId,x1:"0%",y1:"0%",x2:"0%",y2:"100%"}},t._l(t.svgBorderGradient,function(t){return i("stop",{key:t[0],attrs:{offset:t[0],"stop-color":t[1]}})}),1)],1),t._v(" "),t.renderer?i("text",{attrs:{stroke:"url(#"+t.gradientId+")",fill:"url(#"+t.gradientId+")",x:t.renderer.area[0]/2+8,y:t.renderer.area[1]/2+8}},[t._v("\n      "+t._s(t.details)+"\n    ")]):t._e(),t._v(" "),t.shape&&"round"!==t.shape?i("rect",{attrs:{x:"2",y:"2",rx:"roundRect"===t.shape?10:0,ry:"roundRect"===t.shape?10:0,width:t.renderer.area[0]+12,height:t.renderer.area[1]+12,stroke:"url(#"+t.gradientId+")"}}):i("ellipse",{attrs:{cx:t.renderer.area[0]/2+8,cy:t.renderer.area[1]/2+8,rx:t.renderer.area[0]/2+5,ry:t.renderer.area[1]/2+5,stroke:"url(#"+t.gradientId+")"}})]):t._e(),t._v(" "),i("canvas",{ref:"water-pond-level",style:"border-radius: "+t.radius+";"})])},staticRenderFns:[]},b=i("VU/8")(m,v,!1,null,null,null);e.a=b.exports},"bn/u":function(t,e){},bxTc:function(t,e){},c9ur:function(t,e){},cEED:function(t,e){},cQII:function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s={name:"DvDecoration4",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},data:function(){return{ref:"decoration-4",defaultColor:["rgba(255, 255, 255, 0.3)","rgba(255, 255, 255, 0.3)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-decoration-4"},[i("div",{class:"container "+(t.reverse?"reverse":"normal"),style:t.reverse?"width:"+t.width+"px;height:5px;animation-duration:"+t.dur+"s":"width:5px;height:"+t.height+"px;animation-duration:"+t.dur+"s"},[i("svg",{attrs:{width:t.reverse?t.width:5,height:t.reverse?5:t.height}},[i("polyline",{attrs:{stroke:t.mergedColor[0],points:t.reverse?"0, 2.5 "+t.width+", 2.5":"2.5, 0 2.5, "+t.height}}),t._v(" "),i("polyline",{staticClass:"bold-line",attrs:{stroke:t.mergedColor[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:t.reverse?"0, 2.5 "+t.width+", 2.5":"2.5, 0 2.5, "+t.height}})])])])},staticRenderFns:[]},l=i("VU/8")(s,r,!1,null,null,null);e.a=l.exports},cRcz:function(t,e){},ccdI:function(t,e,i){t.exports=i.p+"static/img/ILAC.3b68683.png"},cgqx:function(t,e,i){"use strict";var a=i("Xxa5"),n=i.n(a),o=i("//Fk"),s=i.n(o),r=i("exGp"),l=i.n(r),c=i("Dd8w"),d=i.n(c),h=i("Gu7T"),u=i.n(h),f=i("kN6d"),g=i("9A4f"),p=i("qf0b"),m={name:"DvScrollRankingBoard",mixins:[f.a],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"scroll-ranking-board",defaultConfig:{data:[],rowNum:5,waitTime:2e3,carousel:"single",unit:"",sort:!0,valueFormatter:null},mergedConfig:null,rowsData:[],rows:[],heights:[],animationIndex:0,animationHandler:"",updater:0}},watch:{config:function(){var t=this.stopAnimation,e=this.calcData;t(),e()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcData)()},onResize:function(){var t=this.mergedConfig,e=this.calcHeights;t&&e(!0)},calcData:function(){var t=this.mergeConfig,e=this.calcRowsData;t(),e(),(0,this.calcHeights)(),(0,this.animation)(!0)},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(g.deepMerge)(Object(p.deepClone)(e,!0),t||{})},calcRowsData:function(){var t=this.mergedConfig,e=t.data,i=t.rowNum;t.sort&&e.sort(function(t,e){var i=t.value,a=e.value;return i>a?-1:i<a?1:i===a?0:void 0});var a=e.map(function(t){return t.value}),n=Math.min.apply(Math,u()(a))||0,o=Math.abs(n),s=Math.max.apply(Math,u()(a))||0,r=(Math.abs(s),s+o),l=(e=e.map(function(t,e){return d()({},t,{ranking:e+1,percent:(t.value+o)/r*100})})).length;l>i&&l<2*i&&(e=[].concat(u()(e),u()(e))),e=e.map(function(t,e){return d()({},t,{scroll:e})}),this.rowsData=e,this.rows=e},calcHeights:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.height,i=this.mergedConfig,a=i.rowNum,n=i.data,o=e/a;this.avgHeight=o,t||(this.heights=new Array(n.length).fill(o))},animation:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return l()(n.a.mark(function i(){var a,o,r,l,c,d,h,f,g,p,m,v,b,y;return n.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(o=t.avgHeight,r=t.animationIndex,l=t.mergedConfig,c=t.rowsData,d=t.animation,h=t.updater,f=l.waitTime,g=l.carousel,p=l.rowNum,m=c.length,!(p>=m)){i.next=5;break}return i.abrupt("return");case 5:if(!e){i.next=10;break}return i.next=8,new s.a(function(t){return setTimeout(t,f)});case 8:if(h===t.updater){i.next=10;break}return i.abrupt("return");case 10:return v="single"===g?1:p,(b=c.slice(r)).push.apply(b,u()(c.slice(0,r))),t.rows=b.slice(0,p+1),t.heights=new Array(m).fill(o),i.next=17,new s.a(function(t){return setTimeout(t,300)});case 17:if(h===t.updater){i.next=19;break}return i.abrupt("return");case 19:(a=t.heights).splice.apply(a,[0,v].concat(u()(new Array(v).fill(0)))),(y=(r+=v)-m)>=0&&(r=y),t.animationIndex=r,t.animationHandler=setTimeout(d,f-300);case 25:case"end":return i.stop()}},i,t)}))()},stopAnimation:function(){var t=this.animationHandler,e=this.updater;this.updater=(e+1)%999999,t&&clearTimeout(t)}},destroyed:function(){(0,this.stopAnimation)()}},v={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-scroll-ranking-board"},t._l(t.rows,function(e,a){return i("div",{key:e.toString()+e.scroll,staticClass:"row-item",style:"height: "+t.heights[a]+"px;"},[i("div",{staticClass:"ranking-info"},[i("div",{staticClass:"rank"},[t._v("No."+t._s(e.ranking))]),t._v(" "),i("div",{staticClass:"info-name",domProps:{innerHTML:t._s(e.name)}}),t._v(" "),i("div",{staticClass:"ranking-value"},[t._v(t._s(t.mergedConfig.valueFormatter?t.mergedConfig.valueFormatter(e):e.value+t.mergedConfig.unit))])]),t._v(" "),i("div",{staticClass:"ranking-column"},[i("div",{staticClass:"inside-column",style:"width: "+e.percent+"%;"},[i("div",{staticClass:"shine"})])])])}),0)},staticRenderFns:[]},b=i("VU/8")(m,v,!1,null,null,null);e.a=b.exports},ctr7:function(t,e){},"d+3u":function(t,e,i){t.exports=i.p+"static/img/GPA分析.2106819.jpg"},d5Tr:function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s={name:"DvDecoration2",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:6}},data:function(){return{ref:"decoration-2",x:0,y:0,w:0,h:0,defaultColor:["#3faacb","#fff"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()},reverse:function(){(0,this.calcSVGData)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcSVGData)()},calcSVGData:function(){var t=this.reverse,e=this.width,i=this.height;t?(this.w=1,this.h=i,this.x=e/2,this.y=0):(this.w=e,this.h=1,this.x=0,this.y=i/2)},onResize:function(){(0,this.calcSVGData)()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-decoration-2"},[i("svg",{attrs:{width:t.width+"px",height:t.height+"px"}},[i("rect",{attrs:{x:t.x,y:t.y,width:t.w,height:t.h,fill:t.mergedColor[0]}},[i("animate",{attrs:{attributeName:t.reverse?"height":"width",from:"0",to:t.reverse?t.height:t.width,dur:t.dur+"s",calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"}})]),t._v(" "),i("rect",{attrs:{x:t.x,y:t.y,width:"1",height:"1",fill:t.mergedColor[1]}},[i("animate",{attrs:{attributeName:t.reverse?"y":"x",from:"0",to:t.reverse?t.height:t.width,dur:t.dur+"s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"}})])])])},staticRenderFns:[]},l=i("VU/8")(s,r,!1,null,null,null);e.a=l.exports},dCKE:function(t,e,i){"use strict";var a={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"dv-loading"},[e("svg",{attrs:{width:"50px",height:"50px"}},[e("circle",{attrs:{cx:"25",cy:"25",r:"20",fill:"transparent","stroke-width":"3","stroke-dasharray":"31.415, 31.415",stroke:"#02bcfe","stroke-linecap":"round"}},[e("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0, 25 25;360, 25 25",dur:"1.5s",repeatCount:"indefinite"}}),this._v(" "),e("animate",{attrs:{attributeName:"stroke",values:"#02bcfe;#3be6cb;#02bcfe",dur:"3s",repeatCount:"indefinite"}})],1),this._v(" "),e("circle",{attrs:{cx:"25",cy:"25",r:"10",fill:"transparent","stroke-width":"3","stroke-dasharray":"15.7, 15.7",stroke:"#3be6cb","stroke-linecap":"round"}},[e("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"360, 25 25;0, 25 25",dur:"1.5s",repeatCount:"indefinite"}}),this._v(" "),e("animate",{attrs:{attributeName:"stroke",values:"#3be6cb;#02bcfe;#3be6cb",dur:"3s",repeatCount:"indefinite"}})],1)]),this._v(" "),e("div",{staticClass:"loading-tip"},[this._t("default")],2)])},staticRenderFns:[]},n=i("VU/8")({name:"DvLoading"},a,!1,null,null,null);e.a=n.exports},dkI2:function(t,e){},ejIc:function(t,e){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},f2hL:function(t,e){},"fKJ/":function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s={name:"DvBorderBox6",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-6",defaultColor:["rgba(255, 255, 255, 0.35)","gray"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-border-box-6"},[i("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[i("polygon",{attrs:{fill:t.backgroundColor,points:"\n      9, 7 "+(t.width-9)+", 7 "+(t.width-9)+", "+(t.height-7)+" 9, "+(t.height-7)+"\n    "}}),t._v(" "),i("circle",{attrs:{fill:t.mergedColor[1],cx:"5",cy:"5",r:"2"}}),t._v(" "),i("circle",{attrs:{fill:t.mergedColor[1],cx:t.width-5,cy:"5",r:"2"}}),t._v(" "),i("circle",{attrs:{fill:t.mergedColor[1],cx:t.width-5,cy:t.height-5,r:"2"}}),t._v(" "),i("circle",{attrs:{fill:t.mergedColor[1],cx:"5",cy:t.height-5,r:"2"}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],points:"10, 4 "+(t.width-10)+", 4"}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],points:"10, "+(t.height-4)+" "+(t.width-10)+", "+(t.height-4)}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],points:"5, 70 5, "+(t.height-70)}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-5+", 70 "+(t.width-5)+", "+(t.height-70)}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],points:"3, 10, 3, 50"}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],points:"7, 30 7, 80"}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-3+", 10 "+(t.width-3)+", 50"}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-7+", 30 "+(t.width-7)+", 80"}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],points:"3, "+(t.height-10)+" 3, "+(t.height-50)}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],points:"7, "+(t.height-30)+" 7, "+(t.height-80)}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-3+", "+(t.height-10)+" "+(t.width-3)+", "+(t.height-50)}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-7+", "+(t.height-30)+" "+(t.width-7)+", "+(t.height-80)}})]),t._v(" "),i("div",{staticClass:"border-box-content"},[t._t("default")],2)])},staticRenderFns:[]},l=i("VU/8")(s,r,!1,null,null,null);e.a=l.exports},fKe7:function(t,e){},fNZA:function(t,e,i){t.exports=i.p+"static/img/bcc2.a5c2b7e.png"},"fP//":function(t,e){},fcCt:function(t,e,i){t.exports=i.p+"static/img/1.29d4df6.png"},fli6:function(t,e){},g3jD:function(t,e){},gUFK:function(t,e){},gqle:function(t,e,i){t.exports=i.p+"static/img/粒径统计.ee84ecf.png"},hi57:function(t,e){},ilCB:function(t,e){},jL7h:function(t,e,i){t.exports=i.p+"static/img/qrCode.f27c608.png"},jWDM:function(t,e){},"l/9O":function(t,e,i){"use strict";e.a=function(t,e){return Object(a.b)({url:"/material/api/diffrings?uuid="+t,method:"post",data:e})},e.b=function(t,e){return Object(a.b)({url:"/material/api/detect?uuid?uuid="+t,method:"post",data:e})},e.c=function(t,e){return Object(a.b)({url:"/material/api/commonAnalyze?uuid="+t,method:"post",data:e})},e.d=function(t){return Object(a.b)({url:"/material/api/BrowserRecord",method:"post",data:{cmd:t}})};var a=i("vLgD")},l2os:function(t,e){},mwHJ:function(t,e,i){"use strict";var a=i("3e7c"),n=i("kN6d"),o=i("z0b2"),s=i.n(o),r={name:"DvCharts",mixins:[n.a],props:{option:{type:Object,default:function(){return{}}}},data:function(){var t=Object(a.e)();return{ref:"charts-container-"+t,chartRef:"chart-"+t,chart:null}},watch:{option:function(){var t=this.chart,e=this.option;t&&(e||(e={}),t.setOption(e,!0))}},methods:{afterAutoResizeMixinInit:function(){(0,this.initChart)()},initChart:function(){var t=this.$refs,e=this.chartRef,i=this.option,a=this.chart=new s.a(t[e]);i&&a.setOption(i)},onResize:function(){var t=this.chart;t&&t.resize()}}},l={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{ref:this.ref,staticClass:"dv-charts-container"},[e("div",{ref:this.chartRef,staticClass:"charts-canvas-container"})])},staticRenderFns:[]},c=i("VU/8")(r,l,!1,null,null,null);e.a=c.exports},"n/EX":function(t,e,i){t.exports=i.p+"static/img/sample_hrtem.4a730a3.jpg"},n4z2:function(t,e,i){"use strict";var a=i("kN6d"),n=i("3e7c"),o=i("9A4f"),s=i("qf0b"),r={name:"DvBorderBox9",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var t=Object(n.e)();return{ref:"border-box-9",gradientId:"border-box-9-gradient-"+t,maskId:"border-box-9-mask-"+t,defaultColor:["#11eefd","#0078d2"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(o.deepMerge)(Object(s.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-border-box-9"},[i("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[i("defs",[i("linearGradient",{attrs:{id:t.gradientId,x1:"0%",y1:"0%",x2:"100%",y2:"100%"}},[i("animate",{attrs:{attributeName:"x1",values:"0%;100%;0%",dur:"10s",begin:"0s",repeatCount:"indefinite"}}),t._v(" "),i("animate",{attrs:{attributeName:"x2",values:"100%;0%;100%",dur:"10s",begin:"0s",repeatCount:"indefinite"}}),t._v(" "),i("stop",{attrs:{offset:"0%","stop-color":t.mergedColor[0]}},[i("animate",{attrs:{attributeName:"stop-color",values:t.mergedColor[0]+";"+t.mergedColor[1]+";"+t.mergedColor[0],dur:"10s",begin:"0s",repeatCount:"indefinite"}})]),t._v(" "),i("stop",{attrs:{offset:"100%","stop-color":t.mergedColor[1]}},[i("animate",{attrs:{attributeName:"stop-color",values:t.mergedColor[1]+";"+t.mergedColor[0]+";"+t.mergedColor[1],dur:"10s",begin:"0s",repeatCount:"indefinite"}})])],1),t._v(" "),i("mask",{attrs:{id:t.maskId}},[i("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, "+.4*t.height+" 8, 3, "+(.4*t.width+7)+", 3"}}),t._v(" "),i("polyline",{attrs:{fill:"#fff",points:"8, "+.15*t.height+" 8, 3, "+(.1*t.width+7)+", 3\n            "+.1*t.width+", 8 14, 8 14, "+(.15*t.height-7)+"\n          "}}),t._v(" "),i("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:.5*t.width+", 3 "+(t.width-3)+", 3, "+(t.width-3)+", "+.25*t.height}}),t._v(" "),i("polyline",{attrs:{fill:"#fff",points:"\n            "+.52*t.width+", 3 "+.58*t.width+", 3\n            "+(.58*t.width-7)+", 9 "+(.52*t.width+7)+", 9\n          "}}),t._v(" "),i("polyline",{attrs:{fill:"#fff",points:"\n            "+.9*t.width+", 3 "+(t.width-3)+", 3 "+(t.width-3)+", "+.1*t.height+"\n            "+(t.width-9)+", "+(.1*t.height-7)+" "+(t.width-9)+", 9 "+(.9*t.width+7)+", 9\n          "}}),t._v(" "),i("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, "+.5*t.height+" 8, "+(t.height-3)+" "+(.3*t.width+7)+", "+(t.height-3)}}),t._v(" "),i("polyline",{attrs:{fill:"#fff",points:"\n            8, "+.55*t.height+" 8, "+.7*t.height+"\n            2, "+(.7*t.height-7)+" 2, "+(.55*t.height+7)+"\n          "}}),t._v(" "),i("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:.35*t.width+", "+(t.height-3)+" "+(t.width-3)+", "+(t.height-3)+" "+(t.width-3)+", "+.35*t.height}}),t._v(" "),i("polyline",{attrs:{fill:"#fff",points:"\n            "+.92*t.width+", "+(t.height-3)+" "+(t.width-3)+", "+(t.height-3)+" "+(t.width-3)+", "+.8*t.height+"\n            "+(t.width-9)+", "+(.8*t.height+7)+" "+(t.width-9)+", "+(t.height-9)+" "+(.92*t.width+7)+", "+(t.height-9)+"\n          "}})])],1),t._v(" "),i("polygon",{attrs:{fill:t.backgroundColor,points:"\n      15, 9 "+(.1*t.width+1)+", 9 "+(.1*t.width+4)+", 6 "+(.52*t.width+2)+", 6\n      "+(.52*t.width+6)+", 10 "+(.58*t.width-7)+", 10 "+(.58*t.width-2)+", 6\n      "+(.9*t.width+2)+", 6 "+(.9*t.width+6)+", 10 "+(t.width-10)+", 10 "+(t.width-10)+", "+(.1*t.height-6)+"\n      "+(t.width-6)+", "+(.1*t.height-1)+" "+(t.width-6)+", "+(.8*t.height+1)+" "+(t.width-10)+", "+(.8*t.height+6)+"\n      "+(t.width-10)+", "+(t.height-10)+" "+(.92*t.width+7)+", "+(t.height-10)+"  "+(.92*t.width+2)+", "+(t.height-6)+"\n      11, "+(t.height-6)+" 11, "+(.15*t.height-2)+" 15, "+(.15*t.height-7)+"\n    "}}),t._v(" "),i("rect",{attrs:{x:"0",y:"0",width:t.width,height:t.height,fill:"url(#"+t.gradientId+")",mask:"url(#"+t.maskId+")"}})]),t._v(" "),i("div",{staticClass:"border-box-content"},[t._t("default")],2)])},staticRenderFns:[]},c=i("VU/8")(r,l,!1,null,null,null);e.a=c.exports},n6vE:function(t,e){},nHoh:function(t,e,i){"use strict";var a=i("kN6d"),n=i("3e7c"),o=i("9A4f"),s=i("qf0b"),r=i("CfEr"),l={name:"DvBorderBox11",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},titleWidth:{type:Number,default:250},title:{type:String,default:""},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-11",filterId:"border-box-11-filterId-"+Object(n.e)(),defaultColor:["#8aaafb","#1f33a2"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(o.deepMerge)(Object(s.deepClone)(e,!0),t||[])},fade:r.fade},mounted:function(){(0,this.mergeColor)()}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-border-box-11"},[i("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[i("defs",[i("filter",{attrs:{id:t.filterId,height:"150%",width:"150%",x:"-25%",y:"-25%"}},[i("feMorphology",{attrs:{operator:"dilate",radius:"2",in:"SourceAlpha",result:"thicken"}}),t._v(" "),i("feGaussianBlur",{attrs:{in:"thicken",stdDeviation:"3",result:"blurred"}}),t._v(" "),i("feFlood",{attrs:{"flood-color":t.mergedColor[1],result:"glowColor"}}),t._v(" "),i("feComposite",{attrs:{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"}}),t._v(" "),i("feMerge",[i("feMergeNode",{attrs:{in:"softGlowColored"}}),t._v(" "),i("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1)]),t._v(" "),i("polygon",{attrs:{fill:t.backgroundColor,points:"\n      20, 32 "+(.5*t.width-t.titleWidth/2)+", 32 "+(.5*t.width-t.titleWidth/2+20)+", 53\n      "+(.5*t.width+t.titleWidth/2-20)+", 53 "+(.5*t.width+t.titleWidth/2)+", 32\n      "+(t.width-20)+", 32 "+(t.width-8)+", 48 "+(t.width-8)+", "+(t.height-25)+" "+(t.width-20)+", "+(t.height-8)+"\n      20, "+(t.height-8)+" 8, "+(t.height-25)+" 8, 50\n    "}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],filter:"url(#"+t.filterId+")",points:"\n        "+(t.width-t.titleWidth)/2+", 30\n        20, 30 7, 50 7, "+(50+(t.height-167)/2)+"\n        13, "+(55+(t.height-167)/2)+" 13, "+(135+(t.height-167)/2)+"\n        7, "+(140+(t.height-167)/2)+" 7, "+(t.height-27)+"\n        20, "+(t.height-7)+" "+(t.width-20)+", "+(t.height-7)+" "+(t.width-7)+", "+(t.height-27)+"\n        "+(t.width-7)+", "+(140+(t.height-167)/2)+" "+(t.width-13)+", "+(135+(t.height-167)/2)+"\n        "+(t.width-13)+", "+(55+(t.height-167)/2)+" "+(t.width-7)+", "+(50+(t.height-167)/2)+"\n        "+(t.width-7)+", 50 "+(t.width-20)+", 30 "+(t.width+t.titleWidth)/2+", 30\n        "+((t.width+t.titleWidth)/2-20)+", 7 "+((t.width-t.titleWidth)/2+20)+", 7\n        "+(t.width-t.titleWidth)/2+", 30 "+((t.width-t.titleWidth)/2+20)+", 52\n        "+((t.width+t.titleWidth)/2-20)+", 52 "+(t.width+t.titleWidth)/2+", 30\n      "}}),t._v(" "),i("polygon",{attrs:{stroke:t.mergedColor[0],fill:"transparent",points:"\n        "+((t.width+t.titleWidth)/2-5)+", 30 "+((t.width+t.titleWidth)/2-21)+", 11\n        "+((t.width+t.titleWidth)/2-27)+", 11 "+((t.width+t.titleWidth)/2-8)+", 34\n      "}}),t._v(" "),i("polygon",{attrs:{stroke:t.mergedColor[0],fill:"transparent",points:"\n        "+((t.width-t.titleWidth)/2+5)+", 30 "+((t.width-t.titleWidth)/2+22)+", 49\n        "+((t.width-t.titleWidth)/2+28)+", 49 "+((t.width-t.titleWidth)/2+8)+", 26\n      "}}),t._v(" "),i("polygon",{attrs:{stroke:t.mergedColor[0],fill:t.fade(t.mergedColor[1]||t.defaultColor[1],30),filter:"url(#"+t.filterId+")",points:"\n        "+((t.width+t.titleWidth)/2-11)+", 37 "+((t.width+t.titleWidth)/2-32)+", 11\n        "+((t.width-t.titleWidth)/2+23)+", 11 "+((t.width-t.titleWidth)/2+11)+", 23\n        "+((t.width-t.titleWidth)/2+33)+", 49 "+((t.width+t.titleWidth)/2-22)+", 49\n      "}}),t._v(" "),i("polygon",{attrs:{filter:"url(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"1",points:"\n        "+((t.width-t.titleWidth)/2-10)+", 37 "+((t.width-t.titleWidth)/2-31)+", 37\n        "+((t.width-t.titleWidth)/2-25)+", 46 "+((t.width-t.titleWidth)/2-4)+", 46\n      "}},[i("animate",{attrs:{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t._v(" "),i("polygon",{attrs:{filter:"url(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"0.7",points:"\n        "+((t.width-t.titleWidth)/2-40)+", 37 "+((t.width-t.titleWidth)/2-61)+", 37\n        "+((t.width-t.titleWidth)/2-55)+", 46 "+((t.width-t.titleWidth)/2-34)+", 46\n      "}},[i("animate",{attrs:{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t._v(" "),i("polygon",{attrs:{filter:"url(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"0.5",points:"\n        "+((t.width-t.titleWidth)/2-70)+", 37 "+((t.width-t.titleWidth)/2-91)+", 37\n        "+((t.width-t.titleWidth)/2-85)+", 46 "+((t.width-t.titleWidth)/2-64)+", 46\n      "}},[i("animate",{attrs:{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t._v(" "),i("polygon",{attrs:{filter:"url(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"1",points:"\n        "+((t.width+t.titleWidth)/2+30)+", 37 "+((t.width+t.titleWidth)/2+9)+", 37\n        "+((t.width+t.titleWidth)/2+3)+", 46 "+((t.width+t.titleWidth)/2+24)+", 46\n      "}},[i("animate",{attrs:{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t._v(" "),i("polygon",{attrs:{filter:"url(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"0.7",points:"\n        "+((t.width+t.titleWidth)/2+60)+", 37 "+((t.width+t.titleWidth)/2+39)+", 37\n        "+((t.width+t.titleWidth)/2+33)+", 46 "+((t.width+t.titleWidth)/2+54)+", 46\n      "}},[i("animate",{attrs:{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t._v(" "),i("polygon",{attrs:{filter:"url(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"0.5",points:"\n        "+((t.width+t.titleWidth)/2+90)+", 37 "+((t.width+t.titleWidth)/2+69)+", 37\n        "+((t.width+t.titleWidth)/2+63)+", 46 "+((t.width+t.titleWidth)/2+84)+", 46\n      "}},[i("animate",{attrs:{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t._v(" "),i("text",{staticClass:"dv-border-box-11-title",attrs:{x:""+t.width/2,y:"32",fill:"#fff","font-size":"18","text-anchor":"middle","dominant-baseline":"middle"}},[t._v("\n      "+t._s(t.title)+"\n    ")]),t._v(" "),i("polygon",{attrs:{fill:t.mergedColor[0],filter:"url(#"+t.filterId+")",points:"\n        7, "+(53+(t.height-167)/2)+" 11, "+(57+(t.height-167)/2)+"\n        11, "+(133+(t.height-167)/2)+" 7, "+(137+(t.height-167)/2)+"\n      "}}),t._v(" "),i("polygon",{attrs:{fill:t.mergedColor[0],filter:"url(#"+t.filterId+")",points:"\n        "+(t.width-7)+", "+(53+(t.height-167)/2)+" "+(t.width-11)+", "+(57+(t.height-167)/2)+"\n        "+(t.width-11)+", "+(133+(t.height-167)/2)+" "+(t.width-7)+", "+(137+(t.height-167)/2)+"\n      "}})]),t._v(" "),i("div",{staticClass:"border-box-content"},[t._t("default")],2)])},staticRenderFns:[]},d=i("VU/8")(l,c,!1,null,null,null);e.a=d.exports},nkOi:function(t,e,i){t.exports=i.p+"static/img/login-logo.39c083b.png"},nrce:function(t,e,i){t.exports=i.p+"static/img/sample-rings.6a8493b.jpg"},oAV5:function(t,e,i){"use strict";var a=i("Xxa5"),n=i.n(a),o=i("exGp"),s=i.n(o),r=i("PMNR"),l=i.n(r),c=i("+SRO"),d=i.n(c),h=i("t4zo"),u=i.n(h),f=i("7+uW");e.a=function(t,e){var i=this,a=new l.a,o=new d.a.Workbook;o.creator="result",o.lastModifiedBy="result";var r,c=o.addWorksheet("分析结果");if(t.length>0){var h=[];for(var g in t[0])h.push({header:g,key:g});c.columns=h,c.getColumn(7).width=20,c.getColumn(8).width=20,c.getColumn(9).width=20,c.getColumn(10).width=20,c.getColumn(11).width=20,c.addRows(t)}o.xlsx.writeBuffer().then((r=s()(n.a.mark(function t(o){var s;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"}),a.file("分析结果.png",e,{base64:!0}),a.file("分析结果.xlsx",s),f.default.prototype.Questions_code)try{a.file("咨询二维码.jpg",f.default.prototype.Questions_code,{binary:!0}),console.log("zip jpg ok.")}catch(t){console.log("zip jpg failed."),console.log(t)}a.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:9}}).then(function(t){u.a.saveAs(t,"分析结果.zip")});case 5:case"end":return t.stop()}},t,i)})),function(t){return r.apply(this,arguments)}))}},oKBY:function(t,e){},odpv:function(t,e){t.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABGAAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkUxOUQ4MzQ5MDEwNzExRUE5NzBGODUwQTJEMzUwNUVBIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkUxOUQ4MzRBMDEwNzExRUE5NzBGODUwQTJEMzUwNUVBIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RTE5RDgzNDcwMTA3MTFFQTk3MEY4NTBBMkQzNTA1RUEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RTE5RDgzNDgwMTA3MTFFQTk3MEY4NTBBMkQzNTA1RUEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAAEAwMDAwMEAwMEBgQDBAYHBQQEBQcIBgYHBgYICggJCQkJCAoKDAwMDAwKDAwNDQwMEREREREUFBQUFBQUFBQUAQQFBQgHCA8KCg8UDg4OFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCABuAG4DAREAAhEBAxEB/8QAowAAAwACAwEAAAAAAAAAAAAAAwQFAgYBBwgAAQACAwEBAQAAAAAAAAAAAAACAwABBAUGBxAAAgECBAQEAwQIBQUBAAAAAQIDEQQAIRIFMUETBlFhIgdxMhSBocEVseFCUmJyMwiR0ZIjJPCywjQWJhEAAgECBAQEBQQABwAAAAAAAAECEQMhMRIEQVETBWGRIhRxgaEyFfCxQlLB0eFiM0MW/9oADAMBAAIRAxEAPwDyJeRnrSOuTKxII45Y+lx4Mk7VYsPY7nd3E8NnI8Y6rrH1ZFJpqyzoRXGpX3xMDso7H27tGFwF3K6MsApWGEdJHz4EkliPgcDK/JqmSBViNanYW2yxWyLawIqwRqscMaiiqKU00wkdQtW90oILShRQ/MaaeVcEgWg69ybDAW+ovoRM4CkI+pqVH7K1NcWDQfte5IbgBbPb7+7jTKNo7Z0TM8nm6YplgwWUk3reI1KJtkFgr5B9xvoowS1K5RCQmvhXAsoZ2ruVR3OnbW6bttg3meNni2azWVrphp1ameRuAArTQK4zXZKhCD7wP3lsFztO99m7tHtF3cQT7Ze3LxCY9Muk66AwNDVTnhG2te4k48sTXZsu46I6vt7j3TF3NvW3+4l4vcEgi6l08arHKIAQiSUr6VqQMjjVd7TBxo0mbfZySqniF70767+7os9rTvzZbaLdtqR4Yt7tSRbX0Up1D0qdKupGdKVrwGEdq7arE5xi3R40H2pztv1JGjPvSRkdexb0mtUYMKc8iBj0a2jeUh/ueaNqtvdHtqPsa+7Xbtu2W5nvYLhJugesyxxupbV1KVGrHPl2W/7lXephR8RPubfidT3CapZRTixxjSwA01RJ0S21yupG1xuG4Hka4I58o0eJ3CL0m0aaOUQUQSCWgfStNROk5HLEBEX7osItmfe3vb6925JREUtyIG18K0AGVTgkgWx5t1tLe52c2OxPuUG5qry3UzyTNErUqWXMZA88EkCbZs993Ovc97afR29t2okLGxvIESOUykKQCQakD1csFoBYrY2vcs/a+87T3d3bDFuV/Ih26+SYB7eNWB/Z0E1A4DF0AHpu0e3O4u3u3th3W+3Pdp9gZpYtwsreRXm1NXSzyqFFOR1YXJAnYltsW233eFt3g3bUsfcFukUEe6Xd0kRSBVK6ulGz1ajc8Ybz9LDiE95L7bpO1Y7c3tuL+2u4pEteshndc0bSldRABqcsV2ptbjLNM6G1emR0zZ3xQq1aV4DHrJRqdapssF3Z7lZSbduCCa0mXTJGfuI8CORxkWq3LVHMCcVNaXkaHuvt/v8AYs820kblYCpVYzWZV40ZDxI/hx3F3HaXaRurRJ8eHmcR7XcW6u29S+vkav05jN0TZn68HSsWg6jypp443+zhpqp+n9cRXu5Vpp9Xw/wIshrPIRx1Ghx8+ijtwL17v1q0Clbd5JIotDuaKCSBXPjhlALtusajWz3S3O02xK+kx6WUn5tPpoTg1E5eaqFhnTboCpex2211agjDWNXjpJGeGaQahf8A7LYrVAk2+SuBwW1QIBTkaKf04JJFagcnuP2lEKx2N3ucyZKJnfSa+NW/DFplNj1h7l9wyD/832WNTCgkMZC15UIRf04lGxdR19299t3jfVLa7HAwZyzPFCypwJ9RdgBXjgNBBSb2/wB9viy92+5kUDa3hkha4mkAmSMSGNqsqgkEUyphUkk6aakRrm37btO3XBntYm65Gh7iRzI7DgSCeFeOPQ29rGGR0rUFB1LcF2VpQ18vLDumatbKttuRSmk+VThE7SDUzYdv39o2BDlSM61xjuWIyVGi1Jp1RZ/O7SSl26I13CKxXGkFl1ek58cwcY/btelN6XwDdxtp8VxPPsiKlxIOWo4yxiSMaBHTqQsn7wph6iHJVVDmGGQWS2PWkWFa+lWIGeHK3UStvGlBe42PZrCCG73GW4uWkBZokFAKctWfHFuwo4nOvbbRiZW992lbsvR2pp15tLqfLT4EgZHDVFcEYyzt3dEyimz7GdSlK9CONRVeINATRsNjF8iFWbeO+PpZLuTb4rO1jQB3uJST6W1AgBl9XLz4YarbeYNCBN3Jvl4NMl80aHWWS2VIAeqdT5qNWZ4540Q20eISiJRWtqJOuYw85OoySEu9fGrEnGuFiCyQxJFFJifPzxo0DtQ1HcjhwPhi+mMUhpbhk4inxwt26jNVBiHcCpFCKjCJWi4yqUFv5gjHUKkVr9oOE9PEdRkDctkV7iSWyYA1zhPAn+En8cc32jpVHWnZ5EdhJC3TmQo45NlhPTazMUsHQ+WbTyxpjEHUEeSSaJ4jmrAihzArjQo1Bm3JNEKHbb6a5+ktLaa6nJoscEbSMa+Sg4FqjxOFdpb+50N92P2h90r23e72/a7rbmNBH12W2Zwc89bCg+OKdyCWZzbncLEP5Ymyr/bz7i3rW8u7bjayBSGlguLo+nyBQN/jhavQTrVsyS7xY8X8inP/AG4dxdUvZ7tt6wkV0SNLUHwBCZ40++guDB/N2l/FgJP7du94xWC922YjPSJ2Qn/Ugwxdxt8Uw13uy80yRe+zXuRtxLflH1SAE6rSaObh5Bq40w31mXE1Q7rtpfyoa5JtO7bRMRu223Vo68poXUf40pjfC5CWTR19vuLTxqmGBS5IEaFj+6AScNcDqpa8lUbi2G7mXUkXTNKgyEDC3A0rZSawVBhdgv8AouDOnUoNK504jn8ML6Iz8fcpmqkK83m32+7FpLqmZa9WUfMCeBpjjO/Gy1F4j3fjCkXmijAbTcoQ1Unt+Z5j48xjfBRuxqN9E0P2ftzc7sBPau1pbtwknBKkfwj5jhM7UI4I853HuO121Vq1S5I3LZewO1tn0/mAbc7kn1mc6Yh5iNeXxOENUPG7jvW4uYQ9K+vmdgbfulntsejbYYrYJyt0WOoHL054TK3XM4dxzuOs238R0dzGTPWSaZkngfPAdAQ7Zyd+LHTro4y0/jXE6IvQZ/nLJ+3UnkPLwwatlOBmu91U1bMcudcU7ZWhnP581RU1Plgeki+mLT728o0Eh4zwD0ZafA4NW6FqDWRFvTt8q1ks4dIpWiIta/CmNEZTjkzoWN3uLX2TkvmSZtv2Rq/8ZEpU+ksDTyzxoV65zOtb75v4/wDY38RL6HaqV6Z/epralOOC69zmbP8A0O//ALLyR0zd7Ad53OQWYb8wlaixj1K5Hlywi/sozWutGe33MIRi7knpododp9m2XbdjG266LrcB62C5xIxzy/eI8TgLfphpWB4Pe96u3I9O1WMefF/6Fy43ajLUgrmSKip8h8MEkcFWidJubM1CxAFdOoiv68XQfG2LrvMhAIIUnMAfNQYvSMdpDC7q6SONZAXMlaZE8iMTSB0/AYfdWOgu+o8BQ5UPM8sVpB6IUbvF02Rmoo+bnSnniaQXZYWLd6+oMGFKgj08MTSC7QP83Ac9N6kGuWQ86n7cTSWrQKTd1dwVYOVFDoPp/XiaQ1ZFpt4omdcqEDgo8M+OJQLoiz7s2mmVaUGfA8sHpDVoWG4vRmrTnXVxGoCuK0jengZdubW3bVg5u5Vn3mSv1E/Cik1CIfIcTzwi1O47aUnU17/e3Ny9LfoX6xMrzeKOH10Xh58eeGJHPjbZFudyPNq1Jo3IeBzw1I1RtiUu4klQzalXMNyB54scrdDA7lWpdtRA8aD7sWGrQRL4VKB6kgceXnXEoU4BDuOnS7MWIJ01ypTnlyGJQHp0Ns2vsbuffbW2ufqrCxe9Uvt1nfXSQ3FyvikRNSDyPPHNu723BtUbpnRZD1tk1Vuhrt4dx2rcLjad2ga2vrNtE0DZ6TxqKcR4Y2W7kbkdUXVCZ2qYGX19RoAJRjwrwHlhlBfTMDemquo9ShgpY5/9eWJQvQCN6WFajgMyM6/qwSRNAJr1z6lYaa/NwPwxKB6Af1JPxUV+0nh8MSgWgNuG96rh5NNIyxBRMwCR58jhCWAmNqpCuN21EaeFKnPUag/rwxI0xtUJ77kM6eOY4sTzr44MeoA1vdRBBo1QXof88QNRCxXVWblUYIjiFW700oakUrXniAOIU3Wsk1+bLTxHniFaTO+3XdLzepN4jlVbiWOOFZHP9JI0EYC+AULlTGPpaVRFTt68yz3B3BL3Dui7hKzO8VtbWhnf+pL9NEIzI/8AExBbB7az0oafEuWIklyTwINchTl4Y00A0nBnY08uIxCaT5pWLaK5kVA5DLBUJpBs5oobMjOmKoXQ+WWmrwIr94xKBUIm47k8k8tWqtT6RlnXGdZDFbJUl254Eqc+fLhhiGqIISO2fLxxYWkySUiq+OIXQOkr151pQYIpoOs5FAeOIVQMs54k54gNA6yhuPLEKoGjloCvjzwdAWg6S0xYLQQOMCDQ+E2hgT48fLELoWI7NLkA/ssMqYCplc6Dq9uxGNpeowoM05HMYrUB7h8jjbfYPvzdp2l3GGPaLYvRjcHqSDP9yOv3sMcK53mxBUXqfgd9WWzsDZ/7ZNpaKJ9w3G7vJnDMwQJbQADwYajUcaVOONc7/OuCSGK0bBZ+wPYsUYhWyZ7ggsWnllcq3Ko/dOM8u9bitW8A1aSDL7M9j20vR3DYY4SDlJVtDAZEg1Fc88aPyN6arCdfAvpx5HMvsd2ZcKBa7UoAzlMbyIfl/ZBfMV4YkO73Yuk5UFSt0Nfn9h+0ZwyRS3lncHwlDAHwo6nHT/I31iqSQrSiFP8A267hKzflO9RSKKEC5iKmhrxKE5jn6cMXelH74eROlUi3HsR33a1MYtJ15aZtJJ4UAZRjRHvW3edV8inaYBfZn3CGR21Bx4zxj5TTmcN/Mbbn9AHZkET2f75V+nPawwGlfXOh4fy1xH3fb835FdJli39k+4CI3vb+2t1f5wgaRlAzPHSKjCJd5t/xi2V0GUl9mtui0/UXk12Rp10pCorXIAA1y4+rGaXdbkskkHG0uJM7k7bTtu6gFqhXb5RpiUkkqy8QSa8eOOls70rkPVmc7d2tLqshZZD0n8KfiMbTl8T13JtqRozxKrxgkyU9RFTUnkcfJNNcMj3FB1NltLkKbF1CCjCCvpYgcvDLC9bjhJF0DmwgMyw30RhkIorgBXy4aXpmBheKVY4lUCzbF1EZZ4RfWhABWmogLwJHGufFcSN6jqnpZdCKnbnTmMu2yhhxFtPxp4Bj5ZZ46UtypRpcXzRdBiSws5YxBu1l05AfSzjP4BhyxnhKVtt2pgOCADs/Z5AGs7qS2PA0IkHgaBvjh35C+vvipfQDpI4PaLKVX8wBI5PHXj4kGmKe/Tzt/UF2nzMv/mGOlZb0UUlsoxXUOIBJ5jC/eL+n1J0nzMT2la6zKLotqNCVC8Sa514cMV75/wBS+l4mDdq28gPWlkIYmqgqBQDIk4Jb+aySI7XiCTtLaFBmljZ2HFZJCaVNPTw/wxf5DcPKi+RXToTu4+wNl3/Z7zbFtkhuJ1DW8iKzvHKgqraudTxxp2/cr9u5GUpVSzXgLvWFOLR5rXtvfBvL9rG0cb0ZBCLeh1E1B1U/dp6q+GPoXurfS6tfSeZ6L6mjievO2d+7e7229N12DcI51kJVbmI5Bwc1lTIg/HPHzTcWLm3lpmsP1ke2SLp20xPS4X6Wc5JcxCsDnzAyxj69csVyeZGht3uIIhHulsJ7QcJ09cY/FcZ6Rk/Q6PkUkYRW6kibapwRxEEzfocfjhlcKXEE0ZyPbyPo3e1MM5yWb5T9jjI4Xpkv+OWANBiKwDf+ndCSMj+lcCv3jL7sBK7T715EoYy7IHH+7tqtnUyW7UJ/0kYGO4ayl5g0Fm2OwrRor2KooQCxH/acN9zNcYslD4dvbe7A6btqClSSPwwL3Vz/AGkoGXZbNBRLSc041Yivx4YW9xN5tFpAJNmWtRYBqV9UjUyPLji1e5yLoYNtc6khI7aEZZE6uH2YYr0fFkSAfS9Gpnv1RSfkhWgy+Jwak3lEqhGvO1dnve4du7pEc67rtvUB3BVyZJYni0tlSgL1GN8N5cjZlaw0yp6fGtRMrEXNT4o8Ge1U/uzH3HK3tzbXE18rVulhMYtWUcpxK6x0P8TA+GPfXZx6VNzH088K/I0Rbpij3f7fdye5d9Zrb99dmPtc6ACS8gvLC4s5B4lPqNa/Chx4HfWNonW1dr4aZV/YN0N/hCSAm0ZoWHEEaoj/AJY4ssM8f3BI9y+3NcmN49NzXOazaor5har92N9tT0+HiWxpF3CJKq6z21M1mGjLzrVcIk7bfFPwBBxS2MjlRA0T82tmqtfsqMRqS41+JChFDd0/41y9PCRD+kYRKUeMV5lHJTfhkskbLyNHH4YGtjl+xMDIR703zzRL9jn8MVWzyf0IYPa3pH+7fhf5YnP6aYtThwj9SwDwW6/1ru4k/lj0D764NTbyil8yCzy7ZHl0JpfOViB/4jDdNx8UiHK3bgf8Hb4S1MtLwavveuJ01/Ob8pf5EFzdd1mdSLAiEcV6keYp/NT78NVva0+/H4Mh/9k="},"oqm/":function(t,e){},owY9:function(t,e,i){t.exports=i.p+"static/img/样品厚度-析出相数密度计算.073616e.png"},p8qR:function(t,e,i){"use strict";e.h=function(t){localStorage.setItem(o,t)},i.d(e,"a",function(){return l}),e.d=function(){localStorage.removeItem(o)},i.d(e,"j",function(){return c}),i.d(e,"c",function(){return d}),e.f=function(){localStorage.removeItem(s)},e.i=function(t){localStorage.setItem(r,t)},e.b=function(){return localStorage.getItem(r)},e.e=function(){return localStorage.removeItem(r)},i.d(e,"k",function(){return h}),i.d(e,"g",function(){return u});var a=i("ZQ6q"),n=i.n(a),o="OPEN_ID",s="TOKEN",r="PHONE";var l=function(){return localStorage.getItem(o)};var c=function(t){localStorage.setItem(s,t)},d=function(){return localStorage.getItem(s)};var h=function(t){n.a.set("userid",t)},u=function(){n.a.remove("userid")}},p9hd:function(t,e){t.exports="data:image/gif;base64,R0lGODlhPQA/AIcAAQAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBmAABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNmZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZmzGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb//5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZAJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwAM8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8Amf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+ZzP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///wYGBgwMDBISEhkZGR8fHyUlJSsrKzIyMjg4OD4+PkREREpKSlFRUVdXV11dXWNjY2pqanBwcHZ2dnx8fIODg4mJiY+Pj5WVlZubm6KioqioqK6urrS0tLu7u8HBwcfHx83NzdPT09ra2uDg4Obm5uzs7PPz8/n5+SH/C05FVFNDQVBFMi4wAwEAAAAh+QQBFAAJACwAAAAAPQA/AMP/////6wD/AADfAADDAAC7u7s8DQAgBAAAAADAwMAAAAAAAAAAAAAAAAAAAAAAAAAE/jDJSau9OE9jtP8YFxrDIJwC0oEat4ZoLJfHERyljCK8+rY6XalEsAWOtaNyiTPFBiJJDxGcGY+Gq7KWDHCQuGrsZzHMBl2w1lvLiXdk1uZNT6kKFUPhYODh5WU8HH8XfDuCgImKixskAwiEjIB6TgIFLm46kC4FUz0gZlUmVGI0XFthJ1NRcqFPaGk3XAZLqEltlat5fT0naLXAN7TAXJkxnsiIFLy9r1qpQcnJkYqudj0upDLYkt0eHH7e4uPLfXHkkhy55+iBA5fllcfs7RKd0a9DdFMgBQKjm1wk6FPn1xZ5qrDRK1PHGZc0EI2lWIjBnyhYV7IwWcMEIY8D/hOkIfOFcZiaWho7DpHo5we4ZiQfnlLyxdZGAvoaCjj30lesYFhsSdzmoqiLA/CWdYL5L1abh5mYaqL4TQjGJlVEIqOqweK2KWJa1gvkKak9Dl+5isvSioqyseTMwZ3LQo9auhmQTsTLiJIqkHwB6Z0XWCmrDQUQ7i0sIRSUFYOjvTAqMC4JFCV47Jsi79M4dXRMQYvG70OfPZURK7ZipA1pQdQyXMZs55K1IEMi5ppiFpROzCthyboy2s7dOb+Fy6pFvPi74wPf5J61EagsxZAmKZ7O3CmYjZ3fUqZ8CfiAImtm1lRZbDfskJoLdll/YyMfkzdWHwMMX+q/4M/gkDecFlng0hAZl4DlU3OxpFQfeNhptUkeS2lmkHVYCIiLfhK+tYw2plSHEi0b7gNddFY98xAYOOk3VSLMxBfTM8GFNxJhk6CGFmtgcNjhR93cRtJKYQlCmScnLlPkG9yMwFY6Ht2oCQL80RUKknoMRFBasY0VIwdVTuDVNUlWc0mXuySUJWNylOchm3V1EuY4AAAh+QQBFAAEACwAAAAAPQA/AMP/////AAC7u7sAAADAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE/pDISau9OM8htP8YFwpBaQ4D6HFpNphwLM8ninYfSe98bwotgu3lKxp7OIzuyJSJVJdls2RLSlhV6GUIzABrKK14TN7owuUxCsaSOoHYIXrVI05jcivIfm/KK3F8fUVyhTYVcDaDVIaGaUJseWtOh4+WSkOXmpsEiZybXyd6n1svXROhlKQuglR9mTlgNymTi4yzUK22daMfurs8NxuNcsBGuKjFxrtBFInLwVhw03NXib9HijvVaovEhb25M8rjwqvO4M0seNznQs0eX5Xul3D09xos+GlrT/taHGr8yyWo3T0sFgK+GShhyalaqhrO0rdJYaQ6Q9jB4+fG1h9fgRP1WGTGRYWuWR3vOIKSElqkjb5c+jCYT+ZMmF5sbpsnLeQ6nRrNvcMGdCegjEWZwLtGFNo3ZMOQFn0qlALEqThrJo0kppBHQ3jCsZrmjeo8Mk0xVpn4sQy2q0G9nB3TEWw5sZyIpBOSCgzeilwM8smyD8gpDaEIM9zzoupiENNWAQAh/k1UaGlzIGFuaW1hdGVkIEdJRiBmaWxlIHdhcyBjb25zdHJ1Y3RlZCB1c2luZyBQaG90b0ltcGFjdCBHSUYgQW5pbWF0b3IBVVNTUENNVAAh/wtQSUFOWUdJRjEuMDluZXdyMS5naWYCQzpcVEVNUFxuZXdyMS5naWYBbmV3cjIuZ2lmAkM6XFRFTVBcbmV3cjIuZ2lmAQEAO2dpZgEBADs="},phTY:function(t,e){},pjCe:function(t,e){},qUsR:function(t,e){},"rF/k":function(t,e,i){"use strict";var a=i("Gu7T"),n=i.n(a),o=i("d7EF"),s=i.n(o),r=i("Xxa5"),l=i.n(r),c=i("exGp"),d=i.n(c),h=i("9A4f"),u=i("qf0b"),f=i("3e7c"),g={name:"DvFlylineChart",mixins:[i("kN6d").a],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var t=Object(f.e)();return{ref:"dv-flyline-chart",unique:Math.random(),maskId:"flyline-mask-id-"+t,maskCircleId:"mask-circle-id-"+t,gradientId:"gradient-id-"+t,gradient2Id:"gradient2-id-"+t,defaultConfig:{centerPoint:[0,0],points:[],lineWidth:1,orbitColor:"rgba(103, 224, 227, .2)",flylineColor:"#ffde93",k:-.5,curvature:5,flylineRadius:100,duration:[20,30],relative:!0,bgImgUrl:"",text:{offset:[0,15],color:"#ffdb5c",fontSize:12},halo:{show:!0,duration:30,color:"#fb7293",radius:120},centerPointImg:{width:40,height:40,url:""},pointsImg:{width:15,height:15,url:""}},mergedConfig:null,paths:[],lengths:[],times:[],texts:[]}},watch:{config:function(){(0,this.calcData)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcData)()},onResize:function(){(0,this.calcData)()},calcData:function(){var t=this;return d()(l.a.mark(function e(){var i,a,n,o,s;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.mergeConfig,a=t.createFlylinePaths,n=t.calcLineLengths,i(),a(),e.next=5,n();case 5:o=t.calcTimes,s=t.calcTexts,o(),s();case 8:case"end":return e.stop()}},e,t)}))()},mergeConfig:function(){var t=this.config,e=this.defaultConfig,i=Object(h.deepMerge)(Object(u.deepClone)(e,!0),t||{}),a=i.points;i.points=a.map(function(t){return t instanceof Array?{position:t,text:""}:t}),this.mergedConfig=i},createFlylinePaths:function(){var t=this.getPath,e=this.mergedConfig,i=this.width,a=this.height,n=e.centerPoint,o=e.points,r=e.relative;o=o.map(function(t){return t.position}),r&&(n=[i*n[0],a*n[1]],o=o.map(function(t){var e=s()(t,2),n=e[0],o=e[1];return[i*n,a*o]})),this.paths=o.map(function(e){return t(n,e)})},getPath:function(t,e){return[e,(0,this.getControlPoint)(t,e),t]},getControlPoint:function(t,e){var i=s()(t,2),a=i[0],n=i[1],o=s()(e,2),r=o[0],l=o[1],c=this.getKLinePointByx,d=this.mergedConfig,h=d.curvature,u=d.k,g=(a+r)/2,p=(n+l)/2,m=Object(f.b)([a,n],[r,l])/h,v=m/2,b=g,y=p;do{y=c(u,[g,p],b+=v)[1]}while(Object(f.b)([g,p],[b,y])<m);return[b,y]},getKLinePointByx:function(t,e,i){var a=s()(e,2),n=a[0];return[i,a[1]-t*n+t*i]},calcLineLengths:function(){var t=this;return d()(l.a.mark(function e(){var i,a,n;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.$nextTick,a=t.paths,n=t.$refs,e.next=3,i();case 3:t.lengths=a.map(function(t,e){return n["path"+e][0].getTotalLength()});case 4:case"end":return e.stop()}},e,t)}))()},calcTimes:function(){var t=this.mergedConfig,e=t.duration,i=t.points;this.times=i.map(function(t){return f.d.apply(void 0,n()(e))/10})},calcTexts:function(){var t=this.mergedConfig.points;this.texts=t.map(function(t){return t.text})},consoleClickPos:function(t){var e=t.offsetX,i=t.offsetY,a=this.width,n=this.height;if(this.dev){var o=(e/a).toFixed(2),s=(i/n).toFixed(2);console.warn("dv-flyline-chart DEV: \n Click Position is ["+e+", "+i+"] \n Relative Position is ["+o+", "+s+"]")}}}},p={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"dv-flyline-chart",staticClass:"dv-flyline-chart",style:"background-image: url("+(t.mergedConfig?t.mergedConfig.bgImgUrl:"")+")",on:{click:t.consoleClickPos}},[t.mergedConfig?i("svg",{attrs:{width:t.width,height:t.height}},[i("defs",[i("radialGradient",{attrs:{id:t.gradientId,cx:"50%",cy:"50%",r:"50%"}},[i("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),t._v(" "),i("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),t._v(" "),i("radialGradient",{attrs:{id:t.gradient2Id,cx:"50%",cy:"50%",r:"50%"}},[i("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"0"}}),t._v(" "),i("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"1"}})],1),t._v(" "),t.paths[0]?i("circle",{attrs:{id:"circle"+t.paths[0].toString(),cx:t.paths[0][2][0],cy:t.paths[0][2][1]}},[i("animate",{attrs:{attributeName:"r",values:"1;"+t.mergedConfig.halo.radius,dur:t.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}}),t._v(" "),i("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:t.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}})]):t._e()],1),t._v(" "),t.paths[0]?i("image",{attrs:{"xlink:href":t.mergedConfig.centerPointImg.url,width:t.mergedConfig.centerPointImg.width,height:t.mergedConfig.centerPointImg.height,x:t.paths[0][2][0]-t.mergedConfig.centerPointImg.width/2,y:t.paths[0][2][1]-t.mergedConfig.centerPointImg.height/2}}):t._e(),t._v(" "),i("mask",{attrs:{id:"maskhalo"+t.paths[0].toString()}},[t.paths[0]?i("use",{attrs:{"xlink:href":"#circle"+t.paths[0].toString(),fill:"url(#"+t.gradient2Id+")"}}):t._e()]),t._v(" "),t.paths[0]&&t.mergedConfig.halo.show?i("use",{attrs:{"xlink:href":"#circle"+t.paths[0].toString(),fill:t.mergedConfig.halo.color,mask:"url(#maskhalo"+t.paths[0].toString()+")"}}):t._e(),t._v(" "),t._l(t.paths,function(e,a){return i("g",{key:a},[i("defs",[i("path",{ref:"path"+a,refInFor:!0,attrs:{id:"path"+e.toString(),d:"M"+e[0].toString()+" Q"+e[1].toString()+" "+e[2].toString(),fill:"transparent"}})]),t._v(" "),i("use",{attrs:{"xlink:href":"#path"+e.toString(),"stroke-width":t.mergedConfig.lineWidth,stroke:t.mergedConfig.orbitColor}}),t._v(" "),t.lengths[a]?i("use",{attrs:{"xlink:href":"#path"+e.toString(),"stroke-width":t.mergedConfig.lineWidth,stroke:t.mergedConfig.flylineColor,mask:"url(#mask"+t.unique+e.toString()+")"}},[i("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+t.lengths[a],to:t.lengths[a]+", 0",dur:t.times[a]||0,repeatCount:"indefinite"}})]):t._e(),t._v(" "),i("mask",{attrs:{id:"mask"+t.unique+e.toString()}},[i("circle",{attrs:{cx:"0",cy:"0",r:t.mergedConfig.flylineRadius,fill:"url(#"+t.gradientId+")"}},[i("animateMotion",{attrs:{dur:t.times[a]||0,path:"M"+e[0].toString()+" Q"+e[1].toString()+" "+e[2].toString(),rotate:"auto",repeatCount:"indefinite"}})],1)]),t._v(" "),i("image",{attrs:{"xlink:href":t.mergedConfig.pointsImg.url,width:t.mergedConfig.pointsImg.width,height:t.mergedConfig.pointsImg.height,x:e[0][0]-t.mergedConfig.pointsImg.width/2,y:e[0][1]-t.mergedConfig.pointsImg.height/2}}),t._v(" "),i("text",{style:"fontSize:"+t.mergedConfig.text.fontSize+"px;",attrs:{fill:t.mergedConfig.text.color,x:e[0][0]+t.mergedConfig.text.offset[0],y:e[0][1]+t.mergedConfig.text.offset[1]}},[t._v("\n        "+t._s(t.texts[a])+"\n      ")])])})],2):t._e()])},staticRenderFns:[]},m=i("VU/8")(g,p,!1,null,null,null);e.a=m.exports},rqlL:function(t,e,i){t.exports=i.p+"static/img/newQ2.3686f5c.png"},s2gB:function(t,e){},sSQA:function(t,e){},t6G3:function(t,e,i){t.exports=i.p+"static/img/bcc4.371ecd8.png"},tdzN:function(t,e){},tvR6:function(t,e){},vA0W:function(t,e,i){"use strict";var a=i("kN6d"),n=i("3e7c"),o=i("9A4f"),s=i("qf0b"),r={name:"DvDecoration10",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}}},data:function(){var t=Object(n.e)();return{ref:"decoration-10",animationId1:"d10ani1"+t,animationId2:"d10ani2"+t,animationId3:"d10ani3"+t,animationId4:"d10ani4"+t,animationId5:"d10ani5"+t,animationId6:"d10ani6"+t,animationId7:"d10ani7"+t,defaultColor:["#00c2ff","rgba(0, 194, 255, 0.3)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(o.deepMerge)(Object(s.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-decoration-10"},[i("svg",{attrs:{width:t.width,height:t.height}},[i("polyline",{attrs:{stroke:t.mergedColor[1],"stroke-width":"2",points:"0, "+t.height/2+" "+t.width+", "+t.height/2}}),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",points:"5, "+t.height/2+" "+(.2*t.width-3)+", "+t.height/2,"stroke-dasharray":"0, "+.2*t.width,fill:"freeze"}},[i("animate",{attrs:{id:t.animationId2,attributeName:"stroke-dasharray",values:"0, "+.2*t.width+";"+.2*t.width+", 0;",dur:"3s",begin:t.animationId1+".end",fill:"freeze"}}),t._v(" "),i("animate",{attrs:{attributeName:"stroke-dasharray",values:.2*t.width+", 0;0, "+.2*t.width,dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",points:.2*t.width+3+", "+t.height/2+" "+(.8*t.width-3)+", "+t.height/2,"stroke-dasharray":"0, "+.6*t.width}},[i("animate",{attrs:{id:t.animationId4,attributeName:"stroke-dasharray",values:"0, "+.6*t.width+";"+.6*t.width+", 0",dur:"3s",begin:t.animationId3+".end + 1s",fill:"freeze"}}),t._v(" "),i("animate",{attrs:{attributeName:"stroke-dasharray",values:.6*t.width+", 0;0, "+.6*t.width,dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),t._v(" "),i("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",points:.8*t.width+3+", "+t.height/2+" "+(t.width-5)+", "+t.height/2,"stroke-dasharray":"0, "+.2*t.width}},[i("animate",{attrs:{id:t.animationId6,attributeName:"stroke-dasharray",values:"0, "+.2*t.width+";"+.2*t.width+", 0",dur:"3s",begin:t.animationId5+".end + 1s",fill:"freeze"}}),t._v(" "),i("animate",{attrs:{attributeName:"stroke-dasharray",values:.2*t.width+", 0;0, "+.3*t.width,dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),t._v(" "),i("circle",{attrs:{cx:"2",cy:t.height/2,r:"2",fill:t.mergedColor[1]}},[i("animate",{attrs:{id:t.animationId1,attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0],begin:"0s;"+t.animationId7+".end",dur:"0.3s",fill:"freeze"}})]),t._v(" "),i("circle",{attrs:{cx:.2*t.width,cy:t.height/2,r:"2",fill:t.mergedColor[1]}},[i("animate",{attrs:{id:t.animationId3,attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0],begin:t.animationId2+".end",dur:"0.3s",fill:"freeze"}}),t._v(" "),i("animate",{attrs:{attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[1],dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),t._v(" "),i("circle",{attrs:{cx:.8*t.width,cy:t.height/2,r:"2",fill:t.mergedColor[1]}},[i("animate",{attrs:{id:t.animationId5,attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0],begin:t.animationId4+".end",dur:"0.3s",fill:"freeze"}}),t._v(" "),i("animate",{attrs:{attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[1],dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),t._v(" "),i("circle",{attrs:{cx:t.width-2,cy:t.height/2,r:"2",fill:t.mergedColor[1]}},[i("animate",{attrs:{id:t.animationId7,attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0],begin:t.animationId6+".end",dur:"0.3s",fill:"freeze"}}),t._v(" "),i("animate",{attrs:{attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[1],dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})])])])},staticRenderFns:[]},c=i("VU/8")(r,l,!1,null,null,null);e.a=c.exports},vLgD:function(t,e,i){"use strict";i.d(e,"b",function(){return l}),i.d(e,"a",function(){return c});var a=i("+TD8"),n=i.n(a),o=i("mtWM"),s=i.n(o),r=i("p8qR");i("IcnI");s.a.defaults.headers["Content-Type"]="application/json;charset=utf-8";var l=s.a.create({baseURL:"http://crystal.simr.ac.cn:80",timeout:1e4}),c=s.a.create({baseURL:"http://localhost:9025",timeout:1e4});l.interceptors.request.use(function(t){return r.c&&(t.headers.client="Bearer "+localStorage.getItem("TOKEN")),t}),c.interceptors.request.use(function(t){return r.c&&(t.headers.Authorization="Bearer "+localStorage.getItem("TOKEN")),localStorage.getItem("OPEN_ID")||n.a.confirm("参数已过期，请重新登录","提示",{type:"warning",showCancelButton:!1}).then(function(t){locatremoveToken()}),t}),l.interceptors.response.use(function(t){if(401!==t.data.code)return t;localStorage.setItem("tokenshow",!0),location.href="/",Object(r.f)()})},vQuI:function(t,e){},vThT:function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s={name:"DvBorderBox1",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-1",border:["left-top","right-top","left-bottom","right-bottom"],defaultColor:["#4fd2dd","#235fa7"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-border-box-1"},[i("svg",{staticClass:"border",attrs:{width:t.width,height:t.height}},[i("polygon",{attrs:{fill:t.backgroundColor,points:"10, 27 10, "+(t.height-27)+" 13, "+(t.height-24)+" 13, "+(t.height-21)+" 24, "+(t.height-11)+"\n    38, "+(t.height-11)+" 41, "+(t.height-8)+" 73, "+(t.height-8)+" 75, "+(t.height-10)+" 81, "+(t.height-10)+"\n    85, "+(t.height-6)+" "+(t.width-85)+", "+(t.height-6)+" "+(t.width-81)+", "+(t.height-10)+" "+(t.width-75)+", "+(t.height-10)+"\n    "+(t.width-73)+", "+(t.height-8)+" "+(t.width-41)+", "+(t.height-8)+" "+(t.width-38)+", "+(t.height-11)+"\n    "+(t.width-24)+", "+(t.height-11)+" "+(t.width-13)+", "+(t.height-21)+" "+(t.width-13)+", "+(t.height-24)+"\n    "+(t.width-10)+", "+(t.height-27)+" "+(t.width-10)+", 27 "+(t.width-13)+", 25 "+(t.width-13)+", 21\n    "+(t.width-24)+", 11 "+(t.width-38)+", 11 "+(t.width-41)+", 8 "+(t.width-73)+", 8 "+(t.width-75)+", 10\n    "+(t.width-81)+", 10 "+(t.width-85)+", 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24"}})]),t._v(" "),t._l(t.border,function(e){return i("svg",{key:e,class:e+" border",attrs:{width:"150px",height:"150px"}},[i("polygon",{attrs:{fill:t.mergedColor[0],points:"6,66 6,18 12,12 18,12 24,6 27,6 30,9 36,9 39,6 84,6 81,9 75,9 73.2,7 40.8,7 37.8,10.2 24,10.2 12,21 12,24 9,27 9,51 7.8,54 7.8,63"}},[i("animate",{attrs:{attributeName:"fill",values:t.mergedColor[0]+";"+t.mergedColor[1]+";"+t.mergedColor[0],dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),t._v(" "),i("polygon",{attrs:{fill:t.mergedColor[1],points:"27.599999999999998,4.8 38.4,4.8 35.4,7.8 30.599999999999998,7.8"}},[i("animate",{attrs:{attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0]+";"+t.mergedColor[1],dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),t._v(" "),i("polygon",{attrs:{fill:t.mergedColor[0],points:"9,54 9,63 7.199999999999999,66 7.199999999999999,75 7.8,78 7.8,110 8.4,110 8.4,66 9.6,66 9.6,54"}},[i("animate",{attrs:{attributeName:"fill",values:t.mergedColor[0]+";"+t.mergedColor[1]+";transparent",dur:"1s",begin:"0s",repeatCount:"indefinite"}})])])}),t._v(" "),i("div",{staticClass:"border-box-content"},[t._t("default")],2)],2)},staticRenderFns:[]},l=i("VU/8")(s,r,!1,null,null,null);e.a=l.exports},wlkb:function(t,e){},xF9X:function(t,e,i){"use strict";var a=i("kN6d"),n=i("9A4f"),o=i("qf0b"),s={name:"DvBorderBox5",mixins:[a.a],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-5",defaultColor:["rgba(255, 255, 255, 0.35)","rgba(255, 255, 255, 0.20)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(n.deepMerge)(Object(o.deepClone)(e,!0),t||[])}},mounted:function(){(0,this.mergeColor)()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-border-box-5"},[i("svg",{class:"dv-border-svg-container  "+(t.reverse&&"dv-reverse"),attrs:{width:t.width,height:t.height}},[i("polygon",{attrs:{fill:t.backgroundColor,points:"\n      10, 22 "+(t.width-22)+", 22 "+(t.width-22)+", "+(t.height-86)+" "+(t.width-84)+", "+(t.height-24)+" 10, "+(t.height-24)+"\n    "}}),t._v(" "),i("polyline",{staticClass:"dv-bb5-line-1",attrs:{stroke:t.mergedColor[0],points:"8, 5 "+(t.width-5)+", 5 "+(t.width-5)+", "+(t.height-100)+"\n        "+(t.width-100)+", "+(t.height-5)+" 8, "+(t.height-5)+" 8, 5"}}),t._v(" "),i("polyline",{staticClass:"dv-bb5-line-2",attrs:{stroke:t.mergedColor[1],points:"3, 5 "+(t.width-20)+", 5 "+(t.width-20)+", "+(t.height-60)+"\n        "+(t.width-74)+", "+(t.height-5)+" 3, "+(t.height-5)+" 3, 5"}}),t._v(" "),i("polyline",{staticClass:"dv-bb5-line-3",attrs:{stroke:t.mergedColor[1],points:"50, 13 "+(t.width-35)+", 13"}}),t._v(" "),i("polyline",{staticClass:"dv-bb5-line-4",attrs:{stroke:t.mergedColor[1],points:"15, 20 "+(t.width-35)+", 20"}}),t._v(" "),i("polyline",{staticClass:"dv-bb5-line-5",attrs:{stroke:t.mergedColor[1],points:"15, "+(t.height-20)+" "+(t.width-110)+", "+(t.height-20)}}),t._v(" "),i("polyline",{staticClass:"dv-bb5-line-6",attrs:{stroke:t.mergedColor[1],points:"15, "+(t.height-13)+" "+(t.width-110)+", "+(t.height-13)}})]),t._v(" "),i("div",{staticClass:"border-box-content"},[t._t("default")],2)])},staticRenderFns:[]},l=i("VU/8")(s,r,!1,null,null,null);e.a=l.exports},xanx:function(t,e,i){t.exports=i.p+"static/img/fcc2.bdba7e4.png"},yE5f:function(t,e){},yFI5:function(t,e,i){"use strict";var a=i("Dd8w"),n=i.n(a),o=i("Gu7T"),s=i.n(o),r=i("d7EF"),l=i.n(r),c=i("Xxa5"),d=i.n(c),h=i("exGp"),u=i.n(h),f=i("9A4f"),g=i("qf0b"),p=i("3e7c"),m={name:"DvFlylineChartEnhanced",mixins:[i("kN6d").a],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var t=Object(p.e)();return{ref:"dv-flyline-chart-enhanced",unique:Math.random(),flylineGradientId:"flyline-gradient-id-"+t,haloGradientId:"halo-gradient-id-"+t,defaultConfig:{points:[],lines:[],halo:{show:!1,duration:[20,30],color:"#fb7293",radius:120},text:{show:!1,offset:[0,15],color:"#ffdb5c",fontSize:12},icon:{show:!1,src:"",width:15,height:15},line:{width:1,color:"#ffde93",orbitColor:"rgba(103, 224, 227, .2)",duration:[20,30],radius:100},bgImgSrc:"",k:-.5,curvature:5,relative:!0},flylines:[],flylineLengths:[],flylinePoints:[],mergedConfig:null}},watch:{config:function(){(0,this.calcData)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcData)()},onResize:function(){(0,this.calcData)()},calcData:function(){var t=this;return u()(d.a.mark(function e(){var i,a,n,o;return d.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.mergeConfig,a=t.calcflylinePoints,n=t.calcLinePaths,i(),a(),n(),o=t.calcLineLengths,e.next=7,o();case 7:case"end":return e.stop()}},e,t)}))()},mergeConfig:function(){var t=this.config,e=this.defaultConfig,i=Object(f.deepMerge)(Object(g.deepClone)(e,!0),t||{}),a=i.points,n=i.lines,o=i.halo,s=i.text,r=i.icon,l=i.line;i.points=a.map(function(t){return t.halo=Object(f.deepMerge)(Object(g.deepClone)(o,!0),t.halo||{}),t.text=Object(f.deepMerge)(Object(g.deepClone)(s,!0),t.text||{}),t.icon=Object(f.deepMerge)(Object(g.deepClone)(r,!0),t.icon||{}),t}),i.lines=n.map(function(t){return Object(f.deepMerge)(Object(g.deepClone)(l,!0),t)}),this.mergedConfig=i},calcflylinePoints:function(){var t=this.mergedConfig,e=this.width,i=this.height,a=t.relative,n=t.points;this.flylinePoints=n.map(function(t,n){var o=l()(t.coordinate,2),r=o[0],c=o[1],d=t.halo,h=t.icon,u=t.text;a&&(t.coordinate=[r*e,c*i]),t.halo.time=p.d.apply(void 0,s()(d.duration))/10;var f=h.width,g=h.height;t.icon.x=t.coordinate[0]-f/2,t.icon.y=t.coordinate[1]-g/2;var m=l()(u.offset,2),v=m[0],b=m[1];return t.text.x=t.coordinate[0]+v,t.text.y=t.coordinate[1]+b,t.key=""+t.coordinate.toString()+n,t})},calcLinePaths:function(){var t=this.getPath,e=this.mergedConfig,i=e.points,a=e.lines;this.flylines=a.map(function(e){var a=e.source,o=e.target,r=e.duration,l=i.find(function(t){return t.name===a}).coordinate,c=i.find(function(t){return t.name===o}).coordinate,d=t(l,c).map(function(t){return t.map(function(t){return parseFloat(t.toFixed(10))})}),h="M"+d[0].toString()+" Q"+d[1].toString()+" "+d[2].toString(),u="path"+d.toString(),f=p.d.apply(void 0,s()(r))/10;return n()({},e,{path:d,key:u,d:h,time:f})})},getPath:function(t,e){return[t,(0,this.getControlPoint)(t,e),e]},getControlPoint:function(t,e){var i=l()(t,2),a=i[0],n=i[1],o=l()(e,2),s=o[0],r=o[1],c=this.getKLinePointByx,d=this.mergedConfig,h=d.curvature,u=d.k,f=(a+s)/2,g=(n+r)/2,m=Object(p.b)([a,n],[s,r])/h,v=m/2,b=f,y=g;do{y=c(u,[f,g],b+=v)[1]}while(Object(p.b)([f,g],[b,y])<m);return[b,y]},getKLinePointByx:function(t,e,i){var a=l()(e,2),n=a[0];return[i,a[1]-t*n+t*i]},calcLineLengths:function(){var t=this;return u()(d.a.mark(function e(){var i,a,n;return d.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.$nextTick,a=t.flylines,n=t.$refs,e.next=3,i();case 3:t.flylineLengths=a.map(function(t){var e=t.key;return n[e][0].getTotalLength()});case 4:case"end":return e.stop()}},e,t)}))()},consoleClickPos:function(t){var e=t.offsetX,i=t.offsetY,a=this.width,n=this.height;if(this.dev){var o=(e/a).toFixed(2),s=(i/n).toFixed(2);console.warn("dv-flyline-chart-enhanced DEV: \n Click Position is ["+e+", "+i+"] \n Relative Position is ["+o+", "+s+"]")}}}},v={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.ref,staticClass:"dv-flyline-chart-enhanced",style:"background-image: url("+(t.mergedConfig?t.mergedConfig.bgImgSrc:"")+")",on:{click:t.consoleClickPos}},[t.flylines.length?i("svg",{attrs:{width:t.width,height:t.height}},[i("defs",[i("radialGradient",{attrs:{id:t.flylineGradientId,cx:"50%",cy:"50%",r:"50%"}},[i("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),t._v(" "),i("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),t._v(" "),i("radialGradient",{attrs:{id:t.haloGradientId,cx:"50%",cy:"50%",r:"50%"}},[i("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"0"}}),t._v(" "),i("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"1"}})],1)],1),t._v(" "),t._l(t.flylinePoints,function(e){return i("g",{key:e.key+Math.random()},[i("defs",[e.halo.show?i("circle",{attrs:{id:"halo"+t.unique+e.key,cx:e.coordinate[0],cy:e.coordinate[1]}},[i("animate",{attrs:{attributeName:"r",values:"1;"+e.halo.radius,dur:e.halo.time+"s",repeatCount:"indefinite"}}),t._v(" "),i("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:e.halo.time+"s",repeatCount:"indefinite"}})]):t._e()]),t._v(" "),i("mask",{attrs:{id:"mask"+t.unique+e.key}},[e.halo.show?i("use",{attrs:{"xlink:href":"#halo"+t.unique+e.key,fill:"url(#"+t.haloGradientId+")"}}):t._e()]),t._v(" "),e.halo.show?i("use",{attrs:{"xlink:href":"#halo"+t.unique+e.key,fill:e.halo.color,mask:"url(#mask"+t.unique+e.key+")"}}):t._e(),t._v(" "),e.icon.show?i("image",{attrs:{"xlink:href":e.icon.src,width:e.icon.width,height:e.icon.height,x:e.icon.x,y:e.icon.y}}):t._e(),t._v(" "),e.text.show?i("text",{style:"fontSize:"+e.text.fontSize+"px;color:"+e.text.color,attrs:{fill:e.text.color,x:e.text.x,y:e.text.y}},[t._v("\n        "+t._s(e.name)+"\n      ")]):t._e()])}),t._v(" "),t._l(t.flylines,function(e,a){return i("g",{key:e.key+Math.random()},[i("defs",[i("path",{ref:e.key,refInFor:!0,attrs:{id:e.key,d:e.d,fill:"transparent"}})]),t._v(" "),i("use",{attrs:{"xlink:href":"#"+e.key,"stroke-width":e.width,stroke:e.orbitColor}}),t._v(" "),i("mask",{attrs:{id:"mask"+t.unique+e.key}},[i("circle",{attrs:{cx:"0",cy:"0",r:e.radius,fill:"url(#"+t.flylineGradientId+")"}},[i("animateMotion",{attrs:{dur:e.time,path:e.d,rotate:"auto",repeatCount:"indefinite"}})],1)]),t._v(" "),t.flylineLengths[a]?i("use",{attrs:{"xlink:href":"#"+e.key,"stroke-width":e.width,stroke:e.color,mask:"url(#mask"+t.unique+e.key+")"}},[i("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+t.flylineLengths[a],to:t.flylineLengths[a]+", 0",dur:e.time,repeatCount:"indefinite"}})]):t._e()])})],2):t._e()])},staticRenderFns:[]},b=i("VU/8")(m,v,!1,null,null,null);e.a=b.exports},yuHK:function(t,e,i){t.exports=i.p+"static/img/activity.a799d8e.png"},zuiJ:function(t,e,i){t.exports=i.p+"static/img/wechat.1e005c9.png"},"zy7+":function(t,e){}},[0]);