diff --git a/hb_client/package.json b/hb_client/package.json index c429f8b..2162f0b 100644 --- a/hb_client/package.json +++ b/hb_client/package.json @@ -28,6 +28,7 @@ "file-saver": "^2.0.2", "fuse.js": "^6.4.6", "js-cookie": "^3.0.0", + "mammoth": "^1.4.19", "normalize.css": "^8.0.1", "nprogress": "0.2.0", "path-to-regexp": "^6.2.0", @@ -37,7 +38,7 @@ "vue-quill-editor": "^3.0.6", "vue-router": "^3.5.2", "vuex": "^3.6.2", - "webpack-dev-server": "^4.2.0", + "webpack-dev-server": "^4.7.3", "xlsx": "^0.17.1" }, "devDependencies": { diff --git a/hb_client/src/api/hrm.js b/hb_client/src/api/hrm.js new file mode 100644 index 0000000..beca22f --- /dev/null +++ b/hb_client/src/api/hrm.js @@ -0,0 +1,15 @@ +import request from '@/utils/request' +export function faceLogin(data) { + return request({ + url: '/hrm/facelogin/', + method: 'post', + data + }) +} +export function clockRecord(data) { + return request({ + url: '/hrm/clock_record/', + method: 'post', + data + }) +} diff --git a/hb_client/src/api/user.js b/hb_client/src/api/user.js index ac708c3..df7dac1 100644 --- a/hb_client/src/api/user.js +++ b/hb_client/src/api/user.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function login(data) { return request({ - url: '/token/', + url: '/auth/token/', method: 'post', data }) @@ -10,7 +10,7 @@ export function login(data) { export function logout() { return request({ - url: '/token/black/', + url: '/auth/token/black/', method: 'get' }) } diff --git a/hb_client/src/components/Gantt/dashGantt.vue b/hb_client/src/components/Gantt/dashGantt.vue index 4d84376..9bb04ed 100644 --- a/hb_client/src/components/Gantt/dashGantt.vue +++ b/hb_client/src/components/Gantt/dashGantt.vue @@ -299,6 +299,18 @@ } } , }, + watch: { + '$route.path': function (newVal) { + if(newVal==='/dashboard'){ + this.$refs.leftMenu.handlerSelect(this.list[0]); + this.$refs.chart.scrollTo({ + top: 0, + left: this.list[0].left - 30, + behavior: "smooth" + }); + } + } + }, data() { return { windowWidth:0, diff --git a/hb_client/src/components/faceLogin/tracking.vue b/hb_client/src/components/faceLogin/tracking.vue index 4ef978b..bb11c75 100644 --- a/hb_client/src/components/faceLogin/tracking.vue +++ b/hb_client/src/components/faceLogin/tracking.vue @@ -10,8 +10,7 @@ - diff --git a/hb_client/src/views/qm/producttest.vue b/hb_client/src/views/qm/producttest.vue index e20975a..cb3a7d3 100644 --- a/hb_client/src/views/qm/producttest.vue +++ b/hb_client/src/views/qm/producttest.vue @@ -91,6 +91,14 @@ + + + + + +