更新登录代码

保存坐席的信息,用于获取业绩数据。
This commit is contained in:
2023-05-09 22:42:20 +08:00
parent 8e9e36bb58
commit d0c9383bf8
12 changed files with 68 additions and 12 deletions

View File

@@ -36,8 +36,8 @@ interface RequestResult
interface LoginCallerResult extends RequestResult
{
tele_saler_code: string;
tele_saler_name: string;
tel_saler_code: string;
tel_saler_name: string;
team_code: string;
team_name: string;
department_code: string;

View File

@@ -10,8 +10,8 @@
export const API_URL = {
// URL_LOGIN: import.meta.env.VITE_URL_LOGIN,
URL_LOGIN: "http://222.76.244.118:11101/admin-system/account/p13_account_check",
URL_LOGIN_CALLER: "http://localhost:8080/desktop_archievement_backend/account/query_telsaler_info.do",
// URL_LOGIN_CALLER: "http://localhost:8080/desktop_archievement_backend/account/query_telsaler_info.do",
URL_LOGIN_CALLER: "http://222.76.244.118:11101/desktop_archievement_backend/account/query_telsaler_info.do",
// URL_DEPARTMENT_ARCHIEVEMENT: import.meta.env.VITE_URL_DEPARTMENT_ARCHIEVEMENT,
URL_DEPARTMENT_ARCHIEVEMENT: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_department_archievement.do",
};

View File

@@ -7,7 +7,7 @@
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
import { StaffInfo } from "../../data/cpicxim/StaffInfo.js";
import { StaffInfo } from "../../types/cpicxim/StaffInfo.js";
const STUFF_ITEM = "stuff_info";
const CALLER_ITEM = "call_info";

View File

@@ -13,7 +13,7 @@ import axios, { type AxiosInstance } from "axios";
const service: AxiosInstance = axios.create(
{
baseURL: "",
timeout: 10000,
timeout: 5000,
}
);

View File

@@ -9,6 +9,7 @@
*/
import { service as instance } from "./api/request.js";
import { API_URL } from "./api/config.js";
import { type Department } from "@/types/cpicxim/Department.js";
// import { type AxiosResponse } from "axios";
interface Archievement
@@ -28,7 +29,7 @@ interface Archievement
* 获取部门业绩数据,并调用回调函数进行渲染。
* @param render 用于给组件更新数据的回调函数
*/
function queryDepartmentArchievement( render: any ): void
function queryDepartmentArchievement( departmentInfo: Department, render: any ): void
{
instance.request({
method: "post",