Quellcode durchsuchen

增加新建项目时,没权限的提示,为日程增加小点处理

guohh vor 4 Jahren
Ursprung
Commit
0f3b697b65

+ 39 - 10
2020/x-3/biz/css/base-ghh.css

@ -1539,26 +1539,20 @@ a.common-color-red,
1539 1539
  font-size: 0.16rem;
1540 1540
  font-weight: 500;
1541 1541
  color: #fff;
1542
  line-height: .36rem;
1542
  line-height: .4rem;
1543 1543
  opacity: .85;
1544 1544
}
1545 1545
1546 1546
.calendar-day-table .table-tr .table-td .day {
1547
  width: .36rem;
1548
  height: .36rem;
1547
  width: .4rem;
1548
  height: .4rem;
1549 1549
  margin: 0 auto;
1550 1550
  border-radius: 50%;
1551 1551
}
1552 1552
1553
/*
1554 1553
.calendar-day-table .table-tr .table-td.today .day {
1555
  background-color: rgba(46, 142, 255, 0.1);
1556
}
1557
1558
.calendar-day-table .table-tr .table-td.today .num {
1559
  color: #2E8EFF;
1554
  border: 1px solid rgba(255, 255, 255, .35);
1560 1555
}
1561
*/
1562 1556
1563 1557
.calendar-day-table .table-tr .table-td.sltday .day {
1564 1558
  background-color: #4690FF;
@ -1574,6 +1568,21 @@ a.common-color-red,
1574 1568
  opacity: 1;
1575 1569
}
1576 1570
1571
.calendar-day-table .table-tr .table-td.scheduled .day {
1572
  position: relative;
1573
}
1574
1575
.calendar-day-table .table-tr .table-td.scheduled .day::before {
1576
  content: "";
1577
  width: .05rem;
1578
  height: .05rem;
1579
  position: absolute;
1580
  border-radius: 50%;
1581
  background: rgba(255, 255, 255, 0.5);
1582
  bottom: .05rem;
1583
  left: .175rem;
1584
}
1585
1577 1586
.common-search-wrap {
1578 1587
  padding: 0;
1579 1588
  margin: 0;
@ -4460,4 +4469,24 @@ body.date-picked .list-item-pickered {
4460 4469
4461 4470
.project-task-item-placehoder {
4462 4471
  visibility: hidden;
4472
}
4473
4474
.modal-refuse {
4475
  padding: .18rem .2rem .2rem;
4476
}
4477
4478
.modal-refuse .icon {
4479
  display: block;
4480
  margin: 0 auto;
4481
  color: #F56565;
4482
  font-size: .3rem;
4483
  line-height: .32rem;
4484
}
4485
4486
.modal-refuse .text {
4487
  margin-top: .07rem;
4488
  font-weight: 500;
4489
  font-size: .14rem;
4490
  line-height: .2rem;
4491
  color: #FFFFFF;
4463 4492
}

+ 6 - 2
2020/x-3/biz/js/page/index-schedule.js

@ -202,6 +202,10 @@ require(["ipuUI", "jquery", 'tool', 'artTemplate', 'PanCarousel'], function (ipu
202 202
        }
203 203
      }
204 204
205
      if (Math.random() > 0.4) {  // 模拟用代码
206
        day.className += " scheduled";
207
      }
208
205 209
      // 当前天
206 210
      if (year == today.year && month == today.month && date == today.date) {
207 211
        day.className += " today";
@ -401,9 +405,9 @@ require(["ipuUI", "jquery", 'tool', 'artTemplate', 'PanCarousel'], function (ipu
401 405
      console.log('LoadDaySchedule');
402 406
      setTimeout(function () {
403 407
        if (localDayQueryDate == dayQueryDate) {  // 只有查询条件未变化时,表示没有新的查询发生,才处理返回数据
404
          if(true){
408
          if (true) {
405 409
            colenData.clone().appendTo(dayWrap);
406
          } else{
410
          } else {
407 411
            $(".pages-schedule .data-empty-message").show();
408 412
          }
409 413
          dayListRefresh.endLoading();

+ 5 - 0
2020/x-3/biz/js/page/project-list.js

@ -1,6 +1,11 @@
1 1
require(["ipuUI", "jquery", "tool"], function (ipuUI, $, tool) {
2 2
  $(function () {
3 3
4
    // 演示用户点击新增项目时,没有新增权限时的提示
5
    setTimeout(function () {
6
      ipuUI.toast('<i class="icon ri-close-circle-line"></i><div class="text">无权限操作资源,访问被拒绝</div>', 2000, 'modal-refuse');
7
    }, 2000);
8
4 9
    // 新建项目
5 10
    $(".link-project-add").on("click", function () {
6 11
      location.href = "project-add.html";