zhouwx
2024-11-11 346c01add76f64b396594ac7be7d97f9f6dbf813
src/views/onlineEducation/systemManage/company/components/companyDialog.vue
@@ -42,6 +42,7 @@
              :disabled="title === '编辑'"
              placeholder="请输入总课时"
              v-model.trim="state.form.totalPeriod"
              maxlength="10"
              @input="state.form.totalPeriod = state.form.totalPeriod.replace(/[^0-9]/g,'')">
            <template #append >分钟</template>
          </el-input>
@@ -139,7 +140,7 @@
  length.value = value.listLength
  title.value = type === 'add' ? '新增' : type ==='edit' ? '编辑' : '分配课时' ;
  if(type === 'edit' || type === 'distribute') {
    state.form = value;
    state.form = JSON.parse(JSON.stringify(value));
    state.form.totalPeriod = value.totalPeriod / 60;
    state.form.remainPeriod = value.remainPeriod/60;
    startUsername.value = value.username