@@ -21,18 +24,23 @@
@@ -72,4 +80,4 @@ export default {
}
}
}
-
\ No newline at end of file
+
diff --git a/code/web/task_schedule/src/components/HonorListComponent.vue b/code/web/task_schedule/src/components/HonorListComponent.vue
index 4de1b90..dd92952 100644
--- a/code/web/task_schedule/src/components/HonorListComponent.vue
+++ b/code/web/task_schedule/src/components/HonorListComponent.vue
@@ -13,13 +13,19 @@
-
+
领跑奖
-
+
飞跃奖
@@ -34,17 +40,20 @@ export default {
month: {
type: String,
require: true,
+ default:()=>"本",
},
leadingReward: {
type: String,
require: true,
+ default:()=>"",
},
advanceReward: {
type: String,
require: true,
+ default:()=>"",
},
},
- setup(props)
+ setup()
{
return {};
},
diff --git a/code/web/task_schedule/src/main.js b/code/web/task_schedule/src/main.js
index c0b7bd0..bd121a5 100644
--- a/code/web/task_schedule/src/main.js
+++ b/code/web/task_schedule/src/main.js
@@ -2,37 +2,36 @@
* @Author: Kane
* @Date: 2023-02-15 09:25:52
* @LastEditors: Kane
- * @LastEditTime: 2023-03-03 15:50:08
+ * @LastEditTime: 2023-03-17 12:07:48
* @FilePath: /task_schedule/src/main.js
- * @Description:
- *
- * Copyright (c) ${2022} by Kane, All Rights Reserved.
+ * @Description:
+ *
+ * Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
-import { createApp } from 'vue';
+import { createApp } from "vue";
import { router } from "./router/index";
import store from "@/store/index";
-import App from './App.vue';
+import App from "./App.vue";
-//css
-import './style.css';
+// css
+import "./style.css";
import "./assets/css/index.scss";
-import("element-plus/dist/index.css");
-
-//element-plus
+// element-plus
import ElementPlus from "element-plus";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
+import("element-plus/dist/index.css");
const app = createApp(App);
-//注册element-plus的图标
+// 注册element-plus的图标
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.mount("#app");
diff --git a/code/web/task_schedule/src/utils/api/localStorage.ts b/code/web/task_schedule/src/utils/api/localStorage.ts
index 58fb8ba..6514a89 100644
--- a/code/web/task_schedule/src/utils/api/localStorage.ts
+++ b/code/web/task_schedule/src/utils/api/localStorage.ts
@@ -17,9 +17,9 @@ function loadStaffInfo(): StaffInfo
try
{
- obj = JSON.parse(window.localStorage.getItem(STUFF_ITEM) ?? "{}");
+ obj = JSON.parse( window.localStorage.getItem( STUFF_ITEM ) ?? "{}" );
}
- catch (error)
+ catch ( error )
{
obj = {};
}
@@ -31,16 +31,16 @@ function loadStaffInfo(): StaffInfo
obj._department_code ?? "",
obj._department_name ?? "",
obj._section_office_code ?? "",
- obj._section_office_name ?? "");
+ obj._section_office_name ?? "" );
return stuff;
}
-function saveStaffInfo(stuff: StaffInfo): void
+function saveStaffInfo( stuff: StaffInfo ): void
{
- const json = JSON.stringify(stuff);
+ const json = JSON.stringify( stuff );
- window.localStorage.setItem(STUFF_ITEM, json);
+ window.localStorage.setItem( STUFF_ITEM, json );
};
export { loadStaffInfo, saveStaffInfo };
diff --git a/code/web/task_schedule/src/utils/api/request.ts b/code/web/task_schedule/src/utils/api/request.ts
index ec254c7..9113c06 100644
--- a/code/web/task_schedule/src/utils/api/request.ts
+++ b/code/web/task_schedule/src/utils/api/request.ts
@@ -19,27 +19,27 @@ const service: AxiosInstance = axios.create(
// 请求拦截
service.interceptors.request.use(
- (config) =>
+ ( config ) =>
{
return config;
},
- async (error) =>
+ async ( error ) =>
{
- console.log(error);
+ console.log( error );
- return await Promise.reject(error);
+ return await Promise.reject( error );
}
);
// 响应拦截
service.interceptors.response.use(
- (response) =>
+ ( response ) =>
{
return response;
},
- async (error) =>
+ async ( error ) =>
{
- return await Promise.reject(error);
+ return await Promise.reject( error );
}
);
diff --git a/code/web/task_schedule/src/utils/api/url.ts b/code/web/task_schedule/src/utils/api/url.ts
index 2104be7..ce343f4 100644
--- a/code/web/task_schedule/src/utils/api/url.ts
+++ b/code/web/task_schedule/src/utils/api/url.ts
@@ -15,15 +15,15 @@ type stringkey = Record
;
* @param url 访问的url
* @returns
*/
-function getURLParams(url: string): Record
+function getURLParams( url: string ): Record
{
- const arr = url.split("?");
- const params = arr[1].split("&");
+ const arr = url.split( "?" );
+ const params = arr[1].split( "&" );
const obj: stringkey = {};
- for (let i = 0; i < params.length; i++)
+ for ( let i = 0; i < params.length; i++ )
{
- const param = params[i].split("=");
+ const param = params[i].split( "=" );
obj[param[0]] = param[1];
}
@@ -36,47 +36,47 @@ function getURLParams(url: string): Record
* @param url url字符串
* @returns 返回包含url中参数作为key,值作为value的对象。
*/
-function getParamsFromURL(url: string): stringkey
+function getParamsFromURL( url: string ): stringkey
{
- const indexOfQuestionMark: number = url.indexOf("?");
- const indexOfSharp: number = url.indexOf("#");
+ const indexOfQuestionMark: number = url.indexOf( "?" );
+ const indexOfSharp: number = url.indexOf( "#" );
const paramObj: stringkey = {};
let paramString;
// url中没有问号,说明没有参数
- if (indexOfQuestionMark < 0)
+ if ( indexOfQuestionMark < 0 )
{
return paramObj;
}
// 检查是否有#号
- if (indexOfSharp < 0)
+ if ( indexOfSharp < 0 )
{
- // 没有#号,可以直接截取参数字符串
- paramString = url.substring(indexOfQuestionMark);
+ // 没有#号,可以直接截取参数字符串
+ paramString = url.substring( indexOfQuestionMark );
}
else
{
- // 有#号,截取?和#之间的字符串
+ // 有#号,截取?和#之间的字符串
const end: number = indexOfQuestionMark < indexOfSharp ? indexOfSharp : url.length;
- paramString = url.substring(indexOfQuestionMark + 1, end);
+ paramString = url.substring( indexOfQuestionMark + 1, end );
}
// 拆分属性
- const paramArray: string[] = paramString.split("&");
+ const paramArray: string[] = paramString.split( "&" );
- paramArray.forEach((item) =>
+ paramArray.forEach( ( item ) =>
{
- if (item.length === 0)
+ if ( item.length === 0 )
{
return;
}
- const param = item.split("=");
+ const param = item.split( "=" );
paramObj[param[0]] = param[1] ?? "";
- });
+ } );
return paramObj;
}
diff --git a/code/web/task_schedule/src/views/DesktopArchievement.vue b/code/web/task_schedule/src/views/DesktopArchievement.vue
index 7090f2d..206f5c6 100644
--- a/code/web/task_schedule/src/views/DesktopArchievement.vue
+++ b/code/web/task_schedule/src/views/DesktopArchievement.vue
@@ -4,8 +4,8 @@
* @LastEditors: Kane
* @FilePath: /task_schedule/src/views/DesktopArchievement.vue
* @Description: 显示在桌面上,展示任务量与业绩的view
- *
- * Copyright (c) ${2022} by Kane, All Rights Reserved.
+ *
+ * Copyright (c) ${2022} by Kane, All Rights Reserved.
-->
@@ -17,21 +17,35 @@
-
-
+
+