This commit is contained in:
alvis 2021-01-26 09:14:15 +08:00
parent 7fc051fdb0
commit 3be08dfa92
46 changed files with 558 additions and 548 deletions

File diff suppressed because it is too large Load Diff

View File

@ -23,15 +23,15 @@
"nprogress": "0.2.0",
"vue": "^2.6.10",
"vue-count-to": "^1.0.13",
"vue-router": "^3.4.9",
"vue-router": "^3.5.0",
"vuex": "^3.6.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.5.10",
"@vue/cli-plugin-eslint": "^4.5.10",
"@vue/cli-plugin-router": "^4.5.10",
"@vue/cli-plugin-vuex": "^4.5.10",
"@vue/cli-service": "^4.5.10",
"@vue/cli-plugin-babel": "^4.5.11",
"@vue/cli-plugin-eslint": "^4.5.11",
"@vue/cli-plugin-router": "^4.5.11",
"@vue/cli-plugin-vuex": "^4.5.11",
"@vue/cli-service": "^4.5.11",
"@vue/eslint-config-standard": "^4.0.0",
"babel-eslint": "^10.1.0",
"eslint": "^5.16.0",

View File

@ -65,6 +65,7 @@ export default {
})
},
resetForm () {
let lastId = this.form.id
this.$refs['form'].resetFields()
this.form = {
id: null,
@ -72,6 +73,7 @@ export default {
level: 1,
levelName: ''
}
this.form.id = lastId
},
...mapActions('tagsView', { delCurrentView: 'delCurrentView' })
},

File diff suppressed because it is too large Load Diff

View File

