Update qr task style (#62)

Co-authored-by: Germey <germey@acedata.cloud>
This commit is contained in:
GermeyandGermey authored and GitHub committed 2024-06-30 11:34:15 +00:00
1 parent eee08eb1c2
commit ce6274a88b
4 files changed
+17 -3

No files matched your search

@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "update qrart task style",
"packageName": "@acedatacloud/nexior",
"email": "germey@acedata.cloud",
"dependentChangeType": "patch"
}
-1
View File
@@ -73,7 +73,6 @@ export default defineComponent({
width: 100%; width: 100%;
height: calc(100% - 50px); height: calc(100% - 50px);
flex: 1; flex: 1;
overflow-y: scroll;
} }
.actions { .actions {
height: 50px; height: 50px;
+9 -1
View File
@@ -1,7 +1,7 @@
<template> <template>
<div class="panel recent tasks"> <div class="panel recent tasks">
<task-preview v-for="(task, taskIndex) in tasks?.items" :key="taskIndex" :model-value="task" class="preview" /> <task-preview v-for="(task, taskIndex) in tasks?.items" :key="taskIndex" :model-value="task" class="preview" />
<p v-if="tasks?.items?.length === 0"> <p v-if="tasks?.items?.length === 0" class="description">
{{ $t('qrart.message.noTasks') }} {{ $t('qrart.message.noTasks') }}
</p> </p>
</div> </div>
@@ -27,6 +27,9 @@ export default defineComponent({
return this.$store.state.qrart?.status?.getApplication === Status.Request; return this.$store.state.qrart?.status?.getApplication === Status.Request;
}, },
tasks() { tasks() {
return {
items: []
};
// reverse the order of the tasks.items // reverse the order of the tasks.items
return { return {
...this.$store.state.qrart?.tasks, ...this.$store.state.qrart?.tasks,
@@ -86,6 +89,11 @@ export default defineComponent({
.preview { .preview {
margin-right: 15px; margin-right: 15px;
} }
.description {
text-align: left;
font-size: 14px;
color: var(--el-text-color-secondary);
}
} }
} }
</style> </style>
+1 -1
View File
@@ -316,7 +316,7 @@
"description": "没有可用操作时的消息" "description": "没有可用操作时的消息"
}, },
"message.noTasks": { "message.noTasks": {
"message": "没有任务,请创建新任务", "message": "没有历史任务,请点击下方生成新二维码",
"description": "没有任务时的消息" "description": "没有任务时的消息"
}, },
"markerShape.square": { "markerShape.square": {