新增广告类别
Showing
2 changed files
with
21 additions
and
1 deletions
| ... | @@ -18,6 +18,7 @@ export default { | ... | @@ -18,6 +18,7 @@ export default { |
| 18 | tablePhotoName: '图片', | 18 | tablePhotoName: '图片', |
| 19 | tableStateName: '发布状态', | 19 | tableStateName: '发布状态', |
| 20 | tableControlsName: '操作', | 20 | tableControlsName: '操作', |
| 21 | cateName: '类别', | ||
| 21 | controlsDelName: '删除', | 22 | controlsDelName: '删除', |
| 22 | controlsEditName: '编辑', | 23 | controlsEditName: '编辑', |
| 23 | controlsDelistName: '下架', | 24 | controlsDelistName: '下架', |
| ... | @@ -26,6 +27,7 @@ export default { | ... | @@ -26,6 +27,7 @@ export default { |
| 26 | dialogTitleAdd: '新增', | 27 | dialogTitleAdd: '新增', |
| 27 | dialogTitleEdit: '修改', | 28 | dialogTitleEdit: '修改', |
| 28 | dialogName: '广告名称', | 29 | dialogName: '广告名称', |
| 30 | dialogCate: '类别', | ||
| 29 | dialogPhote: '图片', | 31 | dialogPhote: '图片', |
| 30 | dialogSort: '排序', | 32 | dialogSort: '排序', |
| 31 | dialogSubmit: '直接发布', | 33 | dialogSubmit: '直接发布', | ... | ... |
| ... | @@ -27,6 +27,14 @@ | ... | @@ -27,6 +27,14 @@ |
| 27 | > | 27 | > |
| 28 | <el-table-column :label="$t('advertisement.tableAdName')" prop="name" /> | 28 | <el-table-column :label="$t('advertisement.tableAdName')" prop="name" /> |
| 29 | <el-table-column :label="$t('advertisement.tableSortName')" prop="sort" /> | 29 | <el-table-column :label="$t('advertisement.tableSortName')" prop="sort" /> |
| 30 | <el-table-column :label="$t('advertisement.cateName')" prop="type"> | ||
| 31 | <template #default="{ row }"> | ||
| 32 | <dict-tag | ||
| 33 | :options="advert_type" | ||
| 34 | :value="row.type" | ||
| 35 | ></dict-tag> | ||
| 36 | </template> | ||
| 37 | </el-table-column> | ||
| 30 | <el-table-column :label="$t('advertisement.tablePhotoName')" > | 38 | <el-table-column :label="$t('advertisement.tablePhotoName')" > |
| 31 | <template #default="{ row }"> | 39 | <template #default="{ row }"> |
| 32 | <el-image style="width: 100px; height: 100px" :src="row.ossUrl" /> | 40 | <el-image style="width: 100px; height: 100px" :src="row.ossUrl" /> |
| ... | @@ -81,6 +89,16 @@ | ... | @@ -81,6 +89,16 @@ |
| 81 | <el-form-item :label="$t('advertisement.tableAdName')" label-width="80" prop="name"> | 89 | <el-form-item :label="$t('advertisement.tableAdName')" label-width="80" prop="name"> |
| 82 | <el-input v-model="showForm.form.name" placeholder="请输入广告名称" /> | 90 | <el-input v-model="showForm.form.name" placeholder="请输入广告名称" /> |
| 83 | </el-form-item> | 91 | </el-form-item> |
| 92 | <el-form-item :label="$t('advertisement.dialogCate')" prop="type" label-width="80"> | ||
| 93 | <el-select v-model="showForm.form.type" placeholder="请选择类别" clearable> | ||
| 94 | <el-option | ||
| 95 | v-for="dict in advert_type" | ||
| 96 | :key="dict.value" | ||
| 97 | :label="dict.label" | ||
| 98 | :value="dict.value" | ||
| 99 | /> | ||
| 100 | </el-select> | ||
| 101 | </el-form-item> | ||
| 84 | <el-form-item :label="$t('advertisement.tablePhotoName')" label-width="80"> | 102 | <el-form-item :label="$t('advertisement.tablePhotoName')" label-width="80"> |
| 85 | <imageUpload v-model="showForm.form.ossId" :limit='1' :fileType='["png", "jpg", "jpeg", "ico"]'/> | 103 | <imageUpload v-model="showForm.form.ossId" :limit='1' :fileType='["png", "jpg", "jpeg", "ico"]'/> |
| 86 | </el-form-item> | 104 | </el-form-item> |
| ... | @@ -112,7 +130,7 @@ const { windowSize } = useTableHeight('max-height') | ... | @@ -112,7 +130,7 @@ const { windowSize } = useTableHeight('max-height') |
| 112 | 130 | ||
| 113 | // 导入字典 | 131 | // 导入字典 |
| 114 | const { proxy } = getCurrentInstance(); | 132 | const { proxy } = getCurrentInstance(); |
| 115 | const { sys_yes_no, advert_state } = proxy.useDict("sys_yes_no", "advert_state"); | 133 | const { sys_yes_no, advert_state, advert_type } = proxy.useDict("sys_yes_no", "advert_state","advert_type"); |
| 116 | 134 | ||
| 117 | const data = reactive({ | 135 | const data = reactive({ |
| 118 | status: { | 136 | status: { | ... | ... |
-
Please register or sign in to post a comment