@ -22,15 +22,15 @@
"normalize.css": "8.0.1",
"nprogress": "0.2.0",
"vue": "^2.6.10",
"vue-router": "^3.4.9",
"vue-router": "^3.5.0",
"vuex": "^3.6.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.5.10",
"@vue/cli-plugin-eslint": "^4.5.10",
"@vue/cli-plugin-router": "^4.5.10",
"@vue/cli-plugin-vuex": "^4.5.10",
"@vue/cli-service": "^4.5.10",
"@vue/cli-plugin-babel": "^4.5.11",
"@vue/cli-plugin-eslint": "^4.5.11",
"@vue/cli-plugin-router": "^4.5.11",
"@vue/cli-plugin-vuex": "^4.5.11",
"@vue/cli-service": "^4.5.11",
"@vue/eslint-config-standard": "^4.0.0",
"babel-eslint": "^10.0.3",
"eslint": "^5.16.0",

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-066bbd34.c306629d.css" rel="prefetch"><link href="static/css/chunk-111f3671.d650a2aa.css" rel="prefetch"><link href="static/css/chunk-157f9069.c306629d.css" rel="prefetch"><link href="static/css/chunk-2e16d177.89936c18.css" rel="prefetch"><link href="static/css/chunk-360c43ba.c306629d.css" rel="prefetch"><link href="static/css/chunk-3f483335.7fbe318e.css" rel="prefetch"><link href="static/css/chunk-42236473.c306629d.css" rel="prefetch"><link href="static/css/chunk-5bc3d75d.c306629d.css" rel="prefetch"><link href="static/css/chunk-65f8ca6f.c306629d.css" rel="prefetch"><link href="static/css/chunk-7c62808c.c306629d.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-066bbd34.e65b5b8c.js" rel="prefetch"><link href="static/js/chunk-111f3671.a19eee04.js" rel="prefetch"><link href="static/js/chunk-157f9069.912a740e.js" rel="prefetch"><link href="static/js/chunk-16f9edc1.dfcf83b1.js" rel="prefetch"><link href="static/js/chunk-2d0c138b.23478c75.js" rel="prefetch"><link href="static/js/chunk-2d221bd2.c61740ad.js" rel="prefetch"><link href="static/js/chunk-2d2300ef.c26a2d70.js" rel="prefetch"><link href="static/js/chunk-2d230fe7.3bd3f709.js" rel="prefetch"><link href="static/js/chunk-2e16d177.57b4abda.js" rel="prefetch"><link href="static/js/chunk-360c43ba.128aec0d.js" rel="prefetch"><link href="static/js/chunk-3f483335.b933a213.js" rel="prefetch"><link href="static/js/chunk-42236473.75d179b9.js" rel="prefetch"><link href="static/js/chunk-5bc3d75d.6bcc86b7.js" rel="prefetch"><link href="static/js/chunk-65f8ca6f.5f893547.js" rel="prefetch"><link href="static/js/chunk-733c35b2.cc33c9f7.js" rel="prefetch"><link href="static/js/chunk-75f11c77.712f7d41.js" rel="prefetch"><link href="static/js/chunk-78234ca2.f041e2d5.js" rel="prefetch"><link href="static/js/chunk-793f0082.4fd8b561.js" rel="prefetch"><link href="static/js/chunk-7c62808c.76ce7e66.js" rel="prefetch"><link href="static/js/chunk-873a42e2.ebe3072e.js" rel="prefetch"><link href="static/js/chunk-a85d3c1e.a22c9ee2.js" rel="prefetch"><link href="static/js/chunk-a9d03770.95c1c960.js" rel="prefetch"><link href="static/js/chunk-bab2e2c4.4a1aea15.js" rel="prefetch"><link href="static/js/chunk-d0753fda.c8fcb898.js" rel="prefetch"><link href="static/css/chunk-vendors.ee57d822.css" rel="preload" as="style"><link href="static/css/index.187e8cba.css" rel="preload" as="style"><link href="static/js/chunk-vendors.09bde710.js" rel="preload" as="script"><link href="static/js/index.09dd60f1.js" rel="preload" as="script"><link href="static/css/chunk-vendors.ee57d822.css" rel="stylesheet"><link href="static/css/index.187e8cba.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.09bde710.js"></script><script src="static/js/index.09dd60f1.js"></script></body></html>
})()</script><link href="static/css/chunk-066bbd34.c306629d.css" rel="prefetch"><link href="static/css/chunk-111f3671.d650a2aa.css" rel="prefetch"><link href="static/css/chunk-157f9069.c306629d.css" rel="prefetch"><link href="static/css/chunk-2e16d177.89936c18.css" rel="prefetch"><link href="static/css/chunk-360c43ba.c306629d.css" rel="prefetch"><link href="static/css/chunk-3f483335.7fbe318e.css" rel="prefetch"><link href="static/css/chunk-42236473.c306629d.css" rel="prefetch"><link href="static/css/chunk-5bc3d75d.c306629d.css" rel="prefetch"><link href="static/css/chunk-65f8ca6f.c306629d.css" rel="prefetch"><link href="static/css/chunk-7c62808c.c306629d.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-066bbd34.03ed6de3.js" rel="prefetch"><link href="static/js/chunk-111f3671.7754c916.js" rel="prefetch"><link href="static/js/chunk-157f9069.1d42f391.js" rel="prefetch"><link href="static/js/chunk-16f9edc1.085e45ca.js" rel="prefetch"><link href="static/js/chunk-2d0c138b.b2c3b9ee.js" rel="prefetch"><link href="static/js/chunk-2d221bd2.c5c84d2c.js" rel="prefetch"><link href="static/js/chunk-2d2300ef.54e785b8.js" rel="prefetch"><link href="static/js/chunk-2d230fe7.3bd3f709.js" rel="prefetch"><link href="static/js/chunk-2e16d177.9260cb17.js" rel="prefetch"><link href="static/js/chunk-360c43ba.4ddda9e0.js" rel="prefetch"><link href="static/js/chunk-3f483335.8e5f48c2.js" rel="prefetch"><link href="static/js/chunk-42236473.c16f55dd.js" rel="prefetch"><link href="static/js/chunk-5bc3d75d.75653935.js" rel="prefetch"><link href="static/js/chunk-65f8ca6f.994f0890.js" rel="prefetch"><link href="static/js/chunk-733c35b2.3b3a554e.js" rel="prefetch"><link href="static/js/chunk-75f11c77.8356b661.js" rel="prefetch"><link href="static/js/chunk-78234ca2.9331a306.js" rel="prefetch"><link href="static/js/chunk-793f0082.3de9a403.js" rel="prefetch"><link href="static/js/chunk-7c62808c.6c074e60.js" rel="prefetch"><link href="static/js/chunk-873a42e2.e15b262c.js" rel="prefetch"><link href="static/js/chunk-a85d3c1e.e0650c76.js" rel="prefetch"><link href="static/js/chunk-a9d03770.1b93bda8.js" rel="prefetch"><link href="static/js/chunk-bab2e2c4.9c58688c.js" rel="prefetch"><link href="static/js/chunk-d0753fda.d9accd34.js" rel="prefetch"><link href="static/css/chunk-vendors.ee57d822.css" rel="preload" as="style"><link href="static/css/index.187e8cba.css" rel="preload" as="style"><link href="static/js/chunk-vendors.5e7faacb.js" rel="preload" as="script"><link href="static/js/index.062a0ec6.js" rel="preload" as="script"><link href="static/css/chunk-vendors.ee57d822.css" rel="stylesheet"><link href="static/css/index.187e8cba.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.5e7faacb.js"></script><script src="static/js/index.062a0ec6.js"></script></body></html>

