|
@@ -268,7 +268,7 @@ export default {
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
this.reset();
|
|
this.reset();
|
|
const id = row.id || this.ids
|
|
const id = row.id || this.ids
|
|
- getBase(id).then(response => {
|
|
|
|
|
|
+ getBase(id,row.type).then(response => {
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
this.open = true;
|
|
this.open = true;
|
|
this.title = "修改知识库";
|
|
this.title = "修改知识库";
|
|
@@ -298,7 +298,7 @@ export default {
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
const ids = row.id || this.ids;
|
|
const ids = row.id || this.ids;
|
|
this.$modal.confirm('是否确认删除知识库编号为"' + ids + '"的数据项?').then(function () {
|
|
this.$modal.confirm('是否确认删除知识库编号为"' + ids + '"的数据项?').then(function () {
|
|
- return delBase(ids);
|
|
|
|
|
|
+ return delBase(ids,row.type);
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.getList();
|
|
this.getList();
|
|
this.$modal.msgSuccess("删除成功");
|
|
this.$modal.msgSuccess("删除成功");
|