返回

Edit

baseSettings

baseSettings: {
    // 初始化操作,在数据拷贝后,然后在接口执行完之后执行
    mounted() {
      var params = this.$route.params
      if (params) {
        this.ruleForm.id = params.id
        this.ruleForm.name = params.name
        this.ruleForm.attributeId = params.accountname
        this.ruleForm.attributeId = params.attribute
        this.ruleForm.linkman = params.username
        this.ruleForm.phone = params.phone
      }
    },
    // 初始化接口
    initInterface: {
      fn: getOne
    },
    // 主接口
    interface: {
      fn: editOrg,
      successFn: function() {
        this.$router.push('/mechanism')
      }
    }
  },

forms

forms: [{
    
}]