Commit 7ee6ea43 by liuyong

修改bug

1 parent 2bd3d759
...@@ -48,8 +48,8 @@ ...@@ -48,8 +48,8 @@
this.sidebarTitles = true;//勾选标签 this.sidebarTitles = true;//勾选标签
console.log(joinGraph) console.log(joinGraph)
joinGraph.forEach(item => { joinGraph.forEach(item => {
let fns = [];
if(item.arciBelongName == '架构元素关系') { if(item.arciBelongName == '架构元素关系') {
let fns = [];
item.eleDtos.forEach(item2 => { item.eleDtos.forEach(item2 => {
fns.push( fns.push(
this.createEdgeTemplateEntry( this.createEdgeTemplateEntry(
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
}else { }else {
item.eleDtos.forEach(item2 => { item.eleDtos.forEach(item2 => {
if(item2.assets && item2.dicys) { if(item2.assets && item2.dicys) {
let fns = [];
let attr_ = []; let attr_ = [];
item2.dicys.forEach(res => { item2.dicys.forEach(res => {
if(res.fieldName) { if(res.fieldName) {
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
) )
} }
}) })
item2.assets.forEach(item3 => { item2.assets.forEach(item3 => {
// console.log(item3.fieldsValue) // console.log(item3.fieldsValue)
fns.push( fns.push(
......
...@@ -277,7 +277,12 @@ ...@@ -277,7 +277,12 @@
:center="false" :center="false"
:close-on-click-modal="false" :close-on-click-modal="false"
width="40%"> width="40%">
<el-transfer v-model="transferValue2" :data="tableData2"></el-transfer> <el-transfer
v-model="transferValue2"
:data="tableData2"
:left-default-checked="leftDefaultChecked2"
:right-default-checked="transferValue2">
</el-transfer>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button class="greenButton" @click="saveDialog3">保存</el-button> <el-button class="greenButton" @click="saveDialog3">保存</el-button>
<el-button @click="cancelDialog3">取消</el-button> <el-button @click="cancelDialog3">取消</el-button>
...@@ -318,6 +323,7 @@ export default { ...@@ -318,6 +323,7 @@ export default {
return { return {
transferValue1: [], transferValue1: [],
leftDefaultChecked1: [], leftDefaultChecked1: [],
leftDefaultChecked2: [],
transferValue2: [], transferValue2: [],
dialog2: false, dialog2: false,
dialog3: false, dialog3: false,
...@@ -758,10 +764,20 @@ export default { ...@@ -758,10 +764,20 @@ export default {
this.viewId = item.viewId; this.viewId = item.viewId;
this.getDicyTable(); this.getDicyTable();
this.formData = item; this.formData = item;
this.transferValue1 = this.formData.archiEleId.split(",").map(item => Number(item)); this.transferValue1 = this.formData.archiEleId.split(",").map(item => Number(item));
console.log(this.transferValue1) let tableData1Key = [];
console.log(this.tableData1) this.tableData1.forEach(item => {
tableData1Key.push(item.key);
})
this.leftDefaultChecked1 = tableData1Key.filter(v => !this.transferValue1.find(item => item === v));
this.transferValue2 = this.formData.archiEleRelId.split(",").map(item => Number(item)); this.transferValue2 = this.formData.archiEleRelId.split(",").map(item => Number(item));
let tableData1Key2 = [];
this.tableData2.forEach(item => {
tableData1Key2.push(item.key);
})
this.leftDefaultChecked2 = tableData1Key2.filter(v => !this.transferValue2.find(item => item === v));
if (item.eleName) { if (item.eleName) {
this.selectData1 = item.eleName.split(","); this.selectData1 = item.eleName.split(",");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!