Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
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 b43a4897
authored
Aug 07, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ui走查
1 parent
3098600d
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
34 additions
and
15 deletions
src/components/glsx-combi-form/index.vue
src/views/category/components/pullDownNav.vue
src/views/channel/index.vue
src/views/goods/add.vue
src/views/goods/addPrefer.vue
src/views/goods/index.vue
src/views/goods/preferList.vue
src/views/store/edit.vue
src/views/store/index.vue
src/components/glsx-combi-form/index.vue
View file @
b43a489
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<span
class=
"combi-form-label"
:style=
"
{ width: item.labelWidth || labelWidth }">
{{
item
.
label
}}
:
</span>
<span
class=
"combi-form-label"
:style=
"
{ width: item.labelWidth || labelWidth }">
{{
item
.
label
}}
:
</span>
</span>
</span>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"item"
></slot>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"item"
></slot>
<span
v-else-if=
"item.type === 'showTxt'"
>
{{
formObj
[
item
.
name
]
}}
</span>
<span
v-else-if=
"item.type === 'showTxt'"
>
{{
!
formObj
[
item
.
name
]
&&
formObj
[
item
.
name
]
!==
0
?
'--'
:
formObj
[
item
.
name
]
}}
</span>
<div
v-else-if=
"item.type === 'input'"
>
<div
v-else-if=
"item.type === 'input'"
>
<el-input
:placeholder=
"item.placeholder || '请输入' + item.label"
v-bind=
"item.attrs ? item.attrs :
{}" v-on="item.listeners ? item.listeners : {}" :prefix-icon="item.prefixIcon" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)">
<el-input
:placeholder=
"item.placeholder || '请输入' + item.label"
v-bind=
"item.attrs ? item.attrs :
{}" v-on="item.listeners ? item.listeners : {}" :prefix-icon="item.prefixIcon" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)">
<span
v-if=
"item.prepend"
slot=
"prepend"
>
{{
item
.
prepend
}}
</span>
<span
v-if=
"item.prepend"
slot=
"prepend"
>
{{
item
.
prepend
}}
</span>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<div
v-else-if=
"item.type === 'radio'"
>
<div
v-else-if=
"item.type === 'radio'"
>
<el-radio-group
v-model=
"formObj[item.name]"
v-bind=
"item.attrs ? item.attrs :
{}" v-on="item.listeners ? item.listeners : {}" :disabled="item.isDisabled" @change="item.handleRadioChange">
<el-radio-group
v-model=
"formObj[item.name]"
v-bind=
"item.attrs ? item.attrs :
{}" v-on="item.listeners ? item.listeners : {}" :disabled="item.isDisabled" @change="item.handleRadioChange">
<el-radio
v-for=
"subItem in item.optionList"
:key=
"subItem[item.optionId]"
:disabled=
"subItem.isDisabled"
:label=
"subItem[item.optionId]"
>
<el-radio
v-for=
"subItem in item.optionList"
:key=
"subItem[item.optionId]"
:disabled=
"subItem.isDisabled"
:label=
"subItem[item.optionId]"
>
{{
subItem
[
item
.
optionLabel
]
}}
{{
subItem
[
item
.
optionLabel
]
}}
<slot
:name=
"subItem.suffixSonSlot"
:scope=
"subItem"
></slot>
<slot
:name=
"subItem.suffixSonSlot"
:scope=
"subItem"
></slot>
</el-radio>
</el-radio>
</el-radio-group>
</el-radio-group>
...
...
src/views/category/components/pullDownNav.vue
View file @
b43a489
...
@@ -193,6 +193,7 @@ export default{
...
@@ -193,6 +193,7 @@ export default{
margin-right
:
1px
;
margin-right
:
1px
;
color
:
#666666
;
color
:
#666666
;
letter-spacing
:
0
;
letter-spacing
:
0
;
font-size
:
14px
;
text-align
:
center
;
text-align
:
center
;
cursor
:
pointer
;
cursor
:
pointer
;
.del-icon{
.del-icon{
...
...
src/views/channel/index.vue
View file @
b43a489
...
@@ -69,6 +69,7 @@ export default {
...
@@ -69,6 +69,7 @@ export default {
{
{
label
:
'频道名称'
,
label
:
'频道名称'
,
prop
:
'channelName'
,
prop
:
'channelName'
,
width
:
150
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
channelName
||
'--'
return
cellValue
.
channelName
||
'--'
}
}
...
...
src/views/goods/add.vue
View file @
b43a489
<
template
>
<
template
>
<div
class=
"goods-ctnr"
>
<div
class=
"goods-ctnr"
>
<div
class=
"global-title"
>
{{
!
routeInfo
.
id
?
'新增'
:
disabled
?
'查看'
:
'编辑'
}}
商品
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<glsx-combi-form
:isInline=
"false"
class=
"glsx-combi-form"
ref=
"baseInfoRef"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj
.
sync=
"formObj"
:formData=
"formData"
:formRules=
"myRule"
>
<glsx-combi-form
:isInline=
"false"
class=
"glsx-combi-form"
ref=
"baseInfoRef"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj
.
sync=
"formObj"
:formData=
"formData"
:formRules=
"myRule"
>
<div
slot=
"selectGoodsSlot"
>
<div
slot=
"selectGoodsSlot"
>
...
@@ -506,6 +507,13 @@ export default {
...
@@ -506,6 +507,13 @@ export default {
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.container
{
.container
{
.glsx-combi-form{
/deep/
.el-radio-group{
.el-radio__label{
padding-left
:
8px
;
}
}
}
background-color
:
#fff
;
background-color
:
#fff
;
.disabled-class
{
.disabled-class
{
cursor
:
not-allowed
;
cursor
:
not-allowed
;
...
@@ -513,7 +521,7 @@ export default {
...
@@ -513,7 +521,7 @@ export default {
}
}
.goods-wrap
{
.goods-wrap
{
padding
:
20px
20px
1px
;
padding
:
20px
20px
1px
;
width
:
866
px
;
width
:
1000
px
;
background
:
#F9F9F9
;
background
:
#F9F9F9
;
border-radius
:
4px
;
border-radius
:
4px
;
.upload-calss{
.upload-calss{
...
...
src/views/goods/addPrefer.vue
View file @
b43a489
<
template
>
<
template
>
<div
class=
"goods-ctnr"
>
<div
class=
"goods-ctnr"
>
<div
class=
"global-title"
>
{{
!
routeInfo
.
id
?
'新增'
:
disabled
?
'查看'
:
'编辑'
}}
商品
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<glsx-combi-form
:isInline=
"false"
class=
"glsx-combi-form"
ref=
"baseInfoRef"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj
.
sync=
"formObj"
:formData=
"formData"
:formRules=
"myRule"
>
<glsx-combi-form
:isInline=
"false"
class=
"glsx-combi-form"
ref=
"baseInfoRef"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj
.
sync=
"formObj"
:formData=
"formData"
:formRules=
"myRule"
>
<div
slot=
"selectBtnSlot"
>
<div
slot=
"selectBtnSlot"
>
...
@@ -82,6 +83,7 @@ export default {
...
@@ -82,6 +83,7 @@ export default {
merchantDialogVisible
:
false
,
merchantDialogVisible
:
false
,
disabled
:
false
,
disabled
:
false
,
goodsInfo
:
{},
goodsInfo
:
{},
routeInfo
:
{},
posterOptions
:
{
posterOptions
:
{
width
:
'104px'
,
width
:
'104px'
,
height
:
'104px'
,
height
:
'104px'
,
...
@@ -103,12 +105,12 @@ export default {
...
@@ -103,12 +105,12 @@ export default {
isDisabled
:
false
isDisabled
:
false
},
},
{
{
label
:
'售价
(元)
'
,
label
:
'售价
(元)
'
,
name
:
'retailPrice'
,
name
:
'retailPrice'
,
type
:
'showTxt'
type
:
'showTxt'
},
},
{
{
label
:
'最低售价
(元)
'
,
label
:
'最低售价
(元)
'
,
name
:
'minSellPrice'
,
name
:
'minSellPrice'
,
type
:
'showTxt'
type
:
'showTxt'
},
},
...
@@ -413,13 +415,20 @@ export default {
...
@@ -413,13 +415,20 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.container
{
.container
{
background-color
:
#fff
;
background-color
:
#fff
;
.glsx-combi-form{
/deep/
.el-radio-group{
.el-radio__label{
padding-left
:
2px
;
}
}
}
.disabled-class
{
.disabled-class
{
cursor
:
not-allowed
;
cursor
:
not-allowed
;
color
:
#666666
;
color
:
#666666
;
}
}
.goods-wrap
{
.goods-wrap
{
padding
:
20px
20px
1px
;
padding
:
20px
20px
1px
;
width
:
866
px
;
width
:
970
px
;
background
:
#F9F9F9
;
background
:
#F9F9F9
;
border-radius
:
4px
;
border-radius
:
4px
;
.upload-calss{
.upload-calss{
...
@@ -437,8 +446,7 @@ export default {
...
@@ -437,8 +446,7 @@ export default {
}
}
.selected-table
{
.selected-table
{
margin-top
:
10px
;
margin-top
:
10px
;
width
:
100%
;
width
:
970px
;
max-width
:
1100px
;
.el-button--text{
.el-button--text{
padding
:
0
;
padding
:
0
;
}
}
...
...
src/views/goods/index.vue
View file @
b43a489
...
@@ -28,12 +28,12 @@
...
@@ -28,12 +28,12 @@
<span>
{{
filterData
(
scope
.
scope
).
slice
(
0
,
1
).
join
(
'、'
)
}}
</span>
<span>
{{
filterData
(
scope
.
scope
).
slice
(
0
,
1
).
join
(
'、'
)
}}
</span>
<el-popover
<el-popover
placement=
"top"
placement=
"top"
width=
"
400
"
width=
"
fit-content
"
trigger=
"hover"
>
trigger=
"hover"
>
<div
v-for=
"(item,index) in filterData(scope.scope)"
:key=
"index"
>
<div
v-for=
"(item,index) in filterData(scope.scope)"
:key=
"index"
>
{{
item
}}
{{
item
}}
</div>
</div>
<span
class=
"more-info"
slot=
"reference"
>
...
[
{{
scope
.
scope
.
saleMerchantList
.
length
}}
]
</span>
<span
class=
"more-info"
slot=
"reference"
>
...
(
{{
scope
.
scope
.
saleMerchantList
.
length
}}
)
</span>
</el-popover>
</el-popover>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
...
src/views/goods/preferList.vue
View file @
b43a489
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<span>
{{
filterData
(
scope
.
scope
).
slice
(
0
,
1
).
join
(
'、'
)
}}
</span>
<span>
{{
filterData
(
scope
.
scope
).
slice
(
0
,
1
).
join
(
'、'
)
}}
</span>
<el-popover
<el-popover
placement=
"top"
placement=
"top"
width=
"
400
"
width=
"
fit-content
"
trigger=
"hover"
>
trigger=
"hover"
>
<div
v-for=
"(item,index) in filterData(scope.scope)"
:key=
"index"
>
<div
v-for=
"(item,index) in filterData(scope.scope)"
:key=
"index"
>
{{
item
}}
{{
item
}}
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<div
v-for=
"(item,index) in filterData(scope.scope,1)"
:key=
"index"
>
<div
v-for=
"(item,index) in filterData(scope.scope,1)"
:key=
"index"
>
{{
item
}}
{{
item
}}
</div>
</div>
<span
class=
"more-info"
slot=
"reference"
>
...
[
{{
scope
.
scope
.
saleMerchantList
.
length
}}
]
</span>
<span
class=
"more-info"
slot=
"reference"
>
...
(
{{
scope
.
scope
.
saleMerchantList
.
length
}}
)
</span>
</el-popover>
</el-popover>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
...
src/views/store/edit.vue
View file @
b43a489
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<div
class=
"info"
>
{{
tabPaneText
}}
列表
</div>
<div
class=
"info"
>
{{
tabPaneText
}}
列表
</div>
<div>
<div>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleEdit"
>
频道设置
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleEdit"
>
频道设置
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
编辑频道
</el-button>
<el-button
type=
"primary"
:plain=
"activeName==5 || activeName==6"
size=
"small"
@
click=
"handleAdd"
>
编辑频道
</el-button>
<el-button
v-if=
"activeName!=5 && activeName!=6"
type=
"primary"
plain
size=
"small"
@
click=
"handleAddContent()"
>
新增内容
</el-button>
<el-button
v-if=
"activeName!=5 && activeName!=6"
type=
"primary"
plain
size=
"small"
@
click=
"handleAddContent()"
>
新增内容
</el-button>
</div>
</div>
</div>
</div>
...
@@ -352,6 +352,7 @@ export default {
...
@@ -352,6 +352,7 @@ export default {
{
{
label
:
'操作人'
,
label
:
'操作人'
,
prop
:
'updatedBy'
,
prop
:
'updatedBy'
,
width
:
120
,
filter
:
'1,2,3,4,5,6'
filter
:
'1,2,3,4,5,6'
},
},
// {
// {
...
@@ -625,7 +626,7 @@ export default {
...
@@ -625,7 +626,7 @@ export default {
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
margin
:
0
0
1
8
px
0
;
margin
:
0
0
1
0
px
0
;
.info
{
.info
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
16px
;
font-size
:
16px
;
...
...
src/views/store/index.vue
View file @
b43a489
...
@@ -332,7 +332,7 @@ export default {
...
@@ -332,7 +332,7 @@ export default {
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
margin
:
0
0
1
8
px
0
;
margin
:
0
0
1
0
px
0
;
.info
{
.info
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
16px
;
font-size
:
16px
;
...
...
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