|
@@ -169,24 +169,24 @@ export default class extends Vue {
|
|
|
|
|
|
computed(relation: object) {
|
|
|
this.$set(relation, 'times', moment(Date.now()).format("YYYY-MM-DD HH:mm:ss"))
|
|
|
- console.log(relation.relationType, relation.zoneType)
|
|
|
if (relation.enableCalc == 0) { // 0 不可计算
|
|
|
let param = {
|
|
|
graphCode: relation.graphicType,
|
|
|
relType: relation.relationType,
|
|
|
- computedTime: moment(Date.now()).format("YYYY-MM-DD HH:mm:ss")
|
|
|
+ computingTime: moment(Date.now()).format("YYYY-MM-DD HH:mm:ss")
|
|
|
}
|
|
|
updateCalcTime(param).then(res => {
|
|
|
- console.log(res)
|
|
|
+ this.init()
|
|
|
})
|
|
|
} else {
|
|
|
let param = {
|
|
|
- relationType: relation.relationType,
|
|
|
- zoneType: relation.zoneType,
|
|
|
+ relType: relation.relationType,
|
|
|
+ objectTypes: relation.zoneType,
|
|
|
+ requestUrl: relation.requestUrl,
|
|
|
+ graphCode: relation.graphicType
|
|
|
}
|
|
|
- relationCalc(param).then(res => {
|
|
|
- console.log(res)
|
|
|
- })
|
|
|
+ relationCalc(param).then(res => {})
|
|
|
+ this.init()
|
|
|
}
|
|
|
}
|
|
|
|