Commit 1351bee5 by liboyang

添加模板排行手动控制功能

parent 421c0634
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment