list.html 27 KB

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