Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-consultation
提交
e6c511d8
提交
e6c511d8
编写于
8月 12, 2024
作者:
zhongyao.qiao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat 筛选增加全部保险项目
上级
6474cfc2
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
37 行增加
和
4 行删除
+37
-4
diagnosis-list-new.vue
src/views/IM/diagnosis-admin/diagnosis-list-new.vue
+37
-4
未找到文件。
src/views/IM/diagnosis-admin/diagnosis-list-new.vue
浏览文件 @
e6c511d8
...
@@ -449,7 +449,7 @@
...
@@ -449,7 +449,7 @@
class=
"t-b"
class=
"t-b"
>
>
<el-select
<el-select
v-model
=
"insuranceCodes"
:value
=
"insuranceCodes"
placeholder=
"请选择数据来源"
placeholder=
"请选择数据来源"
clearable
clearable
multiple
multiple
...
@@ -942,13 +942,46 @@ export default {
...
@@ -942,13 +942,46 @@ export default {
clearInterval
(
this
.
timer
);
clearInterval
(
this
.
timer
);
},
},
methods
:
{
methods
:
{
handleProjectSelect
()
{
handleProjectSelect
(
item
)
{
this
.
searchParam
.
dataSourceList
=
this
.
insuranceCodes
?.
flat
()
||
[];
const
ids
=
this
.
insuranceCodes
.
join
();
const
selectIds
=
item
.
join
();
const
index
=
item
.
findIndex
((
i
)
=>
i
===
'0'
);
if
(
ids
===
'0'
&&
selectIds
===
'0'
)
return
;
if
(
!
selectIds
)
this
.
insuranceCodes
=
[];
else
if
(
index
>
-
1
&&
index
===
item
.
length
-
1
)
{
this
.
insuranceCodes
=
[
'0'
];
}
else
if
(
index
>
-
1
)
{
item
.
splice
(
index
,
1
);
this
.
insuranceCodes
=
item
;
}
else
this
.
insuranceCodes
=
item
;
let
result
=
[];
if
(
this
.
insuranceCodes
.
join
()
===
'0'
)
{
result
=
this
.
dataFromList
.
map
((
i
)
=>
i
.
projectEquityCodes
)
.
join
()
.
split
(
','
);
}
else
{
result
=
this
.
insuranceCodes
.
length
?
this
.
insuranceCodes
.
join
().
split
(
','
)
:
[];
}
this
.
searchParam
.
dataSourceList
=
[...
new
Set
(
result
)];
},
},
getProjectList
()
{
getProjectList
()
{
projectList
().
then
((
res
)
=>
{
projectList
().
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
this
.
dataFromList
=
res
.
data
||
[];
const
item
=
{
insuranceProjectId
:
0
,
projectName
:
'全部保险项目'
,
projectEquityCodes
:
[
0
],
};
this
.
dataFromList
=
[
item
].
concat
(
res
.
data
).
map
((
row
)
=>
{
return
{
...
row
,
projectEquityCodes
:
row
.
projectEquityCodes
.
join
(
','
),
};
});
}
}
});
});
},
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录