Commit 21e2d83b by Chao Sun

点击tab切换时,计算结果清空

parent 98f4679c
......@@ -43,7 +43,7 @@
<!-- 操作 -->
<view class="optionContent">
<button type="default" plain="true" form-type="reset" @click="clearData">全部清空</button>
<button type="default" plain="true" @click="calcute()">{{calcuteMethod=='2' ? '输入批量数据' : '开始计算'}}</button>
<button type="default" plain="true" @click="calcuteIrr()">{{calcuteMethod=='2' ? '输入批量数据' : '开始计算'}}</button>
</view>
<!-- 保单年度选择弹窗 -->
<view class="policySelectContainer" v-if="policyYearModalFlag">
......
......@@ -259,6 +259,7 @@
},
methods: {
switchTab(e){
if(this.calcuteType !=e){
this.calcuteType = e;
//点年金时初始化1条提领信息
if(e=='2'){
......@@ -266,6 +267,9 @@
withdrawalStart:null,
yearWithdrawalAmount:null}]);
}
this.resultShowFlag = false;
}
},
// calcuteMethod判断单次还是批量;businessType判断保存还是计算
calcute(businessType){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment