vue admin update
This commit is contained in:
		
							parent
							
								
									bb2f60d22b
								
							
						
					
					
						commit
						a5ba2d2ad9
					
				@ -1,4 +1,4 @@
 | 
			
		||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Expires" content="0"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>TEKSystem管理系统</title><style>html {
 | 
			
		||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Expires" content="0"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>TEKsystems Admin</title><style>html {
 | 
			
		||||
      height: 100%;
 | 
			
		||||
      width: 100%;
 | 
			
		||||
    }
 | 
			
		||||
@ -13,4 +13,4 @@
 | 
			
		||||
      hm.src = 'https://hm.baidu.com/hm.js?cd8218cd51f800ed2b73e5751cb3f4f9'
 | 
			
		||||
      var s = document.getElementsByTagName('script')[0]
 | 
			
		||||
      s.parentNode.insertBefore(hm, s)
 | 
			
		||||
    })()</script><link href="static/css/chunk-157f9069.c306629d.css" rel="prefetch"><link href="static/css/chunk-1c4df292.50289542.css" rel="prefetch"><link href="static/css/chunk-360c43ba.c306629d.css" rel="prefetch"><link href="static/css/chunk-366bd7fc.3ba9b835.css" rel="prefetch"><link href="static/css/chunk-3e96bd8c.c306629d.css" rel="prefetch"><link href="static/css/chunk-4010637e.c306629d.css" rel="prefetch"><link href="static/css/chunk-42236473.c306629d.css" rel="prefetch"><link href="static/css/chunk-6092f506.89936c18.css" rel="prefetch"><link href="static/css/chunk-873a42e2.1951fa25.css" rel="prefetch"><link href="static/css/chunk-a85d3c1e.c8588555.css" rel="prefetch"><link href="static/css/chunk-a9d03770.c306629d.css" rel="prefetch"><link href="static/css/chunk-bab2e2c4.c306629d.css" rel="prefetch"><link href="static/js/chunk-157f9069.c7c81c3e.js" rel="prefetch"><link href="static/js/chunk-1c4df292.38da0410.js" rel="prefetch"><link href="static/js/chunk-2d0c138b.b700863a.js" rel="prefetch"><link href="static/js/chunk-2d221bd2.574db207.js" rel="prefetch"><link href="static/js/chunk-2d2300ef.88e7351f.js" rel="prefetch"><link href="static/js/chunk-2d230fe7.042d38d1.js" rel="prefetch"><link href="static/js/chunk-360c43ba.17196737.js" rel="prefetch"><link href="static/js/chunk-366bd7fc.8686af5f.js" rel="prefetch"><link href="static/js/chunk-3e96bd8c.a256fc09.js" rel="prefetch"><link href="static/js/chunk-4010637e.ada51c0e.js" rel="prefetch"><link href="static/js/chunk-42236473.f7640463.js" rel="prefetch"><link href="static/js/chunk-5bc4738d.f9bf6802.js" rel="prefetch"><link href="static/js/chunk-6092f506.272010c0.js" rel="prefetch"><link href="static/js/chunk-75f11c77.575d12af.js" rel="prefetch"><link href="static/js/chunk-78234ca2.ec0d4de6.js" rel="prefetch"><link href="static/js/chunk-793f0082.ad135597.js" rel="prefetch"><link href="static/js/chunk-873a42e2.641597a8.js" rel="prefetch"><link href="static/js/chunk-a85d3c1e.c270d287.js" rel="prefetch"><link href="static/js/chunk-a9d03770.bd46b6bc.js" rel="prefetch"><link href="static/js/chunk-b1da6300.c32ca6a0.js" rel="prefetch"><link href="static/js/chunk-bab2e2c4.e26a6c73.js" rel="prefetch"><link href="static/js/chunk-d0753fda.12ca9d22.js" rel="prefetch"><link href="static/css/chunk-vendors.ee57d822.css" rel="preload" as="style"><link href="static/css/index.b455b9ca.css" rel="preload" as="style"><link href="static/js/chunk-vendors.9dd0934b.js" rel="preload" as="script"><link href="static/js/index.a03887ec.js" rel="preload" as="script"><link href="static/css/chunk-vendors.ee57d822.css" rel="stylesheet"><link href="static/css/index.b455b9ca.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but vue-demo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="static/js/chunk-vendors.9dd0934b.js"></script><script src="static/js/index.a03887ec.js"></script></body></html>
 | 
			
		||||
    })()</script><link href="static/css/chunk-157f9069.c306629d.css" rel="prefetch"><link href="static/css/chunk-360c43ba.c306629d.css" rel="prefetch"><link href="static/css/chunk-3e96bd8c.c306629d.css" rel="prefetch"><link href="static/css/chunk-4010637e.c306629d.css" rel="prefetch"><link href="static/css/chunk-42236473.c306629d.css" rel="prefetch"><link href="static/css/chunk-4b4bb354.f6eb5bb5.css" rel="prefetch"><link href="static/css/chunk-6092f506.89936c18.css" rel="prefetch"><link href="static/css/chunk-873a42e2.1951fa25.css" rel="prefetch"><link href="static/css/chunk-a85d3c1e.c8588555.css" rel="prefetch"><link href="static/css/chunk-a9d03770.c306629d.css" rel="prefetch"><link href="static/css/chunk-b77778aa.d88543a2.css" rel="prefetch"><link href="static/css/chunk-bab2e2c4.c306629d.css" rel="prefetch"><link href="static/js/chunk-157f9069.7536490d.js" rel="prefetch"><link href="static/js/chunk-2d0c138b.ed74857a.js" rel="prefetch"><link href="static/js/chunk-2d221bd2.1f14d46c.js" rel="prefetch"><link href="static/js/chunk-2d2300ef.5af2bcff.js" rel="prefetch"><link href="static/js/chunk-2d230fe7.042d38d1.js" rel="prefetch"><link href="static/js/chunk-360c43ba.665ab3cf.js" rel="prefetch"><link href="static/js/chunk-3e96bd8c.2c8483a1.js" rel="prefetch"><link href="static/js/chunk-4010637e.4c3aa237.js" rel="prefetch"><link href="static/js/chunk-42236473.f7640463.js" rel="prefetch"><link href="static/js/chunk-4b4bb354.5aa1ca59.js" rel="prefetch"><link href="static/js/chunk-5bc4738d.bbfae149.js" rel="prefetch"><link href="static/js/chunk-6092f506.272010c0.js" rel="prefetch"><link href="static/js/chunk-75f11c77.575d12af.js" rel="prefetch"><link href="static/js/chunk-78234ca2.ec0d4de6.js" rel="prefetch"><link href="static/js/chunk-793f0082.ad135597.js" rel="prefetch"><link href="static/js/chunk-873a42e2.641597a8.js" rel="prefetch"><link href="static/js/chunk-a85d3c1e.c270d287.js" rel="prefetch"><link href="static/js/chunk-a9d03770.a12fcb7b.js" rel="prefetch"><link href="static/js/chunk-b1da6300.9a6c9e5a.js" rel="prefetch"><link href="static/js/chunk-b77778aa.5584c071.js" rel="prefetch"><link href="static/js/chunk-bab2e2c4.4488f6ce.js" rel="prefetch"><link href="static/js/chunk-d0753fda.12ca9d22.js" rel="prefetch"><link href="static/css/chunk-vendors.ee57d822.css" rel="preload" as="style"><link href="static/css/index.b677cb5b.css" rel="preload" as="style"><link href="static/js/chunk-vendors.9dd0934b.js" rel="preload" as="script"><link href="static/js/index.f1cacee2.js" rel="preload" as="script"><link href="static/css/chunk-vendors.ee57d822.css" rel="stylesheet"><link href="static/css/index.b677cb5b.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but vue-demo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="static/js/chunk-vendors.9dd0934b.js"></script><script src="static/js/index.f1cacee2.js"></script></body></html>
 | 
			
		||||
