vue介面資料傳遞
阿新 • • 發佈:2021-01-13
技術標籤: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); }); },