Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

增加截止日期等小功能#11

Merged
itning merged 25 commits intoitning:masterfrom
tomriddle1234:restore
Aug 29, 2019
Merged

增加截止日期等小功能#11
itning merged 25 commits intoitning:masterfrom
tomriddle1234:restore

Conversation

@tomriddle1234
Copy link
Copy Markdown
Contributor

@tomriddle1234 tomriddle1234 commented Aug 28, 2019

  1. 管理员可设置截止日期,日期UI模块用的是Bootstrap-datetimepicker 3 v4,截止日期过后学生无法上传(无法点击按钮),需要改动一下数据库
ALTER TABLE `shw`.`orderinfo` 
ADD COLUMN `odeadline` DATETIME NOT NULL DEFAULT '2022-01-01 00:00:00' AFTER `otime`;
  1. 界面小优化,为删除添加一些确定对话框
  2. 作业名称可以设置连接
  3. 上传文件设置有一定改动,请看一下
 $("#file_ID").fileinput({
        language: 'zh',
        uploadUrl: "fileup", //上传后台操作的方法
        uploadAsync: false, //设置上传同步异步 当前同步
        maxFileSize: 51200, // 50MB now, this in KB,
        minFileSize: 2, // 阻止过小文件上传
        maxFileCount: 3,
        dropZoneTitle: "拖拽文件到这里 &hellip;<br>文件名格式示例: 学号_姓名_文件内容.zip<br>支持最多3个文件同时上传<br>上传文件会被自动打包<br>仅允许上传zip/rar/7z文件<br>总大小不超过50MB",
        allowedFileExtensions: ['zip', 'rar', '7z'], //限制上传文件后缀
        uploadExtraData: {"file_subject": "file_subjectfile_subjectfile_subject"}
    });
  1. 增加了编辑作业功能,可以改课程,名称和截止日期
  2. 原来的科目我全部改成了课程,原来的批次全改为作业名称,一些文字上的改动

@itning itning merged commit cd8a4fd into itning:master Aug 29, 2019
@itning itning self-requested a review August 29, 2019 03:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants