This commit is contained in:
shijing 2024-03-20 10:12:40 +08:00
commit 69ed9b9d83
2 changed files with 9 additions and 29 deletions

View File

@ -45,6 +45,14 @@ export default {
data);
}
},
delete: {
name: "删除",
req: async function (id, data) {
return await http.delete(
`${config.API_URL}/bi/dataset/${id}/`,
data);
}
},
},
report: {
list: {

View File

@ -96,7 +96,6 @@ export default {
myOption: null,
dialog: {
save: false,
permission: false,
},
adminform: {
admin: null,
@ -184,39 +183,12 @@ export default {
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) {
this.$API.bi.dataset.delete.req(row.id)
.then((res) => {
this.$message.success("删除成功");
this.$refs.table.refresh();
return res;
})
.catch((err) => {