123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <script type="text/javascript">
- // 隐藏试卷
- function oprateExam(examGroupId,flag){
- if (examGroupId) {
- layer.msg('未找到周周练id',{
- icon: 5
- }, function(){
- layer.closeAll();
- });
- }
- var msg = '您确定要隐藏该试卷吗?';
- if (flag == 0) {
- msg = '您确定要恢复该试卷吗?';
- }
- layer.msg(msg, {
- time: 0,
- btn: ['确定', '取消'],
- yes: function(index){
- layer.close(index);
- $.post('<?php echo $this->createUrl("third/oprateexam");?>',{exam_group_id:examGroupId,flag:flag},function(data){
- var obj = JSON.parse(data);
- if (obj.success == 1) {
- location.reload();
- } else {
- layer.msg(obj.message,{
- icon: 5
- }, function(){
- layer.closeAll();
- });
- // layer.msg(obj.message);
- }
- });
- }
- });
- }
-
- //制卡
- function createCard(homeworkId) {
- $.ajax({
- url: "<?php echo $this->createUrl('homework/getCardUrl');?>",
- type: "POST",
- dataType: "json",
- data: {
- homeworkId: homeworkId
- },
- success: function (rs){
- if(rs.status==1){
- location.href=rs.data
- }
- },
- error: function (data, status, e){ //服务器响应失败处理函数
- layer.msg('返回失败!',{
- icon: 1
- }, function(){
- layer.closeAll();
- });
- }
- });
- }
- //打印
- function printOnline(url,name,id) {
- let $param={"typeId":2001,"params":{"name":name,"url":url}};
- $.post("<?php echo $this->createUrl('homework/updateOnlinePaperPrintTime');?>", { eid: id } );
- evaluationClient.BulkPrintPDF(JSON.stringify($param))
- }
- //下载
- function downloadOnline(id) {
- data={
- "exam_id":id,
- "homework":1
- };
- $.post("<?php echo $this->createUrl('homework/updateOnlinePaperPrintTime');?>", { eid: id } );
- evaluationClient.NewDownLoadPDF(JSON.stringify(data));
- }
- </script>
|