更新登录代码
保存坐席的信息,用于获取业绩数据。
This commit is contained in:
@@ -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;
|
||||
|
@@ -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",
|
||||
};
|
||||
|
@@ -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";
|
||||
|
@@ -13,7 +13,7 @@ import axios, { type AxiosInstance } from "axios";
|
||||
const service: AxiosInstance = axios.create(
|
||||
{
|
||||
baseURL: "",
|
||||
timeout: 10000,
|
||||
timeout: 5000,
|
||||
}
|
||||
);
|
||||
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user