zhouwx
2024-09-03 82fbb393cc0afb6f6614c4c032225312712d757a
bug修改
已修改2个文件
已添加1个文件
15 ■■■■ 文件已修改
src/assets/images/user.png 补丁 | 查看 | 原始文档 | blame | 历史
src/views/onlineEducation/count/index.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/onlineEducation/systemManage/company/components/companyDialog.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/images/user.png
src/views/onlineEducation/count/index.vue
@@ -139,7 +139,7 @@
    state.dataList = res.data.list.map(item => {
      return {
        ...item,
        passRate: item.passStudentCount!=null && item.paperStudentCount!=null ? (item.passStudentCount / item.paperStudentCount).toFixed(2) *100 + '%': ''
        passRate: item.passStudentCount  && item.paperStudentCount ? (item.passStudentCount / item.paperStudentCount).toFixed(2) *100 + '%': item.passStudentCount == 0  && item.paperStudentCount == 0? '0%': ''
      }
    })
@@ -186,11 +186,12 @@
//   }, 500)
// }
const setDate = () => {
  let isDate = new Date()
  let sTime = `${isDate.getFullYear()}-${isDate.getMonth() + 1}-${isDate.getDate()-7}`
  let eTime = `${isDate.getFullYear()}-${isDate.getMonth() + 1}-${isDate.getDate()}`
  sTime = `${sTime}`
  eTime = `${eTime}`
  const end = new Date();
  const start = new Date();
  start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
  const sTime = moment(start).format('YYYY-MM-DD')
  const eTime = moment(end).format('YYYY-MM-DD')
  searchTime.value = [sTime,eTime];
  state.queryParams.startTime = searchTime.value[0]+' 00:00:00'
  state.queryParams.endTime = searchTime.value[1]+' 00:00:00'
src/views/onlineEducation/systemManage/company/components/companyDialog.vue
@@ -139,7 +139,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