app-about.vue 1.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
<template>
    <div class="app-about">
        <el-form>
            <el-form-item label="应用名称">
                <span>{{ appTitle }}</span>
            </el-form-item>
            <el-form-item label="代码标识">
                <span>{{ appCodeName }}</span>
            </el-form-item>
            <el-form-item label="系统名称">
                <span>{{ sysName }}</span>
            </el-form-item>
            <el-form-item label="版本">
                <span>{{ appVersion }}</span>
            </el-form-item>
        </el-form>
    </div>
</template>

<script lang="ts">
import { AppServiceBase } from 'ibiz-core';
import {Vue, Component} from 'vue-property-decorator';

@Component({})
export default class AppAbout extends Vue {

    /**
     * 应用名称
     *
     * @memberof AppAbout
     */
    appTitle: string = '';

    /**
     * 代码标识
     *
     * @memberof AppAbout
     */
    appCodeName: string = '';

    /**
     * 系统名称
     *
     * @memberof AppAbout
     */
    sysName: string = '';

    /**
     * 版本
     *
     * @memberof AppAbout
     */
    appVersion: string = '';

    created() {
        const APP = AppServiceBase.getInstance().getAppModelDataObject();
        if (APP) {
            this.appTitle = APP.name || APP.pKGCodeName;
            this.appCodeName = APP.codeName;
            this.sysName = APP.sysCodeName;
            this.appVersion = APP.appVersion;
        }
    }
}
</script>