list.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. <style>
  2. /* 操作文字颜色 */
  3. .handlefont {
  4. color: #5496e3 !important
  5. }
  6. /* 头部 */
  7. .searchlistback {
  8. /* height: 150px; */
  9. /* background-color: #f9fbff!important; */
  10. position: relative;
  11. /* padding: 25px 0 */
  12. margin-bottom: 8px !important;
  13. }
  14. .searchBtnBox>.btn {
  15. margin: 0 8px 10px 0;
  16. }
  17. .searchlistback .tit {
  18. font-size: 14px;
  19. font-weight: bold;
  20. display: inline-block;
  21. margin-bottom: 7px
  22. }
  23. /* 左边搜索条件盒子 */
  24. .searchlistback .left {
  25. float: left;
  26. width: 600px;
  27. margin-left: 15px;
  28. margin-top: 10px
  29. }
  30. /* 右边按钮盒子 */
  31. .searchlistback .right {
  32. position: absolute;
  33. top: 82px;
  34. right: 7px;
  35. }
  36. .searchlistback .right input {
  37. float: left;
  38. }
  39. .searchlistback .right button {
  40. float: left;
  41. }
  42. .searchlistback .right .anniu {
  43. width: 88px;
  44. height: 34px;
  45. border: 0;
  46. margin-right: 10px;
  47. border-radius: 2px !important;
  48. padding: 0
  49. }
  50. /* 搜索 */
  51. .searchlistback .right .anniu:nth-child(1) {
  52. background-color: #005395;
  53. color: white;
  54. border: 1px #005395 solid
  55. }
  56. .searchlistback .right .anniu:nth-child(1):hover {
  57. background-color: #004279;
  58. }
  59. /* 重置 */
  60. .searchlistback .right .anniu:nth-child(2) {
  61. background-color: white;
  62. color: #999999;
  63. border: 1px #dddddd solid;
  64. font-size: 14px
  65. }
  66. .searchlistback .right .anniu:nth-child(2):hover {
  67. border: 1px #999999 solid
  68. }
  69. /* 刷新 */
  70. .searchlistback .right .anniu:nth-child(3) {
  71. border: 1px #79a3c4 solid;
  72. background-color: #e6eef4;
  73. color: #79a3c4;
  74. }
  75. /* 高级搜索 */
  76. .searchlistback .right .anniu:nth-child(4) {
  77. background-color: #e6eef4;
  78. color: #005359;
  79. border: 1px #005359 solid
  80. }
  81. .searchlistback .right .anniu:nth-child(4):hover {
  82. background-color: #e6eef4;
  83. color: #79a3c4;
  84. border: 1px #79a3c4 solid
  85. }
  86. /* 打印二维码 */
  87. .searchlistback .right .anniu:nth-child(5) {
  88. background-color: white;
  89. color: #4a90e2;
  90. border: 1px #4a90e2 solid
  91. }
  92. /* 导出 */
  93. .searchlistback .right .anniu:nth-child(6) {
  94. background-color: #e6eef4;
  95. color: #005359;
  96. border: 1px #005359 solid;
  97. font-size: 14px
  98. }
  99. .searchlistback .right .anniu:nth-child(6):hover {
  100. background-color: #e6eef4;
  101. color: #79a3c4;
  102. border: 1px #79a3c4 solid
  103. }
  104. .searchlistback .left>div {
  105. float: left;
  106. width: 300px;
  107. }
  108. /* 下拉框的长宽 */
  109. .tree-control .tree-view {
  110. width: 60%
  111. }
  112. /* 树形下拉框的长宽 */
  113. .left .tree-control {
  114. width: 60%;
  115. height: 32px;
  116. margin: 0;
  117. }
  118. .tree-control {
  119. width: 100%;
  120. height: 32px;
  121. margin: 0 auto
  122. }
  123. div.cs-select {
  124. width: 100% !important;
  125. height: 30px;
  126. }
  127. /* 条件搜索下拉框 */
  128. .left .tiaojian .selectzise {
  129. width: 96px !important;
  130. }
  131. .left .tiaojian .btn {
  132. border-radius: 4px 0 0 4px;
  133. }
  134. /* 输入框长度 */
  135. .left .tiaojianipt {
  136. width: 157px;
  137. height: 28px !important;
  138. font-size: 12px;
  139. color: black;
  140. padding-bottom: 6px;
  141. }
  142. .row {
  143. margin: 0
  144. }
  145. /* 导出弹框 */
  146. .modal-body>div:nth-child(2) {
  147. text-align: center;
  148. margin-bottom: 31px;
  149. margin-top: 20px
  150. }
  151. .modal-content {
  152. background-color: rgb(232, 232, 232) !important;
  153. }
  154. div.form-group label {
  155. font-weight: bold;
  156. margin-left: 46px;
  157. margin-top: 15px
  158. }
  159. /* 资产状态下拉框 */
  160. .left .state {
  161. width: 60% !important;
  162. /* border: 1px rgb(210,210,210) solid; */
  163. border-radius: 5px;
  164. }
  165. .left .tiaojian .ui-select-bootstrap>.ui-select-match>.btn {
  166. font-size: 12px;
  167. color: black;
  168. padding-left: 4px;
  169. border-radius: 4px 0 0 4px;
  170. }
  171. .left .zhuangtai .ui-select-bootstrap>.ui-select-match>.btn {
  172. font-size: 12px;
  173. color: black;
  174. padding-left: 4px;
  175. border-radius: 4px;
  176. }
  177. /* 资产分类下拉框 */
  178. .left .tree-control .tree-input {
  179. padding-left: 4px;
  180. font-size: 12px;
  181. padding-top: 5px;
  182. color: rgb(198, 198, 200) !important;
  183. }
  184. /* 高级搜索 */
  185. .senior_fixed {
  186. width: 100%;
  187. height: 100%;
  188. position: fixed;
  189. left: 0;
  190. top: 0;
  191. background-color: rgba(0, 0, 0, 0.5);
  192. z-index: 9999;
  193. }
  194. .senior {
  195. width: 340px;
  196. height: 405px;
  197. /* margin-left: -170px;
  198. margin-top: -202px;
  199. position: absolute;
  200. left: 50%;
  201. top: 50%; */
  202. background-color: white;
  203. border-radius: 2px;
  204. transition-duration: 0.8s
  205. }
  206. .new_top {
  207. margin-left: -170px;
  208. /* margin-top: -202px; */
  209. position: fixed;
  210. left: 50%;
  211. top: -405px;
  212. }
  213. .new_after {
  214. margin-left: -170px;
  215. margin-top: -202px;
  216. position: fixed;
  217. left: 50%;
  218. top: 50%;
  219. }
  220. .senior .head {
  221. width: 100%;
  222. height: 40px;
  223. line-height: 40px;
  224. text-align: center;
  225. border-bottom: 1px #eeeeee solid;
  226. position: relative;
  227. }
  228. /* 交叉 */
  229. .senior .head .jiaocha {
  230. width: 14px;
  231. height: 14px;
  232. line-height: 12px;
  233. text-align: center;
  234. border: 1px #6e6e6e solid;
  235. border-radius: 50%;
  236. cursor: pointer;
  237. position: absolute;
  238. right: 20px;
  239. top: 15px
  240. }
  241. .senior .body {
  242. width: 298px;
  243. height: 302px;
  244. margin: 0 auto;
  245. margin-top: 10px;
  246. border: 1px #d1d1d1 solid;
  247. border-radius: 2px
  248. }
  249. .senior .body .new {
  250. width: 100%;
  251. height: 39px;
  252. background-color: #fbfbfb;
  253. border-bottom: 2px #e3e3e3 solid;
  254. text-align: center;
  255. line-height: 39px;
  256. cursor: pointer;
  257. }
  258. .senior .body .new span:nth-child(1) {
  259. border-radius: 50%;
  260. border: 1px #78ace8 solid;
  261. display: inline-block;
  262. width: 14px;
  263. text-align: center;
  264. height: 14px;
  265. line-height: 12px;
  266. padding-right: 13px;
  267. }
  268. .senior .body .new span {
  269. color: #78ace8
  270. }
  271. .senior .body .sele_ipt {
  272. width: 100%;
  273. height: 261px;
  274. overflow: hidden;
  275. overflow-y: scroll;
  276. background-color: #f5f5f5;
  277. }
  278. .senior .body .sele_ipt>div {
  279. height: 77px;
  280. background-color: #f5f5f5;
  281. margin-left: 19px;
  282. padding-top: 16px
  283. }
  284. .senior .body .sele_ipt>div>span {
  285. font-weight: bold;
  286. }
  287. .senior .body .sele_ipt>div>input {
  288. float: left;
  289. width: 149px;
  290. margin-top: 6px;
  291. height: 34px;
  292. font-size: 12px;
  293. padding-bottom: 6px
  294. }
  295. .senior .body .sele_ipt .daxiao {
  296. width: 97px !important;
  297. margin-top: 6px
  298. }
  299. .senior .body .sele_ipt .ui-select-bootstrap>.ui-select-match>.btn {
  300. font-size: 12px;
  301. padding-left: 2px;
  302. }
  303. .senior .fot_btn {
  304. width: 100%;
  305. text-align: center;
  306. padding-top: 9px
  307. }
  308. .senior .fot_btn .search {
  309. width: 80px;
  310. height: 34px;
  311. background-color: #123f8f;
  312. border: 1px #123f8f solid;
  313. color: white
  314. }
  315. .senior .fot_btn .guanbi {
  316. width: 80px;
  317. height: 34px;
  318. background-color: #f2f2f2;
  319. border: 1px #d1d1d1 solid;
  320. color: black;
  321. margin-left: 19px
  322. }
  323. .modal-content {
  324. background-color: white !important;
  325. width: 340px;
  326. height: 194px;
  327. margin-left: -170px;
  328. margin-top: -97px;
  329. position: fixed;
  330. left: 50%;
  331. top: 50%;
  332. }
  333. .modal-content .bg-primary {
  334. background: white;
  335. color: black;
  336. border-bottom: 1px rgb(209, 209, 209) solid;
  337. }
  338. .modal-content .fa-inbox:before {
  339. display: none
  340. }
  341. .modal-content .modal-body>div:nth-child(2) {
  342. margin-top: 7px;
  343. }
  344. .modal-content .form-group {
  345. position: relative;
  346. background-color: rgb(245, 245, 245);
  347. height: 92px;
  348. margin-top: 10px !important;
  349. width: 299px;
  350. left: 20px;
  351. border: 1px rgb(216, 216, 216) solid;
  352. border-radius: 4px;
  353. }
  354. .modal-content .label {
  355. color: black;
  356. font-size: 14px !important;
  357. }
  358. .modal.in .modal-dialog {
  359. height: 100%;
  360. }
  361. .new_data {
  362. height: 34px;
  363. width: 80px;
  364. border-radius: 4px;
  365. border: 1px blue solid;
  366. background-color: rgb(166, 236, 136);
  367. color: blue;
  368. }
  369. .new_data:hover {
  370. color: blue;
  371. }
  372. .new_data:focus {
  373. color: blue;
  374. }
  375. .inspectlistsearch {
  376. width: 45% !important;
  377. margin-right: 16px
  378. }
  379. .iptSize {
  380. width: 60% !important;
  381. height: 28px !important;
  382. }
  383. .tree-control .tree-input {
  384. min-height: 28px !important
  385. }
  386. </style>
  387. <div ng-controller="fixedCtrl">
  388. <!-- <div class="row onlines print-content" print-table="selected.items">
  389. <div class="qrcanvasfloat col-md-12">
  390. <label class="getfloat" ng-repeat="item in selected.items">
  391. <p print-only class="fontsizes">{{item.uuid||'空'}}</p>
  392. <p print-only class="fontsizes">{{item.name||'空'}}</p>
  393. <p print-only class="fontsizes">{{item.createtime|date:"yyyy-MM-dd"}}</p>
  394. </label>
  395. </div>
  396. </div> -->
  397. <div class="row onlines print-content" print-table="selected.items">
  398. <!--<label class="qrcanvas"></label>-->
  399. <div class="qrcanvasfloat col-md-12">
  400. <label class="getfloat" ng-repeat="item in selected.items">
  401. <!-- <p print-only class="fontsizes">{{item.uuid||'空'}}</p>
  402. <p print-only class="fontsizes">{{item.name||'空'}}</p>
  403. <p print-only class="fontsizes">{{item.createtime|date:"yyyy-MM-dd"}}</p> -->
  404. <table print-only class="tag" style="table-layout: fixed; width: 190px">
  405. <colgroup>
  406. <col style="width: 70px">
  407. <col style="width: 120px">
  408. </colgroup>
  409. <tr>
  410. <th class="tag-s6z2" colspan="2">江西省政府</th>
  411. </tr>
  412. <tr>
  413. <td class="tag-s6z2">编码</td>
  414. <td class="tag-031e">{{item.uuid||'空'}}</td>
  415. </tr>
  416. <tr>
  417. <td class="tag-s6z2">型号</td>
  418. <td class="tag-031e">{{item.props.hw_modelnumber||'空'}}</td>
  419. </tr>
  420. <tr>
  421. <td class="tag-s6z2">序列号</td>
  422. <td class="tag-031e">{{item.props.hw_assetsxlh||'空'}}</td>
  423. </tr>
  424. <tr>
  425. <td class="tag-s6z2">用途</td>
  426. <td class="tag-031e">{{item.props.hw_assetsyongtu||'空'}}</td>
  427. </tr>
  428. <tr>
  429. <td class="tag-s6z2">IP</td>
  430. <td class="tag-031e">{{item.props.hw_assetsip||'空'}}</td>
  431. </tr>
  432. <tr>
  433. <td class="tag-s6z2">位置</td>
  434. <td class="tag-031e">{{item.props.hw_assetsweizhi||'空'}}</td>
  435. </tr>
  436. <!-- <tr>
  437. <td class="tag-baqh">资产名称</td>
  438. <td class="tag-yw4l">{{item.props.hw_mingcheng||'空'}}</td>
  439. </tr>
  440. <tr>
  441. <td class="tag-baqh">创建时间</td>
  442. <td class="tag-yw4l">{{item.createtime|date:"yyyy-MM-dd"}}</td>
  443. </tr> -->
  444. </table>
  445. </label>
  446. </div>
  447. </div>
  448. <section id="page-title">
  449. <div class="row">
  450. <div class="col-sm-8">
  451. <h1 class="mainTitle">CMDB
  452. <i tooltip='CMDB,点击操作处理任务' tooltip-placement="right"
  453. class="fa ti-help-alt margin-left-10 fontcolor-five pointfont"></i>
  454. </h1>
  455. </div>
  456. </div>
  457. </section>
  458. <div class="row searchlistback">
  459. <div class="col-xs-10">
  460. <!-- <div id="jiantou">
  461. <span class="tit">资产分类:</span><br>
  462. <multi-select-tree ng-model="cifilter_classic" data-input-model="select_treedata" data-output-model="cifilter_classics" theme="bootstrap" multi-select="false" data-default-label="资产分类" data-callback="onFilterCallback(item)" data-select-only-leafs="true"
  463. reset-search-input="false" data-trans-label="label" data-switch-view="false"></multi-select-tree>
  464. </div> -->
  465. <div class=" inspectlistsearch pull-left">
  466. <div class="pull-left" style="padding-top:4px;font-size:14px">资产分类:</div>
  467. <multi-select-tree class="pull-right iptSize" ng-model="cifilter_classic"
  468. data-input-model="select_treedata" data-output-model="cifilter_classics" theme="bootstrap"
  469. multi-select="false" data-callback="onFilterCallback(item)" data-select-only-leafs="true"
  470. reset-search-input="false" data-trans-label="label" data-switch-view="false"></multi-select-tree>
  471. </div>
  472. <!-- <div>
  473. <span class="tit">资产状态:</span><br>
  474. <div class="zhuangtai">
  475. <ui-select class="pull-left selectzise state" ng-model="lb_state_data.state_data" theme="bootstrap" ng-change="onChangestatus(lb_state_data.state_data)">
  476. <ui-select-match placeholder="选择搜索类型">
  477. {{lb_state_data.state_data.name}}
  478. </ui-select-match>
  479. <ui-select-choices repeat="n in state_data | filter: $select.search">
  480. <div ng-bind-html="n.name | highlight: $select.search"></div>
  481. </ui-select-choices>
  482. </ui-select>
  483. </div>
  484. </div> -->
  485. <div class=" inspectlistsearch pull-left">
  486. <div class="pull-left" style="padding-top:4px;font-size:14px">资产状态:</div>
  487. <ui-select class="pull-right iptSize" ng-model="lb_state_data.state_data" theme="bootstrap"
  488. ng-change="onChangestatus(lb_state_data.state_data)">
  489. <ui-select-match>
  490. {{lb_state_data.state_data.name}}
  491. </ui-select-match>
  492. <ui-select-choices repeat="n in state_data | filter: $select.search">
  493. <div ng-bind-html="n.name | highlight: $select.search"></div>
  494. </ui-select-choices>
  495. </ui-select>
  496. </div>
  497. <!-- <div>
  498. <span class="tit">条件搜索:</span><br>
  499. <div class="tiaojian">
  500. <ui-select class="pull-left selectzise leixing" ng-model="lb_tiaojian.tiaojian" theme="bootstrap">
  501. <ui-select-match placeholder="选择搜索类型">
  502. {{lb_tiaojian.tiaojian.name}}
  503. </ui-select-match>
  504. <ui-select-choices repeat="n in tiaojian">
  505. <div ng-bind-html="n.name"></div>
  506. </ui-select-choices>
  507. </ui-select>
  508. </div>
  509. <input type="text" style="border-radius: 0px 4px 4px 0px !important" class="form-control tiaojianipt" ng-model="searchSolutionInput" placeholder="请输入关键字">
  510. </div> -->
  511. <div class=" inspectlistsearch pull-left">
  512. <div class="pull-left" style="padding-top:4px;font-size:14px">条件搜索:</div>
  513. <div class="pull-right iptSize">
  514. <ui-select class="pull-left" style="width:40%!important;height: 28px!important"
  515. ng-model="lb_tiaojian.tiaojian" theme="bootstrap">
  516. <ui-select-match>
  517. {{lb_tiaojian.tiaojian.name}}
  518. </ui-select-match>
  519. <ui-select-choices repeat="n in tiaojian">
  520. <div ng-bind-html="n.name"></div>
  521. </ui-select-choices>
  522. </ui-select>
  523. <input type="text" style="width:60%!important;height: 28px!important" class="pull-left"
  524. ng-model="searchSolutionInput">
  525. </div>
  526. </div>
  527. </div>
  528. <div class="col-xs-2 searchBtnBox">
  529. <div class="btn btn_search" ng-click="searchSolution(lb_tiaojian.tiaojian.value,searchSolutionInput)">搜索</div>
  530. <div class="btn btn_clean" ng-click="reset()">重置</div>
  531. <!-- <div class="btn btn_other" ng-click="new_data()">刷新</div> -->
  532. <div class="btn btn_other" ng-click="senior_cli()">高级搜索</div>
  533. <div print-hide class="btn btn_other" print-btn ng-click="printIt()">打印二维码</div>
  534. <div class="btn btn_other" ng-click="exportopen()">导出</div>
  535. </div>
  536. </div>
  537. <div class="tableList" ui-i18n="{{lang}} ">
  538. <!-- <div id="grid" ui-grid="gridOptions" ui-grid-pagination external-scopes="$scope" ui-grid-cellNav ui-grid-resize-columns ui-grid-pinning
  539. ui-grid-selection ui-grid-move-columns ui-grid-exporter class="grid"></div> -->
  540. <div id="grid" ui-grid="gridOptions" ui-grid-pagination external-scopes="$scope" ui-grid-resize-columns
  541. ui-grid-pinning ui-grid-selection ui-grid-move-columns class="grid"></div>
  542. </div>
  543. <!-- 高级搜索 -->
  544. <div class="senior_fixed" ng-show="senior_show">
  545. <div class="senior" ng-class="gdzc_edit">
  546. <div class="head">
  547. <span>高级搜索</span>
  548. <span class="jiaocha" ng-click="close()">×</span>
  549. </div>
  550. <div class="body">
  551. <div class="new" ng-click="new_select()">
  552. <span>+</span>
  553. <span>新增字段</span>
  554. </div>
  555. <div class="sele_ipt">
  556. <div ng-repeat="r in new_one">
  557. <span ng-click="dwdws()">自定义字段:</span><br>
  558. <ui-select class="pull-left selectzise daxiao" style="height:28px!important" ng-model="$parent.new_one[$index].keys"
  559. theme="bootstrap" ng-change="delet($parent.new_one[$index].keys)">
  560. <ui-select-match placeholder="选择搜索类型">
  561. {{r.keys.templateOptions.label}}
  562. </ui-select-match>
  563. <ui-select-choices repeat="n in propTypeOptions">
  564. <div ng-bind-html="n.templateOptions.label"></div>
  565. </ui-select-choices>
  566. </ui-select>
  567. <input type="text" placeholder="请输入关键字" style="height:28px!important" ng-model="$parent.new_one[$index].vals">
  568. </div>
  569. </div>
  570. </div>
  571. <div class="fot_btn">
  572. <input type="button" class="btn search" value="搜索" ng-click="gaoji_search()">
  573. <input type="button" class="btn guanbi" value="取消" ng-click="close()">
  574. </div>
  575. </div>
  576. </div>
  577. </div>