vue2-client 1.2.21 → 1.2.22
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
|
@@ -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,10 +494,9 @@
|
|
|
492
494
|
},
|
|
493
495
|
// 确认工单按钮业务逻辑
|
|
494
496
|
confirmTicketBtn () {
|
|
495
|
-
const currentEmpId = this.getCurrentEmpId()
|
|
496
497
|
return post(TicketDetailsViewApi.confirmTicket, {
|
|
497
498
|
ticketId: this.ticketId,
|
|
498
|
-
empId:
|
|
499
|
+
empId: this.empIdInDataBase,
|
|
499
500
|
time: new Date()
|
|
500
501
|
})
|
|
501
502
|
.then(res => {
|
|
@@ -513,11 +514,11 @@
|
|
|
513
514
|
},
|
|
514
515
|
// 获取当前登陆员工ID
|
|
515
516
|
getCurrentEmpId () {
|
|
516
|
-
post(EmployeeDetailsViewApi.getEmployeeId, {
|
|
517
|
+
return post(EmployeeDetailsViewApi.getEmployeeId, {
|
|
517
518
|
name: this.currUser.ename
|
|
518
519
|
})
|
|
519
520
|
.then(res => {
|
|
520
|
-
|
|
521
|
+
this.empIdInDataBase = res
|
|
521
522
|
}, err => {
|
|
522
523
|
console.log(err)
|
|
523
524
|
})
|