|
@@ -10,6 +10,9 @@
|
|
|
<template #status>
|
|
|
<el-option v-for="i in statusList" :key="i.model" :label="i.label" :value="i.value"></el-option>
|
|
|
</template>
|
|
|
+ <template #show_index>
|
|
|
+ <el-option v-for="i in statusList" :key="i.model" :label="i.label" :value="i.value"></el-option>
|
|
|
+ </template>
|
|
|
</data-form>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -41,6 +44,8 @@ export default {
|
|
|
{ label: '编码', model: 'value' },
|
|
|
{ label: '排序', model: 'sort', type: 'number' },
|
|
|
{ label: '状态', model: 'status', type: 'select' },
|
|
|
+ { label: '标签图片', model: 'file', type: 'upload', url: '/files/point/actTags/upload' },
|
|
|
+ { label: '是否在首页展示', model: 'show_index', type: 'select' },
|
|
|
],
|
|
|
// 类型
|
|
|
typeList: [],
|
|
@@ -63,7 +68,7 @@ export default {
|
|
|
this.$set(this, `form`, res.data);
|
|
|
}
|
|
|
} else {
|
|
|
- this.$set(this, `form`, { status: '0' });
|
|
|
+ this.$set(this, `form`, { status: '0', show_index: '0' });
|
|
|
}
|
|
|
},
|
|
|
// 提交
|