This commit is contained in:
wangdan-fit2cloud 2023-12-12 14:13:22 +08:00
parent 123a4b29b8
commit 8ca8e359d4
9 changed files with 98 additions and 104 deletions

View File

@ -1,5 +1,5 @@
<template v-loading="_loading"> <template v-loading="_loading">
<div style="width: 100%; display: flex; flex-wrap: wrap"> <div class="arrt-object-card flex w-full">
<el-card class="box-card" :style="style" v-for="(item, index) in _data" :key="index"> <el-card class="box-card" :style="style" v-for="(item, index) in _data" :key="index">
<DynamicsForm <DynamicsForm
:style="formStyle" :style="formStyle"
@ -113,6 +113,7 @@ defineExpose({
}) })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.arrt-object-card {
.box-card { .box-card {
width: 30%; width: 30%;
position: relative; position: relative;
@ -146,16 +147,11 @@ defineExpose({
} }
} }
} }
:deep(.el-form-item) {
&:last-child {
margin-bottom: 0px;
}
margin-bottom: 18px;
}
.delete-button { .delete-button {
position: absolute; position: absolute;
right: 12px; right: 12px;
top: 10px; top: 10px;
height: auto; height: auto;
} }
}
</style> </style>

View File

@ -1,5 +1,5 @@
<template> <template>
<el-card class="box-card" :style="style"> <el-card :style="style">
<DynamicsForm <DynamicsForm
:read-only="view" :read-only="view"
:style="formStyle" :style="formStyle"
@ -72,11 +72,4 @@ defineExpose({
validate validate
}) })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
:deep(.el-form-item) {
&:last-child {
margin-bottom: 0px;
}
margin-bottom: 18px;
}
</style>

View File

@ -8,7 +8,7 @@
:name="index" :name="index"
> >
<template v-if="formField.children"> <template v-if="formField.children">
<el-card class="box-card" :style="style"> <el-card :style="style">
<DynamicsForm <DynamicsForm
:style="formStyle" :style="formStyle"
:view="view" :view="view"
@ -119,11 +119,4 @@ defineExpose({
field: props.field field: props.field
}) })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
:deep(.el-form-item) {
&:last-child {
margin-bottom: 0px;
}
margin-bottom: 18px;
}
</style>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="progress-table-item">
<el-popover placement="top-start" :title="row[text_field]" :width="200" trigger="hover"> <el-popover placement="top-start" :title="row[text_field]" :width="200" trigger="hover">
<template #reference> <template #reference>
<el-progress v-bind="$attrs" :percentage="row[value_field]"></el-progress <el-progress v-bind="$attrs" :percentage="row[value_field]"></el-progress
@ -61,8 +61,10 @@ const view_card = computed(() => {
line-height: 22px; line-height: 22px;
height: 22px; height: 22px;
} }
.progress-table-item {
.value { .value {
float: right; float: right;
@include valueScss; @include valueScss;
} }
}
</style> </style>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="table-checkbox">
<div class="header"> <div class="header">
<div class="title">{{ title }}</div> <div class="title">{{ title }}</div>
@ -186,6 +186,7 @@ const activeText = computed(() => {
}) })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.table-checkbox {
.header { .header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -208,4 +209,5 @@ const activeText = computed(() => {
color: var(--el-color-primary); color: var(--el-color-primary);
} }
} }
}
</style> </style>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="table-radio">
<div class="header"> <div class="header">
<div class="title">{{ title }}</div> <div class="title">{{ title }}</div>
@ -174,6 +174,7 @@ const activeText = computed(() => {
}) })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.table-radio {
.header { .header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -196,4 +197,5 @@ const activeText = computed(() => {
color: var(--el-color-primary); color: var(--el-color-primary);
} }
} }
}
</style> </style>

View File

@ -29,8 +29,13 @@
} }
.el-form-item { .el-form-item {
margin-bottom: 24px; margin-bottom: 18px;
.el-form-item {
margin-bottom: 18px;
&:last-child {
margin-bottom: 0px;
}
}
} }
.el-dialog { .el-dialog {

View File

@ -116,6 +116,7 @@ function deleteDateset(row: any) {
const index = datasetList.value.findIndex((v) => v.id === row.id) const index = datasetList.value.findIndex((v) => v.id === row.id)
datasetList.value.splice(index, 1) datasetList.value.splice(index, 1)
MsgSuccess('删除成功') MsgSuccess('删除成功')
loading.value = false
}) })
.catch(() => { .catch(() => {
loading.value = false loading.value = false

View File

@ -3,7 +3,7 @@
<el-result icon="success" title="🎉 数据集创建成功 🎉"> <el-result icon="success" title="🎉 数据集创建成功 🎉">
<template #sub-title> <template #sub-title>
<div class="mt-8"> <div class="mt-8">
<span class="bold">{{ data?.documment_list.length || 0 }}</span> <span class="bold">{{ data?.document_list.length || 0 }}</span>
<el-text type="info" class="ml-4">文档</el-text> <el-text type="info" class="ml-4">文档</el-text>
<el-divider direction="vertical" /> <el-divider direction="vertical" />
<span class="bold">{{ paragraph_count || 0 }}</span> <span class="bold">{{ paragraph_count || 0 }}</span>