|
@@ -122,17 +122,7 @@ export default {
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
exportLoading: false, // 导出loading
|
|
|
dateFormat: 'YYYY-MM-DD',
|
|
|
- columns: [
|
|
|
- // { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
|
|
|
- // { title: '产品编码', dataIndex: 'code', width: 140, align: 'center' },
|
|
|
- // { title: '产品名称', dataIndex: 'name', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- // { title: '原厂编码', dataIndex: 'origCode', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- // { title: '产品品牌', dataIndex: 'productBrandName', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- // { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: 240, align: 'center' },
|
|
|
- // { title: '终端价', dataIndex: 'terminalPrice', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- // { title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center' },
|
|
|
- // { title: '状态', scopedSlots: { customRender: 'onlineFalgDictValue' }, width: 140, align: 'center' }
|
|
|
- ],
|
|
|
+ columns: [],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
@@ -177,9 +167,9 @@ export default {
|
|
|
getColumns () {
|
|
|
this.columns = [
|
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
|
|
|
- { title: '产品编码', dataIndex: 'code', width: 220, align: 'center' },
|
|
|
+ { title: '产品编码', dataIndex: 'code', align: 'center' },
|
|
|
{ title: '产品名称', dataIndex: 'name', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- { title: '原厂编码', dataIndex: 'origCode', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '原厂编码', dataIndex: 'origCode', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品品牌', dataIndex: 'productBrandName', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品分类', scopedSlots: { customRender: 'productType' }, width: 200, align: 'center' }
|
|
|
]
|