|
@@ -334,7 +334,7 @@ export default {
|
|
async handleUpdate(row) {
|
|
async handleUpdate(row) {
|
|
await this.reset();
|
|
await this.reset();
|
|
const id = row.id || this.ids
|
|
const id = row.id || this.ids
|
|
- getServer(id).then(response => {
|
|
|
|
|
|
+ getServer(id,row.type).then(response => {
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
this.open = true;
|
|
this.open = true;
|
|
let str = ''
|
|
let str = ''
|
|
@@ -372,7 +372,7 @@ export default {
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
const ids = row.id || this.ids;
|
|
const ids = row.id || this.ids;
|
|
this.$modal.confirm('是否确认删除数据项?').then(function () {
|
|
this.$modal.confirm('是否确认删除数据项?').then(function () {
|
|
- return delServer(ids);
|
|
|
|
|
|
+ return delServer(ids,row.type);
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.getList();
|
|
this.getList();
|
|
this.$modal.msgSuccess("删除成功");
|
|
this.$modal.msgSuccess("删除成功");
|