提交 aa388a70 authored 作者: pengxiaohui's avatar pengxiaohui

修复bug

上级 75a84906
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
<el-image <el-image
style="width: 100px; height: 100px;" style="width: 100px; height: 100px;"
fit="scale-down" fit="scale-down"
:src="scope.row.uris[0] ? scope.row.uris[0].uri: scope.row.uri" :src="(scope.row.uris && scope.row.uris[0]) ? scope.row.uris[0].uri: scope.row.uri"
:preview-src-list="scope.row.uris[0] ? scope.row.uris.map(item => item.uri):[scope.row.uri]"> :preview-src-list="(scope.row.uris && scope.row.uris[0]) ? scope.row.uris.map(item => item.uri):[scope.row.uri]">
</el-image> </el-image>
</div> </div>
</div> </div>
...@@ -255,10 +255,8 @@ ...@@ -255,10 +255,8 @@
v-model="addForm.category_id" v-model="addForm.category_id"
:options="options" :options="options"
:show-all-levels="false" :show-all-levels="false"
filterable
:before-filter="searchCategory"
:props="{value: 'id', label: 'name', emitPath: false}" :props="{value: 'id', label: 'name', emitPath: false}"
placeholder="试试搜索:分类"> placeholder="请选择分类">
</el-cascader> </el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="产品说明书(pdf附件)" :label-width="formLabelWidth"> <el-form-item label="产品说明书(pdf附件)" :label-width="formLabelWidth">
...@@ -760,7 +758,7 @@ export default { ...@@ -760,7 +758,7 @@ export default {
return false return false
}, },
categoryList(name = '') { categoryList(name = '') {
categoryApi.categories({ name: name, page: 1, limit: 10 }).then(res => { categoryApi.categories({ name: name, page: 1, limit: 100 }).then(res => {
if (res.code === 0) { if (res.code === 0) {
if (res.data.data) { if (res.data.data) {
this.options = [] this.options = []
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论