Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zrch-risk-39
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
zrch-risk-39
Commits
fd6661a1
提交
fd6661a1
authored
4月 21, 2026
作者:
liuluyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新标准库文件预览
上级
0a043e02
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
21 行增加
和
25 行删除
+21
-25
AuditCommonLibList.vue
...ent-39/src/views/newlib/components/AuditCommonLibList.vue
+21
-25
没有找到文件。
zrch-risk-client-39/src/views/newlib/components/AuditCommonLibList.vue
浏览文件 @
fd6661a1
...
...
@@ -10,7 +10,7 @@
:loading=
"loading"
:edit-config=
"
{ trigger: 'dblclick', mode: 'row' }"
:columnConfig="{ resizable: true }"
:row-config="{ isCurrent: true, isHover: true,useKey: true }"
:row-config="{ isCurrent: true, isHover: true,
useKey: true }"
v-on="gridEvents"
@filter-change="filterChangeEvent"
>
...
...
@@ -46,7 +46,7 @@
<
template
#
toolbar_buttons
>
<div
v-show=
"isFileList"
>
<blockquote>
<span
@
click=
"showFileContent"
v-html=
"fileDoc?.fileName"
>
</span>
<span
@
click=
"showFileContent
(fileDoc)
"
v-html=
"fileDoc?.fileName"
>
</span>
<span
@
click=
"showFile()"
style=
"color: black; margin-left: 20px"
>
返回
</span>
</blockquote>
</div>
...
...
@@ -63,7 +63,7 @@
</
template
>
<vxe-button
mode=
"text"
size=
"small"
content=
"删除"
@
click=
"removeRowEvent(row)"
/>
<vxe-button
mode=
"text"
size=
"small"
content=
"详情"
@
click=
"handleDetail(row)"
/>
<vxe-button
v-if=
"gzltp
==
'4'"
mode=
"text"
size=
"small"
content=
"风险跟踪"
@
click=
"handleFLow(row)"
/>
<vxe-button
v-if=
"gzltp
==
'4'"
mode=
"text"
size=
"small"
content=
"风险跟踪"
@
click=
"handleFLow(row)"
/>
<!-- <vxe-button mode="text" size="small" content="分配任务" @click="sendTask(row)" /> -->
</template>
<
template
#
text_edit=
"{ row, column }"
>
...
...
@@ -85,8 +85,8 @@
</div>
<component
:is=
"currentComponent"
@
register=
"registerModal"
@
success=
"handleSuccess"
@
callback=
"callback"
/>
<AuditActListModal
@
register=
"refAuditActListModal"
@
save
R
el=
"handleSaveRel"
/>
<AuditSetLableModal
@
register=
"regAddLableModal"
modalTitle=
"添加标签"
@
save
L
abel=
"saveLabels"
/>
<AuditActListModal
@
register=
"refAuditActListModal"
@
save
-r
el=
"handleSaveRel"
/>
<AuditSetLableModal
@
register=
"regAddLableModal"
modalTitle=
"添加标签"
@
save
-l
abel=
"saveLabels"
/>
<MergeActModal
@
register=
"registerMergeActModal"
@
success=
"handleSuccess"
/>
<FileViewerModal
@
register=
"registerShowFileContentModal"
:useStaticPrefixForDocx=
"true"
/>
...
...
@@ -132,7 +132,7 @@
import
FileViewerModal
from
'/@/components/onlinePreview/FileViewerModal.vue'
;
import
{
useUserStoreWithOut
}
from
'/@/store/modules/user'
;
import
{
saveOrUpdateByTp
,
deleteByTp
,
saveBatchLabels
,
saveBatchActRels
,
queryActByIds
,
queryLabelByCodes
}
from
'../index.api'
;
import
{
cloneDeep
}
from
'lodash-es'
;
import
AuditProblemDetailFlowModal
from
'/@/views/newlib/AuditProblemDetailFlowModal.vue'
;
...
...
@@ -260,9 +260,8 @@
let
end
=
st
+
tablePage
.
pageSize
;
curPageData
.
value
=
tableData
.
value
.
slice
(
st
,
end
);
};
const
gzltp
=
ref
<
string
>
(
'0'
);
;
const
gzltp
=
ref
<
string
>
(
'0'
);
async
function
setTableData
(
tp
,
list
)
{
gzltp
.
value
=
tp
;
curtp
.
value
=
tp
;
currentComponent
.
value
=
currentComponentAry
.
value
[
tp
];
...
...
@@ -600,41 +599,40 @@
async
function
setFilterOptions
()
{
if
(
!
auditCols
[
curtp
.
value
])
return
;
let
columns
=
cloneDeep
(
auditCols
[
curtp
.
value
]);
let
filerOprions
=
{};
columns
.
forEach
(
function
(
col
)
{
if
(
col
.
filterMethodTp
==
'check'
)
{
let
colField
=
col
.
field
;
// 过滤掉 null/undefined/空字符串 的值,并去重
filerOprions
=
listData
.
value
.
map
(
obj
=>
obj
[
colField
])
.
filter
(
value
=>
value
!=
null
&&
value
!==
''
)
// 排除 null/undefined/空字符串
.
map
(
value
=>
({
.
map
(
(
obj
)
=>
obj
[
colField
])
.
filter
(
(
value
)
=>
value
!=
null
&&
value
!==
''
)
// 排除 null/undefined/空字符串
.
map
(
(
value
)
=>
({
label
:
String
(
value
),
// 确保 label 是字符串
value
:
value
value
:
value
,
}));
// 更高效的去重方式
const
uniqueOptions
=
[];
const
seen
=
new
Set
();
filerOprions
.
forEach
(
option
=>
{
filerOprions
.
forEach
(
(
option
)
=>
{
const
key
=
`
${
option
.
value
}
`
;
// 使用字符串作为键
if
(
!
seen
.
has
(
key
))
{
seen
.
add
(
key
);
uniqueOptions
.
push
(
option
);
}
});
col
.
filters
=
uniqueOptions
;
}
else
if
(
col
.
filterMethodTp
==
'text'
)
{
col
.
datas
=
[];
}
});
gridOptions
.
columns
=
[];
gridOptions
.
columns
=
columns
;
}
...
...
@@ -676,7 +674,7 @@
}
if
(
values
[
0
])
{
console
.
log
(
listData
.
value
,
"listData.value"
)
console
.
log
(
listData
.
value
,
'listData.value'
);
gridOptions
.
data
=
listData
.
value
.
filter
((
item
)
=>
values
.
indexOf
(
item
[
field
])
>
-
1
);
}
else
{
gridOptions
.
data
=
listData
.
value
.
filter
((
item
)
=>
datas
.
some
((
item
)
=>
item
[
field
].
includes
(
item
)));
...
...
@@ -717,13 +715,11 @@
handlePageChange
({
currentPage
:
1
,
pageSize
:
tablePage
.
pageSize
});
}
const
refStPlanManFlow
=
ref
()
const
refStPlanManFlow
=
ref
()
;
function
handleFLow
(
record
:
Recordable
)
{
console
.
log
(
"----------- record"
,
record
);
console
.
log
(
'----------- record'
,
record
);
//window.open(url.value+"&kjzlid="+record.id, '_blank');
refStPlanManFlow
.
value
.
iniPage
(
record
);
}
defineExpose
({
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论