App-Android(使用App+htnl5框架,解决消息推送兼容SignalR问题)
loulijun2021
2022-09-24 8ca4dddbb74bb69b517419adef886739aad1b362
pages/sbgl/rcdj.html
@@ -25,15 +25,16 @@
      <script type="text/javascript">
         var topContent = [
            // {
            //    code: 'SB001',
            //    code: 'SB003',
            //    name: '齿轮箱组',
            //    wksp_code: "CJ002",
            //    wksp_name: '装配车间',
            //    eqpchkmain_code: "djbz002"
            // },
            // {
            //    code: 'SB003',
            //    code: 'SB001',
            //    name: '齿轮箱组',
            //    wksp_code: "CJ002",
            //    wksp_name: '装配车间',
@@ -346,19 +347,19 @@
               immediate: true,
            },
            'topContent.length': {
               handler(newValue, oldValue) {
                  if (newValue !== oldValue) {
                     this.$forceUpdate()
                     // if (topContent[0]&&topContent[0].code) {
                     //    this.$forceUpdate()
                     //    this.topContentClcik(topContent[0].code)
                     // }
                  }
               },
               deep: true,
               immediate: true,
            },
            // 'topContent.length': {
            //    handler(newValue, oldValue) {
            //       if (newValue !== oldValue) {
            //          this.$forceUpdate()
            //          // if (topContent[0]&&topContent[0].code) {
            //          //    this.$forceUpdate()
            //          //    this.topContentClcik(topContent[0].code)
            //          // }
            //       }
            //    },
            //    deep: true,
            //    immediate: true,
            // },
            'number2.length': {
               handler(newValue, oldValue) {
                  this.$forceUpdate()
@@ -366,13 +367,13 @@
               deep: true,
               immediate: true,
            },
            'number.length': {
               handler(newValue, oldValue) {
                  this.$forceUpdate()
               },
               deep: true,
               immediate: true,
            },
            // 'number.length': {
            //    handler(newValue, oldValue) {
            //       this.$forceUpdate()
            //    },
            //    deep: true,
            //    immediate: true,
            // },
         },
         created() {},
         mounted() {},
@@ -395,9 +396,6 @@
                  result: resultValue,
                  children: children
               }
               console.log(data, 1)
               post('AppDeviceManage/AppDeviceCheckSave?username=' + localStorage.getItem('username'), data)
                  .then(res => {
                     if (res.code === '200') {
@@ -453,16 +451,10 @@
                  }
               })
            },
            resultClick(val) {
               resultValue = val
               this.$forceUpdate()
            },
            selected(id) {
               alert(id)
            },
            // 扫描点检工位扫描
            topScanClick() {
               createWithoutTitle('../../components/barcode_scan.html', {
@@ -500,7 +492,6 @@
                  }
               });
            },
            // 部位正常 异常按钮点击
            bwClick(item, val) {
               item.isOK = val