vue2-client 1.2.21 → 1.2.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.2.21",
3
+ "version": "1.2.24",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -276,7 +276,9 @@
276
276
  // 描述加载控制
277
277
  descriptionLoading: false,
278
278
  // 用于刷新按钮倒计时显示
279
- btnCountdownText: 5
279
+ btnCountdownText: 5,
280
+ // 当前登陆用户在数据库表中id,临时使用,之后会替换
281
+ empIdInDataBase: undefined
280
282
  }
281
283
  },
282
284
  mounted () {
@@ -492,11 +494,11 @@
492
494
  },
493
495
  // 确认工单按钮业务逻辑
494
496
  confirmTicketBtn () {
495
- const currentEmpId = this.getCurrentEmpId()
497
+ this.getCurrentEmpId()
496
498
  return post(TicketDetailsViewApi.confirmTicket, {
497
499
  ticketId: this.ticketId,
498
- empId: currentEmpId,
499
- time: new Date()
500
+ time: new Date(),
501
+ empId: this.empIdInDataBase
500
502
  })
501
503
  .then(res => {
502
504
  if (res !== 0) {
@@ -513,11 +515,11 @@
513
515
  },
514
516
  // 获取当前登陆员工ID
515
517
  getCurrentEmpId () {
516
- post(EmployeeDetailsViewApi.getEmployeeId, {
518
+ return post(EmployeeDetailsViewApi.getEmployeeId, {
517
519
  name: this.currUser.ename
518
520
  })
519
521
  .then(res => {
520
- return res
522
+ this.empIdInDataBase = res
521
523
  }, err => {
522
524
  console.log(err)
523
525
  })