perf: optimize style
This commit is contained in:
parent
8ad7827bbb
commit
bd469971f4
@ -330,7 +330,7 @@ $light_gray:#eee;
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100vh;
|
height: calc(100vh - 6px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-card {
|
.box-card {
|
||||||
|
|||||||
@ -78,25 +78,13 @@
|
|||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card class="box-card progress">
|
|
||||||
<div slot="header">
|
|
||||||
<div class="box-card-header">
|
|
||||||
<div class="clearfix card-header-back">
|
|
||||||
<span>任务进度</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<task-progress :data="taskProgressDataList"></task-progress>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import config from '@/../package.json'
|
import config from '@/../package.json'
|
||||||
import settingApi, { getSetting, getTaskProgress } from "@/api/setting-api";
|
import settingApi, { getSetting } from "@/api/setting-api";
|
||||||
import Logo from "@/components/Logo";
|
import Logo from "@/components/Logo";
|
||||||
import getPageTitle from "@/utils/get-page-title";
|
import getPageTitle from "@/utils/get-page-title";
|
||||||
import UploadImageInput from "@/components/input/UploadImageInput.vue";
|
import UploadImageInput from "@/components/input/UploadImageInput.vue";
|
||||||
@ -117,7 +105,6 @@ export default {
|
|||||||
clickSync: false,
|
clickSync: false,
|
||||||
indexingPercent: 100,
|
indexingPercent: 100,
|
||||||
syncPercent: 100,
|
syncPercent: 100,
|
||||||
taskProgressDataList: [],
|
|
||||||
resetLoading: false,
|
resetLoading: false,
|
||||||
webpEnabled: false,
|
webpEnabled: false,
|
||||||
logoFileName: '',
|
logoFileName: '',
|
||||||
@ -137,9 +124,6 @@ export default {
|
|||||||
if (this.activeName === '2') {
|
if (this.activeName === '2') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getTaskProgress().then(res => {
|
|
||||||
this.taskProgressDataList = res.data
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['message']),
|
...mapState(['message']),
|
||||||
|
|||||||
54
src/views/setting/taskProgress.vue
Normal file
54
src/views/setting/taskProgress.vue
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-card class="box-card">
|
||||||
|
<div slot="header">
|
||||||
|
<div class="box-card-header">
|
||||||
|
<div class="clearfix card-header-back">
|
||||||
|
<span>任务进度</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<task-progress :data="taskProgressDataList"></task-progress>
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import TaskProgress from "@/components/TaskProgress/index.vue";
|
||||||
|
import {getTaskProgress} from "@/api/setting-api";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { TaskProgress },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
taskProgressDataList: [],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
getTaskProgress().then(res => {
|
||||||
|
this.taskProgressDataList = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import "src/styles/setting";
|
||||||
|
|
||||||
|
.progress {
|
||||||
|
margin-top: 5px;
|
||||||
|
>>> .el-card__header {
|
||||||
|
padding: 8px 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
Loading…
x
Reference in New Issue
Block a user