Commit e0284cc7 by 杨北旺

联调完成

1 parent f4823b94
......@@ -11,9 +11,9 @@
import {Http } from 'glsx-common'
let cfg = require('./conf.js')
export const fetchConfig = function(isEnv = true) {
if (isEnv) {
return Promise.resolve(cfg)
}
// if (isEnv) {
// return Promise.resolve(cfg)
// }
return new Http().get('https://oss-config.test.glsx.com.cn/mock/616e90b11072f92988f05a09/equity/config')
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
......
......@@ -49,7 +49,7 @@
<span slot="auth-button" slot-scope="scope" :data="scope.scope">
<GLButton fn="编辑商品" type="text" @click="jump(scope.scope)">编辑</GLButton>
<GLButton fn="复制商品" type="text" @click="copy(scope.scope)">复制</GLButton>
<el-button type="text" @click="toCreateLine(scope.scope)">生成商品短链</el-button>
<el-button type="text" :disabled="!scope.scope.groupStatus||scope.scope.status!=1" @click="toCreateLine(scope.scope)">生成商品短链</el-button>
</span>
</GLTable>
</div>
......@@ -131,13 +131,15 @@ export default {
},
{
label: '会员价(元)',
width:150,
prop: 'salesPrice'
},
{
prop: 'sales',
sortable: true,
label: '销量'
label: '销量',
width:110,
// renderHeader: h => {
// return h('div', { class: 'table-header' }, [
// h('span', '销量'),
......@@ -149,7 +151,7 @@ export default {
},
{
label: '库存',
width:150,
sortable: true,
formatter: cell => {
return cell.stock == -1 ? '无限制' : cell.stock
......@@ -157,7 +159,7 @@ export default {
},
{
label: '商品状态',
width:110,
formatter: cell => {
return ['待上架', '上架', '下架'][cell.status]
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!