Compare commits
No commits in common. "7e52005dabd1baf4265224e462fc8b30f92ea9c5" and "862c6d64ccc4e4d186d2b6dbe38c7cf7fd596641" have entirely different histories.
7e52005dab
...
862c6d64cc
|
@ -877,7 +877,6 @@ export default {
|
||||||
btnLoading: false,
|
btnLoading: false,
|
||||||
parentOptions: [],
|
parentOptions: [],
|
||||||
parentTriggerValOptions: [],
|
parentTriggerValOptions: [],
|
||||||
reParentTriggerValOptions: [],
|
|
||||||
groupOptions: [],
|
groupOptions: [],
|
||||||
isParentExistGroup: false,
|
isParentExistGroup: false,
|
||||||
lesionTypes: [],
|
lesionTypes: [],
|
||||||
|
@ -1002,15 +1001,8 @@ export default {
|
||||||
})
|
})
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
if (this.parentOptions[index].QuestionGenre === 3) {
|
if (this.parentOptions[index].QuestionGenre === 3) {
|
||||||
// this.parentTriggerValOptions =
|
this.parentTriggerValOptions =
|
||||||
// this.$d[this.parentOptions[index].DictionaryCode]
|
this.$d[this.parentOptions[index].DictionaryCode]
|
||||||
let dicCode = this.parentOptions[index].DictionaryCode
|
|
||||||
let res = await getCriterionDictionary({ReadingCriterionId: this.data.ReadingQuestionCriterionSystemId,DictionaryCode: dicCode})
|
|
||||||
|
|
||||||
this.parentTriggerValOptions = res.Result[dicCode].map(i=>{
|
|
||||||
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
|
|
||||||
})
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
const options = []
|
const options = []
|
||||||
this.parentOptions[index].TypeValue.split('|').forEach(
|
this.parentOptions[index].TypeValue.split('|').forEach(
|
||||||
|
@ -1028,13 +1020,8 @@ export default {
|
||||||
})
|
})
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
if (this.parentOptions[index].QuestionGenre === 3) {
|
if (this.parentOptions[index].QuestionGenre === 3) {
|
||||||
// this.reParentTriggerValOptions =
|
this.reParentTriggerValOptions =
|
||||||
// this.$d[this.parentOptions[index].DictionaryCode]
|
this.$d[this.parentOptions[index].DictionaryCode]
|
||||||
let dicCode = this.parentOptions[index].DictionaryCode
|
|
||||||
let res = await getCriterionDictionary({ReadingCriterionId: this.data.ReadingQuestionCriterionSystemId,DictionaryCode: dicCode})
|
|
||||||
this.reParentTriggerValOptions = res.Result[dicCode].map(i=>{
|
|
||||||
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
const options = []
|
const options = []
|
||||||
this.parentOptions[index].TypeValue.split('|').forEach(
|
this.parentOptions[index].TypeValue.split('|').forEach(
|
||||||
|
@ -1225,21 +1212,15 @@ export default {
|
||||||
}
|
}
|
||||||
form.ParentTriggerValue = ''
|
form.ParentTriggerValue = ''
|
||||||
},
|
},
|
||||||
async relevanceQuestionChange(val, form) {
|
relevanceQuestionChange(val, form) {
|
||||||
if (val) {
|
if (val) {
|
||||||
var index = this.parentOptions.findIndex((item) => {
|
var index = this.parentOptions.findIndex((item) => {
|
||||||
return item.QuestionId === val
|
return item.QuestionId === val
|
||||||
})
|
})
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
if (this.parentOptions[index].QuestionGenre === 3) {
|
if (this.parentOptions[index].QuestionGenre === 3) {
|
||||||
// this.reParentTriggerValOptions =
|
this.reParentTriggerValOptions =
|
||||||
// this.$d[this.parentOptions[index].DictionaryCode]
|
this.$d[this.parentOptions[index].DictionaryCode]
|
||||||
let dicCode = this.parentOptions[index].DictionaryCode
|
|
||||||
let res = await getCriterionDictionary({ReadingCriterionId: this.data.ReadingQuestionCriterionSystemId,DictionaryCode: dicCode})
|
|
||||||
|
|
||||||
this.reParentTriggerValOptions = res.Result[dicCode].map(i=>{
|
|
||||||
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
var options = []
|
var options = []
|
||||||
this.parentOptions[index].TypeValue.split('|').forEach(
|
this.parentOptions[index].TypeValue.split('|').forEach(
|
||||||
|
|
|
@ -710,13 +710,7 @@ export default {
|
||||||
})
|
})
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
if (this.parentOptions[index].QuestionGenre === 3) {
|
if (this.parentOptions[index].QuestionGenre === 3) {
|
||||||
// this.parentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
|
this.parentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
|
||||||
let dicCode = this.parentOptions[index].DictionaryCode
|
|
||||||
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
|
|
||||||
|
|
||||||
this.parentTriggerValOptions = res.Result[dicCode].map(i=>{
|
|
||||||
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
const options = []
|
const options = []
|
||||||
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
|
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
|
||||||
|
@ -732,12 +726,8 @@ export default {
|
||||||
})
|
})
|
||||||
if (i !== -1) {
|
if (i !== -1) {
|
||||||
if (this.parentOptions[i].QuestionGenre === 3) {
|
if (this.parentOptions[i].QuestionGenre === 3) {
|
||||||
// this.reParentTriggerValOptions = this.$d[this.parentOptions[i].DictionaryCode]
|
console.log(this.$d[this.parentOptions[i].DictionaryCode])
|
||||||
let dicCode = this.parentOptions[i].DictionaryCode
|
this.reParentTriggerValOptions = this.$d[this.parentOptions[i].DictionaryCode]
|
||||||
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
|
|
||||||
this.reParentTriggerValOptions = res.Result[dicCode].map(i=>{
|
|
||||||
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
const options = []
|
const options = []
|
||||||
this.parentOptions[i].TypeValue.split('|').forEach((item, index) => {
|
this.parentOptions[i].TypeValue.split('|').forEach((item, index) => {
|
||||||
|
@ -815,20 +805,14 @@ export default {
|
||||||
form.RelevanceValue = ''
|
form.RelevanceValue = ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async parentQuestionChange(val, form) {
|
parentQuestionChange(val, form) {
|
||||||
if (val) {
|
if (val) {
|
||||||
var index = this.parentOptions.findIndex(item => {
|
var index = this.parentOptions.findIndex(item => {
|
||||||
return item.QuestionId === val
|
return item.QuestionId === val
|
||||||
})
|
})
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
if (this.parentOptions[index].QuestionGenre === 3) {
|
if (this.parentOptions[index].QuestionGenre === 3) {
|
||||||
// this.parentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
|
this.parentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
|
||||||
let dicCode = this.parentOptions[index].DictionaryCode
|
|
||||||
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
|
|
||||||
|
|
||||||
this.parentTriggerValOptions = res.Result[dicCode].map(i=>{
|
|
||||||
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
const options = []
|
const options = []
|
||||||
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
|
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
|
||||||
|
@ -840,20 +824,16 @@ export default {
|
||||||
}
|
}
|
||||||
form.ParentTriggerValue = ''
|
form.ParentTriggerValue = ''
|
||||||
},
|
},
|
||||||
async relevanceQuestionChange(val, form) {
|
relevanceQuestionChange(val, form) {
|
||||||
if (val) {
|
if (val) {
|
||||||
var index = this.parentOptions.findIndex(item => {
|
var index = this.parentOptions.findIndex(item => {
|
||||||
return item.QuestionId === val
|
return item.QuestionId === val
|
||||||
})
|
})
|
||||||
|
console.log(this.$d[this.parentOptions[index].DictionaryCode], this.parentOptions[index].QuestionGenre)
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
if (this.parentOptions[index].QuestionGenre === 3) {
|
if (this.parentOptions[index].QuestionGenre === 3) {
|
||||||
// this.reParentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
|
console.log(this.$d[this.parentOptions[index].DictionaryCode])
|
||||||
let dicCode = this.parentOptions[index].DictionaryCode
|
this.reParentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
|
||||||
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
|
|
||||||
|
|
||||||
this.reParentTriggerValOptions = res.Result[dicCode].map(i=>{
|
|
||||||
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
const options = []
|
const options = []
|
||||||
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
|
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
|
||||||
|
|
Loading…
Reference in New Issue