Commit 22d18884 by cwq0219

修改

1 parent 337d2e50
......@@ -102,7 +102,7 @@
</template>
<script>
import { resetSearch } from '@/common/common'
// import { resetSearch } from '@/common/common'
import notice from '@/common/notice'
import { businessManagenMethods, groupDetailMethods, request } from '@/api'
export default {
......@@ -139,7 +139,7 @@ export default {
'addForm.merchantId'(val) {
if (this.addList.length !== 0) {
this.addList.forEach(item => {
for(var j in item) {
for (var j in item) {
if (j == 'merchantId' || j == 'merchantType') {
item[j] = ''
}
......@@ -251,15 +251,15 @@ export default {
params.method = groupDetailMethods.SearchChildList
request.req(params).then(res => {
this.childLoading = false
let arr = res.merchantParams
let index = []
const arr = res.merchantParams
const index = []
let list = []
if (!res.merchantParams || !res.merchantParams.length) {
this.businessChildList = []
return
this.businessChildList = []
return
}
for(var i of res.merchantParams) {
for(var j of this.addList) {
for (var i of res.merchantParams) {
for (var j of this.addList) {
if (i.merchantId === j.merchantId) {
index.push(i.merchantId)
}
......
......@@ -97,7 +97,6 @@
</template>
<script>
import Vue from 'vue'
import { CityArea } from '../components'
import { businessManagenMethods, request } from '@/api'
const isPhone = {
......@@ -152,7 +151,7 @@ export default {
},
mounted() {
this.$validator.extend('is_phone', isPhone)
this.eventBus = new Vue()
this.eventBus = this.$root.eventBus
},
methods: {
handleClose() {
......
......@@ -114,7 +114,6 @@
</template>
<script>
import Vue from 'vue'
import { CityArea } from '../components'
import { businessManagenMethods, request } from '@/api'
export default {
......@@ -148,7 +147,7 @@ export default {
}
},
mounted() {
this.eventBus = new Vue()
this.eventBus = this.$root.eventBus
},
methods: {
getChannelList() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!