vue admin update

This commit is contained in:
czm 2021-01-12 11:11:16 +08:00
parent d856c7c821
commit 4916845156
3 changed files with 3 additions and 1 deletions

View File

@ -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-0b3dd98c.c620ebae.css" rel="prefetch"><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-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-0b3dd98c.121c5c0b.js" rel="prefetch"><link href="static/js/chunk-157f9069.a3a5d23b.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.79d69061.js" rel="prefetch"><link href="static/js/chunk-2d230fe7.042d38d1.js" rel="prefetch"><link href="static/js/chunk-360c43ba.33132614.js" rel="prefetch"><link href="static/js/chunk-3e96bd8c.42c442e5.js" rel="prefetch"><link href="static/js/chunk-4010637e.8033b4bd.js" rel="prefetch"><link href="static/js/chunk-42236473.f7640463.js" rel="prefetch"><link href="static/js/chunk-5bc4738d.a117625d.js" rel="prefetch"><link href="static/js/chunk-6092f506.272010c0.js" rel="prefetch"><link href="static/js/chunk-75f11c77.3dd81f12.js" rel="prefetch"><link href="static/js/chunk-78234ca2.bd6528ba.js" rel="prefetch"><link href="static/js/chunk-793f0082.07cca43c.js" rel="prefetch"><link href="static/js/chunk-873a42e2.641597a8.js" rel="prefetch"><link href="static/js/chunk-a85d3c1e.6ddf21b1.js" rel="prefetch"><link href="static/js/chunk-a9d03770.a2240e7f.js" rel="prefetch"><link href="static/js/chunk-b1da6300.556ef3f0.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.854f0ab9.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.850df01d.js" rel="preload" as="script"><link href="static/js/index.da98bd30.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.850df01d.js"></script><script src="static/js/index.da98bd30.js"></script></body></html>
})()</script><link href="static/css/chunk-0b3dd98c.c620ebae.css" rel="prefetch"><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-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-0b3dd98c.121c5c0b.js" rel="prefetch"><link href="static/js/chunk-157f9069.a3a5d23b.js" rel="prefetch"><link href="static/js/chunk-2d0c138b.ed74857a.js" rel="prefetch"><link href="static/js/chunk-2d221bd2.014539eb.js" rel="prefetch"><link href="static/js/chunk-2d2300ef.79d69061.js" rel="prefetch"><link href="static/js/chunk-2d230fe7.042d38d1.js" rel="prefetch"><link href="static/js/chunk-360c43ba.33132614.js" rel="prefetch"><link href="static/js/chunk-3e96bd8c.42c442e5.js" rel="prefetch"><link href="static/js/chunk-4010637e.8033b4bd.js" rel="prefetch"><link href="static/js/chunk-42236473.f7640463.js" rel="prefetch"><link href="static/js/chunk-5bc4738d.a117625d.js" rel="prefetch"><link href="static/js/chunk-6092f506.272010c0.js" rel="prefetch"><link href="static/js/chunk-75f11c77.3dd81f12.js" rel="prefetch"><link href="static/js/chunk-78234ca2.bd6528ba.js" rel="prefetch"><link href="static/js/chunk-793f0082.07cca43c.js" rel="prefetch"><link href="static/js/chunk-873a42e2.641597a8.js" rel="prefetch"><link href="static/js/chunk-a85d3c1e.6ddf21b1.js" rel="prefetch"><link href="static/js/chunk-a9d03770.a2240e7f.js" rel="prefetch"><link href="static/js/chunk-b1da6300.556ef3f0.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.854f0ab9.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.850df01d.js" rel="preload" as="script"><link href="static/js/index.33d08d0b.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.850df01d.js"></script><script src="static/js/index.33d08d0b.js"></script></body></html>

View File

@ -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",prop:"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=[],l=t("5530"),o=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:"Please enter a username",trigger:"blur"}],realName:[{required:!0,message:"Please enter a real name",trigger:"blur"}],userLevel:[{required:!0,message:"Please select grade",trigger:"change"}],password:[{required:!0,message:"Please enter a password",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(l["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(o["b"])("tagsView",{delCurrentView:"delCurrentView"})),computed:Object(l["a"])(Object(l["a"])({},Object(o["c"])("enumItem",["enumFormat"])),Object(o["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}}]);

File diff suppressed because one or more lines are too long