|
@@ -1,5 +1,12 @@
|
|
|
<template>
|
|
|
<div style="overflow: hidden auto" v-loading="loading">
|
|
|
+
|
|
|
+ <div style="text-align: right; margin: 8px; user-select:none;">
|
|
|
+ <a style="text-decoration: underline; cursor: pointer" @click="toggleRelation">
|
|
|
+ {{currentRelation === 'deliver' ? '显示数据字典中的全部关系' : '只显示项目要交付的关系' }}
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <!-- <Divider style="height: 0.5px" /> -->
|
|
|
<cardList
|
|
|
:content="content"
|
|
|
:source="source"
|
|
@@ -46,6 +53,7 @@ export default {
|
|
|
currentRelationTypeName: "", //当前点击卡片的RelationTypeName
|
|
|
TableVisibleMoreLoading: false,
|
|
|
computingNum: 0, //正在计算的关系数量
|
|
|
+ currentRelation: 'deliver' //当前所展示的关系 all: 全部关系, deliver: 交付关系
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -66,6 +74,10 @@ export default {
|
|
|
CardList
|
|
|
},
|
|
|
methods: {
|
|
|
+ toggleRelation() {
|
|
|
+
|
|
|
+ this.currentRelation = this.currentRelation === 'deliver' ? 'all' : 'deliver'
|
|
|
+ },
|
|
|
init() {
|
|
|
this.loading = true;
|
|
|
let dataNumber = {
|