系统阅片配置更改
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-08-05 14:22:29 +08:00
parent a3c7e76267
commit fcc4820087
2 changed files with 56 additions and 25 deletions

View File

@ -442,10 +442,10 @@
</template> </template>
<template v-else-if="form.DictionaryCode"> <template v-else-if="form.DictionaryCode">
<el-option <el-option
v-for="item of $d[form.DictionaryCode]" v-for="item of highlightAnswers"
:key="item.id" :key="item.Id"
:label="item.label" :label="item.ValueCN"
:value="item.value.toString()" :value="item.Code"
/> />
</template> </template>
</el-select> </el-select>
@ -606,7 +606,29 @@ export default {
lesionTypes: [], lesionTypes: [],
dicList: [], dicList: [],
CriterionDictionaryList: [], CriterionDictionaryList: [],
groupClassifyList:[] groupClassifyList:[],
highlightAnswers: []
}
},
watch: {
'form.DictionaryCode': {
deep: true,
immediate: true,
async handler(v, oldv) {
try {
if (!v) {
this.highlightAnswers = []
return
}
let res = await getCriterionDictionary({
ReadingCriterionId: this.data.ReadingQuestionCriterionSystemId,
DictionaryCode: this.form.DictionaryCode
})
this.highlightAnswers = res.Result[this.form.DictionaryCode]
} catch (e) {
console.log(e)
}
}
} }
}, },
mounted() { mounted() {
@ -633,7 +655,6 @@ export default {
await this.getGroupOptions() await this.getGroupOptions()
await this.getParentQuestions() await this.getParentQuestions()
await this.getLesionType() await this.getLesionType()
await this.getBasicConfigSelect()
if (Object.keys(this.data).length > 0) { if (Object.keys(this.data).length > 0) {
for (const k in this.form) { for (const k in this.form) {
if (this.data.hasOwnProperty(k)) { if (this.data.hasOwnProperty(k)) {
@ -697,18 +718,6 @@ export default {
}) })
}) })
}, },
getBasicConfigSelect() {
// getBasicConfigSelect('Reading_eCRF_Criterion').then(res => {
// this.dicList = res.Result
// })
getCriterionDictionaryList({
CriterionId: this.data.ReadingQuestionCriterionSystemId,
SystemCriterionId: this.data.ReadingQuestionCriterionSystemId
}).then(res => {
console.log(this.dicList)
this.dicList = res.Result
})
},
getGroupOptions() { getGroupOptions() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.loading = true this.loading = true

View File

@ -439,10 +439,10 @@
</template> </template>
<template v-else-if="form.DictionaryCode"> <template v-else-if="form.DictionaryCode">
<el-option <el-option
v-for="item of $d[form.DictionaryCode]" v-for="item of highlightAnswers"
:key="item.id" :key="item.Id"
:label="item.label" :label="item.ValueCN"
:value="item.value.toString()" :value="item.Code"
/> />
</template> </template>
</el-select> </el-select>
@ -486,7 +486,7 @@
</template> </template>
<script> <script>
import { addOrUpdateReadingTableQuestionTrial, getReadingTableOtherQuestionTrial, getCalculateTableQuestions } from '@/api/trials' import { addOrUpdateReadingTableQuestionTrial, getReadingTableOtherQuestionTrial, getCalculateTableQuestions } from '@/api/trials'
import { getBasicConfigSelect, getCriterionDictionaryList } from '@/api/dictionary' import { getBasicConfigSelect, getCriterionDictionaryList, getCriterionDictionary } from '@/api/dictionary'
export default { export default {
name: 'AddOrUpdateTableQs', name: 'AddOrUpdateTableQs',
props: { props: {
@ -601,7 +601,29 @@ export default {
dicList: [], dicList: [],
Questions: [], Questions: [],
tableQuestions: [], tableQuestions: [],
LimitEdit: 0 LimitEdit: 0,
highlightAnswers: []
}
},
watch: {
'form.DictionaryCode': {
deep: true,
immediate: true,
async handler(v, oldv) {
try {
if (!v) {
this.highlightAnswers = []
return
}
let res = await getCriterionDictionary({
ReadingCriterionId: this.data.ReadingQuestionCriterionSystemId,
DictionaryCode: this.form.DictionaryCode
})
this.highlightAnswers = res.Result[this.form.DictionaryCode]
} catch (e) {
console.log(e)
}
}
} }
}, },
mounted() { mounted() {