feat:element 升级导致的appearance里的模块样式异常问题修改;license增加loading;

This commit is contained in:
hyx
2024-05-08 18:23:47 +08:00
parent 1b8f574760
commit b4c036d638
3 changed files with 21 additions and 6 deletions

View File

@@ -38,11 +38,6 @@
font-size: 14px;
line-height: 16px;
}
.appearance__option {
display: flex;
justify-content: space-between;
}
}
.edit-appearance-base__footer {
@@ -62,3 +57,7 @@
}
}
}
.appearance__option {
display: flex;
justify-content: space-between;
}

View File

@@ -10,6 +10,13 @@
flex-direction: column;
height: 100%;
.license__loading {
top: 75px;
left: 130px;
width: 304px;
flex: 1;
position: relative;
}
.license-file {
display: flex;
flex-direction: row;

View File

@@ -2,6 +2,7 @@
<div class="license" :class="from">
<div class="license-form">
<el-form ref="licenseForm" :model="licenseObject" label-position="left" label-width="134px" size="small">
<div class="license__loading"><loading :loading="loading"></loading></div>
<el-form-item :label="`${$t('license.type')}`" prop="type">
{{ licenseObject.type }}
</el-form-item>
@@ -51,6 +52,7 @@ import axios from 'axios'
import { ref } from 'vue'
import { dateFormat } from '@/utils/date-util'
import _ from 'lodash'
import Loading from '@/components/common/Loading'
export default {
name: 'License',
@@ -64,14 +66,19 @@ export default {
supportID: '',
dateIssued: '',
dateExpires: ''
}
},
loading:false
}
},
components: {
Loading
},
mounted () {
this.initData()
},
methods: {
initData () {
this.loading = true
axios.get(this.url, { pageSize: -1 }).then(response => {
if (response.status === 200) {
this.licenseObject = response.data.data.license
@@ -81,6 +88,8 @@ export default {
}).catch(e => {
console.error(e)
this.$message.error(this.errorMsgHandler(e))
}).finally(() => {
this.loading = false
})
},