|
@@ -106,6 +106,7 @@ export default {
|
|
{ title: '成本价', dataIndex: 'cost', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '成本价', dataIndex: 'cost', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '错误原因', dataIndex: 'errorMsg', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
{ title: '错误原因', dataIndex: 'errorMsg', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
],
|
|
],
|
|
|
|
+ listData: [],
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.spinning = true
|
|
this.spinning = true
|
|
@@ -119,6 +120,11 @@ export default {
|
|
}
|
|
}
|
|
const ret = data.list.filter(item => item.isError == 1)
|
|
const ret = data.list.filter(item => item.isError == 1)
|
|
this.isAllError = ret.length == data.count
|
|
this.isAllError = ret.length == data.count
|
|
|
|
+ this.listData = data.list
|
|
|
|
+ if (this.uploadData && data.list.length == 0) {
|
|
|
|
+ this.$message.info('没有可导入数据,请检查模板是否为空')
|
|
|
|
+ this.resetSearchForm()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.spinning = false
|
|
this.spinning = false
|
|
return data
|
|
return data
|