Commit 9dd0e1cc authored by sixiaofeng's avatar sixiaofeng

1

parent 366464d5
......@@ -52,7 +52,7 @@
dot
required
title="入职时间"
:content="formatDate(acceptJoin.joinTime || new Date().getTime(), 'YYYY-MM-DD')"
:content="formatDate(acceptJoin.joinTime*1000 || new Date().getTime(), 'YYYY-MM-DD')"
@click="show = true"
/>
<van-calendar
......@@ -122,7 +122,7 @@ export default Vue.extend({
depId: '',
entId: '',
hash: '',
joinTime: new Date().getTime(),
joinTime: Math.round(new Date().getTime()/1000),
phone: '',
position: ''
}
......@@ -200,7 +200,7 @@ export default Vue.extend({
},
// 入职日期
selectJoinTime(date: Date) {
this.acceptJoin.joinTime = new Date(date).getTime()
this.acceptJoin.joinTime = Math.round(new Date(date).getTime()/1000)
this.show = false
this.date = this.formatDate(date)
},
......@@ -215,7 +215,7 @@ export default Vue.extend({
}).then(() => {
this.acceptJoin.entId = this.entId
this.acceptJoin.depId = this.selectedDepId
this.acceptJoin.expiration = this.acceptJoin.joinTime + 6000000
this.acceptJoin.expiration = this.acceptJoin.joinTime + 24 * 60 * 60
this.acceptJoin.inviterId = process.env.NODE_ENV ==='production'? getPublicKey(): "1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR"
this.acceptJoin.oaServer = localStorage.getItem('ENT_INFO')? JSON.parse(localStorage.getItem('ENT_INFO') as any).oaServer : 'http://172.16.101.107:20000'
const {depId,entId,expiration,inviterId,joinTime,name,oaServer,phone,position} = this.acceptJoin
......
......@@ -121,7 +121,7 @@ export default Vue.extend({
this.loading = true
const {depId,entId,expiration,hash,inviterId,joinTime,name,oaServer,phone,position} = this.info as AcceptJoinDTO
let req = {
depId,entId,expiration: Math.round(Number(expiration)/1000) ,hash,inviterId,joinTime: Math.round(Number(joinTime)/1000),name,oaServer,phone,position
depId,entId,expiration: Number(expiration) ,hash,inviterId,joinTime: Number(joinTime),name,oaServer,phone,position
}
this.$service.enterprise.acceptJoin(req)
.then((res: any) => {
......
......@@ -100,7 +100,7 @@ export default Vue.extend({
}
},
mounted() {
const res = JSON.parse(getUserInfo())
const res = JSON.parse(getUserInfo() || "{}")
console.log(res,typeof res,'哈哈哈');
this.entId = process.env.NODE_ENV==='production'?res.entId : '166961152260050944'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment