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 @@
-
添加百科
+
添加百科
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+ label="操作">
+
+ ok
+ 查看
+ 修改
+ 删除
@@ -111,75 +150,86 @@ import qs from "qs";
import axios from "axios";
export default {
- name: "wikiList",
- data() {
- return {
- tableData: [],
- form: {
- encTitle: '',
- encContext: '',
- encTime: ''
- },
- totalPageData: [],
- pageNum: 1,
- pageSize: 5,
- currentPage: 1,
- total: 1,
- dataShow: [],
- }
+ name: "wikiList",
+ data() {
+ return {
+ tableData: [],
+ form: {
+ encTitle: '',
+ encContext: '',
+ encTime: ''
+ }
+ }
+ },
+ methods: {
+ getData() {
+ const _this = this;
+ axios.get("http://localhost:82/ee/list").then(function (resp) {
+ _this.tableData = resp.data;
+ })
},
- methods: {
- getData() {
- const _this = this;
- axios.get("http://localhost:82/ee/list").then(function (resp) {
- _this.tableData = resp.data;
- _this.total = resp.data.length;
- _this.calcPageDate();
- })
- },
- calcPageDate() {
- if (this.tableData.length > 1) {
- this.pageNum = Math.ceil(this.tableData.length / this.pageSize) || 1;
- }
- for (let i = 0; i < this.pageNum; i++) {
- this.totalPageData[i] = this.tableData.slice(this.pageSize * i, this.pageSize * (i + 1));
- }
- this.dataShow = this.totalPageData[this.currentPage - 1];
- },
- handleSizeChange(val) {
- this.pageSize = val;
- this.calcPageDate();
- },
- handleCurrentChange(val) {
- this.currentPage = val;
- this.dataShow = this.totalPageData[val - 1];
- },
- reset() {
- this.getData();
- this.pageSize = 5;
- this.currentPage = 1;
- },
- deleteEnc(obj) {
- const _this = this
- console.log(obj)
- let del = qs.stringify({"encId": obj})
- _this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(function () {
- axios.post("https://localhost:82/ee/del", del).then(function () {
- window.location.reload()
- })
-
- }).catch(function () {
- this.$message({
- type: 'info',
- message: '已取消删除'
- });
- });
- }
- }, mounted() {
+ change() {
+
+ },
+ addEnc() {
+ var _this = this
+ let addEnc = qs.stringify(_this.form)
+ axios.post("http://localhost:82/ee/add", addEnc).then(function () {
+ window.location.reload()
+ })
+ _this.dialogFormVisible = false
+ },
+ deleteEnc(obj) {
+ const _this = this
+ console.log(obj)
+ let dell = qs.stringify({"encId": obj})
+ _this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(function () {
+ axios.post("https://localhost:82/ee/del", dell).then(function () {
+ alert(obj)
+ window.location.reload()
+ })
+
+ }).catch(function () {
+ this.$message({
+ type: 'info',
+ message: '已取消删除'
+ });
+ });
+ },
+ updateEnc() {
+ var _this = this
+ let updateEncyclopedia = qs.stringify({
+ encId: _this.updateForm.encId,
+ encTitle: _this.updateForm.encTitle,
+ encContext: _this.updateForm.encContext,
+ encTime: _this.updateForm.encTime,
+
+ })
+ axios.post("http://localhost:82/ee/update", updateEncyclopedia).then(function () {
+ _this.dialogFormVisibleUpdate = false
+ window.location.reload()
+
+ })
+ },
+ handleRemove(file, fileList) {
+ console.log(file, fileList);
+ },
+ handlePreview(file) {
+ console.log(file);
+ },
+ handleExceed(files, fileList) {
+ this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
+ },
+ // eslint-disable-next-line no-unused-vars
+ beforeRemove(file, fileList) {
+ return this.$confirm(`确定移除 ${file.name}?`);
+ },
+
+ }, mounted() {
const _this = this
var user = JSON.parse(sessionStorage.getItem("user"))
var q1 = user.jurisdictionRoleList.findIndex(item => item.jId === '0' && (item.jrStatus === '强制启用' || item.jrStatus === '启用'))
diff --git a/src/components/Manager/enterpriseManager.vue b/src/components/Manager/enterpriseManager.vue
index 23c1d31554c0c17402d6720d33bee512870378c1..3e97edefe551bdb0c40713cb62381770d5ebdff3 100644
--- a/src/components/Manager/enterpriseManager.vue
+++ b/src/components/Manager/enterpriseManager.vue
@@ -1,171 +1,157 @@
-
+
+
添加企业
+
批量导入企业
-
添加企业
-
批量导入企业
+
+
+
+ 点击上传
-
-
-
- 点击上传
+ 只能上传Excel文件
+
+
+
- 只能上传Excel文件
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+ 修改
+
+ 删除
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查看
- 修改
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
+
+
+
diff --git a/src/components/Manager/logintest.vue b/src/components/Manager/logintest.vue
index 85dfc550ff0c6ade5c6e0b270d87bfcf5f3e9b96..6b838c8fdbc74b3817ef0ab075689444222b568a 100644
--- a/src/components/Manager/logintest.vue
+++ b/src/components/Manager/logintest.vue
@@ -1,21 +1,23 @@
-
- 测试登录页面
-
- 随便的账户:
-
- 随便的密码:
-
- 一键登录
-
+
+ 测试登录页面
+
+ 随便的账户:
+
+
+ 随便的密码:
+
+
+ 一键登录
+
\ No newline at end of file
diff --git a/src/components/userstageMain.vue b/src/components/userstageMain.vue
index 354fa7cca007c0e2fe011781c6e63d91c22a9aae..b8f4dc8a4c575f68a82da216d7a35afec9fd965f 100644
--- a/src/components/userstageMain.vue
+++ b/src/components/userstageMain.vue
@@ -30,11 +30,12 @@ export default {
diff --git a/src/main.js b/src/main.js
index 494d004a008c477982785ada0843d3b43bbb3b31..01df63612dd0df2d1c2e666559436b97edf23170 100644
--- a/src/main.js
+++ b/src/main.js
@@ -5,13 +5,11 @@ import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
-
Vue.config.productionTip = false
Vue.use(ElementUI)
new Vue({
- router,
- render: h => h(App),
- template: ''
+ router,
+ render: h => h(App)
}).$mount('#app')
diff --git a/src/router/index.js b/src/router/index.js
index f88111b9725522c3d8f0ca5380943969a04c8508..a268b628129da99bdbd9380e2de1bae279f2816b 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -178,9 +178,9 @@ const routes = [
]
const router = new VueRouter({
- mode: 'history',
- base: process.env.BASE_URL,
- routes
+ mode: 'history',
+ base: process.env.BASE_URL,
+ routes
})
export default router
diff --git a/src/store/vueX.js b/src/store/vueX.js
index 2aace623bf1d745ece9b47adec4a4a3c28b50d14..bc1d40ed238029bf6025def123df6be606ed50fb 100644
--- a/src/store/vueX.js
+++ b/src/store/vueX.js
@@ -4,19 +4,19 @@ import Vuex from "vuex"
Vue.use(Vuex);
export default new Vuex.Store({
- state:{
- user:{},
+ state: {
+ user: {},
jurisdictionRoleList: []
},
- mutations:{
+ mutations: {
// 保存当前菜单栏的路径
- saveUser(state,user){
+ saveUser(state, user) {
state.user = user
state.jurisdictionRoleList = user.jurisdictionRoleList
},
- clearUser(state){
- state.user=null
- state.jurisdictionRoleList = null;
+ clearUser(state) {
+ state.user = null
+ state.jurisdictionRoleList = null;
}
}
})
diff --git a/src/views/backstage.vue b/src/views/backstage.vue
index 691c6620c29ac98946570508ed1455b4a5e7f0a8..eee9bff1f1b621c8d7b166ffa2ae1e48cdae0036 100644
--- a/src/views/backstage.vue
+++ b/src/views/backstage.vue
@@ -45,14 +45,14 @@