From f030d4e89acc8dfca8bf2b9df9ac24ad8f66d06c Mon Sep 17 00:00:00 2001
From: gaoluyang <gaoluyang@rengu.cc>
Date: 星期三, 25 九月 2024 17:32:04 +0800
Subject: [PATCH] 1.编辑模板弹框添加取消按钮
---
src/components/tool/excel.vue | 12 +++++++++++-
src/components/view/b2-standard-template.vue | 4 ++++
2 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/src/components/tool/excel.vue b/src/components/tool/excel.vue
index cb972e4..956fa10 100644
--- a/src/components/tool/excel.vue
+++ b/src/components/tool/excel.vue
@@ -33,6 +33,16 @@
#luckysheet .save:active {
opacity: .7;
}
+ #luckysheet .returnView {
+ width: 50px;
+ height: 26px;
+ background-color: #fff;
+ border: 1px solid #DCDFE6;
+ color: #606266;
+ border-radius: 4px;
+ margin-right: 12px;
+ cursor: pointer;
+ }
</style>
<template>
<div id="luckysheet"></div>
@@ -120,7 +130,7 @@
},
option.myFolderUrl = this.LOCATIONVUE + '/',
// option.functionButton = '<i class="save_i el-icon-info" title="绯荤粺鏀寔鐨勫彉閲忥細
鏍峰搧缂栧彿
鏍峰搧鍨嬪彿
搴忓彿
妫�楠岄」
妫�楠屽瓙椤�
璁惧鍚嶇О
璁惧缂栫爜
鍗曚綅
瑕佹眰鍊�
璇曢獙鏂规硶 | 妫�娴嬫柟娉�
鏈�缁堝��
缁撹
璁$畻鍊�
妫�楠屽��"></i><button onClick="excelExport()" class="save">瀵煎嚭</button><button onClick="excelClosed()" class="save">淇濆瓨</button>'
- option.functionButton = '<i class="save_i el-icon-info" title="绯荤粺鏀寔鐨勫彉閲忥細
鏍峰搧缂栧彿
鏍峰搧鍨嬪彿
搴忓彿
妫�楠岄」
妫�楠屽瓙椤�
璁惧鍚嶇О
璁惧缂栫爜
鍗曚綅
瑕佹眰鍊�
璇曢獙鏂规硶 | 妫�娴嬫柟娉�
鏈�缁堝��
缁撹
璁$畻鍊�
妫�楠屽��"></i><button onClick="excelClosed()" class="save">淇濆瓨</button>'
+ option.functionButton = '<i class="save_i el-icon-info" title="绯荤粺鏀寔鐨勫彉閲忥細
鏍峰搧缂栧彿
鏍峰搧鍨嬪彿
搴忓彿
妫�楠岄」
妫�楠屽瓙椤�
璁惧鍚嶇О
璁惧缂栫爜
鍗曚綅
瑕佹眰鍊�
璇曢獙鏂规硶 | 妫�娴嬫柟娉�
鏈�缁堝��
缁撹
璁$畻鍊�
妫�楠屽��"></i><button onClick="returnView()" class="returnView">鍙栨秷</button><button onClick="excelClosed()" class="save">淇濆瓨</button>'
console.log(luckysheet)
luckysheet.create(option)
},
diff --git a/src/components/view/b2-standard-template.vue b/src/components/view/b2-standard-template.vue
index 87881a2..2d17800 100644
--- a/src/components/view/b2-standard-template.vue
+++ b/src/components/view/b2-standard-template.vue
@@ -132,6 +132,7 @@
this.entityCopy = this.HaveJson(this.componentData.entity)
this.getPower()
window.excelClosed = this.closed
+ window.returnView = this.returnView
// window.excelExport = this.excelExport
},
methods: {
@@ -181,6 +182,9 @@
this.isShow = true
})
},
+ returnView () {
+ this.isShow = false
+ },
closed() {
this.loading = true
let data = luckysheet.toJson()
--
Gitblit v1.9.3