Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
190a1bbf
authored
2025-09-09 14:32:58 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
导入文件数据显示格式化后的值
1 parent
b6f64175
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
src/views/data_anonymization/anonTaskCreate.vue
src/views/data_anonymization/anonTaskCreate.vue
View file @
190a1bb
...
...
@@ -424,7 +424,7 @@ const formatterPreviewDate = (row, info) => {
/** 解析的总的表格数据,方便后面修改抽样比例时使用 */
const
parseFileDataSum
:
any
=
ref
([]);
const
currentSheet
:
any
=
ref
();
const
parseFileData
=
(
fileRaw
)
=>
{
sampleTableDataLoading
.
value
=
true
;
fileRaw
.
arrayBuffer
().
then
(
async
(
f
)
=>
{
...
...
@@ -432,6 +432,7 @@ const parseFileData = (fileRaw) => {
raw
:
false
,
cellDates
:
true
});
const
sheet
=
wb
.
Sheets
[
wb
.
SheetNames
[
0
]];
currentSheet
.
value
=
sheet
;
const
json
:
any
[]
=
XLSX
.
utils
.
sheet_to_json
(
sheet
,
{
header
:
1
});
if
(
json
.
length
==
0
)
{
sampleTableFields
.
value
=
[];
...
...
@@ -493,7 +494,10 @@ const transferSampleData = () => {
let
object
=
{};
parseFileDataSum
.
value
[
0
].
forEach
((
chName
,
col
)
=>
{
let
name
=
sampleTableFields
.
value
[
col
].
enName
;
object
[
name
]
=
info
[
col
];
var
cellRef
=
XLSX
.
utils
.
encode_cell
({
r
:
row
+
1
,
c
:
col
});
var
cell
=
currentSheet
.
value
[
cellRef
];
let
v
=
cell
.
w
||
info
[
col
];
object
[
name
]
=
v
;
});
return
object
;
});
...
...
@@ -1122,7 +1126,7 @@ onUnmounted(() => {
<div
class=
"value-desc"
><span
style=
"font-weight: 600;margin-right: 8px;"
>
环境重标识攻击概率
</span>
{{
'pr(context)=' +
changeNum(analysisResultInfo.envReAttackPr || 0, 2)
}}
}}
</div>
<div
class=
"value-desc"
><span
style=
"font-weight: 600;margin-right: 8px;"
>
重标识总体风险
</span>
{{
'R=Rc*pr(context)=' +
...
...
@@ -1289,7 +1293,7 @@ onUnmounted(() => {
.table-v2-main
{
width
:
100%
;
height
:
240px
;
margin-top
:
2px
;
.main-placeholder
{
height
:
100%
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment