|
@@ -138,13 +138,15 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
config: {
|
|
|
- data: [],
|
|
|
+ data: [], //单元格类型 1日期格 2指标格 3自定义输入 4插入值 有关联的日期和指标格 5弹窗里的插入值 有关联日期格
|
|
|
contextMenuOption: [],
|
|
|
},
|
|
|
|
|
|
- selectCell: {},
|
|
|
+ selectCell: {},//选中单元格info
|
|
|
|
|
|
- rightClickCell: {},
|
|
|
+ rightClickCell: {},//右键单元格 key c r
|
|
|
+
|
|
|
+ insertTargetCell: {},//选择右键插入指标的单元格 可和右键单元格不一样 key c r
|
|
|
|
|
|
insertRelationArr: [],
|
|
|
|
|
@@ -185,8 +187,8 @@ export default {
|
|
|
if(!this.insertRelationArr.find(_ => _.key===key)) return
|
|
|
let { relation_date,relation_edb } = this.insertRelationArr.find(_ => _.key===key)
|
|
|
|
|
|
- setRelationStyle(relation_date)
|
|
|
- setRelationStyle(relation_edb)
|
|
|
+ relation_date.key && setRelationStyle(relation_date)
|
|
|
+ relation_edb.key && setRelationStyle(relation_edb)
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -484,11 +486,18 @@ export default {
|
|
|
this.hideContextMenu()
|
|
|
},
|
|
|
|
|
|
- /* 打开选择指标弹窗 */
|
|
|
+ /* 打开选择指标弹窗
|
|
|
+ 打开弹窗后仍可以在页面上点击 多存一个选择指标时的信息 */
|
|
|
selectTargetOpen() {
|
|
|
+ this.insertTargetCell = this.rightClickCell;
|
|
|
this.isSelectTargetValueDialog = true;
|
|
|
},
|
|
|
|
|
|
+ /* 插入选择指标的值 */
|
|
|
+ insertSelectData() {
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
/* 清除单元格内容 格式 关联关系 */
|
|
|
clearCell() {
|
|
|
if(this.selectCell.DataType===4) resetRelationStyle();
|