diff --git a/README.md b/README.md index a2584b0738ea969bf3c093f4ee5c1e4e07b2497c..6035e444accdd00ec4ad2f532004f813b6e40d7d 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,29 @@ # irs_vue ## Project setup + ``` npm install ``` ### Compiles and hot-reloads for development + ``` npm run serve ``` ### Compiles and minifies for production + ``` npm run build ``` ### Lints and fixes files + ``` npm run lint ``` ### Customize configuration + See [Configuration Reference](https://cli.vuejs.org/config/). diff --git a/public/addstation.html b/public/addstation.html index da53d42bc36e60d545a1ab636ee21e1b583dace1..21bdf0630bfb707eae81880d5cf0b16acca3dd27 100644 --- a/public/addstation.html +++ b/public/addstation.html @@ -10,10 +10,10 @@

新增图书

- -
- -
+ +
+ +
@@ -24,30 +24,29 @@ import axios from "axios"; new Vue({ - el:"#app", - data(){ - return{ - book:{} + el: "#app", + data() { + return { + book: {} } }, - methods:{ - submitForm(){ + methods: { + submitForm() { - var _this=this + var _this = this axios({ - method:"post", - url:"/addBookServlet", - data:_this.book - }).then(function (resp){ - if(resp.data == "success"){ - window.location.href="/BookList.html"; + method: "post", + url: "/addBookServlet", + data: _this.book + }).then(function (resp) { + if (resp.data == "success") { + window.location.href = "/BookList.html"; } }) } } - }); diff --git a/public/index.html b/public/index.html index 3e5a13962197105f2078d2a224cc57dfa09b4893..e33089932007615435f0997ddc289e20378ee7dd 100644 --- a/public/index.html +++ b/public/index.html @@ -1,17 +1,18 @@ - + <%= htmlWebpackPlugin.options.title %> - - - -
- - + + + +
+ + diff --git a/src/components/ForUser/enterpriseList.vue b/src/components/ForUser/enterpriseList.vue index 8f905e0a7e4cd2ce91c249878d4367931442f691..d1a3632f07beb6e65ef2b8db61075a6b2a92fc23 100644 --- a/src/components/ForUser/enterpriseList.vue +++ b/src/components/ForUser/enterpriseList.vue @@ -1,71 +1,59 @@ diff --git a/src/components/ForUser/wikiList.vue b/src/components/ForUser/wikiList.vue index 9beadd061536ce64b7303f5ab72fcc13b6aa4d95..d9818c512891892c883d9a64890a9d07fa6ce7a8 100644 --- a/src/components/ForUser/wikiList.vue +++ b/src/components/ForUser/wikiList.vue @@ -1,7 +1,46 @@