Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sensorConsult
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanglw
sensorConsult
Commits
60e80f1c
Commit
60e80f1c
authored
Jul 05, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人中心-产品管理
parent
9b052bdb
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1439 additions
and
141 deletions
+1439
-141
routers.js
src/router/routers.js
+8
-0
userMenus.vue
src/views/homepage/components/userMenus.vue
+1
-1
add.vue
src/views/homepage/console/add.vue
+513
-0
edit.vue
src/views/homepage/console/edit.vue
+553
-0
index.vue
src/views/homepage/console/index.vue
+1
-140
product.vue
src/views/homepage/console/product.vue
+303
-0
view.vue
src/views/homepage/console/view.vue
+60
-0
No files found.
src/router/routers.js
View file @
60e80f1c
...
...
@@ -164,6 +164,14 @@ export const constantRouterMap = [
},
hidden
:
true
},
{
path
:
'
/console/product
'
,
meta
:
{
title
:
'
个人中心-产品管理
'
,
noCache
:
true
},
component
:
(
resolve
)
=>
{
return
require
([
'
@/views/homepage/console/product
'
],
resolve
)
},
hidden
:
true
},
{
path
:
'
/backstage
'
,
component
:
Layout
,
...
...
src/views/homepage/components/userMenus.vue
View file @
60e80f1c
...
...
@@ -4,7 +4,7 @@
<img
src=
"@/assets/home_images/mark_sup.png"
>
<span>
供应
</span>
</div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='1'?'active':''"
@
click=
"menuClick('/
home
')"
>
产品管理
</span></div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='1'?'active':''"
@
click=
"menuClick('/
console/product
')"
>
产品管理
</span></div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='2'?'active':''"
@
click=
"menuClick('/home')"
>
被询价记录
</span></div>
<el-divider
/>
<div
class=
"vertical-menu-title"
>
...
...
src/views/homepage/console/add.vue
0 → 100644
View file @
60e80f1c
This diff is collapsed.
Click to expand it.
src/views/homepage/console/edit.vue
0 → 100644
View file @
60e80f1c
This diff is collapsed.
Click to expand it.
src/views/homepage/console/index.vue
View file @
60e80f1c
...
...
@@ -34,10 +34,10 @@
</el-row>
</div>
</div>
<updatePass
ref=
"pass"
/>
<home-footer
ref=
"homeFooter"
/>
<inquiry-view
ref=
"inquiryView"
/>
<el-backtop
/>
<updatePass
ref=
"pass"
/>
<myUpload
v-model=
"uploadVisible"
:headers=
"headers"
...
...
@@ -63,7 +63,6 @@ import { getToken } from '@/utils/auth'
export
default
{
components
:
{
titleMenus
,
userLogin
,
languageSetting
,
homeFooter
,
inquiryView
,
userMenus
,
myUpload
,
updatePass
},
dicts
:
[],
data
()
{
return
{
Avatar
:
Avatar
,
...
...
@@ -98,32 +97,11 @@ export default {
})
},
methods
:
{
onDictReady
(
dict
)
{},
// 点击询价
inquiry
(
item
,
type
)
{
console
.
log
(
item
,
type
)
this
.
$refs
.
inquiryView
.
initView
(
item
.
id
,
type
)
},
uploadAvatar
()
{
this
.
uploadVisible
=
!
this
.
uploadVisible
},
cropUploadSuccess
()
{
location
.
reload
()
},
// 跳转到详情
goToDetails
(
item
,
type
)
{
console
.
log
(
item
,
type
)
},
pageChange
(
e
)
{
this
.
page
=
e
this
.
loadData
()
},
loadData
()
{
},
goTop
()
{
document
.
body
.
scrollTop
=
0
document
.
documentElement
.
scrollTop
=
0
}
}
}
...
...
@@ -139,54 +117,12 @@ export default {
display
:
inline-block
;
}
.ellipsis
{
// 多行溢出省略号
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
overflow
:
hidden
;
-webkit-line-clamp
:
2
;
text-overflow
:
ellipsis
;
}
.pagination
{
margin-top
:
23px
;
text-align
:
center
;
padding
:
10px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
>>>
.el-pagination.is-background
.el-pager
li
{
font-style
:
normal
;
font-weight
:
400
;
font-size
:
14px
;
text-align
:
center
;
background-color
:
#fff
;
color
:
#000000
;
border
:
1px
solid
#e5e5ea
;
}
/* 激活后的样式 */
>>>
.el-pagination.is-background
.el-pager
li
:not
(
.disabled
)
.active
{
background-color
:
#ffffff
;
color
:
#0366ed
;
border
:
1px
solid
#0366ed
;
text-align
:
center
;
}
/* 修改左右箭头样式 */
>>>
.el-pagination
.btn-next
.el-icon
,
>>>
.el-pagination
.btn-prev
.el-icon
{
font-style
:
normal
;
font-weight
:
400
;
font-size
:
14px
;
text-align
:
center
;
background-color
:
#fff
;
color
:
#e5e5ea
;
border
:
1px
solid
#e5e5ea
;
}
>>>
.el-pager
{
height
:
35
.5px
!
important
;
}
>>>
.number
,
>>>
.el-icon
{
height
:
35
.5px
!
important
;
line-height
:
35
.5px
!
important
;
}
}
.head-box
{
width
:
100vw
;
top
:
0
;
...
...
@@ -216,81 +152,6 @@ export default {
font-weight
:
bold
;
color
:
#333333
;
}
.box-card
{
display
:
inline-block
;
position
:
relative
;
margin
:
12px
;
padding
:
10px
0
;
width
:
350px
;
background
:
#FFFFFF
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.12
);
box-shadow
:
1px
2px
8px
0
rgba
(
0
,
0
,
0
,
0
.12
);
border-radius
:
10px
;
.line-text
{
width
:
100%
;
text-align
:
center
;
padding
:
5px
;
font-size
:
18px
;
font-weight
:
bolder
;
opacity
:
0
.85
;
}
.line-text
:hover
{
opacity
:
1
;
}
.float-title
{
width
:
344px
;
position
:
absolute
;
padding
:
5px
;
top
:
200px
;
left
:
2px
;
text-align
:
center
;
font-weight
:
600
;
color
:
#fff
;
background
:
rgba
(
0
,
0
,
0
,
0
.6
);
opacity
:
0
.9
;
}
.float-title
:hover
{
opacity
:
1
;
}
.title
{
width
:
305px
;
padding
:
2px
20px
;
font-size
:
18px
;
color
:
#333333
;
overflow
:hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
-o-text-overflow
:ellipsis
;
}
.title
:hover
{
font-weight
:
600
;
}
.subTitle
{
width
:
260px
;
padding
:
2px
20px
;
font-size
:
15px
;
color
:
#1961C5
;
overflow
:hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
-o-text-overflow
:ellipsis
;
}
.area
{
padding
:
2px
0
;
font-size
:
17px
;
color
:
#666666
;
}
.date
{
padding
:
2px
10px
;
font-size
:
17px
;
color
:
#999999
;
}
.stamp
{
border-style
:
none
;
position
:
absolute
;
z-index
:
99
;
}
}
}
.line-btn
{
display
:
flex
;
...
...
src/views/homepage/console/product.vue
0 → 100644
View file @
60e80f1c
This diff is collapsed.
Click to expand it.
src/views/homepage/console/view.vue
0 → 100644
View file @
60e80f1c
<
template
>
<!-- 表单渲染 -->
<el-dialog
append-to-body
:close-on-click-modal=
"false"
:show-close=
"false"
:visible=
"visible"
width=
"520px"
top=
"26vh"
>
<div
class=
"review-box"
>
<div
class=
"review-title"
>
审核意见:
</div>
<div
class=
"review-text"
>
{{
formData
.
reviewComments
}}
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center"
>
<el-button
@
click=
"cancelView"
>
关闭
</el-button>
</div>
</el-dialog>
</
template
>
<
script
>
import
{
HttpReq
}
from
'
@/api/common
'
export
default
{
data
()
{
return
{
visible
:
false
,
formData
:
{
reviewComments
:
'
请咨询后台管理员了解详情...
'
}
}
},
mounted
()
{
},
methods
:
{
showView
()
{
this
.
visible
=
true
},
hideView
()
{
this
.
visible
=
false
},
cancelView
()
{
this
.
hideView
()
},
loadData
(
id
)
{
this
.
showView
()
}
}
}
</
script
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
.review-box
{
padding
:
0
50px
;
width
:
100%
;
font-family
:
Source
Han
Sans
CN
;
.review-title
{
font-size
:
18px
;
font-weight
:
bold
;
color
:
#333
;
}
.review-text
{
padding-top
:
15px
;
color
:
#777
;
}
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment