Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1351bee5
authored
Jan 08, 2020
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加模板排行手动控制功能
parent
421c0634
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
src/views/template/template-add-detail.vue
+10
-1
No files found.
src/views/template/template-add-detail.vue
View file @
1351bee5
...
...
@@ -44,6 +44,9 @@
<el-form-item
label=
"模板包描述"
prop=
"addVersionInfoDTO.versionName"
>
<el-input
v-model=
"temp.addVersionInfoDTO.versionName"
placeholder=
"请输入模板包描述"
/>
</el-form-item>
<el-form-item
label=
"模板包排行"
prop=
"templateOrder"
>
<el-input-number
v-model=
"temp.templateOrder"
:min=
"0"
/>
</el-form-item>
<el-form-item
v-if=
"!templateId"
label=
"上传模板包"
>
<el-upload
class=
"upload-demo"
drag
name=
"resource"
accept=
".zip"
:show-file-list=
"false"
:on-success=
"uploadZipSuccess"
:on-progress=
"onProgress"
:action=
"templateUploadZipUrl"
>
<i
class=
"el-icon-upload"
/>
...
...
@@ -141,6 +144,7 @@ export default {
templateProportion2
:
''
,
templatePackageName
:
''
,
templateCount
:
0
,
templateOrder
:
0
,
addVersionInfoDTO
:
{
zipUrl
:
''
,
versionName
:
''
...
...
@@ -194,6 +198,11 @@ export default {
required
:
true
,
message
:
'versionName is required'
,
trigger
:
'change'
}],
'templateOrder'
:
[{
required
:
true
,
message
:
'请输入排行值'
,
trigger
:
'change'
}]
},
downloadLoading
:
false
...
...
@@ -245,7 +254,7 @@ export default {
tempData
.
templateProportion
.
split
(
'/'
)[
0
]
tempData
.
templateProportion2
=
tempData
.
templateProportion
&&
tempData
.
templateProportion
.
split
(
'/'
)[
1
]
tempData
.
templateProportion
.
split
(
'/'
)[
1
]
this
.
temp
=
Object
.
assign
(
this
.
temp
,
tempData
)
this
.
getTagsList
()
console
.
log
(
response
)
...
...
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