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
c413900f
Commit
c413900f
authored
May 27, 2020
by
zhaoxiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
a174098c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
bpo-admin/app/base/controller/impl/etemplateCtl.js
+5
-4
bpo-admin/app/front/vues/pages/etemplateadminmy/etemplateadminmy.html
+9
-9
No files found.
bpo-admin/app/base/controller/impl/etemplateCtl.js
View file @
c413900f
...
...
@@ -79,7 +79,7 @@ class EtemplateCtl extends CtlBase {
fileName
:
"二维码-"
+
moment
().
format
(
"YYYYMMDD"
)
+
".csv"
,
rows
:
page
.
rows
,
opts
:
{
fields
:
[
'id'
,
'ecompany.name'
,
'nameA'
,
'qrcodeurl'
],
fields
:
[
'id'
,
'ecompany.name'
,
'nameA'
,
'qrcodeurl'
,
'begUrl'
],
unwind
:
[
'ecompany'
],
excelStrings
:
true
,
unwindBlank
:
true
...
...
@@ -88,7 +88,8 @@ class EtemplateCtl extends CtlBase {
"id"
:
"编号"
,
'ecompany.name'
:
"公司名"
,
'nameA'
:
"签约主体"
,
'qrcodeurl'
:
"二维码"
'qrcodeurl'
:
"二维码"
,
'begUrl'
:
"签约地址"
},
};
await
this
.
excelClient
.
exportCsv
(
req
,
res
,
csvobj
);
...
...
@@ -178,12 +179,12 @@ class EtemplateCtl extends CtlBase {
fileName
:
"二维码-"
+
moment
().
format
(
"YYYYMMDD"
)
+
".csv"
,
rows
:
page
.
rows
,
opts
:
{
fields
:
[
'id'
,
'ecompany.name'
,
'nameA'
,
'qrcodeurl'
],
fields
:
[
'id'
,
'ecompany.name'
,
'nameA'
,
'qrcodeurl'
,
'begUrl'
],
unwind
:
[
'ecompany'
],
excelStrings
:
true
,
unwindBlank
:
true
},
headers
:
{
'id'
:
'编号'
,
'ecompany.name'
:
"公司名"
,
'nameA'
:
"签约主体"
,
'qrcodeurl'
:
"二维码"
},
headers
:
{
'id'
:
'编号'
,
'ecompany.name'
:
"公司名"
,
'nameA'
:
"签约主体"
,
'qrcodeurl'
:
"二维码"
,
'begUrl'
:
"签约地址"
},
};
await
this
.
excelClient
.
exportCsv
(
req
,
res
,
csvobj
);
}
catch
(
e
)
{
...
...
bpo-admin/app/front/vues/pages/etemplateadminmy/etemplateadminmy.html
View file @
c413900f
...
...
@@ -30,7 +30,7 @@
</el-option>
</el-select>
</div>
<div
style=
"float:left;margin-top:5px;"
>
<el-button
@
click=
"resetSearch()"
style=
"float:right;width:68px;height:36px;background-color: #54C4A7;color: #FFFFFF;font-size: 14px;padding-top:10px;"
>
重置
</el-button>
<el-button
@
click=
"opSearch"
style=
"float:right;width:68px;height:36px;background-color: #54C4A7;color: #FFFFFF;font-size: 14px;padding-top:10px;margin-right: 10px;"
>
搜索
</el-button>
...
...
@@ -46,7 +46,7 @@
<el-button
v-if=
"addAuth"
@
click=
"openEdit()"
style=
"float:right;width:100px;height:36px;color: #FFFFFF;font-weight: 400;border-radius: 4px;font-size: 14px;background-color: #59C1A6;padding-top:11px"
>
新增模板
</el-button>
</div>
<div>
<el-table
<el-table
stripe
fix=
"true"
:data=
"search.list"
...
...
@@ -59,6 +59,7 @@
<el-table-column
prop=
"name"
label=
"模板名称"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"ecompany.name"
label=
"公司名称"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"nameA"
label=
"签约主体"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"begUrl"
label=
"签约地址"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
label=
"二维码"
>
<template
slot-scope=
"scope"
>
<a
v-if=
"scope.row.qrcodeurl"
:href=
"scope.row.qrcodeurl"
target=
"_blank"
style=
"text-decoration: none;color:#59C1A6;font-size: 14px;"
>
二维码
</a>
...
...
@@ -69,13 +70,13 @@
<a
v-if=
"scope.row.filepath"
:href=
"scope.row.filepath"
target=
"_blank"
style=
"text-decoration: none;color:#59C1A6;font-size: 14px;"
>
查看
</a>
</template>
</el-table-column>
<el-table-column
prop=
"filekey"
label=
"模板key"
:formatter=
"onColFormater"
align=
"center"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"created_at"
label=
"创建日期"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"updated_at"
label=
"修改日期"
:formatter=
"onColFormater"
align=
"center"
></el-table-column
>
<el-table-column
label=
"操作"
align=
"center"
>
<!-- <el-table-column prop="updated_at" label="修改日期" :formatter="onColFormater" align="center" ></el-table-column>--
>
<el-table-column
label=
"操作"
align=
"center"
>
<template
slot-scope=
"scope"
>
<a
v-if=
"updAuth"
href=
"javascript:;"
@
click=
"openEdit(scope.row.id)"
style=
"text-decoration: none;color:#59C1A6;font-size: 14px;"
>
修改
</a>
<a
v-if=
"updAuth"
href=
"javascript:;"
@
click=
"openEdit(scope.row.id)"
style=
"text-decoration: none;color:#59C1A6;font-size: 14px;"
>
修改
</a>
</template>
</el-table-column>
</el-table>
...
...
@@ -132,7 +133,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"签约主体:"
prop=
"nameA"
>
<el-input
v-model=
"etemplate.nameA"
placeholder=
"请输入签约主体"
maxlength=
"50"
style=
"width:468px;"
clearable
></el-input>
</el-form-item>
...
...
@@ -154,4 +155,4 @@
</div>
</el-dialog>
</div>
</gsb-pcpage>
\ No newline at end of file
</gsb-pcpage>
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