Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-ui
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
pda
pda-ui
Commits
9194cf61
Commit
9194cf61
authored
Mar 01, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UReport报表调整
parent
e7e91326
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
19 deletions
+42
-19
index.vue
src/views/mes/report/index.vue
+42
-19
No files found.
src/views/mes/report/index.vue
View file @
9194cf61
...
@@ -15,17 +15,17 @@
...
@@ -15,17 +15,17 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<!--
<el-row
:gutter=
"10"
class=
"mb8"
>
--
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<!--
<el-col
:span=
"1.5"
>
--
>
<el-col
:span=
"1.5"
>
<!--
<el-button-->
<el-button
<!-- type="primary"-->
type=
"primary"
<!-- plain-->
plain
<!-- icon="el-icon-plus"-->
icon=
"el-icon-plus"
<!-- size="mini"-->
size=
"mini"
<!-- @click="handleAdd"-->
@
click=
"handleAdd"
<!-- v-hasPermi="['ureport:add']"-->
v-hasPermi=
"['ureport:add']"
<!-- >新增
</el-button>
--
>
>
新增
</el-button
>
<!--
</el-col>
--
>
</el-col
>
<!--
<el-col
:span=
"1.5"
>
-->
<!--
<el-col
:span=
"1.5"
>
-->
<!--
<el-button-->
<!--
<el-button-->
<!-- type="success"-->
<!-- type="success"-->
...
@@ -58,12 +58,13 @@
...
@@ -58,12 +58,13 @@
<!-- v-hasPermi="['ureport:export']"-->
<!-- v-hasPermi="['ureport:export']"-->
<!-- >导出
</el-button>
-->
<!-- >导出
</el-button>
-->
<!--
</el-col>
-->
<!--
</el-col>
-->
<!--
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
--
>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar
>
<!--
</el-row>
--
>
</el-row
>
<el-table
v-loading=
"loading"
:data=
"listData"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"listData"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"报表名称"
align=
"center"
prop=
"name"
/>
<el-table-column
label=
"报表名称"
align=
"center"
prop=
"name"
/>
<el-table-column
label=
"模板类型"
align=
"center"
prop=
"reportType"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"180"
>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
...
@@ -74,15 +75,23 @@
...
@@ -74,15 +75,23 @@
<
span
>
{{
parseTime
(
scope
.
row
.
updateTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
span
>
{{
parseTime
(
scope
.
row
.
updateTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"备注"
align
=
"center"
prop
=
"remark"
/>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
<
el
-
button
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
icon
=
"el-icon-edit"
icon
=
"el-icon-edit"
@
click
=
"handlePreview(scope.row.name)"
@
click
=
"handleDesigner(scope.row.name)"
v
-
hasPermi
=
"['mes:report:edit']"
>
设计
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
@
click
=
"handleUpdate(scope.row)"
v
-
hasPermi
=
"['mes:report:edit']"
v
-
hasPermi
=
"['mes:report:edit']"
>
预览
<
/el-button
>
>
修改
<
/el-button
>
<
el
-
button
<
el
-
button
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
...
@@ -105,9 +114,22 @@
...
@@ -105,9 +114,22 @@
<!--
添加或修改报表管理对话框
-->
<!--
添加或修改报表管理对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"500px"
append
-
to
-
body
>
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"500px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"80px"
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"
${comment
}
"
prop
=
"name"
>
<
el
-
form
-
item
label
=
"
报表名称
"
prop
=
"name"
>
<
el
-
input
v
-
model
=
"form.name"
placeholder
=
"请输入报表名称"
/>
<
el
-
input
v
-
model
=
"form.name"
placeholder
=
"请输入报表名称"
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"报表类型"
prop
=
"reportType"
>
<
el
-
select
v
-
model
=
"form.reportType"
placeholder
=
"请选择模板类型"
>
<
el
-
option
v
-
for
=
"dict in dict.type.sys_report_type"
:
key
=
"dict.value"
:
label
=
"dict.label"
:
value
=
"dict.value"
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remark"
>
<
el
-
input
v
-
model
=
"form.remark"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
/el-form
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
type
=
"primary"
@
click
=
"submitForm"
>
确
定
<
/el-button
>
<
el
-
button
type
=
"primary"
@
click
=
"submitForm"
>
确
定
<
/el-button
>
...
@@ -122,6 +144,7 @@ import { listReport, getReport, delReport, addReport, updateReport } from "@/api
...
@@ -122,6 +144,7 @@ import { listReport, getReport, delReport, addReport, updateReport } from "@/api
export
default
{
export
default
{
name
:
"ureport"
,
name
:
"ureport"
,
dicts
:
[
"sys_report_type"
,
"sys_yes_no"
],
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
...
@@ -213,8 +236,8 @@ export default {
...
@@ -213,8 +236,8 @@ export default {
this
.
title
=
"添加报表管理"
;
this
.
title
=
"添加报表管理"
;
}
,
}
,
/** 报表预览 */
/** 报表预览 */
handle
Preview
(
name
)
{
handle
Designer
(
name
)
{
window
.
open
(
`${this.website.reportUrl
}
/
preview
?_u=mysql:`
+
name
)
window
.
open
(
`${this.website.reportUrl
}
/
designer
?_u=mysql:`
+
name
)
}
,
}
,
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
...
@@ -237,7 +260,7 @@ export default {
...
@@ -237,7 +260,7 @@ export default {
this
.
getList
();
this
.
getList
();
}
);
}
);
}
else
{
}
else
{
addReport
(
this
.
form
).
then
(
response
=>
{
addReport
(
{...
this
.
form
,
'isPrintTemplate'
:
'1'
}
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"新增成功"
);
this
.
$modal
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
...
...
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