|
@@ -1,12 +1,58 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <a-card>
|
|
|
|
|
- logo
|
|
|
|
|
|
|
+ <a-card style="padding: 40px;">
|
|
|
|
|
+ <a-row>
|
|
|
|
|
+ <a-col :span="4" >
|
|
|
|
|
+ <a-row>
|
|
|
|
|
+ <a-col span="24" class="center" >
|
|
|
|
|
+ <img class="logo" :src="logoPng" />
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col span="24" class="center">
|
|
|
|
|
+ <div class="label" >{{ state.sys.sysLabel}}</div>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
</a-card>
|
|
</a-card>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup >
|
|
<script lang="ts" setup >
|
|
|
|
|
+import { SysController } from '@/controller'
|
|
|
|
|
+import { onMounted, reactive } from 'vue'
|
|
|
|
|
|
|
|
|
|
+const logoPng = require('@/assets/logo.png')
|
|
|
|
|
+
|
|
|
|
|
+const state = reactive<{
|
|
|
|
|
+ sys: IOT.API.SYS.Sys
|
|
|
|
|
+}>({
|
|
|
|
|
+ sys: {}
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+const getLogo = async () => {
|
|
|
|
|
+ const { data } = await SysController.sysConf()
|
|
|
|
|
+ state.sys = data
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+onMounted(() => {
|
|
|
|
|
+ getLogo()
|
|
|
|
|
+})
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped >
|
|
<style lang="less" scoped >
|
|
|
|
|
+.logo {
|
|
|
|
|
+ width: 200px;
|
|
|
|
|
+ height: 200px;
|
|
|
|
|
+ border-radius: 50%;
|
|
|
|
|
+ border: 1px solid #ccc;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.label {
|
|
|
|
|
+ font-size: 32px;
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.center {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|