From 9a0e2661c69fea29a0a53ecdf9e11333da9b9615 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 07 七月 2025 15:27:21 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
admin/src/views/index.vue | 114 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 114 insertions(+), 0 deletions(-)
diff --git a/admin/src/views/index.vue b/admin/src/views/index.vue
new file mode 100644
index 0000000..3f5aabb
--- /dev/null
+++ b/admin/src/views/index.vue
@@ -0,0 +1,114 @@
+<template>
+ <div class="main_home">
+ <div class="home_header">
+ <div class="mb10 fs17">涓嬪崍濂斤紝{{ userInfo.realname }}</div>
+ <div class="fs13">
+ 浠婂ぉ鏄� {{ nowDate }} {{ nowWeek }}锛屾杩庤闂眴绫宠烦璺冲畼缃戝悗鍙扮鐞嗗钩鍙�
+ </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>
+ </div>
+ <div class="content">
+ <el-button class="btn" :loading="loading[1]" type="primary" @click="staticPage(1)">鏅烘収绯荤粺闈欐�佸寲</el-button>
+ </div>
+ <div class="content">
+ <el-button class="btn" :loading="loading[8]" type="primary" @click="staticPage(8)">瑙e喅鏂规闈欐�佸寲</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