阅片规则配置更改
continuous-integration/drone/push Build is pending
Details
continuous-integration/drone/push Build is pending
Details
parent
de5c46c916
commit
e2b105cf39
|
|
@ -396,6 +396,10 @@ export default {
|
|||
],
|
||||
},
|
||||
judgeRuleEnum: -1,
|
||||
savedJudgyInfo: {
|
||||
JudgeModeEnum: null,
|
||||
JudgeRuleEnum: null,
|
||||
},
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
|
@ -408,6 +412,15 @@ export default {
|
|||
await this.initData()
|
||||
},
|
||||
methods: {
|
||||
resetJudgeTypeRelatedFields(question = {}) {
|
||||
this.$set(question, 'AnswerGroup2List', [])
|
||||
this.$set(question, 'AnswerGroupList', [])
|
||||
this.$set(question, 'grouping', [])
|
||||
this.$set(question, 'groupingA', [])
|
||||
this.$set(question, 'groupingB', [])
|
||||
this.$set(question, 'JudgeDifferenceValue', 0)
|
||||
this.$set(question, 'JudgeDifferenceType', 0)
|
||||
},
|
||||
async initData() {
|
||||
await this.getTrialJudgyInfo()
|
||||
if (this.judgeRuleEnum !== 1) {
|
||||
|
|
@ -427,9 +440,10 @@ export default {
|
|||
}
|
||||
},
|
||||
JudgeTypeChange(value, index) {
|
||||
this.resetJudgeTypeRelatedFields(this.QuestionList[index])
|
||||
this.$nextTick(() => {
|
||||
if (value === 4 || value === 5) {
|
||||
if (this.$refs['JudgeDifferenceValue' + value + index][0]) {
|
||||
if (this.$refs['JudgeDifferenceValue' + value + index] && this.$refs['JudgeDifferenceValue' + value + index][0]) {
|
||||
this.$refs['JudgeDifferenceValue' + value + index][0].resetFields()
|
||||
// this.QuestionList[index].JudgeDifferenceValue = 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -366,6 +366,15 @@ export default {
|
|||
this.activeVisitTab = ''
|
||||
await this.getVisitPlanOptions()
|
||||
},
|
||||
resetVisitJudgeTypeRelatedFields(question = {}) {
|
||||
this.$set(question, 'AnswerGroup2List', [])
|
||||
this.$set(question, 'AnswerGroupList', [])
|
||||
this.$set(question, 'grouping', [])
|
||||
this.$set(question, 'groupingA', [])
|
||||
this.$set(question, 'groupingB', [])
|
||||
this.$set(question, 'JudgeDifferenceValue', null)
|
||||
this.$set(question, 'JudgeDifferenceType', 0)
|
||||
},
|
||||
normalizeQuestionList(questionList = []) {
|
||||
return questionList.map((item) => ({
|
||||
...item,
|
||||
|
|
@ -448,6 +457,7 @@ export default {
|
|||
}
|
||||
},
|
||||
visitJudgeTypeChange(value, index, visitKey) {
|
||||
this.resetVisitJudgeTypeRelatedFields(this.questionListMap[visitKey][index])
|
||||
this.$nextTick(() => {
|
||||
if (value === 4 || value === 5) {
|
||||
const refName = `JudgeDifferenceValue${value}_${visitKey}_${index}`
|
||||
|
|
|
|||
Loading…
Reference in New Issue