Commit 22d18884 by cwq0219

修改

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