修复html属性的bug!

This commit is contained in:
2023-03-17 15:11:21 +08:00
parent 8053360878
commit 6f4dbdbd7e
4 changed files with 66 additions and 66 deletions

View File

@@ -28,8 +28,7 @@
</div>
<div class="total-archievement-charts-wrapper">
<ArchievementChart
total_archievement="435220"
:chart_data="ui.chartData"
:chart-data="ui.chartData"
/>
</div>
</div>
@@ -71,35 +70,35 @@ export default {
{
const router = useRouter();
const staffInfo = loadStaffInfo();
const ui = reactive({
const ui = reactive( {
chartData: [200, 230, 224, 218, 135, 147, 260, 800,],
totalArchievement: 120000000,
dishonorPersons: ["张三", "李四",],
});
} );
const getTotalArchievement = computed(() =>
const getTotalArchievement = computed( () =>
{
const cnyFormat = new Intl.NumberFormat("zh-cn",
const cnyFormat = new Intl.NumberFormat( "zh-cn",
{
style: "currency",
currency: "CNY",
minimumFractionDigits: 0,
});
const archievement = cnyFormat.format(ui.totalArchievement);
} );
const archievement = cnyFormat.format( ui.totalArchievement );
return archievement;
});
} );
// 检查存储的登录信息,不存在则返回登录页面
if (staffInfo.P13UID === "")
if ( staffInfo.P13UID === "" )
{
ElMessage({
ElMessage( {
message: "登录信息失效,请重新登录!",
type: "success",
center: true,
});
} );
router.push("/login");
router.push( "/login" );
}
return { ui, getTotalArchievement, };