Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
frontend
/
qqxb-self-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f0507da6
authored
Jun 23, 2020
by
miss_lian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
a2319300
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
package-lock.json
src/utils/public.ts
src/views/archives/workInfo.vue
package-lock.json
View file @
f0507da6
...
...
@@ -7144,7 +7144,8 @@
"version"
:
"2.2.2"
,
"resolved"
:
"https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz"
,
"integrity"
:
"sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg=="
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"pify"
:
{
"version"
:
"4.0.1"
,
...
...
src/utils/public.ts
View file @
f0507da6
...
...
@@ -553,3 +553,4 @@ export function toMoney(num:any,isSymbol:boolean=true,isConvertPoint:any=false){
}
}
src/views/archives/workInfo.vue
View file @
f0507da6
...
...
@@ -40,9 +40,24 @@ import { Component } from "vue-property-decorator";
}
})
export
default
class
workInfo
extends
Vue
{
obj
:
object
=
{}
// @Emit('bindSend') send(msg: string){};
obj
:
object
=
{};
sortKey
(
array
:
any
,
key
:
any
)
{
return
array
.
sort
(
function
(
a
:
any
,
b
:
any
)
{
var
x
=
a
[
key
];
var
y
=
b
[
key
];
return
x
>
y
?
-
1
:
x
<
y
?
1
:
0
;
});
}
created
()
{
let
params
=
{
spId
:
this
.
$route
.
query
.
sp_id
,
idNo
:
this
.
$route
.
query
.
id_no
};
this
.
$server
.
EmployeeService
.
getDispatchInfo
(
params
).
then
(
res
=>
{
console
.
log
(
"res======="
+
JSON
.
stringify
(
res
.
workData
));
this
.
sortKey
(
res
.
workDat
,
""
);
});
}
}
</
script
>
...
...
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