<template>
<div style="margin:0px 0px 0px 22px">
<div class = "kemubiao">
<el-button type="primary" size="small" @click="chages">科目表</el-button>
</div>
<el-table
@cell-click="tableDbEdit"
:data="tableData"
:span-method="objectSpanMethod"
border=""
stripe
:header-cell-style="{
'background-color': '#003F98',
'color':'#FFF',
'opacity': 0.7
}"
style="width: 100%; margin-top: 20px"
>
<el-table-column prop="ids" label="摘要">
<template slot-scope="scope">
<!-- 条件判断如果满足则显示表单,否则默认展示文字 -->
<el-input v-model="scope.row.ids" v-if="showInput == `ids${scope.row.id}`"
@blur='blurInput(scope.row.id,"ids",scope.row.ids)' v-focus :rows="18" type="textarea">
</el-input>
<p v-else>{
{scope.row.ids}}</p>
</template>
</el-table-column>
<el-table-column prop="amount1" label="会计科目">
<template slot-scope="scope">
<!-- 条件判断如果满足则显示表单,否则默认展示文字 -->
<el-input v-model="scope.row.amount1" v-if="showInput == `amount1${scope.row.id}`"
@blur='blurInput(scope.row.id,"amount1",scop
table表格点击输入框功能,加表头合并
于 2022-04-13 17:55:17 首次发布