管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-02-08 70b24a3d28f55bfe72c0ddf3246d5af7a69fc623
src/views/PackageTwo/WareInspection.vue
@@ -39,36 +39,14 @@
  },
  methods: {
    langreash(res) {
      if (this.url == '') return
      this.reportUrl = ''
      if (res == true) {
        if (this.url.indexOf('theme=white') != -1) {
          this.url = this.url.replace('theme=white', 'theme=dark');
        }
      } else if (res == false) {
        if (this.url.indexOf('theme=dark') != -1) {
          this.url = this.url.replace('theme=dark', 'theme=white');
        }
      }
      this.reportUrl = this.url;
      this.$store.state.reporturl = this.url;
      this.$router.push('/QualityInspection')
       this.$router.push('/QualityInspection')
    },
    refreash(res) {
      if (this.url == '') return
      this.reportUrl = ''
      if (res == true) {
        if (this.url.indexOf('lang=en') != -1) {
          this.url = this.url.replace('lang=en', 'lang=zh');
        }
      } else if (res == false) {
        if (this.url.indexOf('lang=zh') != -1) {
          this.url = this.url.replace('lang=zh', 'lang=en');
        }
      }
      this.reportUrl = this.url;
      this.$store.state.reporturl = this.url;
      this.$router.push('/QualityInspection')
     this.$router.push('/QualityInspection')
    },
    showChangeIfream(res) {
      if (this.$store.state.themeflag == true) {
@@ -102,7 +80,7 @@
      this.$store.state.reporturl = res;
      this.reportUrl = res;
      this.url = res
      // console.log("2", this.reportUrl)
      console.log("2", this.reportUrl)
    }
  },
  mounted() {