diff --git a/code/db/pkg/telsale_archievement_pkg.pck b/code/db/pkg/telsale_archievement_pkg.pck
index 91e1a8b..f0e887b 100644
--- a/code/db/pkg/telsale_archievement_pkg.pck
+++ b/code/db/pkg/telsale_archievement_pkg.pck
@@ -32,10 +32,10 @@ CREATE OR REPLACE PACKAGE BODY telsale_archievement_pkg IS
a_end_date);
FOR caller_record IN (SELECT *
- FROM 车非每日保费_t)
+ FROM desktop_archievement_admin.车非每日保费_t)
LOOP
BEGIN
- DELETE 车非每日保费 cf
+ DELETE desktop_archievement_admin.车非每日保费 cf
WHERE cf.签单日期 = caller_record.签单日期
AND cf.部门 = caller_record.部门
AND cf.经办人n = caller_record.经办人n
@@ -45,7 +45,7 @@ CREATE OR REPLACE PACKAGE BODY telsale_archievement_pkg IS
NULL;
END;
- INSERT INTO 车非每日保费
+ INSERT INTO desktop_archievement_admin.车非每日保费
VALUES caller_record;
END LOOP;
@@ -62,9 +62,9 @@ CREATE OR REPLACE PACKAGE BODY telsale_archievement_pkg IS
a_end_date IN DATE
) IS
BEGIN
- EXECUTE IMMEDIATE 'truncate table 车非每日保费_t';
+ EXECUTE IMMEDIATE 'truncate table desktop_archievement_admin.车非每日保费_t';
- INSERT INTO 车非每日保费_t
+ INSERT INTO desktop_archievement_admin.车非每日保费_t
WITH aa AS
(SELECT to_char(t.signature_date,
'yyyy-mm-dd') 签单日期,
diff --git a/code/web/task_schedule/.eslintrc.cjs b/code/web/task_schedule/.eslintrc.cjs
index 200a7c4..cce006f 100644
--- a/code/web/task_schedule/.eslintrc.cjs
+++ b/code/web/task_schedule/.eslintrc.cjs
@@ -22,6 +22,7 @@ module.exports = {
extends:["eslint:recommended",],
rules:{
indent: ["warn", 4,],
+ "space-in-parens": ["error", "always", { exceptions: ["{}", "[]", "()", "empty",], },],
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-unused-vars": "warn",
@@ -73,7 +74,7 @@ module.exports = {
],
rules: {
indent: ["warn", 4,],
- // "space-in-parens": ["error", "always", { exceptions: ["empty",], },],
+ "space-in-parens": ["error", "always", { exceptions: ["{}", "[]", "()", "empty",], },],
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-unused-vars": "warn",
@@ -136,7 +137,7 @@ module.exports = {
"plugin:@typescript-eslint/recommended",
],
rules: {
- "space-in-parens": ["error", "always", { exceptions: ["empty",], },],
+ "space-in-parens": ["error", "always", { exceptions: ["{}", "[]", "()", "empty",], },],
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"@typescript-eslint/indent": ["error", 4,],
diff --git a/code/web/task_schedule/src/components/ArchievementChartComponent.vue b/code/web/task_schedule/src/components/ArchievementChartComponent.vue
index 56e3433..7be6d32 100644
--- a/code/web/task_schedule/src/components/ArchievementChartComponent.vue
+++ b/code/web/task_schedule/src/components/ArchievementChartComponent.vue
@@ -26,7 +26,7 @@ export default {
default: () => [],
},
},
- setup(props)
+ setup( props )
{
const ui = reactive({
});
@@ -34,8 +34,8 @@ export default {
// 璁剧疆鍥捐〃
const initCharts = () =>
{
- const chartDom = document.getElementById("chartWrapper");
- const myChart = echarts.init(chartDom as HTMLDivElement);
+ const chartDom = document.getElementById( "chartWrapper" );
+ const myChart = echarts.init( chartDom as HTMLDivElement );
const option = {
xAxis: {
type: "category",
@@ -53,7 +53,7 @@ export default {
],
};
- option && myChart.setOption(option);
+ option && myChart.setOption( option );
window.onresize = function ()
{
diff --git a/code/web/task_schedule/src/components/ArchievementCompleteRateComponent.vue b/code/web/task_schedule/src/components/ArchievementCompleteRateComponent.vue
index 8e82598..0f74b90 100644
--- a/code/web/task_schedule/src/components/ArchievementCompleteRateComponent.vue
+++ b/code/web/task_schedule/src/components/ArchievementCompleteRateComponent.vue
@@ -36,9 +36,9 @@ export default {
default: "",
},
},
- setup(props)
+ setup( props )
{
- const percentage = Number(props.percentage).valueOf();
+ const percentage = Number( props.percentage ).valueOf();
const ui = reactive({
percentage,
diff --git a/code/web/task_schedule/src/data/cpicxim/StaffInfo.ts b/code/web/task_schedule/src/data/cpicxim/StaffInfo.ts
index 8ff21c6..d481254 100644
--- a/code/web/task_schedule/src/data/cpicxim/StaffInfo.ts
+++ b/code/web/task_schedule/src/data/cpicxim/StaffInfo.ts
@@ -34,7 +34,7 @@ class StaffInfo
return this._stuffCode;
}
- public set stuffCode(stuffCode: string)
+ public set stuffCode( stuffCode: string )
{
this._stuffCode = stuffCode;
}
@@ -44,7 +44,7 @@ class StaffInfo
return this._stuffName;
}
- public set stuffName(stuffName: string)
+ public set stuffName( stuffName: string )
{
this._stuffName = stuffName;
}
@@ -54,12 +54,12 @@ class StaffInfo
return this._p13uid;
}
- public set P13UID(p13uid: string)
+ public set P13UID( p13uid: string )
{
this._p13uid = p13uid;
}
- public set departmentCode(departmentCode: string)
+ public set departmentCode( departmentCode: string )
{
this._departmentCode = departmentCode;
}
@@ -69,7 +69,7 @@ class StaffInfo
return this._departmentCode;
}
- public set departmentName(departmentName: string)
+ public set departmentName( departmentName: string )
{
this._departmentName = departmentName;
}
diff --git a/code/web/task_schedule/src/layout/components/Header.vue b/code/web/task_schedule/src/layout/components/Header.vue
index d632051..0e562f5 100644
--- a/code/web/task_schedule/src/layout/components/Header.vue
+++ b/code/web/task_schedule/src/layout/components/Header.vue
@@ -12,7 +12,13 @@
CPIC
娴嬭瘯鐗
- 3.6.7 x64 Build 202208301257
+ Build-202303251257
+
+
+
diff --git a/code/web/task_schedule/src/main.js b/code/web/task_schedule/src/main.js
index 1c88fe9..c408a73 100644
--- a/code/web/task_schedule/src/main.js
+++ b/code/web/task_schedule/src/main.js
@@ -2,7 +2,7 @@
* @Author: Kane
* @Date: 2023-02-15 09:25:52
* @LastEditors: Kane
- * @LastEditTime: 2023-03-23 16:32:01
+ * @LastEditTime: 2023-03-24 14:34:52
* @FilePath: /task_schedule/src/main.js
* @Description:
*
@@ -21,17 +21,17 @@ import "./assets/css/index.scss";
// element-plus
import ElementPlus from "element-plus";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
-import("element-plus/dist/index.css");
+import( "element-plus/dist/index.css" );
-const app = createApp(App);
+const app = createApp( App );
// 娉ㄥ唽element-plus鐨勫浘鏍
-for (const [key, component,] of Object.entries(ElementPlusIconsVue))
+for ( const [key, component,] of Object.entries( ElementPlusIconsVue ))
{
- app.component(key, component);
+ app.component( key, component );
}
-app.use(ElementPlus);
-app.use(router);
-app.use(store);
-app.mount("#app");
+app.use( ElementPlus );
+app.use( router );
+app.use( store );
+app.mount( "#app" );
diff --git a/code/web/task_schedule/src/router/index.js b/code/web/task_schedule/src/router/index.js
index 44bcbbf..aae18f5 100644
--- a/code/web/task_schedule/src/router/index.js
+++ b/code/web/task_schedule/src/router/index.js
@@ -38,7 +38,7 @@ const routes = [
title: "鎬昏",
icon: "house",
},
- component: ()=> import("../layout/Index.vue"),
+ component: ()=> import( "../layout/Index.vue" ),
children:[
{
path:"/desktop",
@@ -47,7 +47,7 @@ const routes = [
title:"宸ヤ綔鍙",
icon: "house",
},
- component: ()=> import("../views/Desktop.vue"),
+ component: ()=> import( "../views/Desktop.vue" ),
},
],
},
@@ -59,7 +59,7 @@ const routes = [
title:"鏁版嵁绠$悊",
icon: "document",
},
- component: ()=> import("../layout/Index.vue"),
+ component: ()=> import( "../layout/Index.vue" ),
children:[
{
path:"/staff_data",
@@ -68,7 +68,7 @@ const routes = [
title:"鍧愬腑绠$悊",
icon: "user",
},
- component: ()=> import("../views/StaffManagement.vue"),
+ component: ()=> import( "../views/StaffManagement.vue" ),
},
{
path:"/archievement_data",
@@ -77,7 +77,7 @@ const routes = [
title:"鏁版嵁绠$悊",
icon: "document",
},
- component: ()=> import("../views/DataManagement.vue"),
+ component: ()=> import( "../views/DataManagement.vue" ),
},
],
},
@@ -104,12 +104,12 @@ function hasOnlyChild( children )
return false;
}
- const routes = children.filter((item)=>
+ const routes = children.filter(( item )=>
{
return !item.hidden;
});
- if ( routes.length === 1)
+ if ( routes.length === 1 )
{
return true;
}
diff --git a/code/web/task_schedule/src/utils/account.ts b/code/web/task_schedule/src/utils/account.ts
index b43113a..47143a4 100644
--- a/code/web/task_schedule/src/utils/account.ts
+++ b/code/web/task_schedule/src/utils/account.ts
@@ -11,7 +11,7 @@
import { type AxiosResponse } from "axios";
import { service as instance } from "./api/request.js";
import { API_URL } from "./api/config.js";
-import { cleanStaffInfo } from "./api/localStorage.js";
+import { cleanStaffInfo, clearCallerInfo } from "./api/localStorage.js";
// @ts-expect-error 涔嬪悗鍐嶈ˉ鍏呯被鍨嬫枃浠
import { router } from "../router/index.js";
@@ -38,6 +38,7 @@ async function login( data: LoginInfo ): Promise>
function logout(): void
{
cleanStaffInfo();
+ clearCallerInfo();
void router.push( "/login" );
}
diff --git a/code/web/task_schedule/src/utils/api/localStorage.ts b/code/web/task_schedule/src/utils/api/localStorage.ts
index bfd174b..2a46a63 100644
--- a/code/web/task_schedule/src/utils/api/localStorage.ts
+++ b/code/web/task_schedule/src/utils/api/localStorage.ts
@@ -10,6 +10,7 @@
import { StaffInfo } from "@/data/cpicxim/StaffInfo.js";
const STUFF_ITEM = "stuff_info";
+const CALLER_ITEM = "call_info";
const USER_TYPE_ITEM = "user_type";
function loadStaffInfo(): StaffInfo
@@ -61,10 +62,28 @@ function getUserType(): string
return userType;
}
+function saveCallerInfo( callerCode: string ): void
+{
+ window.localStorage.setItem( CALLER_ITEM, callerCode );
+}
+
+function getCallerInfo(): string
+{
+ return window.localStorage.getItem( CALLER_ITEM ) ?? "";
+}
+
+function clearCallerInfo(): void
+{
+ window.localStorage.removeItem( CALLER_ITEM );
+}
+
export {
loadStaffInfo,
saveStaffInfo,
cleanStaffInfo,
saveUserType,
- getUserType
+ getUserType,
+ saveCallerInfo,
+ getCallerInfo,
+ clearCallerInfo
};
diff --git a/code/web/task_schedule/src/utils/api/url.ts b/code/web/task_schedule/src/utils/api/url.ts
index ce343f4..db11228 100644
--- a/code/web/task_schedule/src/utils/api/url.ts
+++ b/code/web/task_schedule/src/utils/api/url.ts
@@ -66,7 +66,7 @@ function getParamsFromURL( url: string ): stringkey
// 鎷嗗垎灞炴
const paramArray: string[] = paramString.split( "&" );
- paramArray.forEach( ( item ) =>
+ paramArray.forEach(( item ) =>
{
if ( item.length === 0 )
{
@@ -76,7 +76,7 @@ function getParamsFromURL( url: string ): stringkey
const param = item.split( "=" );
paramObj[param[0]] = param[1] ?? "";
- } );
+ });
return paramObj;
}
diff --git a/code/web/task_schedule/src/utils/archievement.ts b/code/web/task_schedule/src/utils/archievement.ts
index b77d070..cbfec72 100644
--- a/code/web/task_schedule/src/utils/archievement.ts
+++ b/code/web/task_schedule/src/utils/archievement.ts
@@ -30,11 +30,11 @@ interface Archievement
*/
function queryDepartmentArchievement( render: any ): void
{
- instance.request( {
+ instance.request({
method: "post",
url: API_URL.URL_DEPARTMENT_ARCHIEVEMENT,
- } )
- .then( ( response ) =>
+ })
+ .then(( response ) =>
{
const archievement: Archievement = {
success: false,
@@ -60,11 +60,11 @@ function queryDepartmentArchievement( render: any ): void
archievement.backward_list = data.backward_list ?? [];
render( data );
- } )
- .catch( ( error ) =>
+ })
+ .catch(( error ) =>
{
console.log( error );
- } );
+ });
}
export { queryDepartmentArchievement, type Archievement };
diff --git a/code/web/task_schedule/src/views/DesktopArchievement.vue b/code/web/task_schedule/src/views/DesktopArchievement.vue
index 63da59d..6fd8b81 100644
--- a/code/web/task_schedule/src/views/DesktopArchievement.vue
+++ b/code/web/task_schedule/src/views/DesktopArchievement.vue
@@ -58,7 +58,7 @@