feat(mes): 增加 componnents 评审的建议
parent
51e633f6c9
commit
b3154ef87a
|
|
@ -48,12 +48,14 @@ async function getList() {
|
||||||
function handleChange(value: SelectValue) {
|
function handleChange(value: SelectValue) {
|
||||||
const planId = typeof value === 'number' ? value : undefined;
|
const planId = typeof value === 'number' ? value : undefined;
|
||||||
emit('update:modelValue', planId);
|
emit('update:modelValue', planId);
|
||||||
|
// TODO @AI:可以简化,不换行么?
|
||||||
emit(
|
emit(
|
||||||
'change',
|
'change',
|
||||||
list.value.find((item) => item.id === planId),
|
list.value.find((item) => item.id === planId),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO @AI:下面,2 个,需要有空行么?
|
||||||
watch(() => [props.status, props.type], getList);
|
watch(() => [props.status, props.type], getList);
|
||||||
onMounted(getList);
|
onMounted(getList);
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ function handleChange(value: SelectValue) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO @AI:按照目前项目的规则,会希望 /** 初始化么 */ ?如果喜欢,是不是加到 style.vue 里?
|
||||||
onMounted(getList);
|
onMounted(getList);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ const latestQueryRows = ref<MesMdClientApi.Client[]>([]); // 最近一次查询
|
||||||
const queryFinished = ref(false); // 最近一次查询是否完成
|
const queryFinished = ref(false); // 最近一次查询是否完成
|
||||||
|
|
||||||
// TODO @芋艿:是否有必要搞的这么复杂???后续测试看看。
|
// TODO @芋艿:是否有必要搞的这么复杂???后续测试看看。
|
||||||
|
// TODO @AI:需要简化下么?好像只有它这里有。。。
|
||||||
const MAX_TABLE_READY_FRAMES = 60;
|
const MAX_TABLE_READY_FRAMES = 60;
|
||||||
|
|
||||||
/** 等待下一帧 */
|
/** 等待下一帧 */
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ const selectedItem = ref<MesMdClientApi.Client>(); // 当前选中客户
|
||||||
|
|
||||||
const displayLabel = computed(() => selectedItem.value?.name ?? ''); // 选择器展示名称
|
const displayLabel = computed(() => selectedItem.value?.name ?? ''); // 选择器展示名称
|
||||||
const showClear = computed(
|
const showClear = computed(
|
||||||
|
// TODO @AI:这种,是不是应该放到 // computed( 后面?
|
||||||
// 是否显示清空图标
|
// 是否显示清空图标
|
||||||
() =>
|
() =>
|
||||||
props.allowClear &&
|
props.allowClear &&
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export { default as WorkRecordStatusBar } from './status-bar.vue';
|
|
||||||
|
|
@ -12,8 +12,8 @@ import {
|
||||||
} from '#/api/mes/pro/workrecord';
|
} from '#/api/mes/pro/workrecord';
|
||||||
import { $t } from '#/locales';
|
import { $t } from '#/locales';
|
||||||
|
|
||||||
import { WorkRecordStatusBar } from './components';
|
|
||||||
import { useGridColumns, useGridFormSchema } from './data';
|
import { useGridColumns, useGridFormSchema } from './data';
|
||||||
|
import WorkRecordStatusBar from './modules/status-bar.vue';
|
||||||
|
|
||||||
/** 刷新表格 */
|
/** 刷新表格 */
|
||||||
function handleRefresh() {
|
function handleRefresh() {
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export { default as WorkRecordStatusBar } from './status-bar.vue';
|
|
||||||
|
|
@ -12,8 +12,8 @@ import {
|
||||||
} from '#/api/mes/pro/workrecord';
|
} from '#/api/mes/pro/workrecord';
|
||||||
import { $t } from '#/locales';
|
import { $t } from '#/locales';
|
||||||
|
|
||||||
import { WorkRecordStatusBar } from './components';
|
|
||||||
import { useGridColumns, useGridFormSchema } from './data';
|
import { useGridColumns, useGridFormSchema } from './data';
|
||||||
|
import WorkRecordStatusBar from './modules/status-bar.vue';
|
||||||
|
|
||||||
/** 刷新表格 */
|
/** 刷新表格 */
|
||||||
function handleRefresh() {
|
function handleRefresh() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue