bug修复
This commit is contained in:
parent
e64b972cb6
commit
4e397af959
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue