|
@@ -1,14 +1,14 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div
|
|
|
- :key="index"
|
|
|
- v-for="(item,index) in content"
|
|
|
+ :key="index"
|
|
|
+ v-for="(item,index) in content"
|
|
|
>
|
|
|
<p class="slave-relation-title">{{item.GraphTypeName}}</p>
|
|
|
<section
|
|
|
- :key="child.GraphTypeId"
|
|
|
- class="container"
|
|
|
- v-for="(child,childIndex) in item.ChildGraphicTypeList"
|
|
|
+ :key="child.GraphTypeId"
|
|
|
+ class="container"
|
|
|
+ v-for="(child,childIndex) in item.ChildGraphicTypeList"
|
|
|
>
|
|
|
<p class="relation-text">
|
|
|
<span @click="toDetail(child)" style="cursor:pointer;">
|
|
@@ -16,46 +16,46 @@
|
|
|
<i class="icon-zuzhiguanxi iconfont"/></span>
|
|
|
<span class="pic-code">图类型编码:{{child.GraphTypeCode}}</span>
|
|
|
<el-tooltip
|
|
|
- :content="child.Note"
|
|
|
- placement="top">
|
|
|
+ :content="child.Note"
|
|
|
+ placement="top">
|
|
|
<i
|
|
|
- @click="explain"
|
|
|
- class="icon-shuoming iconfont"
|
|
|
+ @click="explain"
|
|
|
+ class="icon-shuoming iconfont"
|
|
|
/>
|
|
|
</el-tooltip>
|
|
|
</p>
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
<el-col
|
|
|
- :key="relation.Id"
|
|
|
- :span="8"
|
|
|
- v-for="(relation,relIndex) in child.RelationTypeProjectList"
|
|
|
+ :key="relation.Id"
|
|
|
+ :span="8"
|
|
|
+ v-for="(relation,relIndex) in child.RelationTypeProjectList"
|
|
|
>
|
|
|
<el-card
|
|
|
- class="card"
|
|
|
- shadow="hover"
|
|
|
- style="position: relative;"
|
|
|
+ class="card"
|
|
|
+ shadow="hover"
|
|
|
+ style="position: relative;"
|
|
|
>
|
|
|
<!-- border:none-->
|
|
|
<!--<div class="mask"></div>-->
|
|
|
<div style="overflow: hidden">
|
|
|
<el-tooltip
|
|
|
- :content="relation.RelationTypeName"
|
|
|
- placement="top"
|
|
|
+ :content="relation.RelationTypeName"
|
|
|
+ placement="top"
|
|
|
>
|
|
|
<p class="relation-title reset-test reset-title">{{relation.RelationTypeName}}</p>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip
|
|
|
- :content="relation.RelationTypeCode"
|
|
|
- placement="top"
|
|
|
+ :content="relation.RelationTypeCode"
|
|
|
+ placement="top"
|
|
|
>
|
|
|
<p class="asc reset-title reset-test">边类型编码:{{relation.RelationTypeCode}}</p>
|
|
|
</el-tooltip>
|
|
|
<p class="relation-title-icon reset-test fr">
|
|
|
<el-tooltip
|
|
|
- :content="relation.Note"
|
|
|
- placement="top"
|
|
|
- style="z-index: 3;position:relative;"
|
|
|
+ :content="relation.Note"
|
|
|
+ placement="top"
|
|
|
+ style="z-index: 3;position:relative;"
|
|
|
>
|
|
|
<i class="iconfont icon-warn icon"/>
|
|
|
</el-tooltip>
|
|
@@ -67,8 +67,8 @@
|
|
|
<div class="grid-content">
|
|
|
<p class="object">主要连接对象</p>
|
|
|
<el-tooltip
|
|
|
- :content="relation.ConneObject"
|
|
|
- placement="top"
|
|
|
+ :content="relation.ConneObject"
|
|
|
+ placement="top"
|
|
|
>
|
|
|
<p class="group reset-title">{{relation.ConneObject}}</p>
|
|
|
</el-tooltip>
|
|
@@ -85,61 +85,61 @@
|
|
|
<p :class="relation.count > 0? 'line-number-show' :'line-number-hide'">{{relation.count}}</p>
|
|
|
<p class="last-computed">
|
|
|
<span
|
|
|
- v-show="relation.ComputationalState === 3 || relation.ComputationalState === 4">关系计算中...</span>
|
|
|
+ v-show="relation.ComputationalState === 3 || relation.ComputationalState === 4">关系计算中...</span>
|
|
|
<span v-show="relation.ComputationalState === 5">计算失败</span>
|
|
|
<span v-show="relation.ComputingTime">最后一次计算时间 {{relation.ComputingTime}}</span>
|
|
|
<el-tooltip
|
|
|
- content="启动计算"
|
|
|
- placement="top"
|
|
|
+ content="启动计算"
|
|
|
+ placement="top"
|
|
|
>
|
|
|
<el-badge
|
|
|
- class="item float-right"
|
|
|
- :is-dot="relation.ComputationalState === 2"
|
|
|
+ class="item float-right"
|
|
|
+ :is-dot="relation.ComputationalState === 2"
|
|
|
>
|
|
|
<el-button
|
|
|
- @click="computed(relation)"
|
|
|
- :disabled="!relation.IsSource && !relation.IsAutomatic"
|
|
|
- circle
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- icon="iconfont icon-changyongtubiao-mianxing-"
|
|
|
- class="sm-button"
|
|
|
+ @click="computed(relation)"
|
|
|
+ :disabled="!relation.IsSource && !relation.IsAutomatic"
|
|
|
+ circle
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ icon="iconfont icon-changyongtubiao-mianxing-"
|
|
|
+ class="sm-button"
|
|
|
>
|
|
|
<!--style="background: #000;color: #fff"-->
|
|
|
</el-button>
|
|
|
</el-badge>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip
|
|
|
- content="手动编辑"
|
|
|
- placement="top"
|
|
|
+ content="手动编辑"
|
|
|
+ placement="top"
|
|
|
>
|
|
|
<el-button
|
|
|
- :disabled="relation.Manual === 1"
|
|
|
- :style="{'border':(relation.Manual=== 1? '1px solid #DCDFE6' :'')}"
|
|
|
- @click="manual(relation)"
|
|
|
- circle
|
|
|
- class="float-right sm-button"
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- icon="iconfont icon-bianji"
|
|
|
+ :disabled="relation.Manual === 1"
|
|
|
+ :style="{'border':(relation.Manual=== 1? '1px solid #DCDFE6' :'')}"
|
|
|
+ @click="manual(relation)"
|
|
|
+ circle
|
|
|
+ class="float-right sm-button"
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ icon="iconfont icon-bianji"
|
|
|
|
|
|
>
|
|
|
</el-button>
|
|
|
|
|
|
</el-tooltip>
|
|
|
<el-tooltip
|
|
|
- content="设定设备对象源/末端"
|
|
|
- placement="top"
|
|
|
- v-if="relation.IsSource"
|
|
|
+ content="设定设备对象源/末端"
|
|
|
+ placement="top"
|
|
|
+ v-if="relation.IsSource"
|
|
|
>
|
|
|
<el-button
|
|
|
- @click="equipment"
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- circle
|
|
|
- class="float-right sm-button"
|
|
|
- icon="iconfont icon-23 "
|
|
|
- style="transform: rotate(90deg);"
|
|
|
+ @click="equipment"
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ circle
|
|
|
+ class="float-right sm-button"
|
|
|
+ icon="iconfont icon-23 "
|
|
|
+ style="transform: rotate(90deg);"
|
|
|
>
|
|
|
</el-button>
|
|
|
</el-tooltip>
|
|
@@ -154,14 +154,14 @@
|
|
|
</section>
|
|
|
</div>
|
|
|
<RelationMaintain
|
|
|
- :values="values"
|
|
|
- :source="source"
|
|
|
- ref="maintain"
|
|
|
- :isComputed="isComputed"
|
|
|
- :ManualMaintenance="ManualMaintenance"
|
|
|
- :TableVisibleMoreLoading="TableVisibleMoreLoading"
|
|
|
- @openComputed="openComputed"
|
|
|
- @RelationType="RelationType"
|
|
|
+ :values="values"
|
|
|
+ :source="source"
|
|
|
+ ref="maintain"
|
|
|
+ :isComputed="isComputed"
|
|
|
+ :ManualMaintenance="ManualMaintenance"
|
|
|
+ :TableVisibleMoreLoading="TableVisibleMoreLoading"
|
|
|
+ @openComputed="openComputed"
|
|
|
+ @RelationType="RelationType"
|
|
|
/>
|
|
|
</div>
|
|
|
|
|
@@ -255,7 +255,10 @@
|
|
|
if (Manual === 3) {
|
|
|
if (relation.RelationType) {
|
|
|
this.values = {...this.values, optionTips, lastTime}
|
|
|
- this.$refs.maintain.dialogManualOption = true
|
|
|
+ // this.$refs.maintain.dialogManualOption = true //导出excel 弹窗
|
|
|
+ this.$router.push({
|
|
|
+ path:"relationShip"
|
|
|
+ })
|
|
|
} else {
|
|
|
this.$message.warning("设计中")
|
|
|
return false
|
|
@@ -270,11 +273,13 @@
|
|
|
|
|
|
//空间连接关系详情
|
|
|
toDetail(detail){
|
|
|
- this.$router.push({
|
|
|
+ return
|
|
|
+ this.$router.push({
|
|
|
name: 'relationDetail',
|
|
|
- query: {
|
|
|
- type: detail.GraphTypeCode
|
|
|
- }
|
|
|
+ query: {
|
|
|
+ type: detail.GraphTypeCode,
|
|
|
+ RelationTypeProjectList: detail.RelationTypeProjectList
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
},
|