-
zhangwei
昨天 2f5177b8a553bdc468cc68a20029916f59d1b4f1
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
<template>
    <el-card shadow="hover" header="版本信息">
        <template #header>
            <el-icon style="display: inline; vertical-align: middle"> <ele-InfoFilled /> </el-icon>
            <span> 版本信息 </span>
        </template>
        <div style="height: 210px; text-align: center">
            <img :src="verSvg" style="height: 140px" />
            <h2 style="margin-top: 15px">非政采招标采购交易管理平台</h2>
            <p style="margin-top: 5px">最新版本 {{ version }}</p>
        </div>
        <div style="margin-top: 20px; margin-bottom: 20px; float: right">
            <el-button type="primary" icon="ele-DocumentCopy" plain round @click="golog">更新日志</el-button>
            <el-button type="primary" icon="ele-Eleme" plain round @click="gogit">gitee</el-button>
        </div>
    </el-card>
</template>
 
<script lang="ts">
export default {
    title: '版本信息',
    icon: 'ele-InfoFilled',
    description: '版本信息原子组件演示',
};
</script>
 
<script setup lang="ts" name="version">
import { ref, onMounted } from 'vue';
import verSvg from '/@/assets/img/ver.svg';
 
const version = ref<string>('loading...');
 
onMounted(() => {
    version.value = 'v2.0.0';
});
 
const getVer = () => {
    version.value = 'v2.0.0';
};
 
const golog = () => {
    window.open('https://gitee.com/zuohuaijun/非政采招标采购交易管理平台/issues');
};
 
const gogit = () => {
    window.open('https://gitee.com/zuohuaijun/非政采招标采购交易管理平台.git');
};
</script>