分裂更改
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-08-08 17:39:27 +08:00
parent 4c37ebef3e
commit 3304a5d8d2
4 changed files with 47 additions and 38 deletions

View File

@ -589,15 +589,15 @@ export default {
} }
} }
}, },
split(rowId, questionId) { async split(rowId, questionId) {
const loading = this.$loading({ fullscreen: true }) const loading = this.$loading({ fullscreen: true })
var params = { try {
visitTaskId: this.visitTaskId, var params = {
questionId: questionId, visitTaskId: this.visitTaskId,
rowId: rowId questionId: questionId,
} rowId: rowId
splitLesion(params).then(async res => { }
loading.close() await splitLesion(params)
await this.getReadingQuestionAndAnswer() await this.getReadingQuestionAndAnswer()
this.$nextTick(() => { this.$nextTick(() => {
this.tableQuestions.forEach(item => { this.tableQuestions.forEach(item => {
@ -607,7 +607,11 @@ export default {
}) })
}) })
}) })
}) loading.close()
} catch (e) {
loading.close()
console.log(e)
}
}, },
isCanActiveTool(toolName) { isCanActiveTool(toolName) {
console.log('isCanActiveTool') console.log('isCanActiveTool')

View File

@ -673,17 +673,16 @@ export default {
} }
} }
}, },
split(rowId, questionId) { async split(rowId, questionId) {
const loading = this.$loading({ fullscreen: true }) const loading = this.$loading({ fullscreen: true })
var params = { try {
visitTaskId: this.visitTaskId, var params = {
questionId: questionId, visitTaskId: this.visitTaskId,
rowId: rowId questionId: questionId,
} rowId: rowId
splitLesion(params).then(async res => { }
loading.close() await splitLesion(params)
await this.getReadingQuestionAndAnswer() await this.getReadingQuestionAndAnswer()
DicomEvent.$emit('readingPageUpdate', {})
this.$nextTick(() => { this.$nextTick(() => {
this.tableQuestions.forEach(item => { this.tableQuestions.forEach(item => {
item.TableQuestions.Answers.forEach(i => { item.TableQuestions.Answers.forEach(i => {
@ -692,7 +691,11 @@ export default {
}) })
}) })
}) })
}) loading.close()
} catch (e) {
loading.close()
console.log(e)
}
}, },
// //
async handleMerge(answers, questionId, orderMark) { async handleMerge(answers, questionId, orderMark) {

View File

@ -516,15 +516,15 @@ export default {
} }
} }
}, },
split(rowId, questionId) { async split(rowId, questionId) {
const loading = this.$loading({ fullscreen: true }) const loading = this.$loading({ fullscreen: true })
var params = { try {
visitTaskId: this.visitTaskId, var params = {
questionId: questionId, visitTaskId: this.visitTaskId,
rowId: rowId questionId: questionId,
} rowId: rowId
splitLesion(params).then(async res => { }
loading.close() await splitLesion(params)
await this.getReadingQuestionAndAnswer() await this.getReadingQuestionAndAnswer()
this.$nextTick(() => { this.$nextTick(() => {
this.tableQuestions.forEach(item => { this.tableQuestions.forEach(item => {
@ -534,7 +534,11 @@ export default {
}) })
}) })
}) })
}) loading.close()
} catch (e) {
loading.close()
console.log(e)
}
}, },
isCanActiveTool(toolName) { isCanActiveTool(toolName) {
this.getUnSaveTarget() this.getUnSaveTarget()

View File

@ -517,18 +517,16 @@ export default {
questionId: questionId, questionId: questionId,
rowId: rowId rowId: rowId
} }
const res = await splitLesion(params) await splitLesion(params)
if (res.IsSuccess) { await this.getReadingQuestionAndAnswer()
await this.getReadingQuestionAndAnswer() this.$nextTick(() => {
this.$nextTick(() => { this.tableQuestions.forEach(item => {
this.tableQuestions.forEach(item => { item.TableQuestions.Answers.forEach(i => {
item.TableQuestions.Answers.forEach(i => { var refName = `${item.Id}_${i.RowIndex}`
var refName = `${item.Id}_${i.RowIndex}` this.$refs[refName] && this.$refs[refName][0].initForm()
this.$refs[refName] && this.$refs[refName][0].initForm()
})
}) })
}) })
} })
loading.close() loading.close()
} catch (e) { } catch (e) {
loading.close() loading.close()