tech-stock.vue
1.59 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<template>
<div class="app-container">
<!-- 页面头部 -->
<div class="page-header">
<div class="header-left">
<h2>科技部股份</h2>
<p class="page-desc">管理科技部股份相关数据</p>
</div>
<div class="header-right">
<el-button
icon="el-icon-refresh"
@click="handleRefresh"
:loading="loading"
>
刷新
</el-button>
</div>
</div>
<!-- 内容区域 -->
<div class="content-container">
<!-- 待开发 -->
</div>
</div>
</template>
<script>
export default {
name: 'TechStock',
data() {
return {
loading: false
}
},
methods: {
handleRefresh() {
this.loading = true
setTimeout(() => {
this.loading = false
this.$message.success('刷新成功')
}, 500)
}
}
}
</script>
<style lang="scss" scoped>
.app-container {
padding: 20px;
background: #f5f5f5;
}
.page-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 20px;
padding: 20px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
.header-left {
h2 {
margin: 0 0 8px 0;
color: #303133;
font-size: 20px;
font-weight: 600;
}
.page-desc {
margin: 0;
color: #909399;
font-size: 14px;
}
}
.header-right {
display: flex;
gap: 12px;
}
}
.content-container {
padding: 20px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
min-height: 400px;
}
</style>