Merge branch 'feature-data' of http://222.76.244.118:3000/CPICXIM/desktop_task_schedule into feature-data

This commit is contained in:
Kane Wang 2023-03-31 09:05:53 +08:00
commit 4ffe05ee95
3 changed files with 41 additions and 5 deletions

View File

@ -19,6 +19,12 @@
> >
<span>领跑奖</span> <span>领跑奖</span>
</div> </div>
<div class="gainer-wrapper">
<span
v-for="gainer in ui.leadingReward"
:key="gainer"
>{{ gainer }}</span>
</div>
</div> </div>
<div class="advance-reward-wrapper"> <div class="advance-reward-wrapper">
<div class="banner-wrapper"> <div class="banner-wrapper">
@ -28,12 +34,19 @@
> >
<span>飞跃奖</span> <span>飞跃奖</span>
</div> </div>
<div class="gainer-wrapper">
<span
v-for="gainer in ui.advanceReward"
:key="gainer"
>{{ gainer }}</span>
</div>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
import { reactive } from "vue";
export default { export default {
name: "HonorListComponent", name: "HonorListComponent",
props: { props: {
@ -53,9 +66,15 @@ export default {
default: () => ["",], default: () => ["",],
}, },
}, },
setup() setup( props )
{ {
return {}; const ui = reactive({
leadingReward: props.leadingReward as string[],
advanceReward: props.advanceReward as string[],
});
console.log( props );
return { ui, };
}, },
}; };
</script> </script>
@ -109,6 +128,19 @@ export default {
height: 100%; height: 100%;
} }
span {
display: block;
text-align: center;
color: #fff;
font: {
size: 2rem;
family: "FZ-ZHUOHEI";
weight: 100;
}
}
.banner-wrapper { .banner-wrapper {
display: flex; display: flex;
justify-content: center; justify-content: center;

View File

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

View File

@ -3,7 +3,7 @@
* @Date: 2023-03-03 14:38:07 * @Date: 2023-03-03 14:38:07
* @LastEditors: Kane * @LastEditors: Kane
* @FilePath: /task_schedule/src/views/DesktopArchievement.vue * @FilePath: /task_schedule/src/views/DesktopArchievement.vue
* @Description: 显示在桌面上展示任务量与业绩的view * @Description: 桌面霸屏的主组件
* *
* Copyright (c) ${2022} by Kane, All Rights Reserved. * Copyright (c) ${2022} by Kane, All Rights Reserved.
--> -->
@ -112,8 +112,12 @@ export default {
ui.totalArchievement = data.total_archievement; ui.totalArchievement = data.total_archievement;
ui.attaching_rate = data.attaching_rate; ui.attaching_rate = data.attaching_rate;
ui.insurance_renewal_rate = data.insurance_renewal_rate; ui.insurance_renewal_rate = data.insurance_renewal_rate;
ui.leading_reward_gainers = data.leading_reward_gainers;
ui.advance_reward_gainers = data.advance_reward_gainers;
ui.dishonorPersons = data.backward_list;
// UI // UI
// vue
ui.showUI = false; ui.showUI = false;
setTimeout(() => { ui.showUI = true; }, 0 ); setTimeout(() => { ui.showUI = true; }, 0 );