Commit be9b8306 by ‘july-fu’

fix: 架构视图配置,架构元素关系管理编辑数据联动问题解决

1 parent 68aa6fc9
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
height="450"> height="450">
<el-table-column type="selection" width="55" :selectable="selectInit"></el-table-column> <el-table-column type="selection" width="55" :selectable="selectInit"></el-table-column>
<el-table-column type="index" label="序号" width="80" :index="indexMethod" align="center"></el-table-column> <el-table-column type="index" label="序号" width="80" :index="indexMethod" align="center"></el-table-column>
<el-table-column prop="rsName" label="元素关系名称" align="center"></el-table-column> <el-table-column prop="rsName" label="元素关系名称" align="center" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="content" label="关系描述" align="center"></el-table-column> <el-table-column prop="content" label="关系描述" align="center" :show-overflow-tooltip="true"></el-table-column>
<el-table-column label="图标" align="center" width="100"> <el-table-column label="图标" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="tableIcon"> <div class="tableIcon">
...@@ -777,14 +777,14 @@ export default { ...@@ -777,14 +777,14 @@ export default {
} else if (type == "edit") { } else if (type == "edit") {
this.add_dialog = true; this.add_dialog = true;
this.title = "编辑元素关系"; this.title = "编辑元素关系";
this.formData = item; this.formData = { ...item };
this.getDicyTable(); this.getDicyTable();
} else if (type == "view") { } else if (type == "view") {
// this.add_dialog3 = true // this.add_dialog3 = true
// this.formData = item // this.formData = item
this.add_dialog = true; this.add_dialog = true;
this.title = "查看元素关系"; this.title = "查看元素关系";
this.formData = item; this.formData = { ...item };
this.getDicyTable(); this.getDicyTable();
} else if (type == "create") { } else if (type == "create") {
this.$refs.relaForm.validate((valid) => { this.$refs.relaForm.validate((valid) => {
......
...@@ -834,13 +834,13 @@ export default { ...@@ -834,13 +834,13 @@ export default {
this.title = '查看架构视图' this.title = '查看架构视图'
this.add_dialog = true this.add_dialog = true
this.resetForm() this.resetForm()
this.viewId = item.viewId this.viewId = item.viewId
this.getDicyTable() this.getDicyTable()
this.formData = item this.formData = {
this.formData.archiLevelId = this.formData.archiLevelId + '' ...item,
this.formData.archiBelongId = this.formData.archiBelongId + '' archiLevelId: this.formData.archiLevelId.toString(),
archiBelongId: this.formData.archiBelongId.toString(),
}
this.transferValue1 = this.formData.archiEleId this.transferValue1 = this.formData.archiEleId
.split(',') .split(',')
.map((item) => Number(item)) .map((item) => Number(item))
...@@ -882,9 +882,11 @@ export default { ...@@ -882,9 +882,11 @@ export default {
this.viewId = item.viewId this.viewId = item.viewId
this.getDicyTable() this.getDicyTable()
this.formData = item this.formData = {
this.formData.archiLevelId = this.formData.archiLevelId + '' ...item,
this.formData.archiBelongId = this.formData.archiBelongId + '' archiLevelId: this.formData.archiLevelId.toString(),
archiBelongId: this.formData.archiBelongId.toString(),
}
this.transferValue1 = this.formData.archiEleId this.transferValue1 = this.formData.archiEleId
.split(',') .split(',')
.map((item) => Number(item)) .map((item) => Number(item))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!