处理弹窗的样式问题
This commit is contained in:
parent
7e637c8c85
commit
8282663e3e
|
@ -10,7 +10,7 @@
|
||||||
>
|
>
|
||||||
<a-tabs :animated="false" v-model="currTab">
|
<a-tabs :animated="false" v-model="currTab">
|
||||||
<a-tab-pane tab="Gamma Detector Calibration" key="gamma">
|
<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>
|
||||||
<a-tab-pane tab="Beta Detector Calibration" key="beta">
|
<a-tab-pane tab="Beta Detector Calibration" key="beta">
|
||||||
<beta-detector-calibration @isFitting="getFittingFlag_beta" />
|
<beta-detector-calibration @isFitting="getFittingFlag_beta" />
|
||||||
|
@ -71,7 +71,7 @@ export default {
|
||||||
},
|
},
|
||||||
betaEnergyValid: false,
|
betaEnergyValid: false,
|
||||||
gammaEnergyValid: false,
|
gammaEnergyValid: false,
|
||||||
isReanlyze: false
|
isReanlyze: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -90,14 +90,14 @@ export default {
|
||||||
this.betaEnergyValid = val
|
this.betaEnergyValid = val
|
||||||
},
|
},
|
||||||
getFittingFlag_gamma(val) {
|
getFittingFlag_gamma(val) {
|
||||||
console.log("zhiqian>>>"+this.gammaEnergyValid);
|
console.log('zhiqian>>>' + this.gammaEnergyValid)
|
||||||
this.gammaEnergyValid = val
|
this.gammaEnergyValid = val
|
||||||
console.log("zhihou>>>"+this.gammaEnergyValid);
|
console.log('zhihou>>>' + this.gammaEnergyValid)
|
||||||
},
|
},
|
||||||
handleReAnalyse() {
|
handleReAnalyse() {
|
||||||
// todo 1.fitting之后才能点击; 2.isReAnalyze需要缓存
|
// todo 1.fitting之后才能点击; 2.isReAnalyze需要缓存
|
||||||
if(!this.gammaEnergyValid){
|
if (!this.gammaEnergyValid) {
|
||||||
return false;
|
return false
|
||||||
}
|
}
|
||||||
const regExp = /^([A-Z]{1,}\d{1,})_/
|
const regExp = /^([A-Z]{1,}\d{1,})_/
|
||||||
const regMatched = this.newSampleData.inputFileName.match(regExp)
|
const regMatched = this.newSampleData.inputFileName.match(regExp)
|
||||||
|
@ -157,9 +157,9 @@ export default {
|
||||||
},
|
},
|
||||||
handleExit() {
|
handleExit() {
|
||||||
this.gammaEnergyValid = this.isReanlyze
|
this.gammaEnergyValid = this.isReanlyze
|
||||||
console.log("exit>>>this.isReanlyze>>>"+this.isReanlyze);
|
console.log('exit>>>this.isReanlyze>>>' + this.isReanlyze)
|
||||||
if(!this.isReanlyze && this.$ls.get("calibration-gamma:"+this.newSampleData.inputFileName)){
|
if (!this.isReanlyze && this.$ls.get('calibration-gamma:' + this.newSampleData.inputFileName)) {
|
||||||
this.$ls.remove("calibration-gamma:"+this.newSampleData.inputFileName) // 如果没有点击ReANalyze,删除fitting之后缓存的数据 20231101:xiao
|
this.$ls.remove('calibration-gamma:' + this.newSampleData.inputFileName) // 如果没有点击ReANalyze,删除fitting之后缓存的数据 20231101:xiao
|
||||||
}
|
}
|
||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
|
@ -182,6 +182,10 @@ export default {
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
::v-deep {
|
::v-deep {
|
||||||
|
.ant-modal {
|
||||||
|
top: 5px;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
.ant-form-item-label,
|
.ant-form-item-label,
|
||||||
.ant-form-item-control {
|
.ant-form-item-control {
|
||||||
line-height: 30px !important;
|
line-height: 30px !important;
|
||||||
|
|
|
@ -813,6 +813,12 @@ export default {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
::v-deep {
|
||||||
|
.ant-modal {
|
||||||
|
top: 5px;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.border {
|
.border {
|
||||||
border: 1px solid #0b8c82;
|
border: 1px solid #0b8c82;
|
||||||
}
|
}
|
||||||
|
|
|
@ -721,4 +721,10 @@ export default {
|
||||||
.mt-20 {
|
.mt-20 {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
::v-deep {
|
||||||
|
.ant-modal {
|
||||||
|
top: 5px;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -680,4 +680,10 @@ export default {
|
||||||
.mt-20 {
|
.mt-20 {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
::v-deep {
|
||||||
|
.ant-modal {
|
||||||
|
top: 5px;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -679,4 +679,10 @@ export default {
|
||||||
.mt-20 {
|
.mt-20 {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
::v-deep {
|
||||||
|
.ant-modal {
|
||||||
|
top: 5px;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user