修改全局阅片控制指定列显隐

uat_us
caiyiling 2024-01-15 14:53:51 +08:00
parent c6f349c3b8
commit 7a6bac4c6c
6 changed files with 19 additions and 12 deletions

View File

@ -96,9 +96,10 @@
<template>
<el-table-column
v-for="(qs,index) in globalInfo.adjustedQsList"
v-if="qs.isShow"
:key="index"
prop=""
:label="qs"
:label="qs.questionName"
show-overflow-tooltip
:min-width="index === 3 ? '200' : '200'"
>

View File

@ -88,9 +88,10 @@
<template>
<el-table-column
v-for="(qs,index) in globalInfo.adjustedQsList"
v-if="qs.isShow"
:key="index"
prop=""
:label="qs"
:label="qs.questionName"
show-overflow-tooltip
:min-width="index === 3 ? '200' : '200'"
>
@ -331,6 +332,7 @@ export default {
...mapGetters(['language'])
},
mounted() {
console.log(this.globalInfo)
this.assessTypes = this.globalInfo.assessTypeList.filter(i => i.IsBaseLineUse === this.isBaseline)
},
methods: {
@ -448,7 +450,6 @@ export default {
}
})
}
console.log(this.globalForm)
},
getAssessType(v) {
console.log(this.language)

View File

@ -49,9 +49,10 @@
<template>
<el-table-column
v-for="(qs,index) in globalInfo.adjustedQsList"
v-if="qs.isShow"
:key="index"
prop=""
:label="qs"
:label="qs.questionName"
:width="index > 0 ? '300' : '200'"
>
<template slot-scope="scope">
@ -182,7 +183,6 @@ export default {
}
},
mounted() {
console.log(this.globalInfo.adjustedQsList)
},
methods: {
selectChange(v, row, index) {

View File

@ -96,9 +96,10 @@
<template>
<el-table-column
v-for="(qs,index) in globalInfo.adjustedQsList"
v-if="qs.isShow"
:key="index"
prop=""
:label="qs"
:label="qs.questionName"
show-overflow-tooltip
:min-width="index === 3 ? '200' : '200'"
>

View File

@ -96,9 +96,10 @@
<template>
<el-table-column
v-for="(qs,index) in globalInfo.adjustedQsList"
v-if="qs.isShow"
:key="index"
prop=""
:label="qs"
:label="qs.questionName"
show-overflow-tooltip
:min-width="index === 3 ? '200' : '200'"
>

View File

@ -257,19 +257,22 @@ export default {
evaluationQsList.push(qs.QuestionName)
})
qs.AfterQuestionList.map(qs => {
console.log(qs)
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)) {
//
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)) {
//
adjustedQsList.push(this.$t('trials:globalReview:table:updateType'))
adjustedQsList.push({questionName:this.$t('trials:globalReview:table:updateType'),isShow:true})
} else {
if(!(this.CriterionType === 2 && (qs.QuestionType !== 39 || qs.QuestionType !== 40 || qs.QuestionType !== 41))){
adjustedQsList.push(qs.QuestionName)
var isShow = true
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 => {