1. 程式人生 > 其它 >vue介面資料傳遞

vue介面資料傳遞

技術標籤:vue

按鈕繫結函式

<el-button
              size="mini"
              type="primary"
              plain
              @click="clickEvaluationObject(scope.row)"
              >測評物件</el-button
            >
            <el-button
clickEvaluationObject(data) {
      this.EvaluationObject = true;
      this.showInfoData = JSON.parse(JSON.stringify(data));
      this.tabName = "測評物件";
     

      initData("/api/partyTarget/").then((data) => {
        this.formData = JSON.parse(JSON.stringify(data.content));
        // this.showInfo = true;
        console.log(this.formData.employee_name);
      });
    },