Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e0284cc7
authored
Jul 21, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
联调完成
1 parent
f4823b94
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
src/config/index.js
src/views/goods/index.vue
src/config/index.js
View file @
e0284cc
...
@@ -11,9 +11,9 @@
...
@@ -11,9 +11,9 @@
import
{
Http
}
from
'glsx-common'
import
{
Http
}
from
'glsx-common'
let
cfg
=
require
(
'./conf.js'
)
let
cfg
=
require
(
'./conf.js'
)
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
if
(
isEnv
)
{
//
if (isEnv) {
return
Promise
.
resolve
(
cfg
)
//
return Promise.resolve(cfg)
}
//
}
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/616e90b11072f92988f05a09/equity/config'
)
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/616e90b11072f92988f05a09/equity/config'
)
//return window.fetch('https://', {}).then(res => res.json())
//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' })
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
...
...
src/views/goods/index.vue
View file @
e0284cc
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
fn=
"编辑商品"
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</GLButton>
<GLButton
fn=
"编辑商品"
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</GLButton>
<GLButton
fn=
"复制商品"
type=
"text"
@
click=
"copy(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>
</span>
</GLTable>
</GLTable>
</div>
</div>
...
@@ -131,13 +131,15 @@ export default {
...
@@ -131,13 +131,15 @@ export default {
},
},
{
{
label
:
'会员价(元)'
,
label
:
'会员价(元)'
,
width
:
150
,
prop
:
'salesPrice'
prop
:
'salesPrice'
},
},
{
{
prop
:
'sales'
,
prop
:
'sales'
,
sortable
:
true
,
sortable
:
true
,
label
:
'销量'
label
:
'销量'
,
width
:
110
,
// renderHeader: h => {
// renderHeader: h => {
// return h('div', { class: 'table-header' }, [
// return h('div', { class: 'table-header' }, [
// h('span', '销量'),
// h('span', '销量'),
...
@@ -149,7 +151,7 @@ export default {
...
@@ -149,7 +151,7 @@ export default {
},
},
{
{
label
:
'库存'
,
label
:
'库存'
,
width
:
150
,
sortable
:
true
,
sortable
:
true
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
stock
==
-
1
?
'无限制'
:
cell
.
stock
return
cell
.
stock
==
-
1
?
'无限制'
:
cell
.
stock
...
@@ -157,7 +159,7 @@ export default {
...
@@ -157,7 +159,7 @@ export default {
},
},
{
{
label
:
'商品状态'
,
label
:
'商品状态'
,
width
:
110
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
[
'待上架'
,
'上架'
,
'下架'
][
cell
.
status
]
return
[
'待上架'
,
'上架'
,
'下架'
][
cell
.
status
]
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment