<field-box title="账户">
<el-table :data="accountData" border :cell-style="dateColumnStyle" :style="{ 'margin-left': '50px' }">
<el-table-column prop="accountName" width="160">
</el-table-column>
<el-table-column label="益" width="160">
<template slot-scope="scope">
<el-select v-model="scope.row.shouyi" placeholder="请选择" filterable :disabled="tableFlag">
<el-option
v-for="item in sourcesOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="失" width="160">
<template slot-scope="scope" >
<el-select v-model="scope.row.sunshi" placeholder="请选择" filterable :disabled="tableFlag">
<el-option
v-for="item in sourcesOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="结算" width="160">
<template slot-scope="scope" v-if="scope.row.accountName !='准备金'&& scope.row.accountName !='净值' ">
<el-select v-model="scope.row.jiesuan" placeholder="请选择" filterable :disabled="tableFlag" >
<el-option
v-for="item in sourcesOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</template>
</el-table-column>
</el-table>
非常重要的是实现不可以编辑效果,这代码很重要