|
|
|
@ -74,7 +74,8 @@ |
|
|
|
|
prop="categoryId"> |
|
|
|
|
<el-input placeholder="请输入产品名称" |
|
|
|
|
v-model.trim="form.mall.productName" |
|
|
|
|
id="focus-el"></el-input> |
|
|
|
|
id="focus-el" |
|
|
|
|
maxlength="20"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="分类标签" |
|
|
|
@ -200,7 +201,8 @@ |
|
|
|
|
<el-form-item label="匹配课程" |
|
|
|
|
prop="briefIntroduction"> |
|
|
|
|
<el-input placeholder="请输入匹配课程" |
|
|
|
|
v-model="form.mall.matchingCourse"></el-input> |
|
|
|
|
v-model="form.mall.matchingCourse" |
|
|
|
|
maxlength="30"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" |
|
|
|
@ -222,7 +224,8 @@ |
|
|
|
|
<el-form-item label="适用场景" |
|
|
|
|
prop="briefIntroduction"> |
|
|
|
|
<el-input placeholder="请输入适用场景" |
|
|
|
|
v-model="form.mall.applicationScenario"></el-input> |
|
|
|
|
v-model="form.mall.applicationScenario" |
|
|
|
|
maxlength="50"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item v-if="isPython" |
|
|
|
|
class="req" |
|
|
|
@ -244,9 +247,9 @@ |
|
|
|
|
accept=".jpg,.png,.jpeg" |
|
|
|
|
:before-remove="beforeCoverRemove" |
|
|
|
|
:on-change="file => changeFile(file, 1)" |
|
|
|
|
:limit="1" |
|
|
|
|
:auto-upload="false" |
|
|
|
|
:action="api.fileupload" |
|
|
|
|
:show-file-list="false" |
|
|
|
|
:headers="headers" |
|
|
|
|
name="file"> |
|
|
|
|
<img v-if="form.mall.coverDrawing" |
|
|
|
@ -303,6 +306,7 @@ |
|
|
|
|
:on-change="file => changeFile(file, 3)" |
|
|
|
|
:auto-upload="false" |
|
|
|
|
:limit="1" |
|
|
|
|
:on-exceed="handleExceed" |
|
|
|
|
:action="api.fileupload" |
|
|
|
|
:headers="headers" |
|
|
|
|
:file-list="appletList" |
|
|
|
@ -512,7 +516,8 @@ |
|
|
|
|
label="产品简介" |
|
|
|
|
prop="briefIntroduction"> |
|
|
|
|
<el-input v-model="form.mall.productIntroduction" |
|
|
|
|
type="textarea"></el-input> |
|
|
|
|
type="textarea" |
|
|
|
|
maxlength="200"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item class="req" |
|
|
|
|
label="详情介绍" |
|
|
|
@ -1482,6 +1487,9 @@ export default { |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
handleExceed (files, fileList) { |
|
|
|
|
Util.warningMsg(`当前限制选择 1 个文件,如需更换,请删除上一个文件再重新选择!`); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
beforeCoverRemove () { |
|
|
|
|
this.form.mall.coverDrawing = '' |
|
|
|
|