text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b0bede22"],{"02f4":function(e,t,a){var n=a("4588"),l=a("be13");e.exports=function(e){return function(t,a){var i,s,o=String(l(t)),r=n(a),u=o.length;return r<0||r>=u?e?"":void 0:(i=o.charCodeAt(r),i<55296||i>56319||r+1===u||(s=o.charCodeAt(r+1))<56320||s>57343?e?o.charAt(r):i:e?o.slice(r,r+2):s-56320+(i-55296<<10)+65536)}}},"0390":function(e,t,a){"use strict";var n=a("02f4")(!0);e.exports=function(e,t,a){return t+(a?n(e,t).length:1)}},"0cef":function(e,t,a){"use strict";a.d(t,"f",(function(){return l})),a.d(t,"g",(function(){return i})),a.d(t,"o",(function(){return s})),a.d(t,"i",(function(){return o})),a.d(t,"j",(function(){return r})),a.d(t,"a",(function(){return u})),a.d(t,"m",(function(){return c})),a.d(t,"k",(function(){return d})),a.d(t,"n",(function(){return p})),a.d(t,"b",(function(){return f})),a.d(t,"d",(function(){return m})),a.d(t,"p",(function(){return v})),a.d(t,"h",(function(){return g})),a.d(t,"c",(function(){return h})),a.d(t,"e",(function(){return b})),a.d(t,"l",(function(){return y}));var n=a("b775");function l(e){return Object(n["a"])({url:"/layout/",method:"post",headers:{"Content-Type":"multipart/form-data"},data:e})}function i(e){return Object(n["a"])({url:"/layout/"+e+"/delete/"})}function s(e){return Object(n["a"])({url:"/img/upload/",method:"post",headers:{"Content-Type":"multipart/form-data"},data:e})}function o(e){return Object(n["a"])({url:"/layout/?id="+e,method:"get"})}function r(e){return Object(n["a"])({url:"/layout/"+e+"/release/",method:"get"})}function u(e){return Object(n["a"])({url:"build/compose/",method:"post",data:e})}function c(e){return Object(n["a"])({url:"update/compose/",method:"post",data:e})}function d(){return Object(n["a"])({url:"show/compose/",method:"get"})}function p(e){return Object(n["a"])({url:"/file/upload/",method:"post",headers:{"Content-Type":"multipart/form-data"},data:e})}function f(e){return Object(n["a"])({url:"/file/delete/",method:"post",headers:{"Content-Type":"multipart/form-data"},data:e})}function m(e){return Object(n["a"])({url:"/download_layout_image/",method:"post",data:e})}function v(e){return Object(n["a"])({url:"/upload_zip_file/",method:"post",headers:{"Content-Type":"multipart/form-data"},data:e})}function g(e){return Object(n["a"])({url:"/layout/"+e+"/download/",method:"get",responseType:"blob"})}function h(e){return Object(n["a"])({url:"/download/official/website/layout/",method:"post",data:e})}function b(){return Object(n["a"])({url:"get/official/website/layout",method:"get"})}function y(e,t){return Object(n["a"])({url:"/layout/"+e+"/update_desc/",method:"post",data:t})}},"153a":function(e,t,a){"use strict";a("9211")},"16d8":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:e.id}})},l=[],i=a("db72"),s=(a("a7be"),a("44f8"),a("a6e0"),a("2c43"),a("bff0"),a("1487"),a("547e")),o=a.n(s),r={minHeight:"500px",previewStyle:"vertical",useCommandShortcut:!0,useDefaultHTMLSanitizer:!0,usageStatistics:!1,hideModeSwitch:!1,viewer:!0,toolbarItems:["heading","bold","italic","strike","divider","hr","quote","divider","ul","ol","task","indent","outdent","divider","table","image","link","divider","code","codeblock"]},u={name:"MarkdownEditor",props:{value:{type:String,default:""},id:{type:String,required:!1,default:function(){return"markdown-editor-"+ +new Date+(1e3*Math.random()).toFixed(0)}},options:{type:Object,default:function(){return r}},mode:{type:String,default:"markdown"},height:{type:String,required:!1,default:"300px"},language:{type:String,required:!1,default:"en_US"}},data:function(){return{editor:null}},computed:{editorOptions:function(){var e=Object.assign({},r,this.options);return e.initialEditType=this.mode,e.height=this.height,e.language=this.language,e}},watch:{value:function(e,t){e!==t&&e!==this.editor.getValue()&&this.editor.setValue(e)},language:function(e){this.destroyEditor(),this.initEditor()},height:function(e){this.editor.height(e)},mode:function(e){this.editor.changeMode(e)}},mounted:function(){this.initEditor()},destroyed:function(){this.destroyEditor()},methods:{initEditor:function(){var e=this;this.editor=new o.a(Object(i["a"])({el:document.getElementById(this.id)},this.editorOptions)),this.value&&this.editor.setValue(this.value),this.editor.on("change",(function(){e.$emit("input",e.editor.getValue())}))},destroyEditor:function(){this.editor&&(this.editor.off("change"),this.editor.remove())},setValue:function(e){this.editor.setValue(e)},getValue:function(){return this.editor.getValue()},setHtml:function(e){this.editor.setHtml(e)},getHtml:function(){return this.editor.getHtml()}}},c=u,d=a("2877"),p=Object(d["a"])(c,n,l,!1,null,null,null);t["a"]=p.exports},"214f":function(e,t,a){"use strict";a("b0c5");var n=a("2aba"),l=a("32e9"),i=a("79e5"),s=a("be13"),o=a("2b4c"),r=a("520a"),u=o("species"),c=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var a="ab".split(e);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();e.exports=function(e,t,a){var p=o(e),f=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=f?!i((function(){var t=!1,a=/a/;return a.exec=function(){return t=!0,null},"split"===e&&(a.constructor={},a.constructor[u]=function(){return a}),a[p](""),!t})):void 0;if(!f||!m||"replace"===e&&!c||"split"===e&&!d){var v=/./[p],g=a(s,p,""[e],(function(e,t,a,n,l){return t.exec===r?f&&!l?{done:!0,value:v.call(t,a,n)}:{done:!0,value:e.call(a,t,n)}:{done:!1}})),h=g[0],b=g[1];n(String.prototype,e,h),l(RegExp.prototype,p,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},"386d":function(e,t,a){"use strict";var n=a("cb7c"),l=a("83a1"),i=a("5f1b");a("214f")("search",1,(function(e,t,a,s){return[function(a){var n=e(this),l=void 0==a?void 0:a[t];return void 0!==l?l.call(a,n):new RegExp(a)[t](String(n))},function(e){var t=s(a,e,this);if(t.done)return t.value;var o=n(e),r=String(this),u=o.lastIndex;l(u,0)||(o.lastIndex=0);var c=i(o,r);return l(o.lastIndex,u)||(o.lastIndex=u),null===c?-1:c.index}]}))},"4dd0":function(e,t,a){"use strict";a.d(t,"b",(function(){return l})),a.d(t,"d",(function(){return i})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return o}));var n=a("b775");function l(e,t,a){return void 0!==t&&null!==t||(t=1),void 0!==a&&null!=a||(a=""),Object(n["a"])({url:"/container/?flag="+e+"&page="+t+"&image_id="+a,method:"get"})}function i(e){return Object(n["a"])({url:"/container/"+e+"/stop/?flag=list",method:"get"})}function s(e){return Object(n["a"])({url:"/container/"+e+"/start/?flag=list",method:"get"})}function o(e){return Object(n["a"])({url:"/container/"+e+"/delete/?flag=list",method:"delete"})}},"520a":function(e,t,a){"use strict";var n=a("0bfb"),l=RegExp.prototype.exec,i=String.prototype.replace,s=l,o="lastIndex",r=function(){var e=/a/,t=/b*/g;return l.call(e,"a"),l.call(t,"a"),0!==e[o]||0!==t[o]}(),u=void 0!==/()??/.exec("")[1],c=r||u;c&&(s=function(e){var t,a,s,c,d=this;return u&&(a=new RegExp("^"+d.source+"$(?!\\s)",n.call(d))),r&&(t=d[o]),s=l.call(d,e),r&&s&&(d[o]=d.global?s.index+s[0].length:t),u&&s&&s.length>1&&i.call(s[0],a,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)})),s}),e.exports=s},"5f1b":function(e,t,a){"use strict";var n=a("23c6"),l=RegExp.prototype.exec;e.exports=function(e,t){var a=e.exec;if("function"===typeof a){var i=a.call(e,t);if("object"!==typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return l.call(e,t)}},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},9211:function(e,t,a){},a477:function(e,t,a){},a481:function(e,t,a){"use strict";var n=a("cb7c"),l=a("4bf8"),i=a("9def"),s=a("4588"),o=a("0390"),r=a("5f1b"),u=Math.max,c=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};a("214f")("replace",2,(function(e,t,a,v){return[function(n,l){var i=e(this),s=void 0==n?void 0:n[t];return void 0!==s?s.call(n,i,l):a.call(String(i),n,l)},function(e,t){var l=v(a,e,this,t);if(l.done)return l.value;var d=n(e),p=String(this),f="function"===typeof t;f||(t=String(t));var h=d.global;if(h){var b=d.unicode;d.lastIndex=0}var y=[];while(1){var _=r(d,p);if(null===_)break;if(y.push(_),!h)break;var k=String(_[0]);""===k&&(d.lastIndex=o(p,i(d.lastIndex),b))}for(var I="",w=0,x=0;x<y.length;x++){_=y[x];for(var S=String(_[0]),C=u(c(s(_.index),p.length),0),L=[],V=1;V<_.length;V++)L.push(m(_[V]));var T=_.groups;if(f){var O=[S].concat(L,C,p);void 0!==T&&O.push(T);var D=String(t.apply(void 0,O))}else D=g(S,p,C,L,T,t);C>=w&&(I+=p.slice(w,C)+D,w=C+S.length)}return I+p.slice(w)}];function g(e,t,n,i,s,o){var r=n+e.length,u=i.length,c=f;return void 0!==s&&(s=l(s),c=p),a.call(o,c,(function(a,l){var o;switch(l.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(r);case"<":o=s[l.slice(1,-1)];break;default:var c=+l;if(0===c)return a;if(c>u){var p=d(c/10);return 0===p?a:p<=u?void 0===i[p-1]?l.charAt(1):i[p-1]+l.charAt(1):a}o=i[c-1]}return void 0===o?"":o}))}}))},b0c5:function(e,t,a){"use strict";var n=a("520a");a("5ca1")({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},e036:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-dialog",{attrs:{visible:e.centerDialogVisible,title:"添加",width:"65%"},on:{"update:visible":function(t){e.centerDialogVisible=t}}},[a("el-tabs",{attrs:{value:"add"},on:{"tab-click":e.handleClick}},[a("el-tab-pane",{attrs:{name:"add",label:"添加"}},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"label-width":"80px","element-loading-text":"添加中"}},[a("el-form-item",{attrs:{label:"漏洞名称"}},[a("el-input",{attrs:{size:"medium"},model:{value:e.vulInfo.vul_name,callback:function(t){e.$set(e.vulInfo,"vul_name",t)},expression:"vulInfo.vul_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"镜像"}},[a("el-col",{attrs:{span:17}},["file"===e.imgType?a("el-upload",{ref:"upload",attrs:{"http-request":e.uploadImg,accept:".tar",action:"/CombinationImage/",limit:1,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"medium",type:"primary"},slot:"trigger"},[e._v("选取文件")])],1):e._e(),e._v(" "),"text"===e.imgType?a("el-autocomplete",{staticStyle:{width:"100%"},attrs:{size:"medium","fetch-suggestions":e.querySearchAsync},on:{select:e.handleSelect},model:{value:e.vulInfo.name,callback:function(t){e.$set(e.vulInfo,"name",t)},expression:"vulInfo.name"}}):e._e()],1),e._v(" "),a("el-col",{staticStyle:{float:"right",right:"0"},attrs:{span:5}},[a("el-button",{attrs:{size:"medium"},on:{click:function(t){return t.stopPropagation(),e.changeType(t)}},model:{value:e.imgType,callback:function(t){e.imgType=t},expression:"imgType"}},[e._v(e._s(e.imgTypeText))])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"标签"}},[a("div",{staticClass:"tag-group"},[a("el-row",[a("el-col",{attrs:{span:2.5}},[a("el-button",{staticClass:"tag-group__title",staticStyle:{width:"80px"},attrs:{type:"primary",size:"mini"}},[e._v("漏洞类型")])],1),e._v(" "),e._l(e.vulInfo.HoleType,(function(t,n){return a("el-tag",{key:n,staticStyle:{"margin-left":"10px"},attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleClose(t,"HoleType","newtag")}}},[e._v("\n                    "+e._s(t)+"\n                  ")])})),e._v(" "),e.inputVisible1?a("el-autocomplete",{ref:"saveTagInput1",attrs:{"popper-class":"my-autocomplete","fetch-suggestions":function(t,a){e.querySearch(t,a,e.type="inputValue1")},placeholder:"请输入内容"},on:{select:e.handleSel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputConfirm1("newtag")}},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.item;return[a("div",{staticClass:"name"},[e._v(e._s(n.value))])]}}],null,!1,3425812505),model:{value:e.inputValue1,callback:function(t){e.inputValue1=t},expression:"inputValue1"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput1}},[e._v("+ New Tag")])],2)],1),e._v(" "),a("div",{staticClass:"tag-group"},[a("el-row",[a("el-col",{attrs:{span:2.5}},[a("el-button",{staticClass:"tag-group__title",staticStyle:{width:"80px"},attrs:{type:"primary",size:"mini"}},[e._v("开发语言")])],1),e._v(" "),e._l(e.vulInfo.devLanguage,(function(t,n){return a("el-tag",{key:n,staticStyle:{"margin-left":"10px"},attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleClose(t,"devLanguage","newtag")}}},[e._v("\n                  "+e._s(t)+"\n                  ")])})),e._v(" "),e.inputVisible2?a("el-autocomplete",{ref:"saveTagInput2",attrs:{"popper-class":"my-autocomplete","fetch-suggestions":function(t,a){e.querySearch(t,a,e.type="inputValue2")},placeholder:"请输入内容"},on:{select:e.handleSel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputConfirm2("newtag")}},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.item;return[a("div",{staticClass:"name"},[e._v(e._s(n.value))])]}}],null,!1,3425812505),model:{value:e.inputValue2,callback:function(t){e.inputValue2=t},expression:"inputValue2"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput2}},[e._v("+ New Tag")])],2)],1),e._v(" "),a("div",{staticClass:"tag-group"},[a("el-row",[a("el-col",{attrs:{span:2.5}},[a("el-button",{staticClass:"tag-group__title",staticStyle:{width:"80px"},attrs:{type:"primary",size:"mini"}},[e._v("数据库")])],1),e._v(" "),e._l(e.vulInfo.devDatabase,(function(t,n){return a("el-tag",{key:n,staticStyle:{"margin-left":"10px"},attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleClose(t,"devDatabase","newtag")}}},[e._v("\n                  "+e._s(t)+"\n                  ")])})),e._v(" "),e.inputVisible3?a("el-autocomplete",{ref:"saveTagInput3",attrs:{"popper-class":"my-autocomplete","fetch-suggestions":function(t,a){e.querySearch(t,a,e.type="inputValue3")},placeholder:"请输入内容"},on:{select:e.handleSel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputConfirm3("newtag")}},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.item;return[a("div",{staticClass:"name"},[e._v(e._s(n.value))])]}}],null,!1,3425812505),model:{value:e.inputValue3,callback:function(t){e.inputValue3=t},expression:"inputValue3"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput3}},[e._v("+ New Tag")])],2)],1),e._v(" "),a("div",{staticClass:"tag-group"},[a("el-row",[a("el-col",{attrs:{span:2.5}},[a("el-button",{staticClass:"tag-group__title",staticStyle:{width:"80px"},attrs:{type:"primary",size:"mini"}},[e._v("分类")])],1),e._v(" "),e._l(e.vulInfo.devClassify,(function(t,n){return a("el-tag",{key:n,staticStyle:{"margin-left":"10px"},attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleClose(t,"devClassify","newtag")}}},[e._v("\n                  "+e._s(t)+"\n                  ")])})),e._v(" "),e.inputVisible4?a("el-autocomplete",{ref:"saveTagInput4",attrs:{"popper-class":"my-autocomplete","fetch-suggestions":function(t,a){e.querySearch(t,a,e.type="inputValue4")},placeholder:"请输入内容"},on:{select:e.handleSel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputConfirm4("newtag")}},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.item;return[a("div",{staticClass:"name"},[e._v(e._s(n.value))])]}}],null,!1,3425812505),model:{value:e.inputValue4,callback:function(t){e.inputValue4=t},expression:"inputValue4"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput4}},[e._v("+ New Tag")])],2)],1)]),e._v(" "),a("el-form-item",{attrs:{label:"Rank"}},[a("el-input-number",{attrs:{min:.5,max:5,precision:1,step:.5,size:"medium"},model:{value:e.vulInfo.rank,callback:function(t){e.$set(e.vulInfo,"rank",t)},expression:"vulInfo.rank"}}),e._v(" "),a("el-tooltip",{attrs:{content:"默认分数为2.5分，可根据漏洞的利用难度进行评判",placement:"top"}},[a("i",{staticClass:"el-icon-question"})])],1),e._v(" "),a("el-form-item",{attrs:{label:"描述"}},[a("el-input",{attrs:{type:"textarea",size:"medium"},model:{value:e.vulInfo.desc,callback:function(t){e.$set(e.vulInfo,"desc",t)},expression:"vulInfo.desc"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"flag"}},[a("el-switch",{model:{value:e.vulInfo.is_flag,callback:function(t){e.$set(e.vulInfo,"is_flag",t)},expression:"vulInfo.is_flag"}}),e._v(" "),a("el-tooltip",{attrs:{content:"是否开启flag",placement:"top"}},[a("i",{staticClass:"el-icon-question"})])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.uploadImg}},[e._v("提 交")])],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{name:"local",label:"本地导入"}},[a("div",{staticClass:"filter-container"},[a("el-input",{staticStyle:{width:"230px"},attrs:{size:"medium"},model:{value:e.localSearch,callback:function(t){e.localSearch=t},expression:"localSearch"}}),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px","margin-bottom":"10px"},attrs:{size:"medium",type:"primary",icon:"el-icon-circle-plus-outline"},on:{click:e.batchLocalAdd}},[e._v("\n              一键导入\n            ")]),e._v("   \n            "),a("el-tooltip",{attrs:{content:"一键导入默认导入分数为 2.5 分,漏洞名称为镜像名称,漏洞描述为漏洞名称",placement:"top"}},[a("i",{staticClass:"el-icon-question"})])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.localLoading,expression:"localLoading"}],staticStyle:{width:"100%"},attrs:{data:e.localImageList.filter((function(t){return!e.localSearch||t.name.toLowerCase().includes(e.localSearch.toLowerCase())})),"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectLocalImages}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"名称","show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{label:"标签",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[!0===n.flag?a("el-tag",{attrs:{effect:"dark",type:"info"}},[e._v("已导入")]):!1===n.flag?a("el-tag",{attrs:{effect:"dark"}},[e._v("未导入")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-button",{attrs:{type:"danger",size:"small"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLocalRemove(n.name)}}},[e._v("移除")])]}}])})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{name:"addcompose",label:"Compose编译"}},[a("compose")],1)],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.progressShow,title:e.progress.title,width:"60%","before-close":e.closeProgress},on:{"update:visible":function(t){e.progressShow=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.progressLoading,expression:"progressLoading"}]},e._l(e.progress.layer,(function(t,n){return a("el-row",{staticStyle:{"margin-bottom":"10px",height:"24px"}},[a("el-tag",{staticStyle:{float:"left",width:"15%",height:"24px","line-height":"24px"},attrs:{align:"center"}},[e._v(e._s(t.id))]),e._v(" "),a("div",{staticStyle:{float:"left",width:"80%","margin-left":"10px"}},[100===t.progress?a("el-progress",{attrs:{percentage:t.progress,"text-inside":!0,"stroke-width":24,status:"success"}}):a("el-progress",{attrs:{percentage:t.progress,"text-inside":!0,"stroke-width":24}})],1)],1)})),1)]),e._v(" "),a("el-dialog",{attrs:{visible:e.deleteShow,title:"删除",width:"80%"},on:{"update:visible":function(t){e.deleteShow=t}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.deleteContainerList,border:"",stripe:""}},[a("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"vul_name",width:"150","show-overflow-tooltip":!0,label:"漏洞名称"}}),e._v(" "),a("el-table-column",{attrs:{"show-overflow-tooltip":!0,prop:"user_name",width:"100",label:"用户名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"vul_host",width:"200","show-overflow-tooltip":!0,label:"访问地址"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态",width:"85"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-tag",[e._v(e._s(n.container_status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"vul_desc","show-overflow-tooltip":!0,width:"300",label:"漏洞描述"}}),e._v(" "),a("el-table-column",{attrs:{prop:"combination_desc",label:"操作","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return["running"===n.container_status||"stop"===n.container_status?a("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-delete"},on:{click:function(t){return e.delContainer(n)}}},[e._v("删除")]):e._e()]}}])})],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.editShow},on:{"update:visible":function(t){e.editShow=t},close:e.closeDialog}},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"修改",name:"first"}},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.editLoding,expression:"editLoding"}],attrs:{"label-width":"80px","element-loading-text":"修改中"}},[a("el-form-item",{attrs:{label:"漏洞名称"}},[a("el-input",{attrs:{size:"medium"},model:{value:e.editVulInfo.image_vul_name,callback:function(t){e.$set(e.editVulInfo,"image_vul_name",t)},expression:"editVulInfo.image_vul_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"镜像"}},[a("el-input",{attrs:{disabled:""},model:{value:e.editVulInfo.image_name,callback:function(t){e.$set(e.editVulInfo,"image_name",t)},expression:"editVulInfo.image_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"标签"}},[a("div",{staticClass:"tag-group"},[a("el-row",[a("el-col",{attrs:{span:2.5}},[a("el-button",{staticClass:"tag-group__title",staticStyle:{width:"80px"},attrs:{type:"primary",size:"mini"}},[e._v("漏洞类型")])],1),e._v(" "),e._l(e.editVulInfo.HoleType,(function(t,n){return a("el-tag",{key:n,staticStyle:{"margin-left":"10px"},attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleClose(t,"HoleType")}}},[e._v("\n                "+e._s(t)+"\n              ")])})),e._v(" "),e.inputVisible1?a("el-autocomplete",{ref:"saveTagInput1",attrs:{"popper-class":"my-autocomplete","fetch-suggestions":function(t,a){e.querySearch(t,a,e.type="inputValue1")},placeholder:"请输入内容"},on:{select:e.handleSel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputConfirm1(t)}},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.item;return[a("div",{staticClass:"name"},[e._v(e._s(n.value))])]}}],null,!1,3425812505),model:{value:e.inputValue1,callback:function(t){e.inputValue1=t},expression:"inputValue1"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput1}},[e._v("+ New Tag")])],2)],1),e._v(" "),a("div",{staticClass:"tag-group"},[a("el-row",[a("el-col",{attrs:{span:2.5}},[a("el-button",{staticClass:"tag-group__title",staticStyle:{width:"80px"},attrs:{type:"primary",size:"mini"}},[e._v("开发语言")])],1),e._v(" "),e._l(e.editVulInfo.devLanguage,(function(t,n){return a("el-tag",{key:n,staticStyle:{"margin-left":"10px"},attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleClose(t,"devLanguage")}}},[e._v("\n              "+e._s(t)+"\n              ")])})),e._v(" "),e.inputVisible2?a("el-autocomplete",{ref:"saveTagInput2",attrs:{"popper-class":"my-autocomplete","fetch-suggestions":function(t,a){e.querySearch(t,a,e.type="inputValue2")},placeholder:"请输入内容"},on:{select:e.handleSel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputConfirm2(t)}},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.item;return[a("div",{staticClass:"name"},[e._v(e._s(n.value))])]}}],null,!1,3425812505),model:{value:e.inputValue2,callback:function(t){e.inputValue2=t},expression:"inputValue2"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput2}},[e._v("+ New Tag")])],2)],1),e._v(" "),a("div",{staticClass:"tag-group"},[a("el-row",[a("el-col",{attrs:{span:2.5}},[a("el-button",{staticClass:"tag-group__title",staticStyle:{width:"80px"},attrs:{type:"primary",size:"mini"}},[e._v("数据库")])],1),e._v(" "),e._l(e.editVulInfo.devDatabase,(function(t,n){return a("el-tag",{key:n,staticStyle:{"margin-left":"10px"},attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleClose(t,"devDatabase")}}},[e._v("\n              "+e._s(t)+"\n              ")])})),e._v(" "),e.inputVisible3?a("el-autocomplete",{ref:"saveTagInput3",attrs:{"popper-class":"my-autocomplete","fetch-suggestions":function(t,a){e.querySearch(t,a,e.type="inputValue3")},placeholder:"请输入内容"},on:{select:e.handleSel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputConfirm3(t)}},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.item;return[a("div",{staticClass:"name"},[e._v(e._s(n.value))])]}}],null,!1,3425812505),model:{value:e.inputValue3,callback:function(t){e.inputValue3=t},expression:"inputValue3"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput3}},[e._v("+ New Tag")])],2)],1),e._v(" "),a("div",{staticClass:"tag-group"},[a("el-row",[a("el-col",{attrs:{span:2.5}},[a("el-button",{staticClass:"tag-group__title",staticStyle:{width:"80px"},attrs:{type:"primary",size:"mini"}},[e._v("开发框架")])],1),e._v(" "),e._l(e.editVulInfo.devClassify,(function(t,n){return a("el-tag",{key:n,staticStyle:{"margin-left":"10px"},attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleClose(t,"devClassify")}}},[e._v("\n              "+e._s(t)+"\n              ")])})),e._v(" "),e.inputVisible4?a("el-autocomplete",{ref:"saveTagInput4",attrs:{"popper-class":"my-autocomplete","fetch-suggestions":function(t,a){e.querySearch(t,a,e.type="inputValue4")},placeholder:"请输入内容"},on:{select:e.handleSel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputConfirm4(t)}},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.item;return[a("div",{staticClass:"name"},[e._v(e._s(n.value))])]}}],null,!1,3425812505),model:{value:e.inputValue4,callback:function(t){e.inputValue4=t},expression:"inputValue4"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput4}},[e._v("+ New Tag")])],2)],1)]),e._v(" "),a("el-form-item",{attrs:{label:"Rank"}},[a("el-input-number",{attrs:{min:0,max:5,precision:1,step:.5,size:"medium"},model:{value:e.editVulInfo.rank,callback:function(t){e.$set(e.editVulInfo,"rank",t)},expression:"editVulInfo.rank"}}),e._v(" "),a("el-tooltip",{attrs:{content:"默认分数为2.5分，可根据漏洞的利用难度进行评判",placement:"top"}},[a("i",{staticClass:"el-icon-question"})])],1),e._v(" "),a("el-form-item",{attrs:{label:"Flag"}},[a("el-switch",{model:{value:e.editVulInfo.is_flag,callback:function(t){e.$set(e.editVulInfo,"is_flag",t)},expression:"editVulInfo.is_flag"}}),e._v(" "),a("el-tooltip",{attrs:{content:"是否开启flag",placement:"top"}},[a("i",{staticClass:"el-icon-question"})])],1),e._v(" "),a("el-form-item",{attrs:{label:"描述"}},[a("el-input",{attrs:{type:"textarea",size:"medium"},model:{value:e.editVulInfo.image_desc,callback:function(t){e.$set(e.editVulInfo,"image_desc",t)},expression:"editVulInfo.image_desc"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.handleEditImage}},[e._v("提 交")])],1)],1)],1),e._v(" "),!0===e.editVulInfo.is_docker_compose?a("el-tab-pane",{attrs:{id:"compose-update",label:"Compose修改",name:"secnd"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"el-icon-document"}),e._v("DockerCompose修改")]),e._v(" "),a("el-tabs",{ref:"tab",attrs:{value:"dockerfile"}},[a("el-tab-pane",{attrs:{name:"dockerfile"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"el-icon-edit"}),e._v(" DockerCompose.yml")]),e._v(" "),a("div",[a("el-form",[a("el-form-item",[a("el-input",{attrs:{type:"textarea",rows:"10",placeholder:"Define or paste the content of Your DockerCompose.yml here"},model:{value:e.compose_content,callback:function(t){e.compose_content=t},expression:"compose_content"}})],1)],1)],1)])],1),e._v(" "),a("div",[a("el-row",[a("el-col",{attrs:{span:2}},[a("div",{staticClass:"action-group"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.update_compose_build}},[e._v("编译")])],1)]),e._v(" "),a("el-col",{staticStyle:{"margin-top":"1px"},attrs:{span:22}},[a("div",[a("el-upload",{ref:"upload",attrs:{"http-request":e.upload,"max-size":2048,action:"/CombinationImage/","before-upload":e.beforeAvatarUpload,"on-remove":e.removeChange,"on-change":e.handleChange,"file-list":e.fileList}},[a("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{slot:"trigger",size:"mini",type:"primary"},slot:"trigger"},[e._v("上传文件")])],1)],1)])],1)],1)],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-input",{staticStyle:{width:"230px"},attrs:{size:"medium"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px","margin-bottom":"10px"},attrs:{size:"medium",type:"primary",icon:"el-icon-search"},on:{click:function(t){return e.SearchQuery(1)}}},[e._v("\n      查询\n    ")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px","margin-bottom":"10px"},attrs:{size:"medium",type:"primary",icon:"el-icon-edit"},on:{click:e.openCreate}},[e._v("\n      添加\n    ")]),e._v(" "),!1===e.loading?a("el-button",{staticClass:"filter-item",staticStyle:{float:"right","margin-bottom":"10px"},attrs:{size:"medium",type:"primary",icon:"el-icon-refresh-left"},on:{click:e.getWebsiteData}},[e._v("\n      一键同步\n    ")]):!0===e.loading?a("el-button",{staticStyle:{float:"right","margin-bottom":"10px"},attrs:{type:"primary",loading:!0}},[e._v("同步中")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tabLoading,expression:"tabLoading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",stripe:"",align:"center"}},[a("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"image_name",label:"镜像名称","show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"image_vul_name",label:"漏洞名称","show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"image_port",label:"端口",width:"150"}}),e._v(" "),a("el-table-column",{attrs:{prop:"rank",label:"分数",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"标签",width:"260"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return n.degree.length>0&&""!==n.degree?e._l(n.degree,(function(t){return a("el-tag",{staticStyle:{"margin-left":"2px"}},[e._v(e._s(t))])})):void 0}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{prop:"image_desc","show-overflow-tooltip":!0,label:"描述"}}),e._v(" "),a("el-table-column",{attrs:{prop:"update_date","show-overflow-tooltip":!0,label:"修改时间"}}),e._v(" "),a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"280"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[!1===n.is_ok&&""!==n.status.task_id?a("el-tag",{staticStyle:{display:"inline-block",float:"left","line-height":"28px",height:"28px","margin-left":"5px"},attrs:{effect:"dark"},on:{click:function(t){return e.openProgress(n,1)}}},[a("div",{staticStyle:{display:"inline-block",float:"left"}},[a("span",[e._v("下载中")])]),e._v(" "),a("div",{staticStyle:{display:"inline-block",float:"left"}},[a("el-progress",{staticStyle:{"margin-left":"3px","margin-top":"3px"},attrs:{type:"circle","stroke-width":3,"show-text":!1,"text-inside":!1,percentage:n.status.progress,width:20}})],1)]):!1===n.is_ok&&""===n.status.task_id?a("el-button",{staticStyle:{display:"inline-block",float:"left","margin-left":"5px"},attrs:{size:"mini",type:"primary",icon:"el-icon-download"},on:{click:function(t){return e.downloadImg(n)}}},[e._v("下载")]):e._e(),e._v(" "),!0===n.is_ok||!1===n.is_ok&&""===n.status.task_id?a("el-button",{staticStyle:{display:"inline-block",float:"left","margin-left":"5px"},attrs:{size:"mini",icon:"el-icon-edit",type:"primary"},on:{click:function(t){return e.openEdit(n)}}},[e._v("修改")]):e._e(),e._v(" "),!0===n.is_ok||!1===n.is_ok&&""===n.status.task_id?a("el-button",{staticStyle:{display:"inline-block",float:"left","margin-left":"5px"},attrs:{size:"mini",type:"danger",icon:"el-icon-delete"},on:{click:function(t){return e.handleDelete(n)}}},[e._v("删除")]):e._e(),e._v(" "),!0===n.is_ok&&!0===n.is_share?a("el-tag",{staticStyle:{display:"inline-block",float:"left","line-height":"28px",height:"28px","margin-left":"5px"},attrs:{type:"success",effect:"dark"}},[a("div",{staticStyle:{display:"inline-block",float:"left"}},[a("span",[e._v("已分享")])])]):e._e(),e._v(" "),!0===n.is_ok&&!1===n.is_share&&"share"!==n.status.progress_status?a("el-button",{staticStyle:{display:"inline-block",float:"left","margin-left":"5px"},attrs:{size:"mini",type:"primary",icon:"el-icon-share"},on:{click:function(t){return e.shareImg(n)}}},[e._v("分享")]):e._e(),e._v(" "),!0===n.is_ok&&"share"===n.status.progress_status?a("el-tag",{staticStyle:{display:"inline-block",float:"left","line-height":"28px",height:"28px","margin-left":"5px"},attrs:{effect:"dark"},on:{click:function(t){return e.openProgress(n,2)}}},[a("div",{staticStyle:{display:"inline-block",float:"left"}},[a("span",[e._v("分享中")])]),e._v(" "),a("div",{staticStyle:{display:"inline-block",float:"left"}},[a("el-progress",{staticStyle:{"margin-left":"3px","margin-top":"3px"},attrs:{type:"circle","stroke-width":3,"show-text":!1,"text-inside":!1,percentage:n.status.progress,width:20}})],1)]):e._e()]}}])})],1),e._v(" "),a("div",{staticStyle:{"margin-top":"20px"}},[a("el-pagination",{attrs:{"page-size":e.page.size,layout:"total, prev, pager, next, jumper",total:e.page.total},on:{"current-change":e.handleQuery}})],1)],1)},l=[],i=(a("a481"),a("386d"),a("7f7f"),a("ac6a"),a("3007")),s=a("bc3a"),o=a.n(s);function r(e){var t="https://hub.docker.com/api/content/v1/products/search?page_size=50&q=vulfocus%2F"+e+"&type=image";return o()({method:"get",url:t,headers:{"Sec-Fetch-Site":"none","Sec-Fetch-Mode":"cors","Sec-Fetch-Dest":"empty","Accept-Encoding":"gzip, deflate","Accept-Language":"zh-CN,zh;q=0.9","Search-Version":"v3"}})}var u=a("b775");function c(e){return Object(u["a"])({url:"/images/",method:"post",headers:{"Content-Type":"multipart/form-data"},data:e})}function d(e,t){return Object(u["a"])({url:"/images/"+e+"/edit/",method:"post",data:t})}function p(e){return Object(u["a"])({url:"/images/"+e+"/delete/"})}function f(){return Object(u["a"])({url:"/images/local/local/"})}function m(e){return Object(u["a"])({url:"/images/local/local_add/",method:"post",data:e})}function v(e){return Object(u["a"])({url:"/images/"+e+"/download/"})}function g(e){return Object(u["a"])({url:"/images/"+e+"/share/"})}var h=a("4dd0"),b=a("ea7f"),y=a("16d8"),_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[a("div",{staticClass:"widget"},[a("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{type:"border-card","element-loading-text":"正在安装相关镜像","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.1)"}},[a("el-tab-pane",{attrs:{id:"ceshi"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"el-icon-document"}),e._v("DockerCompose")]),e._v(" "),a("el-form",{ref:"build",attrs:{model:e.composeForm,inline:"",size:"mini",rules:e.rules}},[a("el-form-item",{attrs:{label:"名称",prop:"tag1"}},[a("el-input",{attrs:{placeholder:"eg. redis:latest"},model:{value:e.composeForm.tag1,callback:function(t){e.$set(e.composeForm,"tag1",t)},expression:"composeForm.tag1"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Rank"}},[a("el-input-number",{attrs:{min:0,max:5,precision:1,step:.5,size:"mini"},model:{value:e.composeForm.rank,callback:function(t){e.$set(e.composeForm,"rank",t)},expression:"composeForm.rank"}}),e._v(" "),a("el-tooltip",{attrs:{content:"默认分数为2.5分，可根据漏洞的利用难度进行评判",placement:"top"}},[a("i",{staticClass:"el-icon-question"})])],1),e._v(" "),a("el-form-item",{attrs:{label:"flag"}},[a("el-switch",{model:{value:e.composeForm.is_flag,callback:function(t){e.$set(e.composeForm,"is_flag",t)},expression:"composeForm.is_flag"}}),e._v(" "),a("el-tooltip",{attrs:{content:"是否开启flag",placement:"top"}},[a("i",{staticClass:"el-icon-question"})])],1)],1),e._v(" "),a("el-tabs",{ref:"tab",attrs:{value:"dockerfile"}},[a("el-tab-pane",{attrs:{name:"dockerfile"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"el-icon-edit"}),e._v(" DockerCompose.yml")]),e._v(" "),a("div",[a("el-form",[a("el-form-item",[a("el-input",{attrs:{type:"textarea",rows:"10",placeholder:"Define or paste the content of Your DockerCompose.yml here"},model:{value:e.compose_content,callback:function(t){e.compose_content=t},expression:"compose_content"}})],1)],1)],1)])],1),e._v(" "),a("div",[a("el-row",[a("el-col",{attrs:{span:2}},[a("div",{staticClass:"action-group"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.compose_build}},[e._v("编译")])],1)]),e._v(" "),a("el-col",{staticStyle:{"margin-top":"10px"},attrs:{span:22}},[a("div",[a("el-upload",{ref:"upload",attrs:{"http-request":e.upload,"max-size":2048,action:"/CombinationImage/","before-upload":e.beforeAvatarUpload,"on-remove":e.removeChange,"on-change":e.handleChange,"file-list":e.fileList}},[a("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{slot:"trigger",size:"mini",type:"primary"},slot:"trigger"},[e._v("上传文件")])],1)],1)])],1)],1)],1)],1)],1)])},k=[],I=a("0cef"),w={inject:["reload"],data:function(){return{rules:{tag:[{required:!0,max:100,min:2,message:"请输入要构建的镜像名称"}],tag1:[{required:!0,max:100,min:2,message:"请输入要构建的镜像名称"}]},selectHub:"DockerHub",imageName:"",buildForm:{tag:""},composeForm:{tag1:"",rank:"",degree:[],is_flag:!0},options:[{value:"DockerHub",label:"DockerHub"}],file:null,output:[],pk:null,content:"",compose_content:"",listTotal:0,listData:[],showLog:!1,loading:!1,newFile:new FormData,fileList:[],degreeList:[{value:"命令执行",lable:"命令执行"},{value:"代码执行",lable:"代码执行"},{value:"文件写入",lable:"文件写入"},{value:"文件上传",lable:"文件上传"},{value:"后门",lable:"后门"},{value:"默认口令",lable:"默认口令"},{value:"弱口令",lable:"弱口令"},{value:"权限绕过",lable:"权限绕过"},{value:"未授权访问",lable:"未授权访问"},{value:"XXE漏洞",lable:"XXE漏洞"},{value:"SQL注入",lable:"SQL注入"},{value:"文件读取",lable:"文件读取"},{value:"文件下载",lable:"文件下载"},{value:"文件包含",lable:"文件包含"},{value:"文件删除",lable:"文件删除"},{value:"目录遍历",lable:"目录遍历"},{value:"信息泄漏",lable:"信息泄漏"},{value:"任意账户操作",lable:"任意账户操作"},{value:"XSS漏洞",lable:"XSS漏洞"},{value:"SSRF漏洞",lable:"SSRF漏洞"},{value:"CSRF漏洞",lable:"CSRF漏洞"}]}},created:function(){},methods:{showCompose:function(){var e=this;Object(I["k"])().then((function(t){if(200===t.data.code){var a=t.data["data"],n=t.data["img_name"];e.compose_content=a,e.composeForm.tag1=n,e.loading=!0}}))},removeChange:function(e,t){var a=this;this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var n=new FormData;n.set("file",e.name),Object(I["b"])(n).then((function(n){var l=n.data;if(200===l.status){for(var i=0;i<t.length;i++)t[i]===e&&t.splice(i,1);a.$message({type:"success",message:"删除成功!"})}else t.push(e),a.$message({type:"error",message:"删除失败!"})}))})).catch((function(){t.push(e),a.$message({type:"info",message:"已取消删除"})}))},compose_build:function(){var e=this,t={};t.compose_content=this.compose_content,t.tag=this.composeForm.tag1,t.rank=this.composeForm.rank,t.degree=this.composeForm.degree,t.is_flag=this.composeForm.is_flag,Object(I["a"])(t).then((function(t){200===t.data.code?(e.$message({title:"构建任务创建成功",message:t.data.message,type:"success"}),e.reload()):e.$message({title:"构建任务创建失败",message:t.data.message,type:"error"})}))},beforeAvatarUpload:function(e){if(!e)return!1;this.newFile.set("file",e)},handleChange:function(e,t){this.fileList=t},upload:function(e,t){var a=this,n=e.file.size/1024/1024;if(n>2)this.$message({message:"文件大小必须小于2M",type:"error"}),this.fileList.pop();else{var l=this.newFile;Object(I["n"])(l).then((function(e){var t=e.data;if(t.data&&200===t.status){for(var n=0;n<a.fileList.length;n++)-1===a.fileList[n].name.indexOf("../compose_file/")&&(a.fileList[n].name="../compose_file/"+a.fileList[n].name);a.$message({message:"上传成功",type:"success"})}else a.fileList.pop(),a.$message({message:t.msg,type:"error"})})).catch((function(e){a.fileList.pop(),a.$message({message:"服务器内部错误",type:"error"})}))}}}},x=w,S=(a("153a"),a("2877")),C=Object(S["a"])(x,_,k,!1,null,"6c64923b",null),L=C.exports,V={inject:["reload"],name:"index",components:{MarkdownEditor:y["a"],Compose:L},data:function(){return{markstatus:!1,tableData:[],search:"",real_search:"",localSearch:"",centerDialogVisible:!1,startCon:!1,vulInfo:{rank:"",name:"",vul_name:"",desc:"",degree:[],is_flag:!0,HoleType:[],devLanguage:[],devDatabase:[],devClassify:[]},activeName:"first",HoleType:[],devLanguage:[],devDatabase:[],devClassify:[],inputVisible1:!1,inputVisible2:!1,inputVisible3:!1,inputVisible4:!1,inputValue1:"",inputValue2:"",inputValue3:"",inputValue4:"",editShow:!1,editLoding:!1,tabLoading:!0,degreeList:[{value:"命令执行",lable:"命令执行"},{value:"代码执行",lable:"代码执行"},{value:"文件写入",lable:"文件写入"},{value:"文件上传",lable:"文件上传"},{value:"后门",lable:"后门"},{value:"默认口令",lable:"默认口令"},{value:"弱口令",lable:"弱口令"},{value:"权限绕过",lable:"权限绕过"},{value:"未授权访问",lable:"未授权访问"},{value:"XXE漏洞",lable:"XXE漏洞"},{value:"SQL注入",lable:"SQL注入"},{value:"文件读取",lable:"文件读取"},{value:"文件下载",lable:"文件下载"},{value:"文件包含",lable:"文件包含"},{value:"文件删除",lable:"文件删除"},{value:"目录遍历",lable:"目录遍历"},{value:"信息泄漏",lable:"信息泄漏"},{value:"任意账户操作",lable:"任意账户操作"},{value:"XSS漏洞",lable:"XSS漏洞"},{value:"SSRF漏洞",lable:"SSRF漏洞"},{value:"CSRF漏洞",lable:"CSRF漏洞"}],languageList:[{value:"Java",lable:"Java"},{value:"Python",lable:"Python"},{value:"C++",lable:"C++"},{value:"C#",lable:"C#"},{value:"VisualBasic",lable:"VisualBasic"},{value:"JavaScript",lable:"JavaScript"},{value:"HTML",lable:"HTML"},{value:"PHP",lable:"PHP"},{value:"R",lable:"R"},{value:"Swift",lable:"Swift"},{value:"Go",lable:"Go"},{value:"Ruby",lable:"Ruby"},{value:"Perl",lable:"Perl"},{value:"Asp",lable:"Asp"},{value:".Net",lable:".Net"}],databaseList:[{value:"Oracle",lable:"Oracle"},{value:"MySQL",lable:"MySQL"},{value:"Microsoft SQL Server",lable:"Microsoft SQL Server"},{value:"PostgreSQL",lable:"PostgreSQL"},{value:"MongoDB",lable:"MongoDB"},{value:"IBM Db2",lable:"IBM Db2"},{value:"Elasticsearch",lable:"Elasticsearch"},{value:"Redis",lable:"Redis"},{value:"SQLite",lable:"SQLite"},{value:"Cassandra",lable:"Cassandra"},{value:"Microsoft Access",lable:"Microsoft Access"},{value:"MariaDB Relational",lable:"MariaDB Relational"},{value:"Splunk",lable:"Splunk"},{value:"Hive",lable:"Hive"},{value:"Teradata",lable:"Teradata"}],classifyList:[{value:"全部",lable:"全部"},{value:"Bootstrap",lable:"Bootstrap"},{value:"Angular",lable:"Angular"},{value:"Jquery",lable:"Jquery"},{value:"react",lable:"react"},{value:"vue",lable:"vue"},{value:"Zepto",lable:"Zepto"},{value:"CakePHP",lable:"CakePHP"},{value:"Django",lable:"Django"},{value:"Ruby on Rails",lable:"Ruby on Rails"},{value:"Flask",lable:"Flask"},{value:"Phoenix",lable:"Phoenix"},{value:"Spring Boot",lable:"Spring Boot"},{value:"Laravel",lable:"Laravel"}],editVulInfo:{rank:"",image_name:"",image_id:"",image_vul_name:"",image_desc:"",degree:[],is_flag:!0,is_docker_compose:!1,docker_compose_yml:"",HoleType:[],devLanguage:[],devDatabase:[],devClassify:[]},compose_content:"",imgType:"text",imgTypeText:"切换为文件",loading:!1,summaries:[],taskCheckInterval:null,tmpImageNameList:[],localImageList:[],tmpLocalImageList:[],localLoading:!0,selectLocalImages:[],progressShow:!1,progressLoading:!1,deleteShow:!1,deleteContainerList:[],progress:{title:"",layer:[],total:0,count:0,progress:0,progressInterval:null},taskList:[],taskDict:{},page:{total:0,size:20},value:[],newFile:new FormData,fileList:[],restaurants:[],state:"",current_page:1}},mounted:function(){this.restaurants=this.degreeList},created:function(){this.initTableData(),this.initSummariesList()},methods:{getWebsiteData:function(){var e=this;this.loading=!0,Object(i["j"])().then((function(t){var a=t.data;200===a.code?(e.$message({message:"同步完成",type:"success"}),e.reload()):e.$message({message:"同步失败",type:"error"}),e.loading=!1}))},querySearchAsync:function(e,t){var a=this,n=this.summaries;null===e||""===e||0===e.length?(this.initSummariesList(),t(n)):r(e).then((function(e){if(a.summaries=[],200===e.status){var l=e.data["summaries"];null!=l&&l.forEach((function(e,t,n){a.summaries.push({value:e["name"]})})),n=a.summaries,t(n)}}))},searchSummariesList:function(e){var t=this;this.summaries=[],r(e).then((function(e){if(t.summaries=[],200===e.status){var a=e.data["summaries"];a.forEach((function(e,a,n){t.summaries.push({value:e["name"]})}))}}))},initSummariesList:function(){this.searchSummariesList("")},querySearch:function(e,t,a){var n=a;if(a){if("inputValue1"===n)var l=this.degreeList;if("inputValue2"===n)l=this.languageList;if("inputValue3"===n)l=this.databaseList;if("inputValue4"===n)l=this.classifyList}else l=[];var i=e?l.filter(this.createFilter(e)):l;t(i)},createFilter:function(e){return function(t){return 0===t.value.toLowerCase().indexOf(e.toLowerCase())}},handleSel:function(e){},initTableData:function(){var e=this;clearInterval(this.taskCheckInterval),Object(i["f"])(void 0,!0,1).then((function(t){e.tableData=t.data.results,e.tabLoading=!1,e.page.total=t.data.count,e.tableData.forEach((function(t,a,n){var l=t.image_name;e.tmpImageNameList.indexOf(l)>-1&&e.$notify({title:"成功",message:l+" 添加成功",type:"success"})}));var a=t.data.results;e.taskCheckInterval=window.setInterval((function(){setTimeout((function(){e.checkTask(a)}),0)}),2e3)}))},openCreate:function(){this.centerDialogVisible=!0,this.vulInfo.rank=2.5,this.vulInfo.name="",this.vulInfo.vul_name="",this.vulInfo.desc="",this.vulInfo.degree=[],this.vulInfo.is_flag=!0},openProgress:function(e,t){var a=this;this.progress={title:"",layer:[],total:0,count:0,progress:0,progressInterval:null},this.progressShow=!0,this.progressLoading=!0;var n=e.status.task_id;this.progress.title=1===t?"下载镜像："+e.image_name:"分享镜像："+e.image_name,this.progress.progressInterval=window.setInterval((function(){setTimeout((function(){a.progressLoading=!1,Object(b["d"])(n).then((function(e){null!=e.data.data&&200===e.data.status&&(a.progress.count=e.data.data.progress_count,a.progress.progress=e.data.data.progress,a.progress.total=e.data.data.total,a.progress.layer=e.data.data.layer,(100===a.progress.progress||0!==a.progress.count&&0!==a.progress.total&&a.progress.count===a.progress.total)&&(clearInterval(a.progress.progressInterval),a.progressShow=!1))}))}),1.5)}),2e3)},openEdit:function(e){this.activeName="first",this.editShow=!0,this.editVulInfo=e,this.compose_content=e.status.json_yml},handleEditImage:function(){var e=this;this.editLoding=!0;var t={HoleType:this.editVulInfo.HoleType,devLanguage:this.editVulInfo.devLanguage,devDatabase:this.editVulInfo.devDatabase,devClassify:this.editVulInfo.devClassify};this.editVulInfo.degree=t,d(this.editVulInfo.image_id,this.editVulInfo).then((function(t){e.editLoding=!1;var a=t.data,n=a.msg;200===a.status?(e.$message({message:"修改成功!",type:"success"}),e.editShow=!1,Object(i["f"])(e.search,!0,e.current_page).then((function(t){e.tableData=t.data.results,e.page.total=t.data.count}))):e.$message({message:n,type:"error"})}))},closeDialog:function(){this.editShow=!1,this.editVulInfo=[]},closeProgress:function(){this.progressShow=!1,this.progressLoading=!1;try{clearInterval(this.progress.progressInterval)}catch(e){}},changeType:function(){"file"===this.imgType?(this.imgType="text",this.imgTypeText="切换为文件"):(this.imgType="file",this.imgTypeText="切换为文本")},uploadImg:function(){var e=this,t=new FormData;if(null!=this.$refs.upload){var a=this.$refs.upload.uploadFiles;(null!=this.$refs.upload.uploadFiles||this.$refs.upload.uploadFiles.length>0)&&t.set("file",a[0].raw)}this.vulInfo.HoleType,this.vulInfo.devLanguage,this.vulInfo.devDatabase,this.vulInfo.devClassify;t.set("rank",this.vulInfo.rank),t.set("image_name",this.vulInfo.name),t.set("image_vul_name",this.vulInfo.vul_name),t.set("image_desc",this.vulInfo.desc),t.set("HoleType",this.vulInfo.HoleType),t.set("devLanguage",this.vulInfo.devLanguage),t.set("devDatabase",this.vulInfo.devDatabase),t.set("devClassify",this.vulInfo.devClassify),t.set("is_flag",this.vulInfo.is_flag),this.loading=!0,c(t).then((function(t){e.loading=!1;var a=t.data,n=a["data"];if(null!=n&&(n.indexOf("成功")>-1||n.indexOf("失败")>-1)){var l=n.replace("拉取镜像","").replace("任务下发成功","").replace(" ","");e.tmpImageNameList.push(l),n.indexOf("成功")>-1?(e.$notify({title:"成功",message:n,type:"success"}),e.centerDialogVisible=!1,e.initTableData()):(e.$notify({title:n,message:n,type:"error"}),e.centerDialogVisible=!1)}else e.$notify({title:"成功",message:a["msg"],type:"success"}),e.centerDialogVisible=!1,e.initTableData()}))},downloadImg:function(e){var t=this,a=e.image_id;v(a).then((function(e){var a=e.data,n=a["msg"];if(200===a.status)if(null!=n&&(n.indexOf("成功")>-1||n.indexOf("失败")>-1)){var l=n.replace("拉取镜像","").replace("任务下发成功","").replace(" ","");t.tmpImageNameList.push(l),n.indexOf("成功")>-1?(t.$notify({title:"成功",message:n,type:"success"}),clearInterval(t.taskCheckInterval),Object(i["f"])(t.real_search,!0,t.current_page).then((function(e){t.tableData=e.data.results,t.tabLoading=!1,t.page.total=e.data.count,t.tableData.forEach((function(e,a,n){var l=e.image_name;t.tmpImageNameList.indexOf(l)>-1&&t.$notify({title:"成功",message:l+" 添加成功",type:"success"})}));var a=e.data.results;t.taskCheckInterval=window.setInterval((function(){setTimeout((function(){t.checkTask(a)}),0)}),2e3)}))):t.$notify({message:n,type:"error"})}else t.$notify({message:n,type:"error"});else t.$notify({message:n,type:"error"}),t.centerDialogVisible=!1}))},shareImg:function(e){var t=this;e.status.status="share",g(e.image_id).then((function(e){var a=e.data,n=a.status;200===n||t.$message({message:a.msg,type:"error"}),Object(i["f"])(t.real_search,!0,t.current_page).then((function(e){t.tableData=e.data.results,t.tabLoading=!1,t.page.total=e.data.count,t.tableData.forEach((function(e,a,n){var l=e.image_name;t.tmpImageNameList.indexOf(l)>-1&&t.$notify({title:"成功",message:l+" 添加成功",type:"success"})}));var a=e.data.results;t.taskCheckInterval=window.setInterval((function(){setTimeout((function(){t.checkTask(a)}),0)}),2e3)}))}))},handleDelete:function(e){var t=this;this.$confirm("确认删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p(e.image_id).then((function(e){var a=e.data;200===a.status?(t.$message({title:"成功",message:"删除成功!",type:"success"}),clearInterval(t.taskCheckInterval),1===t.tableData.length&&(t.current_page-=1,0==t.current_page&&(t.current_page=1)),Object(i["f"])(t.real_search,!0,t.current_page).then((function(e){t.tableData=e.data.results,t.tabLoading=!1,t.page.total=e.data.count,t.tableData.forEach((function(e,a,n){var l=e.image_name;t.tmpImageNameList.indexOf(l)>-1&&t.$notify({title:"成功",message:l+" 添加成功",type:"success"})}));var a=e.data.results;t.taskCheckInterval=window.setInterval((function(){setTimeout((function(){t.checkTask(a)}),0)}),2e3)}))):(t.deleteShow=!0,t.deleteContainerList=a.data,t.$message({title:"失败",message:a.msg,type:"error"}))}))})).catch((function(){}))},handleQuery:function(e){var t=this;this.current_page=e,Object(i["f"])(this.real_search,!0,e).then((function(e){t.tableData=e.data.results,t.page.total=e.data.count})).catch((function(){}))},handleSelect:function(e){this.vulInfo.name=e.value,this.vulInfo.vul_name=e.value.replace("vulfocus/",""),this.vulInfo.desc=e.value.replace("vulfocus/","")},checkTask:function(e){var t=this;e.forEach((function(e,a,n){var l=e["is_ok"],i=e["status"]["task_id"],s=e["status"]["progress_status"];(!1===l&&null!=i&&""!==i||!0===l&&null!=i&&""!==i&&"share"===s)&&-1===t.taskList.indexOf(i)&&(t.taskList.push(i),t.taskDict[i]=e)}));var a=this.taskList.join(",");if(null!=a&&""!==a){var n=new FormData;n.set("task_ids",a),Object(b["a"])(n).then((function(e){var a=e.data.data;for(var n in a){var l=a[n],i=l["status"];if(1!==i&&2!==i)if(t.removeArray(t.taskList,n),t.taskDict[n].is_ok=!0,200===l["data"]["status"]){var s=l["data"]["data"];try{var o=s.replace('{"image_port":',"").replace("}","").replace(":","").replace('"',"").replace('"',"");t.taskDict[n].image_port=o}catch(r){}try{l["data"]["msg"].indexOf("分享")>-1&&(t.taskDict[n].is_share=!0,t.taskDict[n].status.progress_status="")}catch(r){}t.$notify({message:l["data"]["msg"],type:"success"})}else{try{l["data"]["msg"].indexOf("分享")>-1&&(t.taskDict[n].is_share=!1,t.taskDict[n].status.progress_status="")}catch(r){}t.$notify({message:l["data"]["msg"],type:"error"})}else t.taskDict[n].status.progress=l["progress"]}null!=t.taskList&&0!==t.taskList.length||(t.taskList=[],t.taskDict={},clearInterval(t.taskCheckInterval))}))}},removeArray:function(e,t){for(var a=0;a<e.length;a++)if(e[a]===t){e.splice(a,1);break}},loadLocalImages:function(){var e=this;this.localLoading=!0,f().then((function(t){var a=t.data,n=a.status,l=a.data;200===n&&(e.localImageList=l,e.tmpLocalImageList=l),e.localLoading=!1}))},handleClick:function(e,t){var a=e.name;"local"===a&&this.loadLocalImages()},handleLocalRemove:function(e){for(var t=0;t<this.localImageList.length;t++)if(this.localImageList[t].name===e){this.localImageList.splice(t,1);break}},handleSelectLocalImages:function(e){var t=[];for(var a in e)t.push(e[a].name);this.selectLocalImages=t},batchLocalAdd:function(){var e=this;if(0!==this.selectLocalImages.length){var t=new FormData;t.set("image_names",this.selectLocalImages.join(",")),m(t).then((function(t){var a=t.data,n=a.data,l=a.status;if(200===l){for(var i=0;i<n.length;i++){var s=n[i],o=s.replace(" ","").replace("拉取镜像","").replace("任务下发成功","");e.tmpImageNameList.push(o),e.$notify({title:"成功",message:s,type:"success"})}e.centerDialogVisible=!1,e.initTableData()}else 201===l?e.$notify({title:"失败",message:a["msg"],type:"info"}):e.$notify({title:"失败",message:a["msg"],type:"error"})}))}},delContainer:function(e){var t=this;Object(h["a"])(e.container_id).then((function(a){var n=a.data["data"],l=window.setInterval((function(){setTimeout((function(){Object(b["b"])(n).then((function(a){var n=a.data["status"],s=a.data;1001===n||(clearInterval(l),200===n?(t.$message({type:"success",message:"删除成功"}),p(e.image_id).then((function(e){var a=e.data;200!==a.status?t.deleteContainerList=a.data:(t.$message({type:"success",message:"删除成功"}),t.deleteShow=!1,Object(i["f"])(t.search,!0,t.current_page).then((function(e){t.tableData=e.data.results,t.page.total=e.data.count})))}))):t.$message({message:s["msg"],type:"error"}))}))}),1)}),1e3)}))},upload:function(e,t){var a=this,n=e.file.size/1024/1024;if(n>2)this.$message({message:"文件大小必须小于2M",type:"error"}),this.fileList.pop();else{var l=this.newFile;Object(I["n"])(l).then((function(e){var t=e.data;if(t.data&&200===t.status){for(var n=0;n<a.fileList.length;n++)-1===a.fileList[n].name.indexOf("../compose_file/")&&(a.fileList[n].name="../compose_file/"+a.fileList[n].name);a.$message({message:"上传成功",type:"success"})}else a.fileList.pop(),a.$message({message:t.msg,type:"error"})})).catch((function(e){a.fileList.pop(),a.$message({message:"服务器内部错误",type:"error"})}))}},removeChange:function(e,t){var a=this;this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var n=new FormData;n.set("file",e.name),Object(I["b"])(n).then((function(n){var l=n.data;if(200===l.status){for(var i=0;i<t.length;i++)t[i]===e&&t.splice(i,1);a.$message({type:"success",message:"删除成功!"})}else t.push(e),a.$message({type:"error",message:"删除失败!"})}))})).catch((function(){t.push(e),a.$message({type:"info",message:"已取消删除"})}))},update_compose_build:function(){var e=this,t={};t.compose_content=this.compose_content,t.image_id=this.editVulInfo.image_id,Object(I["m"])(t).then((function(t){200===t.data.code?(e.$message({title:"构建任务创建成功",message:t.data.message,type:"success"}),e.editShow=!1,e.initTableData()):e.$message({title:"构建任务创建失败",message:t.data.message,type:"error"})}))},beforeAvatarUpload:function(e){if(!e)return!1;this.newFile.set("file",e)},handleChange:function(e,t){this.fileList=t},handleClose:function(e,t,a){var n=t;"newtag"===a?("HoleType"===n&&this.vulInfo.HoleType.splice(this.vulInfo.HoleType.indexOf(e),1),"devLanguage"===n&&this.vulInfo.devLanguage.splice(this.vulInfo.devLanguage.indexOf(e),1),"devDatabase"===n&&this.vulInfo.devDatabase.splice(this.vulInfo.devDatabase.indexOf(e),1),"devClassify"===n&&this.vulInfo.devClassify.splice(this.vulInfo.devClassify.indexOf(e),1)):("HoleType"===n&&this.editVulInfo.HoleType.splice(this.editVulInfo.HoleType.indexOf(e),1),"devLanguage"===n&&this.editVulInfo.devLanguage.splice(this.editVulInfo.devLanguage.indexOf(e),1),"devDatabase"===n&&this.editVulInfo.devDatabase.splice(this.editVulInfo.devDatabase.indexOf(e),1),"devClassify"===n&&this.editVulInfo.devClassify.splice(this.editVulInfo.devClassify.indexOf(e),1))},showInput1:function(){var e=this;this.inputVisible1=!0,this.$nextTick((function(t){e.$refs.saveTagInput1.$refs.input.focus()}))},showInput2:function(){var e=this;this.inputVisible2=!0,this.$nextTick((function(t){e.$refs.saveTagInput2.$refs.input.focus()}))},showInput3:function(){var e=this;this.inputVisible3=!0,this.$nextTick((function(t){e.$refs.saveTagInput3.$refs.input.focus()}))},showInput4:function(){var e=this;this.inputVisible4=!0,this.$nextTick((function(t){e.$refs.saveTagInput4.$refs.input.focus()}))},handleInputConfirm1:function(e){var t=this.inputValue1;"newtag"===e?(null===this.vulInfo.HoleType&&(this.vulInfo.HoleType=[]),this.vulInfo.HoleType.push(t)):(null===this.editVulInfo.HoleType&&(this.editVulInfo.HoleType=[]),this.editVulInfo.HoleType.push(t)),this.inputVisible1=!1,this.inputValue1=""},handleInputConfirm2:function(e){var t=this.inputValue2;"newtag"===e?(null===this.vulInfo.devLanguage&&(this.vulInfo.devLanguage=[]),this.vulInfo.devLanguage.push(t)):(null===this.editVulInfo.devLanguage&&(this.editVulInfo.devLanguage=[]),this.editVulInfo.devLanguage.push(t)),this.inputVisible2=!1,this.inputValue2=""},handleInputConfirm3:function(e){var t=this.inputValue3;"newtag"===e?(null===this.vulInfo.devDatabase&&(this.vulInfo.devDatabase=[]),this.vulInfo.devDatabase.push(t)):(null===this.editVulInfo.devDatabase&&(this.editVulInfo.devDatabase=[]),this.editVulInfo.devDatabase.push(t)),this.inputVisible3=!1,this.inputValue3=""},handleInputConfirm4:function(e){var t=this.inputValue4;"newtag"===e?(null===this.vulInfo.devClassify&&(this.vulInfo.devClassify=[]),this.vulInfo.devClassify.push(t)):(null===this.editVulInfo.devClassify&&(this.editVulInfo.devClassify=[]),this.editVulInfo.devClassify.push(t)),this.inputVisible4=!1,this.inputValue4=""},SearchQuery:function(e){var t=this;this.real_search=this.search,this.current_page=e,Object(i["f"])(this.real_search,!0,e).then((function(e){t.tableData=e.data.results,t.page.total=e.data.count}))}}},T=V,O=(a("f36f"),Object(S["a"])(T,n,l,!1,null,"a16da89e",null));t["default"]=O.exports},ea7f:function(e,t,a){"use strict";a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return i})),a.d(t,"d",(function(){return s})),a.d(t,"c",(function(){return o}));var n=a("b775");function l(e){return Object(n["a"])({url:"/tasks/"+e+"/get/",method:"get"})}function i(e){return Object(n["a"])({url:"/tasks/batch/batch/",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/tasks/"+e+"/progress/",method:"get"})}function o(e){return Object(n["a"])({url:"/tasks/layout_batch/layout_batch/",method:"post",data:e})}},f36f:function(e,t,a){"use strict";a("a477")}}]);
  //# sourceMappingURL=chunk-b0bede22.95f55b12.js.map