(function(e){function t(t){for(var a,i,s=t[0],l=t[1],u=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&p.push(r[i][0]),r[i]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a]);c&&c(t);while(p.length)p.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,s=1;s<n.length;s++){var l=n[s];0!==r[l]&&(a=!1)}a&&(o.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},r={app:0},o=[];function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=l;o.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"0157":function(e,t,n){"use strict";n("808c")},"022e":function(e,t,n){"use strict";n("12df")},"12df":function(e,t,n){},"12ff":function(e,t,n){"use strict";n("2597")},"155e":function(e,t,n){},"16b4":function(e,t,n){},"248e":function(e,t,n){},2597:function(e,t,n){},"2aba":function(e,t,n){"use strict";n("248e")},4084:function(e,t,n){},5304:function(e,t,n){},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("4de4");var a=n("2b0e"),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("router-view")},o=[],i={name:"MyApp"},s=i,l=n("2877"),u=Object(l["a"])(s,r,o,!1,null,"633dd7d9",null),c=u.exports,d=n("8c4f"),p=["/home","/home/users","/home/pic"],m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-container"},[n("div",{staticClass:"login-box"},[e._m(0),n("div",{staticClass:"form-login p-4"},[n("div",{staticClass:"form-group form-inline"},[n("label",{attrs:{for:"username"}},[e._v("登录名称")]),n("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()}}})]),n("div",{staticClass:"form-group form-inline"},[n("label",{attrs:{for:"password"}},[e._v("登录密码")]),n("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()}}})]),n("div",{staticClass:"form-group form-inline d-flex justify-content-end"},[n("button",{staticClass:"btn btn-secondary mr-2",attrs:{type:"button"},on:{click:e.reset}},[e._v("重置")]),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:e.login}},[e._v("登录")])])])])])},f=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"text-center avatar-box"},[a("img",{staticClass:"img-thumbnail avatar",attrs:{src:n("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=(n("12ff"),Object(l["a"])(h,m,f,!1,null,"1be4e8ce",null)),v=b.exports,y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"home-container"},[n("el-row",[n("el-col",{attrs:{span:24}},[n("MyHeader")],1)],1),n("el-row",[n("el-col",{attrs:{span:3}},[n("MyAside")],1),n("el-col",{attrs:{span:21}},[n("router-view")],1)],1)],1)},w=[],_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layout-header-container d-flex justify-content-between align-items-center p-3"},[e._m(0),n("el-row",[n("el-col",{attrs:{inline:!0,span:24}},[n("el-button",{staticClass:"el-button-header",attrs:{type:"success",round:""},on:{click:e.myHome}},[e._v("我的主页")]),n("el-button",{staticClass:"el-button-header",attrs:{type:"primary",round:""},on:{click:e.logout}},[e._v("退出登录")])],1)],1)],1)},k=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"layout-header-left d-flex align-items-center user-select-none"},[a("img",{staticClass:"layout-header-left-img",attrs:{src:n("7678"),alt:""}}),a("h4",{staticClass:"layout-header-left-title ml-3"},[e._v("kwan的解忧杂货铺")])])}],x={name:"MyHeader",methods:{logout:function(){localStorage.removeItem("token"),this.$router.push("/login")},myHome:function(){window.open("http://qinyingjie.top/")}}},C=x,q=(n("9d40"),Object(l["a"])(C,_,k,!1,null,"36ae6cf9",null)),I=q.exports,P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-menu",{staticClass:"layout-aside-container",attrs:{"default-active":"$route.path","background-color":"#fff","text-color":"#000","active-text-color":"#42b983"}},[n("router-link",{attrs:{to:"/home/interview"}},[n("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/interview"}},[n("i",{staticClass:"el-icon-question"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v("面试题管理")])])],1),n("router-link",{attrs:{to:"/home/chat"}},[n("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/chat"}},[n("i",{staticClass:"el-icon-chat-line-square"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v("CHAT管理")])])],1),n("router-link",{attrs:{to:"/home/pic"}},[n("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/pic"}},[n("i",{staticClass:"el-icon-setting"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v("图片管理")])])],1),n("router-link",{attrs:{to:"/home/users"}},[n("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/users"}},[n("i",{staticClass:"el-icon-user"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v("用户管理")])])],1),n("router-link",{attrs:{to:"/home/goods"}},[n("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/goods"}},[n("i",{staticClass:"el-icon-goods"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v("商品管理")])])],1),n("router-link",{attrs:{to:"/home/orders"}},[n("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/orders"}},[n("i",{staticClass:"el-icon-s-order"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v("订单管理")])])],1),n("router-link",{attrs:{to:"/home/settings"}},[n("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/settings"}},[n("i",{staticClass:"el-icon-setting"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v("系统设置")])])],1)],1)},T=[],S={name:"MyAside"},$=S,O=(n("2aba"),Object(l["a"])($,P,T,!1,null,"3160d41c",null)),j=O.exports,M={name:"MyHome",components:{MyHeader:I,MyAside:j}},V=M,R=(n("9547"),Object(l["a"])(V,y,w,!1,null,"e41dbfec",null)),E=R.exports,D=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h4",{staticClass:"text-center"},[e._v("用户管理")]),n("table",{staticClass:"table table-bordered table-striped table-hover"},[e._m(0),n("tbody",e._l(e.userlist,(function(t){return n("tr",{key:t.id},[n("td",[e._v(e._s(t.id))]),n("td",[e._v(e._s(t.name))]),n("td",[e._v(e._s(t.age))]),n("td",[e._v(e._s(t.position))]),n("td",[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),e.gotoDetail(t.id)}}},[e._v("详情")])])])})),0)])])},L=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("th",[e._v("序号")]),n("th",[e._v("姓名")]),n("th",[e._v("年龄")]),n("th",[e._v("头衔")]),n("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)}}},N=F,z=Object(l["a"])(N,D,L,!1,null,"02f3073a",null),A=z.exports,Q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-container",[n("el-main",[n("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 n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.picList}},[n("el-table-column",{attrs:{prop:"id",label:"序号",width:"100",sortable:""}}),n("el-table-column",{attrs:{prop:"picName",label:"图片名字",width:"240","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("img",{staticStyle:{cursor:"pointer"},attrs:{src:t.row.picUrl,alt:"图片",height:"100px"},on:{click:function(n){return e.showImageDialog(t.row.picUrl,t.$index)}}})]}}])}),n("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),n("el-dialog",{attrs:{visible:e.imageDialogVisible,width:"30%"},on:{"update:visible":function(t){e.imageDialogVisible=t}}},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[n("button",{staticClass:"arrow-button",class:{disabled:0===e.imageIndex},attrs:{disabled:0===e.imageIndex},on:{click:e.showBeforeImage}},[n("el-icon",{staticClass:"custom-icon",attrs:{name:"arrow-left"}})],1),n("img",{staticStyle:{width:"80%"},attrs:{src:e.enlargedImageUrl,alt:"放大图片"}}),n("button",{staticClass:"arrow-button",class:{disabled:e.imageIndex===e.picList.length-1},attrs:{disabled:e.imageIndex===e.picList.length-1},on:{click:e.showNextImage}},[n("el-icon",{staticClass:"custom-icon",attrs:{name:"arrow-right"}})],1)])]),n("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)},U=[],H=n("1da1"),B=(n("96cf"),n("cee4")),W={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(H["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,B["a"].get("http://120.79.36.53:8888/picInfo/page",{params:{page:e.currentPage,pageSize:e.pageSize,picType:e.picType}});case 3:n=t.sent,a=n.data,200===a.code&&(e.picList=a.result.records,e.total=a.result.total),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.currentPage=e,this.queryPic()}}},Y=W,G=(n("0157"),Object(l["a"])(Y,Q,U,!1,null,"15b8f4b2",null)),J=G.exports,K=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h4",{staticClass:"text-center"},[e._v("商品管理")])},X=[],Z={name:"MyGoods"},ee=Z,te=Object(l["a"])(ee,K,X,!1,null,"716085f0",null),ne=te.exports,ae=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h4",{staticClass:"text-center"},[e._v("订单管理")])},re=[],oe={name:"MyOrders"},ie=oe,se=Object(l["a"])(ie,ae,re,!1,null,"3275af60",null),le=se.exports,ue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-container",[n("el-main",[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.formInline}},[n("el-form-item",[n("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),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.initCartList}},[e._v("查询")])],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.preventDefault(),e.addChat.apply(null,arguments)}}},[e._v("新增")])],1)],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.userlist}},[n("el-table-column",{attrs:{prop:"id",label:"序号",width:"100",sortable:""}}),n("el-table-column",{attrs:{prop:"question",label:"问题",width:"240","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"response",label:"答案","show-overflow-tooltip":""}}),n("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))+" ")]}}])}),n("el-table-column",{attrs:{prop:"详情",label:"详情",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success"},on:{click:function(n){return n.preventDefault(),e.gotoDetail(t.row.id)}}},[e._v("详情")]),n("el-button",{attrs:{type:"danger"},on:{click:function(n){return e.onDelete(t.row.id)}}},[e._v("删除")])]}}])})],1),n("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),n("el-backtop",{staticClass:"backtop"})],1)],1)},ce=[],de=(n("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,n=e.$route.query.add;"back"===t&&"add"!=n?(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(H["a"])(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.loading=!0,n.next=3,B["a"].get("http://120.79.36.53:8888/chatbot/delete",{params:{id:e}});case 3:a=n.sent,a.data,t.initCartList(),t.loading=!1;case 7:case"end":return n.stop()}}),n)})))()},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(H["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,B["a"].get("http://120.79.36.53:8888/chatbot/page",{params:{page:e.currentPage,pageSize:e.pageSize,question:e.formInline.question}});case 3:n=t.sent,a=n.data,console.log(a),200===a.code&&(e.userlist=a.result.content,e.total=a.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()}}}),pe=de,me=(n("68db"),Object(l["a"])(pe,ue,ce,!1,null,"6e64ea6a",null)),fe=me.exports,ge=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-container",[n("el-main",[n("el-dialog",{staticStyle:{width:"100%"},attrs:{title:"新增面试问题",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[n("el-form",{staticClass:"custom-form",attrs:{model:e.form}},[n("el-form-item",{staticClass:"form-item",attrs:{label:"面试问题","label-width":e.formLabelWidth}},[n("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),n("br"),n("el-form-item",{staticClass:"form-item",attrs:{label:"问题类型","label-width":e.formLabelWidth}},[n("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 n("el-option",{key:e.questionType,attrs:{label:e.name,value:e.questionType}})})),1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleConfirm(0)}}},[e._v("确 定")])],1)],1),n("el-dialog",{staticClass:"red-title",attrs:{visible:e.dialogMutiFormVisible},on:{"update:visible":function(t){e.dialogMutiFormVisible=t}}},[n("div",{staticClass:"red-title",attrs:{slot:"title"},slot:"title"},[e._v("批量新增面试问题(多个问题换行填写)")]),n("el-form",{staticClass:"custom-form",attrs:{model:e.form}},[n("el-form-item",{staticClass:"form-item",attrs:{label:"面试问题","label-width":e.formLabelWidth}},[n("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),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogMutiFormVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleConfirm(1)}}},[e._v("确 定")])],1)],1),n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.formInline}},[n("el-form-item",[n("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),n("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 n("el-option",{key:e.questionType,attrs:{label:e.name,value:e.questionType}})})),1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.interviewPage}},[e._v("查询")])],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.prepareAdd}},[e._v("新增")])],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.prepareMutiAdd}},[e._v("批量新增")])],1)],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.userlist}},[n("el-table-column",{attrs:{prop:"id",label:"序号",width:"100",sortable:""}}),n("el-table-column",{attrs:{prop:"question",label:"面试问题","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"questionTypeName",label:"问题类型","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{class:e.getClassForValue(t.row.questionTypeName),domProps:{innerHTML:e._s(t.row.questionTypeName)}})]}}])}),n("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))+" ")]}}])}),n("el-table-column",{attrs:{prop:"操作",label:"操作",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",width:"200"},on:{click:function(n){return n.preventDefault(),e.preEdit(t.row.id,t.row.question,t.row.questionTypeName)}}},[e._v("编辑")]),n("el-dialog",{attrs:{title:"编辑面试问题",visible:e.editVisible},on:{"update:visible":function(t){e.editVisible=t}}},[n("el-form",{attrs:{model:e.form}},[n("el-form-item",{attrs:{label:"面试问题","label-width":e.formLabelWidth}},[n("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),n("el-form-item",{attrs:{label:"问题类型","label-width":e.formLabelWidth}},[n("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 n("el-option",{key:e.questionType,attrs:{label:e.name,value:e.questionType}})})),1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.editVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.editConfirm}},[e._v("确 定")])],1)],1),n("el-button",{attrs:{type:"danger"},on:{click:function(n){return e.prepareDelete(t.row.id)}}},[e._v("删除")]),n("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible,width:"30%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("span",[e._v("确认删除吗")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.preventDefault(),e.onDelete(e.currentRowId)}}},[e._v("确 定")])],1)])]}}])})],1),n("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),n("el-backtop",{staticClass:"backtop"})],1)],1)},he=[],be=(n("159b"),n("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,n){this.form.question=t;var a={};this.options.forEach((function(e){a[e.name]=e.questionType})),this.form.questionType=a[n],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(H["a"])(regeneratorRuntime.mark((function n(){var a,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,t.loading=!0,n.next=4,B["a"].post("http://120.79.36.53:8888/interviewQuestion/add",{addType:e,question:t.form.question,questionType:t.form.questionType});case 4:a=n.sent,r=a.data,200===r.code?(t.form.question="",t.form.questionType=0,t.interviewPage()):(console.error("Received non-200 status code",r),t.errorMsg(r.message)),n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](0),console.error("An error occurred while adding the question:",n.t0);case 12:return n.prev=12,t.loading=!1,n.finish(12);case 15:case"end":return n.stop()}}),n,null,[[0,9,12,15]])})))()},errorMsg:function(e){this.$message({showClose:!0,message:e,type:"error"})},editConfirm:function(){var e=this;return Object(H["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,t.next=4,B["a"].post("http://120.79.36.53:8888/interviewQuestion/update",{id:e.currentRowId,question:e.form.question,questionType:e.form.questionType});case 4:n=t.sent,a=n.data,200===a.code?(e.form.question="",e.form.questionType=0,e.editVisible=!1,e.interviewPage()):console.error("Received non-200 status code",a),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(H["a"])(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.dialogVisible=!1,t.loading=!0,n.next=4,B["a"].get("http://120.79.36.53:8888/interviewQuestion/delete",{params:{id:e}});case 4:a=n.sent,a.data,t.interviewPage(),t.loading=!1;case 8:case"end":return n.stop()}}),n)})))()},refreshPage:function(){this.getQuestionType(),location.reload()},getQuestionType:function(){var e=this;return Object(H["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B["a"].get("http://120.79.36.53:8888/interviewQuestion/questionType",{params:{}});case 2:n=t.sent,a=n.data,200===a.code&&(e.options=a.result);case 5:case"end":return t.stop()}}),t)})))()},interviewPage:function(){var e=this;return Object(H["a"])(regeneratorRuntime.mark((function t(){var n,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,B["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:n=t.sent,a=n.data,200===a.code&&(e.total=a.result.totalElements,r={},e.options.forEach((function(e){r[e.questionType]=e.name})),a.result.content.forEach((function(e){e.questionTypeName=r[e.questionType]||"Unknown"})),e.userlist=a.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()}}}),ve=be,ye=(n("bfaf"),Object(l["a"])(ve,ge,he,!1,null,"153268c2",null)),we=ye.exports,_e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h4",{staticClass:"text-center"},[e._v("系统设置")])},ke=[],xe={name:"MySettings"},Ce=xe,qe=Object(l["a"])(Ce,_e,ke,!1,null,"accd7558",null),Ie=qe.exports,Pe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("button",{staticClass:"btn btn-light btn-sm",attrs:{type:"button"},on:{click:function(t){return e.$router.back()}}},[e._v("后退")]),n("h4",{staticClass:"text-center"},[e._v("用户详情 --- "+e._s(e.id))])])},Te=[],Se={name:"MyUserDetail",props:["id"]},$e=Se,Oe=Object(l["a"])($e,Pe,Te,!1,null,"bea9073a",null),je=Oe.exports,Me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-button",{attrs:{type:"primary",plain:"",size:"medium"},on:{click:e.goBack}},[e._v("后退")]),n("h4",{staticClass:"text-center"},[e._v("ChatGpt问答详情 --- "+e._s(e.id))]),n("el-container",[n("el-main",[n("el-table",{attrs:{border:"",data:e.list}},[n("el-table-column",{attrs:{label:"序号",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.id))])]}}])}),n("el-table-column",{attrs:{label:"问题",width:"240"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.question))])]}}])}),n("el-table-column",{attrs:{label:"回答"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{attrs:{id:"td-response"}},[e._v(e._s(t.row.response))])]}}])}),n("el-table-column",{attrs:{label:"创建时间",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e._f("dateFormat")(t.row.createTime)))])]}}])})],1)],1)],1),n("div",{staticClass:"button-container"},[n("el-button",{attrs:{type:"primary",round:""},on:{click:e.copyCode}},[e._v("复制回答")])],1)],1)},Ve=[],Re={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(H["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,B["a"].get("http://120.79.36.53:8888/chatbot/"+e.id);case 2:n=t.sent,a=n.data,200===a.code&&(e.list=[{id:a.result.id,question:a.result.question,response:a.result.response,createTime:a.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 n=window.getSelection();n.removeAllRanges(),n.addRange(t),document.execCommand("copy"),n.removeAllRanges(),this.$message.success("代码已复制到剪贴板")}}},Ee=Re,De=(n("022e"),Object(l["a"])(Ee,Me,Ve,!1,null,"9d5d30a4",null)),Le=De.exports,Fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-button",{attrs:{type:"primary",plain:"",size:"medium"},on:{click:e.goBack}},[e._v("后退")]),n("h4",{staticClass:"text-center"},[e._v("新增ChatGpt问答")]),n("el-container",{staticClass:"container"},[n("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"问题"}},[n("el-input",{model:{value:e.form.question,callback:function(t){e.$set(e.form,"question",t)},expression:"form.question"}})],1),n("el-form-item",{attrs:{label:"答案"}},[n("el-input",{attrs:{type:"textarea"},model:{value:e.form.response,callback:function(t){e.$set(e.form,"response",t)},expression:"form.response"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("立即创建")]),n("el-button",{on:{click:e.clearContent}},[e._v("取消")])],1)],1)],1)],1)},Ne=[],ze={name:"AddChatDetail",data:function(){return{form:{question:"",response:""}}},methods:{clearContent:function(){this.form.question="",this.form.response=""},onSubmit:function(){var e=this;return Object(H["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n={question:e.form.question,response:e.form.response},B["a"].post("http://120.79.36.53:8888/chatbot",n).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})}}},Ae=ze,Qe=(n("66f9"),Object(l["a"])(Ae,Fe,Ne,!1,null,"ddc6c3e0",null)),Ue=Qe.exports;a["default"].use(d["a"]);var He=new d["a"]({routes:[{path:"/",redirect:"/login"},{path:"/login",component:v},{path:"/home",component:E,redirect:"/home/interview",children:[{path:"users",component:A},{path:"pic",component:J},{path:"goods",component:ne},{path:"orders",component:le},{path:"chat",component:fe},{path:"interview",component:we},{path:"settings",component:Ie},{path:"userinfo/:id",component:je,props:!0},{path:"chatinfo/:id",component:Le,props:!0},{path:"addChat",component:Ue}]}]});He.beforeEach((function(e,t,n){if(-1!==p.indexOf(e.path)){var a=localStorage.getItem("token");a?n():n("/login")}else n()}));var Be=He,We=n("5c96"),Ye=n.n(We),Ge=(n("0fae"),n("16b4"),n("a766"),n("5a0c")),Je=n.n(Ge);a["default"].prototype.$dayjs=Je.a,a["default"].filter("dateFormat",(function(e){var t=Je()(e).format("YYYY-MM-DD HH:mm:ss");return t})),a["default"].use(Ye.a),a["default"].config.productionTip=!1,new a["default"]({render:function(e){return e(c)},router:Be}).$mount("#app")},"66f9":function(e,t,n){"use strict";n("155e")},"68db":function(e,t,n){"use strict";n("e918")},7678:function(e,t,n){e.exports=n.p+"img/kwan.80e90605.png"},"7ee9":function(e,t,n){},"808c":function(e,t,n){},9547:function(e,t,n){"use strict";n("4084")},"9d40":function(e,t,n){"use strict";n("7ee9")},a766:function(e,t,n){},bfaf:function(e,t,n){"use strict";n("5304")},e918:function(e,t,n){}}); //# sourceMappingURL=app.a42e9102.js.map