@ -0,0 +1 @@
 | 
			
		||||
@supports (-webkit-mask:none) and (not (cater-color:#fff)){.login-container .el-input input{color:#fff}}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;-webkit-appearance:none;border-radius:0;padding:12px 5px 12px 15px;color:#fff;height:47px;caret-color:#fff}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;box-shadow:inset 0 0 0 1000px #283443!important;-webkit-text-fill-color:#fff!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container[data-v-11d46f0a]{min-height:100%;width:100%;background-color:#2d3a4b;overflow:hidden}.login-container .login-form[data-v-11d46f0a]{position:relative;width:520px;max-width:100%;padding:30px 50px 10px 50px;margin:120px auto auto auto;overflow:hidden;background:rgba(252,254,255,.11)}.login-container .tips[data-v-11d46f0a]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-11d46f0a]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-11d46f0a]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-11d46f0a]{position:relative}.login-container .title-container .title[data-v-11d46f0a]{font-size:26px;color:#eee;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd[data-v-11d46f0a]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.login-container .thirdparty-button[data-v-11d46f0a]{position:absolute;right:0;bottom:6px}@media only screen and (max-width:470px){.login-container .thirdparty-button[data-v-11d46f0a]{display:none}}
 | 
			
		||||
@ -0,0 +1 @@
 | 
			
		||||
.dashboard-container[data-v-45afd555]{padding:32px;background-color:#f0f2f5;position:relative}.dashboard-container .chart-wrapper[data-v-45afd555]{background:#fff;padding:16px 16px 0;margin-bottom:32px}.dashboard-editor-container[data-v-45afd555]{padding:32px;background-color:#f0f2f5;position:relative}.dashboard-editor-container .github-corner[data-v-45afd555]{position:absolute;top:0;border:0;right:0}.dashboard-editor-container .chart-wrapper[data-v-45afd555]{background:#fff;padding:16px 16px 0;margin-bottom:32px}@media (max-width:1024px){.chart-wrapper[data-v-45afd555]{padding:8px}}.panel-group[data-v-45afd555]{margin-top:18px}.panel-group .card-panel-col[data-v-45afd555]{margin-bottom:32px}.panel-group .card-panel[data-v-45afd555]{height:108px;cursor:pointer;font-size:12px;position:relative;overflow:hidden;color:#666;background:#fff;-webkit-box-shadow:4px 4px 40px rgba(0,0,0,.05);box-shadow:4px 4px 40px rgba(0,0,0,.05);border-color:rgba(0,0,0,.05)}.panel-group .card-panel:hover .card-panel-icon-wrapper[data-v-45afd555]{color:#fff}.panel-group .card-panel:hover .icon-people[data-v-45afd555]{background:#40c9c6}.panel-group .card-panel:hover .icon-message[data-v-45afd555]{background:#36a3f7}.panel-group .card-panel:hover .icon-money[data-v-45afd555]{background:#f4516c}.panel-group .card-panel:hover .icon-shopping[data-v-45afd555]{background:#34bfa3}.panel-group .card-panel .icon-people[data-v-45afd555]{color:#40c9c6}.panel-group .card-panel .icon-message[data-v-45afd555]{color:#36a3f7}.panel-group .card-panel .icon-money[data-v-45afd555]{color:#f4516c}.panel-group .card-panel .icon-shopping[data-v-45afd555]{color:#34bfa3}.panel-group .card-panel .card-panel-icon-wrapper[data-v-45afd555]{float:left;margin:14px 0 0 14px;padding:16px;-webkit-transition:all .38s ease-out;transition:all .38s ease-out;border-radius:6px}.panel-group .card-panel .card-panel-icon[data-v-45afd555]{float:left;font-size:48px}.panel-group .card-panel .card-panel-description[data-v-45afd555]{float:right;font-weight:700;margin:26px;margin-left:0}.panel-group .card-panel .card-panel-description .card-panel-text[data-v-45afd555]{line-height:18px;color:rgba(0,0,0,.45);font-size:16px;margin-bottom:12px}.panel-group .card-panel .card-panel-description .card-panel-num[data-v-45afd555]{font-size:20px}@media (max-width:550px){.card-panel-description[data-v-45afd555]{display:none}.card-panel-icon-wrapper[data-v-45afd555]{float:none!important;width:100%;height:100%;margin:0!important}.card-panel-icon-wrapper .svg-icon[data-v-45afd555]{display:block;margin:14px auto!important;float:none!important}}.echarts-line[data-v-45afd555]{background:#fff;padding:16px 16px 0;margin-bottom:32px}
 | 
			
		||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -0,0 +1 @@
 | 
			
		||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c138b"],{"44b7":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"form",attrs:{model:e.form,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"Skill:",required:""}},[n("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("Submit")]),n("el-button",{on:{click:e.resetForm}},[e._v("Reset")])],1)],1)],1)},o=[],i=n("5530"),m=n("2f62"),a=n("c418"),l={data:function(){return{form:{id:null,name:"",level:1,levelName:""},formLoading:!1}},created:function(){var e=this.$route.query.id,t=this;e&&0!==parseInt(e)&&(t.formLoading=!0,a["a"].select(e).then((function(e){t.form=e.response,t.formLoading=!1})))},methods:Object(i["a"])({submitForm:function(){var e=this;this.formLoading=!0,this.form.levelName=this.enumFormat(this.levelEnum,this.form.level),a["a"].edit(this.form).then((function(t){1===t.code?(e.$message.success(t.message),e.delCurrentView(e).then((function(){e.$router.push("/education/subject/list")}))):(e.$message.error(t.message),e.formLoading=!1)})).catch((function(t){e.formLoading=!1}))},resetForm:function(){this.$refs["form"].resetFields(),this.form={id:null,name:"",level:1,levelName:""}}},Object(m["b"])("tagsView",{delCurrentView:"delCurrentView"})),computed:Object(i["a"])(Object(i["a"])({},Object(m["c"])("enumItem",["enumFormat"])),Object(m["e"])("enumItem",{levelEnum:function(e){return e.user.levelEnum}}))},s=l,u=n("2877"),c=Object(u["a"])(s,r,o,!1,null,null,null);t["default"]=c.exports}}]);
 | 
			
		||||
