pdetail.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. {extend name="todo/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-title">
  7. <h5>任务详情</h5>
  8. <div class="ibox-tools">
  9. <a class="toback" href="javascript:;" onclick="window.history.go(-1);">
  10. 返回上一页
  11. </a>
  12. </div>
  13. </div>
  14. <div class="ibox-content">
  15. <h5>任务信息</h5>
  16. <table class="table">
  17. <tbody>
  18. <tr>
  19. <th style="width:90px ">任务名称</th><td>{$info['title']}</td>
  20. </tr>
  21. <tr>
  22. <th>开始时间</th><td>{$info['start_time']}</td>
  23. </tr>
  24. <tr>
  25. <th>结束时间</th><td>{$info['end_time']}</td>
  26. </tr>
  27. <tr>
  28. <th>执行人员</th><td>{$info['task_user']}</td>
  29. </tr>
  30. <tr>
  31. <th>任务状态</th>
  32. {if condition="$info['status'] eq 0"}
  33. <td>未执行</td>
  34. {elseif condition="$info['status'] eq 1"}
  35. <td>执行中</td>
  36. {elseif condition="$info['status'] eq 2"}
  37. <td>已完成</td>
  38. {elseif condition="$info['status'] eq 3"}
  39. <td>未完成</td>
  40. {elseif condition="$info['status'] eq 5"}
  41. <td>中断</td>
  42. {elseif condition="$info['status'] eq 6"}
  43. <td>已关闭</td>
  44. {/if}
  45. </tr>
  46. {if $info['status']==5}
  47. <tr>
  48. <th>中断原因</th><td>{$info['interrupt_reson']}</td>
  49. </tr>
  50. <tr>
  51. <th>中断图片</th><td><img src="{$info['interrupt_img']}" onclick="open_img(this)" style="width: 80px;height: 60px;" ></td>
  52. </tr>
  53. {/if}
  54. </tbody>
  55. </table>
  56. <div id="vue-plan">
  57. <p><br></p>
  58. <h5>路线</h5>
  59. <hr>
  60. <el-steps direction="vertical">
  61. {volist name="info['addrForms']" id="v"}
  62. <el-step title="{$v.addrTitle}【{$v.formTitle}】">
  63. <div slot="description">
  64. {empty name="v['record']"}
  65. 暂无记录
  66. <p><br></p>
  67. {else /}
  68. <p><br></p>
  69. <table class="table">
  70. <tr>
  71. <td style="width: 100px;">时间</td>
  72. <td>{$v['record']['create_time']}</td>
  73. </tr>
  74. <tr>
  75. <td>执行人员</td>
  76. <td>{$v['record']['uname']}</td>
  77. </tr>
  78. <tr>
  79. <td>状态</td>
  80. <td>
  81. {eq name="$v['record']['is_normal']" value="0"}正常{else /}异常{/eq}
  82. </td>
  83. </tr>
  84. <tr>
  85. <td>检查项</td>
  86. <td>
  87. <table class="table table-bordered">
  88. <thead>
  89. <tr>
  90. <th>序号</th>
  91. <th>内容</th>
  92. <th>完成</th>
  93. </tr>
  94. </thead>
  95. {volist name="v['record']['check_json']" id="vo" key="k"}
  96. <tr>
  97. <td width="10%">{$k+1}</td>
  98. <td width="45%">{$vo['title']}</td>
  99. <td width="45%">
  100. {eq name="vo['type']" value="1"}
  101. {$vo.result}
  102. {else /}
  103. {eq name="vo['result']" value="1"}
  104. <input type="checkbox" checked disabled>
  105. {else /}
  106. <input type="checkbox" disabled>
  107. {/eq}
  108. {/eq}
  109. </td>
  110. </tr>
  111. {/volist}
  112. </table>
  113. </td>
  114. </tr>
  115. <tr>
  116. <td>图片</td>
  117. <td>
  118. {volist name="v['record']['images']" id="voo"}
  119. <img src="{$voo}" onclick="open_img(this)" style="width: 40px;height: 40px;margin-right: 10px" alt="">
  120. {/volist}
  121. </td>
  122. </tr>
  123. </table>
  124. {/empty}
  125. </div>
  126. </el-step>
  127. {/volist}
  128. </el-steps>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. {/block}
  135. {block name="script"}
  136. <script>
  137. new Vue({
  138. el: '#vue-plan',
  139. data: function() {
  140. return {
  141. }
  142. },
  143. watch: {
  144. },
  145. computed: {
  146. },
  147. created(){
  148. },
  149. methods: {
  150. }
  151. })
  152. </script>
  153. {/block}