切换视口快速提交监测
parent
7bf80c10eb
commit
e245057bb2
|
|
@ -1011,7 +1011,9 @@ export default {
|
||||||
if (isSaved) {
|
if (isSaved) {
|
||||||
let confirm = await this.$confirm(this.$t("trials:reading:Segmentations:confirm:changeScreenSave"))
|
let confirm = await this.$confirm(this.$t("trials:reading:Segmentations:confirm:changeScreenSave"))
|
||||||
if (!confirm) reslove(true)
|
if (!confirm) reslove(true)
|
||||||
this.$refs.Segmentations.saveSegmentGroup(null, true, () => {
|
this.loading = true
|
||||||
|
this.loadingText = this.$t("segment:loadingText:saveSegmentation")
|
||||||
|
this.$refs.Segmentations.checkSaveLoading(() => {
|
||||||
reslove(true)
|
reslove(true)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -163,7 +163,7 @@
|
||||||
<i class="el-icon-warning-outline" style="color:red;margin-right: 5px;"
|
<i class="el-icon-warning-outline" style="color:red;margin-right: 5px;"
|
||||||
:title="$t('trials:reading:Segmentations:tip:segmentationIsNotSave')"
|
:title="$t('trials:reading:Segmentations:tip:segmentationIsNotSave')"
|
||||||
v-if="!curSegmentGroup.isSaved"></i>
|
v-if="!curSegmentGroup.isSaved"></i>
|
||||||
<el-button type="success" size="small" :disabled="saveLoading && isMPR"
|
<el-button type="success" size="small" :disabled="saveLoading || isMPR"
|
||||||
@click="saveSegmentGroup([curSegmentGroup])">
|
@click="saveSegmentGroup([curSegmentGroup])">
|
||||||
{{ $t("trials:reading:Segmentations:button:save") }}
|
{{ $t("trials:reading:Segmentations:button:save") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
@ -253,7 +253,7 @@
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
</el-collapse>
|
</el-collapse>
|
||||||
<div class="saveBtnBox" v-if="readingTaskState < 2 && segmentList && segmentList.length > 1">
|
<div class="saveBtnBox" v-if="readingTaskState < 2 && segmentList && segmentList.length > 1">
|
||||||
<el-button type="success" size="small" :disabled="saveLoading && isMPR" @click="saveSegmentGroup()">
|
<el-button type="success" size="small" :disabled="saveLoading || isMPR" @click="saveSegmentGroup()">
|
||||||
{{ $t("trials:reading:Segmentations:button:saveAll") }}
|
{{ $t("trials:reading:Segmentations:button:saveAll") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -402,7 +402,8 @@ export default {
|
||||||
isloaded: false,
|
isloaded: false,
|
||||||
popoverId: null,
|
popoverId: null,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
popoverVisible: false
|
popoverVisible: false,
|
||||||
|
timer: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -424,6 +425,10 @@ export default {
|
||||||
this.popoverId = null
|
this.popoverId = null
|
||||||
this.segmentIndex = null
|
this.segmentIndex = null
|
||||||
this.segmentationId = null
|
this.segmentationId = null
|
||||||
|
if (this.timer) {
|
||||||
|
clearInterval(this.timer)
|
||||||
|
this.timer = null
|
||||||
|
}
|
||||||
this.getSegmentationList()
|
this.getSegmentationList()
|
||||||
})
|
})
|
||||||
DicomEvent.$on('isloaded', (data) => {
|
DicomEvent.$on('isloaded', (data) => {
|
||||||
|
|
@ -1466,9 +1471,30 @@ export default {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
checkSaveLoading(callback) {
|
||||||
|
if (!this.saveLoading) {
|
||||||
|
if (this.timer) {
|
||||||
|
clearInterval(this.timer)
|
||||||
|
this.timer = null
|
||||||
|
}
|
||||||
|
this.saveSegmentGroup(null, true, callback)
|
||||||
|
} else {
|
||||||
|
this.timer = setInterval(() => {
|
||||||
|
if (!this.saveLoading) {
|
||||||
|
console.log(this.saveLoading, 'timer')
|
||||||
|
if (this.timer) {
|
||||||
|
clearInterval(this.timer)
|
||||||
|
this.timer = null
|
||||||
|
}
|
||||||
|
this.saveSegmentGroup(null, true, callback)
|
||||||
|
}
|
||||||
|
}, 100)
|
||||||
|
}
|
||||||
|
},
|
||||||
// 保存整个分组
|
// 保存整个分组
|
||||||
async saveSegmentGroup(list = null, saveSegment = true, callback) {
|
async saveSegmentGroup(list = null, saveSegment = true, callback) {
|
||||||
try {
|
try {
|
||||||
|
console.log('saveSegmentGroup')
|
||||||
let segmentList = list ? list : this.segmentList
|
let segmentList = list ? list : this.segmentList
|
||||||
if (segmentList.length <= 0) return false
|
if (segmentList.length <= 0) return false
|
||||||
this.$emit("setToolsPassive")
|
this.$emit("setToolsPassive")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue