From 566c35444def62d13f0c76c3a8e642cd234b2b45 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 19 九月 2025 14:16:52 +0800
Subject: [PATCH] ss
---
admin/src/views/index.vue | 128 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 128 insertions(+), 0 deletions(-)
diff --git a/admin/src/views/index.vue b/admin/src/views/index.vue
new file mode 100644
index 0000000..1891490
--- /dev/null
+++ b/admin/src/views/index.vue
@@ -0,0 +1,128 @@
+<template>
+ <div class="main_home">
+ <div class="home_header">
+ <div class="mb10 fs17">涓嬪崍濂斤紝{{ userInfo.realname }}</div>
+ <div class="fs13">
+ 浠婂ぉ鏄� {{ nowDate }} {{ nowWeek }}锛屾杩庤闂眴绫宠烦璺冲畼缃戝悗鍙扮鐞嗗钩鍙�
+ </div>
+ <div style="font-size: 20px;font-weight: bold;margin-top: 30px;color: #144077">
+ 銆愮綉绔欓潤鎬佸寲銆�
+ </div>
+ <div class="content">
+ <el-button class="btn" :loading="loading[0]" type="primary" @click="staticPage(0)">棣栭〉</el-button>
+ <el-button class="btn" :loading="loading[6]" type="primary" @click="staticPage(6)">Alot鐗╄仈</el-button>
+ <el-button class="btn" :loading="loading[5]" type="primary" @click="staticPage(5)">鏈�鏂板姩鎬�</el-button>
+ <el-button class="btn" :loading="loading[3]" type="primary" @click="staticPage(3)">鍏充簬鎴戜滑</el-button>
+ <el-button class="btn" :loading="loading[4]" type="primary" @click="staticPage(4)">娓犻亾鍚堜綔</el-button>
+ </div>
+ <div class="content">
+ <el-button class="btn" :loading="loading[7]" type="primary" @click="staticPage(7)">鏈�鏂板姩鎬佽鎯�</el-button>
+ <el-button class="btn" :loading="loading[9]" type="primary" @click="staticPage(9)">瀹㈡埛妗堜緥璇︽儏</el-button>
+ <el-button class="btn" :loading="loading[9]" type="primary" @click="staticPage(14)">杞挱鍥捐鎯�</el-button>
+ </div>
+ <div style="font-size: 20px;font-weight: bold;margin-top: 30px;color: #144077">
+ 銆愭櫤鎱х郴缁熼潤鎬佸寲銆�
+ </div>
+ <div class="content">
+ <el-button class="btn" :loading="loading[1]" type="primary" @click="staticPage(1)">鏅烘収绯荤粺杩愯惀绯荤粺</el-button>
+ <el-button class="btn" :loading="loading[2]" type="primary" @click="staticPage(2)">鏅烘収绯荤粺杩愮淮绯荤粺</el-button>
+ </div>
+ <div style="font-size: 20px;font-weight: bold;margin-top: 30px;color: #144077">
+ 銆愯В鍐虫柟妗堥潤鎬佸寲銆�
+ </div>
+ <div class="content">
+ <el-button class="btn" :loading="loading[8]" type="primary" @click="staticPage(8)">鏁版櫤浣撹偛鍦洪</el-button>
+ <el-button class="btn" :loading="loading[10]" type="primary" @click="staticPage(10)">24H鏅鸿兘鍦洪</el-button>
+ <el-button class="btn" :loading="loading[11]" type="primary" @click="staticPage(11)">鏅尯&娓镐箰鍥�</el-button>
+ <el-button class="btn" :loading="loading[12]" type="primary" @click="staticPage(12)">鏁版櫤浣撹偛骞冲彴</el-button>
+ <el-button class="btn" :loading="loading[13]" type="primary" @click="staticPage(13)">绌洪棿鏅烘収绠$悊</el-button>
+ </div>
+ </div>
+ </div>
+</template>
+
+<script>
+import dayjs from 'dayjs'
+import { weeks } from '@/utils/config'
+import { create as createPage } from '@/api/business/static'
+export default {
+ components: {
+ },
+ data () {
+ return {
+ loading:[false,false,false,false,false,false,false,false,false,false]
+ }
+ },
+ computed: {
+ userInfo () {
+ return this.$store.state.userInfo
+ }
+ },
+ created () {
+ },
+ mounted () {
+ this.updateDate()
+ // this.initData()
+ },
+ methods: {
+ staticPage (index) {
+ this.loading[index] = true
+ createPage({ pageIndex: index }).then(res => {
+ this.$message.success('鎿嶄綔鎴愬姛')
+ }).catch(e => {
+ this.$tip.apiFailed(e)
+ }).finally(() => {
+ this.loading[index] = false
+ })
+ },
+ updateDate () {
+ this.nowDate = dayjs().format('YYYY骞碝鏈圖鏃�')
+ this.nowWeek = weeks[new Date().getDay()]
+ }
+ }
+}
+</script>
+
+<style lang="scss" scoped>
+
+div {
+ box-sizing: border-box;
+}
+
+.home_title {
+ font-weight: 600;
+ font-size: 16px;
+ color: #222222;
+ line-height: 22px;
+}
+.content {
+ display: flex;
+ margin-top: 30px;
+ width: 100%;
+ .btn{
+ width: 18%;
+ height: 60px;
+ margin: 10px;
+ font-size: 20px;
+ }
+}
+
+.main_home {
+ background: #f4f7fc;
+ position: relative;
+ width: 100%;
+ height: 100%;
+ overflow: auto;
+ padding: 92px 20px 20px;
+ .home_header {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 200px;
+ padding: 20px;
+ color: #fff;
+ background: linear-gradient(180deg, #076ae5 0%, rgba(32, 127, 247, 0) 100%);
+ }
+}
+</style>
--
Gitblit v1.9.3