fix:修改删除连线判断的问题
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
}"
|
||||
@afterImport="dateChange"
|
||||
v-if="$route.path==='/asset' || $route.path==='/model'"
|
||||
:showCur="false"
|
||||
>
|
||||
<template slot="optionZone">
|
||||
<button :title="$t('overall.createChart')" @click="addChart" v-has="['model_chart_toAdd', 'asset_chart_toAdd']" v-if="from != $CONSTANTS.fromRoute.rule && from != $CONSTANTS.fromRoute.endpoint"
|
||||
|
||||
@@ -107,7 +107,8 @@
|
||||
exportFileName:{type:String},
|
||||
importUrl: {type:String,required:true},
|
||||
link:{type:Object},
|
||||
permissions: {type: Object}
|
||||
permissions: {type: Object},
|
||||
showCur:{type:Boolean,default:true}
|
||||
},
|
||||
data:function(){
|
||||
return {
|
||||
@@ -290,7 +291,7 @@
|
||||
showImportBox:function(type){
|
||||
this.importBox.show=true;
|
||||
this.importBox.type=type;
|
||||
if(type == 2&&(this.$route.path==='/model')){
|
||||
if(type == 2&&(!this.showCur)){
|
||||
this.exportCur()
|
||||
return
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="mc" @click.self="clickOutside">
|
||||
<div class="right-box right-box-edit-endpoint">
|
||||
<!-- begin--顶部按钮-->
|
||||
<div class="right-box-top-btns right-box-form-delete" v-if="lineData.lineId">
|
||||
<div class="right-box-top-btns right-box-form-delete" v-if="lineData.id">
|
||||
<button id="edit-ep-del" type="button" @click="del" class="nz-btn nz-btn-size-normal nz-btn-size-alien">
|
||||
<span class="right-box-top-btn-icon"><i class="nz-icon nz-icon-delete"></i></span>
|
||||
<span class="right-box-top-btn-txt">{{$t('overall.delete')}}</span>
|
||||
@@ -11,11 +11,11 @@
|
||||
<!-- end--顶部按钮-->
|
||||
|
||||
<!-- begin--标题-->
|
||||
<div class="right-box-title" v-if="!lineData.lineId">
|
||||
<div class="right-box-title" v-if="!lineData.id">
|
||||
{{$t('project.topology.addLine')}}
|
||||
</div>
|
||||
<div class="right-box-title" v-if="lineData.lineId">
|
||||
{{$t("project.topology.editLine") + " ID:" + lineData.lineId}}
|
||||
<div class="right-box-title" v-if="lineData.id">
|
||||
{{$t("project.topology.editLine")}}
|
||||
</div>
|
||||
<!-- end--标题-->
|
||||
|
||||
@@ -283,6 +283,7 @@
|
||||
watch:{
|
||||
lineData:{
|
||||
handler(n){
|
||||
console.log(n);
|
||||
this.form={
|
||||
arrows:n.arrows,
|
||||
color:n.color,
|
||||
|
||||
Reference in New Issue
Block a user