Commit ee3bef2d authored by xieyishang's avatar xieyishang

~~

parent 115ce95f
......@@ -66,39 +66,6 @@ export default{
//表格选择后回调事件
selectionChange(selection){
this.selection = selection;
},
batch_del(){
},
table_show(row){
this.dialog.detail = true
this.$nextTick(() => {
this.$refs.detailBox.open().setData(row)
})
},
add(){
this.dialog.save = true
this.$nextTick(() => {
this.$refs.saveBox.open()
})
},
table_edit(row){
this.dialog.save = true
this.$nextTick(() => {
this.$refs.saveBox.open('edit').setData(row)
})
},
async table_del(row){
var reqData = {id: row.id}
var res = await this.$API.order.exchange.delete.post(reqData);
if(res.code == 1){
//这里选择刷新整个表格 OR 插入/编辑现有表格数据
this.upsearch()
this.$message.success("删除成功")
}else{
this.$alert(res.message, "提示", {type: 'error'})
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment