修改全局阅片控制指定列显隐
parent
c6f349c3b8
commit
7a6bac4c6c
|
@ -96,9 +96,10 @@
|
||||||
<template>
|
<template>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(qs,index) in globalInfo.adjustedQsList"
|
v-for="(qs,index) in globalInfo.adjustedQsList"
|
||||||
|
v-if="qs.isShow"
|
||||||
:key="index"
|
:key="index"
|
||||||
prop=""
|
prop=""
|
||||||
:label="qs"
|
:label="qs.questionName"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:min-width="index === 3 ? '200' : '200'"
|
:min-width="index === 3 ? '200' : '200'"
|
||||||
>
|
>
|
||||||
|
|
|
@ -88,9 +88,10 @@
|
||||||
<template>
|
<template>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(qs,index) in globalInfo.adjustedQsList"
|
v-for="(qs,index) in globalInfo.adjustedQsList"
|
||||||
|
v-if="qs.isShow"
|
||||||
:key="index"
|
:key="index"
|
||||||
prop=""
|
prop=""
|
||||||
:label="qs"
|
:label="qs.questionName"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:min-width="index === 3 ? '200' : '200'"
|
:min-width="index === 3 ? '200' : '200'"
|
||||||
>
|
>
|
||||||
|
@ -331,6 +332,7 @@ export default {
|
||||||
...mapGetters(['language'])
|
...mapGetters(['language'])
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
console.log(this.globalInfo)
|
||||||
this.assessTypes = this.globalInfo.assessTypeList.filter(i => i.IsBaseLineUse === this.isBaseline)
|
this.assessTypes = this.globalInfo.assessTypeList.filter(i => i.IsBaseLineUse === this.isBaseline)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -448,7 +450,6 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log(this.globalForm)
|
|
||||||
},
|
},
|
||||||
getAssessType(v) {
|
getAssessType(v) {
|
||||||
console.log(this.language)
|
console.log(this.language)
|
||||||
|
|
|
@ -49,9 +49,10 @@
|
||||||
<template>
|
<template>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(qs,index) in globalInfo.adjustedQsList"
|
v-for="(qs,index) in globalInfo.adjustedQsList"
|
||||||
|
v-if="qs.isShow"
|
||||||
:key="index"
|
:key="index"
|
||||||
prop=""
|
prop=""
|
||||||
:label="qs"
|
:label="qs.questionName"
|
||||||
:width="index > 0 ? '300' : '200'"
|
:width="index > 0 ? '300' : '200'"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -182,7 +183,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.globalInfo.adjustedQsList)
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
selectChange(v, row, index) {
|
selectChange(v, row, index) {
|
||||||
|
|
|
@ -96,9 +96,10 @@
|
||||||
<template>
|
<template>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(qs,index) in globalInfo.adjustedQsList"
|
v-for="(qs,index) in globalInfo.adjustedQsList"
|
||||||
|
v-if="qs.isShow"
|
||||||
:key="index"
|
:key="index"
|
||||||
prop=""
|
prop=""
|
||||||
:label="qs"
|
:label="qs.questionName"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:min-width="index === 3 ? '200' : '200'"
|
:min-width="index === 3 ? '200' : '200'"
|
||||||
>
|
>
|
||||||
|
|
|
@ -96,9 +96,10 @@
|
||||||
<template>
|
<template>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(qs,index) in globalInfo.adjustedQsList"
|
v-for="(qs,index) in globalInfo.adjustedQsList"
|
||||||
|
v-if="qs.isShow"
|
||||||
:key="index"
|
:key="index"
|
||||||
prop=""
|
prop=""
|
||||||
:label="qs"
|
:label="qs.questionName"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:min-width="index === 3 ? '200' : '200'"
|
:min-width="index === 3 ? '200' : '200'"
|
||||||
>
|
>
|
||||||
|
|
|
@ -257,19 +257,22 @@ export default {
|
||||||
evaluationQsList.push(qs.QuestionName)
|
evaluationQsList.push(qs.QuestionName)
|
||||||
})
|
})
|
||||||
qs.AfterQuestionList.map(qs => {
|
qs.AfterQuestionList.map(qs => {
|
||||||
|
console.log(qs)
|
||||||
if (qs.GlobalAnswerType === 1 && (this.CriterionType === 10)) {
|
if (qs.GlobalAnswerType === 1 && (this.CriterionType === 10)) {
|
||||||
// 访视阅片备注
|
// 访视阅片备注
|
||||||
adjustedQsList.push(this.$t('trials:globalReview:table:visitRemark'))
|
adjustedQsList.push({questionName:this.$t('trials:globalReview:table:visitRemark'),isShow:true})
|
||||||
} else if (qs.GlobalAnswerType === 1 && (this.CriterionType !== 10)) {
|
} else if (qs.GlobalAnswerType === 1 && (this.CriterionType !== 10)) {
|
||||||
// 全局阅片备注
|
// 全局阅片备注
|
||||||
adjustedQsList.push(this.$t('trials:globalReview:table:globalRemark'))
|
adjustedQsList.push({questionName:this.$t('trials:globalReview:table:globalRemark'),isShow:true})
|
||||||
} else if (qs.GlobalAnswerType === 3 && (this.CriterionType !== 10)) {
|
} else if (qs.GlobalAnswerType === 3 && (this.CriterionType !== 10)) {
|
||||||
// 评估更新类型
|
// 评估更新类型
|
||||||
adjustedQsList.push(this.$t('trials:globalReview:table:updateType'))
|
adjustedQsList.push({questionName:this.$t('trials:globalReview:table:updateType'),isShow:true})
|
||||||
} else {
|
} else {
|
||||||
if(!(this.CriterionType === 2 && (qs.QuestionType !== 39 || qs.QuestionType !== 40 || qs.QuestionType !== 41))){
|
var isShow = true
|
||||||
adjustedQsList.push(qs.QuestionName)
|
if(this.CriterionType === 2 && (qs.QuestionType === 39 || qs.QuestionType === 40 || qs.QuestionType === 41)){
|
||||||
|
isShow = false
|
||||||
}
|
}
|
||||||
|
adjustedQsList.push({questionName:qs.QuestionName,isShow:isShow})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
qs.AgreeOrNot.map(qs => {
|
qs.AgreeOrNot.map(qs => {
|
||||||
|
|
Loading…
Reference in New Issue