更新 ui

This commit is contained in:
aaron 2025-01-09 17:05:51 +08:00
parent 27ecd0a45e
commit 7c83fcf310
4 changed files with 22 additions and 33 deletions

View File

@ -1,5 +1,5 @@
{ {
"name": "dm-admin", "name": "beefast-admin",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"dependencies": { "dependencies": {

View File

@ -1,18 +1,17 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang=""> <html lang="zh-CN">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>闪兔到家后台管理系统</title> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" /> <title>蜂快到家后台管理系统</title>
<script type="text/javascript">
window._AMapSecurityConfig = {
securityJsCode: '93527b49270ba2142f47f0407da7c0d6'
}
</script>
</head> </head>
<body> <body>
<noscript>
<strong>We're sorry but 蜂快到家后台管理系统 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected -->
</body> </body>
</html> </html>

View File

@ -2,7 +2,7 @@ import axios from 'axios'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
const request = axios.create({ const request = axios.create({
baseURL: 'https://api-dev.ibtc.work', baseURL: 'http://127.0.0.1:8000',
timeout: 5000 timeout: 5000
}) })

View File

@ -13,7 +13,7 @@
<a-select <a-select
v-model:value="filterForm.community_id" v-model:value="filterForm.community_id"
placeholder="请选择小区" placeholder="请选择小区"
style="width: 200px" style="width: 200px; height: 32px"
allowClear allowClear
@change="handleFilter" @change="handleFilter"
> >
@ -38,11 +38,6 @@
@change="handleTableChange" @change="handleTableChange"
row-key="id" row-key="id"
> >
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'create_time'">
{{ formatDateTime(record.create_time) }}
</template>
</template>
</a-table> </a-table>
<!-- 添加楼栋模态框 --> <!-- 添加楼栋模态框 -->
@ -76,6 +71,7 @@
placeholder="请选择小区" placeholder="请选择小区"
:options="communityOptions" :options="communityOptions"
:field-names="{ label: 'name', value: 'id' }" :field-names="{ label: 'name', value: 'id' }"
style="height: 32px"
/> />
</a-form-item> </a-form-item>
@ -141,12 +137,6 @@ export default defineComponent({
dataIndex: 'building_number', dataIndex: 'building_number',
key: 'building_number', key: 'building_number',
width: 150, width: 150,
},
{
title: '创建时间',
dataIndex: 'create_time',
key: 'create_time',
width: 180,
} }
] ]
@ -366,20 +356,20 @@ export default defineComponent({
:deep(.ant-input), :deep(.ant-input),
:deep(.ant-select) { :deep(.ant-select) {
height: 40px; height: 32px !important;
} }
:deep(.ant-select-selector) { :deep(.ant-select-selector) {
height: 40px !important; height: 32px !important;
padding: 4px 11px !important; padding: 0 11px !important;
}
.ant-select-selection-search-input {
height: 38px !important; :deep(.ant-select-selection-search-input) {
} height: 30px !important;
}
.ant-select-selection-item {
line-height: 38px !important; :deep(.ant-select-selection-item) {
} line-height: 30px !important;
} }
:deep(.ant-input::placeholder), :deep(.ant-input::placeholder),