(function(e){function t(t){for(var n,a,l=t[0],s=t[1],c=t[2],m=0,f=[];m<l.length;m++)a=l[m],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&f.push(i[a][0]),i[a]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);u&&u(t);while(f.length)f.shift()();return r.push.apply(r,c||[]),o()}function o(){for(var e,t=0;t<r.length;t++){for(var o=r[t],n=!0,l=1;l<o.length;l++){var s=o[l];0!==i[s]&&(n=!1)}n&&(r.splice(t--,1),e=a(a.s=o[0]))}return e}var n={},i={app:0},r=[];function a(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=e,a.c=n,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(o,n,function(t){return e[t]}.bind(null,n));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/";var l=window["webpackJsonp"]=window["webpackJsonp"]||[],s=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var u=s;r.push([0,"chunk-vendors"]),o()})({0:function(e,t,o){e.exports=o("56d7")},"0157":function(e,t,o){"use strict";o("808c")},"022e":function(e,t,o){"use strict";o("12df")},"12df":function(e,t,o){},"12ff":function(e,t,o){"use strict";o("2597")},"155e":function(e,t,o){},"16b4":function(e,t,o){},2597:function(e,t,o){},4084:function(e,t,o){},4191:function(e,t,o){"use strict";o("9a69")},5304:function(e,t,o){},"56d7":function(e,t,o){"use strict";o.r(t);o("e260"),o("e6cf"),o("cca6"),o("a79d"),o("4de4");var n=o("2b0e"),i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("router-view")},r=[],a={name:"MyApp"},l=a,s=o("2877"),c=Object(s["a"])(l,i,r,!1,null,"633dd7d9",null),u=c.exports,m=o("8c4f"),f=["/home","/home/users","/home/pic"],d=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"login-container"},[o("div",{staticClass:"login-box"},[e._m(0),o("div",{staticClass:"form-login p-4"},[o("div",{staticClass:"form-group form-inline"},[o("label",{attrs:{for:"username"}},[e._v("登录名称")]),o("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.username,expression:"username",modifiers:{trim:!0}}],staticClass:"form-control ml-2",attrs:{type:"text",id:"username",placeholder:"请输入登录名称",autocomplete:"off"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}})]),o("div",{staticClass:"form-group form-inline"},[o("label",{attrs:{for:"password"}},[e._v("登录密码")]),o("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.password,expression:"password",modifiers:{trim:!0}}],staticClass:"form-control ml-2",attrs:{type:"password",id:"password",placeholder:"请输入登录密码"},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}})]),o("div",{staticClass:"form-group form-inline d-flex justify-content-end"},[o("button",{staticClass:"btn btn-secondary mr-2",attrs:{type:"button"},on:{click:e.reset}},[e._v("重置")]),o("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:e.login}},[e._v("登录")])])])])])},p=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"text-center avatar-box"},[n("img",{staticClass:"img-thumbnail avatar",attrs:{src:o("7678"),alt:"kwan的解忧杂货铺"}})])}],g={name:"MyLogin",data:function(){return{username:"",password:""}},methods:{reset:function(){this.username="",this.password=""},login:function(){"admin"===this.username&&"666666"===this.password?(localStorage.setItem("token","Bearer xxxx"),this.$router.push("/home")):localStorage.removeItem("token")}}},h=g,b=(o("12ff"),Object(s["a"])(h,d,p,!1,null,"1be4e8ce",null)),v=b.exports,y=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"home-container"},[o("el-row",[o("el-col",{attrs:{span:24}},[o("MyHeader")],1)],1),o("el-row",[o("el-col",{attrs:{span:3}},[o("MyAside")],1),o("el-col",{attrs:{span:21}},[o("router-view")],1)],1)],1)},w=[],k=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"layout-header-container d-flex justify-content-between align-items-center p-3"},[e._m(0),o("el-row",[o("el-col",{attrs:{inline:!0,span:24}},[o("el-button",{staticClass:"el-button-header",attrs:{type:"success",round:""},on:{click:e.myHome}},[e._v("我的主页")]),o("el-button",{staticClass:"el-button-header",attrs:{type:"primary",round:""},on:{click:e.logout}},[e._v("退出登录")])],1)],1)],1)},_=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layout-header-left d-flex align-items-center user-select-none"},[n("img",{staticClass:"layout-header-left-img",attrs:{src:o("7678"),alt:""}}),n("h4",{staticClass:"layout-header-left-title ml-3"},[e._v("kwan的解忧杂货铺")])])}],q={name:"MyHeader",methods:{logout:function(){localStorage.removeItem("token"),this.$router.push("/login")},myHome:function(){window.open("http://qinyingjie.top/")}}},C=q,x=(o("9d40"),Object(s["a"])(C,k,_,!1,null,"36ae6cf9",null)),T=x.exports,O=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-menu",{staticClass:"layout-aside-container",attrs:{"default-active":"$route.path","background-color":"#fff","text-color":"#000","active-text-color":"#42b983"}},[o("router-link",{attrs:{to:"/home/interview"}},[o("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/interview"}},[o("i",{staticClass:"el-icon-question"}),o("span",{attrs:{slot:"title"},slot:"title"},[e._v("面试题管理")])])],1),o("router-link",{attrs:{to:"/home/algorithmic"}},[o("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/algorithmic"}},[o("i",{staticClass:"el-icon-question"}),o("span",{attrs:{slot:"title"},slot:"title"},[e._v("算法题管理")])])],1),o("router-link",{attrs:{to:"/home/chat"}},[o("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/chat"}},[o("i",{staticClass:"el-icon-chat-line-square"}),o("span",{attrs:{slot:"title"},slot:"title"},[e._v("CHAT管理")])])],1),o("router-link",{attrs:{to:"/home/pic"}},[o("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/pic"}},[o("i",{staticClass:"el-icon-setting"}),o("span",{attrs:{slot:"title"},slot:"title"},[e._v("图片管理")])])],1),o("router-link",{attrs:{to:"/home/users"}},[o("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/users"}},[o("i",{staticClass:"el-icon-user"}),o("span",{attrs:{slot:"title"},slot:"title"},[e._v("用户管理")])])],1),o("router-link",{attrs:{to:"/home/orders"}},[o("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/orders"}},[o("i",{staticClass:"el-icon-s-order"}),o("span",{attrs:{slot:"title"},slot:"title"},[e._v("订单管理")])])],1),o("router-link",{attrs:{to:"/home/settings"}},[o("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/settings"}},[o("i",{staticClass:"el-icon-setting"}),o("span",{attrs:{slot:"title"},slot:"title"},[e._v("系统设置")])])],1)],1)},S=[],I={name:"MyAside"},P=I,N=(o("4191"),Object(s["a"])(P,O,S,!1,null,"4d18659a",null)),$=N.exports,L={name:"MyHome",components:{MyHeader:T,MyAside:$}},V=L,R=(o("9547"),Object(s["a"])(V,y,w,!1,null,"e41dbfec",null)),D=R.exports,M=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("h4",{staticClass:"text-center"},[e._v("用户管理")]),o("table",{staticClass:"table table-bordered table-striped table-hover"},[e._m(0),o("tbody",e._l(e.userlist,(function(t){return o("tr",{key:t.id},[o("td",[e._v(e._s(t.id))]),o("td",[e._v(e._s(t.name))]),o("td",[e._v(e._s(t.age))]),o("td",[e._v(e._s(t.position))]),o("td",[o("a",{attrs:{href:"#"},on:{click:function(o){return o.preventDefault(),e.gotoDetail(t.id)}}},[e._v("详情")])])])})),0)])])},j=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("thead",[o("tr",[o("th",[e._v("序号")]),o("th",[e._v("姓名")]),o("th",[e._v("年龄")]),o("th",[e._v("头衔")]),o("th",[e._v("操作")])])])}],F={name:"MyUser",data:function(){return{userlist:[{id:1,name:"嬴政",age:18,position:"始皇帝"},{id:2,name:"李斯",age:35,position:"丞相"},{id:3,name:"吕不韦",age:50,position:"商人"},{id:4,name:"赵姬",age:48,position:"王太后"}]}},methods:{gotoDetail:function(e){this.$router.push("/home/userinfo/"+e)}}},E=F,A=Object(s["a"])(E,M,j,!1,null,"02f3073a",null),z=A.exports,Q=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-container",[o("el-main",[o("el-select",{attrs:{placeholder:"请选择"},on:{change:e.queryPic},model:{value:e.picType,callback:function(t){e.picType=t},expression:"picType"}},e._l(e.options,(function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.picList}},[o("el-table-column",{attrs:{prop:"id",label:"序号",width:"100",sortable:""}}),o("el-table-column",{attrs:{prop:"picName",label:"图片名字",width:"240","show-overflow-tooltip":""}}),o("el-table-column",{attrs:{align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("img",{staticStyle:{cursor:"pointer"},attrs:{src:t.row.picUrl,alt:"图片",height:"100px"},on:{click:function(o){return e.showImageDialog(t.row.picUrl,t.$index)}}})]}}])}),o("el-table-column",{attrs:{label:"创建时间",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("dateFormat")(t.row.createTime))+" ")]}}])})],1),o("el-dialog",{attrs:{visible:e.imageDialogVisible,width:"30%"},on:{"update:visible":function(t){e.imageDialogVisible=t}}},[o("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[o("button",{staticClass:"arrow-button",class:{disabled:0===e.imageIndex},attrs:{disabled:0===e.imageIndex},on:{click:e.showBeforeImage}},[o("el-icon",{staticClass:"custom-icon",attrs:{name:"arrow-left"}})],1),o("img",{staticStyle:{width:"80%"},attrs:{src:e.enlargedImageUrl,alt:"放大图片"}}),o("button",{staticClass:"arrow-button",class:{disabled:e.imageIndex===e.picList.length-1},attrs:{disabled:e.imageIndex===e.picList.length-1},on:{click:e.showNextImage}},[o("el-icon",{staticClass:"custom-icon",attrs:{name:"arrow-right"}})],1)])]),o("el-pagination",{key:e.elementui_page_component_key,staticClass:"pagination",attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"current-change":e.handleCurrentChange}})],1)],1)],1)},W=[],U=o("1da1"),H=(o("96cf"),o("cee4")),B={name:"MyPic",data:function(){return{picList:[],loading:!1,elementui_page_component_key:0,currentPage:1,pageSize:6,total:0,imageDialogVisible:!1,enlargedImageUrl:"",imageIndex:0,options:[{value:0,label:"宝宝照片"},{value:1,label:"学习照片"},{value:2,label:"风景照片"},{value:3,label:"美女照片"},{value:99,label:"其他照片"}],picType:0}},created:function(){this.queryPic()},methods:{showBeforeImage:function(){this.imageIndex>0&&(this.imageIndex--,this.enlargedImageUrl=this.picList[this.imageIndex].picUrl,this.imageDialogVisible=!0)},showNextImage:function(){this.imageIndex<this.picList.length-1&&(this.imageIndex++,this.enlargedImageUrl=this.picList[this.imageIndex].picUrl,this.imageDialogVisible=!0)},showImageDialog:function(e,t){this.enlargedImageUrl=e,this.imageDialogVisible=!0,this.imageIndex=t},queryPic:function(){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function t(){var o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,H["a"].get("http://120.79.36.53:8888/picInfo/page",{params:{page:e.currentPage,pageSize:e.pageSize,picType:e.picType}});case 3:o=t.sent,n=o.data,200===n.code&&(e.picList=n.result.records,e.total=n.result.total),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.currentPage=e,this.queryPic()}}},Y=B,G=(o("0157"),Object(s["a"])(Y,Q,W,!1,null,"15b8f4b2",null)),J=G.exports,K=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("h4",{staticClass:"text-center"},[e._v("商品管理")])},X=[],Z={name:"MyGoods"},ee=Z,te=Object(s["a"])(ee,K,X,!1,null,"716085f0",null),oe=(te.exports,function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("h4",{staticClass:"text-center"},[e._v("订单管理")])}),ne=[],ie={name:"MyOrders"},re=ie,ae=Object(s["a"])(re,oe,ne,!1,null,"3275af60",null),le=ae.exports,se=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-container",[o("el-main",[o("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.formInline}},[o("el-form-item",[o("el-input",{attrs:{clearable:"",placeholder:"请输入问题"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.initCartList.apply(null,arguments)}},model:{value:e.formInline.question,callback:function(t){e.$set(e.formInline,"question",t)},expression:"formInline.question"}})],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.initCartList}},[e._v("查询")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.preventDefault(),e.addChat.apply(null,arguments)}}},[e._v("新增")])],1)],1),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.userlist}},[o("el-table-column",{attrs:{prop:"id",label:"序号",width:"100",sortable:""}}),o("el-table-column",{attrs:{prop:"question",label:"问题",width:"240","show-overflow-tooltip":""}}),o("el-table-column",{attrs:{prop:"response",label:"答案","show-overflow-tooltip":""}}),o("el-table-column",{attrs:{label:"创建时间",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("dateFormat")(t.row.createTime))+" ")]}}])}),o("el-table-column",{attrs:{prop:"详情",label:"详情",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{type:"success"},on:{click:function(o){return o.preventDefault(),e.gotoDetail(t.row.id)}}},[e._v("详情")]),o("el-button",{attrs:{type:"danger"},on:{click:function(o){return e.onDelete(t.row.id)}}},[e._v("删除")])]}}])})],1),o("el-pagination",{key:e.elementui_page_component_key,staticClass:"pagination",attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"current-change":e.handleCurrentChange}})],1),o("el-backtop",{staticClass:"backtop"})],1)],1)},ce=[],ue=(o("a9e3"),{name:"MyChat",data:function(){return{userlist:[],loading:!1,elementui_page_component_key:0,currentPage:Number(localStorage.getItem("lastPage"))||1,pageSize:9,total:0,formInline:{question:""}}},watch:{"formInline.question":function(e){""===e&&(this.currentPage=1,localStorage.setItem("lastPage",this.currentPage),this.initCartList())}},created:function(){var e=this;this.$nextTick((function(){var t=e.$route.query.back,o=e.$route.query.add;"back"===t&&"add"!=o?(e.currentPage=Number(localStorage.getItem("lastPage"))||1,e.formInline.question=localStorage.getItem("lastQuestion")||""):(localStorage.setItem("lastPage",1),localStorage.setItem("lastQuestion",""),e.currentPage=1,e.formInline.question=""),e.initCartList()}))},mounted:function(){this.currentPage=Number(localStorage.getItem("lastPage"))||1,this.formInline.question=localStorage.getItem("lastQuestion"),this.elementui_page_component_key++},methods:{onDelete:function(e){var t=this;return Object(U["a"])(regeneratorRuntime.mark((function o(){var n;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return t.loading=!0,o.next=3,H["a"].get("http://120.79.36.53:8888/chatbot/delete",{params:{id:e}});case 3:n=o.sent,n.data,t.initCartList(),t.loading=!1;case 7:case"end":return o.stop()}}),o)})))()},refreshPage:function(){location.reload()},gotoDetail:function(e){this.$router.push("/home/chatinfo/"+e)},addChat:function(){this.$router.push("/home/addChat/")},initCartList:function(){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function t(){var o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,H["a"].get("http://120.79.36.53:8888/chatbot/page",{params:{page:e.currentPage,pageSize:e.pageSize,question:e.formInline.question}});case 3:o=t.sent,n=o.data,console.log(n),200===n.code&&(e.userlist=n.result.content,e.total=n.result.totalElements,localStorage.setItem("lastPage",e.currentPage),localStorage.setItem("lastQuestion",e.formInline.question)),e.loading=!1;case 8:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.currentPage=e,this.initCartList()}}}),me=ue,fe=(o("68db"),Object(s["a"])(me,se,ce,!1,null,"6e64ea6a",null)),de=fe.exports,pe=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-container",[o("el-main",[o("el-dialog",{staticStyle:{width:"100%"},attrs:{title:"新增面试问题",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[o("el-form",{staticClass:"custom-form",attrs:{model:e.form}},[o("el-form-item",{staticClass:"form-item",attrs:{label:"面试问题","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:e.form.question,callback:function(t){e.$set(e.form,"question",t)},expression:"form.question"}})],1),o("br"),o("el-form-item",{staticClass:"form-item",attrs:{label:"问题类型","label-width":e.formLabelWidth}},[o("el-select",{attrs:{placeholder:"请选择活动区域"},model:{value:e.form.questionType,callback:function(t){e.$set(e.form,"questionType",t)},expression:"form.questionType"}},e._l(e.options,(function(e){return o("el-option",{key:e.questionType,attrs:{label:e.name,value:e.questionType}})})),1)],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleConfirm(0)}}},[e._v("确 定")])],1)],1),o("el-dialog",{staticClass:"red-title",attrs:{visible:e.dialogMutiFormVisible},on:{"update:visible":function(t){e.dialogMutiFormVisible=t}}},[o("div",{staticClass:"red-title",attrs:{slot:"title"},slot:"title"},[e._v("批量新增面试问题(多个问题换行填写)")]),o("el-form",{staticClass:"custom-form",attrs:{model:e.form}},[o("el-form-item",{staticClass:"form-item",attrs:{label:"面试问题","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",autocomplete:"off",rows:5,cols:30},model:{value:e.form.question,callback:function(t){e.$set(e.form,"question",t)},expression:"form.question"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogMutiFormVisible=!1}}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleConfirm(1)}}},[e._v("确 定")])],1)],1),o("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.formInline}},[o("el-form-item",[o("el-input",{attrs:{clearable:"",placeholder:"请输入问题"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.interviewPage.apply(null,arguments)}},model:{value:e.formInline.question,callback:function(t){e.$set(e.formInline,"question",t)},expression:"formInline.question"}})],1),o("el-select",{attrs:{placeholder:"请选择"},on:{change:e.interviewPage},model:{value:e.questionType,callback:function(t){e.questionType=t},expression:"questionType"}},e._l(e.options,(function(e){return o("el-option",{key:e.questionType,attrs:{label:e.name,value:e.questionType}})})),1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.interviewPage}},[e._v("查询")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.prepareAdd}},[e._v("新增")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.prepareMutiAdd}},[e._v("批量新增")])],1)],1),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.userlist}},[o("el-table-column",{attrs:{prop:"id",label:"序号",width:"100",sortable:""}}),o("el-table-column",{attrs:{prop:"question",label:"面试问题","show-overflow-tooltip":""}}),o("el-table-column",{attrs:{prop:"questionTypeName",label:"问题类型","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",{class:e.getClassForValue(t.row.questionTypeName),domProps:{innerHTML:e._s(t.row.questionTypeName)}})]}}])}),o("el-table-column",{attrs:{label:"创建时间",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("dateFormat")(t.row.createTime))+" ")]}}])}),o("el-table-column",{attrs:{prop:"操作",label:"操作",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{type:"success",width:"200"},on:{click:function(o){return o.preventDefault(),e.preEdit(t.row.id,t.row.question,t.row.questionTypeName)}}},[e._v("编辑")]),o("el-dialog",{attrs:{title:"编辑面试问题",visible:e.editVisible},on:{"update:visible":function(t){e.editVisible=t}}},[o("el-form",{attrs:{model:e.form}},[o("el-form-item",{attrs:{label:"面试问题","label-width":e.formLabelWidth}},[o("el-input",{staticClass:"custom-textarea",staticStyle:{"text-align":"left"},attrs:{type:"textarea",autocomplete:"off",rows:5,cols:30},model:{value:e.form.question,callback:function(t){e.$set(e.form,"question",t)},expression:"form.question"}})],1),o("el-form-item",{attrs:{label:"问题类型","label-width":e.formLabelWidth}},[o("el-select",{staticStyle:{"text-align":"left"},attrs:{placeholder:"请选择问题类型"},model:{value:e.form.questionType,callback:function(t){e.$set(e.form,"questionType",t)},expression:"form.questionType"}},e._l(e.options,(function(e){return o("el-option",{key:e.questionType,attrs:{label:e.name,value:e.questionType}})})),1)],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.editVisible=!1}}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:e.editConfirm}},[e._v("确 定")])],1)],1),o("el-button",{attrs:{type:"danger"},on:{click:function(o){return e.prepareDelete(t.row.id)}}},[e._v("删除")]),o("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible,width:"30%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[o("span",[e._v("确认删除吗")]),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.preventDefault(),e.onDelete(e.currentRowId)}}},[e._v("确 定")])],1)])]}}])})],1),o("el-pagination",{key:e.elementui_page_component_key,staticClass:"pagination",attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"current-change":e.handleCurrentChange}})],1),o("el-backtop",{staticClass:"backtop"})],1)],1)},ge=[],he=(o("159b"),o("b0c0"),{name:"MyInterview",data:function(){return{userlist:[],loading:!1,elementui_page_component_key:0,currentPage:Number(localStorage.getItem("lastPage"))||1,pageSize:9,total:0,formInline:{question:""},options:[],questionType:0,dialogFormVisible:!1,dialogMutiFormVisible:!1,form:{question:"",questionType:0},formLabelWidth:"120px",dialogVisible:!1,editVisible:!1,currentRowId:null}},watch:{"formInline.question":function(e){""===e&&(this.currentPage=1,localStorage.setItem("lastPage",this.currentPage),this.interviewPage())}},created:function(){this.getQuestionType(),this.interviewPage()},mounted:function(){},methods:{prepareAdd:function(){this.form.question="",this.form.questionType=0,this.dialogFormVisible=!0},prepareMutiAdd:function(){this.form.question="",this.form.questionType=0,this.dialogMutiFormVisible=!0},prepareDelete:function(e){this.currentRowId=e,this.dialogVisible=!0},preEdit:function(e,t,o){this.form.question=t;var n={};this.options.forEach((function(e){n[e.name]=e.questionType})),this.form.questionType=n[o],this.currentRowId=e,this.editVisible=!0},handleClose:function(e){this.$confirm("确认关闭?").then((function(t){e()})).catch((function(e){}))},handleConfirm:function(e){this.dialogFormVisible=!1,this.dialogMutiFormVisible=!1,this.addQuestion(e)},addQuestion:function(e){var t=this;return Object(U["a"])(regeneratorRuntime.mark((function o(){var n,i;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.prev=0,t.loading=!0,o.next=4,H["a"].post("http://120.79.36.53:8888/interviewQuestion/add",{addType:e,question:t.form.question,questionType:t.form.questionType});case 4:n=o.sent,i=n.data,200===i.code?(t.form.question="",t.form.questionType=0,t.interviewPage()):(console.error("Received non-200 status code",i),t.errorMsg(i.message)),o.next=12;break;case 9:o.prev=9,o.t0=o["catch"](0),console.error("An error occurred while adding the question:",o.t0);case 12:return o.prev=12,t.loading=!1,o.finish(12);case 15:case"end":return o.stop()}}),o,null,[[0,9,12,15]])})))()},errorMsg:function(e){this.$message({showClose:!0,message:e,type:"error"})},editConfirm:function(){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function t(){var o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,t.next=4,H["a"].post("http://120.79.36.53:8888/interviewQuestion/update",{id:e.currentRowId,question:e.form.question,questionType:e.form.questionType});case 4:o=t.sent,n=o.data,200===n.code?(e.form.question="",e.form.questionType=0,e.editVisible=!1,e.interviewPage()):console.error("Received non-200 status code",n),t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),console.error("An error occurred while adding the question:",t.t0);case 12:return t.prev=12,e.loading=!1,t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[0,9,12,15]])})))()},onDelete:function(e){var t=this;return Object(U["a"])(regeneratorRuntime.mark((function o(){var n;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return t.dialogVisible=!1,t.loading=!0,o.next=4,H["a"].get("http://120.79.36.53:8888/interviewQuestion/delete",{params:{id:e}});case 4:n=o.sent,n.data,t.interviewPage(),t.loading=!1;case 8:case"end":return o.stop()}}),o)})))()},refreshPage:function(){this.getQuestionType(),location.reload()},getQuestionType:function(){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function t(){var o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,H["a"].get("http://120.79.36.53:8888/interviewQuestion/questionType",{params:{}});case 2:o=t.sent,n=o.data,200===n.code&&(e.options=n.result);case 5:case"end":return t.stop()}}),t)})))()},interviewPage:function(){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function t(){var o,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,H["a"].get("http://120.79.36.53:8888/interviewQuestion/page",{params:{page:e.currentPage,pageSize:e.pageSize,question:e.formInline.question,questionType:e.questionType}});case 3:o=t.sent,n=o.data,200===n.code&&(e.total=n.result.totalElements,i={},e.options.forEach((function(e){i[e.questionType]=e.name})),n.result.content.forEach((function(e){e.questionTypeName=i[e.questionType]||"Unknown"})),e.userlist=n.result.content),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},getClassForValue:function(e){return"基础知识"===e?"reddish-purple-value":"集合"===e?"new-orange-value":"JVM"===e?"clove-tea-value":"并发编程"===e?"grassy-value":"MySql"===e?"daylily-value":"Redis"===e?"balloon-flower-value":"中间件"===e?"pink-value":"Spring"===e?"purple-value":"微服务"===e?"sapphire-blue-value":"分布式"===e?"green-value":"项目"===e?"black-value":"算法"===e?"rose-hermosa-value":"反问环节"===e?"white-dress-value":"设计模式"===e?"prunus-gracilis-value":"其他"===e?"magenta-value":"dark-blue-value"},handleCurrentChange:function(e){this.currentPage=e,this.interviewPage()}}}),be=he,ve=(o("bfaf"),Object(s["a"])(be,pe,ge,!1,null,"153268c2",null)),ye=ve.exports,we=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-container",[o("el-main",[o("el-dialog",{staticStyle:{width:"100%"},attrs:{title:"新增算法问题",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[o("el-form",{staticClass:"custom-form",attrs:{model:e.form}},[o("el-form-item",{staticClass:"form-item",attrs:{label:"算法问题","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:e.form.questionName,callback:function(t){e.$set(e.form,"questionName",t)},expression:"form.questionName"}})],1),o("el-form-item",{staticClass:"form-item",attrs:{label:"问题类型","label-width":e.formLabelWidth}},[o("el-select",{attrs:{placeholder:"请选择活动区域"},model:{value:e.form.questionType,callback:function(t){e.$set(e.form,"questionType",t)},expression:"form.questionType"}},e._l(e.allOptions,(function(e){return o("el-option",{key:e.questionType,attrs:{label:e.name,value:e.questionType}})})),1)],1),o("el-form-item",{staticClass:"form-item",attrs:{label:"重要程度(1~10)","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:e.form.degreeOfImportance,callback:function(t){e.$set(e.form,"degreeOfImportance",t)},expression:"form.degreeOfImportance"}})],1),o("el-form-item",{staticClass:"form-item",attrs:{label:"难易程度","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:e.form.degreeOfDifficulty,callback:function(t){e.$set(e.form,"degreeOfDifficulty",t)},expression:"form.degreeOfDifficulty"}})],1),o("el-form-item",{staticClass:"form-item",attrs:{label:"难易分数","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:e.form.difficultyOfScore,callback:function(t){e.$set(e.form,"difficultyOfScore",t)},expression:"form.difficultyOfScore"}})],1),o("el-form-item",{staticClass:"form-item",attrs:{label:"力扣题号","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:e.form.leetcodeNumber,callback:function(t){e.$set(e.form,"leetcodeNumber",t)},expression:"form.leetcodeNumber"}})],1),o("el-form-item",{staticClass:"form-item",attrs:{label:"力扣链接","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:e.form.leetcodeLink,callback:function(t){e.$set(e.form,"leetcodeLink",t)},expression:"form.leetcodeLink"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleConfirm(0)}}},[e._v("确 定")])],1)],1),o("el-dialog",{staticClass:"red-title",attrs:{visible:e.dialogMutiFormVisible},on:{"update:visible":function(t){e.dialogMutiFormVisible=t}}},[o("div",{staticClass:"red-title",attrs:{slot:"title"},slot:"title"},[e._v("批量新增算法问题(多个问题换行填写)")]),o("el-form",{staticClass:"custom-form",attrs:{model:e.form}},[o("el-form-item",{staticClass:"form-item",attrs:{label:"算法问题","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",autocomplete:"off",rows:5,cols:30},model:{value:e.form.questionName,callback:function(t){e.$set(e.form,"questionName",t)},expression:"form.questionName"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogMutiFormVisible=!1}}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleConfirm(1)}}},[e._v("确 定")])],1)],1),o("el-dialog",{staticStyle:{width:"100%"},attrs:{title:"随机一题",visible:e.randomFormVisible},on:{"update:visible":function(t){e.randomFormVisible=t}}},[o("el-descriptions",{staticClass:"margin-top",attrs:{title:"随机选择的题目如下:",column:3,border:""}},[o("el-descriptions-item",{model:{value:e.randomAlgorithmic.questionName,callback:function(t){e.$set(e.randomAlgorithmic,"questionName",t)},expression:"randomAlgorithmic.questionName"}},[o("template",{slot:"label"},[e._v("题目名称")]),e._v(" "+e._s(e.randomAlgorithmic.questionName)+" ")],2),o("el-descriptions-item",[o("template",{slot:"label"},[e._v("力扣题号")]),e._v(" "+e._s(e.randomAlgorithmic.leetcodeNumber)+" ")],2),o("el-descriptions-item",{attrs:{"show-overflow-tooltip":""}},[o("template",{slot:"label"},[e._v("力扣链接")]),o("a",{attrs:{href:e.randomAlgorithmic.leetcodeLink,target:"_blank"}},[e._v(e._s(e.randomAlgorithmic.leetcodeLink))])],2)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.randomFormVisible=!1}}},[e._v("取 消")])],1)],1),o("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.formInline}},[o("el-form-item",[o("el-input",{attrs:{clearable:"",placeholder:"请输入问题"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.interviewPage.apply(null,arguments)}},model:{value:e.formInline.questionName,callback:function(t){e.$set(e.formInline,"questionName",t)},expression:"formInline.questionName"}})],1),o("el-select",{attrs:{placeholder:"请选择"},on:{change:e.interviewPage},model:{value:e.questionType,callback:function(t){e.questionType=t},expression:"questionType"}},e._l(e.options,(function(e){return o("el-option",{key:e.questionType,attrs:{label:e.name,value:e.questionType}})})),1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.interviewPage}},[e._v("查询")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.prepareRandom}},[e._v("随机一题")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.prepareAdd}},[e._v("新增")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.prepareMutiAdd}},[e._v("批量新增")])],1)],1),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.algorithmicList}},[o("el-table-column",{attrs:{prop:"id",label:"序号",width:"100",sortable:""}}),o("el-table-column",{attrs:{prop:"questionName",label:"算法问题","show-overflow-tooltip":""}}),o("el-table-column",{attrs:{prop:"questionTypeName",label:"问题类型","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",{class:e.getClassForValue(t.row.questionTypeName),domProps:{innerHTML:e._s(t.row.questionTypeName)}})]}}])}),o("el-table-column",{attrs:{prop:"degreeOfImportance",label:"重要程度(1~10)","show-overflow-tooltip":""}}),o("el-table-column",{attrs:{prop:"degreeOfDifficulty",label:"难易程度","show-overflow-tooltip":""}}),o("el-table-column",{attrs:{prop:"difficultyOfScore",label:"难易分数","show-overflow-tooltip":""}}),o("el-table-column",{attrs:{prop:"leetcodeNumber",label:"力扣题号","show-overflow-tooltip":""}}),o("el-table-column",{attrs:{label:"力扣链接","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[o("a",{attrs:{href:t.row.leetcodeLink,target:"_blank"}},[e._v(e._s(t.row.leetcodeLink))])]}}])}),o("el-table-column",{attrs:{label:"创建时间",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("dateFormat")(t.row.createTime))+" ")]}}])}),o("el-table-column",{attrs:{prop:"操作",label:"操作",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{type:"success",width:"200"},on:{click:function(o){return o.preventDefault(),e.preEdit(t.row.id,t.row.questionName,t.row.questionTypeName,t.row.degreeOfImportance,t.row.degreeOfDifficulty,t.row.difficultyOfScore,t.row.leetcodeNumber,t.row.leetcodeLink)}}},[e._v("编辑")]),o("el-dialog",{attrs:{title:"编辑算法问题",visible:e.editVisible},on:{"update:visible":function(t){e.editVisible=t}}},[o("el-form",{attrs:{model:e.form}},[o("el-form-item",{staticClass:"form-item",attrs:{label:"算法问题","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:e.form.questionName,callback:function(t){e.$set(e.form,"questionName",t)},expression:"form.questionName"}})],1),o("el-form-item",{staticClass:"form-item",attrs:{label:"问题类型","label-width":e.formLabelWidth}},[o("el-select",{attrs:{placeholder:"请选择活动区域"},model:{value:e.form.questionType,callback:function(t){e.$set(e.form,"questionType",t)},expression:"form.questionType"}},e._l(e.allOptions,(function(e){return o("el-option",{key:e.questionType,attrs:{label:e.name,value:e.questionType}})})),1)],1),o("el-form-item",{staticClass:"form-item",attrs:{label:"重要程度(1~10)","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:e.form.degreeOfImportance,callback:function(t){e.$set(e.form,"degreeOfImportance",t)},expression:"form.degreeOfImportance"}})],1),o("el-form-item",{staticClass:"form-item",attrs:{label:"难易程度","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:e.form.degreeOfDifficulty,callback:function(t){e.$set(e.form,"degreeOfDifficulty",t)},expression:"form.degreeOfDifficulty"}})],1),o("el-form-item",{staticClass:"form-item",attrs:{label:"难易分数","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:e.form.difficultyOfScore,callback:function(t){e.$set(e.form,"difficultyOfScore",t)},expression:"form.difficultyOfScore"}})],1),o("el-form-item",{staticClass:"form-item",attrs:{label:"力扣题号","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:e.form.leetcodeNumber,callback:function(t){e.$set(e.form,"leetcodeNumber",t)},expression:"form.leetcodeNumber"}})],1),o("el-form-item",{staticClass:"form-item",attrs:{label:"力扣链接","label-width":e.formLabelWidth}},[o("el-input",{staticStyle:{width:"100%"},attrs:{autocomplete:"off"},model:{value:e.form.leetcodeLink,callback:function(t){e.$set(e.form,"leetcodeLink",t)},expression:"form.leetcodeLink"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.editVisible=!1}}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:e.editConfirm}},[e._v("确 定")])],1)],1),o("el-button",{attrs:{type:"danger"},on:{click:function(o){return e.prepareDelete(t.row.id)}}},[e._v("删除")]),o("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible,width:"30%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[o("span",[e._v("确认删除吗")]),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.preventDefault(),e.onDelete(e.currentRowId)}}},[e._v("确 定")])],1)])]}}])})],1),o("el-pagination",{key:e.elementui_page_component_key,staticClass:"pagination",attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"current-change":e.handleCurrentChange}})],1),o("el-backtop",{staticClass:"backtop"})],1)],1)},ke=[],_e={name:"MyInterview",data:function(){return{algorithmicList:[],randomAlgorithmic:{questionName:"",leetcodeNumber:"",leetcodeLink:""},loading:!1,elementui_page_component_key:0,currentPage:Number(localStorage.getItem("lastPage"))||1,pageSize:9,total:0,formInline:{questionName:""},options:[],allOptions:[],questionType:0,dialogFormVisible:!1,randomFormVisible:!1,dialogMutiFormVisible:!1,form:{questionName:"",questionType:0,degreeOfImportance:5,degreeOfDifficulty:1,difficultyOfScore:1200,leetcodeNumber:"",leetcodeLink:""},formLabelWidth:"120px",dialogVisible:!1,editVisible:!1,currentRowId:null}},watch:{"formInline.questionName":function(e){""===e&&(this.currentPage=1,localStorage.setItem("lastPage",this.currentPage),this.interviewPage())}},created:function(){this.getQuestionType(),this.getAllQuestionType(),this.interviewPage()},mounted:function(){},methods:{prepareAdd:function(){this.form.questionName="",this.form.questionType=0,this.dialogFormVisible=!0},prepareRandom:function(){this.randomAlgorithmic=[],this.randomFormVisible=!0,this.interviewRandom()},prepareMutiAdd:function(){this.form.questionName="",this.form.questionType=0,this.dialogMutiFormVisible=!0},prepareDelete:function(e){this.currentRowId=e,this.dialogVisible=!0},preEdit:function(e,t,o,n,i,r,a,l){this.form.questionName=t,this.form.degreeOfImportance=n,this.form.degreeOfDifficulty=i,this.form.difficultyOfScore=r,this.form.leetcodeNumber=a,this.form.leetcodeLink=l;var s={};this.options.forEach((function(e){s[e.name]=e.questionType})),this.form.questionType=s[o],this.currentRowId=e,this.editVisible=!0},handleClose:function(e){this.$confirm("确认关闭?").then((function(t){e()})).catch((function(e){}))},handleConfirm:function(e){this.dialogFormVisible=!1,this.dialogMutiFormVisible=!1,this.addQuestion(e)},addQuestion:function(e){var t=this;return Object(U["a"])(regeneratorRuntime.mark((function o(){var n,i;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.prev=0,t.loading=!0,o.next=4,H["a"].post("http://120.79.36.53:8888/algorithmicProblem/add",{addType:e,questionName:t.form.questionName,questionType:t.form.questionType,degreeOfImportance:t.form.degreeOfImportance,degreeOfDifficulty:t.form.degreeOfDifficulty,difficultyOfScore:t.form.difficultyOfScore,leetcodeNumber:t.form.leetcodeNumber,leetcodeLink:t.form.leetcodeLink});case 4:n=o.sent,i=n.data,200===i.code?(t.form.questionName="",t.form.questionType=0,t.form.degreeOfImportance=5,t.form.degreeOfDifficulty=1,t.form.difficultyOfScore=1200,t.form.leetcodeNumber="",t.form.leetcodeLink="",t.interviewPage()):(console.error("Received non-200 status code",i),t.errorMsg(i.message)),o.next=12;break;case 9:o.prev=9,o.t0=o["catch"](0),console.error("An error occurred while adding the questionName:",o.t0);case 12:return o.prev=12,t.loading=!1,o.finish(12);case 15:case"end":return o.stop()}}),o,null,[[0,9,12,15]])})))()},errorMsg:function(e){this.$message({showClose:!0,message:e,type:"error"})},editConfirm:function(){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function t(){var o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,t.next=4,H["a"].post("http://120.79.36.53:8888/algorithmicProblem/update",{id:e.currentRowId,questionName:e.form.questionName,questionType:e.form.questionType,degreeOfImportance:e.form.degreeOfImportance,degreeOfDifficulty:e.form.degreeOfDifficulty,difficultyOfScore:e.form.difficultyOfScore,leetcodeNumber:e.form.leetcodeNumber,leetcodeLink:e.form.leetcodeLink});case 4:o=t.sent,n=o.data,200===n.code?(e.form.questionName="",e.form.questionType=0,e.editVisible=!1,e.interviewPage()):console.error("Received non-200 status code",n),t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),console.error("An error occurred while adding the questionName:",t.t0);case 12:return t.prev=12,e.loading=!1,t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[0,9,12,15]])})))()},onDelete:function(e){var t=this;return Object(U["a"])(regeneratorRuntime.mark((function o(){var n;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return t.dialogVisible=!1,t.loading=!0,o.next=4,H["a"].get("http://120.79.36.53:8888/algorithmicProblem/delete",{params:{id:e}});case 4:n=o.sent,n.data,t.interviewPage(),t.loading=!1;case 8:case"end":return o.stop()}}),o)})))()},refreshPage:function(){this.getQuestionType(),location.reload()},getQuestionType:function(){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function t(){var o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,H["a"].get("http://120.79.36.53:8888/algorithmicProblem/questionType",{params:{}});case 2:o=t.sent,n=o.data,200===n.code&&(e.options=n.result);case 5:case"end":return t.stop()}}),t)})))()},getAllQuestionType:function(){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function t(){var o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,H["a"].get("http://120.79.36.53:8888/algorithmicProblem/allQuestionType",{params:{}});case 2:o=t.sent,n=o.data,200===n.code&&(e.allOptions=n.result);case 5:case"end":return t.stop()}}),t)})))()},interviewPage:function(){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function t(){var o,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,H["a"].get("http://120.79.36.53:8888/algorithmicProblem/page",{params:{page:e.currentPage,pageSize:e.pageSize,questionName:e.formInline.questionName,questionType:e.questionType}});case 3:o=t.sent,n=o.data,200===n.code&&(e.total=n.result.totalElements,i={},e.options.forEach((function(e){i[e.questionType]=e.name})),n.result.content.forEach((function(e){e.questionTypeName=i[e.questionType]||"Unknown"})),e.algorithmicList=n.result.content),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},interviewRandom:function(){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function t(){var o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,H["a"].get("http://120.79.36.53:8888/algorithmicProblem/random",{params:{}});case 3:o=t.sent,n=o.data,200===n.code&&(e.randomAlgorithmic.questionName=n.result.questionName,e.randomAlgorithmic.leetcodeNumber=n.result.leetcodeNumber,e.randomAlgorithmic.leetcodeLink=n.result.leetcodeLink),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},getClassForValue:function(e){return"链表"===e?"reddish-purple-value":"数组"===e?"new-orange-value":"二叉树"===e?"clove-tea-value":"贪心"===e?"grassy-value":"动态规划"===e?"daylily-value":"dark-blue-value"},handleCurrentChange:function(e){this.currentPage=e,this.interviewPage()}}},qe=_e,Ce=(o("6801"),Object(s["a"])(qe,we,ke,!1,null,"03187dab",null)),xe=Ce.exports,Te=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("h4",{staticClass:"text-center"},[e._v("系统设置")])},Oe=[],Se={name:"MySettings"},Ie=Se,Pe=Object(s["a"])(Ie,Te,Oe,!1,null,"accd7558",null),Ne=Pe.exports,$e=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("button",{staticClass:"btn btn-light btn-sm",attrs:{type:"button"},on:{click:function(t){return e.$router.back()}}},[e._v("后退")]),o("h4",{staticClass:"text-center"},[e._v("用户详情 --- "+e._s(e.id))])])},Le=[],Ve={name:"MyUserDetail",props:["id"]},Re=Ve,De=Object(s["a"])(Re,$e,Le,!1,null,"bea9073a",null),Me=De.exports,je=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-button",{attrs:{type:"primary",plain:"",size:"medium"},on:{click:e.goBack}},[e._v("后退")]),o("h4",{staticClass:"text-center"},[e._v("ChatGpt问答详情 --- "+e._s(e.id))]),o("el-container",[o("el-main",[o("el-table",{attrs:{border:"",data:e.list}},[o("el-table-column",{attrs:{label:"序号",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.id))])]}}])}),o("el-table-column",{attrs:{label:"问题",width:"240"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.question))])]}}])}),o("el-table-column",{attrs:{label:"回答"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",{attrs:{id:"td-response"}},[e._v(e._s(t.row.response))])]}}])}),o("el-table-column",{attrs:{label:"创建时间",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(e._f("dateFormat")(t.row.createTime)))])]}}])})],1)],1)],1),o("div",{staticClass:"button-container"},[o("el-button",{attrs:{type:"primary",round:""},on:{click:e.copyCode}},[e._v("复制回答")])],1)],1)},Fe=[],Ee={name:"MyChatDetail",props:["id"],data:function(){return{list:[]}},created:function(){this.initChatList()},methods:{goBack:function(){var e={back:"back"};this.$router.push({path:"/home/chat",query:e})},initChatList:function(){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function t(){var o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,H["a"].get("http://120.79.36.53:8888/chatbot/"+e.id);case 2:o=t.sent,n=o.data,200===n.code&&(e.list=[{id:n.result.id,question:n.result.question,response:n.result.response,createTime:n.result.createTime}]);case 5:case"end":return t.stop()}}),t)})))()},copyCode:function(){var e=document.getElementById("td-response"),t=document.createRange();t.selectNode(e);var o=window.getSelection();o.removeAllRanges(),o.addRange(t),document.execCommand("copy"),o.removeAllRanges(),this.$message.success("代码已复制到剪贴板")}}},Ae=Ee,ze=(o("022e"),Object(s["a"])(Ae,je,Fe,!1,null,"9d5d30a4",null)),Qe=ze.exports,We=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-button",{attrs:{type:"primary",plain:"",size:"medium"},on:{click:e.goBack}},[e._v("后退")]),o("h4",{staticClass:"text-center"},[e._v("新增ChatGpt问答")]),o("el-container",{staticClass:"container"},[o("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[o("el-form-item",{attrs:{label:"问题"}},[o("el-input",{model:{value:e.form.question,callback:function(t){e.$set(e.form,"question",t)},expression:"form.question"}})],1),o("el-form-item",{attrs:{label:"答案"}},[o("el-input",{attrs:{type:"textarea"},model:{value:e.form.response,callback:function(t){e.$set(e.form,"response",t)},expression:"form.response"}})],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("立即创建")]),o("el-button",{on:{click:e.clearContent}},[e._v("取消")])],1)],1)],1)],1)},Ue=[],He={name:"AddChatDetail",data:function(){return{form:{question:"",response:""}}},methods:{clearContent:function(){this.form.question="",this.form.response=""},onSubmit:function(){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function t(){var o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:o={question:e.form.question,response:e.form.response},H["a"].post("http://120.79.36.53:8888/chatbot",o).then((function(t){200===t.data.code&&(e.$message.success({message:"问题和答案新增成功",duration:1e3}),e.goBack())})).catch((function(t){e.$message.error("系统异常")}));case 2:case"end":return t.stop()}}),t)})))()},goBack:function(){var e={back:"back",add:"add"};this.$router.push({path:"/home/chat",query:e})}}},Be=He,Ye=(o("66f9"),Object(s["a"])(Be,We,Ue,!1,null,"ddc6c3e0",null)),Ge=Ye.exports;n["default"].use(m["a"]);var Je=new m["a"]({routes:[{path:"/",redirect:"/login"},{path:"/login",component:v},{path:"/home",component:D,redirect:"/home/interview",children:[{path:"users",component:z},{path:"pic",component:J},{path:"algorithmic",component:xe},{path:"orders",component:le},{path:"chat",component:de},{path:"interview",component:ye},{path:"settings",component:Ne},{path:"userinfo/:id",component:Me,props:!0},{path:"chatinfo/:id",component:Qe,props:!0},{path:"addChat",component:Ge}]}]});Je.beforeEach((function(e,t,o){if(-1!==f.indexOf(e.path)){var n=localStorage.getItem("token");n?o():o("/login")}else o()}));var Ke=Je,Xe=o("5c96"),Ze=o.n(Xe),et=(o("0fae"),o("16b4"),o("a766"),o("5a0c")),tt=o.n(et);n["default"].prototype.$dayjs=tt.a,n["default"].filter("dateFormat",(function(e){var t=tt()(e).format("YYYY-MM-DD HH:mm:ss");return t})),n["default"].use(Ze.a),n["default"].config.productionTip=!1,new n["default"]({render:function(e){return e(u)},router:Ke}).$mount("#app")},"5bce":function(e,t,o){},"66f9":function(e,t,o){"use strict";o("155e")},6801:function(e,t,o){"use strict";o("5bce")},"68db":function(e,t,o){"use strict";o("e918")},7678:function(e,t,o){e.exports=o.p+"img/kwan.80e90605.png"},"7ee9":function(e,t,o){},"808c":function(e,t,o){},9547:function(e,t,o){"use strict";o("4084")},"9a69":function(e,t,o){},"9d40":function(e,t,o){"use strict";o("7ee9")},a766:function(e,t,o){},bfaf:function(e,t,o){"use strict";o("5304")},e918:function(e,t,o){}}); //# sourceMappingURL=app.65db77b3.js.map