From 3f122cdea47235995c5e64860d90df7f9a131ef3 Mon Sep 17 00:00:00 2001 From: BoBoooooo <17746714@qq.com> Date: Fri, 19 Jan 2018 17:35:27 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1=E8=A1=A8?= =?UTF-8?q?=E7=BB=93=E6=9E=84=202.=E6=96=B0=E5=A2=9E=E5=91=98=E5=B7=A5?= =?UTF-8?q?=E5=BD=93=E6=97=A5=E8=80=83=E5=8B=A4=E4=BF=A1=E6=81=AF=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=8A=9F=E8=83=BD=203.=E5=8A=A0=E5=85=A5=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1Echats=E6=9F=B1=E7=8A=B6=E5=9B=BE=EF=BC=8C=E6=97=A5?= =?UTF-8?q?=E5=8E=86=E5=9B=BE=EF=BC=88=E5=BE=85=E5=AE=8C=E5=96=84=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 7 + package.json | 14 +- src/api/KaoQin/Attendance.js | 10 +- src/router/index.js | 2 +- src/views/KaoQin/count.vue | 251 ++++++++++++++++++++++++---------- src/views/KaoQin/import.vue | 166 +++++++++------------- src/views/dashboard/index.vue | 13 +- src/views/system/users.vue | 2 +- 8 files changed, 274 insertions(+), 191 deletions(-) diff --git a/config/index.js b/config/index.js index d81c42b..b13c85e 100644 --- a/config/index.js +++ b/config/index.js @@ -48,6 +48,13 @@ module.exports = { pathRewrite: { '^/report': ''//这里理解成用‘/api’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add',直接写‘/api/user/add’即可 } + }, + '/music': { + target: 'http://music.163.com/api/playlist/detail',//设置你调用的接口域名和端口号 别忘了加http + changeOrigin: true, + pathRewrite: { + '^/music': ''//这里理解成用‘/api’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add',直接写‘/api/user/add’即可 + } } diff --git a/package.json b/package.json index 0f29888..7aae237 100644 --- a/package.json +++ b/package.json @@ -14,23 +14,23 @@ "axios": "0.17.1", "echarts": "^3.8.5", "element-ui": "^2.0.11", + "file-saver": "1.3.3", + "font-awesome": "4.7.0", "http-proxy-middleware": "^0.17.3", "jquery": "^3.2.1", "js-cookie": "2.1.4", "normalize.css": "7.0.0", "nprogress": "0.2.0", - "vue": "2.5.2", - "file-saver": "1.3.3", - "font-awesome": "4.7.0", - - "screenfull": "3.3.2", + "screenfull": "3.3.2", "showdown": "1.8.5", "simplemde": "1.11.2", "sortablejs": "1.7.0", + "vue": "2.5.2", + "vue-aplayer": "^1.0.1", "vue-multiselect": "^2.0.8", - "vue-splitpane": "1.0.2", - "vuedraggable": "2.15.0", "vue-router": "3.0.1", + "vue-splitpane": "1.0.2", + "vuedraggable": "2.15.0", "vuex": "3.0.1" }, "devDependencies": { diff --git a/src/api/KaoQin/Attendance.js b/src/api/KaoQin/Attendance.js index 270f9d2..44a7bda 100644 --- a/src/api/KaoQin/Attendance.js +++ b/src/api/KaoQin/Attendance.js @@ -24,17 +24,11 @@ export function AttenDetailByPerson(ID){ }) } -export function SaveNewAtten(data){ - return fetch({ - url: '/Attendance/SaveNewAtten', - method: 'post', - data - }) -} + export function UpdateAtten(data){ return fetch({ - url: '/Attendance/UpdateAtten', + url: '/Attendance/SaveAtten', method: 'post', data }) diff --git a/src/router/index.js b/src/router/index.js index 39bbd27..5c855d9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -76,7 +76,7 @@ export const asyncRouterMap = [ noDropdown:true, meta: { role: ['user','system'],title:"Table" ,icon:'zonghe',father:true}, meta: { role: ['user','system'],title:"table" ,icon:'zonghe'}, - children: [{ path: 'import', name: 'table1', component: _import('table/index'), meta: { role: ['user','system'] ,title:"表格"}}] + children: [{ path: 'import', name: 'table1', component: _import('table/index'), meta: { role: ['user','system'] ,title:"EasyMock"}}] }, { diff --git a/src/views/KaoQin/count.vue b/src/views/KaoQin/count.vue index 0df8c9d..6f1fb78 100644 --- a/src/views/KaoQin/count.vue +++ b/src/views/KaoQin/count.vue @@ -7,7 +7,7 @@
-
+
@@ -18,7 +18,9 @@ 年报 - + +
+
@@ -28,81 +30,182 @@