Commit e5bee295 by liboyang

Merge branch 'feature_template_lby' into 'develop'

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



See merge request !4
parents 421c0634 1351bee5
...@@ -44,6 +44,9 @@ ...@@ -44,6 +44,9 @@
<el-form-item label="模板包描述" prop="addVersionInfoDTO.versionName"> <el-form-item label="模板包描述" prop="addVersionInfoDTO.versionName">
<el-input v-model="temp.addVersionInfoDTO.versionName" placeholder="请输入模板包描述" /> <el-input v-model="temp.addVersionInfoDTO.versionName" placeholder="请输入模板包描述" />
</el-form-item> </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-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"> <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" /> <i class="el-icon-upload" />
...@@ -141,6 +144,7 @@ export default { ...@@ -141,6 +144,7 @@ export default {
templateProportion2: '', templateProportion2: '',
templatePackageName: '', templatePackageName: '',
templateCount: 0, templateCount: 0,
templateOrder: 0,
addVersionInfoDTO: { addVersionInfoDTO: {
zipUrl: '', zipUrl: '',
versionName: '' versionName: ''
...@@ -194,6 +198,11 @@ export default { ...@@ -194,6 +198,11 @@ export default {
required: true, required: true,
message: 'versionName is required', message: 'versionName is required',
trigger: 'change' trigger: 'change'
}],
'templateOrder': [{
required: true,
message: '请输入排行值',
trigger: 'change'
}] }]
}, },
downloadLoading: false downloadLoading: false
...@@ -245,7 +254,7 @@ export default { ...@@ -245,7 +254,7 @@ export default {
tempData.templateProportion.split('/')[0] tempData.templateProportion.split('/')[0]
tempData.templateProportion2 = tempData.templateProportion2 =
tempData.templateProportion && tempData.templateProportion &&
tempData.templateProportion.split('/')[1] tempData.templateProportion.split('/')[1]
this.temp = Object.assign(this.temp, tempData) this.temp = Object.assign(this.temp, tempData)
this.getTagsList() this.getTagsList()
console.log(response) 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