chore(web-antdv-next): sync MES formatting
parent
569ded85f9
commit
0efde47539
|
|
@ -51,12 +51,12 @@ function handleColorChange(event: Event) {
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.route-color-picker__swatch {
|
.route-color-picker__swatch {
|
||||||
|
inline-size: 36px;
|
||||||
block-size: 28px;
|
block-size: 28px;
|
||||||
|
padding: 2px;
|
||||||
|
cursor: pointer;
|
||||||
border: 1px solid var(--ant-color-border, #d9d9d9);
|
border: 1px solid var(--ant-color-border, #d9d9d9);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
cursor: pointer;
|
|
||||||
inline-size: 36px;
|
|
||||||
padding: 2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.route-color-picker__swatch:disabled {
|
.route-color-picker__swatch:disabled {
|
||||||
|
|
|
||||||
|
|
@ -89,8 +89,20 @@ function initGantt() {
|
||||||
|
|
||||||
gantt.config.columns = [
|
gantt.config.columns = [
|
||||||
{ name: 'text', label: '任务名称', tree: true, width: 180, resize: true },
|
{ 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: 'start_date', label: '开始时间', align: 'center', width: 130 },
|
||||||
{ name: 'end_date', label: '结束时间', align: 'center', width: 130 },
|
{ name: 'end_date', label: '结束时间', align: 'center', width: 130 },
|
||||||
];
|
];
|
||||||
|
|
@ -194,7 +206,10 @@ defineExpose({ loadData });
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div ref="ganttContainer" :style="{ width: '100%', height: `${height}px` }"></div>
|
<div
|
||||||
|
ref="ganttContainer"
|
||||||
|
:style="{ width: '100%', height: `${height}px` }"
|
||||||
|
></div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue