|
@@ -36,6 +36,9 @@
|
|
|
<template #status>
|
|
|
<el-option v-for="i in goodsStatusList" :key="i.value" :label="i.label" :value="i.value"></el-option>
|
|
|
</template>
|
|
|
+ <template #brief>
|
|
|
+ <editor v-model="form.brief" url="/files/point/goods/upload" />
|
|
|
+ </template>
|
|
|
</data-form>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -54,7 +57,7 @@ const { mapActions: dictData } = createNamespacedHelpers('dictData');
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
|
- components: {},
|
|
|
+ components: { editor: () => import('@/components/editor.vue') },
|
|
|
data: function () {
|
|
|
return {
|
|
|
view: 'list',
|
|
@@ -86,9 +89,12 @@ export default {
|
|
|
{ label: '活动标签', model: 'act_tags', type: 'selectMany' },
|
|
|
{ label: '简短简介', model: 'shot_brief', maxLength: 50 },
|
|
|
{ label: '预计发货时间', model: 'send_time' },
|
|
|
- { label: '商品图片', model: 'file', type: 'upload', url: '/files/point/goods/upload' },
|
|
|
- { label: '商品介绍', model: 'brief', type: 'textarea' },
|
|
|
{ label: '商品状态', model: 'status', type: 'select' },
|
|
|
+ { label: '商品来源', model: 'source' },
|
|
|
+ { label: '网址', model: 'url' },
|
|
|
+ { label: '排序', model: 'sort', type: 'number' },
|
|
|
+ { label: '商品图片', model: 'file', type: 'upload', url: '/files/point/goods/upload' },
|
|
|
+ { label: '商品介绍', model: 'brief', custom: true },
|
|
|
],
|
|
|
rules: {},
|
|
|
form: {},
|