Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
8d619da7
Commit
8d619da7
authored
Sep 27, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:钱币设置优化
parent
d09e5be7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
9 deletions
+43
-9
src/views/goods/infoSet.vue
src/views/goods/infoSet.vue
+43
-9
No files found.
src/views/goods/infoSet.vue
View file @
8d619da7
...
...
@@ -30,6 +30,18 @@
<el-form-item
label=
"详细介绍:"
prop=
"detail"
>
<el-input
v-model=
"goodsParams.detail"
:rows=
"2"
type=
"textarea"
placeholder=
"请输入钱币描述"
/>
</el-form-item>
<el-form-item
label=
"交易日期:"
prop=
"bidTime"
>
<el-date-picker
v-model=
"goodsParams.bidTime"
type=
"date"
style=
"width: 400px"
placeholder=
"选择日期"
format=
"yyyy 年 MM 月 dd 日"
value-format=
"yyyy-MM-dd"
/>
</el-form-item>
<el-form-item
label=
"原始链接:"
prop=
"originalSourceUrl"
>
<div>
{{ goodsParams.originalSourceUrl || '-' }}
</div>
</el-form-item>
</el-form>
<div
class=
"detail_image"
>
...
...
@@ -118,17 +130,26 @@
<div>
<el-form
ref=
"goods"
:model=
"goodsParams"
label-width=
"150px"
>
<el-form-item
label=
"所属分类:"
>
<div
class=
"flex"
>
<el-cascader
:options=
"categoryList"
v-model=
"categoryIds"
:style=
"{ 'width':'30
0px' }"
:style=
"{ 'width':'28
0px' }"
placeholder=
"请选择钱币分类"
@
change=
"handleCategoryChange"
/>
<el-button
type=
"primary"
style=
"margin-left: 20px"
size=
"small"
icon=
"el-icon-refresh"
@
click=
"handleRefreshCategory"
/>
</div>
</el-form-item>
<el-form-item
label=
"直径(mm):"
prop=
"name"
>
<el-input
v-model=
"goodsParams.diameter"
:style=
"{ 'width':'
30
0px' }"
:style=
"{ 'width':'
28
0px' }"
placeholder=
"请输入直径(mm)"
type=
"number"
@
input=
"limitInput($event, 1)"
/>
...
...
@@ -136,7 +157,7 @@
<el-form-item
label=
"厚度(mm):"
prop=
"name"
>
<el-input
v-model=
"goodsParams.thickness"
:style=
"{ 'width':'
30
0px' }"
:style=
"{ 'width':'
28
0px' }"
placeholder=
"请输入厚度(mm)"
type=
"number"
@
input=
"limitInput($event, 2)"
/>
...
...
@@ -144,7 +165,7 @@
<el-form-item
label=
"质量(g):"
prop=
"name"
>
<el-input
v-model=
"goodsParams.weight"
:style=
"{ 'width':'
30
0px' }"
:style=
"{ 'width':'
28
0px' }"
placeholder=
"请输入质量(g)"
type=
"number"
@
input=
"limitInput($event, 3)"
/>
...
...
@@ -256,6 +277,12 @@ export default {
name
:
[
{
required
:
true
,
message
:
'
请输入标题
'
,
trigger
:
'
blur
'
}
]
},
pickerOptions
:
{
disabledDate
(
v
)
{
const
time
=
v
.
getTime
()
return
time
>
Date
.
now
()
}
}
}
},
...
...
@@ -323,6 +350,13 @@ export default {
this
.
categoryList
=
response
.
data
.
data
.
categoryList
})
},
handleRefreshCategory
()
{
listCategories
().
then
(
response
=>
{
this
.
categoryList
=
response
.
data
.
data
.
categoryList
})
},
handleGetDetail
(
id
,
type
)
{
const
param
=
{
id
:
id
,
...
...
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