doum
9 天以前 3f2a7cb1dab1b9dda4a5667675672f171c793987
admin/src/components/business/OperaShopInfoWindow.vue
@@ -1,9 +1,9 @@
<template>
  <GlobalWindow
    :title="title"
    :withFooter="false"
    :visible.sync="visible"
    width="calc(100% - 255px )"
      :title="title"
      :withFooter="false"
      :visible.sync="visible"
      width="calc(100% - 255px )"
  >
    <div class="store-header" v-if="storeInfo">
      <div class="store-header-left">
@@ -292,6 +292,7 @@
    return {
      activeTab: 'performance',
      storeInfo: {},
      visible:false,
      searchForm: {
        orderNo: '',
        goodsInfo: '',
@@ -312,20 +313,25 @@
    })
  },
  methods: {
    handleDateChange (val) {
      this.searchForm.createStartTime = val ? val[0] : ''
      this.searchForm.createEndTime = val ? val[1] : ''
      this.search()
    },
    open (title, row) {
      this.searchForm.memberId = row.id
      detail(row.id)
        .then(res => {
          this.storeInfo = res
          this.activeTab = 'performance'
          this.title = title
          this.visible = true
          this.searchForm.shopId = row.id
          this.search()
        })
        .catch(e => {
          this.$tip.apiFailed(e)
        })
          .then(res => {
            this.storeInfo = res
            this.activeTab = 'performance'
            this.title = title
            this.visible = true
            this.searchForm.shopId = row.id
            this.search()
          })
          .catch(e => {
            this.$tip.apiFailed(e)
          })
    }
  }
}