{
+ this.$emit('deletelayer')
+ this.visible = false
+ const { code, data } = await deleteDataSet(row)
+ if (code != '200') return
+ this.queryByPage()
+ this.$message({
+ type: 'success',
+ message: '删除成功!',
+ })
+ })
+ .catch(() => {
+ this.$message({
+ type: 'info',
+ message: '已取消删除',
+ })
+ })
},
// 编辑数据集,获取单条数据详情
addOrEditDataSet (row) {
@@ -886,9 +921,11 @@ export default {
if (this.dialogFormVisibleTitle === '新增数据集') {
const { code } = await addDataSet(this.formData)
if (code != '200') return
+ this.queryByPage()
} else {
const { code } = await editDataSet(this.formData)
if (code != '200') return
+ this.queryByPage()
}
this.dialogFormVisible = false
} else {