a-modal.dm-wrap(:visible="visible",title="分配实验",width="680px",@cancel="handleCancel")
template(#footer)
a-button(@click="handleCancel") 取消
a-button(type="primary",@click="handleConfirm",:loading="saving") 确定
a-form(:model="formState",:wraper-col="{span:21}",:label-col="{span:3}")
Row()
Col(span="12")
a-form-item(label="开始时间",:label-col="{span:6}",:wraper-col="{span:18}",v-bind="formState.startTime")
a-date-picker(v-model:value="formState.startTime",:disabledDate="startDisabled",:show-time="{format: 'HH:mm'}")
Col(span="12")
a-form-item(label="结束时间",:label-col="{span:6}",:wraper-col="{span:18}",v-bind="formState.endTime")
a-date-picker(v-model:value="formState.endTime",:disabledDate="endDisabled",:show-time="{format: 'HH:mm'}")
a-form-item(label="实验时长")
a-input-number(v-model:value="formState.runStageTotalTime")
ExclamationCircleOutlined(style="margin:0 8px")
span 标准时长为20分钟,前后可增减范围为20分钟。
Row()
Col(span="6")
a-form-item(label="下载报告",:label-col="{span:12}",,:wraper-col="{span:12}")
a-switch(v-model:checked="formState.viewReport")
Col(span="6")
a-form-item(label="查看答案",:label-col="{span:12}",,:wraper-col="{span:12}")
a-switch(v-model:checked="formState.viewAnswer")
a-form-model-item(
label='选择班级',
:labelCol='{ span: 3 }',
:wrapperCol='{ span: 21 }'
)
.ant-input(
style='margin:4px 0;display:block;height:auto;min-height:34px;'
)
a-tag(
v-for='cla in checkedClass',
:key='cla.id',
closable,
@close='handleTagClose(cla.id)'
) {{ cla.name }}
.dic-main
.dic-left
template(v-if='classList.length')
.dicl-item(
v-for='(cla, claIdx) in classList',
:key='cla.id',
@click='handleClassClick(cla, claIdx)'
)
a-checkbox(
v-model:checked='cla.checked',
@change='handleClassChange($event, claIdx)',
:indeterminate="cla.indeterminate",
:disabled='!cla.classMemberList.length || cla.disable',
style='margin-right:4px'
)
span {{ cla.name }}
.dic-right
template(v-if='classList.length')
.dicr-item(
v-for='stu in classList[activeClassIdx].classMemberList',
:key='stu.userId'
)
a-checkbox(v-model:checked='stu.checked',@change="handleStuChange")
span.dicr-text {{ stu.name }}