diff --git a/dist/css/app.62bf7500.css b/dist/css/app.83c37b1e.css similarity index 99% rename from dist/css/app.62bf7500.css rename to dist/css/app.83c37b1e.css index f5567b5102bd6df567d23a1d9c042bd8349532d7..1796107256ad5d498db4b9969fcd47543d7c698c 100644 --- a/dist/css/app.62bf7500.css +++ b/dist/css/app.83c37b1e.css @@ -1,4 +1,4 @@ -.login-container[data-v-2d08abd9]{background-color:#35495e;height:100%}.login-container .login-box[data-v-2d08abd9]{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-2d08abd9]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box}.form-control[data-v-2d08abd9]{flex:1}.avatar-box[data-v-2d08abd9]{position:absolute;width:100%;top:-65px;left:0}.avatar-box .avatar[data-v-2d08abd9]{width:120px;height:120px;border-radius:50%!important;box-shadow:0 0 6px #efefef}.layout-header-container[data-v-36ae6cf9]{height:60px;border-bottom:1px solid #eaeaea}.layout-header-left-img[data-v-36ae6cf9]{height:50px}.layout-aside-container[data-v-4c695124]{width:250px;height:100%;border-right:1px solid #eaeaea}.left-aside-item[data-v-4c695124]{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-4ac73c72]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-4ac73c72]{color:#333}.pagination[data-v-4ac73c72]{margin-top:16px;text-align:right}.header-button-item[data-v-4ac73c72]{margin-right:15px;font-size:20px}.backtop[data-v-4ac73c72]{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-4ac73c72]:hover{background-color:#0050a0}.el-header[data-v-2f22499b]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-2f22499b]{color:#333}.pagination[data-v-2f22499b]{margin-top:16px;text-align:right}.header-button-item[data-v-2f22499b]{margin-right:15px;font-size:20px}.backtop[data-v-2f22499b]{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-2f22499b]:hover{background-color:#0050a0}.button-container[data-v-2e8dcb2e]{position:fixed;bottom:0;right:0;margin:16px}.container[data-v-869fde4a]{display:flex;justify-content:center;align-items:center;height:30vh} +.login-container[data-v-2d08abd9]{background-color:#35495e;height:100%}.login-container .login-box[data-v-2d08abd9]{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-2d08abd9]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box}.form-control[data-v-2d08abd9]{flex:1}.avatar-box[data-v-2d08abd9]{position:absolute;width:100%;top:-65px;left:0}.avatar-box .avatar[data-v-2d08abd9]{width:120px;height:120px;border-radius:50%!important;box-shadow:0 0 6px #efefef}.layout-header-container[data-v-36ae6cf9]{height:60px;border-bottom:1px solid #eaeaea}.layout-header-left-img[data-v-36ae6cf9]{height:50px}.layout-aside-container[data-v-3235a6cc]{width:250px;height:100%;border-right:1px solid #eaeaea}.left-aside-item[data-v-3235a6cc]{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-2a73445c]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-2a73445c]{color:#333}.pagination[data-v-2a73445c]{margin-top:16px;text-align:right}.el-header[data-v-c92e998c]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-c92e998c]{color:#333}.pagination[data-v-c92e998c]{margin-top:16px;text-align:right}.header-button-item[data-v-c92e998c]{margin-right:15px;font-size:20px}.backtop[data-v-c92e998c]{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-c92e998c]: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/) diff --git a/dist/index.html b/dist/index.html index 986a86e1cde93aa468db5ff64e5674f1d58e12c2..0e3259ef603f214489aca5d418f504f1f6b125b7 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -kwan66
\ No newline at end of file +kwan66
\ No newline at end of file diff --git a/dist/js/app.00aa2a55.js b/dist/js/app.00aa2a55.js deleted file mode 100644 index 11e242a813432b074e4f065a033bdbe0d9da4017..0000000000000000000000000000000000000000 --- a/dist/js/app.00aa2a55.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(t){function e(e){for(var a,s,i=e[0],l=e[1],c=e[2],d=0,m=[];d\n\t\n\t\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=633dd7d9&scoped=true&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"633dd7d9\",\n null\n \n)\n\nexport default component.exports","export default['/home', '/home/users', '/home/pic']\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"login-container\"},[_c('div',{staticClass:\"login-box\"},[_vm._m(0),_c('div',{staticClass:\"form-login p-4\"},[_c('div',{staticClass:\"form-group form-inline\"},[_c('label',{attrs:{\"for\":\"username\"}},[_vm._v(\"登录名称\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.username),expression:\"username\",modifiers:{\"trim\":true}}],staticClass:\"form-control ml-2\",attrs:{\"type\":\"text\",\"id\":\"username\",\"placeholder\":\"请输入登录名称\",\"autocomplete\":\"off\"},domProps:{\"value\":(_vm.username)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.username=$event.target.value.trim()},\"blur\":function($event){return _vm.$forceUpdate()}}})]),_c('div',{staticClass:\"form-group form-inline\"},[_c('label',{attrs:{\"for\":\"password\"}},[_vm._v(\"登录密码\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.password),expression:\"password\",modifiers:{\"trim\":true}}],staticClass:\"form-control ml-2\",attrs:{\"type\":\"password\",\"id\":\"password\",\"placeholder\":\"请输入登录密码\"},domProps:{\"value\":(_vm.password)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.password=$event.target.value.trim()},\"blur\":function($event){return _vm.$forceUpdate()}}})]),_c('div',{staticClass:\"form-group form-inline d-flex justify-content-end\"},[_c('button',{staticClass:\"btn btn-secondary mr-2\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.reset}},[_vm._v(\"重置\")]),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.login}},[_vm._v(\"登录\")])])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center avatar-box\"},[_c('img',{staticClass:\"img-thumbnail avatar\",attrs:{\"src\":require(\"../assets/kwan.png\"),\"alt\":\"kwan的解忧杂货铺\"}})])}]\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyLogin.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyLogin.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyLogin.vue?vue&type=template&id=2d08abd9&scoped=true&\"\nimport script from \"./MyLogin.vue?vue&type=script&lang=js&\"\nexport * from \"./MyLogin.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyLogin.vue?vue&type=style&index=0&id=2d08abd9&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2d08abd9\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"home-container\"},[_c('el-row',[_c('el-col',{attrs:{\"span\":24}},[_c('MyHeader')],1)],1),_c('el-row',[_c('el-col',{attrs:{\"span\":3}},[_c('MyAside')],1),_c('el-col',{attrs:{\"span\":21}},[_c('router-view')],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"layout-header-container d-flex justify-content-between align-items-center p-3\"},[_vm._m(0),_c('el-row',[_c('el-col',{attrs:{\"inline\":true,\"span\":24}},[_c('el-button',{staticClass:\"el-button-header\",attrs:{\"type\":\"success\",\"round\":\"\"},on:{\"click\":_vm.myHome}},[_vm._v(\"我的主页\")]),_c('el-button',{staticClass:\"el-button-header\",attrs:{\"type\":\"primary\",\"round\":\"\"},on:{\"click\":_vm.logout}},[_vm._v(\"退出登录\")])],1)],1)],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"layout-header-left d-flex align-items-center user-select-none\"},[_c('img',{staticClass:\"layout-header-left-img\",attrs:{\"src\":require(\"../../assets/kwan.png\"),\"alt\":\"\"}}),_c('h4',{staticClass:\"layout-header-left-title ml-3\"},[_vm._v(\"kwan的解忧杂货铺\")])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyHeader.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyHeader.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyHeader.vue?vue&type=template&id=36ae6cf9&scoped=true&\"\nimport script from \"./MyHeader.vue?vue&type=script&lang=js&\"\nexport * from \"./MyHeader.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyHeader.vue?vue&type=style&index=0&id=36ae6cf9&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"36ae6cf9\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-menu',{staticClass:\"layout-aside-container\",attrs:{\"default-active\":\"$route.path\",\"background-color\":\"#fff\",\"text-color\":\"#000\",\"active-text-color\":\"#42b983\"}},[_c('router-link',{attrs:{\"to\":\"/home/chat\"}},[_c('el-menu-item',{staticClass:\"left-aside-item\",attrs:{\"index\":\"/chat\"}},[_c('i',{staticClass:\"el-icon-chat-line-square\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"对话管理\")])])],1),_c('router-link',{attrs:{\"to\":\"/home/users\"}},[_c('el-menu-item',{staticClass:\"left-aside-item\",attrs:{\"index\":\"/users\"}},[_c('i',{staticClass:\"el-icon-user\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"用户管理\")])])],1),_c('router-link',{attrs:{\"to\":\"/home/pic\"}},[_c('el-menu-item',{staticClass:\"left-aside-item\",attrs:{\"index\":\"/pic\"}},[_c('i',{staticClass:\"el-icon-setting\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"图片管理\")])])],1),_c('router-link',{attrs:{\"to\":\"/home/goods\"}},[_c('el-menu-item',{staticClass:\"left-aside-item\",attrs:{\"index\":\"/goods\"}},[_c('i',{staticClass:\"el-icon-goods\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"商品管理\")])])],1),_c('router-link',{attrs:{\"to\":\"/home/orders\"}},[_c('el-menu-item',{staticClass:\"left-aside-item\",attrs:{\"index\":\"/orders\"}},[_c('i',{staticClass:\"el-icon-s-order\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"订单管理\")])])],1),_c('router-link',{attrs:{\"to\":\"/home/settings\"}},[_c('el-menu-item',{staticClass:\"left-aside-item\",attrs:{\"index\":\"/settings\"}},[_c('i',{staticClass:\"el-icon-setting\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"系统设置\")])])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyAside.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyAside.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyAside.vue?vue&type=template&id=4c695124&scoped=true&\"\nimport script from \"./MyAside.vue?vue&type=script&lang=js&\"\nexport * from \"./MyAside.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyAside.vue?vue&type=style&index=0&id=4c695124&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4c695124\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyHome.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyHome.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyHome.vue?vue&type=template&id=e41dbfec&scoped=true&\"\nimport script from \"./MyHome.vue?vue&type=script&lang=js&\"\nexport * from \"./MyHome.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyHome.vue?vue&type=style&index=0&id=e41dbfec&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e41dbfec\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h4',{staticClass:\"text-center\"},[_vm._v(\"用户管理\")]),_c('table',{staticClass:\"table table-bordered table-striped table-hover\"},[_vm._m(0),_c('tbody',_vm._l((_vm.userlist),function(item){return _c('tr',{key:item.id},[_c('td',[_vm._v(_vm._s(item.id))]),_c('td',[_vm._v(_vm._s(item.name))]),_c('td',[_vm._v(_vm._s(item.age))]),_c('td',[_vm._v(_vm._s(item.position))]),_c('td',[_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.gotoDetail(item.id)}}},[_vm._v(\"详情\")])])])}),0)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',[_c('tr',[_c('th',[_vm._v(\"序号\")]),_c('th',[_vm._v(\"姓名\")]),_c('th',[_vm._v(\"年龄\")]),_c('th',[_vm._v(\"头衔\")]),_c('th',[_vm._v(\"操作\")])])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyUsers.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyUsers.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyUsers.vue?vue&type=template&id=02f3073a&scoped=true&\"\nimport script from \"./MyUsers.vue?vue&type=script&lang=js&\"\nexport * from \"./MyUsers.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"02f3073a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-container',[_c('el-main',[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"border\":\"\",\"data\":_vm.picList}},[_c('el-table-column',{attrs:{\"prop\":\"id\",\"label\":\"序号\",\"width\":\"100\",\"sortable\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"picName\",\"label\":\"图片名字\",\"width\":\"240\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('img',{attrs:{\"src\":props.row.picUrl,\"alt\":\"图片\",\"height\":\"100px\"}})]}}])}),_c('el-table-column',{attrs:{\"label\":\"创建时间\",\"width\":\"170\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_vm._v(\" \"+_vm._s(_vm._f(\"dateFormat\")(props.row.createTime))+\" \")]}}])})],1),_c('el-pagination',{key:_vm.elementui_page_component_key,staticClass:\"pagination\",attrs:{\"background\":\"\",\"current-page\":_vm.currentPage,\"page-size\":_vm.pageSize,\"total\":_vm.total},on:{\"update:currentPage\":function($event){_vm.currentPage=$event},\"update:current-page\":function($event){_vm.currentPage=$event},\"current-change\":_vm.handleCurrentChange}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyPic.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyPic.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyPic.vue?vue&type=template&id=4ac73c72&scoped=true&\"\nimport script from \"./MyPic.vue?vue&type=script&lang=js&\"\nexport * from \"./MyPic.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyPic.vue?vue&type=style&index=0&id=4ac73c72&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4ac73c72\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h4',{staticClass:\"text-center\"},[_vm._v(\"商品管理\")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyGoods.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyGoods.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyGoods.vue?vue&type=template&id=716085f0&scoped=true&\"\nimport script from \"./MyGoods.vue?vue&type=script&lang=js&\"\nexport * from \"./MyGoods.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"716085f0\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h4',{staticClass:\"text-center\"},[_vm._v(\"订单管理\")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyOrders.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyOrders.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyOrders.vue?vue&type=template&id=3275af60&scoped=true&\"\nimport script from \"./MyOrders.vue?vue&type=script&lang=js&\"\nexport * from \"./MyOrders.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3275af60\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-container',[_c('el-main',[_c('el-form',{staticClass:\"demo-form-inline\",attrs:{\"inline\":true,\"model\":_vm.formInline}},[_c('el-form-item',[_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"请输入问题\"},nativeOn:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.initCartList.apply(null, arguments)}},model:{value:(_vm.formInline.question),callback:function ($$v) {_vm.$set(_vm.formInline, \"question\", $$v)},expression:\"formInline.question\"}})],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.initCartList}},[_vm._v(\"查询\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.addChat.apply(null, arguments)}}},[_vm._v(\"新增\")])],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"border\":\"\",\"data\":_vm.userlist}},[_c('el-table-column',{attrs:{\"prop\":\"id\",\"label\":\"序号\",\"width\":\"100\",\"sortable\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"question\",\"label\":\"问题\",\"width\":\"240\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"response\",\"label\":\"答案\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"label\":\"创建时间\",\"width\":\"170\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_vm._v(\" \"+_vm._s(_vm._f(\"dateFormat\")(props.row.createTime))+\" \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"详情\",\"label\":\"详情\",\"width\":\"180\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('el-button',{attrs:{\"type\":\"success\"},on:{\"click\":function($event){$event.preventDefault();return _vm.gotoDetail(props.row.id)}}},[_vm._v(\"详情\")]),_c('el-button',{attrs:{\"type\":\"danger\"},on:{\"click\":function($event){return _vm.onDelete(props.row.id)}}},[_vm._v(\"删除\")])]}}])})],1),_c('el-pagination',{key:_vm.elementui_page_component_key,staticClass:\"pagination\",attrs:{\"background\":\"\",\"current-page\":_vm.currentPage,\"page-size\":_vm.pageSize,\"total\":_vm.total},on:{\"update:currentPage\":function($event){_vm.currentPage=$event},\"update:current-page\":function($event){_vm.currentPage=$event},\"current-change\":_vm.handleCurrentChange}})],1),_c('el-backtop',{staticClass:\"backtop\"})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyChat.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyChat.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyChat.vue?vue&type=template&id=2f22499b&scoped=true&\"\nimport script from \"./MyChat.vue?vue&type=script&lang=js&\"\nexport * from \"./MyChat.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyChat.vue?vue&type=style&index=0&id=2f22499b&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2f22499b\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h4',{staticClass:\"text-center\"},[_vm._v(\"系统设置\")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MySettings.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MySettings.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MySettings.vue?vue&type=template&id=accd7558&scoped=true&\"\nimport script from \"./MySettings.vue?vue&type=script&lang=js&\"\nexport * from \"./MySettings.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"accd7558\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('button',{staticClass:\"btn btn-light btn-sm\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.$router.back()}}},[_vm._v(\"后退\")]),_c('h4',{staticClass:\"text-center\"},[_vm._v(\"用户详情 --- \"+_vm._s(_vm.id))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyUserDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyUserDetail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyUserDetail.vue?vue&type=template&id=bea9073a&scoped=true&\"\nimport script from \"./MyUserDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./MyUserDetail.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"bea9073a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\",\"size\":\"medium\"},on:{\"click\":_vm.goBack}},[_vm._v(\"后退\")]),_c('h4',{staticClass:\"text-center\"},[_vm._v(\"ChatGpt问答详情 --- \"+_vm._s(_vm.id))]),_c('el-container',[_c('el-main',[_c('el-table',{attrs:{\"border\":\"\",\"data\":_vm.list}},[_c('el-table-column',{attrs:{\"label\":\"序号\",\"width\":\"50\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.id))])]}}])}),_c('el-table-column',{attrs:{\"label\":\"问题\",\"width\":\"240\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.question))])]}}])}),_c('el-table-column',{attrs:{\"label\":\"回答\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{attrs:{\"id\":\"td-response\"}},[_vm._v(_vm._s(scope.row.response))])]}}])}),_c('el-table-column',{attrs:{\"label\":\"创建时间\",\"width\":\"170\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm._f(\"dateFormat\")(scope.row.createTime)))])]}}])})],1)],1)],1),_c('div',{staticClass:\"button-container\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"round\":\"\"},on:{\"click\":_vm.copyCode}},[_vm._v(\"复制回答\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyChatDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyChatDetail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyChatDetail.vue?vue&type=template&id=2e8dcb2e&scoped=true&\"\nimport script from \"./MyChatDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./MyChatDetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyChatDetail.vue?vue&type=style&index=0&id=2e8dcb2e&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2e8dcb2e\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\",\"size\":\"medium\"},on:{\"click\":_vm.goBack}},[_vm._v(\"后退\")]),_c('h4',{staticClass:\"text-center\"},[_vm._v(\"新增ChatGpt问答\")]),_c('el-container',{staticClass:\"container\"},[_c('el-form',{ref:\"form\",attrs:{\"model\":_vm.form,\"label-width\":\"80px\"}},[_c('el-form-item',{attrs:{\"label\":\"问题\"}},[_c('el-input',{model:{value:(_vm.form.question),callback:function ($$v) {_vm.$set(_vm.form, \"question\", $$v)},expression:\"form.question\"}})],1),_c('el-form-item',{attrs:{\"label\":\"答案\"}},[_c('el-input',{attrs:{\"type\":\"textarea\"},model:{value:(_vm.form.response),callback:function ($$v) {_vm.$set(_vm.form, \"response\", $$v)},expression:\"form.response\"}})],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.onSubmit}},[_vm._v(\"立即创建\")]),_c('el-button',{on:{\"click\":_vm.clearContent}},[_vm._v(\"取消\")])],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddChatDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddChatDetail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AddChatDetail.vue?vue&type=template&id=869fde4a&scoped=true&\"\nimport script from \"./AddChatDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./AddChatDetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AddChatDetail.vue?vue&type=style&index=0&id=869fde4a&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"869fde4a\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\nimport VueRouter from 'vue-router'\nimport pathArr from '@/router/pathArr.js'\n\n// 导入需要的组件\nimport Login from '@/components/MyLogin.vue'\nimport Home from '@/components/MyHome.vue'\n\nimport Users from '@/components/menus/MyUsers.vue'\nimport Pic from '@/components/menus/MyPic.vue'\nimport Goods from '@/components/menus/MyGoods.vue'\nimport Orders from '@/components/menus/MyOrders.vue'\nimport Chat from '@/components/menus/MyChat.vue'\nimport Settings from '@/components/menus/MySettings.vue'\nimport UserDetail from '@/components/user/MyUserDetail.vue'\nimport MyChatDetail from '@/components/user/MyChatDetail.vue'\nimport AddChatDetail from '@/components/user/AddChatDetail.vue'\n\n\nVue.use(VueRouter)\n\nconst router = new VueRouter({\n routes: [\n {\n path: '/',\n redirect: '/login'\n },\n // 登录的路由规则\n {\n path: '/login',\n component: Login\n },\n // 后台主页的路由规则\n {\n path: '/home',\n component: Home,\n redirect: '/home/chat',\n children: [\n {\n path: 'users',\n component: Users\n },\n {\n path: 'pic',\n component: Pic\n },\n {\n path: 'goods',\n component: Goods\n },\n {\n path: 'orders',\n component: Orders\n }, {\n path: 'chat',\n component: Chat\n }, {\n path: 'settings',\n component: Settings\n },\n // 用户详情页的路由规则\n {\n path: 'userinfo/:id',\n component: UserDetail,\n props: true\n }, {\n path: 'chatinfo/:id',\n component: MyChatDetail,\n props: true\n }, {\n path: 'addChat',\n component: AddChatDetail\n },\n ]\n }\n ]\n})\n\n// 全局前置守卫\nrouter.beforeEach(function (to, from, next) {\n if (pathArr.indexOf(to.path) !== -1) {\n const token = localStorage.getItem('token')\n if (token) {\n next()\n } else {\n next('/login')\n }\n } else {\n next()\n }\n})\n\nexport default router\n","import Vue from 'vue'\nimport App from './App.vue'\n// 导入路由模块\nimport router from '@/router'\n// 引入element\nimport ElementUI from 'element-ui';\nimport 'element-ui/lib/theme-chalk/index.css';\n// 导入样式\nimport './assets/css/bootstrap.css'\nimport './index.css'\n// 引入 dayjs 时间处理\nimport dayjs from \"dayjs\";\nVue.prototype.$dayjs = dayjs;\n\n// 声明格式化时间的全局过滤器\nVue.filter(\"dateFormat\", function (time) {\n // 1. 对 time 进行格式化处理,得到 YYYY-MM-DD HH:mm:ss\n // 2. 把 格式化的结果,return 出去\n\n // 直接调用 dayjs() 得到的是当前时间\n // dayjs(给定的日期时间) 得到指定的日期\n const dtStr = dayjs(time).format(\"YYYY-MM-DD HH:mm:ss\");\n return dtStr;\n});\nVue.use(ElementUI);\nVue.config.productionTip = false\n\nnew Vue({\n render: h => h(App),\n router\n}).$mount('#app')\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddChatDetail.vue?vue&type=style&index=0&id=869fde4a&lang=less&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/kwan.80e90605.png\";","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyChat.vue?vue&type=style&index=0&id=2f22499b&lang=less&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyAside.vue?vue&type=style&index=0&id=4c695124&lang=less&scoped=true&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyHome.vue?vue&type=style&index=0&id=e41dbfec&lang=less&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyHeader.vue?vue&type=style&index=0&id=36ae6cf9&lang=less&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyPic.vue?vue&type=style&index=0&id=4ac73c72&lang=less&scoped=true&\""],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/app.8dff95dc.js b/dist/js/app.8dff95dc.js new file mode 100644 index 0000000000000000000000000000000000000000..9dd158c4a9d892ac1e6e2441d6955fcad35c6f5d --- /dev/null +++ b/dist/js/app.8dff95dc.js @@ -0,0 +1,2 @@ +(function(t){function e(e){for(var a,i,s=e[0],l=e[1],c=e[2],p=0,d=[];p\n\t\n\t\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=633dd7d9&scoped=true&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"633dd7d9\",\n null\n \n)\n\nexport default component.exports","export default['/home', '/home/users', '/home/pic']\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"login-container\"},[_c('div',{staticClass:\"login-box\"},[_vm._m(0),_c('div',{staticClass:\"form-login p-4\"},[_c('div',{staticClass:\"form-group form-inline\"},[_c('label',{attrs:{\"for\":\"username\"}},[_vm._v(\"登录名称\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.username),expression:\"username\",modifiers:{\"trim\":true}}],staticClass:\"form-control ml-2\",attrs:{\"type\":\"text\",\"id\":\"username\",\"placeholder\":\"请输入登录名称\",\"autocomplete\":\"off\"},domProps:{\"value\":(_vm.username)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.username=$event.target.value.trim()},\"blur\":function($event){return _vm.$forceUpdate()}}})]),_c('div',{staticClass:\"form-group form-inline\"},[_c('label',{attrs:{\"for\":\"password\"}},[_vm._v(\"登录密码\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.password),expression:\"password\",modifiers:{\"trim\":true}}],staticClass:\"form-control ml-2\",attrs:{\"type\":\"password\",\"id\":\"password\",\"placeholder\":\"请输入登录密码\"},domProps:{\"value\":(_vm.password)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.password=$event.target.value.trim()},\"blur\":function($event){return _vm.$forceUpdate()}}})]),_c('div',{staticClass:\"form-group form-inline d-flex justify-content-end\"},[_c('button',{staticClass:\"btn btn-secondary mr-2\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.reset}},[_vm._v(\"重置\")]),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.login}},[_vm._v(\"登录\")])])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center avatar-box\"},[_c('img',{staticClass:\"img-thumbnail avatar\",attrs:{\"src\":require(\"../assets/kwan.png\"),\"alt\":\"kwan的解忧杂货铺\"}})])}]\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyLogin.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyLogin.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyLogin.vue?vue&type=template&id=2d08abd9&scoped=true&\"\nimport script from \"./MyLogin.vue?vue&type=script&lang=js&\"\nexport * from \"./MyLogin.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyLogin.vue?vue&type=style&index=0&id=2d08abd9&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2d08abd9\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"home-container\"},[_c('el-row',[_c('el-col',{attrs:{\"span\":24}},[_c('MyHeader')],1)],1),_c('el-row',[_c('el-col',{attrs:{\"span\":3}},[_c('MyAside')],1),_c('el-col',{attrs:{\"span\":21}},[_c('router-view')],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"layout-header-container d-flex justify-content-between align-items-center p-3\"},[_vm._m(0),_c('el-row',[_c('el-col',{attrs:{\"inline\":true,\"span\":24}},[_c('el-button',{staticClass:\"el-button-header\",attrs:{\"type\":\"success\",\"round\":\"\"},on:{\"click\":_vm.myHome}},[_vm._v(\"我的主页\")]),_c('el-button',{staticClass:\"el-button-header\",attrs:{\"type\":\"primary\",\"round\":\"\"},on:{\"click\":_vm.logout}},[_vm._v(\"退出登录\")])],1)],1)],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"layout-header-left d-flex align-items-center user-select-none\"},[_c('img',{staticClass:\"layout-header-left-img\",attrs:{\"src\":require(\"../../assets/kwan.png\"),\"alt\":\"\"}}),_c('h4',{staticClass:\"layout-header-left-title ml-3\"},[_vm._v(\"kwan的解忧杂货铺\")])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyHeader.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyHeader.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyHeader.vue?vue&type=template&id=36ae6cf9&scoped=true&\"\nimport script from \"./MyHeader.vue?vue&type=script&lang=js&\"\nexport * from \"./MyHeader.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyHeader.vue?vue&type=style&index=0&id=36ae6cf9&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"36ae6cf9\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-menu',{staticClass:\"layout-aside-container\",attrs:{\"default-active\":\"$route.path\",\"background-color\":\"#fff\",\"text-color\":\"#000\",\"active-text-color\":\"#42b983\"}},[_c('router-link',{attrs:{\"to\":\"/home/chat\"}},[_c('el-menu-item',{staticClass:\"left-aside-item\",attrs:{\"index\":\"/chat\"}},[_c('i',{staticClass:\"el-icon-chat-line-square\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"对话管理\")])])],1),_c('router-link',{attrs:{\"to\":\"/home/pic\"}},[_c('el-menu-item',{staticClass:\"left-aside-item\",attrs:{\"index\":\"/pic\"}},[_c('i',{staticClass:\"el-icon-setting\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"图片管理\")])])],1),_c('router-link',{attrs:{\"to\":\"/home/users\"}},[_c('el-menu-item',{staticClass:\"left-aside-item\",attrs:{\"index\":\"/users\"}},[_c('i',{staticClass:\"el-icon-user\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"用户管理\")])])],1),_c('router-link',{attrs:{\"to\":\"/home/goods\"}},[_c('el-menu-item',{staticClass:\"left-aside-item\",attrs:{\"index\":\"/goods\"}},[_c('i',{staticClass:\"el-icon-goods\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"商品管理\")])])],1),_c('router-link',{attrs:{\"to\":\"/home/orders\"}},[_c('el-menu-item',{staticClass:\"left-aside-item\",attrs:{\"index\":\"/orders\"}},[_c('i',{staticClass:\"el-icon-s-order\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"订单管理\")])])],1),_c('router-link',{attrs:{\"to\":\"/home/settings\"}},[_c('el-menu-item',{staticClass:\"left-aside-item\",attrs:{\"index\":\"/settings\"}},[_c('i',{staticClass:\"el-icon-setting\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"系统设置\")])])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyAside.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyAside.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyAside.vue?vue&type=template&id=3235a6cc&scoped=true&\"\nimport script from \"./MyAside.vue?vue&type=script&lang=js&\"\nexport * from \"./MyAside.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyAside.vue?vue&type=style&index=0&id=3235a6cc&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3235a6cc\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyHome.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyHome.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyHome.vue?vue&type=template&id=e41dbfec&scoped=true&\"\nimport script from \"./MyHome.vue?vue&type=script&lang=js&\"\nexport * from \"./MyHome.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyHome.vue?vue&type=style&index=0&id=e41dbfec&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e41dbfec\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h4',{staticClass:\"text-center\"},[_vm._v(\"用户管理\")]),_c('table',{staticClass:\"table table-bordered table-striped table-hover\"},[_vm._m(0),_c('tbody',_vm._l((_vm.userlist),function(item){return _c('tr',{key:item.id},[_c('td',[_vm._v(_vm._s(item.id))]),_c('td',[_vm._v(_vm._s(item.name))]),_c('td',[_vm._v(_vm._s(item.age))]),_c('td',[_vm._v(_vm._s(item.position))]),_c('td',[_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.gotoDetail(item.id)}}},[_vm._v(\"详情\")])])])}),0)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',[_c('tr',[_c('th',[_vm._v(\"序号\")]),_c('th',[_vm._v(\"姓名\")]),_c('th',[_vm._v(\"年龄\")]),_c('th',[_vm._v(\"头衔\")]),_c('th',[_vm._v(\"操作\")])])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyUsers.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyUsers.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyUsers.vue?vue&type=template&id=02f3073a&scoped=true&\"\nimport script from \"./MyUsers.vue?vue&type=script&lang=js&\"\nexport * from \"./MyUsers.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"02f3073a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-container',[_c('el-main',[_c('el-select',{attrs:{\"placeholder\":\"请选择\"},on:{\"change\":_vm.queryPic},model:{value:(_vm.picType),callback:function ($$v) {_vm.picType=$$v},expression:\"picType\"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"border\":\"\",\"data\":_vm.picList}},[_c('el-table-column',{attrs:{\"prop\":\"id\",\"label\":\"序号\",\"width\":\"100\",\"sortable\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"picName\",\"label\":\"图片名字\",\"width\":\"240\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('img',{staticStyle:{\"cursor\":\"pointer\"},attrs:{\"src\":props.row.picUrl,\"alt\":\"图片\",\"height\":\"100px\"},on:{\"click\":function($event){return _vm.showImageDialog(props.row.picUrl)}}})]}}])}),_c('el-table-column',{attrs:{\"label\":\"创建时间\",\"width\":\"170\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_vm._v(\" \"+_vm._s(_vm._f(\"dateFormat\")(props.row.createTime))+\" \")]}}])})],1),_c('el-dialog',{attrs:{\"visible\":_vm.imageDialogVisible,\"width\":\"30%\"},on:{\"update:visible\":function($event){_vm.imageDialogVisible=$event}}},[_c('img',{staticStyle:{\"width\":\"100%\"},attrs:{\"src\":_vm.enlargedImageUrl,\"alt\":\"放大图片\"}})]),_c('el-pagination',{key:_vm.elementui_page_component_key,staticClass:\"pagination\",attrs:{\"background\":\"\",\"current-page\":_vm.currentPage,\"page-size\":_vm.pageSize,\"total\":_vm.total},on:{\"update:currentPage\":function($event){_vm.currentPage=$event},\"update:current-page\":function($event){_vm.currentPage=$event},\"current-change\":_vm.handleCurrentChange}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyPic.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyPic.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyPic.vue?vue&type=template&id=2a73445c&scoped=true&\"\nimport script from \"./MyPic.vue?vue&type=script&lang=js&\"\nexport * from \"./MyPic.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyPic.vue?vue&type=style&index=0&id=2a73445c&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2a73445c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h4',{staticClass:\"text-center\"},[_vm._v(\"商品管理\")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyGoods.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyGoods.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyGoods.vue?vue&type=template&id=716085f0&scoped=true&\"\nimport script from \"./MyGoods.vue?vue&type=script&lang=js&\"\nexport * from \"./MyGoods.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"716085f0\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h4',{staticClass:\"text-center\"},[_vm._v(\"订单管理\")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyOrders.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyOrders.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyOrders.vue?vue&type=template&id=3275af60&scoped=true&\"\nimport script from \"./MyOrders.vue?vue&type=script&lang=js&\"\nexport * from \"./MyOrders.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3275af60\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-container',[_c('el-main',[_c('el-form',{staticClass:\"demo-form-inline\",attrs:{\"inline\":true,\"model\":_vm.formInline}},[_c('el-form-item',[_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"请输入问题\"},nativeOn:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.initCartList.apply(null, arguments)}},model:{value:(_vm.formInline.question),callback:function ($$v) {_vm.$set(_vm.formInline, \"question\", $$v)},expression:\"formInline.question\"}})],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.initCartList}},[_vm._v(\"查询\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.addChat.apply(null, arguments)}}},[_vm._v(\"新增\")])],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"border\":\"\",\"data\":_vm.userlist}},[_c('el-table-column',{attrs:{\"prop\":\"id\",\"label\":\"序号\",\"width\":\"100\",\"sortable\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"question\",\"label\":\"问题\",\"width\":\"240\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"response\",\"label\":\"答案\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"label\":\"创建时间\",\"width\":\"170\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_vm._v(\" \"+_vm._s(_vm._f(\"dateFormat\")(props.row.createTime))+\" \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"详情\",\"label\":\"详情\",\"width\":\"180\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('el-button',{attrs:{\"type\":\"success\"},on:{\"click\":function($event){$event.preventDefault();return _vm.gotoDetail(props.row.id)}}},[_vm._v(\"详情\")]),_c('el-button',{attrs:{\"type\":\"danger\"},on:{\"click\":function($event){return _vm.onDelete(props.row.id)}}},[_vm._v(\"删除\")])]}}])})],1),_c('el-pagination',{key:_vm.elementui_page_component_key,staticClass:\"pagination\",attrs:{\"background\":\"\",\"current-page\":_vm.currentPage,\"page-size\":_vm.pageSize,\"total\":_vm.total},on:{\"update:currentPage\":function($event){_vm.currentPage=$event},\"update:current-page\":function($event){_vm.currentPage=$event},\"current-change\":_vm.handleCurrentChange}})],1),_c('el-backtop',{staticClass:\"backtop\"})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyChat.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyChat.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyChat.vue?vue&type=template&id=c92e998c&scoped=true&\"\nimport script from \"./MyChat.vue?vue&type=script&lang=js&\"\nexport * from \"./MyChat.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyChat.vue?vue&type=style&index=0&id=c92e998c&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"c92e998c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h4',{staticClass:\"text-center\"},[_vm._v(\"系统设置\")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MySettings.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MySettings.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MySettings.vue?vue&type=template&id=accd7558&scoped=true&\"\nimport script from \"./MySettings.vue?vue&type=script&lang=js&\"\nexport * from \"./MySettings.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"accd7558\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('button',{staticClass:\"btn btn-light btn-sm\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.$router.back()}}},[_vm._v(\"后退\")]),_c('h4',{staticClass:\"text-center\"},[_vm._v(\"用户详情 --- \"+_vm._s(_vm.id))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyUserDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyUserDetail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyUserDetail.vue?vue&type=template&id=bea9073a&scoped=true&\"\nimport script from \"./MyUserDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./MyUserDetail.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"bea9073a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\",\"size\":\"medium\"},on:{\"click\":_vm.goBack}},[_vm._v(\"后退\")]),_c('h4',{staticClass:\"text-center\"},[_vm._v(\"ChatGpt问答详情 --- \"+_vm._s(_vm.id))]),_c('el-container',[_c('el-main',[_c('el-table',{attrs:{\"border\":\"\",\"data\":_vm.list}},[_c('el-table-column',{attrs:{\"label\":\"序号\",\"width\":\"50\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.id))])]}}])}),_c('el-table-column',{attrs:{\"label\":\"问题\",\"width\":\"240\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.question))])]}}])}),_c('el-table-column',{attrs:{\"label\":\"回答\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{attrs:{\"id\":\"td-response\"}},[_vm._v(_vm._s(scope.row.response))])]}}])}),_c('el-table-column',{attrs:{\"label\":\"创建时间\",\"width\":\"170\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm._f(\"dateFormat\")(scope.row.createTime)))])]}}])})],1)],1)],1),_c('div',{staticClass:\"button-container\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"round\":\"\"},on:{\"click\":_vm.copyCode}},[_vm._v(\"复制回答\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyChatDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyChatDetail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyChatDetail.vue?vue&type=template&id=9d5d30a4&scoped=true&\"\nimport script from \"./MyChatDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./MyChatDetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyChatDetail.vue?vue&type=style&index=0&id=9d5d30a4&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"9d5d30a4\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\",\"size\":\"medium\"},on:{\"click\":_vm.goBack}},[_vm._v(\"后退\")]),_c('h4',{staticClass:\"text-center\"},[_vm._v(\"新增ChatGpt问答\")]),_c('el-container',{staticClass:\"container\"},[_c('el-form',{ref:\"form\",attrs:{\"model\":_vm.form,\"label-width\":\"80px\"}},[_c('el-form-item',{attrs:{\"label\":\"问题\"}},[_c('el-input',{model:{value:(_vm.form.question),callback:function ($$v) {_vm.$set(_vm.form, \"question\", $$v)},expression:\"form.question\"}})],1),_c('el-form-item',{attrs:{\"label\":\"答案\"}},[_c('el-input',{attrs:{\"type\":\"textarea\"},model:{value:(_vm.form.response),callback:function ($$v) {_vm.$set(_vm.form, \"response\", $$v)},expression:\"form.response\"}})],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.onSubmit}},[_vm._v(\"立即创建\")]),_c('el-button',{on:{\"click\":_vm.clearContent}},[_vm._v(\"取消\")])],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddChatDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddChatDetail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AddChatDetail.vue?vue&type=template&id=ddc6c3e0&scoped=true&\"\nimport script from \"./AddChatDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./AddChatDetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AddChatDetail.vue?vue&type=style&index=0&id=ddc6c3e0&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"ddc6c3e0\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\nimport VueRouter from 'vue-router'\nimport pathArr from '@/router/pathArr.js'\n\n// 导入需要的组件\nimport Login from '@/components/MyLogin.vue'\nimport Home from '@/components/MyHome.vue'\n\nimport Users from '@/components/menus/MyUsers.vue'\nimport Pic from '@/components/menus/MyPic.vue'\nimport Goods from '@/components/menus/MyGoods.vue'\nimport Orders from '@/components/menus/MyOrders.vue'\nimport Chat from '@/components/menus/MyChat.vue'\nimport Settings from '@/components/menus/MySettings.vue'\nimport UserDetail from '@/components/user/MyUserDetail.vue'\nimport MyChatDetail from '@/components/user/MyChatDetail.vue'\nimport AddChatDetail from '@/components/user/AddChatDetail.vue'\n\n\nVue.use(VueRouter)\n\nconst router = new VueRouter({\n routes: [\n {\n path: '/',\n redirect: '/login'\n },\n // 登录的路由规则\n {\n path: '/login',\n component: Login\n },\n // 后台主页的路由规则\n {\n path: '/home',\n component: Home,\n redirect: '/home/chat',\n children: [\n {\n path: 'users',\n component: Users\n },\n {\n path: 'pic',\n component: Pic\n },\n {\n path: 'goods',\n component: Goods\n },\n {\n path: 'orders',\n component: Orders\n }, {\n path: 'chat',\n component: Chat\n }, {\n path: 'settings',\n component: Settings\n },\n // 用户详情页的路由规则\n {\n path: 'userinfo/:id',\n component: UserDetail,\n props: true\n }, {\n path: 'chatinfo/:id',\n component: MyChatDetail,\n props: true\n }, {\n path: 'addChat',\n component: AddChatDetail\n },\n ]\n }\n ]\n})\n\n// 全局前置守卫\nrouter.beforeEach(function (to, from, next) {\n if (pathArr.indexOf(to.path) !== -1) {\n const token = localStorage.getItem('token')\n if (token) {\n next()\n } else {\n next('/login')\n }\n } else {\n next()\n }\n})\n\nexport default router\n","import Vue from 'vue'\nimport App from './App.vue'\n// 导入路由模块\nimport router from '@/router'\n// 引入element\nimport ElementUI from 'element-ui';\nimport 'element-ui/lib/theme-chalk/index.css';\n// 导入样式\nimport './assets/css/bootstrap.css'\nimport './index.css'\n// 引入 dayjs 时间处理\nimport dayjs from \"dayjs\";\nVue.prototype.$dayjs = dayjs;\n\n// 声明格式化时间的全局过滤器\nVue.filter(\"dateFormat\", function (time) {\n // 1. 对 time 进行格式化处理,得到 YYYY-MM-DD HH:mm:ss\n // 2. 把 格式化的结果,return 出去\n\n // 直接调用 dayjs() 得到的是当前时间\n // dayjs(给定的日期时间) 得到指定的日期\n const dtStr = dayjs(time).format(\"YYYY-MM-DD HH:mm:ss\");\n return dtStr;\n});\nVue.use(ElementUI);\nVue.config.productionTip = false\n\nnew Vue({\n render: h => h(App),\n router\n}).$mount('#app')\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddChatDetail.vue?vue&type=style&index=0&id=ddc6c3e0&lang=less&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/kwan.80e90605.png\";","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyAside.vue?vue&type=style&index=0&id=3235a6cc&lang=less&scoped=true&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyHome.vue?vue&type=style&index=0&id=e41dbfec&lang=less&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyHeader.vue?vue&type=style&index=0&id=36ae6cf9&lang=less&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyChat.vue?vue&type=style&index=0&id=c92e998c&lang=less&scoped=true&\""],"sourceRoot":""} \ No newline at end of file diff --git a/src/components/menus/MyChat.vue b/src/components/menus/MyChat.vue index 29c24da5006f6c9e48689cc7409d6df6a100c34a..74b2f75dd1cfcd33aa850610756aadf75f625a52 100644 --- a/src/components/menus/MyChat.vue +++ b/src/components/menus/MyChat.vue @@ -8,7 +8,6 @@ 查询 - 新增 @@ -40,97 +39,97 @@ diff --git a/src/components/menus/MyPic.vue b/src/components/menus/MyPic.vue index 9622030d58524d9aaaf62fc1e3ade7ce737aacaa..873d6c6513f69204c0923d1b44e2a80f582d118d 100644 --- a/src/components/menus/MyPic.vue +++ b/src/components/menus/MyPic.vue @@ -2,12 +2,15 @@
+ + + @@ -16,6 +19,9 @@ + + 放大图片 + @@ -25,95 +31,72 @@ @@ -132,27 +115,4 @@ export default { margin-top: 16px; text-align: right; } -.header-button-item { - margin-right: 15px; - font-size: 20px; -} - -.backtop { - 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:hover { - background-color: #0050a0; -} \ No newline at end of file diff --git a/src/components/subcomponents/MyAside.vue b/src/components/subcomponents/MyAside.vue index cb3e556ef716a344340bc3f1c23b593577d7ea79..a2654dd73da420f8fe02559afc316caee55bc079 100644 --- a/src/components/subcomponents/MyAside.vue +++ b/src/components/subcomponents/MyAside.vue @@ -6,18 +6,18 @@ 对话管理 - - - - 用户管理 - - 图片管理 + + + + 用户管理 + + diff --git a/src/components/user/AddChatDetail.vue b/src/components/user/AddChatDetail.vue index 99ca9182e5b3a1bc7ff3cb6b640a271aca1f1014..45fd02f62db3ce4442898e11567faba80ebf1d45 100644 --- a/src/components/user/AddChatDetail.vue +++ b/src/components/user/AddChatDetail.vue @@ -22,56 +22,56 @@ // 导入 axios 请求库 import axios from 'axios' export default { - name: 'AddChatDetail', - data() { - return { - form: { - question: '', - response: '', - }, - } - }, - methods: { - clearContent() { - this.form.question = '' - this.form.response = '' - }, - async onSubmit() { - const data = { - question: this.form.question, - response: this.form.response, - } - axios - .post('http://120.79.36.53:8888/chatbot', data) - .then((response) => { - // 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中 - if (response.data.code === 200) { - this.$message.success({ - message: '问题和答案新增成功', - duration: 1000, - }) - this.goBack() - } - }) - .catch((error) => { - // 处理错误 - this.$message.error('系统异常') - }) - }, - goBack() { - // 传递参数到前一个页面 - const params = { - // 参数名: 参数值 - back: 'back', - add: 'add', - } - // 使用 $router.push() 导航到前一个页面 - this.$router.push({ - path: '/home/chat', // 前一个页面的路径 - query: params, // 参数对象 - }) - }, - }, + name: 'AddChatDetail', + data() { + return { + form: { + question: '', + response: '', + }, + } + }, + methods: { + clearContent() { + this.form.question = '' + this.form.response = '' + }, + async onSubmit() { + const data = { + question: this.form.question, + response: this.form.response, + } + axios + .post('http://120.79.36.53:8888/chatbot', data) + .then((response) => { + // 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中 + if (response.data.code === 200) { + this.$message.success({ + message: '问题和答案新增成功', + duration: 1000, + }) + this.goBack() + } + }) + .catch((error) => { + // 处理错误 + this.$message.error('系统异常') + }) + }, + goBack() { + // 传递参数到前一个页面 + const params = { + // 参数名: 参数值 + back: 'back', + add: 'add', + } + // 使用 $router.push() 导航到前一个页面 + this.$router.push({ + path: '/home/chat', // 前一个页面的路径 + query: params, // 参数对象 + }) + }, + }, } diff --git a/src/components/user/MyChatDetail.vue b/src/components/user/MyChatDetail.vue index 3883bb1df2e5eb5861a8da7ecc23ae6a92684bbb..04e56a95918a56d0b1cb2a107e61d38e1b21529b 100644 --- a/src/components/user/MyChatDetail.vue +++ b/src/components/user/MyChatDetail.vue @@ -37,60 +37,60 @@ // 导入 axios 请求库 import axios from 'axios' export default { - name: 'MyChatDetail', - props: ['id'], - data() { - return { - list: [], - } - }, - created() { - // 调用请求数据的方法 - this.initChatList() - }, - methods: { - goBack() { - // 传递参数到前一个页面 - const params = { - // 参数名: 参数值 - back: 'back', - // baz: "qux", - } + name: 'MyChatDetail', + props: ['id'], + data() { + return { + list: [], + } + }, + created() { + // 调用请求数据的方法 + this.initChatList() + }, + methods: { + goBack() { + // 传递参数到前一个页面 + const params = { + // 参数名: 参数值 + back: 'back', + // baz: "qux", + } - // 使用 $router.push() 导航到前一个页面 - this.$router.push({ - path: '/home/chat', // 前一个页面的路径 - query: params, // 参数对象 - }) - }, - // 封装请求列表数据的方法 - async initChatList() { - // 调用 axios 的 get 方法,请求列表数据 - const { data: res } = await axios.get('http://120.79.36.53:8888/chatbot/' + this.id) - // 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中 - if (res.code === 200) { - this.list = [ - { - id: res.result.id, - question: res.result.question, - response: res.result.response, - createTime: res.result.createTime, - }, - ] - } - }, - copyCode() { - const codeBlock = document.getElementById('td-response') - const range = document.createRange() - range.selectNode(codeBlock) - const selection = window.getSelection() - selection.removeAllRanges() - selection.addRange(range) - document.execCommand('copy') - selection.removeAllRanges() - this.$message.success('代码已复制到剪贴板') - }, - }, + // 使用 $router.push() 导航到前一个页面 + this.$router.push({ + path: '/home/chat', // 前一个页面的路径 + query: params, // 参数对象 + }) + }, + // 封装请求列表数据的方法 + async initChatList() { + // 调用 axios 的 get 方法,请求列表数据 + const { data: res } = await axios.get('http://120.79.36.53:8888/chatbot/' + this.id) + // 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中 + if (res.code === 200) { + this.list = [ + { + id: res.result.id, + question: res.result.question, + response: res.result.response, + createTime: res.result.createTime, + }, + ] + } + }, + copyCode() { + const codeBlock = document.getElementById('td-response') + const range = document.createRange() + range.selectNode(codeBlock) + const selection = window.getSelection() + selection.removeAllRanges() + selection.addRange(range) + document.execCommand('copy') + selection.removeAllRanges() + this.$message.success('代码已复制到剪贴板') + }, + }, }