有数据,但是页面展示不出来
js:
let data = {"msg":"success","code":0,"querySqlResult":[{"columnList":[{"columnName":"rt_jzjy_entrust.cust_no","columnValue":"21038147 "},{"columnName":"rt_jzjy_entrust.entrust_date","columnValue":"20160725"},{"columnName":"rt_jzjy_entrust.entrust_time","columnValue":"09:15:30"}]}],"columnNameList":["rt_jzjy_entrust.cust_no","rt_jzjy_entrust.entrust_date","rt_jzjy_entrust.entrust_time"]}
this.sqldata = []
this.sqltablecolumn = data.columnNameList
data.querySqlResult.forEach(item=> {
let obj = {}
item.columnList.forEach(child=>{
obj[child.columnName] = child.columnValue
})
this.sqldata.push(obj)
})
html:
show-overflow-tooltip
v-for="(item,index) in sqltablecolumn"
:property="item"
:key="index"
:label="item">
请问这是什么原因造成的