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