|
@@ -334,8 +334,12 @@ it .ql-editor,
|
|
></quillEditor>
|
|
></quillEditor>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
- <div class="change_table_btns">
|
|
|
|
- <div @click="CHANGE_TABLE({ tableIndex, type: 1 })">
|
|
|
|
|
|
+ <div class="change_table_btns" :id="`table[${tableIndex}]`">
|
|
|
|
+ <div
|
|
|
|
+ @click="
|
|
|
|
+ CHANGE_TABLE({ tableIndex, type: 1, id: `table[${tableIndex}]` })
|
|
|
|
+ "
|
|
|
|
+ >
|
|
<i class="el-icon-plus"></i>
|
|
<i class="el-icon-plus"></i>
|
|
新增标题
|
|
新增标题
|
|
</div>
|
|
</div>
|
|
@@ -861,7 +865,7 @@ export default {
|
|
clearTimeout(this.timer);
|
|
clearTimeout(this.timer);
|
|
this.timer = null;
|
|
this.timer = null;
|
|
}, 500);
|
|
}, 500);
|
|
- const { tableIndex, type } = val;
|
|
|
|
|
|
+ const { tableIndex, type, id } = val;
|
|
switch (type) {
|
|
switch (type) {
|
|
case 1:
|
|
case 1:
|
|
this.scaleData.klScaleParent.splice(
|
|
this.scaleData.klScaleParent.splice(
|
|
@@ -869,6 +873,11 @@ export default {
|
|
0,
|
|
0,
|
|
JSON.parse(JSON.stringify(defaultTable))
|
|
JSON.parse(JSON.stringify(defaultTable))
|
|
);
|
|
);
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ const top = document.getElementById(id).getBoundingClientRect().top;
|
|
|
|
+ this.$emit("scrollTo", top);
|
|
|
|
+ }, 50);
|
|
|
|
+
|
|
break;
|
|
break;
|
|
case -1:
|
|
case -1:
|
|
this.$delete(this.scaleData.klScaleParent, tableIndex);
|
|
this.$delete(this.scaleData.klScaleParent, tableIndex);
|