vue2-client 1.2.19 → 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/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **##1.2.16 - 1.2.18 -2022-03-25 @朱子峰**
4
+ **##1.2.17 - 1.2.19 -2022-03-25 @朱子峰**
5
5
  - 问题修复:
6
6
  - [钉钉消息推送]:将类别字段从int修改为String,直接传字典中的值
7
7
  - 功能修改:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.2.19",
3
+ "version": "1.2.22",
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,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: currentEmpId,
499
+ empId: this.empIdInDataBase,
499
500
  time: new Date()
500
501
  })
501
502
  .then(res => {
@@ -513,7 +514,14 @@
513
514
  },
514
515
  // 获取当前登陆员工ID
515
516
  getCurrentEmpId () {
516
- return this.currUser.id
517
+ return post(EmployeeDetailsViewApi.getEmployeeId, {
518
+ name: this.currUser.ename
519
+ })
520
+ .then(res => {
521
+ this.empIdInDataBase = res
522
+ }, err => {
523
+ console.log(err)
524
+ })
517
525
  },
518
526
  // 转移工单按钮业务逻辑
519
527
  transferBtn () {
@@ -663,7 +671,7 @@
663
671
  },
664
672
  // 控制关闭工单按钮可用状态
665
673
  closeBtnDisable () {
666
- return this.step === 0 || this.disableCloseBtn || this.details.id != this.currUser.id
674
+ return this.step === 0 || this.disableCloseBtn || this.details.name != this.currUser.ename
667
675
  },
668
676
  // 优先级文字显示
669
677
  showPriority () {
@@ -1,14 +1,16 @@
1
- const EmployeeDetailsViewApi = {
2
- // 查询:获取员工详细信息
3
- getEmployeeDetails: '/webmeterapi/getEmployeeDetails',
4
- // 查询:获取员工上一周应答工单数量
5
- getConfirmTicketsCountWeekly: '/webmeterapi/getConfirmTicketsCountWeekly',
6
- // 查询:获取员工上一周完成工单数量
7
- getFinishedTicketsCountWeekly: '/webmeterapi/getFinishedTicketsCountWeekly',
8
- // 查询:是否存在此员工
9
- findEmpName: '/webmeterapi/findEmpName',
10
- // 查询:获取所有员工名,供前端展示备选项
11
- getAllEmployeeName: '/webmeterapi/getAllEmployeeName'
12
- }
13
-
14
- export { EmployeeDetailsViewApi }
1
+ const EmployeeDetailsViewApi = {
2
+ // 查询:获取员工详细信息
3
+ getEmployeeDetails: '/webmeterapi/getEmployeeDetails',
4
+ // 查询:获取员工上一周应答工单数量
5
+ getConfirmTicketsCountWeekly: '/webmeterapi/getConfirmTicketsCountWeekly',
6
+ // 查询:获取员工上一周完成工单数量
7
+ getFinishedTicketsCountWeekly: '/webmeterapi/getFinishedTicketsCountWeekly',
8
+ // 查询:是否存在此员工
9
+ findEmpName: '/webmeterapi/findEmpName',
10
+ // 查询:获取所有员工名,供前端展示备选项
11
+ getAllEmployeeName: '/webmeterapi/getAllEmployeeName',
12
+ // 查询:根据员工名,获取员工id
13
+ getEmployeeId: '/webmeterapi/getEmployeeId'
14
+ }
15
+
16
+ export { EmployeeDetailsViewApi }