Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
aebba1a2
Commit
aebba1a2
authored
Sep 14, 2020
by
DESKTOP-7Q3CA17\86137
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
66a552f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
+21
-1
bpo-admin/app/base/service/impl/ecompanybusiSve.js
+20
-0
bpo-admin/app/front/vues/pages/ecompanybusi/ecompanybusi.html
+1
-1
No files found.
bpo-admin/app/base/service/impl/ecompanybusiSve.js
View file @
aebba1a2
...
...
@@ -5,6 +5,7 @@ const moment = require("moment");
class
EcompanybusiService
extends
ServiceBase
{
constructor
()
{
super
(
ServiceBase
.
getDaoName
(
EcompanybusiService
));
this
.
ecompanyDao
=
system
.
getObject
(
"db.ecompanyDao"
);
}
...
...
@@ -33,9 +34,28 @@ class EcompanybusiService extends ServiceBase {
for
(
var
row
of
page
.
rows
)
{
this
.
handleDate
(
row
,
[
"created_at"
]);
}
await
this
.
setCompany
(
page
.
rows
);
}
return
page
;
}
async
setCompany
(
list
)
{
if
(
!
list
||
list
.
length
==
0
)
{
return
;
}
var
companyIds
=
[];
for
(
var
item
of
list
)
{
companyIds
.
push
(
item
.
ecompany_id
||
0
);
}
var
companyMap
=
await
this
.
ecompanyDao
.
findMapByIds
(
companyIds
,
" id, name, contractMobile "
);
for
(
var
item
of
list
)
{
item
.
ecompany
=
companyMap
[
"id_"
+
(
item
.
ecompany_id
||
0
)];
}
}
}
module
.
exports
=
EcompanybusiService
;
bpo-admin/app/front/vues/pages/ecompanybusi/ecompanybusi.html
View file @
aebba1a2
...
...
@@ -41,7 +41,7 @@
header-cell-style=
"background-color: #F5F5F5;color: #2F2F2F;font-size: 14px;font-weight:400;"
row-style=
"height:50px;"
>
<el-table-column
prop=
"id"
label=
"序号"
:formatter=
"onColFormater"
width=
"80"
align=
"center"
></el-table-column>
<el-table-column
prop=
"ecompany
_id
"
label=
"企业ID"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"ecompany
.name
"
label=
"企业ID"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"etemplate_id"
label=
"模板ID"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"mchtId"
label=
"mchtId"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"mainId"
label=
"mainId"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
...
...
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