diff --git a/src/assets/api.js b/src/assets/api.js index c078ba7d..04c5a73a 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -376,7 +376,7 @@ export const getCodeProduct = (batch_id,id) => { // //蓝色兄弟映射商品 export const getProductInfoSelect = (params) => { - return req('get', baseurl + "/system/market/products?reseller_id=22988",params) + return req('get', baseurl + "/product/market/products",params) } // 上传 diff --git a/src/pages/exchangecode/list/list.js b/src/pages/exchangecode/list/list.js index 200f8171..7ef1d866 100644 --- a/src/pages/exchangecode/list/list.js +++ b/src/pages/exchangecode/list/list.js @@ -21,12 +21,12 @@ const Column = [ name: 'id', prop:'id', type: "normal", - width:'90px' + width:'auto' }, { title: '兑换码名称', prop:'title', name: 'title', - width:'200px', + width:'auto', type: "solt", }, { title: '有效期', @@ -40,19 +40,19 @@ const Column = [ name: 'plan_title', type: "normal", prop:'plan_title', - width:'90px' + width:'auto' }, { title: '归属KEY批次ID', name: 'key_batch_id', type: "normal", prop:'key_batch_id', - width:'90px', + width:'auto', }, { title: '启用/暂停', - width:'60px', - type: "auto", + width:'auto', + type: "slot", prop:'switch' }, { @@ -60,7 +60,7 @@ const Column = [ prop: 'opearo', name: 'opearo', type: "slot", - width:'120px', + width:'auto', }, { @@ -68,43 +68,43 @@ const Column = [ name: 'quantity', type: "normal", prop:'quantity', - width:'120px', + width:'auto', }, { title: '已领取', name: 'received', type: "normal", prop:'received', - width:'40px', + width:'auto', }, { title: '已使用', name: 'usage', type: "normal", prop:'usage', - width:'40px', + width:'auto', }, { title: '剩余数', name: 'stock', type: "normal", prop:'stock', - width:'40px', + width:'auto', },{ title: '已失效', name: 'expired', type: "normal", prop:'expired', - width:'40px', + width:'auto', },{ title: '已作废', name: 'invalid', type: "normal", prop:'invalid', - width:'40px', + width:'auto', },{ title: '状态', name: 'status', type: "slot", prop:'status', - width:'60px', + width:'auto', }, ];