zoukankan      html  css  js  c++  java
  • vue watch

    watch: {
        // 当为谁咨询是自己的时候, 将页面信息全初始化为本人信息, 否则, 初始为空
        "form.findfor"(val) {
          if (this.applyloacluserInfo == null) {
            if (this.form.findfor == "自己") {
              this.form.forname = this.loacluserInfo.username;
              this.phone = this.loacluserInfo.phone;
            } else {
              this.form.forname = "";
              this.form.sex = "请选择";
              this.form.age = "";
              this.phone = "";
            }
            return;
          }
          if (this.applyloacluserInfo.findfor == this.form.findfor) {
            this.form.forname = this.applyloacluserInfo.forname;
            this.form.findfor = this.applyloacluserInfo.findfor;
            this.form.age = this.applyloacluserInfo.age;
            this.form.sex = this.applyloacluserInfo.sex;
            var d = this.userworkPhone;
            d = d.replace('"', "").replace('"', "");
            d = d.replace(/"/g, "");
            this.phone = d;
          } else {
            if (this.form.findfor == "自己") {
              this.form.findfor = "自己";
              this.form.sex = "请选择";
              this.form.age = "";
              this.form.forname = this.loacluserInfo.username;
              this.phone = this.loacluserInfo.phone;
            } else {
              this.form.forname = "";
              this.form.sex = "请选择";
              this.form.age = "";
              this.phone = "";
            }
          }
        }
      },
  • 相关阅读:
    typora永久插入图片
    Cortex-M 处理器 hardfault 定位方法和步骤(基于Keil mdk)
    STM32之CAN ---CAN ID过滤器分析
    记一次payload绕过电脑管家免杀
    kali linux 静态地址和动态地址的设置
    mona
    武装你的浏览器--自用的火狐插件推荐
    kali linux开启ssh
    记一次腾讯云服务器centos linux可视化桌面安装并进行远程桌面登录及其安装中文包
    widows终端远程连接Linux服务器
  • 原文地址:https://www.cnblogs.com/ylblogs/p/13901121.html
Copyright © 2011-2022 走看看