mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-24 05:26:58 +00:00
style: 统一字符串引号为双引号并优化代码格式
将单引号字符串统一改为双引号 调整部分组件代码格式和样式 移除空行和冗余代码
This commit is contained in:
@@ -141,7 +141,7 @@
|
||||
<el-table-column label="执行状态" prop="status" min-width="100" show-overflow-tooltip>
|
||||
<template #default="scope">
|
||||
<el-tag :type="scope.row.status === '0' ? 'primary' : 'success'">
|
||||
{{ scope.row.status === '0' ? "运行中" : "完成" }}
|
||||
{{ scope.row.status === "0" ? "运行中" : "完成" }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -231,7 +231,7 @@
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="执行状态" :span="2">
|
||||
<el-tag :type="detailFormData.status === '0' ? 'primary' : 'success'">
|
||||
{{ detailFormData.status === '0' ? "运行中" : "完成" }}
|
||||
{{ detailFormData.status === "0" ? "运行中" : "完成" }}
|
||||
</el-tag>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="执行信息" :span="2">
|
||||
|
||||
@@ -26,11 +26,17 @@
|
||||
</el-form-item>
|
||||
<!-- 时间范围,收起状态下隐藏 -->
|
||||
<el-form-item v-if="isExpand" prop="created_time" label="创建时间">
|
||||
<DatePicker v-model="createdDateRange" @update:model-value="handleCreatedDateRangeChange" />
|
||||
<DatePicker
|
||||
v-model="createdDateRange"
|
||||
@update:model-value="handleCreatedDateRangeChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- 更新时间范围,收起状态下隐藏 -->
|
||||
<el-form-item v-if="isExpand" prop="updated_time" label="更新时间">
|
||||
<DatePicker v-model="updatedDateRange" @update:model-value="handleUpdatedDateRangeChange" />
|
||||
<DatePicker
|
||||
v-model="updatedDateRange"
|
||||
@update:model-value="handleUpdatedDateRangeChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="isExpand" prop="created_id" label="创建人">
|
||||
<UserTableSelect
|
||||
@@ -218,7 +224,6 @@
|
||||
<el-table-column label="描述" prop="description" min-width="100" />
|
||||
<el-table-column label="创建时间" prop="created_time" min-width="200" sortable />
|
||||
<el-table-column label="更新时间" prop="updated_time" min-width="200" sortable />
|
||||
|
||||
|
||||
<OperationColumn :list-data-length="pageTableData.length">
|
||||
<template #default="scope">
|
||||
|
||||
@@ -281,7 +281,8 @@ const queryFormData = reactive<ApplicationPageQuery>({
|
||||
page_no: 1,
|
||||
page_size: 12,
|
||||
name: undefined,
|
||||
status: undefined, created_id: undefined,
|
||||
status: undefined,
|
||||
created_id: undefined,
|
||||
});
|
||||
|
||||
// 应用列表数据
|
||||
@@ -292,7 +293,7 @@ const formData = reactive<ApplicationForm>({
|
||||
name: "",
|
||||
access_url: "",
|
||||
icon_url: "",
|
||||
status: '0',
|
||||
status: "0",
|
||||
description: "",
|
||||
});
|
||||
|
||||
@@ -465,7 +466,7 @@ function resetForm() {
|
||||
name: "",
|
||||
access_url: "",
|
||||
icon_url: "",
|
||||
status: '0',
|
||||
status: "0",
|
||||
description: "",
|
||||
});
|
||||
formRef.value?.resetFields();
|
||||
@@ -532,8 +533,8 @@ onMounted(() => {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
gap: 16px;
|
||||
padding: 0 2px;
|
||||
justify-items: stretch;
|
||||
padding: 0 2px;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
|
||||
@@ -12,5 +12,4 @@ defineOptions({
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
</style>
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user