|
@@ -867,7 +867,7 @@ export default {
|
|
* @param tableIndex :当前表格
|
|
* @param tableIndex :当前表格
|
|
* @param type :类型 1:新增;-1:删除;up:上移;down:下移
|
|
* @param type :类型 1:新增;-1:删除;up:上移;down:下移
|
|
*/
|
|
*/
|
|
- CHANGE_TABLE(val) {
|
|
|
|
|
|
+ async CHANGE_TABLE(val) {
|
|
// 节流: 阻止用户频繁点击
|
|
// 节流: 阻止用户频繁点击
|
|
if (this.timer) return;
|
|
if (this.timer) return;
|
|
this.timer = setTimeout(() => {
|
|
this.timer = setTimeout(() => {
|
|
@@ -875,6 +875,7 @@ export default {
|
|
this.timer = null;
|
|
this.timer = null;
|
|
}, 500);
|
|
}, 500);
|
|
const { tableIndex, type, id } = val;
|
|
const { tableIndex, type, id } = val;
|
|
|
|
+
|
|
switch (type) {
|
|
switch (type) {
|
|
case 1:
|
|
case 1:
|
|
this.scaleData.klScaleParent.splice(
|
|
this.scaleData.klScaleParent.splice(
|
|
@@ -1048,7 +1049,7 @@ export default {
|
|
tableIndex
|
|
tableIndex
|
|
].klScaleSaveGroup.filter((item) => item.issueId === issueId);
|
|
].klScaleSaveGroup.filter((item) => item.issueId === issueId);
|
|
copyIssueData = JSON.parse(JSON.stringify(copyIssueData));
|
|
copyIssueData = JSON.parse(JSON.stringify(copyIssueData));
|
|
- console.dir(copyIssueData)
|
|
|
|
|
|
+ console.dir(copyIssueData);
|
|
let newIssueIdArrIssue = [];
|
|
let newIssueIdArrIssue = [];
|
|
copyIssueData.forEach((item, i, arr) => {
|
|
copyIssueData.forEach((item, i, arr) => {
|
|
if (i === 0 || item.issueId !== arr[i - 1].issueId) {
|
|
if (i === 0 || item.issueId !== arr[i - 1].issueId) {
|
|
@@ -1092,18 +1093,22 @@ export default {
|
|
]);
|
|
]);
|
|
},
|
|
},
|
|
resizeTable() {
|
|
resizeTable() {
|
|
- this.$refs.ScaleTable.forEach((item) => {
|
|
|
|
- item.resizeTable();
|
|
|
|
|
|
+ console.log("!!!!");
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.ScaleTable.forEach((item) => {
|
|
|
|
+ item.resizeTable();
|
|
|
|
+ });
|
|
|
|
+ this.$refs.ScoreResultsTable &&
|
|
|
|
+ this.$refs.ScoreResultsTable.resizeTable();
|
|
|
|
+ // this.$refs.ScaleTable.resizeTable();
|
|
});
|
|
});
|
|
- this.$refs.ScoreResultsTable &&
|
|
|
|
- this.$refs.ScoreResultsTable.resizeTable();
|
|
|
|
- // this.$refs.ScaleTable.resizeTable();
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
scaleData: {
|
|
scaleData: {
|
|
handler() {
|
|
handler() {
|
|
console.log("监听");
|
|
console.log("监听");
|
|
|
|
+ this.resizeTable();
|
|
},
|
|
},
|
|
deep: true
|
|
deep: true
|
|
},
|
|
},
|