View File

@ -1 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c138b"],{"44b7":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"form",attrs:{model:e.form,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"学科:",required:""}},[r("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),r("el-form-item",{attrs:{label:"年级:",required:""}},[r("el-select",{attrs:{placeholder:"年级"},model:{value:e.form.level,callback:function(t){e.$set(e.form,"level",t)},expression:"form.level"}},e._l(e.levelEnum,(function(e){return r("el-option",{key:e.key,attrs:{value:e.key,label:e.value}})})),1)],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("提交")]),r("el-button",{on:{click:e.resetForm}},[e._v("重置")])],1)],1)],1)},o=[],l=r("5530"),a=r("2f62"),i=r("c418"),m={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,i["a"].select(e).then((function(e){t.form=e.response,t.formLoading=!1})))},methods:Object(l["a"])({submitForm:function(){var e=this;this.formLoading=!0,this.form.levelName=this.enumFormat(this.levelEnum,this.form.level),i["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(a["b"])("tagsView",{delCurrentView:"delCurrentView"})),computed:Object(l["a"])(Object(l["a"])({},Object(a["c"])("enumItem",["enumFormat"])),Object(a["e"])("enumItem",{levelEnum:function(e){return e.user.levelEnum}}))},s=m,u=r("2877"),c=Object(u["a"])(s,n,o,!1,null,null,null);t["default"]=c.exports}}]);
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c138b"],{"44b7":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"form",attrs:{model:e.form,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"学科:",required:""}},[r("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),r("el-form-item",{attrs:{label:"年级:",required:""}},[r("el-select",{attrs:{placeholder:"年级"},model:{value:e.form.level,callback:function(t){e.$set(e.form,"level",t)},expression:"form.level"}},e._l(e.levelEnum,(function(e){return r("el-option",{key:e.key,attrs:{value:e.key,label:e.value}})})),1)],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("提交")]),r("el-button",{on:{click:e.resetForm}},[e._v("重置")])],1)],1)],1)},o=[],l=r("5530"),i=r("2f62"),a=r("c418"),m={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(l["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(){var e=this.form.id;this.$refs["form"].resetFields(),this.form={id:null,name:"",level:1,levelName:""},this.form.id=e}},Object(i["b"])("tagsView",{delCurrentView:"delCurrentView"})),computed:Object(l["a"])(Object(l["a"])({},Object(i["c"])("enumItem",["enumFormat"])),Object(i["e"])("enumItem",{levelEnum:function(e){return e.user.levelEnum}}))},s=m,u=r("2877"),c=Object(u["a"])(s,n,o,!1,null,null,null);t["default"]=c.exports}}]);

View File

@ -14,4 +14,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-099b9c43.1951fa25.css" rel="prefetch"><link href="static/css/chunk-122e80b5.dd8c5d56.css" rel="prefetch"><link href="static/css/chunk-1b8c8b54.b56209ba.css" rel="prefetch"><link href="static/css/chunk-1d601c29.dd8c5d56.css" rel="prefetch"><link href="static/css/chunk-31aa2150.ad364b97.css" rel="prefetch"><link href="static/css/chunk-5001fd2c.7bab6136.css" rel="prefetch"><link href="static/css/chunk-604488bc.f72e8178.css" rel="prefetch"><link href="static/css/chunk-66bf5956.dd8c5d56.css" rel="prefetch"><link href="static/css/chunk-69a4052e.54efd6ce.css" rel="prefetch"><link href="static/css/chunk-7d11f9e8.4381df1f.css" rel="prefetch"><link href="static/css/chunk-912d804c.dd8c5d56.css" rel="prefetch"><link href="static/js/chunk-099b9c43.2b0d0be9.js" rel="prefetch"><link href="static/js/chunk-122e80b5.5adae550.js" rel="prefetch"><link href="static/js/chunk-1b8c8b54.6fc4bcfd.js" rel="prefetch"><link href="static/js/chunk-1d601c29.57834ccc.js" rel="prefetch"><link href="static/js/chunk-2d20f362.9f976bb1.js" rel="prefetch"><link href="static/js/chunk-31aa2150.2ec94212.js" rel="prefetch"><link href="static/js/chunk-5001fd2c.363b0361.js" rel="prefetch"><link href="static/js/chunk-604488bc.9d88878a.js" rel="prefetch"><link href="static/js/chunk-66bf5956.4aca9353.js" rel="prefetch"><link href="static/js/chunk-69a4052e.9421b680.js" rel="prefetch"><link href="static/js/chunk-7d11f9e8.eec690e4.js" rel="prefetch"><link href="static/js/chunk-912d804c.70c612bd.js" rel="prefetch"><link href="static/js/chunk-ce360eb2.1e5589ad.js" rel="prefetch"><link href="static/css/chunk-vendors.f445a17a.css" rel="preload" as="style"><link href="static/css/index.f1742efb.css" rel="preload" as="style"><link href="static/js/chunk-vendors.23c337a2.js" rel="preload" as="script"><link href="static/js/index.239fa048.js" rel="preload" as="script"><link href="static/css/chunk-vendors.f445a17a.css" rel="stylesheet"><link href="static/css/index.f1742efb.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.23c337a2.js"></script><script src="static/js/index.239fa048.js"></script></body></html>
})()</script><link href="static/css/chunk-099b9c43.1951fa25.css" rel="prefetch"><link href="static/css/chunk-122e80b5.dd8c5d56.css" rel="prefetch"><link href="static/css/chunk-1b8c8b54.b56209ba.css" rel="prefetch"><link href="static/css/chunk-1d601c29.dd8c5d56.css" rel="prefetch"><link href="static/css/chunk-31aa2150.ad364b97.css" rel="prefetch"><link href="static/css/chunk-5001fd2c.7bab6136.css" rel="prefetch"><link href="static/css/chunk-604488bc.f72e8178.css" rel="prefetch"><link href="static/css/chunk-66bf5956.dd8c5d56.css" rel="prefetch"><link href="static/css/chunk-69a4052e.54efd6ce.css" rel="prefetch"><link href="static/css/chunk-7d11f9e8.4381df1f.css" rel="prefetch"><link href="static/css/chunk-912d804c.dd8c5d56.css" rel="prefetch"><link href="static/js/chunk-099b9c43.266e8a54.js" rel="prefetch"><link href="static/js/chunk-122e80b5.93f2b95c.js" rel="prefetch"><link href="static/js/chunk-1b8c8b54.201417ca.js" rel="prefetch"><link href="static/js/chunk-1d601c29.85bda04e.js" rel="prefetch"><link href="static/js/chunk-2d20f362.645cb270.js" rel="prefetch"><link href="static/js/chunk-31aa2150.a84e0180.js" rel="prefetch"><link href="static/js/chunk-5001fd2c.f46e498a.js" rel="prefetch"><link href="static/js/chunk-604488bc.1132785d.js" rel="prefetch"><link href="static/js/chunk-66bf5956.15b2ef0b.js" rel="prefetch"><link href="static/js/chunk-69a4052e.cf877c75.js" rel="prefetch"><link href="static/js/chunk-7d11f9e8.f0fd9ec1.js" rel="prefetch"><link href="static/js/chunk-912d804c.841bf2f3.js" rel="prefetch"><link href="static/js/chunk-ce360eb2.1e5589ad.js" rel="prefetch"><link href="static/css/chunk-vendors.f445a17a.css" rel="preload" as="style"><link href="static/css/index.f1742efb.css" rel="preload" as="style"><link href="static/js/chunk-vendors.f01df703.js" rel="preload" as="script"><link href="static/js/index.d6cee59b.js" rel="preload" as="script"><link href="static/css/chunk-vendors.f445a17a.css" rel="stylesheet"><link href="static/css/index.f1742efb.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.f01df703.js"></script><script src="static/js/index.d6cee59b.js"></script></body></html>