fix:玻纤小问题修改

This commit is contained in:
shijing 2025-04-02 09:07:48 +08:00
parent 4acdf521a5
commit 168ec2c9af
5 changed files with 40 additions and 3 deletions

View File

@ -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);
//
}
}
})
},

View File

@ -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:[],

View File

@ -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 }}

View File

@ -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"

View File

@ -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>