#
whycq
2023-10-06 8e15159256cd131705aff50b2973bdae52ce6b9b
pages/common/data-list/dataDetail.vue
@@ -2,6 +2,46 @@
</template>
<script>
   export default {
      data() {
         return {
            mat: {
               matnr: null,
               maktx: null,
               specs: null,
               batch: null,
               orderNo: null,
               anfme: 0,
            },
            baseIP:'',
            basePORT:'',
         }
      },
      onLoad(option) {
         let that = this
         // #ifdef APP-NVUE
         const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE
         // #endif
         // #ifndef APP-NVUE
         const eventChannel = this.getOpenerEventChannel();
         // #endif
         // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
         eventChannel.on('mat', function(data) {
            console.log(data);
         })
      },
      methods: {
         back() {
            this.getOpenerEventChannel().emit('matList', {data: this.mat});
            uni.navigateBack({
            })
         }
      }
   }
</script>
<style>