chore(web-antdv-next): sync MES formatting

pull/356/head
XuZhiqiang 2026-06-06 07:37:45 +08:00
parent 569ded85f9
commit 0efde47539
2 changed files with 21 additions and 6 deletions

View File

@ -51,12 +51,12 @@ function handleColorChange(event: Event) {
<style scoped>
.route-color-picker__swatch {
inline-size: 36px;
block-size: 28px;
padding: 2px;
cursor: pointer;
border: 1px solid var(--ant-color-border, #d9d9d9);
border-radius: 4px;
cursor: pointer;
inline-size: 36px;
padding: 2px;
}
.route-color-picker__swatch:disabled {

View File

@ -89,8 +89,20 @@ function initGantt() {
gantt.config.columns = [
{ name: 'text', label: '任务名称', tree: true, width: 180, resize: true },
{ name: 'workstation', label: '工作站', align: 'center', width: 100, resize: true },
{ name: 'process', label: '工序', align: 'center', width: 100, resize: true },
{
name: 'workstation',
label: '工作站',
align: 'center',
width: 100,
resize: true,
},
{
name: 'process',
label: '工序',
align: 'center',
width: 100,
resize: true,
},
{ name: 'start_date', label: '开始时间', align: 'center', width: 130 },
{ name: 'end_date', label: '结束时间', align: 'center', width: 130 },
];
@ -194,7 +206,10 @@ defineExpose({ loadData });
</script>
<template>
<div ref="ganttContainer" :style="{ width: '100%', height: `${height}px` }"></div>
<div
ref="ganttContainer"
:style="{ width: '100%', height: `${height}px` }"
></div>
</template>
<style>