Explorar el Código

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

yanglingling hace 1 año
padre
commit
3840ba0214
Se han modificado 1 ficheros con 9 adiciones y 3 borrados
  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() {