|
@@ -151,13 +151,13 @@ export default {
|
|
|
ied_type: starts.value.ied_type,
|
|
|
sv_or_goose: gv.value,
|
|
|
in_or_out: "输出",
|
|
|
- ref_ied_type:ends.value.ied_type
|
|
|
+ ref_ied_type: ends.value.ied_type
|
|
|
}).then(res => {
|
|
|
//if ( res.data) {
|
|
|
//liling:避免提示空错误提示,res.data为空不代表接口有错误,所以先判断接口code值
|
|
|
pastLoading.value = false
|
|
|
- if ( res.code==0) {
|
|
|
- if ( res.data==null) {
|
|
|
+ if (res.code == 0) {
|
|
|
+ if (res.data == null) {
|
|
|
curList.value = [];
|
|
|
return;
|
|
|
}
|
|
@@ -185,13 +185,13 @@ export default {
|
|
|
ied_type: ends.value.ied_type,
|
|
|
sv_or_goose: gv.value,
|
|
|
in_or_out: "接收",
|
|
|
- ref_ied_type:starts.value.ied_type
|
|
|
+ ref_ied_type: starts.value.ied_type
|
|
|
}).then(res => {
|
|
|
console.log(res.data, '!!!!!');
|
|
|
//if ( res.data) {
|
|
|
//liling:避免提示空错误提示,res.data为空不代表接口有错误,所以先判断接口code值
|
|
|
- if ( res.code==0) {
|
|
|
- if ( res.data==null) {
|
|
|
+ if (res.code == 0) {
|
|
|
+ if (res.data == null) {
|
|
|
outList.value = [];
|
|
|
return;
|
|
|
}
|
|
@@ -216,7 +216,7 @@ export default {
|
|
|
};
|
|
|
let starts = document.getElementById(line.start);
|
|
|
let ends = document.getElementById(line.end).parentNode;
|
|
|
- console.log(starts, ends, '??????');
|
|
|
+ // console.log(starts, ends, '??????');
|
|
|
// 检查 starts 和 ends 是否存在
|
|
|
if (starts && ends) {
|
|
|
leaderLineList.value.push(new LeaderLine(starts, ends, {
|
|
@@ -243,7 +243,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
curList.value.sort((obj1, obj2) => {
|
|
|
- if(outList.value[0]==null) return 1;
|
|
|
+ if (outList.value[0] == null) return 1;
|
|
|
const nameB = outList.value[0].fcda_name;
|
|
|
if (obj1.fcda_name === nameB) return -1; // 将 name 与数组 b 中第一个对象的 name 属性相等的对象移到数组的第一位
|
|
|
if (obj2.fcda_name === nameB) return 1;
|
|
@@ -314,7 +314,7 @@ export default {
|
|
|
console.log(row, 'row');
|
|
|
if (row && num) {
|
|
|
leftFcda.value = row.id
|
|
|
- checkList.value = [row.to_fcda_id]
|
|
|
+ // checkList.value = [row.to_fcda_id]
|
|
|
fcdaIds.value = row.to_fcda_id
|
|
|
leftIndex.value = num
|
|
|
// flow.getModelOn({
|
|
@@ -338,8 +338,14 @@ export default {
|
|
|
// })
|
|
|
} else {
|
|
|
if (curList.value.length > 0) {
|
|
|
+ console.log(curList.value, 'cur');
|
|
|
+ curList.value.map(item => {
|
|
|
+ if (item.to_fcda_id != '0' || item.to_fcda_id != '') {
|
|
|
+ checkList.value.push(item.to_fcda_id)
|
|
|
+ }
|
|
|
+ })
|
|
|
leftFcda.value = curList.value[0].id
|
|
|
- checkList.value = [curList.value[0].to_fcda_id]
|
|
|
+ // checkList.value = [curList.value[0].to_fcda_id]
|
|
|
fcdaIds.value = curList.value[0].to_fcda_id
|
|
|
leftIndex.value = 0
|
|
|
// flow.getModelOn({
|