Minor bugfixes
This commit is contained in:
parent
46218d2f2c
commit
affd1720f8
2
amd/build/studyplan-editor-components.min.js
vendored
2
amd/build/studyplan-editor-components.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1906,6 +1906,15 @@ export default {
|
||||||
slotkey(){
|
slotkey(){
|
||||||
return `${this.type}'-'${this.line.id}-${this.slotindex}-${this.layer}`;
|
return `${this.type}'-'${this.line.id}-${this.slotindex}-${this.layer}`;
|
||||||
},
|
},
|
||||||
|
itemidx(){
|
||||||
|
for(const ix in this.value){
|
||||||
|
const itm = this.value[ix];
|
||||||
|
if(itm.layer == this.layer){
|
||||||
|
return ix;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
},
|
||||||
item(){
|
item(){
|
||||||
for(const ix in this.value){
|
for(const ix in this.value){
|
||||||
const itm = this.value[ix];
|
const itm = this.value[ix];
|
||||||
|
@ -2132,7 +2141,7 @@ export default {
|
||||||
:data="item"
|
:data="item"
|
||||||
:type="makeType(item)"
|
:type="makeType(item)"
|
||||||
@cut="onCut"
|
@cut="onCut"
|
||||||
><t-item v-model="item" :plan="plan" :page='page' :period='period' :maxspan='maxSpan()'></t-item
|
><t-item v-model="value[itemidx]" :plan="plan" :page='page' :period='period' :maxspan='maxSpan()'></t-item
|
||||||
></drag
|
></drag
|
||||||
><drop v-else
|
><drop v-else
|
||||||
:class="'t-slot-drop '+type + (layer > 0?' secondary':' primary')"
|
:class="'t-slot-drop '+type + (layer > 0?' secondary':' primary')"
|
||||||
|
@ -2165,12 +2174,12 @@ export default {
|
||||||
></template
|
></template
|
||||||
></drop>
|
></drop>
|
||||||
<t-item-timing-checker hidden
|
<t-item-timing-checker hidden
|
||||||
v-if="item && item.course"
|
v-if="value && value[itemidx] && value[itemidx].course"
|
||||||
ref="timingChecker"
|
ref="timingChecker"
|
||||||
:maxspan="maxSpan()"
|
:maxspan="maxSpan()"
|
||||||
:page="page"
|
:page="page"
|
||||||
:period="period"
|
:period="period"
|
||||||
v-model="item"
|
v-model="value[itemidx]"
|
||||||
></t-item-timing-checker>
|
></t-item-timing-checker>
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user