Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
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
zhouqian
vue-gjjs
Commits
5edb945f
Commit
5edb945f
authored
Jan 06, 2022
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务列表的查询检验清除
parent
a313c613
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
Event.js
src/model/Trnrel/Event.js
+1
-0
Transaction.js
src/store/Transaction.js
+3
-1
index.js
src/utils/index.js
+15
-0
Inftrnps.vue
src/views/Business/Trnrel/Inftrnps.vue
+1
-1
No files found.
src/model/Trnrel/Event.js
View file @
5edb945f
...
...
@@ -398,6 +398,7 @@ export default {
type
:
'success'
});
}
this
.
$refs
.
paramsForm
.
clearValidate
();
Utils
.
positioningErrorMsg
(
res
.
fieldErrors
,
this
.
$refs
.
paramsForm
.
fields
)
},
...
...
src/store/Transaction.js
View file @
5edb945f
import
Utils
from
"~/utils"
;
const
state
=
{
operateFuns
:
{},
};
...
...
@@ -18,7 +20,7 @@ const actions = {
setOperateFuns
({
commit
},
funs
)
{
return
new
Promise
(
resolve
=>
{
// const id = Symbol("transaction-id");
const
id
=
new
Date
().
valueOf
();
const
id
=
Utils
.
generateUUID
();
commit
(
'ADD_OPERATE_FUN'
,
{
id
,
funs
})
resolve
(
id
)
});
...
...
src/utils/index.js
View file @
5edb945f
...
...
@@ -231,4 +231,18 @@ export default class Utils {
}
}
}
static
generateUUID
()
{
var
d
=
new
Date
().
getTime
();
if
(
window
.
performance
&&
typeof
window
.
performance
.
now
===
"function"
)
{
d
+=
performance
.
now
();
//use high-precision timer if available
}
var
uuid
=
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'
.
replace
(
/
[
xy
]
/g
,
function
(
c
)
{
var
r
=
(
d
+
Math
.
random
()
*
16
)
%
16
|
0
;
d
=
Math
.
floor
(
d
/
16
);
return
(
c
==
'x'
?
r
:
(
r
&
0x3
|
0x8
)).
toString
(
16
);
});
return
uuid
;
}
}
\ No newline at end of file
src/views/Business/Trnrel/Inftrnps.vue
View file @
5edb945f
...
...
@@ -401,7 +401,7 @@
fixed=
"right"
prop=
"display"
label=
"操作"
width=
"
150px
"
width=
"
auto
"
>
<
template
slot=
"header"
>
<c-col
:span=
"11"
style=
"text-align:left"
><span>
操作
</span></c-col>
...
...
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