fix: dataset删除功能
This commit is contained in:
parent
b7cb025304
commit
8dc5827c15
|
@ -45,6 +45,14 @@ export default {
|
||||||
data);
|
data);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
delete: {
|
||||||
|
name: "删除",
|
||||||
|
req: async function (id, data) {
|
||||||
|
return await http.delete(
|
||||||
|
`${config.API_URL}/bi/dataset/${id}/`,
|
||||||
|
data);
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
report: {
|
report: {
|
||||||
list: {
|
list: {
|
||||||
|
|
|
@ -96,7 +96,6 @@ export default {
|
||||||
myOption: null,
|
myOption: null,
|
||||||
dialog: {
|
dialog: {
|
||||||
save: false,
|
save: false,
|
||||||
permission: false,
|
|
||||||
},
|
},
|
||||||
adminform: {
|
adminform: {
|
||||||
admin: null,
|
admin: null,
|
||||||
|
@ -184,39 +183,12 @@ export default {
|
||||||
this.$refs.saveDialog.open("show").setData(row);
|
this.$refs.saveDialog.open("show").setData(row);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//分配账号
|
|
||||||
table_admin(row) {
|
|
||||||
this.adminvisible = true;
|
|
||||||
this.datasetID = row.id;
|
|
||||||
|
|
||||||
},
|
|
||||||
//提交分配账号FROM
|
|
||||||
submitAdmin() {
|
|
||||||
this.$API.rpm.dataset.admin.req(
|
|
||||||
this.datasetID,
|
|
||||||
this.adminform
|
|
||||||
).then((res) => {
|
|
||||||
this.$message.success("账号分配成功");
|
|
||||||
this.adminvisible = false;
|
|
||||||
this.$refs.table.refresh()
|
|
||||||
|
|
||||||
})
|
|
||||||
.catch((err) => {
|
|
||||||
return err;
|
|
||||||
});;
|
|
||||||
},
|
|
||||||
//权限设置
|
|
||||||
permission() {
|
|
||||||
this.dialog.permission = true;
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.permissionDialog.open();
|
|
||||||
});
|
|
||||||
},
|
|
||||||
//删除
|
//删除
|
||||||
async table_del(row) {
|
async table_del(row) {
|
||||||
this.$API.bi.dataset.delete.req(row.id)
|
this.$API.bi.dataset.delete.req(row.id)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.$message.success("删除成功");
|
this.$message.success("删除成功");
|
||||||
|
this.$refs.table.refresh();
|
||||||
return res;
|
return res;
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
Loading…
Reference in New Issue