Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
develop-platform
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 3a3a7ff7
authored
Nov 13, 2020
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
页面
1 parent
37595dd1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
17 deletions
src/assets/all.png
src/assets/icon-only.png
src/components/d2-form/index.vue
src/components/d2-table/index.vue
src/layout/header-aside/layout.vue
src/views/goods/commodity.vue
src/views/goods/product.vue
src/views/system/login/index.vue
src/assets/all.png
0 → 100644
View file @
3a3a7ff
9.06 KB
src/assets/icon-only.png
0 → 100644
View file @
3a3a7ff
2.27 KB
src/components/d2-form/index.vue
View file @
3a3a7ff
...
@@ -319,14 +319,7 @@ export default {
...
@@ -319,14 +319,7 @@ export default {
originData
:
{
originData
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
default
:
()
=>
{
return
{
return
{}
goodsCode
:
''
,
retailPrice
:
''
,
maxRetailDiscount
:
''
,
shopPrice
:
''
,
upgradeGoods
:
[],
linkMerchantIds
:
[]
}
}
}
},
},
formList
:
{
formList
:
{
...
...
src/components/d2-table/index.vue
View file @
3a3a7ff
...
@@ -265,7 +265,23 @@ export default {
...
@@ -265,7 +265,23 @@ export default {
currentPage
:
res
.
pageNum
,
currentPage
:
res
.
pageNum
,
pageSize
:
res
.
pageSize
pageSize
:
res
.
pageSize
}
}
// this.tableParams.needUnique && (res[this.tableParams.listName].forEach((item) => {
// item[this.tableParams.mutiSelectUniqueKey]
// }))
this
.
data
=
res
[
this
.
tableParams
.
listName
]
this
.
data
=
res
[
this
.
tableParams
.
listName
]
if
(
this
.
tableParams
.
needUnique
)
{
let
temp
=
1
this
.
data
.
forEach
((
item
)
=>
{
item
[
this
.
tableParams
.
mutiSelectUniqueKey
]
=
temp
temp
=
temp
+
1
if
(
item
.
hasOwnProperty
(
'upgradeGoodsList'
))
{
item
.
upgradeGoodsList
.
forEach
(
subItem
=>
{
subItem
[
this
.
tableParams
.
mutiSelectUniqueKey
]
=
temp
temp
=
temp
+
1
})
}
})
}
this
.
total
=
res
.
total
this
.
total
=
res
.
total
this
.
loading
=
false
this
.
loading
=
false
}).
catch
(()
=>
{
}).
catch
(()
=>
{
...
...
src/layout/header-aside/layout.vue
View file @
3a3a7ff
...
@@ -16,8 +16,8 @@
...
@@ -16,8 +16,8 @@
flex-box="0"
flex-box="0"
flex>
flex>
<div
class=
"logo-group d2-theme-header-logo"
:class=
"asideCollapse ? 'logo-only' : 'logo-all'"
flex-box=
"0"
>
<div
class=
"logo-group d2-theme-header-logo"
:class=
"asideCollapse ? 'logo-only' : 'logo-all'"
flex-box=
"0"
>
<img
v-if=
"asideCollapse"
:src=
"`$
{$baseUrl}image/theme/logo/icon-only.png`
">
<img
v-if=
"asideCollapse"
src=
"../../assets/icon-only.png
"
>
<img
v-else
:src=
"`$
{$baseUrl}image/theme/logo/all.png`
">
<img
v-else
src=
"../../assets/all.png
"
>
</div>
</div>
<hamburger
:onClick=
"handleToggleAside"
:isActive=
"asideCollapse"
flex-box=
"0"
class=
"toggle-aside-btn"
></hamburger>
<hamburger
:onClick=
"handleToggleAside"
:isActive=
"asideCollapse"
flex-box=
"0"
class=
"toggle-aside-btn"
></hamburger>
<d2-menu-header
flex-box=
"1"
/>
<d2-menu-header
flex-box=
"1"
/>
...
@@ -176,15 +176,17 @@ export default {
...
@@ -176,15 +176,17 @@ export default {
.logo-all
{
.logo-all
{
width
:
200px
;
width
:
200px
;
img{
img{
height
:
75px
!important
;
width
:
100%
;
//
height
:
75px
!important
;
transform
:
translate3d
(
-8px
,
-6px
,
0
)
!important
;
transform
:
translate3d
(
-8px
,
-6px
,
0
)
!important
;
}
}
}
}
.logo-only
{
.logo-only
{
width
:
65px
;
width
:
65px
;
img{
img{
height
:
35px
!important
;
width
:
100%
;
transform
:
translate3d
(
0px
,
12px
,
0
)
!important
;
//
height
:
35px
!important
;
transform
:
translate3d
(
0
,
2px
,
0
)
!important
;
}
}
}
}
</
style
>
</
style
>
src/views/goods/commodity.vue
View file @
3a3a7ff
...
@@ -127,7 +127,8 @@ export default {
...
@@ -127,7 +127,8 @@ export default {
getListApi
:
getList
,
getListApi
:
getList
,
// 表格参数
// 表格参数
tableParams
:
{
tableParams
:
{
mutiSelectUniqueKey
:
'goodsCode'
,
needUnique
:
true
,
mutiSelectUniqueKey
:
'uniqueVal'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
...
...
src/views/goods/product.vue
View file @
3a3a7ff
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
slot=
"img"
slot=
"img"
slot-scope=
"scope"
slot-scope=
"scope"
class=
"pro-img"
class=
"pro-img"
:src=
"scope.scope.
img
"
:src=
"scope.scope.
thumbUrl
"
/>
/>
<auth-button
<auth-button
slot=
"auth-button"
slot=
"auth-button"
...
...
src/views/system/login/index.vue
View file @
3a3a7ff
...
@@ -124,8 +124,8 @@ export default {
...
@@ -124,8 +124,8 @@ export default {
time
:
dayjs
().
format
(
'HH:mm:ss'
),
time
:
dayjs
().
format
(
'HH:mm:ss'
),
// 表单
// 表单
formLogin
:
{
formLogin
:
{
//
userName: 'dongdao',
userName
:
'dongdao'
,
userName
:
'houlai'
,
//
userName: 'houlai',
password
:
'123456'
password
:
'123456'
},
},
// 表单校验
// 表单校验
...
...
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