<el-button @click="handleClose()" class="el-cancel">确认收到信息</el-button>
methods: {
handleClose: function() {
this.dialogFormVisible = false
dashboardApi.updateBehaviorAnalysis(this.form.dialogId) //dashboardApi里定义了方法但不知道这样写和后端提供的接口匹不匹配,图在下面,后端提供的接口是get类型,http://127.0.0.1:31561/sys/updateBehaviorAnalysis?id=1
console.log(this.form.dialogId)//这里的this.form.dialogId是目标id,点击按钮可以成功获取到,需要通过接口传给后端
}
data{
return {
form: {
dialogImageUrl: "",
dialogPosition: "",
dialogId:"",
}
dialogFormVisible: false,
}
dashboardApi提供的接口如下图