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

View File

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

View File

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

View File

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