Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
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
24b4d35f
authored
Sep 18, 2025
by
Jony.L
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
行业解决方案 正副标题的修改
parent
4adae3a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
3 deletions
+48
-3
src/utils/dict.js
+10
-0
src/views/industryApplications/index.vue
+38
-3
No files found.
src/utils/dict.js
View file @
24b4d35f
import
useDictStore
from
'@/store/modules/dict'
import
{
getDicts
}
from
'@/api/system/dict/data'
import
request
from
"@/utils/request.js"
;
/**
* 获取字典数据
...
...
@@ -21,4 +22,12 @@ export function useDict(...args) {
})
return
toRefs
(
res
.
value
);
})()
}
export
function
getDictDatas
(
dictType
)
{
return
request
({
url
:
'/biz/dict/getByType'
,
method
:
'get'
,
params
:
{
dictType
}
});
}
\ No newline at end of file
src/views/industryApplications/index.vue
View file @
24b4d35f
...
...
@@ -7,7 +7,13 @@
@
click=
"handleSolution(i.id)"
>
<div
class=
"resource-item"
>
<div
class=
"img"
>
<div
class=
"img-title"
>
行业解决方案
</div>
<!--
<div
class=
"img-title"
>
行业解决方案
</div>
-->
<div
class=
"img-title-a"
>
{{
selectDictLabel
(
solutionCategoryDict
,
i
.
category
)
}}
</div>
<br>
<br>
<div
class=
"img-title-b"
>
{{
selectDictLabel
(
industryCategoryDict
,
i
.
industryCategory
)
}}
</div>
</div>
<div
class=
"text-content"
>
<div
class=
"title"
>
{{
i
.
title
}}
</div>
...
...
@@ -46,12 +52,27 @@
<
script
setup
name
=
"industryApplicationsIndex"
>
import
{
ref
}
from
'vue'
import
{
getSolution
}
from
"@/api/industry.js"
;
import
{
parseTime
}
from
"@/utils/ruoyi.js"
;
import
{
parseTime
,
selectDictLabel
}
from
"@/utils/ruoyi.js"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
getDictDatas
}
from
"@/utils/dict.js"
;
const
solutionList
=
ref
([])
const
router
=
useRouter
();
// 定义变量存储两个字典数据
const
solutionCategoryDict
=
ref
([]);
// 解决方案分类字典
const
industryCategoryDict
=
ref
([]);
// 行业分类字典
// 组件挂载时获取字典数据
onMounted
(
async
()
=>
{
// 等待接口返回后,将数据存入变量
const
solutionRes
=
await
getDictDatas
(
"solution_category"
);
solutionCategoryDict
.
value
=
solutionRes
.
data
;
// 接口返回的data数组
const
industryRes
=
await
getDictDatas
(
"industry_category"
);
industryCategoryDict
.
value
=
industryRes
.
data
;
}
);
function
getData
()
{
getSolution
().
then
(
res
=>
{
solutionList
.
value
=
res
.
code
===
0
?
res
.
data
:
[]
...
...
@@ -608,12 +629,22 @@ function handleSolution(id) {
align
-
items
:
center
;
}
.
img
-
title
{
.
img
-
title
-
a
{
font
-
family
:
YouSheBiaoTiHei
,
system
-
ui
;
font
-
size
:
36
px
;
color
:
#
fff
;
line
-
height
:
30
px
;
padding
:
0
px
20
px
;
margin
-
bottom
:
50
px
}
.
img
-
title
-
b
{
font
-
family
:
YouSheBiaoTiHei
,
system
-
ui
;
font
-
size
:
26
px
;
color
:
#
fff
;
line
-
height
:
30
px
;
padding
:
0
20
px
;
margin
-
bottom
:
-
50
px
;
}
.
resource
-
item
.
img
img
{
...
...
@@ -938,6 +969,10 @@ function handleSolution(id) {
height
:
40
px
;
font
-
size
:
16
px
}
.
img
-
titleA
{
/* 你原来的所有样式(颜色、定位、内边距等)都保留 */
br
+
*
{
font
-
size
:
12
px
;
}
// 只改这行:让<br>后面的文字变小
}
<
/style
>
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