diff --git a/code/web/task_schedule/src/data/cpicxim/StaffInfo.ts b/code/web/task_schedule/src/data/cpicxim/StaffInfo.ts index 067a313..8ff21c6 100644 --- a/code/web/task_schedule/src/data/cpicxim/StaffInfo.ts +++ b/code/web/task_schedule/src/data/cpicxim/StaffInfo.ts @@ -2,31 +2,31 @@ * @Author: Kane * @Date: 2023-02-28 14:48:30 * @LastEditors: Kane - * @FilePath: /task_schedule/src/data/cpicxim/StuffInfo.ts - * @Description: - * - * Copyright (c) ${2022} by Kane, All Rights Reserved. + * @FilePath: /task_schedule/src/data/cpicxim/StaffInfo.ts + * @Description: + * + * Copyright (c) ${2022} by Kane, All Rights Reserved. */ class StaffInfo { constructor( p13uid: string, - staff_code: string, - staff_name: string, - department_code: string, - department_name: string, - section_office_code: string, - section_office_name: string + staffCode: string, + staffName: string, + departmentCode: string, + departmentName: string, + sectionOfficeCode: string, + sectionOfficeName: string ) { - this._stuffCode = staff_code; - this._stuffName = staff_name; + this._stuffCode = staffCode; + this._stuffName = staffName; this._p13uid = p13uid; - this._department_code = department_code; - this._department_name = department_name; - this._section_office_code = section_office_code; - this._section_office_name = section_office_name; + this._departmentCode = departmentCode; + this._departmentName = departmentName; + this._sectionOfficeCode = sectionOfficeCode; + this._sectionOfficeName = sectionOfficeName; } public get stuffCode(): string @@ -34,9 +34,9 @@ class StaffInfo return this._stuffCode; } - public set stuffCode(stuff_code: string) + public set stuffCode(stuffCode: string) { - this._stuffCode = stuff_code; + this._stuffCode = stuffCode; } public get stuffName(): string @@ -44,9 +44,9 @@ class StaffInfo return this._stuffName; } - public set stuffName(stuff_name: string) + public set stuffName(stuffName: string) { - this._stuffName = stuff_name; + this._stuffName = stuffName; } public get P13UID(): string @@ -59,34 +59,33 @@ class StaffInfo this._p13uid = p13uid; } - public set departmentCode(department_code: string) + public set departmentCode(departmentCode: string) { - this._department_code = department_code; + this._departmentCode = departmentCode; } - public get departmentCode() + public get departmentCode(): string { - return this._department_code; + return this._departmentCode; } - public set departmentName(department_name: string) + public set departmentName(departmentName: string) { - this._department_name = department_name; + this._departmentName = departmentName; } - public get departmentName() + public get departmentName(): string { - return this._department_name; + return this._departmentName; } private _stuffCode: string; private _stuffName: string; private _p13uid: string; - private _department_code: string; - private _department_name: string; - private _section_office_code: string; - private _section_office_name: string; + private _departmentCode: string; + private _departmentName: string; + private readonly _sectionOfficeCode: string; + private readonly _sectionOfficeName: string; } export { StaffInfo }; - diff --git a/code/web/task_schedule/src/store/index.ts b/code/web/task_schedule/src/store/index.ts index 928a89d..e915a00 100644 --- a/code/web/task_schedule/src/store/index.ts +++ b/code/web/task_schedule/src/store/index.ts @@ -4,8 +4,8 @@ * @LastEditors: Kane * @FilePath: /task_schedule/src/store/index.ts * @Description: vuex配置文件 - * - * Copyright (c) ${2022} by Kane, All Rights Reserved. + * + * Copyright (c) ${2022} by Kane, All Rights Reserved. */ import { createStore } from "vuex"; import app from "./modules/app"; @@ -16,4 +16,4 @@ const store = createStore({ }, }); -export default store; \ No newline at end of file +export default store; diff --git a/code/web/task_schedule/src/store/modules/app.ts b/code/web/task_schedule/src/store/modules/app.ts index 46fd730..b5766ed 100644 --- a/code/web/task_schedule/src/store/modules/app.ts +++ b/code/web/task_schedule/src/store/modules/app.ts @@ -3,9 +3,9 @@ * @Date: 2023-03-01 23:03:02 * @LastEditors: Kane * @FilePath: /task_schedule/src/store/modules/app.ts - * @Description: - * - * Copyright (c) ${2022} by Kane, All Rights Reserved. + * @Description: + * + * Copyright (c) ${2022} by Kane, All Rights Reserved. */ const state = { staffInfo: null, @@ -21,4 +21,4 @@ export default { getters, mutations, actions, -}; \ No newline at end of file +};