记得上下班打卡 | git大法好,push需谨慎

Commit 19edf425 authored by dongchun's avatar dongchun

修改创建分类下拉显示问题

parent 50c3ea96
...@@ -110,51 +110,39 @@ ...@@ -110,51 +110,39 @@
// width: '80' // width: '80'
// }, // },
{ {
field: 'bindType', field: 'price',
title: '原价', title: '原价',
width: '100', width: '100',
align: 'center', align: 'center'
formatter: function(value, row, index) {
return '299999999'
}
}, },
{ {
field: 'bindType', field: 'bindType',
title: '其他活动占用库存', title: '其他活动占用库存',
width: '120', width: '120',
align: 'center', align: 'center'
formatter: function(value, row, index) {
return '2021'
}
}, },
{ {
field: 'bindType', field: 'bindType',
// title: `线下售价<a onclick="setPrice(1)">批量</a>`, // title: `线下售价<a onclick="setPrice(1)">批量</a>`,
title: `线下售价`, title: `线下售价`,
width: '150', width: '150',
align: 'center', align: 'center'
formatter: function(value, row, index) {
return `<input id="price${index}" class='form-control' type='text' name='' value=''>`
}
}, },
{ {
field: 'bindType', field: 'buyLimit',
// title: '库存限量<a onclick="setPrice(2)">批量</a>', // title: '库存限量<a onclick="setPrice(2)">批量</a>',
title: '库存限量', title: '库存限量',
width: '150', width: '150',
align: 'center', align: 'center'
formatter: function(value, row, index) {
return `<input id="goodsNum${index}" class='form-control' type='text' name='' value=''>`
}
}, },
{ {
field: 'bindType', field: 'buyRoster',
// title: '用户限购<a onclick="setPrice(3)">批量</a>', // title: '用户限购<a onclick="setPrice(3)">批量</a>',
title: '用户限购', title: '用户限购',
width: '150', width: '150',
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function (value, row) {
return `<input id="purchasing${index}" class='form-control' type='text' name='' value=''>`
} }
}, },
{ {
...@@ -180,10 +168,7 @@ ...@@ -180,10 +168,7 @@
let obj = { let obj = {
field: '', field: '',
title: '', title: '',
align: 'center', align: 'center'
formatter: function(value, row) {
return '七彩湛蓝色'
}
} }
columnsData.forEach((item,index) => { columnsData.forEach((item,index) => {
obj.field = 'specVname'+index+''; obj.field = 'specVname'+index+'';
...@@ -193,7 +178,7 @@ ...@@ -193,7 +178,7 @@
} }
datas = data.map(item => { datas = data.map(item => {
item.skuSpecList.forEach((d,i) => [ item.skuSpecList.forEach((d,i) => [
item['specVname'+i+''] = d.specName item['specVname'+i+''] = d.specVname
]) ])
return item return item
}) })
...@@ -216,6 +201,7 @@ ...@@ -216,6 +201,7 @@
data: datas, data: datas,
columns: column columns: column
}; };
console.log(options)
$.table.init(options); $.table.init(options);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment