diff --git a/code/web/task_schedule/.env.development b/code/web/task_schedule/.env.development index bd12d2a..655a43a 100644 --- a/code/web/task_schedule/.env.development +++ b/code/web/task_schedule/.env.development @@ -1,3 +1,4 @@ NODE_ENV = 'development' VITE_URL_VALIDATE_ACCOUNT="http://222.76.244.118:11001/desktop_archievement_backend/account/query_staff_info.do" VITE_URL_LOGIN = "http://222.76.244.118:11001/admin-system/account/p13_account_check" +VITE_URL_DEPARTMENT_ARCHIEVEMENT="http://222.76.244.118:11001/desktop_archievement_backend/archievement/query_department_archievement.do" \ No newline at end of file diff --git a/code/web/task_schedule/.eslintrc.cjs b/code/web/task_schedule/.eslintrc.cjs index 1efc942..9b21e9f 100644 --- a/code/web/task_schedule/.eslintrc.cjs +++ b/code/web/task_schedule/.eslintrc.cjs @@ -36,7 +36,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", diff --git a/code/web/task_schedule/src/components/ArchievementChartComponent.vue b/code/web/task_schedule/src/components/ArchievementChartComponent.vue index 8dcc00f..115df9d 100644 --- a/code/web/task_schedule/src/components/ArchievementChartComponent.vue +++ b/code/web/task_schedule/src/components/ArchievementChartComponent.vue @@ -26,16 +26,16 @@ export default { default: () => [], }, }, - setup( props ) + setup(props) { - const ui = reactive( { - } ); + const ui = reactive({ + }); // 设置图表 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 () { @@ -62,12 +62,12 @@ export default { }; }; - onMounted( () => + onMounted(() => { initCharts(); - } ); + }); - console.log( props ); + console.log(props); return { ui, initCharts, props, }; }, diff --git a/code/web/task_schedule/src/components/ArchievementCompleteRateComponent.vue b/code/web/task_schedule/src/components/ArchievementCompleteRateComponent.vue index 531b7ee..8e82598 100644 --- a/code/web/task_schedule/src/components/ArchievementCompleteRateComponent.vue +++ b/code/web/task_schedule/src/components/ArchievementCompleteRateComponent.vue @@ -4,8 +4,8 @@ * @LastEditors: Kane * @FilePath: /task_schedule/src/components/ArchievementCompleteRateComponent.vue * @Description: 业绩完成率组件 - * - * Copyright (c) ${2022} by Kane, All Rights Reserved. + * + * Copyright (c) ${2022} by Kane, All Rights Reserved. -->