feat(mes): 增加 componnents 评审的建议

This commit is contained in:
YunaiV
2026-05-30 18:10:14 +08:00
parent 51e633f6c9
commit b3154ef87a
10 changed files with 7 additions and 4 deletions

View File

@@ -48,12 +48,14 @@ async function getList() {
function handleChange(value: SelectValue) {
const planId = typeof value === 'number' ? value : undefined;
emit('update:modelValue', planId);
// TODO @AI可以简化不换行么
emit(
'change',
list.value.find((item) => item.id === planId),
);
}
// TODO @AI下面2 个,需要有空行么?
watch(() => [props.status, props.type], getList);
onMounted(getList);
</script>

View File

@@ -39,6 +39,7 @@ function handleChange(value: SelectValue) {
);
}
// TODO @AI按照目前项目的规则会希望 /** 初始化么 */ ?如果喜欢,是不是加到 style.vue 里?
onMounted(getList);
</script>

View File

@@ -28,6 +28,7 @@ const latestQueryRows = ref<MesMdClientApi.Client[]>([]); // 最近一次查询
const queryFinished = ref(false); // 最近一次查询是否完成
// TODO @芋艿:是否有必要搞的这么复杂???后续测试看看。
// TODO @AI需要简化下么好像只有它这里有。。。
const MAX_TABLE_READY_FRAMES = 60;
/** 等待下一帧 */

View File

@@ -38,6 +38,7 @@ const selectedItem = ref<MesMdClientApi.Client>(); // 当前选中客户
const displayLabel = computed(() => selectedItem.value?.name ?? ''); // 选择器展示名称
const showClear = computed(
// TODO @AI这种是不是应该放到 // computed( 后面?
// 是否显示清空图标
() =>
props.allowClear &&

View File

@@ -1 +0,0 @@
export { default as WorkRecordStatusBar } from './status-bar.vue';

View File

@@ -12,8 +12,8 @@ import {
} from '#/api/mes/pro/workrecord';
import { $t } from '#/locales';
import { WorkRecordStatusBar } from './components';
import { useGridColumns, useGridFormSchema } from './data';
import WorkRecordStatusBar from './modules/status-bar.vue';
/** 刷新表格 */
function handleRefresh() {

View File

@@ -1 +0,0 @@
export { default as WorkRecordStatusBar } from './status-bar.vue';

View File

@@ -12,8 +12,8 @@ import {
} from '#/api/mes/pro/workrecord';
import { $t } from '#/locales';
import { WorkRecordStatusBar } from './components';
import { useGridColumns, useGridFormSchema } from './data';
import WorkRecordStatusBar from './modules/status-bar.vue';
/** 刷新表格 */
function handleRefresh() {