Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
ec-report-refactor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lihuizhen
ec-report-refactor
Commits
75ca4cc3
Commit
75ca4cc3
authored
Oct 28, 2022
by
leon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: remove eval
parent
4eeb712e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
eval5.js
static/plugin/eval5/eval5.js
+0
-7
common.js
utils/common.js
+6
-6
No files found.
static/plugin/eval5/eval5.js
deleted
100644 → 0
View file @
4eeb712e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
utils/common.js
View file @
75ca4cc3
import
{
Function
}
from
'../static/plugin/eval5/eval5.js'
//
import { Function } from '../static/plugin/eval5/eval5.js'
const
install
=
(
Vue
,
vm
)
=>
{
const
install
=
(
Vue
,
vm
)
=>
{
/**
/**
* 数据转换
* 数据转换
*/
*/
const
converFunction
=
(
func
,
data
)
=>
{
//
const converFunction = (func, data) => {
if
(
!
func
)
return
//
if(!func) return
return
new
Function
(
'"use strict";return ('
+
func
+
')'
)()(
data
);
//
return new Function('"use strict";return (' + func + ')')()(data);
}
//
}
/**
/**
* 补足数字位数
* 补足数字位数
...
@@ -100,7 +100,7 @@ const install = (Vue, vm) => {
...
@@ -100,7 +100,7 @@ const install = (Vue, vm) => {
}
}
vm
.
$u
.
common
=
{
vm
.
$u
.
common
=
{
converFunction
,
//
converFunction,
fillDigit
,
fillDigit
,
toThousands
,
toThousands
,
dateFormat
,
dateFormat
,
...
...
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