task-set.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <ion-view view-title="设置">
  2. <ion-content>
  3. <div class="item item-divider" ng-if="Isheader"></div>
  4. <a class="item item-icon-right over-flow-auto item-text-wrap" ng-if="Isheader" ng-click="showModal('content')">任务详情
  5. <span class="item-note" ng-bind-html="task.content"></span>
  6. <i class="icon ion-chevron-right icon-accessory"></i>
  7. </a>
  8. <div class="item item-divider"></div>
  9. <div class="item task-create-member">
  10. <div class="center" ng-repeat="item in task.task_members">
  11. <i class="icon ion-ios-minus" ng-if="Isheader || task.leader.id != item.usr_id" ng-click="remove(item,$index)" ng-show="isremove"></i>
  12. <img ng-src="../../../img/cat.png"/>
  13. <p ng-class="{true:'task-create-member-p'}[item == task.task_members[0]]">{{item.username}}</p>
  14. </div>
  15. <div class="tabs-icon-top" ng-click="selectmember()">
  16. <a class="tab-item">
  17. <i class="icon ion-ios-plus-outline"></i>
  18. <span>任务成员</span>
  19. </a>
  20. </div>
  21. <div class="tabs-icon-top" ng-show="(task.task_members.length > 1 && Isheader) || (task.task_members.length > 1 && task.leader.id == user.id)" ng-click="changeRemove(isremove)">
  22. <a class="tab-item">
  23. <i class="icon ion-ios-minus-outline"></i>
  24. <span>移除</span>
  25. </a>
  26. </div>
  27. </div>
  28. <a class="item item-icon-right" ng-show="(task.task_members.length > 1 && Isheader) || (task.task_members.length > 1 && task.leader.id == user.id)" ng-click="showModal('select')">主要负责人
  29. <span class="item-note">{{task.task_members[0].username}}</span>
  30. <i class="icon ion-chevron-right icon-accessory"></i>
  31. </a>
  32. <div class="item item-divider" ng-if="Isheader"></div>
  33. <a class="item item-icon-right" ng-if="Isheader" ng-click="chooseDate()">截止日期
  34. <span class="item-note">{{task.end_dd == null ? '选填' : task.end_dd | date:'yyyy-MM-dd'}}</span>
  35. <i class="icon ion-chevron-right icon-accessory"></i>
  36. </a>
  37. <div class="item item-divider"></div>
  38. <button class="button button-full button-light account-botton" ng-click="deleteTask()">{{ Isheader ? '删除任务' : '退出任务'}}</button>
  39. </ion-content>
  40. </ion-view>