From c89adfd5c5df23b6b102766092867adc2330ebb7 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期三, 29 五月 2024 12:51:51 +0800 Subject: [PATCH] 通用查询分页 --- src/views/tigerprojects/mes/prod/biz_mes_wo/biz_mes_wo.data.ts | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/tigerprojects/mes/prod/biz_mes_wo/biz_mes_wo.data.ts b/src/views/tigerprojects/mes/prod/biz_mes_wo/biz_mes_wo.data.ts index 5acf20a..f46a04d 100644 --- a/src/views/tigerprojects/mes/prod/biz_mes_wo/biz_mes_wo.data.ts +++ b/src/views/tigerprojects/mes/prod/biz_mes_wo/biz_mes_wo.data.ts @@ -3,8 +3,8 @@ import { h, unref } from 'vue'; import { Tag, Tooltip } from 'ant-design-vue'; import { useLocale } from '/@/locales/useLocale'; -import { MesWoStatus } from '/@/api/tigerapi/mes/wo'; import { useI18n } from '/@/hooks/web/useI18n'; +import { GetEnum } from '/@/api/tigerapi/system'; const { getLocale } = useLocale(); const { t } = useI18n(); @@ -61,7 +61,7 @@ switch (status) { case 0: text = '寰呴厤缃�'; - color = '#515151'; + color = '#8a8a8a'; break; case 1: text = '宸查厤缃�'; @@ -93,7 +93,7 @@ switch (status) { case 0: text = '鍒濆鍖�'; - color = '#515151'; + color = '#8a8a8a'; break; case 1: text = '宸插鍏�'; @@ -247,7 +247,8 @@ component: 'ApiSelect', colProps: { span: 8 }, componentProps: { - api: MesWoStatus, + api: GetEnum, + params: { name: 'BIZ_MES_WO+STATUSs' }, resultField: 'Data', labelField: unref(getLocale) == 'zh_CN' ? 'Desc' : 'Name', valueField: 'Value', @@ -287,6 +288,14 @@ span: 4, }, }, + { + field: 'TABLE_NAME', + label: '琛ㄥ悕', + component: 'Input', + colProps: { span: 8 }, + defaultValue: 'BIZ_MES_WO', + ifShow: false, + }, ]; //鏂板缁勪欢export const -- Gitblit v1.9.3