list.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. <div ng-controller="incidentListCtrl" class="">
  2. <section id="page-title">
  3. <div class="row">
  4. <!-- <i class="iconfont icon-bianji pull-left"></i> -->
  5. <div class="col-sm-8">
  6. <h1 class="mainTitle">事件列表
  7. <i tooltip='事件列表,点击操作处理任务' tooltip-placement="right"
  8. class="fa ti-help-alt margin-left-10 fontcolor-five pointfont"></i>
  9. </h1>
  10. </div>
  11. </div>
  12. </section>
  13. <div class="listbote">
  14. <div class="list-controls clearfix">
  15. <div class="btn-group">
  16. <button class="btn btn-statebutton statebutton keepleftbottom wt_btn2" ng-click="onChange('all')"
  17. ng-class="{'statecolor':searchstate=='all'}">全部</button>
  18. <button class="btn btn-statebutton statebutton wt_btn2" ng-class="{'statecolor':searchstate=='todo'}"
  19. ng-click="onChange('todo')">待处理</button>
  20. <button class="btn btn-statebutton statebutton wt_btn2" ng-class="{'statecolor':searchstate=='done'}"
  21. ng-click="onChange('done')">处理过</button>
  22. <button class="btn btn-statebutton statebutton keeprightbottom wt_btn2"
  23. ng-class="{'statecolor':searchstate=='create'}" ng-click="onChange('create')">我创建</button>
  24. <!-- <button class="btn btn-statebutton statebutton keeprightbottom wt_btn2" ng-class="{'statecolor':searchstate=='overDate'}"
  25. ng-click="onChange('overDate')">已逾期</button> -->
  26. <!-- <button class="btn btn-statebutton statebutton keeprightbottom wt_btn2" ng-class="{'statecolor':searchstate=='wt_all'}" ng-click="onChange1('wt_all')">我的通知</button> -->
  27. </div>
  28. <!-- <div class="btn-group" ng-if="!allright">
  29. <button class="btn btn-statebutton statebutton keepleftbottom" ng-click="onChange('all')" ng-class="{'statecolor':searchstate=='all'}">全部</button>
  30. <button class="btn btn-statebutton statebutton keepleftbottom" ng-class="{'statecolor':searchstate=='todo'}" ng-click="onChange('todo')">待处理</button>
  31. <button class="btn btn-statebutton statebutton" ng-class="{'statecolor':searchstate=='done'}" ng-click="onChange('done')">处理过</button>
  32. <button class="btn btn-statebutton statebutton keeprightbottom" ng-class="{'statecolor':searchstate=='create'}" ng-click="onChange('create')">我创建</button>
  33. </div> -->
  34. </div>
  35. <!-- <button class="blank btn btn-downbutton downbutton" ng-click="onChange()"><span >全部事件</span></button> -->
  36. <div style="background: #F9F9F9 !important;padding-left: 16px;padding-right: 0px;">
  37. <div class="row wt_searchlistback" id="searchid">
  38. <div class="col-xs-10" style="padding-right: 0px !important;padding-bottom: 10px;">
  39. <form class="form-inline incidentsearchsize" style='padding-top: 8px'>
  40. <!-- <div class="form-group incidentsearch">
  41. <div class="pull-right">
  42. <div class="control-label pull-left margin-top-5 margin-right-5">列表分类:</div>
  43. <ui-select class="pull-left selectzise" ng-model="searchkeys.searchdatas" theme="bootstrap">
  44. <ui-select-match placeholder="">
  45. {{$select.selected.name}}
  46. </ui-select-match>
  47. <ui-select-choices repeat="item in states | filter: $select.search">
  48. <div ng-bind-html="item.name | highlight: $select.search"></div>
  49. </ui-select-choices>
  50. </ui-select>
  51. </div>
  52. </div> -->
  53. <div class="form-group incidentsearch wt_width" ng-if="repairMain.valueconfig == 2">
  54. <div class="">
  55. <div class="control-label pull-left margin-top-5">报修科室:</div>
  56. <ui-select class="pull-right selectzise wt_width1 wt_width3"
  57. ng-model="searchkeys.department" theme="bootstrap">
  58. <ui-select-match placeholder="">
  59. {{$select.selected.dept}}
  60. </ui-select-match>
  61. <ui-select-choices repeat="item in department"
  62. refresh="onChangeDept($select.search)">
  63. <div ng-bind-html="item.dept | highlight: $select.search"></div>
  64. </ui-select-choices>
  65. </ui-select>
  66. <!-- <ui-select class="pull-left" style="width:101px" ng-model="searchkeys.handlingPersonnelUser" theme="bootstrap">
  67. <ui-select-match placeholder="">
  68. {{$select.selected.name}}
  69. </ui-select-match>
  70. <ui-select-choices repeat="item in handlingPersonnelUser" refresh="onChangehandling($select.search)">
  71. <div ng-bind-html="item.name | highlight: $select.search"></div>
  72. </ui-select-choices>
  73. </ui-select> -->
  74. </div>
  75. </div>
  76. <div class="form-group incidentsearch wt_width" ng-if="repairMain.valueconfig == 1">
  77. <div class="">
  78. <div class="control-label pull-left margin-top-5">报修人:</div>
  79. <ui-select class="pull-right selectzise wt_width1 wt_width3"
  80. ng-model="searchkeys.requester" theme="bootstrap">
  81. <ui-select-match placeholder="">
  82. {{$select.selected.name}}
  83. </ui-select-match>
  84. <ui-select-choices repeat="item in requester"
  85. refresh="onChangehandling($select.search)">
  86. <div ng-bind-html="item.name | highlight: $select.search"></div>
  87. </ui-select-choices>
  88. </ui-select>
  89. <!-- <ui-select class="pull-left" style="width:101px" ng-model="searchkeys.handlingPersonnelUser" theme="bootstrap">
  90. <ui-select-match placeholder="">
  91. {{$select.selected.name}}
  92. </ui-select-match>
  93. <ui-select-choices repeat="item in handlingPersonnelUser" refresh="onChangehandling($select.search)">
  94. <div ng-bind-html="item.name | highlight: $select.search"></div>
  95. </ui-select-choices>
  96. </ui-select> -->
  97. </div>
  98. </div>
  99. <div class="form-group incidentsearch wt_width" ng-if="repairMain.valueconfig == 1">
  100. <div class="">
  101. <div class="control-label pull-left margin-top-5">联系电话:</div>
  102. <input class=" inputcolor wt_width1 wt_width3 pull-right" type="text"
  103. ng-model="searchkeys.requester.mphone" placeholder="" />
  104. </div>
  105. </div>
  106. <!-- <div class="form-group incidentsearch wt_width">
  107. <div class="">
  108. <div class="control-label pull-left margin-top-5">故障地点:</div>
  109. <div class="address-wrap pull-right wt_width1 wt_width3">
  110. <input class=" inputcolor"
  111. type="text" ng-model="searchkeys.houseNumber" id="bx_address" placeholder=""
  112. ng-click="addressClickHandle()" ng-change="addressChangeHandle()" />
  113. <ul id="bx_address_ul" ng-show="addressFlag" ng-nicescroll>
  114. <li ng-repeat="item in address_arr" ng-click="addressItemClick(item)">
  115. {{item.place?item.area.area+item.place:item.area}}</li>
  116. </ul>
  117. </div>
  118. </div>
  119. </div> -->
  120. <div class="form-group incidentsearch wt_width">
  121. <!-- <div class="pull-right"> -->
  122. <div class="control-label pull-left margin-top-5 ">区域:</div>
  123. <ui-select class="pull-right selectzise wt_width1 wt_width3" ng-model="searchkeys.area" theme="bootstrap"
  124. ng-change="onChangearea(searchkeys)">
  125. <ui-select-match placeholder="">
  126. {{$select.selected.area}}
  127. </ui-select-match>
  128. <ui-select-choices repeat="item in outarea | filter: $select.search">
  129. <div ng-bind-html="item.area | highlight: $select.search"></div>
  130. </ui-select-choices>
  131. </ui-select>
  132. <!-- </div> -->
  133. </div>
  134. <div class="form-group incidentsearch wt_width">
  135. <!-- <div class="pull-right"> -->
  136. <div class="control-label pull-left margin-top-5">地点:</div>
  137. <ui-select class="pull-right selectzise wt_width1 wt_width3" ng-model="searchkeys.place" theme="bootstrap"
  138. ng-change="onChangeplace(key)">
  139. <ui-select-match placeholder="">
  140. {{$select.selected.place}}
  141. </ui-select-match>
  142. <ui-select-choices repeat="item in outplace | filter: $select.search">
  143. <div ng-bind-html="item.place | highlight: $select.search"></div>
  144. </ui-select-choices>
  145. </ui-select>
  146. <!-- </div> -->
  147. </div>
  148. <div class="form-group incidentsearch wt_width">
  149. <div class="control-label pull-left margin-top-5">状态:</div>
  150. <ui-select class="pull-right selectzise wt_width1 wt_width3" ng-model="othcode.state"
  151. theme="bootstrap">
  152. <ui-select-match placeholder="">
  153. {{$select.selected.name}}
  154. </ui-select-match>
  155. <ui-select-choices repeat="item in state | filter: $select.search">
  156. <div ng-bind-html="item.name | highlight: $select.search"></div>
  157. </ui-select-choices>
  158. </ui-select>
  159. </div>
  160. <div class="form-group incidentsearch wt_width">
  161. <div class="control-label pull-left margin-top-5">事件分类:</div>
  162. <multi-select-tree class="pull-right selectzise wt_width1 wt_width3"
  163. ng-model="cifilter_classic" data-input-model="select_treedata"
  164. data-output-model="cifilter_classics" theme="bootstrap" multi-select="false"
  165. data-callback="onFilterCallback(item)" data-select-only-leafs="true"
  166. reset-search-input="false" data-trans-label="category" data-switch-view="false">
  167. </multi-select-tree>
  168. </div>
  169. <div class="form-group incidentsearch wt_width">
  170. <div class="control-label pull-left margin-top-5 ">受理人:</div>
  171. <ui-select class="pull-right selectzise wt_width1 wt_width3"
  172. ng-model="searchkeys.acceptUser" theme="bootstrap">
  173. <ui-select-match placeholder="">
  174. {{$select.selected.name}}
  175. </ui-select-match>
  176. <ui-select-choices repeat="item in acceptUser | filter: $select.search"
  177. refresh="onChangeacceptUser($select.search)" refresh-delay="0">
  178. <div ng-bind-html=" item.name | highlight: $select.search "></div>
  179. </ui-select-choices>
  180. </ui-select>
  181. </div>
  182. <div class="form-group incidentsearch wt_width">
  183. <div class="control-label pull-left margin-top-5">处理人:</div>
  184. <ui-select class="pull-right selectzise wt_width1 wt_width3"
  185. ng-model="searchkeys.handlingPersonnelUser" theme="bootstrap">
  186. <ui-select-match placeholder="">
  187. {{$select.selected.name}}
  188. </ui-select-match>
  189. <ui-select-choices repeat="item in handlingPersonnelUser"
  190. refresh="onChangehandling($select.search)">
  191. <div ng-bind-html="item.name | highlight: $select.search"></div>
  192. </ui-select-choices>
  193. </ui-select>
  194. </div>
  195. <div class="form-group incidentsearch wt_width">
  196. <div class="">
  197. <div class="control-label pull-left margin-top-5">登记时间:</div>
  198. <input type="text" class=" incidentsearchsize wt_width5"
  199. datepicker-popuptime="yyyy-MM-dd" ng-model="searchkeys.acceptDate"
  200. max-date="searchkeys.acceptDateEnd" is-open="startOpened" hour-time=true
  201. ng-init="startOpened = false" close-text="关闭" ng-click="startOpen($event)"
  202. placeholder="" />
  203. </div>
  204. </div>
  205. <div class="form-group incidentsearch wt_width">
  206. <div class="">
  207. <div class="control-label pull-left margin-top-5">至</div>
  208. <input type="text" class=" selectzise incidentsearchsize wt_width5"
  209. datepicker-popuptime="yyyy-MM-dd" ng-model="searchkeys.acceptDateEnd" hour-time=true
  210. min-date="searchkeys.acceptDate" is-open="endOpened" ng-init="endOpened = false"
  211. close-text="关闭" ng-click="endOpen($event)" placeholder="" />
  212. </div>
  213. </div>
  214. <div class="form-group incidentsearch wt_width">
  215. <div>
  216. <div class="control-label pull-left margin-top-5 margin-right-5">事件单号:</div>
  217. <input class="f inputcolor wt_width1 wt_width3 pull-right" type="text"
  218. ng-model="searchkeys.incidentsign" placeholder="" />
  219. </div>
  220. </div>
  221. <div class="form-group incidentsearch wt_width">
  222. <div class="control-label pull-left margin-top-5">是否逾期:</div>
  223. <ui-select ng-change="selectTypeChange()" ng-model="searchkeys.selectType" class="pull-right selectzise wt_width1 wt_width3" theme="bootstrap">
  224. <ui-select-match>
  225. <span ng-bind="$select.selected.name"></span>
  226. </ui-select-match>
  227. <ui-select-choices repeat="item in selectType">
  228. <span ng-bind="item.name"></span>
  229. </ui-select-choices>
  230. </ui-select>
  231. </div>
  232. <!-- <div class='wt_width6' style="">
  233. <span class="panel-title text-dark">至</span>
  234. </div>
  235. <div class="form-group incidentsearch wt_width">
  236. <div class="">
  237. <input type="text" class=" selectzise incidentsearchsize wt_width5" style=' float: left;'
  238. datepicker-popuptime="yyyy-MM-dd" ng-model="searchkeys.acceptDateEnd" hour-time=true
  239. min-date="searchkeys.acceptDate" is-open="endOpened" ng-init="endOpened = false"
  240. close-text="关闭" ng-click="endOpen($event)" placeholder="" />
  241. </div>
  242. </div> -->
  243. <!-- <div class="form-group">
  244. <button class="btn btn-light-orange" ng-click="chiceIncident(parameters,key)" type="button" ng-disabled="!((parameters.paramDateFrom&&parameters.paramDateTo)||key.area)">搜索</button>
  245. </div> -->
  246. </form>
  247. </div>
  248. <div class="col-xs-2 wt_pad">
  249. <!-- <hr style="height:60px !important;width:5px;color:red;margin-top:0px;margin-bottom: 0px;border-top: 1px solid #eee;" class="pull-left" /> -->
  250. <div class="" style='padding-top: 8px'>
  251. <!-- <table class="pull-left hrboardr">
  252. <tr>
  253. <td valign="top"></td>
  254. </tr>
  255. </table> -->
  256. <!-- <div class="centerdiv"></div> -->
  257. <div class="pull-left margin-top-10 searchBtnBox">
  258. <!-- <div class="form-group wt_btns">
  259. <div class="btn btn-searchbutton wt_btn1 wt_btnColor2" ng-click="chiceIncident(searchkeys,othcode.state)" type="button">搜索</div>
  260. </div>
  261. <div class="form-group wt_btns">
  262. <div class="btn btn-searchbutton steelbutton wt_btn1 wt_btnColor1" ng-click="replacement(parameters,searchkeys,othcode)" type="button">重置</div>
  263. </div> -->
  264. <div class=" wt_btns">
  265. <div class="btn btn_search" ng-click="chiceIncident(searchkeys,othcode.state)"
  266. type="button">搜索</div>
  267. </div>
  268. <div class=" wt_btns">
  269. <div class="btn btn_clean" ng-click="clear()" type="button">重置</div>
  270. </div>
  271. <!-- <button class="btn btn-searchbutton steelbutton margin-top-10" ng-click="chiceIncident(searchkeys,othcode.state)" type="button">搜索</button>
  272. <button class="btn btn-default margin-top-10" ng-click="export()" ladda="ldloading.zoom_in" data-style="zoom-in"><span translate="sidebar.nav.configuremanagerdb.LISTButton.EXPORT ">Export
  273. Data</span></button>
  274. <button class="btn btn-exportbutton exportbutton margin-top-10" ng-click="clear()" ladda="ldloading.zoom_in" data-style="zoom-in">清空</button> -->
  275. <!-- <div class=" wt_btns">
  276. <div class="btn btn-searchbutton steelbutton wt_btn1 wt_btnColor1" ng-click="jry_refresh()"
  277. type="button">刷新</div>
  278. </div> -->
  279. <div class=" wt_btns">
  280. <div class="btn btn_clean" ng-click="goToAddIncident()" type="button">新增事件</div>
  281. </div>
  282. <div class=" wt_btns blank" ng-show="daochu">
  283. <button class=" btn btn_other" ng-click="export()" ladda="ldloading.zoom_in"
  284. data-style="zoom-in">
  285. <span translate="sidebar.nav.configuremanagerdb.LISTButton.EXPORT ">Export
  286. Data</span>
  287. </button>
  288. </div>
  289. </div>
  290. </div>
  291. </div>
  292. </div>
  293. </div>
  294. <!-- <div class="panel">
  295. <div class="panel-heading px-nested-panel-heading clearfix">
  296. <h3 ng-click="export()" class="panel-title text-secondhead pull-right bluefont pointfont"><i class="icon iconfont icon-daochu daochulist"></i>导出列表</h3>
  297. </div>
  298. </div> -->
  299. <div class="wt_list">
  300. <div ui-i18n="{{lang}} " style="background: #fff;">
  301. <div id="grid" style="border-radius: 2px !important;" ui-grid="gridOptions " ui-grid-pagination
  302. external-scopes="$scope " ui-grid-resize-columns ui-grid-auto-resize class="grid "></div>
  303. </div>
  304. </div>
  305. </div>
  306. </div>
  307. <style>
  308. @media screen and (max-width: 1750px) {
  309. .wt_width {
  310. width: 30% !important;
  311. }
  312. .wt_width1 {
  313. width: 60% !important;
  314. }
  315. .wt_width4 {
  316. width: 27% !important;
  317. }
  318. .wt_width5 {
  319. width: 60% !important;
  320. border-color: #dedede;
  321. float: right;
  322. }
  323. }
  324. .selectzise {
  325. width: 160px;
  326. }
  327. .wt_width {
  328. width: 20%;
  329. margin-right: 16px;
  330. min-width: 275px !important;
  331. }
  332. .wt_width1 {
  333. width: 160px;
  334. }
  335. .wt_margin-top {
  336. margin-top: 35px !important;
  337. }
  338. .form-inline .form-control {
  339. border-radius: 2px;
  340. }
  341. .wt_width3 {
  342. width: 160px;
  343. height: 28px !important;
  344. border-radius: 2px !important;
  345. }
  346. .wt_width4 {
  347. width: 20%;
  348. }
  349. .wt_width5 {
  350. width: 160px;
  351. border-color: #dedede;
  352. float: right;
  353. height: 28px;
  354. border-radius: 2px !important;
  355. }
  356. .wt_width6 {
  357. display: inline-block;
  358. padding-top: 0px;
  359. position: relative;
  360. top: 4px;
  361. /* left: 10px; */
  362. width: 8.2%;
  363. text-align: left;
  364. }
  365. .ui-select-bootstrap .ui-select-toggle {
  366. height: 28px;
  367. }
  368. /*
  369. .wt_width {
  370. width: 20%;
  371. margin-right: 1%;
  372. padding: 0px;
  373. }
  374. .wt_width1 {
  375. width: 100% !important;
  376. padding: 0px;
  377. } */
  378. .wt_width2 {
  379. width: 50% !important;
  380. }
  381. .wt_pad {
  382. padding: 0px;
  383. }
  384. .wt_btns {
  385. display: inline-block;
  386. margin-right: 8px;
  387. }
  388. .wt_btn1 {
  389. width: 60px;
  390. height: 28px !important;
  391. border-radius: 2px;
  392. line-height: 28px;
  393. font-size: 14px;
  394. padding: 0px !important;
  395. font-size: 14px !important;
  396. }
  397. .btn.steelbutton.wt_btn1 {
  398. padding: 0px !important;
  399. }
  400. .wt_btnColor {
  401. background: #4A90E2 !important;
  402. }
  403. /* .btn{
  404. padding: 0px!important;
  405. } */
  406. .wt_btnColor:hover {
  407. background: #fff !important;
  408. color: #2B5EB8 !important;
  409. border: 1px solid #2B5EB8;
  410. }
  411. .wt_btnColor2:hover {
  412. background: #fff !important;
  413. color: #2B5EB8 !important;
  414. border: 1px solid #2B5EB8;
  415. }
  416. .wt_btn2 {
  417. width: 100px;
  418. height: 34px !important;
  419. border-radius: 2px !important;
  420. }
  421. .wt_list {
  422. padding: 15px;
  423. background: #F9F9F9;
  424. }
  425. .ui-grid-render-container:hover {
  426. background: #fff !important;
  427. }
  428. .wt_btnColor1 {
  429. background: #fff !important;
  430. color: #2B5EB8 !important;
  431. border: 1px solid #2B5EB8;
  432. }
  433. .wt_btnColor1:hover {
  434. background: #4A90E2 !important;
  435. color: #fff !important;
  436. border: 1px solid #4A90E2 !important;
  437. }
  438. div.ui-grid-row.ng-scope:hover {
  439. cursor: pointer;
  440. background: #fff !important;
  441. }
  442. .wt_searchlistback {
  443. margin-top: 1px;
  444. margin-bottom: 8px;
  445. border-top-left-radius: 0px !important;
  446. border-top-right-radius: 8px !important;
  447. border-bottom-left-radius: 8px !important;
  448. border-bottom-right-radius: 8px !important;
  449. }
  450. .ui-grid-row:nth-child(even) .ui-grid-cell {
  451. background: #fafafa !important;
  452. }
  453. .searchBtnBox>.wt_btns {
  454. margin: 0 8px 10px 0;
  455. }
  456. /* 故障地点 */
  457. .address-wrap {
  458. position: relative;
  459. height: 28px;
  460. }
  461. #bx_address{
  462. height: 100%;
  463. }
  464. #bx_address_ul {
  465. position: absolute;
  466. top: 28px;
  467. left: 0;
  468. width: 100%;
  469. max-height: 136px;
  470. overflow-y: auto;
  471. background-color: #fff;
  472. border: 1px solid #d1d1d1;
  473. border-top: none;
  474. z-index: 9999;
  475. }
  476. #bx_address_ul li {
  477. height: 34px;
  478. border-bottom: 1px solid #d1d1d1;
  479. line-height: 32px;
  480. padding: 0 16px;
  481. cursor: pointer;
  482. overflow: hidden;
  483. text-overflow: ellipsis;
  484. white-space: nowrap;
  485. }
  486. #bx_address_ul li:hover {
  487. /* background-color: #005395; */
  488. /* color: #fff; */
  489. }
  490. #bx_address_ul li:last-child {
  491. border-bottom: none;
  492. }
  493. </style>