فهرست منبع

fix:解决创建完跟进不刷新列表的问题

liuzl 2 سال پیش
والد
کامیت
2009c736a9
4فایلهای تغییر یافته به همراه4 افزوده شده و 11 حذف شده
  1. 0 1
      components/DistrContact.vue
  2. 0 7
      pages/distributor/components/distrDetail.vue
  3. 4 2
      pages/distributor/details.vue
  4. 0 1
      pages/publicPages/follow.vue

+ 0 - 1
components/DistrContact.vue

@@ -76,7 +76,6 @@
         }
       },
       open(id) {
-        console.log(111111)
         this.distId = id
         this.selectVisible = true
         this.getUserList()

+ 0 - 7
pages/distributor/components/distrDetail.vue

@@ -324,15 +324,11 @@
         uni.downloadFile({
           url: attachLink, //下载地址,后端接口获取的链接
           success: (data) => {
-            console.log(data.tempFilePath)
-            console.log(JSON.stringify(data))
             if (data.statusCode === 200) {
               uni.saveFile({
                 //文件保存到本地
                 tempFilePath: data.tempFilePath, //临时路径
                 success: function (res) {
-                  console.log('下载成功' + res.savedFilePath)
-                  console.log(JSON.stringify(res))
                   uni.showToast({
                     icon: 'none',
                     mask: true,
@@ -366,10 +362,7 @@
         if (!type) return
         let arr = []
         let typeArr = type.split(',')
-        console.log(type)
-        console.log(this.customerOptions)
         typeArr.map((item) => {
-          console.log(item)
           arr.push(this.customerOptions.find((e) => e.key == item).value)
         })
         return arr.join(',')

+ 4 - 2
pages/distributor/details.vue

@@ -65,6 +65,7 @@
         </view>
         <view class="tabs">
           <u-tabs
+            v-if="curTabIndex >= 0"
             @change="changeTabs"
             :current="curTabIndex"
             :scrollable="false"
@@ -133,7 +134,6 @@
     onLoad(option) {
       this.distrId = parseInt(option.id)
       this.distType = option.distrType
-      console.log(this.distType)
     },
     created() {
       const navData = uni.getMenuButtonBoundingClientRect()
@@ -142,10 +142,12 @@
     },
     onShow() {
       this.curTabIndex = 0
-      console.log(this.curTabIndex)
       this.openBtnWidth = false
       this.getDistrDetail()
     },
+    onHide() {
+      this.curTabIndex = -1
+    },
     methods: {
       async getDistrDetail() {
         const [err, res] = await to(distrApi.getEntity({ id: this.distrId }))

+ 0 - 1
pages/publicPages/follow.vue

@@ -252,7 +252,6 @@
         } else if (this.targetType == '20') {
           this.$refs.projectConcat.open(this.details.id, this.details.custId)
         } else if (this.targetType == '50' || this.targetType == '60') {
-          console.log(this.details.id)
           this.$refs.distrConcat.open(this.details.id)
         }
       },