修改样式

main
wangqiujuan0808 2024-03-25 10:13:36 +08:00
parent ccc863c6b5
commit c7fab5edc8
3 changed files with 50 additions and 28 deletions

View File

@ -39,7 +39,7 @@ button {
border-radius: 8px; border-radius: 8px;
border: 1px solid transparent; border: 1px solid transparent;
padding: 0.6em 1.2em; padding: 0.6em 1.2em;
font-size: 1em; font-size: 2em;
font-weight: 500; font-weight: 500;
font-family: inherit; font-family: inherit;
background-color: #1a1a1a; background-color: #1a1a1a;

View File

@ -1,16 +1,13 @@
<template> <template>
<el-card class="home-div"> <el-card class="home-div">
<el-card class="card-div"> <el-card class="card-div">
<el-button :icon="Plus" circle @click=" <el-button :icon="Plus" circle size="large" @click="open_project" />
add_project_info.name = '';
add_project_info.description = '';
add_project_info.enable = true;
" />
</el-card> </el-card>
<el-card class="card-div" v-for="(item, index) in projects" :key="index"> <el-card class="card-div" v-for="(item, index) in projects" :key="index">
<p>{{ item.name }}</p> <p class="project-title">{{ item.name }}</p>
<p>{{ item.description }}</p> <p>{{ item.description }}</p>
<el-button type="primary" @click="router.push({ name: 'room', query: { project_name: item.name }})">管理</el-button> <el-button type="primary"
@click="router.push({ name: 'room', query: { project_name: item.name } })">管理</el-button>
<el-button type="success" @click="openUpdateDialog(item)"></el-button> <el-button type="success" @click="openUpdateDialog(item)"></el-button>
<el-button type="danger" @click="openRemove(item)"></el-button> <el-button type="danger" @click="openRemove(item)"></el-button>
</el-card> </el-card>
@ -54,7 +51,7 @@
<script setup> <script setup>
import { onMounted, reactive, ref } from "vue"; import { onMounted, reactive, ref } from "vue";
import { Plus } from "@element-plus/icons-vue"; import { Plus } from "@element-plus/icons-vue";
import { ElMessage,ElMessageBox } from "element-plus"; import { ElMessage, ElMessageBox } from "element-plus";
import myApi from "@/api/myApi.js"; import myApi from "@/api/myApi.js";
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
@ -62,6 +59,13 @@ const router = useRouter()
const projects = ref([]); const projects = ref([]);
const open_project = () => {
add_project_info.name = '';
add_project_info.description = '';
add_project_info.enable = true;
}
const get_projects = async () => { const get_projects = async () => {
const param = { const param = {
action: 100, action: 100,
@ -210,5 +214,10 @@ onMounted(() => {
justify-content: center; justify-content: center;
} }
.project-title {
font-size: 24px;
font-weight: 500;
}
} }
</style> </style>

View File

@ -6,6 +6,11 @@
<el-button type="primary" @click="goHome"></el-button> <el-button type="primary" @click="goHome"></el-button>
<el-button type="success" @click="save_room"></el-button> <el-button type="success" @click="save_room"></el-button>
</div> </div>
<div class="ptoject-info">
<div class="title">{{ project.name }}</div>
<div>{{ project.description }}</div>
</div>
<el-divider />
<div> <div>
<el-button type="primary" class="add-btn" :icon="Plus" @click="add_room"></el-button> <el-button type="primary" class="add-btn" :icon="Plus" @click="add_room"></el-button>
</div> </div>
@ -389,6 +394,14 @@ const checkList = reactive([{
width: 30%; width: 30%;
} }
} }
.title {
line-height: 48px;
font-size: 24px;
font-weight: 500;
}
.el-divider{
background-color:#409eff;
}
} }
} }