fix:玻纤小问题修改
This commit is contained in:
parent
4acdf521a5
commit
168ec2c9af
|
|
@ -104,6 +104,31 @@ export default {
|
|||
let mySvgWdith =document.getElementsByClassName("output")[0].getBoundingClientRect().width+150 ;
|
||||
document.getElementById('mySvg').setAttribute("height", mySvgHeight);
|
||||
document.getElementById('mySvg').setAttribute("width", mySvgWdith);
|
||||
|
||||
svg.selectAll("g.node").on("click", function(event, d) {
|
||||
// 改变节点的颜色
|
||||
const node = d3.select(this);
|
||||
const currentColor = node.select("rect").style("fill");
|
||||
|
||||
// 判断当前颜色,如果是默认颜色,就修改为新的颜色
|
||||
if (currentColor === "rgb(255, 255, 255)") { // 如果当前是白色
|
||||
// svg.selectAll("g.node").forEach(item=>{
|
||||
// item.select("rect").style("fill", "#fff");
|
||||
// // d3.select(item).select("rect").style("fill", "#fff"); // 修改为白色
|
||||
// });
|
||||
node.select("rect").style("fill", "#f00"); // 修改为红色
|
||||
} else {
|
||||
node.select("rect").style("fill", "#fff"); // 否则恢复白色
|
||||
}
|
||||
// 调用自定义方法
|
||||
onNodeClick(d);
|
||||
});
|
||||
// 自定义方法:在节点点击时触发
|
||||
function onNodeClick(nodeData) {
|
||||
console.log("Node clicked:", nodeData);
|
||||
this.$emit("nodeClick", nodeData);
|
||||
// 你可以在这里处理更多的逻辑,例如显示一个提示框,更新图形状态等
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
|
|||
|
|
@ -62,6 +62,11 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="输出" prop="material_out_name">
|
||||
</el-table-column>
|
||||
<el-table-column label="追踪方式">
|
||||
<template #default="scope">
|
||||
<span>{{ tracking_[scope.row.material_out_tracking] }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="出材率" prop="out_rate">
|
||||
</el-table-column>
|
||||
<el-table-column label="切分融合数量" prop="div_number">
|
||||
|
|
@ -94,6 +99,10 @@ export default {
|
|||
40: "进行中",
|
||||
50: "已完成",
|
||||
},
|
||||
tracking_:{
|
||||
10:"批次",
|
||||
20:"单个",
|
||||
},
|
||||
form: {},
|
||||
nodes:[],
|
||||
edges:[],
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
style="width: 300px;margin-left: 10px;"
|
||||
></el-input>
|
||||
<scScanner @scanResult="formWminChange"></scScanner>
|
||||
<scan-dialog ref="scanDialog" @closed="scanClose"> </scan-dialog>
|
||||
</el-form-item>
|
||||
<el-form-item label="总计:">
|
||||
{{ totalCount }}
|
||||
|
|
|
|||
|
|
@ -101,6 +101,10 @@
|
|||
<el-link v-else :underline="false" type="primary" @click="showWpr(scope.row)">{{scope.row.count}}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="备注"
|
||||
prop="note"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="生产中"
|
||||
prop="count_working"
|
||||
|
|
|
|||
|
|
@ -51,9 +51,9 @@
|
|||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料扫码">
|
||||
<el-form-item label="物料扫码" style="display: flex;">
|
||||
<scScanner @scanResult="formWminChange"></scScanner>
|
||||
<el-input ref="codeInput" v-model="wm_in" clearable @change="formWminChange(wm_in)"></el-input>
|
||||
<el-input ref="codeInput" v-model="wm_in" clearable @change="formWminChange(wm_in)" style="width: 200px;margin-left: 4px;"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="使用数量" prop="count_use">
|
||||
<el-input-number ref="codeInput" v-model="form.count_use" :min="0" clearable></el-input-number>
|
||||
|
|
|
|||
Loading…
Reference in New Issue