Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
18128df4
提交
18128df4
authored
4月 01, 2026
作者:
张伊明
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat 立法背景loading
上级
18368a91
流水线
#271
已通过 于阶段
in 1 分 32 秒
变更
2
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
23 行增加
和
4 行删除
+23
-4
bill.js
src/api/bill.js
+2
-1
index.vue
src/views/bill/background/index.vue
+21
-3
没有找到文件。
src/api/bill.js
浏览文件 @
18128df4
...
@@ -56,11 +56,12 @@ export function getBillDyqk(params) {
...
@@ -56,11 +56,12 @@ export function getBillDyqk(params) {
* @param {id,cRelated,currentPage,pageSize}
* @param {id,cRelated,currentPage,pageSize}
* @header token
* @header token
*/
*/
export
function
getBillBackground
(
params
)
{
export
function
getBillBackground
(
params
,
config
=
{}
)
{
return
request
({
return
request
({
method
:
'GET'
,
method
:
'GET'
,
url
:
`/api/billInfoBean/background/
${
params
.
id
}
`
,
url
:
`/api/billInfoBean/background/
${
params
.
id
}
`
,
params
,
params
,
signal
:
config
.
signal
})
})
}
}
// 相关事件-根据法案ID获取相关事件信息
// 相关事件-根据法案ID获取相关事件信息
...
...
src/views/bill/background/index.vue
浏览文件 @
18128df4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<el-button
:type=
"box1Btn2Type"
plain
@
click=
"handleClickBox1Btn(2)"
>
全部背景
</el-button>
<el-button
:type=
"box1Btn2Type"
plain
@
click=
"handleClickBox1Btn(2)"
>
全部背景
</el-button>
</div>
</div>
</
template
>
</
template
>
<div
class=
"box1-main"
>
<div
class=
"box1-main"
v-loading=
"backgroundLoading"
>
<div
class=
"box1-main-center"
>
<div
class=
"box1-main-center"
>
<div
class=
"box1-main-item"
v-for=
"item in backgroundDisplayList"
:key=
"item.id"
>
<div
class=
"box1-main-item"
v-for=
"item in backgroundDisplayList"
:key=
"item.id"
>
<div
class=
"id"
>
{{ item.displayIndex }}
</div>
<div
class=
"id"
>
{{ item.displayIndex }}
</div>
...
@@ -198,6 +198,8 @@ const handleClickBox2Btn = index => {
...
@@ -198,6 +198,8 @@ const handleClickBox2Btn = index => {
const
aboutUserList
=
ref
([]);
const
aboutUserList
=
ref
([]);
const
backgroundList
=
ref
([]);
const
backgroundList
=
ref
([]);
const
backgroundLoading
=
ref
(
false
);
let
backgroundAbortController
=
null
;
const
eventList
=
ref
([]);
const
eventList
=
ref
([]);
...
@@ -244,6 +246,12 @@ const nextIconColor = computed(() => (currentIndex.value < personList.value.leng
...
@@ -244,6 +246,12 @@ const nextIconColor = computed(() => (currentIndex.value < personList.value.leng
// 获取立法背景内容
// 获取立法背景内容
const
handleGetBillBackground
=
async
()
=>
{
const
handleGetBillBackground
=
async
()
=>
{
if
(
backgroundAbortController
)
{
backgroundAbortController
.
abort
();
}
const
controller
=
new
AbortController
();
backgroundAbortController
=
controller
;
const
cRelated
=
box1BtnActive
.
value
===
1
?
"Y"
:
"N"
;
const
cRelated
=
box1BtnActive
.
value
===
1
?
"Y"
:
"N"
;
const
params
=
{
const
params
=
{
cRelated
:
cRelated
,
cRelated
:
cRelated
,
...
@@ -251,11 +259,21 @@ const handleGetBillBackground = async () => {
...
@@ -251,11 +259,21 @@ const handleGetBillBackground = async () => {
currentPage
:
currentPage
.
value
-
1
,
currentPage
:
currentPage
.
value
-
1
,
pageSize
:
10
pageSize
:
10
};
};
backgroundLoading
.
value
=
true
;
try
{
try
{
const
res
=
await
getBillBackground
(
params
);
const
res
=
await
getBillBackground
(
params
,
{
signal
:
controller
.
signal
}
);
backgroundList
.
value
=
res
.
data
.
content
;
backgroundList
.
value
=
res
.
data
.
content
;
total
.
value
=
res
.
data
.
totalElements
;
// 假设API返回totalElements
total
.
value
=
res
.
data
.
totalElements
;
// 假设API返回totalElements
}
catch
(
error
)
{
}
}
catch
(
error
)
{
if
(
error
?.
name
!==
"AbortError"
&&
error
?.
code
!==
"ERR_CANCELED"
)
{
console
.
error
(
error
);
}
}
finally
{
if
(
backgroundAbortController
===
controller
)
{
backgroundLoading
.
value
=
false
;
backgroundAbortController
=
null
;
}
}
};
};
// 获取相关事件
// 获取相关事件
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论