<el-table-column label="" min-width="120" prop="estAmount"> <template slot="header"> <span>预计保额(元)</span> <el-tooltip class="item" effect="dark" content="预估数,以实际签单为准。机动车辆保险为车辆价值,责任保险为累计赔偿限额,货物运输保险为货物价值,企业财产保险为标的价值,工程保险为工程造价,意外伤害保险为意外伤害赔偿限额,其他根据实际情况填写。"> <i class="el-icon-question interpretation" /> </el-tooltip> </template> <template slot-scope="scope"> <el-input v-if="scope.row.edit" v-model="scope.row.estAmount" v-only-number="{min:0,precision:2}" maxlength="15" /> <span v-else>{{ scope.row.estAmount }}</span> </template> </el-table-column>
效果: