|
@@ -4,6 +4,7 @@
|
|
|
:content="content"
|
|
|
:source="source"
|
|
|
:TableVisibleMoreLoading="TableVisibleMoreLoading"
|
|
|
+ :computingNum="computingNum"
|
|
|
@calcSpecial="calcSpecial"
|
|
|
@openComputed="openComputed"
|
|
|
@RelationType="RelationType"
|
|
@@ -33,10 +34,12 @@ export default {
|
|
|
loading: false,
|
|
|
source: [], //源端数据
|
|
|
currentRelationTypeName: "", //当前点击卡片的RelationTypeName
|
|
|
- TableVisibleMoreLoading: false
|
|
|
+ TableVisibleMoreLoading: false,
|
|
|
+ computingNum: 0, //正在计算的关系数量
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ this.computingNum = 0;
|
|
|
this.init();
|
|
|
},
|
|
|
watch: {
|
|
@@ -123,7 +126,9 @@ export default {
|
|
|
projectId: this.projectId
|
|
|
}
|
|
|
};
|
|
|
+ this.computingNum++;
|
|
|
businessSpaceAll(param).then(res => {
|
|
|
+ this.computingNum--;
|
|
|
if (res.data.result === "failure") {
|
|
|
this.$message({
|
|
|
message: "计算失败",
|
|
@@ -142,16 +147,18 @@ export default {
|
|
|
* 计算需更新的关系
|
|
|
*/
|
|
|
calcSpecialUpdate(params, obj) {
|
|
|
- calcSpecial(params, res => {
|
|
|
- if (res.result === "failure") {
|
|
|
- this.$message.success('计算失败')
|
|
|
- }
|
|
|
- this.init();
|
|
|
- })
|
|
|
- obj.computationalState = 3
|
|
|
- setTimeout(() => {
|
|
|
- this.updateState();
|
|
|
- })
|
|
|
+ this.computingNum++;
|
|
|
+ calcSpecial(params, res => {
|
|
|
+ this.computingNum--;
|
|
|
+ if (res.result === "failure") {
|
|
|
+ this.$message.success('计算失败')
|
|
|
+ }
|
|
|
+ this.init();
|
|
|
+ })
|
|
|
+ obj.computationalState = 3
|
|
|
+ setTimeout(() => {
|
|
|
+ this.updateState();
|
|
|
+ })
|
|
|
},
|
|
|
statusCard() {
|
|
|
|