• 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 = "";
            }
          }
        }
      },
  • 相关阅读:
    Codeforces Round #669 (Div. 2) A、B题题解
    【证明】树上问题-树的直径
    Web前端开发——概述
    Codeforces Round #667 (Div. 3) A
    Codeforces Round #529 (Div. 3) 练习赛
    [Noip2012] 开车旅行 (倍增DP,难)
    国家集训队论文列表(1999-2019)
    博弈论经典模型解析(入门级)
    Problem 1342B
    SCOI2005 互不侵犯 (状态压缩入门题)
  • 原文地址:https://www.cnblogs.com/ylblogs/p/13901121.html
Copyright © 2020-2023  润新知