Commit 21e2d83b by Chao Sun

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

parent 98f4679c
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<!-- 操作 --> <!-- 操作 -->
<view class="optionContent"> <view class="optionContent">
<button type="default" plain="true" form-type="reset" @click="clearData">全部清空</button> <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>
<!-- 保单年度选择弹窗 --> <!-- 保单年度选择弹窗 -->
<view class="policySelectContainer" v-if="policyYearModalFlag"> <view class="policySelectContainer" v-if="policyYearModalFlag">
......
...@@ -259,13 +259,17 @@ ...@@ -259,13 +259,17 @@
}, },
methods: { methods: {
switchTab(e){ switchTab(e){
this.calcuteType = e; if(this.calcuteType !=e){
//点年金时初始化1条提领信息 this.calcuteType = e;
if(e=='2'){ //点年金时初始化1条提领信息
this.yearWithdrawalInfos = [].concat([{withdrawalType:'1', if(e=='2'){
withdrawalStart:null, this.yearWithdrawalInfos = [].concat([{withdrawalType:'1',
yearWithdrawalAmount:null}]); withdrawalStart:null,
yearWithdrawalAmount:null}]);
}
this.resultShowFlag = false;
} }
}, },
// calcuteMethod判断单次还是批量;businessType判断保存还是计算 // calcuteMethod判断单次还是批量;businessType判断保存还是计算
calcute(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