规范代码

This commit is contained in:
Kane Wang 2023-03-06 11:26:47 +08:00
parent ef78c2e42e
commit e99d092862
3 changed files with 39 additions and 40 deletions

View File

@ -2,31 +2,31 @@
* @Author: Kane * @Author: Kane
* @Date: 2023-02-28 14:48:30 * @Date: 2023-02-28 14:48:30
* @LastEditors: Kane * @LastEditors: Kane
* @FilePath: /task_schedule/src/data/cpicxim/StuffInfo.ts * @FilePath: /task_schedule/src/data/cpicxim/StaffInfo.ts
* @Description: * @Description:
* *
* Copyright (c) ${2022} by Kane, All Rights Reserved. * Copyright (c) ${2022} by Kane, All Rights Reserved.
*/ */
class StaffInfo class StaffInfo
{ {
constructor( constructor(
p13uid: string, p13uid: string,
staff_code: string, staffCode: string,
staff_name: string, staffName: string,
department_code: string, departmentCode: string,
department_name: string, departmentName: string,
section_office_code: string, sectionOfficeCode: string,
section_office_name: string sectionOfficeName: string
) )
{ {
this._stuffCode = staff_code; this._stuffCode = staffCode;
this._stuffName = staff_name; this._stuffName = staffName;
this._p13uid = p13uid; this._p13uid = p13uid;
this._department_code = department_code; this._departmentCode = departmentCode;
this._department_name = department_name; this._departmentName = departmentName;
this._section_office_code = section_office_code; this._sectionOfficeCode = sectionOfficeCode;
this._section_office_name = section_office_name; this._sectionOfficeName = sectionOfficeName;
} }
public get stuffCode(): string public get stuffCode(): string
@ -34,9 +34,9 @@ class StaffInfo
return this._stuffCode; 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 public get stuffName(): string
@ -44,9 +44,9 @@ class StaffInfo
return this._stuffName; 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 public get P13UID(): string
@ -59,34 +59,33 @@ class StaffInfo
this._p13uid = p13uid; 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 _stuffCode: string;
private _stuffName: string; private _stuffName: string;
private _p13uid: string; private _p13uid: string;
private _department_code: string; private _departmentCode: string;
private _department_name: string; private _departmentName: string;
private _section_office_code: string; private readonly _sectionOfficeCode: string;
private _section_office_name: string; private readonly _sectionOfficeName: string;
} }
export { StaffInfo }; export { StaffInfo };

View File

@ -4,8 +4,8 @@
* @LastEditors: Kane * @LastEditors: Kane
* @FilePath: /task_schedule/src/store/index.ts * @FilePath: /task_schedule/src/store/index.ts
* @Description: vuex配置文件 * @Description: vuex配置文件
* *
* Copyright (c) ${2022} by Kane, All Rights Reserved. * Copyright (c) ${2022} by Kane, All Rights Reserved.
*/ */
import { createStore } from "vuex"; import { createStore } from "vuex";
import app from "./modules/app"; import app from "./modules/app";
@ -16,4 +16,4 @@ const store = createStore({
}, },
}); });
export default store; export default store;

View File

@ -3,9 +3,9 @@
* @Date: 2023-03-01 23:03:02 * @Date: 2023-03-01 23:03:02
* @LastEditors: Kane * @LastEditors: Kane
* @FilePath: /task_schedule/src/store/modules/app.ts * @FilePath: /task_schedule/src/store/modules/app.ts
* @Description: * @Description:
* *
* Copyright (c) ${2022} by Kane, All Rights Reserved. * Copyright (c) ${2022} by Kane, All Rights Reserved.
*/ */
const state = { const state = {
staffInfo: null, staffInfo: null,
@ -21,4 +21,4 @@ export default {
getters, getters,
mutations, mutations,
actions, actions,
}; };