list.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. <div ng-controller="incidentListCtrl" class="">
  2. <section id="page-title">
  3. <div class="row">
  4. <div class="col-sm-8">
  5. <h1 class="mainTitle">事件列表
  6. <i tooltip='事件列表,点击操作处理任务' tooltip-placement="right"
  7. class="fa ti-help-alt margin-left-10 fontcolor-five pointfont"></i>
  8. </h1>
  9. </div>
  10. </div>
  11. </section>
  12. <div class="listbote">
  13. <div class="list-controls clearfix">
  14. <div class="btn-group">
  15. <button class="btn btn-statebutton statebutton wt_btn2" ng-repeat="item in tabs" ng-click="onChange(item.key)"
  16. ng-class="{'statecolor':searchstate==item.key}">{{item.value}}<strong class="red" ng-if="item.num !== ''">({{item.num}})</strong class="red"></button>
  17. </div>
  18. </div>
  19. <div style="background: #F9F9F9 !important;padding-left: 16px;padding-right: 0;position: relative;">
  20. <i ng-click="deploymentHandler()" ng-style="{transform: isDeployment ? 'rotate(180deg)' : 'rotate(0deg)'}" class="icon dash dash-zhankai" style="position: absolute;bottom: 0;left: 50%;cursor: pointer;z-index: 999;font-weight: bold;"></i>
  21. <div class="row wt_searchlistback" id="searchid">
  22. <div class="col-xs-10" style="padding-right: 0px !important;padding-bottom: 10px;">
  23. <form class="form-inline incidentsearchsize" id="filterSearch" style='padding-top: 8px;' ng-style="{height: isDeployment ? 'auto' : '108px'}">
  24. <div class="form-group incidentsearch wt_width">
  25. <div class="">
  26. <div class="control-label pull-left margin-top-5">登记时间:</div>
  27. <input type="text" class=" incidentsearchsize wt_width5"
  28. datepicker-popuptime="yyyy-MM-dd" ng-model="searchkeys.acceptDate"
  29. max-date="searchkeys.acceptDateEnd" is-open="startOpened" hour-time=true
  30. ng-init="startOpened = false" close-text="关闭" ng-click="startOpen($event)"
  31. placeholder="" />
  32. </div>
  33. </div>
  34. <div class="form-group incidentsearch wt_width">
  35. <div class="">
  36. <div class="control-label pull-left margin-top-5">至</div>
  37. <input type="text" class=" selectzise incidentsearchsize wt_width5"
  38. datepicker-popuptime="yyyy-MM-dd" ng-model="searchkeys.acceptDateEnd" hour-time=true
  39. min-date="searchkeys.acceptDate" is-open="endOpened" ng-init="endOpened = false"
  40. close-text="关闭" ng-click="endOpen($event)" placeholder="" />
  41. </div>
  42. </div>
  43. <div class="form-group incidentsearch wt_width" ng-if="repairMain.valueconfig == 2">
  44. <div class="">
  45. <div class="control-label pull-left margin-top-5">报修科室:</div>
  46. <ui-select class="pull-right selectzise wt_width1 wt_width3"
  47. ng-model="searchkeys.department" theme="bootstrap">
  48. <ui-select-match placeholder="">
  49. {{$select.selected.dept}}
  50. </ui-select-match>
  51. <ui-select-choices repeat="item in department"
  52. refresh="onChangeDept($select.search)">
  53. <div ng-bind-html="item.dept | highlight: $select.search"></div>
  54. </ui-select-choices>
  55. </ui-select>
  56. </div>
  57. </div>
  58. <div class="form-group incidentsearch wt_width" ng-if="repairMain.valueconfig == 1">
  59. <div class="">
  60. <div class="control-label pull-left margin-top-5">报修人:</div>
  61. <ui-select class="pull-right selectzise wt_width1 wt_width3"
  62. ng-model="searchkeys.requester" theme="bootstrap">
  63. <ui-select-match placeholder="请选择报修人">
  64. {{$select.selected.name}}
  65. </ui-select-match>
  66. <ui-select-choices repeat="item in requester"
  67. refresh="onChangehandling($select.search)">
  68. <div ng-bind-html="item.name | highlight: $select.search"></div>
  69. </ui-select-choices>
  70. </ui-select>
  71. </div>
  72. </div>
  73. <div class="form-group incidentsearch wt_width" ng-if="repairMain.valueconfig == 1">
  74. <div class="">
  75. <div class="control-label pull-left margin-top-5">联系电话:</div>
  76. <input class=" inputcolor wt_width1 wt_width3 pull-right" type="text"
  77. ng-model="searchkeys.requester.mphone" placeholder="" />
  78. </div>
  79. </div>
  80. <div class="form-group incidentsearch wt_width">
  81. <div class="control-label pull-left margin-top-5">状态:</div>
  82. <ui-select ng-disabled="isDisabledState" class="pull-right selectzise wt_width1 wt_width3" ng-model="othcode.state"
  83. theme="bootstrap">
  84. <ui-select-match placeholder="请选择状态">
  85. {{$select.selected.name}}
  86. </ui-select-match>
  87. <ui-select-choices repeat="item in state | filter: $select.search">
  88. <div ng-bind-html="item.name | highlight: $select.search"></div>
  89. </ui-select-choices>
  90. </ui-select>
  91. </div>
  92. <div class="form-group incidentsearch wt_width">
  93. <div class="control-label pull-left margin-top-5">故障现象:</div>
  94. <multi-select-tree data-default-label="请选择故障现象" class="pull-right selectzise wt_width1 wt_width3"
  95. ng-model="cifilter_classic" data-input-model="select_treedata"
  96. data-output-model="cifilter_classics" theme="bootstrap" multi-select="false"
  97. data-callback="onFilterCallback(item)" data-select-only-leafs="false"
  98. reset-search-input="false" data-trans-label="category" data-switch-view="false">
  99. </multi-select-tree>
  100. </div>
  101. <div class="form-group incidentsearch wt_width">
  102. <div class="control-label pull-left margin-top-5 ">受理人:</div>
  103. <ui-select class="pull-right selectzise wt_width1 wt_width3"
  104. ng-model="searchkeys.acceptUser" theme="bootstrap">
  105. <ui-select-match placeholder="请选择受理人">
  106. {{$select.selected.name}}
  107. </ui-select-match>
  108. <ui-select-choices repeat="item in acceptUser | filter: $select.search"
  109. refresh="onChangeacceptUser($select.search)" refresh-delay="0">
  110. <div ng-bind-html=" item.name | highlight: $select.search "></div>
  111. </ui-select-choices>
  112. </ui-select>
  113. </div>
  114. <div class="form-group incidentsearch wt_width">
  115. <div class="control-label pull-left margin-top-5">处理人:</div>
  116. <ui-select class="pull-right selectzise wt_width1 wt_width3"
  117. ng-model="searchkeys.handlingPersonnelUser" theme="bootstrap">
  118. <ui-select-match placeholder="请选择处理人">
  119. {{$select.selected.name}}
  120. </ui-select-match>
  121. <ui-select-choices repeat="item in handlingPersonnelUser"
  122. refresh="onChangehandling($select.search)">
  123. <div ng-bind-html="item.name | highlight: $select.search"></div>
  124. </ui-select-choices>
  125. </ui-select>
  126. </div>
  127. <div class="form-group incidentsearch wt_width">
  128. <div>
  129. <div class="control-label pull-left margin-top-5 margin-right-5">事件单号:</div>
  130. <input class="f inputcolor wt_width1 wt_width3 pull-right" type="text"
  131. ng-model="searchkeys.incidentsign" placeholder="" />
  132. </div>
  133. </div>
  134. <div class="form-group incidentsearch wt_width">
  135. <div class="control-label pull-left margin-top-5">是否逾期:</div>
  136. <ui-select ng-change="selectTypeChange()" ng-model="searchkeys.selectType" class="pull-right selectzise wt_width1 wt_width3" theme="bootstrap">
  137. <ui-select-match placeholder="请选择">
  138. <span ng-bind="$select.selected.name"></span>
  139. </ui-select-match>
  140. <ui-select-choices repeat="item in selectType">
  141. <span ng-bind="item.name"></span>
  142. </ui-select-choices>
  143. </ui-select>
  144. </div>
  145. <div class="form-group incidentsearch wt_width">
  146. <label style="cursor: pointer;"><input type="checkbox" ng-model="searchkeys.deleteFlag" ng-true-value="1" ng-false-value="0" ng-click="selectDeleted($event)" /><span style="padding-left: 8px;">已删除</span></label>
  147. </div>
  148. </form>
  149. </div>
  150. <div class="col-xs-2 wt_pad">
  151. <div class="" style='padding-top: 8px'>
  152. <div class="pull-left margin-top-10 searchBtnBox">
  153. <div class=" wt_btns">
  154. <div class="btn btn_search" ng-click="chiceIncident(searchkeys,othcode.state)"
  155. type="button">搜索</div>
  156. </div>
  157. <div class=" wt_btns">
  158. <div class="btn btn_clean" ng-click="clear()" type="button">重置</div>
  159. </div>
  160. <div class=" wt_btns blank" ng-show="daochu">
  161. <button class=" btn btn_other" ng-click="export()" ladda="ldloading.zoom_in"
  162. data-style="zoom-in">
  163. <span translate="sidebar.nav.configuremanagerdb.LISTButton.EXPORT ">Export
  164. Data</span>
  165. </button>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. <div class="wt_list">
  173. <div ui-i18n="{{lang}} " style="background: #fff;">
  174. <div id="grid" style="border-radius: 2px !important;" ui-grid="gridOptions " ui-grid-pagination
  175. external-scopes="$scope " ui-grid-resize-columns ui-grid-auto-resize class="grid "></div>
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. <style>
  181. @media screen and (max-width: 1750px) {
  182. .wt_width1 {
  183. width: 60% !important;
  184. }
  185. .wt_width4 {
  186. width: 27% !important;
  187. }
  188. .wt_width5 {
  189. width: 60% !important;
  190. border-color: #dedede;
  191. float: right;
  192. }
  193. }
  194. .selectzise {
  195. width: 160px;
  196. }
  197. .wt_width {
  198. width: 20%;
  199. margin-right: 16px;
  200. }
  201. .wt_width1 {
  202. width: 160px;
  203. }
  204. .wt_margin-top {
  205. margin-top: 35px !important;
  206. }
  207. .form-inline .form-control {
  208. border-radius: 2px;
  209. }
  210. .wt_width3 {
  211. width: 160px;
  212. height: 28px !important;
  213. border-radius: 2px !important;
  214. }
  215. .wt_width4 {
  216. width: 20%;
  217. }
  218. .wt_width5 {
  219. width: 160px;
  220. border-color: #dedede;
  221. float: right;
  222. height: 28px;
  223. border-radius: 2px !important;
  224. }
  225. .wt_width6 {
  226. display: inline-block;
  227. padding-top: 0px;
  228. position: relative;
  229. top: 4px;
  230. width: 8.2%;
  231. text-align: left;
  232. }
  233. .ui-select-bootstrap .ui-select-toggle {
  234. height: 28px;
  235. }
  236. .wt_width2 {
  237. width: 50% !important;
  238. }
  239. .wt_pad {
  240. padding: 0px;
  241. }
  242. .wt_btns {
  243. display: inline-block;
  244. margin-right: 8px;
  245. }
  246. .wt_btn1 {
  247. width: 60px;
  248. height: 28px !important;
  249. border-radius: 2px;
  250. line-height: 28px;
  251. font-size: 14px;
  252. padding: 0px !important;
  253. font-size: 14px !important;
  254. }
  255. .btn.steelbutton.wt_btn1 {
  256. padding: 0px !important;
  257. }
  258. .wt_btnColor {
  259. background: #4A90E2 !important;
  260. }
  261. .wt_btnColor:hover {
  262. background: #fff !important;
  263. color: #2B5EB8 !important;
  264. border: 1px solid #2B5EB8;
  265. }
  266. .wt_btnColor2:hover {
  267. background: #fff !important;
  268. color: #2B5EB8 !important;
  269. border: 1px solid #2B5EB8;
  270. }
  271. .wt_btn2 {
  272. min-width: 100px;
  273. height: 34px !important;
  274. border-radius: 2px !important;
  275. }
  276. .wt_list {
  277. padding: 15px;
  278. background: #F9F9F9;
  279. }
  280. .ui-grid-render-container:hover {
  281. background: #fff !important;
  282. }
  283. .wt_btnColor1 {
  284. background: #fff !important;
  285. color: #2B5EB8 !important;
  286. border: 1px solid #2B5EB8;
  287. }
  288. .wt_btnColor1:hover {
  289. background: #4A90E2 !important;
  290. color: #fff !important;
  291. border: 1px solid #4A90E2 !important;
  292. }
  293. div.ui-grid-row.ng-scope:hover {
  294. cursor: pointer;
  295. background: #fff !important;
  296. }
  297. .wt_searchlistback {
  298. margin-top: 1px;
  299. margin-bottom: 8px;
  300. border-top-left-radius: 0px !important;
  301. border-top-right-radius: 8px !important;
  302. border-bottom-left-radius: 8px !important;
  303. border-bottom-right-radius: 8px !important;
  304. }
  305. .ui-grid-row:nth-child(even) .ui-grid-cell {
  306. background: #fafafa !important;
  307. display: flex;
  308. justify-content: center;
  309. align-items: center;
  310. }
  311. .ui-grid-row:nth-child(odd) .ui-grid-cell {
  312. display: flex;
  313. justify-content: center;
  314. align-items: center;
  315. }
  316. .ui-grid-row .ui-grid-cell:last-of-type {
  317. justify-content: flex-start;
  318. }
  319. .searchBtnBox>.wt_btns {
  320. margin: 0 8px 10px 0;
  321. }
  322. /* 故障地点 */
  323. .address-wrap {
  324. position: relative;
  325. height: 28px;
  326. }
  327. #filterSearch .incidentsearch:nth-child(n + 9){
  328. display: none;
  329. }
  330. </style>