vue2-client 1.2.18 → 1.2.21
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
package/package.json
CHANGED
|
@@ -513,7 +513,14 @@
|
|
|
513
513
|
},
|
|
514
514
|
// 获取当前登陆员工ID
|
|
515
515
|
getCurrentEmpId () {
|
|
516
|
-
|
|
516
|
+
post(EmployeeDetailsViewApi.getEmployeeId, {
|
|
517
|
+
name: this.currUser.ename
|
|
518
|
+
})
|
|
519
|
+
.then(res => {
|
|
520
|
+
return res
|
|
521
|
+
}, err => {
|
|
522
|
+
console.log(err)
|
|
523
|
+
})
|
|
517
524
|
},
|
|
518
525
|
// 转移工单按钮业务逻辑
|
|
519
526
|
transferBtn () {
|
|
@@ -663,7 +670,7 @@
|
|
|
663
670
|
},
|
|
664
671
|
// 控制关闭工单按钮可用状态
|
|
665
672
|
closeBtnDisable () {
|
|
666
|
-
return this.step === 0 || this.disableCloseBtn || this.details.
|
|
673
|
+
return this.step === 0 || this.disableCloseBtn || this.details.name != this.currUser.ename
|
|
667
674
|
},
|
|
668
675
|
// 优先级文字显示
|
|
669
676
|
showPriority () {
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
form: {
|
|
253
253
|
name: '',
|
|
254
254
|
category: undefined,
|
|
255
|
-
desc:
|
|
255
|
+
desc: undefined
|
|
256
256
|
},
|
|
257
257
|
// 获取序列号使用
|
|
258
258
|
data: {
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
})
|
|
364
364
|
.then(res => {
|
|
365
365
|
const serialNumber = res
|
|
366
|
-
if (
|
|
366
|
+
if (this.form.desc === undefined) {
|
|
367
367
|
this.form.desc = '该用户没有填写描述信息'
|
|
368
368
|
}
|
|
369
369
|
// 拿到序列号,将数据保存到数据库中
|
|
@@ -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
|
-
|
|
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 }
|