数据匿名按钮样式修改
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2026-05-09 15:33:35 +08:00
parent e6a15e35f6
commit d6f36cbbda
2 changed files with 32 additions and 15 deletions

View File

@ -101,9 +101,10 @@
<option value="3x2">3x2</option> <option value="3x2">3x2</option>
<option value="3x3">3x3</option> <option value="3x3">3x3</option>
</select> </select>
<div class="btnBox" v-if="hasAnonymous && hasPermi(['role:iqc'])" @click="openAnonymous">{{ <div :class="{ btnBox: true, activeBtnBox: isAnonymous }" v-if="hasAnonymous && hasPermi(['role:iqc'])"
$t('DicomViewer:anonymous:PixelAnonymity') @click="openAnonymous">{{
}} $t('DicomViewer:anonymous:PixelAnonymity')
}}
</div> </div>
</div> </div>
</div> </div>
@ -1252,25 +1253,27 @@ export default {
height: 40px; height: 40px;
line-height: 30px; line-height: 30px;
border-radius: 15px; border-radius: 15px;
background-color: rgba(255, 255, 255, .3);
cursor: pointer; cursor: pointer;
padding: 5px 10px; padding: 5px 10px;
border: 1px solid rgba(255, 255, 255, .7); color: #428bca;
color: #000; background: #ecf3fa;
border-color: #b3d1ea;
&:hover {
background-color: rgba(255, 255, 255, .5);
}
} }
.activeBtn { .activeBtn {
background-color: #16477b90; background: #428bca;
border-color: #428bca;
color: #fff; color: #fff;
} }
.isNoted { // &:hover {
cursor: not-allowed; // background-color: rgba(255, 255, 255, .5);
} // }
}
.isNoted {
cursor: not-allowed;
} }
</style> </style>
<style> <style>
@ -1322,13 +1325,21 @@ export default {
height: 30px; height: 30px;
line-height: 20px; line-height: 20px;
border-radius: 15px; border-radius: 15px;
background-color: rgba(255, 255, 255, .3); color: #428bca;
background: #ecf3fa;
border-color: #b3d1ea;
cursor: pointer; cursor: pointer;
padding: 5px 10px; padding: 5px 10px;
border: 1px solid rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .7);
margin: 5px; margin: 5px;
} }
.dicom-tools .activeBtnBox {
background: #428bca;
border-color: #428bca;
color: #fff;
}
.dicom-wrapper .dicom-row { .dicom-wrapper .dicom-row {
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View File

@ -132,6 +132,9 @@ export default {
let chartList = [ let chartList = [
'/trials/trials-panel/trial-summary/report-forms' '/trials/trials-panel/trial-summary/report-forms'
] ]
let dataSyncList = [
`/trials/trials-panel/trial-summary/data-sync`
]
var qualityList = [ var qualityList = [
'/trials/trials-panel/visit/crc-question', '/trials/trials-panel/visit/crc-question',
'/trials/trials-panel/visit/qc-check', '/trials/trials-panel/visit/qc-check',
@ -147,6 +150,9 @@ export default {
'/trials/trials-panel/trial-summary/image-inspect', '/trials/trials-panel/trial-summary/image-inspect',
'/trials/trials-panel/trial-summary/push-record', '/trials/trials-panel/trial-summary/push-record',
] ]
if (this.$store.state.trials.config.TrialDataStoreType !== 1 && ~dataSyncList.indexOf(path)) {
isShow = false
}
if (!this.$store.state.trials.config.IsExternalViewTrialChart && ~chartList.indexOf(path) && this.hasPermi(['role:cmm', 'role:cpm', 'role:ea', 'role:mc', 'role:smm', 'role:spm'])) { if (!this.$store.state.trials.config.IsExternalViewTrialChart && ~chartList.indexOf(path) && this.hasPermi(['role:cmm', 'role:cpm', 'role:ea', 'role:mc', 'role:smm', 'role:spm'])) {
isShow = false isShow = false
} }