浏览代码

修改报表设计

lry 1 年之前
父节点
当前提交
1ee169a0d7

+ 1 - 1
industry-system/industry-da/src/main/resources/static/reportSheet/js/report-history.js

@@ -95,7 +95,7 @@ const indexFn = {
 				sheetFormulaBar: false,
 				allowCopy:false,
 				allowUpdate:false,
-				readonly:true,
+				allowEdit:false,
 				cellRightClickConfig: {
 					copy: false, // 复制
 					copyAs: false, // 复制为

+ 8 - 4
industry-system/industry-da/src/main/resources/static/reportSheet/js/src/model/right-menu.js

@@ -44,6 +44,9 @@ layui.define(['layer', 'util', 'jquery', 'form', 'sheetTypew', 'chartRightw', 'i
 				layui.api.addTableTemplate(params).then(json => {
 					if (json.code == 200) {
 						layer.msg('保存报表成功!', {icon: 1})
+						window.parent.postMessage({
+							cmd: 'newsave'
+						}, '*')
 					} else {
 						layer.msg(json.msg, {icon: 2})
 					}
@@ -240,12 +243,13 @@ layui.define(['layer', 'util', 'jquery', 'form', 'sheetTypew', 'chartRightw', 'i
 		callback()
 	}
 	
-	const view = [{
+	const view = [
+		/*{
 		clazz: 'img0',
 		img: 'img/svg/report_saveas.svg',
 		txt: '另存为',
 		event: 'saveas'
-	}, {
+	}, */{
 		clazz: 'img0',
 		img: 'img/svg/report_save.svg',
 		txt: '保存',
@@ -260,12 +264,12 @@ layui.define(['layer', 'util', 'jquery', 'form', 'sheetTypew', 'chartRightw', 'i
 		img: 'img/svg/report_reset.svg',
 		txt: '重置',
 		event: 'reset'
-	}, {
+	}, /*{
 		clazz: 'img1',
 		img: 'img/svg/report_cancel.svg',
 		txt: '关闭',
 		event: 'close'
-	}, {
+	},*/ {
 		hr: true
 	}, {
 		clazz: 'img2',

+ 0 - 1
industry-system/industry-da/src/main/resources/static/reportSheet/js/src/model/sheet-util.js

@@ -70,7 +70,6 @@ layui.define(function(exports) {
 			if (sheetConfig && sheetConfig.data) {
 				option.data = sheetConfig.data
 			}
-			console.log(option)
 			option.hook = {
 				cellEditBefore: function(range) {
 					const cell = luckysheet.getCellValue((range[0].row)[0], (range[0].column)[0], {type: 'v'})

+ 1 - 1
industry-system/industry-da/src/main/resources/static/reportSheet/js/util/constants.js

@@ -350,7 +350,7 @@ const sheetOption = {
 		sort: false, // 排序选区
 		filter: false, // 筛选选区
 		chart: false, // 图表生成
-		image: false, // 插入图片
+		image: true, // 插入图片
 		link: false, // 插入链接
 		data: false, // 数据验证
 		cellFormat: false // 设置单元格格式