@ -0,0 +1 @@
 | 
			
		||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d221bd2"],{cc40:function(e,r,t){"use strict";t.r(r);var a=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"app-container"},[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"form",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[t("el-form-item",{attrs:{label:"Username:",prop:"userName",required:""}},[t("el-input",{model:{value:e.form.userName,callback:function(r){e.$set(e.form,"userName",r)},expression:"form.userName"}})],1),t("el-form-item",{attrs:{label:"Password:",required:""}},[t("el-input",{model:{value:e.form.password,callback:function(r){e.$set(e.form,"password",r)},expression:"form.password"}})],1),t("el-form-item",{attrs:{label:"Name:",prop:"realName",required:""}},[t("el-input",{model:{value:e.form.realName,callback:function(r){e.$set(e.form,"realName",r)},expression:"form.realName"}})],1),t("el-form-item",{attrs:{label:"Age:"}},[t("el-input",{model:{value:e.form.age,callback:function(r){e.$set(e.form,"age",r)},expression:"form.age"}})],1),t("el-form-item",{attrs:{label:"Gender:"}},[t("el-select",{attrs:{placeholder:"Gender",clearable:""},model:{value:e.form.sex,callback:function(r){e.$set(e.form,"sex",r)},expression:"form.sex"}},e._l(e.sexEnum,(function(e){return t("el-option",{key:e.key,attrs:{value:e.key,label:e.value}})})),1)],1),t("el-form-item",{attrs:{label:"Birthday:"}},[t("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"Option date"},model:{value:e.form.birthDay,callback:function(r){e.$set(e.form,"birthDay",r)},expression:"form.birthDay"}})],1),t("el-form-item",{attrs:{label:"Phone:"}},[t("el-input",{model:{value:e.form.phone,callback:function(r){e.$set(e.form,"phone",r)},expression:"form.phone"}})],1),t("el-form-item",{attrs:{label:"Status:",required:""}},[t("el-select",{attrs:{placeholder:"Status"},model:{value:e.form.status,callback:function(r){e.$set(e.form,"status",r)},expression:"form.status"}},e._l(e.statusEnum,(function(e){return t("el-option",{key:e.key,attrs:{value:e.key,label:e.value}})})),1)],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("Submit")]),t("el-button",{on:{click:e.resetForm}},[e._v("Reset")])],1)],1)],1)},s=[],o=t("5530"),l=t("2f62"),n=t("c24f"),u={data:function(){return{form:{id:null,userName:"",password:"",realName:"",role:1,status:1,age:"",sex:"",birthDay:null,phone:null,userLevel:"1"},formLoading:!1,rules:{userName:[{required:!0,message:"请输入用户名",trigger:"blur"}],realName:[{required:!0,message:"请输入真实姓名",trigger:"blur"}],userLevel:[{required:!0,message:"请选择年级",trigger:"change"}]}}},created:function(){var e=this.$route.query.id,r=this;e&&0!==parseInt(e)&&(r.formLoading=!0,n["a"].selectUser(e).then((function(e){r.form=e.response,r.formLoading=!1})))},methods:Object(o["a"])({submitForm:function(){var e=this,r=this;this.$refs.form.validate((function(t){if(!t)return!1;e.formLoading=!0,n["a"].createUser(e.form).then((function(e){1===e.code?(r.$message.success(e.message),r.delCurrentView(r).then((function(){r.$router.push("/user/student/list")}))):(r.$message.error(e.message),r.formLoading=!1)})).catch((function(e){r.formLoading=!1}))}))},resetForm:function(){this.$refs["form"].resetFields(),this.form={id:null,userName:"",password:"",realName:"",role:1,status:1,age:"",sex:"",birthDay:null,phone:null,userLevel:"1"}}},Object(l["b"])("tagsView",{delCurrentView:"delCurrentView"})),computed:Object(o["a"])(Object(o["a"])({},Object(l["c"])("enumItem",["enumFormat"])),Object(l["e"])("enumItem",{sexEnum:function(e){return e.user.sexEnum},roleEnum:function(e){return e.user.roleEnum},statusEnum:function(e){return e.user.statusEnum},levelEnum:function(e){return e.user.levelEnum}}))},m=u,i=t("2877"),f=Object(i["a"])(m,a,s,!1,null,null,null);r["default"]=f.exports}}]);
 | 
			
		||||
