整理

上级 a5bea1fc
.login-container[data-v-1be4e8ce]{background-color:#35495e;height:100%}.login-container .login-box[data-v-1be4e8ce]{width:400px;height:250px;background-color:#fff;border-radius:3px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 6px hsla(0,0%,100%,.5)}.login-container .login-box .form-login[data-v-1be4e8ce]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box}.form-control[data-v-1be4e8ce]{flex:1}.avatar-box[data-v-1be4e8ce]{position:absolute;width:100%;top:-65px;left:0}.avatar-box .avatar[data-v-1be4e8ce]{width:120px;height:120px;border-radius:50%!important;box-shadow:0 0 6px #efefef}.layout-header-container[data-v-1eaf2085]{height:60px;border-bottom:1px solid #eaeaea}.layout-header-left-img[data-v-1eaf2085]{height:50px}.layout-aside-container[data-v-412d2482]{width:250px;height:100%;border-right:1px solid #eaeaea}.left-aside-item[data-v-412d2482]{font-size:20px}.home-container[data-v-e41dbfec]{height:100%;display:flex;flex-direction:column}.home-container .home-main-box[data-v-e41dbfec]{height:100%;display:flex}.home-container .home-main-box .home-main-body[data-v-e41dbfec]{padding:15px;flex:1}.el-header[data-v-15b8f4b2]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-15b8f4b2]{color:#333}.pagination[data-v-15b8f4b2]{margin-top:16px;text-align:right}.arrow-button[data-v-15b8f4b2]{display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer}.custom-icon[data-v-15b8f4b2]{font-size:24px;color:#f90;margin-right:6px}.arrow-button.disabled[data-v-15b8f4b2]{pointer-events:none;opacity:.1}.el-header[data-v-6e64ea6a]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-6e64ea6a]{color:#333}.pagination[data-v-6e64ea6a]{margin-top:16px;text-align:right}.header-button-item[data-v-6e64ea6a]{margin-right:15px;font-size:20px}.backtop[data-v-6e64ea6a]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.backtop[data-v-6e64ea6a]:hover{background-color:#0050a0}.el-header[data-v-68d544b4]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-68d544b4]{color:#333}.pagination[data-v-68d544b4]{margin-top:16px;text-align:right}.header-button-item[data-v-68d544b4]{margin-right:15px;font-size:20px}.red-title[data-v-68d544b4]{line-height:24px;font-size:18px;color:red}.backtop[data-v-68d544b4]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-68d544b4]{width:100%;text-align:left}.backtop[data-v-68d544b4]:hover{background-color:#0050a0}.el-header[data-v-ba5f8f70]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-ba5f8f70]{color:#333}.pagination[data-v-ba5f8f70]{margin-top:16px;text-align:right}.header-button-item[data-v-ba5f8f70]{margin-right:15px;font-size:20px}.red-title[data-v-ba5f8f70]{line-height:24px;font-size:18px;color:red}.backtop[data-v-ba5f8f70]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-ba5f8f70]{width:100%;text-align:left}.backtop[data-v-ba5f8f70]:hover{background-color:#0050a0}.el-header[data-v-74747e23]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-74747e23]{color:#333}.pagination[data-v-74747e23]{margin-top:16px;text-align:right}.header-button-item[data-v-74747e23]{margin-right:15px;font-size:20px}.red-title[data-v-74747e23]{line-height:24px;font-size:18px;color:red}.backtop[data-v-74747e23]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-74747e23]{width:100%;text-align:left}.backtop[data-v-74747e23]:hover{background-color:#0050a0}.button-container[data-v-9d5d30a4]{position:fixed;bottom:0;right:0;margin:16px}.container[data-v-ddc6c3e0]{display:flex;justify-content:center;align-items:center;height:30vh} .login-container[data-v-1be4e8ce]{background-color:#35495e;height:100%}.login-container .login-box[data-v-1be4e8ce]{width:400px;height:250px;background-color:#fff;border-radius:3px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 6px hsla(0,0%,100%,.5)}.login-container .login-box .form-login[data-v-1be4e8ce]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box}.form-control[data-v-1be4e8ce]{flex:1}.avatar-box[data-v-1be4e8ce]{position:absolute;width:100%;top:-65px;left:0}.avatar-box .avatar[data-v-1be4e8ce]{width:120px;height:120px;border-radius:50%!important;box-shadow:0 0 6px #efefef}.layout-header-container[data-v-1eaf2085]{height:60px;border-bottom:1px solid #eaeaea}.layout-header-left-img[data-v-1eaf2085]{height:50px}.layout-aside-container[data-v-412d2482]{width:250px;height:100%;border-right:1px solid #eaeaea}.left-aside-item[data-v-412d2482]{font-size:20px}.el-main{padding:20px 3px!important}.el-header[data-v-15b8f4b2]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-15b8f4b2]{color:#333}.pagination[data-v-15b8f4b2]{margin-top:16px;text-align:right}.arrow-button[data-v-15b8f4b2]{display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer}.custom-icon[data-v-15b8f4b2]{font-size:24px;color:#f90;margin-right:6px}.arrow-button.disabled[data-v-15b8f4b2]{pointer-events:none;opacity:.1}.el-header[data-v-6e64ea6a]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-6e64ea6a]{color:#333}.pagination[data-v-6e64ea6a]{margin-top:16px;text-align:right}.header-button-item[data-v-6e64ea6a]{margin-right:15px;font-size:20px}.backtop[data-v-6e64ea6a]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.backtop[data-v-6e64ea6a]:hover{background-color:#0050a0}.el-header[data-v-68d544b4]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-68d544b4]{color:#333}.pagination[data-v-68d544b4]{margin-top:16px;text-align:right}.header-button-item[data-v-68d544b4]{margin-right:15px;font-size:20px}.red-title[data-v-68d544b4]{line-height:24px;font-size:18px;color:red}.backtop[data-v-68d544b4]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-68d544b4]{width:100%;text-align:left}.backtop[data-v-68d544b4]:hover{background-color:#0050a0}.el-header[data-v-ba5f8f70]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-ba5f8f70]{color:#333}.pagination[data-v-ba5f8f70]{margin-top:16px;text-align:right}.header-button-item[data-v-ba5f8f70]{margin-right:15px;font-size:20px}.red-title[data-v-ba5f8f70]{line-height:24px;font-size:18px;color:red}.backtop[data-v-ba5f8f70]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-ba5f8f70]{width:100%;text-align:left}.backtop[data-v-ba5f8f70]:hover{background-color:#0050a0}.el-header[data-v-74747e23]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-74747e23]{color:#333}.pagination[data-v-74747e23]{margin-top:16px;text-align:right}.header-button-item[data-v-74747e23]{margin-right:15px;font-size:20px}.red-title[data-v-74747e23]{line-height:24px;font-size:18px;color:red}.backtop[data-v-74747e23]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-74747e23]{width:100%;text-align:left}.backtop[data-v-74747e23]:hover{background-color:#0050a0}.button-container[data-v-9d5d30a4]{position:fixed;bottom:0;right:0;margin:16px}.container[data-v-ddc6c3e0]{display:flex;justify-content:center;align-items:center;height:30vh}
/*! /*!
* Bootstrap v4.5.0 (https://getbootstrap.com/) * Bootstrap v4.5.0 (https://getbootstrap.com/)
......
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/kwan.png"><title>kwan</title><link href="/css/app.90eacce6.css" rel="preload" as="style"><link href="/css/chunk-vendors.bedbfba9.css" rel="preload" as="style"><link href="/js/app.62350d76.js" rel="preload" as="script"><link href="/js/chunk-vendors.8385d186.js" rel="preload" as="script"><link href="/css/chunk-vendors.bedbfba9.css" rel="stylesheet"><link href="/css/app.90eacce6.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but kwan doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.8385d186.js"></script><script src="/js/app.62350d76.js"></script></body></html> <!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/kwan.png"><title>kwan</title><link href="/css/app.6f9b1b20.css" rel="preload" as="style"><link href="/css/chunk-vendors.bedbfba9.css" rel="preload" as="style"><link href="/js/app.df0c3d28.js" rel="preload" as="script"><link href="/js/chunk-vendors.8385d186.js" rel="preload" as="script"><link href="/css/chunk-vendors.bedbfba9.css" rel="stylesheet"><link href="/css/app.6f9b1b20.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but kwan doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.8385d186.js"></script><script src="/js/app.df0c3d28.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
(function(e){function t(t){for(var r,a,l=t[0],s=t[1],c=t[2],m=0,d=[];m<l.length;m++)a=l[m],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&d.push(i[a][0]),i[a]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);u&&u(t);while(d.length)d.shift()();return n.push.apply(n,c||[]),o()}function o(){for(var e,t=0;t<n.length;t++){for(var o=n[t],r=!0,l=1;l<o.length;l++){var s=o[l];0!==i[s]&&(r=!1)}r&&(n.splice(t--,1),e=a(a.s=o[0]))}return e}var r={},i={app:0},n=[];function a(t){if(r[t])return r[t].exports;var o=r[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=r,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 r in e)a.d(o,r,function(t){return e[t]}.bind(null,r));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;n.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")},"06ee":function(e,t,o){},"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){},3734:function(e,t,o){},4084:function(e,t,o){},"4e21":function(e,t,o){},"4fb7":function(e,t,o){"use strict";o("06ee")},5427:function(e,t,o){"use strict";o("4e21")},"56d7":function(e,t,o){"use strict";o.r(t);o("e260"),o("e6cf"),o("cca6"),o("a79d"),o("4de4");var r=o("2b0e"),i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("router-view")},n=[],a={name:"MyApp"},l=a,s=o("2877"),c=Object(s["a"])(l,i,n,!1,null,"633dd7d9",null),u=c.exports,m=o("8c4f"),d=["/home","/home/users","/home/pic"],f=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,r=e._self._c||t;return r("div",{staticClass:"text-center avatar-box"},[r("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,f,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("h2",{staticClass:"layout-header-left-title ml-3",style:{color:e.textColor}},[e._v(e._s(e.randomAlgorithmic.poetryText))]),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,r=e._self._c||t;return r("div",{staticClass:"layout-header-left d-flex align-items-center user-select-none"},[r("img",{staticClass:"layout-header-left-img",attrs:{src:o("7678"),alt:""}}),r("h4",{staticClass:"layout-header-left-title ml-3"},[e._v("kwan的解忧杂货铺")])])}],x=o("1da1"),q=(o("96cf"),o("cee4")),C={name:"MyHeader",data:function(){return{randomAlgorithmic:{poetryText:""},color:["red","blue","green","yellow","purple","orange","pink","brown","cyan","magenta","maroon","navy","olive","teal","lime","aqua","silver","gray","white","indigo","violet","lavender","coral","gold","salmon","turquoise","orchid","khaki","slategray","thistle","burlywood","cadetblue","chartreuse","chocolate","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dodgerblue","firebrick","forestgreen","fuchsia","gold","greenyellow","hotpink","indianred","lawngreen","lightcoral","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","orangered","palegoldenrod","palegreen","paleturquoise","palevioletred","peru","powderblue","rosybrown","saddlebrown","seagreen","sienna","skyblue","slateblue","springgreen","tan","thistle","tomato","turquoise","violet"],textColor:"skyblue",loading:!1}},watch:{"randomAlgorithmic.poetryText":{handler:function(e,t){e!==t&&(this.textColor=this.getRandomColor())},deep:!0}},created:function(){this.startInterviewRandomTimer()},destroyed:function(){this.stopInterviewRandomTimer()},methods:{logout:function(){localStorage.removeItem("token"),this.$router.push("/login")},myHome:function(){window.open("http://qinyingjie.top/")},interviewRandom:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["a"].get("http://120.79.36.53:8888/aphorismPoetry/random",{params:{}});case 3:o=t.sent,r=o.data,200===r.code&&(e.randomAlgorithmic.poetryText=r.result.poetryText),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},startInterviewRandomTimer:function(){var e=this;this.interviewRandom(),this.interviewRandomTimer=setInterval((function(){e.interviewRandom()}),1e4)},stopInterviewRandomTimer:function(){clearInterval(this.interviewRandomTimer)},getRandomColor:function(){var e=Math.floor(Math.random()*this.color.length);return this.color[e]}}},T=C,I=(o("9290"),Object(s["a"])(T,k,_,!1,null,"1eaf2085",null)),P=I.exports,S=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-info"}),o("span",{attrs:{slot:"title"},slot:"title"},[e._v("算法题管理")])])],1),o("router-link",{attrs:{to:"/home/aphorismPoetry"}},[o("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/aphorismPoetry"}},[o("i",{staticClass:"el-icon-document"}),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)],1)},O=[],R={name:"MyAside"},V=R,L=(o("e647"),Object(s["a"])(V,S,O,!1,null,"412d2482",null)),N=L.exports,$={name:"MyHome",components:{MyHeader:P,MyAside:N}},M=$,D=(o("9547"),Object(s["a"])(M,y,w,!1,null,"e41dbfec",null)),F=D.exports,A=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("操作")])])])}],E={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)}}},Q=E,z=Object(s["a"])(Q,A,j,!1,null,"02f3073a",null),W=z.exports,U=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)},H=[],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(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["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,r=o.data,200===r.code&&(e.picList=r.result.records,e.total=r.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,U,H,!1,null,"15b8f4b2",null)),J=G.exports,K=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)},X=[],Z=(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(x["a"])(regeneratorRuntime.mark((function o(){var r;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return t.loading=!0,o.next=3,q["a"].get("http://120.79.36.53:8888/chatbot/delete",{params:{id:e}});case 3:r=o.sent,r.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(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["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,r=o.data,console.log(r),200===r.code&&(e.userlist=r.result.content,e.total=r.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()}}}),ee=Z,te=(o("68db"),Object(s["a"])(ee,K,X,!1,null,"6e64ea6a",null)),oe=te.exports,re=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",{style:{color:e.getColorForValue(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)},ie=[],ne=(o("d3b7"),o("25f0"),o("159b"),o("b0c0"),{name:"MyInterview",data:function(){return{userlist:[],loading:!1,elementui_page_component_key:0,currentPage:Number(localStorage.getItem("interviewLastPage"))||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,colorMap:{}}},watch:{"formInline.question":function(e){""===e&&(this.currentPage=1,localStorage.setItem("interviewLastPage",this.currentPage),this.getQuestionType())},currentPage:function(e){localStorage.setItem("interviewLastPage",e.toString())}},created:function(){this.getQuestionType()},mounted:function(){var e=localStorage.getItem("interviewLastPage");e&&(this.currentPage=parseInt(e))},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 r={};this.options.forEach((function(e){r[e.name]=e.questionType})),this.form.questionType=r[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(x["a"])(regeneratorRuntime.mark((function o(){var r,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,q["a"].post("http://120.79.36.53:8888/interviewQuestion/add",{addType:e,question:t.form.question,questionType:t.form.questionType});case 4:r=o.sent,i=r.data,200===i.code?(t.form.question="",t.form.questionType=0,t.getQuestionType()):(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(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,t.next=4,q["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,r=o.data,200===r.code?(e.form.question="",e.form.questionType=0,e.editVisible=!1,e.getQuestionType()):console.error("Received non-200 status code",r),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(x["a"])(regeneratorRuntime.mark((function o(){var r;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return t.dialogVisible=!1,t.loading=!0,o.next=4,q["a"].get("http://120.79.36.53:8888/interviewQuestion/delete",{params:{id:e}});case 4:r=o.sent,r.data,t.getQuestionType(),t.loading=!1;case 8:case"end":return o.stop()}}),o)})))()},refreshPage:function(){this.getQuestionType(),location.reload()},getQuestionType:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,q["a"].get("http://120.79.36.53:8888/interviewQuestion/questionType",{params:{}});case 2:o=t.sent,r=o.data,200===r.code&&(e.options=r.result,e.interviewPage());case 5:case"end":return t.stop()}}),t)})))()},interviewPage:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["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,r=o.data,200===r.code&&(e.total=r.result.totalElements,i={},e.options.forEach((function(e){i[e.questionType]=e.name})),r.result.content.forEach((function(e){e.questionTypeName=i[e.questionType]||"Unknown"})),e.userlist=r.result.content),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.currentPage=e,this.getQuestionType()},getColorForValue:function(e){return this.colorMap[e]||(this.colorMap[e]=this.getRandomColor()),this.colorMap[e]},getRandomColor:function(){var e=["red","blue","green","yellow","purple","orange","pink","brown","cyan","magenta","maroon","navy","olive","teal","lime","aqua","silver","gray","white","indigo","violet","lavender","coral","gold","salmon","turquoise","orchid","khaki","slategray","thistle","burlywood","cadetblue","chartreuse","chocolate","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dodgerblue","firebrick","forestgreen","fuchsia","gold","greenyellow","hotpink","indianred","lawngreen","lightcoral","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","orangered","palegoldenrod","palegreen","paleturquoise","palevioletred","peru","powderblue","rosybrown","saddlebrown","seagreen","sienna","skyblue","slateblue","springgreen","tan","thistle","tomato","turquoise","violet"],t=Math.floor(Math.random()*e.length);return e[t]}}}),ae=ne,le=(o("5427"),Object(s["a"])(ae,re,ie,!1,null,"68d544b4",null)),se=le.exports,ce=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:"重要程度","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:"80",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",{style:{color:e.getColorForValue(t.row.questionTypeName)},domProps:{innerHTML:e._s(t.row.questionTypeName)}})]}}])}),o("el-table-column",{attrs:{prop:"degreeOfImportance",label:"重要程度","show-overflow-tooltip":"",width:50}}),o("el-table-column",{attrs:{prop:"degreeOfDifficulty",label:"难易程度","show-overflow-tooltip":"",width:50}}),o("el-table-column",{attrs:{prop:"difficultyOfScore",label:"难易分数","show-overflow-tooltip":"",width:80}}),o("el-table-column",{attrs:{prop:"leetcodeNumber",label:"力扣题号","show-overflow-tooltip":"",width:50}}),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:"重要程度","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)},ue=[],me={name:"MyInterview",data:function(){return{algorithmicList:[],randomAlgorithmic:{questionName:"",leetcodeNumber:"",leetcodeLink:""},loading:!1,elementui_page_component_key:0,currentPage:Number(localStorage.getItem("algorithmLastPage"))||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,colorMap:{}}},watch:{"formInline.questionName":function(e){""===e&&(this.currentPage=1,localStorage.setItem("algorithmLastPage",this.currentPage),this.getQuestionType())},currentPage:function(e){localStorage.setItem("algorithmLastPage",e.toString())}},created:function(){this.getQuestionType(),this.getAllQuestionType()},mounted:function(){var e=localStorage.getItem("algorithmLastPage");e&&(this.currentPage=parseInt(e))},methods:{prepareAdd:function(){this.form.questionName="",this.form.questionType=0,this.dialogFormVisible=!0,this.getAllQuestionType()},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,r,i,n,a,l){this.form.questionName=t,this.form.degreeOfImportance=r,this.form.degreeOfDifficulty=i,this.form.difficultyOfScore=n,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(x["a"])(regeneratorRuntime.mark((function o(){var r,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,q["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:r=o.sent,i=r.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.getQuestionType()):(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(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,t.next=4,q["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,r=o.data,200===r.code?(e.form.questionName="",e.form.questionType=0,e.editVisible=!1,e.getQuestionType()):console.error("Received non-200 status code",r),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(x["a"])(regeneratorRuntime.mark((function o(){var r;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return t.dialogVisible=!1,t.loading=!0,o.next=4,q["a"].get("http://120.79.36.53:8888/algorithmicProblem/delete",{params:{id:e}});case 4:r=o.sent,r.data,t.getQuestionType(),t.loading=!1;case 8:case"end":return o.stop()}}),o)})))()},refreshPage:function(){this.getQuestionType(),location.reload()},getQuestionType:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,q["a"].get("http://120.79.36.53:8888/algorithmicProblem/questionType",{params:{}});case 2:o=t.sent,r=o.data,200===r.code&&(e.options=r.result,console.log(e.options),e.interviewPage());case 5:case"end":return t.stop()}}),t)})))()},getAllQuestionType:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,q["a"].get("http://120.79.36.53:8888/algorithmicProblem/allQuestionType",{params:{}});case 2:o=t.sent,r=o.data,200===r.code&&(e.allOptions=r.result);case 5:case"end":return t.stop()}}),t)})))()},interviewPage:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["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,r=o.data,200===r.code&&(e.total=r.result.totalElements,i={},e.options.forEach((function(e){i[e.questionType]=e.name})),r.result.content.forEach((function(e){e.questionTypeName=i[e.questionType]})),e.algorithmicList=r.result.content),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},interviewRandom:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["a"].get("http://120.79.36.53:8888/algorithmicProblem/random",{params:{}});case 3:o=t.sent,r=o.data,200===r.code&&(e.randomAlgorithmic.questionName=r.result.questionName,e.randomAlgorithmic.leetcodeNumber=r.result.leetcodeNumber,e.randomAlgorithmic.leetcodeLink=r.result.leetcodeLink),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.currentPage=e,this.getQuestionType()},getColorForValue:function(e){return this.colorMap[e]||(this.colorMap[e]=this.getRandomColor()),this.colorMap[e]},getRandomColor:function(){var e=["red","blue","green","yellow","purple","orange","pink","brown","cyan","magenta","maroon","navy","olive","teal","lime","aqua","silver","gray","white","indigo","violet","lavender","coral","gold","salmon","turquoise","orchid","khaki","slategray","thistle","burlywood","cadetblue","chartreuse","chocolate","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dodgerblue","firebrick","forestgreen","fuchsia","gold","greenyellow","hotpink","indianred","lawngreen","lightcoral","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","orangered","palegoldenrod","palegreen","paleturquoise","palevioletred","peru","powderblue","rosybrown","saddlebrown","seagreen","sienna","skyblue","slateblue","springgreen","tan","thistle","tomato","turquoise","violet"],t=Math.floor(Math.random()*e.length);return e[t]}}},de=me,fe=(o("8983"),Object(s["a"])(de,ce,ue,!1,null,"ba5f8f70",null)),pe=fe.exports,ge=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.poetryText,callback:function(t){e.$set(e.form,"poetryText",t)},expression:"form.poetryText"}})],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.poetryText,callback:function(t){e.$set(e.form,"poetryText",t)},expression:"form.poetryText"}})],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.poetryText,callback:function(t){e.$set(e.randomAlgorithmic,"poetryText",t)},expression:"randomAlgorithmic.poetryText"}},[o("template",{slot:"label"},[e._v("诗词内容")]),e._v(" "+e._s(e.randomAlgorithmic.poetryText)+" ")],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.poetryText,callback:function(t){e.$set(e.formInline,"poetryText",t)},expression:"formInline.poetryText"}})],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:"80",sortable:""}}),o("el-table-column",{attrs:{prop:"poetryText",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",width:"200"},on:{click:function(o){return o.preventDefault(),e.preEdit(t.row.id,t.row.poetryText)}}},[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.poetryText,callback:function(t){e.$set(e.form,"poetryText",t)},expression:"form.poetryText"}})],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)},he=[],be={name:"MyInterview",data:function(){return{algorithmicList:[],randomAlgorithmic:{poetryText:""},loading:!1,elementui_page_component_key:0,currentPage:Number(localStorage.getItem("poetryLastPage"))||1,pageSize:9,total:0,formInline:{poetryText:""},dialogFormVisible:!1,randomFormVisible:!1,dialogMutiFormVisible:!1,form:{poetryText:""},formLabelWidth:"120px",dialogVisible:!1,editVisible:!1,currentRowId:null}},watch:{"formInline.poetryText":function(e){""===e&&(this.currentPage=1,localStorage.setItem("poetryLastPage",this.currentPage),this.interviewPage())},currentPage:function(e){localStorage.setItem("poetryLastPage",e.toString())}},created:function(){this.interviewPage()},mounted:function(){var e=localStorage.getItem("poetryLastPage");e&&(this.currentPage=parseInt(e))},methods:{prepareAdd:function(){this.form.poetryText="",this.dialogFormVisible=!0},prepareRandom:function(){this.randomAlgorithmic=[],this.randomFormVisible=!0,this.interviewRandom()},prepareMutiAdd:function(){this.form.poetryText="",this.dialogMutiFormVisible=!0},prepareDelete:function(e){this.currentRowId=e,this.dialogVisible=!0},preEdit:function(e,t){this.form.poetryText=t,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(x["a"])(regeneratorRuntime.mark((function o(){var r,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,q["a"].post("http://120.79.36.53:8888/aphorismPoetry/add",{addType:e,poetryText:t.form.poetryText,degreeOfImportance:t.form.degreeOfImportance,degreeOfDifficulty:t.form.degreeOfDifficulty,difficultyOfScore:t.form.difficultyOfScore,leetcodeNumber:t.form.leetcodeNumber,leetcodeLink:t.form.leetcodeLink});case 4:r=o.sent,i=r.data,200===i.code?t.form.poetryText="":(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 poetryText:",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(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,t.next=4,q["a"].post("http://120.79.36.53:8888/aphorismPoetry/update",{id:e.currentRowId,poetryText:e.form.poetryText});case 4:o=t.sent,r=o.data,200===r.code?(e.form.poetryText="",e.editVisible=!1,e.interviewPage()):console.error("Received non-200 status code",r),t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),console.error("An error occurred while adding the poetryText:",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(x["a"])(regeneratorRuntime.mark((function o(){var r;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return t.dialogVisible=!1,t.loading=!0,o.next=4,q["a"].get("http://120.79.36.53:8888/aphorismPoetry/delete",{params:{id:e}});case 4:r=o.sent,r.data,t.interviewPage(),t.loading=!1;case 8:case"end":return o.stop()}}),o)})))()},refreshPage:function(){this.interviewPage(),location.reload()},interviewPage:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["a"].get("http://120.79.36.53:8888/aphorismPoetry/page",{params:{page:e.currentPage,pageSize:e.pageSize,poetryText:e.formInline.poetryText}});case 3:o=t.sent,r=o.data,200===r.code&&(e.total=r.result.totalElements,e.algorithmicList=r.result.content),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},interviewRandom:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["a"].get("http://120.79.36.53:8888/aphorismPoetry/random",{params:{}});case 3:o=t.sent,r=o.data,200===r.code&&(e.randomAlgorithmic.poetryText=r.result.poetryText),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.currentPage=e,this.interviewPage()}}},ve=be,ye=(o("4fb7"),Object(s["a"])(ve,ge,he,!1,null,"74747e23",null)),we=ye.exports,ke=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))])])},_e=[],xe={name:"MyUserDetail",props:["id"]},qe=xe,Ce=Object(s["a"])(qe,ke,_e,!1,null,"bea9073a",null),Te=Ce.exports,Ie=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)},Pe=[],Se={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(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,q["a"].get("http://120.79.36.53:8888/chatbot/"+e.id);case 2:o=t.sent,r=o.data,200===r.code&&(e.list=[{id:r.result.id,question:r.result.question,response:r.result.response,createTime:r.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("代码已复制到剪贴板")}}},Oe=Se,Re=(o("022e"),Object(s["a"])(Oe,Ie,Pe,!1,null,"9d5d30a4",null)),Ve=Re.exports,Le=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)},Ne=[],$e={name:"AddChatDetail",data:function(){return{form:{question:"",response:""}}},methods:{clearContent:function(){this.form.question="",this.form.response=""},onSubmit:function(){var e=this;return Object(x["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},q["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})}}},Me=$e,De=(o("66f9"),Object(s["a"])(Me,Le,Ne,!1,null,"ddc6c3e0",null)),Fe=De.exports;r["default"].use(m["a"]);var Ae=new m["a"]({routes:[{path:"/",redirect:"/login"},{path:"/login",component:v,meta:{title:"登录"}},{path:"/home",component:F,redirect:"/home/interview",children:[{path:"interview",component:se,meta:{title:"面试题"}},{path:"algorithmic",component:pe,meta:{title:"算法题"}},{path:"aphorismpoetry",component:we,meta:{title:"名言警句"}},{path:"chat",component:oe,meta:{title:"chatgpt记录"}},{path:"pic",component:J,meta:{title:"图片"}},{path:"users",component:W,meta:{title:"用户管理"}},{path:"userinfo/:id",component:Te,props:!0,meta:{title:"用户信息"}},{path:"chatinfo/:id",component:Ve,props:!0,meta:{title:"chat信息"}},{path:"addChat",component:Fe,meta:{title:"添加chat信息"}}]}]});Ae.beforeEach((function(e,t,o){if(-1!==d.indexOf(e.path)){var r=localStorage.getItem("token");r?o():o("/login")}else o()}));var je=Ae,Ee=o("5c96"),Qe=o.n(Ee),ze=(o("0fae"),o("16b4"),o("a766"),o("5a0c")),We=o.n(ze);r["default"].prototype.$dayjs=We.a,r["default"].filter("dateFormat",(function(e){var t=We()(e).format("YYYY-MM-DD HH:mm:ss");return t})),r["default"].use(Qe.a),r["default"].config.productionTip=!1,je.beforeEach((function(e,t,o){e.meta.title&&(document.title=e.meta.title),o()})),new r["default"]({render:function(e){return e(u)},router:je}).$mount("#app")},"66f9":function(e,t,o){"use strict";o("155e")},"68db":function(e,t,o){"use strict";o("e918")},"6eba":function(e,t,o){},7678:function(e,t,o){e.exports=o.p+"img/kwan.80e90605.png"},"808c":function(e,t,o){},8983:function(e,t,o){"use strict";o("6eba")},9290:function(e,t,o){"use strict";o("b8d3")},9547:function(e,t,o){"use strict";o("4084")},a766:function(e,t,o){},b8d3:function(e,t,o){},e647:function(e,t,o){"use strict";o("3734")},e918:function(e,t,o){}});
//# sourceMappingURL=app.62350d76.js.map
\ No newline at end of file
因为 它太大了无法显示 source diff 。你可以改为 查看blob
(function(e){function t(t){for(var r,a,l=t[0],s=t[1],c=t[2],m=0,d=[];m<l.length;m++)a=l[m],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&d.push(i[a][0]),i[a]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);u&&u(t);while(d.length)d.shift()();return n.push.apply(n,c||[]),o()}function o(){for(var e,t=0;t<n.length;t++){for(var o=n[t],r=!0,l=1;l<o.length;l++){var s=o[l];0!==i[s]&&(r=!1)}r&&(n.splice(t--,1),e=a(a.s=o[0]))}return e}var r={},i={app:0},n=[];function a(t){if(r[t])return r[t].exports;var o=r[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=r,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 r in e)a.d(o,r,function(t){return e[t]}.bind(null,r));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;n.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")},"06ee":function(e,t,o){},"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){},3734:function(e,t,o){},"38b7":function(e,t,o){},"4e21":function(e,t,o){},"4fb7":function(e,t,o){"use strict";o("06ee")},5427:function(e,t,o){"use strict";o("4e21")},"56d7":function(e,t,o){"use strict";o.r(t);o("e260"),o("e6cf"),o("cca6"),o("a79d"),o("4de4");var r=o("2b0e"),i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("router-view")},n=[],a={name:"MyApp"},l=a,s=o("2877"),c=Object(s["a"])(l,i,n,!1,null,"633dd7d9",null),u=c.exports,m=o("8c4f"),d=["/home","/home/users","/home/pic"],f=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,r=e._self._c||t;return r("div",{staticClass:"text-center avatar-box"},[r("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,f,p,!1,null,"1be4e8ce",null)),v=b.exports,y=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-container",[o("el-header",[o("MyHeader")],1),o("el-container",[o("el-aside",{staticStyle:{overflow:"hidden","padding-top":"24px"},attrs:{width:"160px"}},[o("MyAside")],1),o("el-main",{staticStyle:{padding:"0"}},[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("h2",{staticClass:"layout-header-left-title ml-3",style:{color:e.textColor}},[e._v(e._s(e.randomAlgorithmic.poetryText))]),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,r=e._self._c||t;return r("div",{staticClass:"layout-header-left d-flex align-items-center user-select-none"},[r("img",{staticClass:"layout-header-left-img",attrs:{src:o("7678"),alt:""}}),r("h4",{staticClass:"layout-header-left-title ml-3"},[e._v("kwan的解忧杂货铺")])])}],x=o("1da1"),q=(o("96cf"),o("cee4")),C={name:"MyHeader",data:function(){return{randomAlgorithmic:{poetryText:""},color:["red","blue","green","yellow","purple","orange","pink","brown","cyan","magenta","maroon","navy","olive","teal","lime","aqua","silver","gray","white","indigo","violet","lavender","coral","gold","salmon","turquoise","orchid","khaki","slategray","thistle","burlywood","cadetblue","chartreuse","chocolate","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dodgerblue","firebrick","forestgreen","fuchsia","gold","greenyellow","hotpink","indianred","lawngreen","lightcoral","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","orangered","palegoldenrod","palegreen","paleturquoise","palevioletred","peru","powderblue","rosybrown","saddlebrown","seagreen","sienna","skyblue","slateblue","springgreen","tan","thistle","tomato","turquoise","violet"],textColor:"skyblue",loading:!1}},watch:{"randomAlgorithmic.poetryText":{handler:function(e,t){e!==t&&(this.textColor=this.getRandomColor())},deep:!0}},created:function(){this.startInterviewRandomTimer()},destroyed:function(){this.stopInterviewRandomTimer()},methods:{logout:function(){localStorage.removeItem("token"),this.$router.push("/login")},myHome:function(){window.open("http://qinyingjie.top/")},interviewRandom:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["a"].get("http://120.79.36.53:8888/aphorismPoetry/random",{params:{}});case 3:o=t.sent,r=o.data,200===r.code&&(e.randomAlgorithmic.poetryText=r.result.poetryText),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},startInterviewRandomTimer:function(){var e=this;this.interviewRandom(),this.interviewRandomTimer=setInterval((function(){e.interviewRandom()}),1e4)},stopInterviewRandomTimer:function(){clearInterval(this.interviewRandomTimer)},getRandomColor:function(){var e=Math.floor(Math.random()*this.color.length);return this.color[e]}}},T=C,I=(o("9290"),Object(s["a"])(T,k,_,!1,null,"1eaf2085",null)),P=I.exports,S=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-info"}),o("span",{attrs:{slot:"title"},slot:"title"},[e._v("算法题管理")])])],1),o("router-link",{attrs:{to:"/home/aphorismPoetry"}},[o("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/aphorismPoetry"}},[o("i",{staticClass:"el-icon-document"}),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)],1)},O=[],R={name:"MyAside"},V=R,L=(o("e647"),Object(s["a"])(V,S,O,!1,null,"412d2482",null)),N=L.exports,$={name:"MyHome",components:{MyHeader:P,MyAside:N}},M=$,D=(o("c3dd"),Object(s["a"])(M,y,w,!1,null,null,null)),F=D.exports,A=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("操作")])])])}],E={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)}}},Q=E,z=Object(s["a"])(Q,A,j,!1,null,"02f3073a",null),W=z.exports,U=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)},H=[],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(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["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,r=o.data,200===r.code&&(e.picList=r.result.records,e.total=r.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,U,H,!1,null,"15b8f4b2",null)),J=G.exports,K=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)},X=[],Z=(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(x["a"])(regeneratorRuntime.mark((function o(){var r;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return t.loading=!0,o.next=3,q["a"].get("http://120.79.36.53:8888/chatbot/delete",{params:{id:e}});case 3:r=o.sent,r.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(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["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,r=o.data,console.log(r),200===r.code&&(e.userlist=r.result.content,e.total=r.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()}}}),ee=Z,te=(o("68db"),Object(s["a"])(ee,K,X,!1,null,"6e64ea6a",null)),oe=te.exports,re=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",{style:{color:e.getColorForValue(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)},ie=[],ne=(o("d3b7"),o("25f0"),o("159b"),o("b0c0"),{name:"MyInterview",data:function(){return{userlist:[],loading:!1,elementui_page_component_key:0,currentPage:Number(localStorage.getItem("interviewLastPage"))||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,colorMap:{}}},watch:{"formInline.question":function(e){""===e&&(this.currentPage=1,localStorage.setItem("interviewLastPage",this.currentPage),this.getQuestionType())},currentPage:function(e){localStorage.setItem("interviewLastPage",e.toString())}},created:function(){this.getQuestionType()},mounted:function(){var e=localStorage.getItem("interviewLastPage");e&&(this.currentPage=parseInt(e))},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 r={};this.options.forEach((function(e){r[e.name]=e.questionType})),this.form.questionType=r[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(x["a"])(regeneratorRuntime.mark((function o(){var r,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,q["a"].post("http://120.79.36.53:8888/interviewQuestion/add",{addType:e,question:t.form.question,questionType:t.form.questionType});case 4:r=o.sent,i=r.data,200===i.code?(t.form.question="",t.form.questionType=0,t.getQuestionType()):(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(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,t.next=4,q["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,r=o.data,200===r.code?(e.form.question="",e.form.questionType=0,e.editVisible=!1,e.getQuestionType()):console.error("Received non-200 status code",r),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(x["a"])(regeneratorRuntime.mark((function o(){var r;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return t.dialogVisible=!1,t.loading=!0,o.next=4,q["a"].get("http://120.79.36.53:8888/interviewQuestion/delete",{params:{id:e}});case 4:r=o.sent,r.data,t.getQuestionType(),t.loading=!1;case 8:case"end":return o.stop()}}),o)})))()},refreshPage:function(){this.getQuestionType(),location.reload()},getQuestionType:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,q["a"].get("http://120.79.36.53:8888/interviewQuestion/questionType",{params:{}});case 2:o=t.sent,r=o.data,200===r.code&&(e.options=r.result,e.interviewPage());case 5:case"end":return t.stop()}}),t)})))()},interviewPage:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["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,r=o.data,200===r.code&&(e.total=r.result.totalElements,i={},e.options.forEach((function(e){i[e.questionType]=e.name})),r.result.content.forEach((function(e){e.questionTypeName=i[e.questionType]||"Unknown"})),e.userlist=r.result.content),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.currentPage=e,this.getQuestionType()},getColorForValue:function(e){return this.colorMap[e]||(this.colorMap[e]=this.getRandomColor()),this.colorMap[e]},getRandomColor:function(){var e=["red","blue","green","yellow","purple","orange","pink","brown","cyan","magenta","maroon","navy","olive","teal","lime","aqua","silver","gray","white","indigo","violet","lavender","coral","gold","salmon","turquoise","orchid","khaki","slategray","thistle","burlywood","cadetblue","chartreuse","chocolate","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dodgerblue","firebrick","forestgreen","fuchsia","gold","greenyellow","hotpink","indianred","lawngreen","lightcoral","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","orangered","palegoldenrod","palegreen","paleturquoise","palevioletred","peru","powderblue","rosybrown","saddlebrown","seagreen","sienna","skyblue","slateblue","springgreen","tan","thistle","tomato","turquoise","violet"],t=Math.floor(Math.random()*e.length);return e[t]}}}),ae=ne,le=(o("5427"),Object(s["a"])(ae,re,ie,!1,null,"68d544b4",null)),se=le.exports,ce=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:"重要程度","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:"80",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",{style:{color:e.getColorForValue(t.row.questionTypeName)},domProps:{innerHTML:e._s(t.row.questionTypeName)}})]}}])}),o("el-table-column",{attrs:{prop:"degreeOfImportance",label:"重要程度","show-overflow-tooltip":"",width:50}}),o("el-table-column",{attrs:{prop:"degreeOfDifficulty",label:"难易程度","show-overflow-tooltip":"",width:50}}),o("el-table-column",{attrs:{prop:"difficultyOfScore",label:"难易分数","show-overflow-tooltip":"",width:80}}),o("el-table-column",{attrs:{prop:"leetcodeNumber",label:"力扣题号","show-overflow-tooltip":"",width:50}}),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:"重要程度","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)},ue=[],me={name:"MyInterview",data:function(){return{algorithmicList:[],randomAlgorithmic:{questionName:"",leetcodeNumber:"",leetcodeLink:""},loading:!1,elementui_page_component_key:0,currentPage:Number(localStorage.getItem("algorithmLastPage"))||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,colorMap:{}}},watch:{"formInline.questionName":function(e){""===e&&(this.currentPage=1,localStorage.setItem("algorithmLastPage",this.currentPage),this.getQuestionType())},currentPage:function(e){localStorage.setItem("algorithmLastPage",e.toString())}},created:function(){this.getQuestionType(),this.getAllQuestionType()},mounted:function(){var e=localStorage.getItem("algorithmLastPage");e&&(this.currentPage=parseInt(e))},methods:{prepareAdd:function(){this.form.questionName="",this.form.questionType=0,this.dialogFormVisible=!0,this.getAllQuestionType()},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,r,i,n,a,l){this.form.questionName=t,this.form.degreeOfImportance=r,this.form.degreeOfDifficulty=i,this.form.difficultyOfScore=n,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(x["a"])(regeneratorRuntime.mark((function o(){var r,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,q["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:r=o.sent,i=r.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.getQuestionType()):(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(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,t.next=4,q["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,r=o.data,200===r.code?(e.form.questionName="",e.form.questionType=0,e.editVisible=!1,e.getQuestionType()):console.error("Received non-200 status code",r),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(x["a"])(regeneratorRuntime.mark((function o(){var r;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return t.dialogVisible=!1,t.loading=!0,o.next=4,q["a"].get("http://120.79.36.53:8888/algorithmicProblem/delete",{params:{id:e}});case 4:r=o.sent,r.data,t.getQuestionType(),t.loading=!1;case 8:case"end":return o.stop()}}),o)})))()},refreshPage:function(){this.getQuestionType(),location.reload()},getQuestionType:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,q["a"].get("http://120.79.36.53:8888/algorithmicProblem/questionType",{params:{}});case 2:o=t.sent,r=o.data,200===r.code&&(e.options=r.result,console.log(e.options),e.interviewPage());case 5:case"end":return t.stop()}}),t)})))()},getAllQuestionType:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,q["a"].get("http://120.79.36.53:8888/algorithmicProblem/allQuestionType",{params:{}});case 2:o=t.sent,r=o.data,200===r.code&&(e.allOptions=r.result);case 5:case"end":return t.stop()}}),t)})))()},interviewPage:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["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,r=o.data,200===r.code&&(e.total=r.result.totalElements,i={},e.options.forEach((function(e){i[e.questionType]=e.name})),r.result.content.forEach((function(e){e.questionTypeName=i[e.questionType]})),e.algorithmicList=r.result.content),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},interviewRandom:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["a"].get("http://120.79.36.53:8888/algorithmicProblem/random",{params:{}});case 3:o=t.sent,r=o.data,200===r.code&&(e.randomAlgorithmic.questionName=r.result.questionName,e.randomAlgorithmic.leetcodeNumber=r.result.leetcodeNumber,e.randomAlgorithmic.leetcodeLink=r.result.leetcodeLink),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.currentPage=e,this.getQuestionType()},getColorForValue:function(e){return this.colorMap[e]||(this.colorMap[e]=this.getRandomColor()),this.colorMap[e]},getRandomColor:function(){var e=["red","blue","green","yellow","purple","orange","pink","brown","cyan","magenta","maroon","navy","olive","teal","lime","aqua","silver","gray","white","indigo","violet","lavender","coral","gold","salmon","turquoise","orchid","khaki","slategray","thistle","burlywood","cadetblue","chartreuse","chocolate","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dodgerblue","firebrick","forestgreen","fuchsia","gold","greenyellow","hotpink","indianred","lawngreen","lightcoral","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","orangered","palegoldenrod","palegreen","paleturquoise","palevioletred","peru","powderblue","rosybrown","saddlebrown","seagreen","sienna","skyblue","slateblue","springgreen","tan","thistle","tomato","turquoise","violet"],t=Math.floor(Math.random()*e.length);return e[t]}}},de=me,fe=(o("8983"),Object(s["a"])(de,ce,ue,!1,null,"ba5f8f70",null)),pe=fe.exports,ge=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.poetryText,callback:function(t){e.$set(e.form,"poetryText",t)},expression:"form.poetryText"}})],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.poetryText,callback:function(t){e.$set(e.form,"poetryText",t)},expression:"form.poetryText"}})],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.poetryText,callback:function(t){e.$set(e.randomAlgorithmic,"poetryText",t)},expression:"randomAlgorithmic.poetryText"}},[o("template",{slot:"label"},[e._v("诗词内容")]),e._v(" "+e._s(e.randomAlgorithmic.poetryText)+" ")],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.poetryText,callback:function(t){e.$set(e.formInline,"poetryText",t)},expression:"formInline.poetryText"}})],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:"80",sortable:""}}),o("el-table-column",{attrs:{prop:"poetryText",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",width:"200"},on:{click:function(o){return o.preventDefault(),e.preEdit(t.row.id,t.row.poetryText)}}},[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.poetryText,callback:function(t){e.$set(e.form,"poetryText",t)},expression:"form.poetryText"}})],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)},he=[],be={name:"MyInterview",data:function(){return{algorithmicList:[],randomAlgorithmic:{poetryText:""},loading:!1,elementui_page_component_key:0,currentPage:Number(localStorage.getItem("poetryLastPage"))||1,pageSize:9,total:0,formInline:{poetryText:""},dialogFormVisible:!1,randomFormVisible:!1,dialogMutiFormVisible:!1,form:{poetryText:""},formLabelWidth:"120px",dialogVisible:!1,editVisible:!1,currentRowId:null}},watch:{"formInline.poetryText":function(e){""===e&&(this.currentPage=1,localStorage.setItem("poetryLastPage",this.currentPage),this.interviewPage())},currentPage:function(e){localStorage.setItem("poetryLastPage",e.toString())}},created:function(){this.interviewPage()},mounted:function(){var e=localStorage.getItem("poetryLastPage");e&&(this.currentPage=parseInt(e))},methods:{prepareAdd:function(){this.form.poetryText="",this.dialogFormVisible=!0},prepareRandom:function(){this.randomAlgorithmic=[],this.randomFormVisible=!0,this.interviewRandom()},prepareMutiAdd:function(){this.form.poetryText="",this.dialogMutiFormVisible=!0},prepareDelete:function(e){this.currentRowId=e,this.dialogVisible=!0},preEdit:function(e,t){this.form.poetryText=t,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(x["a"])(regeneratorRuntime.mark((function o(){var r,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,q["a"].post("http://120.79.36.53:8888/aphorismPoetry/add",{addType:e,poetryText:t.form.poetryText,degreeOfImportance:t.form.degreeOfImportance,degreeOfDifficulty:t.form.degreeOfDifficulty,difficultyOfScore:t.form.difficultyOfScore,leetcodeNumber:t.form.leetcodeNumber,leetcodeLink:t.form.leetcodeLink});case 4:r=o.sent,i=r.data,200===i.code?t.form.poetryText="":(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 poetryText:",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(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,t.next=4,q["a"].post("http://120.79.36.53:8888/aphorismPoetry/update",{id:e.currentRowId,poetryText:e.form.poetryText});case 4:o=t.sent,r=o.data,200===r.code?(e.form.poetryText="",e.editVisible=!1,e.interviewPage()):console.error("Received non-200 status code",r),t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),console.error("An error occurred while adding the poetryText:",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(x["a"])(regeneratorRuntime.mark((function o(){var r;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return t.dialogVisible=!1,t.loading=!0,o.next=4,q["a"].get("http://120.79.36.53:8888/aphorismPoetry/delete",{params:{id:e}});case 4:r=o.sent,r.data,t.interviewPage(),t.loading=!1;case 8:case"end":return o.stop()}}),o)})))()},refreshPage:function(){this.interviewPage(),location.reload()},interviewPage:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["a"].get("http://120.79.36.53:8888/aphorismPoetry/page",{params:{page:e.currentPage,pageSize:e.pageSize,poetryText:e.formInline.poetryText}});case 3:o=t.sent,r=o.data,200===r.code&&(e.total=r.result.totalElements,e.algorithmicList=r.result.content),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},interviewRandom:function(){var e=this;return Object(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,q["a"].get("http://120.79.36.53:8888/aphorismPoetry/random",{params:{}});case 3:o=t.sent,r=o.data,200===r.code&&(e.randomAlgorithmic.poetryText=r.result.poetryText),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.currentPage=e,this.interviewPage()}}},ve=be,ye=(o("4fb7"),Object(s["a"])(ve,ge,he,!1,null,"74747e23",null)),we=ye.exports,ke=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))])])},_e=[],xe={name:"MyUserDetail",props:["id"]},qe=xe,Ce=Object(s["a"])(qe,ke,_e,!1,null,"bea9073a",null),Te=Ce.exports,Ie=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)},Pe=[],Se={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(x["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,q["a"].get("http://120.79.36.53:8888/chatbot/"+e.id);case 2:o=t.sent,r=o.data,200===r.code&&(e.list=[{id:r.result.id,question:r.result.question,response:r.result.response,createTime:r.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("代码已复制到剪贴板")}}},Oe=Se,Re=(o("022e"),Object(s["a"])(Oe,Ie,Pe,!1,null,"9d5d30a4",null)),Ve=Re.exports,Le=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)},Ne=[],$e={name:"AddChatDetail",data:function(){return{form:{question:"",response:""}}},methods:{clearContent:function(){this.form.question="",this.form.response=""},onSubmit:function(){var e=this;return Object(x["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},q["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})}}},Me=$e,De=(o("66f9"),Object(s["a"])(Me,Le,Ne,!1,null,"ddc6c3e0",null)),Fe=De.exports;r["default"].use(m["a"]);var Ae=new m["a"]({routes:[{path:"/",redirect:"/login"},{path:"/login",component:v,meta:{title:"登录"}},{path:"/home",component:F,redirect:"/home/interview",children:[{path:"interview",component:se,meta:{title:"面试题"}},{path:"algorithmic",component:pe,meta:{title:"算法题"}},{path:"aphorismpoetry",component:we,meta:{title:"名言警句"}},{path:"chat",component:oe,meta:{title:"chatgpt记录"}},{path:"pic",component:J,meta:{title:"图片"}},{path:"users",component:W,meta:{title:"用户管理"}},{path:"userinfo/:id",component:Te,props:!0,meta:{title:"用户信息"}},{path:"chatinfo/:id",component:Ve,props:!0,meta:{title:"chat信息"}},{path:"addChat",component:Fe,meta:{title:"添加chat信息"}}]}]});Ae.beforeEach((function(e,t,o){if(-1!==d.indexOf(e.path)){var r=localStorage.getItem("token");r?o():o("/login")}else o()}));var je=Ae,Ee=o("5c96"),Qe=o.n(Ee),ze=(o("0fae"),o("16b4"),o("a766"),o("5a0c")),We=o.n(ze);r["default"].prototype.$dayjs=We.a,r["default"].filter("dateFormat",(function(e){var t=We()(e).format("YYYY-MM-DD HH:mm:ss");return t})),r["default"].use(Qe.a),r["default"].config.productionTip=!1,je.beforeEach((function(e,t,o){e.meta.title&&(document.title=e.meta.title),o()})),new r["default"]({render:function(e){return e(u)},router:je}).$mount("#app")},"66f9":function(e,t,o){"use strict";o("155e")},"68db":function(e,t,o){"use strict";o("e918")},"6eba":function(e,t,o){},7678:function(e,t,o){e.exports=o.p+"img/kwan.80e90605.png"},"808c":function(e,t,o){},8983:function(e,t,o){"use strict";o("6eba")},9290:function(e,t,o){"use strict";o("b8d3")},a766:function(e,t,o){},b8d3:function(e,t,o){},c3dd:function(e,t,o){"use strict";o("38b7")},e647:function(e,t,o){"use strict";o("3734")},e918:function(e,t,o){}});
//# sourceMappingURL=app.df0c3d28.js.map
\ No newline at end of file
因为 它太大了无法显示 source diff 。你可以改为 查看blob
<template> <template>
<div class="home-container"> <el-container>
<el-row> <el-header>
<el-col :span="24"> <!-- 头部区域 -->
<!-- 头部区域 --> <MyHeader></MyHeader>
<MyHeader></MyHeader> </el-header>
</el-col> <el-container>
</el-row> <el-aside width="160px" style="overflow: hidden;padding-top: 24px">
<el-row>
<el-col :span="3">
<!-- 左侧边栏 -->
<MyAside></MyAside> <MyAside></MyAside>
</el-col> </el-aside>
<el-col :span="21"> <el-main style="padding: 0;">
<!-- 主体区域 -->
<router-view></router-view> <router-view></router-view>
</el-col> </el-main>
</el-row> </el-container>
</div> </el-container>
</template> </template>
<script> <script>
...@@ -25,28 +21,17 @@ import MyHeader from './subcomponents/MyHeader.vue' ...@@ -25,28 +21,17 @@ import MyHeader from './subcomponents/MyHeader.vue'
// 左侧边栏组件 // 左侧边栏组件
import MyAside from './subcomponents/MyAside.vue' import MyAside from './subcomponents/MyAside.vue'
export default { export default {
name: 'MyHome', name: 'MyHome',
// 注册组件 // 注册组件
components: { components: {
MyHeader, MyHeader,
MyAside, MyAside,
}, },
} }
</script> </script>
<style lang="less" scoped> <style>
.home-container { .el-main {
height: 100%; padding: 20px 3px !important;
display: flex;
flex-direction: column;
.home-main-box {
height: 100%;
display: flex;
.home-main-body {
padding: 15px;
flex: 1;
}
}
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册