feat: rescource style

This commit is contained in:
wangdan-fit2cloud 2025-07-08 10:43:49 +08:00
parent 5ba00faf82
commit 754c309b52

View File

@ -207,19 +207,22 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="nick_name" :label="$t('common.creator')" show-overflow-tooltip <el-table-column
width="120"/> prop="nick_name"
<el-table-column :label="$t('views.application.publishTime')" width="120"> :label="$t('common.creator')"
show-overflow-tooltip
/>
<el-table-column :label="$t('views.application.publishTime')" width="180">
<template #default="{ row }"> <template #default="{ row }">
{{ datetimeFormat(row.update_time) }} {{ datetimeFormat(row.update_time) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('views.document.table.updateTime')" width="120"> <el-table-column :label="$t('views.document.table.updateTime')" width="180">
<template #default="{ row }"> <template #default="{ row }">
{{ datetimeFormat(row.update_time) }} {{ datetimeFormat(row.update_time) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('common.createTime')" width="120"> <el-table-column :label="$t('common.createTime')" width="180">
<template #default="{ row }"> <template #default="{ row }">
{{ datetimeFormat(row.create_time) }} {{ datetimeFormat(row.create_time) }}
</template> </template>
@ -236,9 +239,9 @@ import {t} from '@/locales'
import { isAppIcon, resetUrl } from '@/utils/common' import { isAppIcon, resetUrl } from '@/utils/common'
import useStore from '@/stores' import useStore from '@/stores'
import { datetimeFormat } from '@/utils/time' import { datetimeFormat } from '@/utils/time'
import {loadPermissionApi} from "@/utils/dynamics-api/permission-api.ts"; import { loadPermissionApi } from '@/utils/dynamics-api/permission-api.ts'
import {isWorkFlow} from "@/utils/application.ts"; import { isWorkFlow } from '@/utils/application.ts'
import UserApi from "@/api/user/user.ts"; import UserApi from '@/api/user/user.ts'
const { user } = useStore() const { user } = useStore()
@ -262,13 +265,16 @@ const workspaceVisible = ref(false)
const workspaceArr = ref<any[]>([]) const workspaceArr = ref<any[]>([])
const statusVisible = ref(false) const statusVisible = ref(false)
const statusArr = ref<any[]>([]) const statusArr = ref<any[]>([])
const statusOptions = ref<any[]>([{ const statusOptions = ref<any[]>([
{
label: t('views.application.status.published'), label: t('views.application.status.published'),
value: true, value: true,
}, { },
{
label: t('views.application.status.unpublished'), label: t('views.application.status.unpublished'),
value: false, value: false,
}]) },
])
function filterWorkspaceChange(val: string) { function filterWorkspaceChange(val: string) {
if (val === 'clear') { if (val === 'clear') {