处理弹窗的样式问题

This commit is contained in:
任珮宇 2023-11-08 18:42:07 +08:00
parent 7e637c8c85
commit 8282663e3e
5 changed files with 37 additions and 9 deletions

View File

@ -10,7 +10,7 @@
>
<a-tabs :animated="false" v-model="currTab">
<a-tab-pane tab="Gamma Detector Calibration" key="gamma">
<gamma-detector-calibration @isFitting="getFittingFlag_gamma" :isFirstFitting="gammaEnergyValid"/>
<gamma-detector-calibration @isFitting="getFittingFlag_gamma" :isFirstFitting="gammaEnergyValid" />
</a-tab-pane>
<a-tab-pane tab="Beta Detector Calibration" key="beta">
<beta-detector-calibration @isFitting="getFittingFlag_beta" />
@ -71,7 +71,7 @@ export default {
},
betaEnergyValid: false,
gammaEnergyValid: false,
isReanlyze: false
isReanlyze: false,
}
},
methods: {
@ -90,14 +90,14 @@ export default {
this.betaEnergyValid = val
},
getFittingFlag_gamma(val) {
console.log("zhiqian>>>"+this.gammaEnergyValid);
console.log('zhiqian>>>' + this.gammaEnergyValid)
this.gammaEnergyValid = val
console.log("zhihou>>>"+this.gammaEnergyValid);
console.log('zhihou>>>' + this.gammaEnergyValid)
},
handleReAnalyse() {
// todo 1.fitting; 2.isReAnalyze
if(!this.gammaEnergyValid){
return false;
if (!this.gammaEnergyValid) {
return false
}
const regExp = /^([A-Z]{1,}\d{1,})_/
const regMatched = this.newSampleData.inputFileName.match(regExp)
@ -157,9 +157,9 @@ export default {
},
handleExit() {
this.gammaEnergyValid = this.isReanlyze
console.log("exit>>>this.isReanlyze>>>"+this.isReanlyze);
if(!this.isReanlyze && this.$ls.get("calibration-gamma:"+this.newSampleData.inputFileName)){
this.$ls.remove("calibration-gamma:"+this.newSampleData.inputFileName) // ReANalyzefitting 20231101:xiao
console.log('exit>>>this.isReanlyze>>>' + this.isReanlyze)
if (!this.isReanlyze && this.$ls.get('calibration-gamma:' + this.newSampleData.inputFileName)) {
this.$ls.remove('calibration-gamma:' + this.newSampleData.inputFileName) // ReANalyzefitting 20231101:xiao
}
this.visible = false
},
@ -182,6 +182,10 @@ export default {
<style lang="less" scoped>
::v-deep {
.ant-modal {
top: 5px;
padding-bottom: 15px;
}
.ant-form-item-label,
.ant-form-item-control {
line-height: 30px !important;

View File

@ -813,6 +813,12 @@ export default {
}
</script>
<style lang="less" scoped>
::v-deep {
.ant-modal {
top: 5px;
padding-bottom: 15px;
}
}
.border {
border: 1px solid #0b8c82;
}

View File

@ -721,4 +721,10 @@ export default {
.mt-20 {
margin-top: 20px;
}
::v-deep {
.ant-modal {
top: 5px;
padding-bottom: 15px;
}
}
</style>

View File

@ -680,4 +680,10 @@ export default {
.mt-20 {
margin-top: 20px;
}
::v-deep {
.ant-modal {
top: 5px;
padding-bottom: 15px;
}
}
</style>

View File

@ -679,4 +679,10 @@ export default {
.mt-20 {
margin-top: 20px;
}
::v-deep {
.ant-modal {
top: 5px;
padding-bottom: 15px;
}
}
</style>