{excelBtn:true,height:'auto',calcHeight: 350,tip: false,border: true,index: true,viewBtn: true,selection: true,menuWidth:450,column:[{label: "主键",prop: "id",hide: true,editDisplay: false,viewDisplay: false,display: false,rules: [{required: false,message: "请输入主键",trigger: "blur"}]},{label:'科室名称',prop:'name', width:100,rules: [{required: true,message: "请输入",trigger: "blur"}]},{label:'科室编码',prop:'code', width:100,rules: [{required: true,message: "请输入",trigger: "blur"}]},{label:'数量(氧气)',prop:'numbery', width:100,rules: [{required: true,message: "请输入",trigger: "blur"}]},{label:'金额(氧气)',prop:'moneyy', width:100,rules: [{required: true,message: "请输入",trigger: "blur"}]},{label:'日期',prop:'rq', width:100,rules: [{required: true,message: "请输入",trigger: "blur"}]}]}
11:07:28
懒羊羊 2020/7/24 11:07:28
这个数据 是从数据库拿出来的 写死在option 没问题 但是动态赋值就不行了
懒羊羊 2020/7/24 11:07:41
懒羊羊 2020/7/24 11:08:10
11:08:37
懒羊羊 2020/7/24 11:08:37
就是用的 服务端动态加载配置那个方案
懒羊羊 2020/7/24 11:09:11
报错 TypeError: Cannot create property 'translate' on string '{excelBtn:true,height:'auto',calcHeight: 350,tip: false,border: true,index: true,viewBtn: true,selection: true,menuWidth:450,column:[{label: "主键",prop: "id",hide: true,editDisplay: false,viewDisplay: false,display: false,rules: [{required: false,message: "请输入主键",trigger: "blur"}]},{label:'科室编码',prop:'ksbm', width:100,rules: [{required: true,message: "请输入",trigger: "blur"}]},{label:'科室名称',prop:'ksmc', width:100,rules: [{required: true,message: "请输入",trigger: "blur"}]},{label:'科室床日',prop:'bed', width:100,rules: [{required: true,message: "请输入",trigger: "blur"}]},{label:'日期',prop:'rq', width:100,rules: [{required: true,message: "请输入",trigger: "blur"}]}]}'
at http://localhost:1888/cdn/avue/2.6.1/avue.min.js:7:56613
at a.option (http://localhost:1888/cdn/avue/2.6.1/avue.min.js:7:57267)
at fn.get (http://localhost:1888/cdn/vue/2.6.10/vue.min.js:6:26768)
at fn.evaluate (http://localhost:1888/cdn/vue/2.6.10/vue.min.js:6:27918)
at a.option (http://localhost:1888/cdn/vue/2.6.10/vue.min.js:6:29822)
at a.dataformat (http://localhost:1888/cdn/avue/2.6.1/avue.min.js:7:57859)
at a.handler (http://localhost:1888/cdn/avue/2.6.1/avue.min.js:7:55473)
at a.e.$watch (http://localhost:1888/cdn/vue/2.6.10/vue.min.js:6:33422)
at _n (http://localhost:1888/cdn/vue/2.6.10/vue.min.js:6:30006)
at http://localhost:1888/cdn/vue/2.6.10/vue.min.js:6:29491
懒羊羊 2020/7/24 11:09:41
/*!
* Avue.js v2.6.1
* (c) 2017-2020 Smallwei
* Released under the MIT License.
*
*/
扫一扫访问 Blade技术社区 移动端