diff --git a/src/views/publish/publishMap/editSubsystem.vue b/src/views/publish/publishMap/editSubsystem.vue index a01789569..691d202cd 100644 --- a/src/views/publish/publishMap/editSubsystem.vue +++ b/src/views/publish/publishMap/editSubsystem.vue @@ -108,6 +108,7 @@ export default { name: '', type: '', usage: '', + desc: '', memberId: '', client: '', function: '', @@ -164,7 +165,7 @@ export default { if (row && row.id) { this.mapSystemId = row.id; this.ruleForm.name = row.name; - this.ruleForm.desc = row.desc; + this.ruleForm.desc = row.desc || ''; this.ruleForm.type = row.paramVO.type; this.ruleForm.usage = row.paramVO.usageInfo.usage; this.ruleForm.client = row.paramVO.usageInfo.param.client; @@ -248,6 +249,7 @@ export default { this.mapSystemId = ''; this.ruleForm = { name: '', + desc: '', type: '', usage: '', memberId: '', @@ -285,6 +287,7 @@ export default { functionMap: functionMap } }; + console.log(data, '----'); if (this.title === '创建子系统') { createMapSystem(data).then(resp => { this.visible = false; diff --git a/src/views/publish/publishMap/subsystem.vue b/src/views/publish/publishMap/subsystem.vue index 70315164e..94595b05e 100644 --- a/src/views/publish/publishMap/subsystem.vue +++ b/src/views/publish/publishMap/subsystem.vue @@ -116,14 +116,14 @@ export default { params['mapId'] = this.$route.query.mapId; return queryMapSystemPaged(params); }, - deleteRow(row) { + deleteRow(index, row) { this.$confirm('删除子系统,是否继续?', '提 示', { confirmButtonText: '确 定', cancelButtonText: '取 消', type: 'warning' }).then(() => { deleteMapSystem(row.id).then(resp => { - this.reload(); + this.reloadTable(); }).catch(error => { this.$message.error(`删除子系统: ${error.message}`); });