diff --git a/src/locales/en.ts b/src/locales/en.ts index 6de60ba6..8bd80169 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -205,6 +205,58 @@ export default { days: 'days' } }, + ProcessParameter: { + fields: { + code: 'Process Parameter Code', + name: 'Process Parameter Name', + isEnable: 'Enabled', + remark: 'Remark', + createTime: 'Create Time', + operate: 'Operation' + }, + placeholders: { + code: 'Please enter process parameter code', + name: 'Please enter process parameter name', + isEnable: 'Please select enabled status', + remark: 'Please enter remark' + }, + messages: { + nameRequired: 'Process parameter name is required', + isEnableRequired: 'Enabled status is required', + codeRequired: 'Code is required' + }, + filenames: { + export: 'ProcessParameter.xls' + } + }, + ProcessRoute: { + fields: { + code: 'Process Route Code', + name: 'Process Route Name', + isEnable: 'Enabled', + remark: 'Remark', + createTime: 'Create Time', + operate: 'Operation', + items: 'Process Parameter Details', + processParameter: 'Process Parameter' + }, + placeholders: { + code: 'Please enter process route code', + name: 'Please enter process route name', + isEnable: 'Please select enabled status', + remark: 'Please enter remark', + processParameter: 'Please select process parameter' + }, + messages: { + nameRequired: 'Process route name is required', + isEnableRequired: 'Enabled status is required', + codeRequired: 'Code is required', + itemsRequired: 'Please complete process parameter details' + }, + filenames: { + export: 'ProcessRoute.xls' + } + }, ReportDashboard: { DashboardList: { searchNameLabel: 'Name', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index b58866e8..4c9bd37d 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -205,6 +205,58 @@ export default { days: '天' } }, + ProcessParameter: { + fields: { + code: '工艺参数编码', + name: '工艺参数名称', + isEnable: '是否启用', + remark: '备注', + createTime: '创建时间', + operate: '操作' + }, + placeholders: { + code: '请输入工艺参数编码', + name: '请输入工艺参数名称', + isEnable: '请选择是否启用', + remark: '请输入备注' + }, + messages: { + nameRequired: '工艺参数名称不能为空', + isEnableRequired: '是否启用不能为空', + codeRequired: '编码不能为空' + }, + filenames: { + export: '工艺参数.xls' + } + }, + ProcessRoute: { + fields: { + code: '工艺路线编码', + name: '工艺路线名称', + isEnable: '是否启用', + remark: '备注', + createTime: '创建时间', + operate: '操作', + items: '工艺参数明细', + processParameter: '工艺参数' + }, + placeholders: { + code: '请输入工艺路线编码', + name: '请输入工艺路线名称', + isEnable: '请选择是否启用', + remark: '请输入备注', + processParameter: '请选择工艺参数' + }, + messages: { + nameRequired: '工艺路线名称不能为空', + isEnableRequired: '是否启用不能为空', + codeRequired: '编码不能为空', + itemsRequired: '请完善工艺参数明细' + }, + filenames: { + export: '工艺路线.xls' + } + }, ReportDashboard: { DashboardList: { searchNameLabel: '名称', diff --git a/src/views/infra/apiAccessLog/index.vue b/src/views/infra/apiAccessLog/index.vue index c0935e2c..9c1e047d 100644 --- a/src/views/infra/apiAccessLog/index.vue +++ b/src/views/infra/apiAccessLog/index.vue @@ -89,7 +89,7 @@ - + @@ -159,6 +159,18 @@ const message = useMessage() // 消息弹窗 const loading = ref(true) // 列表的加载中 const total = ref(0) // 列表的总页数 const list = ref([]) // 列表的数据 +const tableRef = ref() +const planTableMaxHeight = ref(520) +const planPaginationRef = ref() + +const updatePlanTableMaxHeight = async () => { + await nextTick() + const tableTop = tableRef.value?.$el?.getBoundingClientRect().top ?? 0 + const paginationHeight = planPaginationRef.value?.getBoundingClientRect().height ?? 72 + const pageBottomGap = 56 + const availableHeight = window.innerHeight - tableTop - paginationHeight - pageBottomGap + planTableMaxHeight.value = Math.min(window.innerHeight, Math.max(240, Math.floor(availableHeight))) +} const queryParams = reactive({ pageNo: 1, pageSize: 10, @@ -182,6 +194,7 @@ const getList = async () => { total.value = data.total } finally { loading.value = false + updatePlanTableMaxHeight() } } @@ -221,5 +234,11 @@ const handleExport = async () => { /** 初始化 **/ onMounted(() => { getList() + updatePlanTableMaxHeight() + window.addEventListener("resize", updatePlanTableMaxHeight) +}) + +onBeforeUnmount(() => { + window.removeEventListener("resize", updatePlanTableMaxHeight) }) diff --git a/src/views/infra/apiErrorLog/index.vue b/src/views/infra/apiErrorLog/index.vue index 37a9da38..9cb4269e 100644 --- a/src/views/infra/apiErrorLog/index.vue +++ b/src/views/infra/apiErrorLog/index.vue @@ -86,7 +86,7 @@ - + @@ -172,6 +172,18 @@ const message = useMessage() // 消息弹窗 const loading = ref(true) // 列表的加载中 const total = ref(0) // 列表的总页数 const list = ref([]) // 列表的数据 +const tableRef = ref() +const planTableMaxHeight = ref(520) +const planPaginationRef = ref() + +const updatePlanTableMaxHeight = async () => { + await nextTick() + const tableTop = tableRef.value?.$el?.getBoundingClientRect().top ?? 0 + const paginationHeight = planPaginationRef.value?.getBoundingClientRect().height ?? 72 + const pageBottomGap = 56 + const availableHeight = window.innerHeight - tableTop - paginationHeight - pageBottomGap + planTableMaxHeight.value = Math.min(window.innerHeight, Math.max(240, Math.floor(availableHeight))) +} const queryParams = reactive({ pageNo: 1, pageSize: 10, @@ -194,6 +206,7 @@ const getList = async () => { total.value = data.total } finally { loading.value = false + updatePlanTableMaxHeight() } } @@ -247,5 +260,11 @@ const handleExport = async () => { /** 初始化 **/ onMounted(() => { getList() + updatePlanTableMaxHeight() + window.addEventListener("resize", updatePlanTableMaxHeight) +}) + +onBeforeUnmount(() => { + window.removeEventListener("resize", updatePlanTableMaxHeight) }) diff --git a/src/views/infra/codegen/index.vue b/src/views/infra/codegen/index.vue index 1e4d3d2a..176a370d 100644 --- a/src/views/infra/codegen/index.vue +++ b/src/views/infra/codegen/index.vue @@ -56,7 +56,7 @@ - +