bug修复

This commit is contained in:
binbin_pan 2024-05-13 13:48:05 +08:00
parent e64b972cb6
commit 4e397af959
4 changed files with 23 additions and 8 deletions

View File

@ -40,7 +40,8 @@ export default {
return { return {
value: [], value: [],
numberList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], numberList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
compKey: 0 compKey: 0,
maType: ''
}; };
}, },
props: ["val", "suffix", 'sonTitle'], props: ["val", "suffix", 'sonTitle'],
@ -52,12 +53,18 @@ export default {
}, },
mounted() { mounted() {
this.value = this.val.toString().split(""); this.value = this.val.toString().split("");
this.$eventBus.$on('maType', (maType) => {
this.maType = maType
});
},
destroyed() {
this.$eventBus.$off('maType');
}, },
methods: { methods: {
handleClick(val) { handleClick() {
const params = { const params = {
open: true, open: true,
maType: val maType: this.maType
} }
this.$refs.materialsDialog.setOpen(params); this.$refs.materialsDialog.setOpen(params);
} }

View File

@ -41,7 +41,8 @@ export default {
return { return {
value: [], value: [],
numberList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], numberList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
compKey: 0 compKey: 0,
maType: ''
}; };
}, },
props: ["val", "suffix", 'sonTitle'], props: ["val", "suffix", 'sonTitle'],
@ -53,12 +54,18 @@ export default {
}, },
mounted() { mounted() {
this.value = this.val.toString().split(""); this.value = this.val.toString().split("");
this.$eventBus.$on('maType', (maType) => {
this.maType = maType
});
},
destroyed() {
this.$eventBus.$off('maType');
}, },
methods: { methods: {
handleClick(val) { handleClick() {
const params = { const params = {
open: true, open: true,
maType: val maType: this.maType
} }
this.$refs.returnMaterialsDialog.setOpen(params); this.$refs.returnMaterialsDialog.setOpen(params);
} }

View File

@ -166,6 +166,7 @@ export default {
setOpen(params) { setOpen(params) {
this.open = params.open this.open = params.open
this.maType = params.maType this.maType = params.maType
console.log('🚀 ~ setOpen ~ this.maType:', this.maType);
this.tableData = [] this.tableData = []
this.total = 0 this.total = 0
setTimeout(() => { setTimeout(() => {

View File

@ -27,7 +27,7 @@
<div class="center-bottom"> <div class="center-bottom">
<CenterBottom></CenterBottom> <CenterBottom></CenterBottom>
</div> </div>
<!-- <div class="buttom-box"> <div class="buttom-box">
<div class="buttonTop"> <div class="buttonTop">
<div <div
:class="maType == 1 ? 'on' : ''" :class="maType == 1 ? 'on' : ''"
@ -44,7 +44,7 @@
工器具 工器具
</div> </div>
</div> </div>
</div> --> </div>
</div> </div>
<!-- 右侧数据模块列表 --> <!-- 右侧数据模块列表 -->
<div class="rightModuleBox"> <div class="rightModuleBox">