@ -0,0 +1 @@
 | 
			
		||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2300ef"],{eb51:function(e,r,t){"use strict";t.r(r);var a=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"app-container"},[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"form",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[t("el-form-item",{attrs:{label:"User name:",prop:"userName",required:""}},[t("el-input",{model:{value:e.form.userName,callback:function(r){e.$set(e.form,"userName",r)},expression:"form.userName"}})],1),t("el-form-item",{attrs:{label:"Password:",required:""}},[t("el-input",{model:{value:e.form.password,callback:function(r){e.$set(e.form,"password",r)},expression:"form.password"}})],1),t("el-form-item",{attrs:{label:"Name: ",prop:"realName",required:""}},[t("el-input",{model:{value:e.form.realName,callback:function(r){e.$set(e.form,"realName",r)},expression:"form.realName"}})],1),t("el-form-item",{attrs:{label:"Age:"}},[t("el-input",{model:{value:e.form.age,callback:function(r){e.$set(e.form,"age",r)},expression:"form.age"}})],1),t("el-form-item",{attrs:{label:"gender:"}},[t("el-select",{attrs:{placeholder:"Gender",clearable:""},model:{value:e.form.sex,callback:function(r){e.$set(e.form,"sex",r)},expression:"form.sex"}},e._l(e.sexEnum,(function(e){return t("el-option",{key:e.key,attrs:{value:e.key,label:e.value}})})),1)],1),t("el-form-item",{attrs:{label:"BirthDay:"}},[t("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"Option date"},model:{value:e.form.birthDay,callback:function(r){e.$set(e.form,"birthDay",r)},expression:"form.birthDay"}})],1),t("el-form-item",{attrs:{label:"Phone:"}},[t("el-input",{model:{value:e.form.phone,callback:function(r){e.$set(e.form,"phone",r)},expression:"form.phone"}})],1),t("el-form-item",{attrs:{label:"Status:",required:""}},[t("el-select",{attrs:{placeholder:"Status"},model:{value:e.form.status,callback:function(r){e.$set(e.form,"status",r)},expression:"form.status"}},e._l(e.statusEnum,(function(e){return t("el-option",{key:e.key,attrs:{value:e.key,label:e.value}})})),1)],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("Submit")]),t("el-button",{on:{click:e.resetForm}},[e._v("Reset")])],1)],1)],1)},o=[],s=t("5530"),l=t("2f62"),n=t("c24f"),m={data:function(){return{form:{id:null,userName:"",password:"",realName:"",role:3,status:1,age:"",sex:"",birthDay:null,phone:null},formLoading:!1,rules:{userName:[{required:!0,message:"Please enter the user name",trigger:"blur"}],realName:[{required:!0,message:"Please enter your real name",trigger:"blur"}]}}},created:function(){var e=this.$route.query.id,r=this;e&&0!==parseInt(e)&&(r.formLoading=!0,n["a"].selectUser(e).then((function(e){r.form=e.response,r.formLoading=!1})))},methods:Object(s["a"])({submitForm:function(){var e=this,r=this;this.$refs.form.validate((function(t){if(!t)return!1;e.formLoading=!0,n["a"].createUser(e.form).then((function(e){1===e.code?(r.$message.success(e.message),r.delCurrentView(r).then((function(){r.$router.push("/user/admin/list")}))):(r.$message.error(e.message),r.formLoading=!1)})).catch((function(e){r.formLoading=!1}))}))},resetForm:function(){var e=this.form.id;this.$refs["form"].resetFields(),this.form={id:null,userName:"",password:"",realName:"",role:3,status:1,age:"",sex:"",birthDay:null,phone:null},this.form=e}},Object(l["b"])("tagsView",{delCurrentView:"delCurrentView"})),computed:Object(s["a"])(Object(s["a"])({},Object(l["c"])("enumItem",["enumFormat"])),Object(l["e"])("enumItem",{sexEnum:function(e){return e.user.sexEnum},roleEnum:function(e){return e.user.roleEnum},statusEnum:function(e){return e.user.statusEnum}}))},u=m,i=t("2877"),f=Object(i["a"])(u,a,o,!1,null,null,null);r["default"]=f.exports}}]);
 | 
			
		||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -0,0 +1 @@
 | 
			
		||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b4bb354"],{2017:function(e,s,o){"use strict";o("cafe")},"7a98":function(e,s,o){},"9ed6":function(e,s,o){"use strict";o.r(s);var t=function(){var e=this,s=e.$createElement,o=e._self._c||s;return o("div",{staticClass:"login-container"},[o("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[o("div",{staticClass:"title-container"},[o("h3",{staticClass:"title"},[e._v("TEKSystemsQuestion Bank Admin Portal")])]),o("el-form-item",{attrs:{prop:"userName"}},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"user"}})],1),o("el-input",{ref:"userName",attrs:{placeholder:"Username",name:"userName",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.userName,callback:function(s){e.$set(e.loginForm,"userName",s)},expression:"loginForm.userName"}})],1),o("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(s){e.capsTooltip=s},expression:"capsTooltip"}},[o("el-form-item",{attrs:{prop:"password"}},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"password"}})],1),o("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"Password",name:"password",tabindex:"2","auto-complete":"on"},on:{blur:function(s){e.capsTooltip=!1}},nativeOn:{keyup:[function(s){return e.checkCapslock(s)},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.handleLogin(s)}]},model:{value:e.loginForm.password,callback:function(s){e.$set(e.loginForm,"password",s)},expression:"loginForm.password"}}),o("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[o("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),o("el-checkbox",{staticStyle:{"margin-bottom":"20px","margin-left":"5px"},model:{value:e.loginForm.remember,callback:function(s){e.$set(e.loginForm,"remember",s)},expression:"loginForm.remember"}},[e._v("Remember me")]),o("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(s){return s.preventDefault(),e.handleLogin(s)}}},[e._v("Login")])],1),e._m(0)],1)},n=[function(){var e=this,s=e.$createElement,o=e._self._c||s;return o("div",{staticClass:"account-foot-copyright"},[o("span",[e._v("Copyright © 2020 TEKSystems")])])}],a=o("5530"),r=o("2f62"),i=o("7ded"),l={name:"Login",data:function(){var e=function(e,s,o){s.length<5?o(new Error("The user name cannot be less than 5 characters.")):o()},s=function(e,s,o){s.length<5?o(new Error("The password must be no less than 5 characters.")):o()};return{loginForm:{userName:"",password:"",remember:!1},loginRules:{userName:[{required:!0,trigger:"blur",validator:e}],password:[{required:!0,trigger:"blur",validator:s}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1}},created:function(){},mounted:function(){""===this.loginForm.userName?this.$refs.userName.focus():""===this.loginForm.password&&this.$refs.password.focus()},destroyed:function(){},methods:Object(a["a"])({checkCapslock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=e.shiftKey,o=e.key;o&&1===o.length&&(this.capsTooltip=!!(s&&o>="a"&&o<="z"||!s&&o>="A"&&o<="Z")),"CapsLock"===o&&!0===this.capsTooltip&&(this.capsTooltip=!1)},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this,s=this;this.$refs.loginForm.validate((function(o){if(!o)return!1;e.loading=!0,i["a"].login(e.loginForm).then((function(e){e&&1===e.code?(s.setUserName(s.loginForm.userName),s.$router.push({path:"/"})):(s.loading=!1,s.$message({message:e.message,type:"error"}))})).catch((function(e){s.loading=!1}))}))}},Object(r["d"])("user",["setUserName"]))},c=l,p=(o("2017"),o("aec7"),o("2877")),u=Object(p["a"])(c,t,n,!1,null,"11d46f0a",null);s["default"]=u.exports},aec7:function(e,s,o){"use strict";o("7a98")},cafe:function(e,s,o){}}]);
 | 
			
		||||
@ -0,0 +1 @@
 | 
			
		||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5bc4738d"],{"18b7":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"form",attrs:{model:e.form,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"industry:",required:""}},[n("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("Submit")]),n("el-button",{on:{click:e.resetForm}},[e._v("Reset")])],1)],1)],1)},i=[],a=n("5530"),o=n("2f62"),s=n("5643"),u={data:function(){return{form:{id:null,name:"",level:1,levelName:""},formLoading:!1}},created:function(){var e=this.$route.query.id,t=this;e&&0!==parseInt(e)&&(t.formLoading=!0,s["a"].select(e).then((function(e){t.form=e.response,t.formLoading=!1})))},methods:Object(a["a"])({submitForm:function(){var e=this;this.formLoading=!0,this.form.levelName=this.enumFormat(this.levelEnum,this.form.level),s["a"].edit(this.form).then((function(t){1===t.code?(e.$message.success(t.message),e.delCurrentView(e).then((function(){e.$router.push("/education/industry/list")}))):(e.$message.error(t.message),e.formLoading=!1)})).catch((function(t){e.formLoading=!1}))},resetForm:function(){this.$refs["form"].resetFields(),this.form={id:null,name:"",level:1,levelName:""}}},Object(o["b"])("tagsView",{delCurrentView:"delCurrentView"})),computed:Object(a["a"])(Object(a["a"])({},Object(o["c"])("enumItem",["enumFormat"])),Object(o["e"])("enumItem",{levelEnum:function(e){return e.user.levelEnum}}))},m=u,l=n("2877"),c=Object(l["a"])(m,r,i,!1,null,null,null);t["default"]=c.exports},5643:function(e,t,n){"use strict";var r=n("b775");t["a"]={list:function(e){return Object(r["a"])("/api/admin/industry/list")},pageList:function(e){return Object(r["a"])("/api/admin/industry/page",e)},edit:function(e){return Object(r["a"])("/api/admin/industry/edit",e)},select:function(e){return Object(r["a"])("/api/admin/industry/select/"+e)},deleteSubject:function(e){return Object(r["a"])("/api/admin/industry/delete/"+e)}}}}]);
 | 
			
		||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user