修改图标,调整字段关联界面

This commit is contained in:
YUN-PC5\user 2023-10-16 16:59:39 +08:00
parent 845f77da6f
commit 68758c9154
18 changed files with 76 additions and 34 deletions

View File

@ -135,30 +135,27 @@
.loader { .loader {
width: 50px; width: 50px;
aspect-ratio: 1; aspect-ratio: 1;
display: grid; border-radius: 50%;
border: 8px solid #0000;
border-right-color: #ffa50097;
position: relative;
animation: l24 1s infinite linear;
} }
.loader::before, .loader:before,
.loader::after { .loader:after {
content:""; content: "";
grid-area: 1/1; position: absolute;
--c:no-repeat radial-gradient(farthest-side,#25b09b 92%,#0000); inset: -8px;
background: border-radius: 50%;
var(--c) 50% 0, border: inherit;
var(--c) 50% 100%, animation: inherit;
var(--c) 100% 50%, animation-duration: 2s;
var(--c) 0 50%;
background-size: 12px 12px;
animation: l12 1s infinite;
} }
.loader::before { .loader:after {
margin: 4px; animation-duration: 4s;
filter: hue-rotate(45deg);
background-size: 8px 8px;
animation-timing-function: linear
} }
@keyframes l24 {
@keyframes l12 { 100% {transform: rotate(1turn)}
100%{transform: rotate(.5turn)}
} }
</style> </style>
</head> </head>

BIN
public/ck.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 15 KiB

BIN
public/favicon1.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
public/favicon_logosc.zip Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -0,0 +1 @@
{"background_color":"#ffffff","display":"standalone","icons":[{"sizes":"192x192","src":"/android-chrome-192x192.png","type":"image/png"},{"sizes":"512x512","src":"/android-chrome-512x512.png","type":"image/png"}],"name":"","short_name":"","theme_color":"#ffffff"}

View File

@ -1,10 +1,11 @@
import request from '@/utils/request' import request from '@/utils/request'
const url = '/system/field/' const url = '/system/field/'
export const getModelList = () => { export const getModelList = (params: { pageNum: number; pageSize: number }) => {
return request({ return request({
url: url + 'getModelList', url: url + 'getModelList',
method: 'get' method: 'get',
params
}) })
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
src/assets/logo/logo1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -4,7 +4,7 @@
overflow-y: hidden; overflow-y: hidden;
z-index: 1001; z-index: 1001;
transition: width 0.28s ease; transition: width 0.28s ease;
background-image: var(--base-menu-background); background-color: var(--base-menu-background);
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -22,10 +22,15 @@ $panGreen: #30b08f;
--base-login-width: 280px; --base-login-width: 280px;
} }
$base-menu-background: #324157;
$base-menu-light-background: #ffffff;
$base-menu-color: #bfcbd9;
$base-menu-light-color: rgba(0, 0, 0, 0.7);
/***侧边栏深色配置***/ /***侧边栏深色配置***/
[data-theme='theme-dark'] { [data-theme='theme-dark'] {
// --base-menu-background: #324157; --base-menu-background: #324157;
--base-menu-background: linear-gradient(to right, #243949 0%, #517fa4 100%); // --base-menu-background: linear-gradient(to right, #243949 0%, #517fa4 100%);
--base-logo-title-color: #ffffff; --base-logo-title-color: #ffffff;
// // el-ement ui 设置 // // el-ement ui 设置
// --el-fill-color-blank: #304156; // --el-fill-color-blank: #304156;
@ -44,3 +49,10 @@ html.cafe {
html.contrast { html.contrast {
filter: contrast(2); filter: contrast(2);
} }
:export {
menuColor: $base-menu-color;
menuLightColor: $base-menu-light-color;
menuBackground: $base-menu-background;
menuLightBackground: $base-menu-light-background;
}

View File

@ -17,9 +17,15 @@
<template #header> <template #header>
<b>模型</b> <b>模型</b>
</template> </template>
<el-table ref="modelTable" :data="modelList" height="580" border highlight-current-row @current-change="handleCurrentChange"> <el-table ref="modelTable" :data="modelList" border highlight-current-row @current-change="handleCurrentChange">
<el-table-column prop="fullName" label="模型" /> <el-table-column prop="fullName" label="模型" />
</el-table> </el-table>
<pagination
v-model:total="total"
v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize"
:layout="'sizes, pager, jumper'"
@pagination="getList" />
</el-card> </el-card>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
@ -60,11 +66,22 @@ const goBack = () => {
} }
const modelTable = ref<InstanceType<typeof ElTable>>() const modelTable = ref<InstanceType<typeof ElTable>>()
const initBtnLoading = ref(false) const initBtnLoading = ref(false)
const total = ref(0)
const queryParams = ref({
pageNum: 1,
pageSize: 10
})
const handleInit = async () => { const handleInit = async () => {
initBtnLoading.value = true initBtnLoading.value = true
await initFields() saveBtnLoading.value = true
try {
await initFields()
modal.msgSuccess('初始化完成')
} catch (err) {
console.error(err)
}
initBtnLoading.value = false initBtnLoading.value = false
modal.msgSuccess('初始化完成') saveBtnLoading.value = false
getList() getList()
} }
interface model { interface model {
@ -81,13 +98,18 @@ const modelList = ref<model[]>([])
const fieldList = ref<field[]>([]) const fieldList = ref<field[]>([])
const getList = async () => { const getList = async () => {
cardLoading.value = true cardLoading.value = true
const { data } = await getModelList() try {
modelList.value = data const { data } = await getModelList(queryParams.value)
modelList.value = data.result
total.value = data.totalNum
} catch (err) {
console.error(err)
}
cardLoading.value = false cardLoading.value = false
} }
const currentRow = ref() const currentRow = ref()
const handleCurrentChange = (val: any) => { const handleCurrentChange = async (val: any) => {
if (val) { if (val) {
currentRow.value = val currentRow.value = val
handleLoadFieldList() handleLoadFieldList()
@ -106,7 +128,6 @@ const handleLoadFieldList = async () => {
} }
fieldListLoading.value = false fieldListLoading.value = false
} }
const fieldListLoading = ref(false) const fieldListLoading = ref(false)
const saveBtnLoading = ref(false) const saveBtnLoading = ref(false)
const handleSave = async () => { const handleSave = async () => {
@ -125,4 +146,14 @@ onMounted(() => {
}) })
</script> </script>
<style scoped lang="scss"></style> <style scoped lang="scss">
.flex {
display: flex;
}
.justify-between {
justify-content: space-between;
}
.items-center {
align-items: center;
}
</style>