Commit d1356d4d by liucan

feat:优化页面显示效果

parent 1838255a
<template> <template>
<el-dialog v-model="deleteDialogVisible" title="删除" width="250" center align-center @close="close" draggable> <el-dialog v-model="deleteDialogVisible" title="删除" width="250" center align-center @close="close" draggable>
<div class="text-center"> <div class="text-center">
<span style="color: #fff;font-size: 15px;">确定删除吗?</span> <span style="color: #fff; font-size: 15px">确定删除吗?</span>
</div> </div>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button @click="close">取消</el-button> <el-button @click="close">取消</el-button>
<el-button type="primary" @click="handleDelelte"> <el-button type="primary" @click="handleDelelte"> 确定 </el-button>
确定 </div>
</el-button> </template>
</div> </el-dialog>
</template>
</el-dialog>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, watch } from 'vue' import { ref, watch } from "vue";
import { defineProps } from 'vue'; import { defineProps } from "vue";
import { getUserList, addUser, deleteUser, updateUser, batchDeleteUser } from '@/api/user.ts' import { deleteUser, batchDeleteUser } from "@/api/user.ts";
import { DeleteMode } from '@/components/Delete/enum.ts' import { DeleteMode } from "@/components/Delete/enum.ts";
interface deleteDialogPropType { interface deleteDialogPropType {
dialogVisible: boolean, dialogVisible: boolean;
deleteMode: DeleteMode, deleteMode: DeleteMode;
id: number, id: number;
ids: number[], ids: number[];
} }
const props = defineProps<deleteDialogPropType>() const props = defineProps<deleteDialogPropType>();
const emit = defineEmits(['update:dialogVisible', 'confirm', 'getUserList', 'update:deleteMode']) const emit = defineEmits(["update:dialogVisible", "confirm", "getUserList", "update:deleteMode"]);
const deleteDialogVisible = ref(props.dialogVisible) const deleteDialogVisible = ref(props.dialogVisible);
const deleteMode = ref(props.deleteMode) const deleteMode = ref(props.deleteMode);
// 删除方法 // 删除方法
const handleDelelte = async () => { const handleDelelte = async () => {
if (props.deleteMode == DeleteMode.SINGLE_DELETE) { if (props.deleteMode == DeleteMode.SINGLE_DELETE) {
await deleteUser({ id: props.id }) await deleteUser({ id: props.id });
emit('getUserList') emit("getUserList");
deleteDialogVisible.value = false deleteDialogVisible.value = false;
} } else if (props.deleteMode == DeleteMode.BATCH_DELETE) {
else if (props.deleteMode == DeleteMode.BATCH_DELETE) { console.log(props.ids);
console.log(props.ids); await batchDeleteUser({ ids: props.ids });
await batchDeleteUser({ ids: props.ids }) emit("getUserList");
emit('getUserList') deleteDialogVisible.value = false;
deleteDialogVisible.value = false }
} };
}
// 关闭弹窗的方法 // 关闭弹窗的方法
const close = () => { const close = () => {
deleteDialogVisible.value = false deleteDialogVisible.value = false;
} };
// 监听父组件传过来的值 // 监听父组件传过来的值
watch(() => props.dialogVisible, watch(
(newVal) => { () => props.dialogVisible,
deleteDialogVisible.value = newVal (newVal) => {
} deleteDialogVisible.value = newVal;
) }
);
// 监听组件内的值并向父组件更新 // 监听组件内的值并向父组件更新
watch(() => deleteDialogVisible.value, watch(
(newVal) => { () => deleteDialogVisible.value,
emit('update:dialogVisible', newVal) (newVal) => {
} emit("update:dialogVisible", newVal);
) }
);
// 监听父组件传过来的值 // 监听父组件传过来的值
watch(() => props.deleteMode, watch(
(newVal) => { () => props.deleteMode,
deleteMode.value = newVal (newVal) => {
} deleteMode.value = newVal;
) }
);
// 监听组件内的值并向父组件更新 // 监听组件内的值并向父组件更新
watch(() => deleteMode.value, watch(
(newVal) => { () => deleteMode.value,
emit('update:deleteMode', newVal) (newVal) => {
} emit("update:deleteMode", newVal);
) }
</script> );
\ No newline at end of file </script>
...@@ -330,6 +330,15 @@ onMounted(async () => { ...@@ -330,6 +330,15 @@ onMounted(async () => {
.item { .item {
color: #eee; color: #eee;
} }
.table-content {
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(8px);
border: 1px solid rgba(78, 237, 255, 0.2);
box-shadow: 0 0 15px rgba(78, 237, 255, 0.1);
border-radius: 8px;
padding: 10px !important;
}
</style> </style>
<style> <style>
......
...@@ -727,6 +727,15 @@ onMounted(() => { ...@@ -727,6 +727,15 @@ onMounted(() => {
display: flex; display: flex;
gap: 10px; gap: 10px;
} }
.table-content {
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(8px);
border: 1px solid rgba(78, 237, 255, 0.2);
box-shadow: 0 0 15px rgba(78, 237, 255, 0.1);
border-radius: 8px;
padding: 10px !important;
}
</style> </style>
<style> <style>
......
...@@ -374,9 +374,6 @@ onMounted(() => { ...@@ -374,9 +374,6 @@ onMounted(() => {
} }
// 调整表单项间距 // 调整表单项间距
.detailForm { .detailForm {
// background-image: url("@/assets/picture/dialog1.png");
// background-size: 100% 100%;
// background-repeat: no-repeat;
.el-dialog-title { .el-dialog-title {
font-size: 180px; font-size: 180px;
} }
...@@ -394,7 +391,12 @@ onMounted(() => { ...@@ -394,7 +391,12 @@ onMounted(() => {
} }
.itu-table { .itu-table {
padding: 0 10px; background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(8px);
border: 1px solid rgba(78, 237, 255, 0.2);
box-shadow: 0 0 15px rgba(78, 237, 255, 0.1);
border-radius: 8px;
padding: 10px;
} }
/* 表格样式 */ /* 表格样式 */
...@@ -428,7 +430,7 @@ onMounted(() => { ...@@ -428,7 +430,7 @@ onMounted(() => {
} }
.item-title { .item-title {
color: #b0dfff; color: #fff;
} }
.item { .item {
......
...@@ -141,17 +141,35 @@ ...@@ -141,17 +141,35 @@
<el-divider style="margin: 0"></el-divider> <el-divider style="margin: 0"></el-divider>
<el-row> <el-row>
<el-col> <el-col>
<div class="info-item"> <div class="info-item-tle">
<span class="item-title">TLE第一行数据:</span> <el-row>
<span class="item">{{ tleLine0 }}</span> <el-col :span="4">
<span class="item-title">TLE第一行数据:</span>
</el-col>
<el-col :span="20">
<span class="item">{{ tleLine0 }}</span>
</el-col>
</el-row>
</div> </div>
<div class="info-item"> <div class="info-item-tle">
<span class="item-title">TLE第二行数据:</span> <el-row>
<span class="item">{{ tleLine1 }}</span> <el-col :span="4">
<span class="item-title">TLE第二行数据:</span>
</el-col>
<el-col :span="20">
<span class="item">{{ tleLine1 }}</span>
</el-col>
</el-row>
</div> </div>
<div class="info-item"> <div class="info-item-tle">
<span class="item-title">TLE第三行数据:</span> <el-row>
<span class="item">{{ tleLine2 }}</span> <el-col :span="4">
<span class="item-title">TLE第三行数据:</span>
</el-col>
<el-col :span="20">
<span class="item">{{ tleLine2 }}</span>
</el-col>
</el-row>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -357,6 +375,19 @@ onMounted(() => { ...@@ -357,6 +375,19 @@ onMounted(() => {
justify-content: space-between; justify-content: space-between;
} }
.info-item-tle {
margin: 10px 0;
}
.table-content {
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(8px);
border: 1px solid rgba(78, 237, 255, 0.2);
box-shadow: 0 0 15px rgba(78, 237, 255, 0.1);
border-radius: 8px;
padding: 10px !important;
}
.item-title { .item-title {
color: #b0dfff; color: #b0dfff;
} }
......
...@@ -25,14 +25,14 @@ ...@@ -25,14 +25,14 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> <div class="pagination w-full flex flex-row-reverse pr-4 m-t-4">
<div class="pagination w-full flex flex-row-reverse pr-4 m-t-4"> <Pagination
<Pagination :total="pageObj.total"
:total="pageObj.total" v-model:page="pageObj.pageNo"
v-model:page="pageObj.pageNo" v-model:limit="pageObj.pageSize"
v-model:limit="pageObj.pageSize" @pagination="getData"
@pagination="getData" />
/> </div>
</div> </div>
<el-dialog style="z-index: 999999" draggable v-model="editDialogVisible" title="指定下载以下卫星" width="400"> <el-dialog style="z-index: 999999" draggable v-model="editDialogVisible" title="指定下载以下卫星" width="400">
...@@ -237,6 +237,12 @@ onMounted(() => { ...@@ -237,6 +237,12 @@ onMounted(() => {
.table-content { .table-content {
padding: 10px; padding: 10px;
margin-top: 30px; margin-top: 30px;
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(8px);
border: 1px solid rgba(78, 237, 255, 0.2);
box-shadow: 0 0 15px rgba(78, 237, 255, 0.1);
border-radius: 8px;
padding: 15px;
} }
.title { .title {
......
<template> <template>
<div class="flex"> <div class="flex">
<span class="textStyle" :class="{ toRight0: slideState }">数据统计</span> <span class="textStyle" :class="{ toRight0: slideState }">数据统计</span>
<div class="dataCard" @click="goToAllDataPage"> <div class="dataCard" @click="goToAllDataPage" style="cursor: pointer">
<div class="titleStyle"> <div class="titleStyle">
<span>数据统计</span> <span>数据统计</span>
</div> </div>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="dataCard" @click="goToTaskRecordPage"> <div class="dataCard" @click="goToTaskRecordPage" style="cursor: pointer">
<div class="titleStyle"> <div class="titleStyle">
<span>任务执行统计</span> <span>任务执行统计</span>
</div> </div>
...@@ -211,7 +211,7 @@ onMounted(() => { ...@@ -211,7 +211,7 @@ onMounted(() => {
} }
.loading { .loading {
width: 45px; width: 40px;
aspect-ratio: 2; aspect-ratio: 2;
margin-right: 30px; margin-right: 30px;
--_g: no-repeat radial-gradient(circle closest-side, #4edaff 90%, #0000); --_g: no-repeat radial-gradient(circle closest-side, #4edaff 90%, #0000);
......
...@@ -181,6 +181,7 @@ onMounted(() => { ...@@ -181,6 +181,7 @@ onMounted(() => {
width: 500px; width: 500px;
height: 100%; height: 100%;
border-radius: 5px; border-radius: 5px;
cursor: pointer;
} }
.titleStyle { .titleStyle {
...@@ -235,7 +236,7 @@ onMounted(() => { ...@@ -235,7 +236,7 @@ onMounted(() => {
} }
.loading { .loading {
width: 45px; width: 40px;
aspect-ratio: 2; aspect-ratio: 2;
margin-right: 30px; margin-right: 30px;
--_g: no-repeat radial-gradient(circle closest-side, #4edaff 90%, #0000); --_g: no-repeat radial-gradient(circle closest-side, #4edaff 90%, #0000);
......
...@@ -203,6 +203,11 @@ onMounted(async () => { ...@@ -203,6 +203,11 @@ onMounted(async () => {
} }
.table-content { .table-content {
padding: 0 10px; background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(8px);
border: 1px solid rgba(78, 237, 255, 0.2);
box-shadow: 0 0 15px rgba(78, 237, 255, 0.1);
border-radius: 8px;
padding: 10px !important;
} }
</style> </style>
...@@ -190,7 +190,12 @@ onMounted(() => { ...@@ -190,7 +190,12 @@ onMounted(() => {
} }
.table-content { .table-content {
padding: 0 10px; background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(8px);
border: 1px solid rgba(78, 237, 255, 0.2);
box-shadow: 0 0 15px rgba(78, 237, 255, 0.1);
border-radius: 8px;
padding: 10px !important;
margin-top: 18px; margin-top: 18px;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment