Compare commits
No commits in common. "dbdd18dcf60412ac40edbc7a1cf2c6d51086851f" and "6a0a5f472473796cbeab4304d79c53ea32ae4a16" have entirely different histories.
dbdd18dcf6
...
6a0a5f4724
|
@ -208,8 +208,6 @@
|
||||||
:question-form="questionForm"
|
:question-form="questionForm"
|
||||||
:reading-task-state="readingTaskState"
|
:reading-task-state="readingTaskState"
|
||||||
:visitTaskId="visitTaskId"
|
:visitTaskId="visitTaskId"
|
||||||
@resetFormItemData="resetFormItemData"
|
|
||||||
@setFormItemData="setFormItemData"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -268,7 +266,6 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formItemChange(v, question) {
|
formItemChange(v, question) {
|
||||||
console.log('formItemChange')
|
|
||||||
if (question.Childrens.length > 0) {
|
if (question.Childrens.length > 0) {
|
||||||
this.resetChild(question.Childrens)
|
this.resetChild(question.Childrens)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -31,8 +31,6 @@
|
||||||
:question-form="outerForm"
|
:question-form="outerForm"
|
||||||
:reading-task-state="readingTaskState"
|
:reading-task-state="readingTaskState"
|
||||||
:visit-task-id="visitTaskId"
|
:visit-task-id="visitTaskId"
|
||||||
@resetFormItemData="resetOuterFormItemData"
|
|
||||||
@setFormItemData="setOuterFormItemData"
|
|
||||||
/>
|
/>
|
||||||
<el-form-item v-if="readingTaskState < 2">
|
<el-form-item v-if="readingTaskState < 2">
|
||||||
<div class="outer_form-footer">
|
<div class="outer_form-footer">
|
||||||
|
@ -339,12 +337,6 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return formData
|
return formData
|
||||||
},
|
|
||||||
resetOuterFormItemData(v) {
|
|
||||||
this.$set(this.outerForm, v, null)
|
|
||||||
},
|
|
||||||
setOuterFormItemData(obj) {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// 获取表格问题
|
// 获取表格问题
|
||||||
async getTableQuestions() {
|
async getTableQuestions() {
|
||||||
|
@ -358,7 +350,6 @@ export default {
|
||||||
const res = await getReadingQuestionAndAnswer(params)
|
const res = await getReadingQuestionAndAnswer(params)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.tableQuestions = res.Result.SinglePage
|
this.tableQuestions = res.Result.SinglePage
|
||||||
this.innerFormData = {}
|
|
||||||
res.Result.SinglePage.forEach(group => {
|
res.Result.SinglePage.forEach(group => {
|
||||||
group.Childrens.forEach(table => {
|
group.Childrens.forEach(table => {
|
||||||
const tableKey = table.Id
|
const tableKey = table.Id
|
||||||
|
@ -532,7 +523,7 @@ export default {
|
||||||
}
|
}
|
||||||
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
||||||
if (!this.isBaseLineTask && ((obj.toolName === 'Length' && length < 10) || (obj.toolName === 'Bidirectional' && short < 10))) {
|
if (!this.isBaseLineTask && ((obj.toolName === 'Length' && length < 10) || (obj.toolName === 'Bidirectional' && short < 10))) {
|
||||||
const stateId = this.getQuestionId(7, targetTable.TableQuestions.Questions)
|
const stateId = this.getQuestionId(7)
|
||||||
if (innerForm.IsLymphNodes) {
|
if (innerForm.IsLymphNodes) {
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
||||||
|
@ -618,7 +609,7 @@ export default {
|
||||||
}
|
}
|
||||||
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
||||||
if (!this.isBaseLineTask && ((toolName === 'Length' && length < 10) || (toolName === 'Bidirectional' && short < 10))) {
|
if (!this.isBaseLineTask && ((toolName === 'Length' && length < 10) || (toolName === 'Bidirectional' && short < 10))) {
|
||||||
const stateId = this.getQuestionId(7, targetTable.TableQuestions.Questions)
|
const stateId = this.getQuestionId(7)
|
||||||
if (isLymphNodes) {
|
if (isLymphNodes) {
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
||||||
|
@ -797,7 +788,7 @@ export default {
|
||||||
this.$emit('removeAnnotation', obj)
|
this.$emit('removeAnnotation', obj)
|
||||||
}
|
}
|
||||||
// 刷新表格问题
|
// 刷新表格问题
|
||||||
await this.getTableQuestions()
|
this.getTableQuestions()
|
||||||
this.$emit('getAnnotations', this.visitTaskId)
|
this.$emit('getAnnotations', this.visitTaskId)
|
||||||
// '删除成功!'
|
// '删除成功!'
|
||||||
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||||
|
|
|
@ -208,8 +208,6 @@
|
||||||
:question-form="questionForm"
|
:question-form="questionForm"
|
||||||
:reading-task-state="readingTaskState"
|
:reading-task-state="readingTaskState"
|
||||||
:visitTaskId="visitTaskId"
|
:visitTaskId="visitTaskId"
|
||||||
@resetFormItemData="resetFormItemData"
|
|
||||||
@setFormItemData="setFormItemData"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -31,8 +31,6 @@
|
||||||
:question-form="outerForm"
|
:question-form="outerForm"
|
||||||
:reading-task-state="readingTaskState"
|
:reading-task-state="readingTaskState"
|
||||||
:visit-task-id="visitTaskId"
|
:visit-task-id="visitTaskId"
|
||||||
@resetFormItemData="resetOuterFormItemData"
|
|
||||||
@setFormItemData="setOuterFormItemData"
|
|
||||||
/>
|
/>
|
||||||
<el-form-item v-if="readingTaskState < 2">
|
<el-form-item v-if="readingTaskState < 2">
|
||||||
<div class="outer_form-footer">
|
<div class="outer_form-footer">
|
||||||
|
@ -339,12 +337,6 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return formData
|
return formData
|
||||||
},
|
|
||||||
resetOuterFormItemData(v) {
|
|
||||||
this.$set(this.outerForm, v, null)
|
|
||||||
},
|
|
||||||
setOuterFormItemData(obj) {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// 获取表格问题
|
// 获取表格问题
|
||||||
async getTableQuestions() {
|
async getTableQuestions() {
|
||||||
|
@ -358,7 +350,6 @@ export default {
|
||||||
const res = await getReadingQuestionAndAnswer(params)
|
const res = await getReadingQuestionAndAnswer(params)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.tableQuestions = res.Result.SinglePage
|
this.tableQuestions = res.Result.SinglePage
|
||||||
this.innerFormData = {}
|
|
||||||
res.Result.SinglePage.forEach(group => {
|
res.Result.SinglePage.forEach(group => {
|
||||||
group.Childrens.forEach(table => {
|
group.Childrens.forEach(table => {
|
||||||
const tableKey = table.Id
|
const tableKey = table.Id
|
||||||
|
@ -426,7 +417,6 @@ export default {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log(this.innerFormData)
|
|
||||||
loading.close()
|
loading.close()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
@ -544,7 +534,7 @@ export default {
|
||||||
}
|
}
|
||||||
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
||||||
if (!this.isBaseLineTask && ((obj.toolName === 'Length' && length < 10) || (obj.toolName === 'Bidirectional' && short < 10))) {
|
if (!this.isBaseLineTask && ((obj.toolName === 'Length' && length < 10) || (obj.toolName === 'Bidirectional' && short < 10))) {
|
||||||
const stateId = this.getQuestionId(7, targetTable.TableQuestions.Questions)
|
const stateId = this.getQuestionId(7)
|
||||||
if (innerForm.IsLymphNodes) {
|
if (innerForm.IsLymphNodes) {
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
||||||
|
@ -578,6 +568,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
modifyAnnotation(obj) {
|
modifyAnnotation(obj) {
|
||||||
|
console.log('modifyAnnotation')
|
||||||
const { annotation, toolName } = obj
|
const { annotation, toolName } = obj
|
||||||
const formData = Object.values(this.innerFormData).find(
|
const formData = Object.values(this.innerFormData).find(
|
||||||
i => i.LesionName === annotation.data.label
|
i => i.LesionName === annotation.data.label
|
||||||
|
@ -634,7 +625,7 @@ export default {
|
||||||
}
|
}
|
||||||
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
// 非基线时,非淋巴结病灶长径<10mm,自动给“存在”状态,如果淋巴结病灶短径<10mm,自动给“消失”状态。
|
||||||
if (!this.isBaseLineTask && ((toolName === 'Length' && length < 10) || (toolName === 'Bidirectional' && short < 10))) {
|
if (!this.isBaseLineTask && ((toolName === 'Length' && length < 10) || (toolName === 'Bidirectional' && short < 10))) {
|
||||||
const stateId = this.getQuestionId(7, targetTable.TableQuestions.Questions)
|
const stateId = this.getQuestionId(7)
|
||||||
if (isLymphNodes) {
|
if (isLymphNodes) {
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], 'LesionState', 3)
|
||||||
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
this.$set(this.innerFormData[`${tableId}_${rowIndex}`], stateId, 3)
|
||||||
|
@ -814,7 +805,7 @@ export default {
|
||||||
this.$emit('removeAnnotation', obj)
|
this.$emit('removeAnnotation', obj)
|
||||||
}
|
}
|
||||||
// 刷新表格问题
|
// 刷新表格问题
|
||||||
await this.getTableQuestions()
|
this.getTableQuestions()
|
||||||
this.$emit('getAnnotations', this.visitTaskId)
|
this.$emit('getAnnotations', this.visitTaskId)
|
||||||
// '删除成功!'
|
// '删除成功!'
|
||||||
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||||
|
@ -844,9 +835,9 @@ export default {
|
||||||
let loading = null
|
let loading = null
|
||||||
try {
|
try {
|
||||||
const innerForm = this.innerFormData[`${table.Id}_${rowIndex}`]
|
const innerForm = this.innerFormData[`${table.Id}_${rowIndex}`]
|
||||||
if (table.LesionType === 0 && this.isBaseLineTask && !innerForm.IntrahepaticLesion) {
|
if (table.LesionType === 0 && this.isBaseLineTask && !innerForm.IsLymphNodes && !innerForm.IntrahepaticLesion) {
|
||||||
const arr = Object.values(this.innerFormData).filter(
|
const arr = Object.values(this.innerFormData).filter(
|
||||||
obj => obj.LesionType === 0 && obj.LesionName !== innerForm.LesionName
|
obj => !obj.IsLymphNodes && obj.LesionType === 0 && obj.LesionName !== innerForm.LesionName
|
||||||
)
|
)
|
||||||
if (arr.length === 0 && !innerForm.RowId) {
|
if (arr.length === 0 && !innerForm.RowId) {
|
||||||
const confirm = await this.$confirm(
|
const confirm = await this.$confirm(
|
||||||
|
|
Loading…
Reference in New Issue