Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2c4a44da
authored
2025-05-11 11:24:23 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增广告类别
1 parent
7e54afef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
src/lang/package/zh-cn.js
src/views/legao/advertisement/index.vue
src/lang/package/zh-cn.js
View file @
2c4a44d
...
...
@@ -18,6 +18,7 @@ export default {
tablePhotoName
:
'图片'
,
tableStateName
:
'发布状态'
,
tableControlsName
:
'操作'
,
cateName
:
'类别'
,
controlsDelName
:
'删除'
,
controlsEditName
:
'编辑'
,
controlsDelistName
:
'下架'
,
...
...
@@ -26,6 +27,7 @@ export default {
dialogTitleAdd
:
'新增'
,
dialogTitleEdit
:
'修改'
,
dialogName
:
'广告名称'
,
dialogCate
:
'类别'
,
dialogPhote
:
'图片'
,
dialogSort
:
'排序'
,
dialogSubmit
:
'直接发布'
,
...
...
src/views/legao/advertisement/index.vue
View file @
2c4a44d
...
...
@@ -27,6 +27,14 @@
>
<el-table-column
:label=
"$t('advertisement.tableAdName')"
prop=
"name"
/>
<el-table-column
:label=
"$t('advertisement.tableSortName')"
prop=
"sort"
/>
<el-table-column
:label=
"$t('advertisement.cateName')"
prop=
"type"
>
<template
#
default=
"
{ row }">
<dict-tag
:options=
"advert_type"
:value=
"row.type"
></dict-tag>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('advertisement.tablePhotoName')"
>
<
template
#
default=
"{ row }"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"row.ossUrl"
/>
...
...
@@ -81,6 +89,16 @@
<el-form-item
:label=
"$t('advertisement.tableAdName')"
label-width=
"80"
prop=
"name"
>
<el-input
v-model=
"showForm.form.name"
placeholder=
"请输入广告名称"
/>
</el-form-item>
<el-form-item
:label=
"$t('advertisement.dialogCate')"
prop=
"type"
label-width=
"80"
>
<el-select
v-model=
"showForm.form.type"
placeholder=
"请选择类别"
clearable
>
<el-option
v-for=
"dict in advert_type"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('advertisement.tablePhotoName')"
label-width=
"80"
>
<imageUpload
v-model=
"showForm.form.ossId"
:limit=
'1'
:fileType=
'["png", "jpg", "jpeg", "ico"]'
/>
</el-form-item>
...
...
@@ -112,7 +130,7 @@ const { windowSize } = useTableHeight('max-height')
// 导入字典
const
{
proxy
}
=
getCurrentInstance
();
const
{
sys_yes_no
,
advert_state
}
=
proxy
.
useDict
(
"sys_yes_no"
,
"advert_stat
e"
);
const
{
sys_yes_no
,
advert_state
,
advert_type
}
=
proxy
.
useDict
(
"sys_yes_no"
,
"advert_state"
,
"advert_typ
e"
);
const
data
=
reactive
({
status
:
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment