1.插槽 scope
表格中使用插槽
<template scope="scope">
<span v-if="scope.row.inp_mc == 1">{{scope.row.date}}</span>
<el-input v-else v-model="scope.row.date" @keyup.enter.native="searchAllCompany(scope.row)" placeholder="请输入内容"></el-input>
</template>
2.