소스 검색

feature/oms:技术支持满意度对应问题修改

yanglingling 1 년 전
부모
커밋
3840ba0214
1개의 변경된 파일9개의 추가작업 그리고 3개의 파일을 삭제
  1. 9 3
      src/views/work/order/detail.vue

+ 9 - 3
src/views/work/order/detail.vue

@@ -298,11 +298,17 @@
       // 打开不同的反馈组件
       openFeedBack(type = null) {
         if (type == 'support') {
-          this.$refs.supportFB.open(this.detail)
+          this.$nextTick(() => {
+            this.detail ? this.$refs.supportFB.open(this.detail) : this.$refs.supportFB.open()
+          })
         } else if (type == 'sale') {
-          this.$refs.saleFB.open(this.detail)
+          this.$nextTick(() => {
+            this.detail ? this.$refs.saleFB.open(this.detail) : this.$refs.saleFB.open()
+          })
         } else {
-          this.$refs.tryFB.open(this.detail, type)
+          this.$nextTick(() => {
+            this.detail ? this.$refs.tryFB.open(this.detail, type) : this.$refs.tryFB.open(this.detail, type)
+          })
         }
       },
       async getDynamics() {