VueJs + Element

话不多说,直接贴错:

_self.$scopedSlots.default is not a function

<el-table stripe border ref="tableData" max-height="500" v-loading="loading" v-bind:data="tableData" @row-dblclick="doubbleClick" row-key="new_srv_partsapplylineId" key="lines">
<el-table-column type="selection" width="50" :selectable="isSelectedTable">
</el-table-column>
<el-table-column key="exchange" prop="exchange" :label="$t('attach.list_operate')">
  <template slot-scope="scope">
    <el-button type="text" @click="gotoChangePartPage(scope.row)">{{$t('partsApply.line_btn_changeparts')}}</el-button>
  </template>
</el-table-column>
<el-table-column key="new_partsid" prop="new_partsid.name" :label="$t('partsApply.line_filed_new_partsid')">
<template slot-scope="scope">
  <el-button type="text" @click="gotoEditLinePage(scope.row)">{{scope.row.new_partsid.name}}</el-button>
  </template>
</el-table-column>
<el-table-column key="new_applyqty" prop="new_applyqty" :label="$t('partsApply.line_filed_new_applyqty')">
</el-table-column>
<el-table-column key="new_approvedqty" prop="new_approvedqty" :label="$t('partsApply.line_filed_new_approvedqty')" v-if="this.type == 2 || this.type == 3" width="100">
  <template slot-scope="scope">
    <el-input type="number" :id="scope.row.new_srv_partsapplylineId+'approve'" v-model="scope.row.new_approvedqty" :disabled="!isBtnAcceptEnable" min="0" @blur="qtyBlur(scope.row)"></el-input>
  </template>
</el-table-column>
<el-table-column key="new_confirmqty" prop="new_confirmqty" :label="this.type === 2 ? $t('partsApply.line_filed_new_assignqty') : $t('partsApply.line_filed_new_confirmqty')" width="100">
<template slot-scope="scope">
  <el-input type="number" :id="scope.row.new_srv_partsapplylineId+'confirm'" v-model="scope.row.new_confirmqty" :disabled="!isBtnAcceptEnable" min="0" @blur="qtyBlur(scope.row)"></el-input>
</template>
</el-table-column>
<el-table-column key="new_amount" prop="new_amount" :label="$t('partsApply.line_filed_new_amount')" v-if="this.type == 2 || this.type == 3">
</el-table-column>
<el-table-column key="new_iscontrolname" prop="new_iscontrolname" :label="$t('partsApply.line_filed_new_iscontrolname')" v-if="this.type == 1 || this.type == 3">
</el-table-column>
<el-table-column key="new_agentqty" prop="new_agentqty" :label="$t('partsApply.line_filed_new_agentqty')" v-if="this.type==2 || (this.type==3&&this.applyto==1">
</el-table-column>
<el-table-column key="new_servicecompanyqty" prop="new_servicecompanyqty" :label="$t('partsPurchaseOrSale.line_filed_new_servicecompanyqty')" v-if="this.type==3&&this.applyto==2">
</el-table-column>
</el-table>

解决方法:

第一次,给<el-table>加上属性 key 失败

第二次,给<el-inpurt>加上属性 name 失败,加上 key 失败

第三次,给<el-table-column>加上属性 key 成功

最新文章

  1. 期待已久的2013年度最佳 jQuery 插件揭晓
  2. linux svn 提交文件时强制填写备注
  3. python smtplib发送邮件遇到的认证问题
  4. 【iOS】网络编程:上传图片到服务器
  5. BZOJ1030——文本生成器
  6. python---生成随机密码
  7. 树莓派保卫战--防止SSH暴力破解
  8. [LeetCode] 桶排序的特殊解,例 Sort Color
  9. Teambition可用性测试记
  10. IT行业工作6年回顾
  11. Nmap 網路診斷工具基本使用技巧與教學
  12. [Js]封装好的通过className来获取元素的函数
  13. Oracle的海量存储技术
  14. 阿里CEO张勇:阿里蚂蚁20亿元扶持开发者
  15. 详细分析apache httpd反向代理的用法
  16. 【Qt编程】QWT在QtCreator中的安装与使用
  17. PHP指定日期转时间戳
  18. 关于Vue单页面实现微信分享的Bug
  19. ML.NET 示例:聚类之客户细分
  20. Qemu-KVM管理

热门文章

  1. git常用命令和linux下安装git教程
  2. JS高级学习历程-10
  3. DRF教程8-过滤
  4. Codeforces Round #433 (Div. 2, based on Olympiad of Metropolises) C
  5. 引擎基本服务接口API介绍
  6. shell 发送Post请求,并获取状态码
  7. Android sdk manager 显示 “Done loading packages”,该怎么办?
  8. 通过代码理解Asp.net4中的几种ClientIDMode设置.
  9. java中接口(interface)和虚基类(abstract class)的区别
  10. webAPP制作框架Ionic--构建APP侧边栏 底部选项卡 轮播图 加载动画