Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
50ce7c3a
authored
Aug 16, 2025
by
lijinqi
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
dc19b32d
92fc8379
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
14 deletions
+18
-14
src/utils/dict.ts
+1
-1
src/views/biz/bannerinfo/BannerInfoForm.vue
+13
-9
src/views/biz/bannerinfo/index.vue
+1
-1
src/views/biz/industryapplication/IndustryApplicationForm.vue
+1
-1
src/views/biz/industryapplication/index.vue
+2
-2
No files found.
src/utils/dict.ts
View file @
50ce7c3a
...
...
@@ -249,7 +249,7 @@ export enum DICT_TYPE {
// ========== 首页信息模块 ==========
HOME_INFO_STATUS
=
'home_info_status'
,
HOME_INFO_COMPUTILITY_TYPE
=
'home_info_computility_type'
,
HOME_INFO_ASSEMBLY_TYPE
=
'home_info_assembly
_type'
,
INDUSTRY_APPLICATION_TYPE
=
'industry_application
_type'
,
HOME_INFO_INFORMATION_CATEGORY
=
'home_info_information_category'
,
HOME_INFO_INDUSTRY_CATEGORY
=
'home_info_industry_category'
,
}
src/views/biz/bannerinfo/BannerInfoForm.vue
View file @
50ce7c3a
...
...
@@ -47,16 +47,17 @@
<el-input
v-model=
"formData.url"
placeholder=
"请输入链接地址"
/>
</el-form-item>
<el-form-item
label=
"描述内容"
prop=
"description"
>
<Editor
v-model=
"formData.description"
height=
"150px"
/>
<!--
<Editor
v-model=
"formData.description"
height=
"150px"
/>
-->
<el-input
v-model=
"formData.description"
:rows=
"2"
type=
"textarea"
placeholder=
"请输入描述内容"
/>
</el-form-item>
<el-form-item
label=
"排序值"
prop=
"orderNum"
>
<el-input
v-model=
"formData.orderNum"
placeholder=
"请输入排序值"
/>
</el-form-item>
<!--
<el-form-item
label=
"状态"
prop=
"showStatus"
>
-->
<!--
<el-radio-group
v-model=
"formData.showStatus"
>
-->
<!--
<el-radio
value=
"1"
>
请选择字典生成
</el-radio>
-->
<!--
</el-radio-group>
-->
<!--
</el-form-item>
-->
<el-form-item
label=
"状态"
prop=
"showStatus"
>
<el-radio-group
v-model=
"formData.showStatus"
>
<el-radio
...
...
@@ -80,8 +81,11 @@
</Dialog>
</template>
<
script
setup
lang=
"ts"
>
import
{
BannerInfoApi
,
BannerInfo
}
from
'@/api/biz/bannerinfo'
import
{
DICT_TYPE
,
getIntDictOptions
}
from
'@/utils/dict'
import
{
BannerInfoApi
}
from
'@/api/biz/bannerinfo'
import
{
DICT_TYPE
,
getIntDictOptions
}
from
'@/utils/dict'
import
{
useUpload
}
from
'@/components/UploadFile/src/useUpload'
import
{
Plus
}
from
'@element-plus/icons-vue'
...
...
@@ -116,7 +120,7 @@ const formData = ref({
const
formRules
=
reactive
({
information
:
[{
required
:
true
,
message
:
'内容不能为空'
,
trigger
:
'blur'
}],
title
:
[{
required
:
true
,
message
:
'标题不能为空'
,
trigger
:
'blur'
}],
showStatus
:
[{
required
:
true
,
message
:
'状态
:0-已隐藏,1-已显示
不能为空'
,
trigger
:
'blur'
}],
showStatus
:
[{
required
:
true
,
message
:
'状态不能为空'
,
trigger
:
'blur'
}],
orderNum
:
[{
required
:
true
,
message
:
'排序值不能为空'
,
trigger
:
'blur'
}]
})
const
formRef
=
ref
()
// 表单 Ref
...
...
src/views/biz/bannerinfo/index.vue
View file @
50ce7c3a
...
...
@@ -150,7 +150,7 @@
<
script
setup
lang=
"ts"
>
import
{
isEmpty
}
from
'@/utils/is'
import
{
dateFormatter
}
from
'@/utils/formatTime'
//
import { dateFormatter } from '@/utils/formatTime'
import
download
from
'@/utils/download'
import
{
BannerInfoApi
,
BannerInfo
}
from
'@/api/biz/bannerinfo'
import
BannerInfoForm
from
'./BannerInfoForm.vue'
...
...
src/views/biz/industryapplication/IndustryApplicationForm.vue
View file @
50ce7c3a
...
...
@@ -97,7 +97,7 @@
<el-form-item
label=
"组件类型"
prop=
"assemblyType"
>
<el-select
v-model=
"formData.assemblyType"
placeholder=
"请选择组件类型"
clearable
class=
"!w-150px"
>
<el-option
v-for=
"dict in getIntDictOptions(DICT_TYPE.
HOME_INFO_ASSEMBLY
_TYPE)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.
INDUSTRY_APPLICATION
_TYPE)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
...
...
src/views/biz/industryapplication/index.vue
View file @
50ce7c3a
...
...
@@ -43,7 +43,7 @@
class=
"!w-150px"
>
<el-option
v-for=
"dict in getIntDictOptions(DICT_TYPE.
HOME_INFO_ASSEMBLY
_TYPE)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.
INDUSTRY_APPLICATION
_TYPE)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
...
...
@@ -149,7 +149,7 @@
<el-table-column
label=
"组件类型"
align=
"center"
prop=
"assemblyType"
>
<
template
#
default=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.
HOME_INFO_ASSEMBLY
_TYPE"
:value=
"scope.row.assemblyType"
/>
<dict-tag
:type=
"DICT_TYPE.
INDUSTRY_APPLICATION
_TYPE"
:value=
"scope.row.assemblyType"
/>
</
template
>
</el-table-column>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment