Compare commits
No commits in common. "12dd277a2a2fef3e9a70f22a7c9d505c08cc43a4" and "b2712087a0c4f61e3691c6ca2f4262e9c1e5ae8b" have entirely different histories.
12dd277a2a
...
b2712087a0
@ -84,7 +84,7 @@ module.exports = {
|
|||||||
"@typescript-eslint/quotes": ["error", "double",],
|
"@typescript-eslint/quotes": ["error", "double",],
|
||||||
"@typescript-eslint/space-before-function-paren": "off",
|
"@typescript-eslint/space-before-function-paren": "off",
|
||||||
"@typescript-eslint/strict-boolean-expressions": ["error", {
|
"@typescript-eslint/strict-boolean-expressions": ["error", {
|
||||||
"allowString": false,
|
"allowString": true,
|
||||||
},],
|
},],
|
||||||
"comma-style": ["error", "last",], //逗号在行位
|
"comma-style": ["error", "last",], //逗号在行位
|
||||||
"array-bracket-spacing": ["error", "never",],
|
"array-bracket-spacing": ["error", "never",],
|
||||||
|
@ -4,5 +4,3 @@ $color-bg-02: #f7954e;
|
|||||||
$color-bg-03: #f27620;
|
$color-bg-03: #f27620;
|
||||||
$color-bg-04: #da3703;
|
$color-bg-04: #da3703;
|
||||||
$color-bg-05: #ba1800;
|
$color-bg-05: #ba1800;
|
||||||
|
|
||||||
$color-charts-bg:#ffffff9f;
|
|
Binary file not shown.
Before Width: | Height: | Size: 113 KiB |
Binary file not shown.
Before Width: | Height: | Size: 184 KiB |
Binary file not shown.
Before Width: | Height: | Size: 63 KiB |
@ -100,7 +100,7 @@ export default {
|
|||||||
#chartWrapper {
|
#chartWrapper {
|
||||||
min-height: 200px;
|
min-height: 200px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: $color-charts-bg;
|
background-color: #ffffffaf;
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @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/StaffInfo.ts
|
* @FilePath: /task_schedule/src/data/cpicxim/StuffInfo.ts
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
@ -12,21 +12,21 @@ class StaffInfo
|
|||||||
{
|
{
|
||||||
constructor(
|
constructor(
|
||||||
p13uid: string,
|
p13uid: string,
|
||||||
staffCode: string,
|
staff_code: string,
|
||||||
staffName: string,
|
staff_name: string,
|
||||||
departmentCode: string,
|
department_code: string,
|
||||||
departmentName: string,
|
department_name: string,
|
||||||
sectionOfficeCode: string,
|
section_office_code: string,
|
||||||
sectionOfficeName: string
|
section_office_name: string
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
this._stuffCode = staffCode;
|
this._stuffCode = staff_code;
|
||||||
this._stuffName = staffName;
|
this._stuffName = staff_name;
|
||||||
this._p13uid = p13uid;
|
this._p13uid = p13uid;
|
||||||
this._departmentCode = departmentCode;
|
this._department_code = department_code;
|
||||||
this._departmentName = departmentName;
|
this._department_name = department_name;
|
||||||
this._sectionOfficeCode = sectionOfficeCode;
|
this._section_office_code = section_office_code;
|
||||||
this._sectionOfficeName = sectionOfficeName;
|
this._section_office_name = section_office_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get stuffCode(): string
|
public get stuffCode(): string
|
||||||
@ -34,9 +34,9 @@ class StaffInfo
|
|||||||
return this._stuffCode;
|
return this._stuffCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public set stuffCode(stuffCode: string)
|
public set stuffCode(stuff_code: string)
|
||||||
{
|
{
|
||||||
this._stuffCode = stuffCode;
|
this._stuffCode = stuff_code;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get stuffName(): string
|
public get stuffName(): string
|
||||||
@ -44,9 +44,9 @@ class StaffInfo
|
|||||||
return this._stuffName;
|
return this._stuffName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public set stuffName(stuffName: string)
|
public set stuffName(stuff_name: string)
|
||||||
{
|
{
|
||||||
this._stuffName = stuffName;
|
this._stuffName = stuff_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get P13UID(): string
|
public get P13UID(): string
|
||||||
@ -59,33 +59,34 @@ class StaffInfo
|
|||||||
this._p13uid = p13uid;
|
this._p13uid = p13uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public set departmentCode(departmentCode: string)
|
public set departmentCode(department_code: string)
|
||||||
{
|
{
|
||||||
this._departmentCode = departmentCode;
|
this._department_code = department_code;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get departmentCode(): string
|
public get departmentCode()
|
||||||
{
|
{
|
||||||
return this._departmentCode;
|
return this._department_code;
|
||||||
}
|
}
|
||||||
|
|
||||||
public set departmentName(departmentName: string)
|
public set departmentName(department_name: string)
|
||||||
{
|
{
|
||||||
this._departmentName = departmentName;
|
this._department_name = department_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get departmentName(): string
|
public get departmentName()
|
||||||
{
|
{
|
||||||
return this._departmentName;
|
return this._department_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _stuffCode: string;
|
private _stuffCode: string;
|
||||||
private _stuffName: string;
|
private _stuffName: string;
|
||||||
private _p13uid: string;
|
private _p13uid: string;
|
||||||
private _departmentCode: string;
|
private _department_code: string;
|
||||||
private _departmentName: string;
|
private _department_name: string;
|
||||||
private readonly _sectionOfficeCode: string;
|
private _section_office_code: string;
|
||||||
private readonly _sectionOfficeName: string;
|
private _section_office_name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export { StaffInfo };
|
export { StaffInfo };
|
||||||
|
|
||||||
|
@ -8,24 +8,23 @@
|
|||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { type AxiosResponse } from "axios";
|
import { service as instance } from "./api/request";
|
||||||
import { service as instance } from "./api/request.js";
|
import { API_URL } from "./api/config";
|
||||||
import { API_URL } from "./api/config.js";
|
|
||||||
interface LoginInfo
|
interface LoginInfo
|
||||||
{
|
{
|
||||||
p13account: string;
|
p13account: string;
|
||||||
password: string;
|
password: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function login(data: LoginInfo): Promise<AxiosResponse<any, any>>
|
function login(data: LoginInfo)
|
||||||
{
|
{
|
||||||
return await instance.request(
|
return instance.request(
|
||||||
{
|
{
|
||||||
method: "post",
|
method: "post",
|
||||||
url: API_URL.URL_LOGIN,
|
url: API_URL.URL_LOGIN,
|
||||||
data,
|
data: data,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export { type LoginInfo, login };
|
export { LoginInfo, login };
|
@ -8,6 +8,5 @@
|
|||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
export const API_URL = {
|
export const API_URL = {
|
||||||
// URL_LOGIN: import.meta.env.VITE_URL_LOGIN,
|
URL_LOGIN: import.meta.env.VITE_URL_LOGIN,
|
||||||
URL_LOGIN: "http://222.76.244.118:11001/admin-system/account/p13_account_check",
|
|
||||||
};
|
};
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
import { StaffInfo } from "@/data/cpicxim/StaffInfo.js";
|
import { StaffInfo } from "@/data/cpicxim/StaffInfo";
|
||||||
|
|
||||||
const STUFF_ITEM = "stuff_info";
|
const STUFF_ITEM = "stuff_info";
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ function loadStaffInfo(): StaffInfo
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
obj = JSON.parse(window.localStorage.getItem(STUFF_ITEM) ?? "{}");
|
obj = JSON.parse(window.localStorage.getItem(STUFF_ITEM) || "{}");
|
||||||
}
|
}
|
||||||
catch (error)
|
catch (error)
|
||||||
{
|
{
|
||||||
@ -25,18 +25,19 @@ function loadStaffInfo(): StaffInfo
|
|||||||
}
|
}
|
||||||
|
|
||||||
const stuff = new StaffInfo(
|
const stuff = new StaffInfo(
|
||||||
obj._p13uid ?? "",
|
obj._p13uid || "",
|
||||||
obj._stuffCode ?? "",
|
obj._stuffCode || "",
|
||||||
obj._stuffName ?? "",
|
obj._stuffName || "",
|
||||||
obj._department_code ?? "",
|
obj._department_code || "",
|
||||||
obj._department_name ?? "",
|
obj._department_name || "",
|
||||||
obj._section_office_code ?? "",
|
obj._section_office_code || "",
|
||||||
obj._section_office_name ?? "");
|
obj._section_office_name || "");
|
||||||
|
|
||||||
|
|
||||||
return stuff;
|
return stuff;
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveStaffInfo(stuff: StaffInfo): void
|
function saveStaffInfo(stuff: StaffInfo)
|
||||||
{
|
{
|
||||||
const json = JSON.stringify(stuff);
|
const json = JSON.stringify(stuff);
|
||||||
|
|
||||||
|
@ -1,12 +1,3 @@
|
|||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-02-28 17:47:22
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /task_schedule/src/utils/api/request.ts
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
@ -23,11 +14,11 @@ service.interceptors.request.use(
|
|||||||
{
|
{
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
async (error) =>
|
(error) =>
|
||||||
{
|
{
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|
||||||
return await Promise.reject(error);
|
return Promise.reject(error);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -37,9 +28,9 @@ service.interceptors.response.use(
|
|||||||
{
|
{
|
||||||
return response;
|
return response;
|
||||||
},
|
},
|
||||||
async (error) =>
|
(error) =>
|
||||||
{
|
{
|
||||||
return await Promise.reject(error);
|
return Promise.reject(error);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ function getParamsFromURL(url: string): stringkey
|
|||||||
|
|
||||||
const param = item.split("=");
|
const param = item.split("=");
|
||||||
|
|
||||||
paramObj[param[0]] = param[1] ?? "";
|
paramObj[param[0]] = param[1] || "";
|
||||||
});
|
});
|
||||||
|
|
||||||
return paramObj;
|
return paramObj;
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "nodenext",
|
"moduleResolution": "node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
@ -26,8 +26,8 @@
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lib": [
|
"lib": [
|
||||||
"ESNext",
|
"esnext",
|
||||||
"DOM"
|
"dom"
|
||||||
],
|
],
|
||||||
"types": [
|
"types": [
|
||||||
"vite/client"
|
"vite/client"
|
||||||
@ -41,7 +41,4 @@
|
|||||||
"src/router/index.js",
|
"src/router/index.js",
|
||||||
"src/router/index.js",
|
"src/router/index.js",
|
||||||
],
|
],
|
||||||
"exclude": [
|
|
||||||
"./node_modules",
|
|
||||||
]
|
|
||||||
}
|
}
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user