|
@@ -12886,6 +12886,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
seleteCourseUpdate() {
|
|
seleteCourseUpdate() {
|
|
|
|
|
+ if (this.dragType == "unit") return;
|
|
|
let params = {
|
|
let params = {
|
|
|
cid: this.cid,
|
|
cid: this.cid,
|
|
|
};
|
|
};
|
|
@@ -14528,6 +14529,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
dragUnitStart(val, i) {
|
|
dragUnitStart(val, i) {
|
|
|
|
|
+ if (this.timer) clearTimeout(this.timer);
|
|
|
|
|
+ this.timer = null;
|
|
|
this.dragType = "Unit";
|
|
this.dragType = "Unit";
|
|
|
this.oldIndex = i;
|
|
this.oldIndex = i;
|
|
|
this.oldData = val;
|
|
this.oldData = val;
|
|
@@ -14578,8 +14581,13 @@ export default {
|
|
|
newItems.splice(this.newIndex, 0, this.oldData);
|
|
newItems.splice(this.newIndex, 0, this.oldData);
|
|
|
this.unitJson = [...newItems];
|
|
this.unitJson = [...newItems];
|
|
|
this.moveWork(1, this.newIndex, 0, 0, this.oldIndex, 0, 0);
|
|
this.moveWork(1, this.newIndex, 0, 0, this.oldIndex, 0, 0);
|
|
|
|
|
+ console.log('dragType',this.dragType);
|
|
|
this.typeIndex = "";
|
|
this.typeIndex = "";
|
|
|
this.newIndex = "";
|
|
this.newIndex = "";
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.dragType = "";
|
|
|
|
|
+ }, 5000);
|
|
|
|
|
+ // this.dragType = "";
|
|
|
this.dragType = "";
|
|
this.dragType = "";
|
|
|
this.isdrag = "";
|
|
this.isdrag = "";
|
|
|
this.updateWork();
|
|
this.updateWork();
|
|
@@ -14601,11 +14609,16 @@ export default {
|
|
|
this.unitJson = [...newItems];
|
|
this.unitJson = [...newItems];
|
|
|
this.typeIndex = "";
|
|
this.typeIndex = "";
|
|
|
this.newIndex = "";
|
|
this.newIndex = "";
|
|
|
- this.dragType = "";
|
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.dragType = "";
|
|
|
|
|
+ }, 5000);
|
|
|
this.isdrag = "";
|
|
this.isdrag = "";
|
|
|
this.updateWork();
|
|
this.updateWork();
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
}
|
|
}
|
|
|
|
|
+ this.timer = setTimeout(() => {
|
|
|
|
|
+ this.seleteCourseUpdate();
|
|
|
|
|
+ }, 5000);
|
|
|
},
|
|
},
|
|
|
getWorksCount(type, stage, task, tool) {
|
|
getWorksCount(type, stage, task, tool) {
|
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|