bug修复

main
zhaoyu 2023-12-14 14:10:15 +08:00
parent f575847b82
commit 5a1ec5df35
4 changed files with 7 additions and 20 deletions

View File

@ -269,7 +269,7 @@ export default {
} }
}, },
created() { created() {
this.CORPINFO_ID = this.$parent.CORPINFO_ID this.CORPINFO_ID = this.$parent.CORPINFO_ID,
this.getList() this.getList()
this.getUnitsList() this.getUnitsList()
this.getCorpList() this.getCorpList()

View File

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" :other-show="true" active-name="List"/> <OutSourced v-show="activeName=='OutSourced'" ref="outSourced" :other-show="true" active-name="List"/>
<List v-show="activeName=='List'" ref="list" /> <List v-if="activeName=='List'" ref="list" />
<Edit v-if="activeName=='Edit'" /> <Edit v-if="activeName=='Edit'" />
<Info v-if="activeName=='Info'" /> <Info v-if="activeName=='Info'" />
<videoList v-if="activeName=='videoList'" /> <videoList v-if="activeName=='videoList'" />
@ -32,9 +32,6 @@ export default {
}, },
watch: { watch: {
activeName(val) { activeName(val) {
if (val == 'List') {
this.$refs.list.getQuery()
}
if (val == 'OutSourced') { if (val == 'OutSourced') {
this.$refs.outSourced.getQuery() this.$refs.outSourced.getQuery()
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" :other-show="true" active-name="List"/> <OutSourced v-show="activeName=='OutSourced'" ref="outSourced" :other-show="true" active-name="List"/>
<List v-show="activeName=='List'" ref="list" /> <List v-if="activeName=='List'" ref="list" />
<List2 v-if="activeName=='List2'" /> <List2 v-if="activeName=='List2'" />
<Info v-if="activeName=='Info'" /> <Info v-if="activeName=='Info'" />
<hidden-info v-if="activeName==='HiddenInfo'"/> <hidden-info v-if="activeName==='HiddenInfo'"/>
@ -32,8 +32,8 @@ export default {
}, },
watch: { watch: {
activeName(val) { activeName(val) {
if (val == 'List') { if (val == 'OutSourced') {
this.$refs.list.getList() this.$refs.outSourced.getQuery()
} }
} }
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<OutSourced v-if="activeName=='OutSourced'" ref="outSourced" :other-show="true" active-name="List"/> <OutSourced v-if="activeName=='OutSourced'" ref="outSourced" :other-show="true" active-name="List"/>
<List v-show="activeName=='List'" ref="list" /> <List v-if="activeName=='List'" ref="list" />
<videoList v-if="activeName=='videoList'" /> <videoList v-if="activeName=='videoList'" />
<!-- <component :is="activeName"/>--> <!-- <component :is="activeName"/>-->
</div> </div>
@ -24,21 +24,11 @@ export default {
activeName: 'OutSourced', activeName: 'OutSourced',
UNITS_ID: '', UNITS_ID: '',
OUTSOURCED_ID: '', OUTSOURCED_ID: '',
CORPINFO_ID:'' CORPINFO_ID: ''
} }
}, },
watch: { watch: {
activeName(val) { activeName(val) {
if (val == 'List') {
this.$refs.list.getList()
}
}
},
watch: {
activeName(val) {
if (val == 'List') {
this.$refs.list.getQuery()
}
if (val == 'OutSourced') { if (val == 'OutSourced') {
this.$refs.outSourced.getQuery() this.$refs.outSourced.getQuery()
} }