Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
klck
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
位宇华
klck
Commits
b53f790c
Commit
b53f790c
authored
Aug 28, 2023
by
lenovo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
历史模块添加详情
parent
a38a80e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
23 deletions
+48
-23
ruoyi-ui/src/views/system/historydata/index.vue
ruoyi-ui/src/views/system/historydata/index.vue
+48
-23
No files found.
ruoyi-ui/src/views/system/historydata/index.vue
View file @
b53f790c
...
...
@@ -98,9 +98,30 @@
:limit.sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<div
id=
"luckysheet"
:style=
"{ position: positionValue, top: '0', left: '0', right: '0', bottom: '0' }"
></div>
</div>
</template>
<
style
>
#luckysheet_info_detail_title
{
display
:
none
;
}
#luckysheet_info_detail_update
{
display
:
none
;
}
#luckysheet_info_detail_save
{
display
:
none
;
}
.luckysheet-share-logo
{
display
:
none
;
}
</
style
>
<
script
>
import
{
listHistorydata
,
getHistorydata
,
delHistorydata
,
addHistorydata
,
updateHistorydata
,
exportHistorydata
}
from
"
@/api/system/historydata
"
;
import
Editor
from
'
@/components/Editor
'
;
...
...
@@ -115,6 +136,8 @@ export default {
},
data
()
{
return
{
positionValue
:
'
static
'
,
// 遮罩层
loading
:
true
,
// 选中数组
...
...
@@ -155,6 +178,13 @@ export default {
},
created
()
{
this
.
getList
();
this
.
positionValue
=
"
static
"
;
},
mounted
()
{
window
.
handleReturnButtonClick
=
this
.
handleReturnButtonClick
;
},
methods
:
{
/** 查询 历史数据列表 */
...
...
@@ -241,20 +271,13 @@ export default {
});
},
handleDetails
(
row
)
{
getHistorydata
(
row
.
id
).
then
(
response
=>
{
this
.
TemplateId
=
response
.
rows
;
this
.
luckyLook
();
})
},
/**展示详情luckysheet */
luckyLook
()
{
this
.
positionValue
=
'
absolute
'
;
luckysheet
.
destroy
();
luckysheet
.
create
({
container
:
"
luckysheet
"
,
// Luckysheet 的容器元素 ID
title
:
this
.
TemplateId
[
0
]
.
historyName
,
// Excel 文件名
data
:
JSON
.
parse
(
this
.
TemplateId
[
0
]
.
historyContent
),
// Excel 数据
title
:
row
.
historyName
,
// Excel 文件名
data
:
JSON
.
parse
(
row
.
historyContent
),
// Excel 数据
showtoolbar
:
false
,
//是否第二列显示工具栏
showinfobar
:
true
,
//是否显示顶部名称栏
showsheetbar
:
false
,
//是否显示底部表格名称区域
...
...
@@ -262,7 +285,9 @@ export default {
pointEditUpdate
:
null
,
//编辑器表格更新函数
allowEdit
:
false
,
//作用:是否允许前台编辑
functionButton
:
'
<button id="exportButton" class="btn btn-primary" style=" padding:3px 6px; font-size: 16px;width: 100px;height: 27px; margin-right: 85px;" onclick="handleReturnButtonClick()">返回</button>
'
,
});
},
/**详情返回按钮 */
handleReturnButtonClick
()
{
...
...
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