我是这么写 但是不管用 是为什么呢?
<el-dialog title="项目信息" :visible.sync="chartVisible" width="500px">
<el-form :model="form">
<el-form-item label="审计对象及范围" :label-width="formLabelWidth">
<el-input v-model="form.name" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="工作要求" :label-width="formLabelWidth">
<el-input v-model="form.name" autocomplete="off"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="chartVisible = false">取 消</el-button>
<el-button type="primary" @click="chartVisible = false">确 定</el-button>
</div>
</el-dialog>
this.chartBar.on('click', function (params) {
console.log('params',params)
this.chartVisible = true
});
在写点击事件的时候要把Vue这个对象传进去;