index.html 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410
  1. {extend name="public/layout"/} {block name="title"}VR楼书{/block} {block name="body"}
  2. <link rel="stylesheet" href="__STATIC__/css/csspc.css">
  3. <link rel="stylesheet" href="__STATIC__/css/font.css">
  4. <style>
  5. html {
  6. min-width: 1100px;
  7. margin: 0 auto;
  8. width: 100%;
  9. height: 100%;
  10. }
  11. body {
  12. background: #EEEEEE;
  13. height: 100%;
  14. width: 100%;
  15. color: #333;
  16. font-size: 14px;
  17. padding:15px;
  18. }
  19. .layui-fluid {
  20. display: block;
  21. box-shadow: 0 0 4px 0 #B6CADE;
  22. border-radius: 5px;
  23. background-color: #ffffff;
  24. }
  25. .layui-card {
  26. background: #fff;
  27. }
  28. .rst_box_top {
  29. background: #fff;
  30. padding: 0px 0px 1px;
  31. border-radius: 8px;
  32. }
  33. .layui-tab-title .layui-this:after {
  34. width: 50px !important;
  35. }
  36. .layui-tab-brief>.layui-tab-more li.layui-this:after,
  37. .layui-tab-brief>.layui-tab-title .layui-this:after {
  38. border-bottom: 4px solid #28A1FF !important;
  39. }
  40. .layui-tab-title .layui-this:after {
  41. width: 60%;
  42. height: 2px;
  43. border-radius: 3px;
  44. left: 50%;
  45. transform: translateX(-50%);
  46. }
  47. .layui-tab-title {
  48. height: auto !important;
  49. }
  50. .layui-this {
  51. color: #28A1FF !important;
  52. }
  53. .lanse {
  54. color: #28A1FF;
  55. }
  56. .huise999 {
  57. color: #999;
  58. }
  59. .layui-bodys {
  60. background: #fff;
  61. border-radius: 8px;
  62. padding: 25px 15px;
  63. overflow: hidden;
  64. height: 85vh;
  65. min-height: 650px;
  66. }
  67. .rst_box_b_left_input {
  68. width: 210px;
  69. height: 40px;
  70. border: 1px solid #ECECEC;
  71. }
  72. .layui-form-item {
  73. margin-bottom: 0;
  74. clear: initial;
  75. }
  76. .layui-input,
  77. .layui-select {
  78. height: 38px;
  79. }
  80. /* .searchIco{right:5%;font-size:24px;color:#28A1FF;top:8%; text-align: center;line-height: 38px;cursor: pointer;} */
  81. .huise333 {
  82. color: #333;
  83. }
  84. input,select{
  85. font-size: 14px;
  86. }
  87. .building_list_li_dl dd {
  88. border: 1px solid #ECECEC;
  89. border-radius: 8px;
  90. padding: 20px;
  91. overflow: hidden;
  92. }
  93. .building_list_li_dd_img {
  94. width: 122px;
  95. height: 122px;
  96. overflow: hidden;
  97. }
  98. .building_list_li_dd_ul li {
  99. float: left;
  100. margin-right: 1.2%;
  101. }
  102. .vr_icos {
  103. height: 17px;
  104. }
  105. .vr_icos2 {
  106. vertical-align: -10%;
  107. }
  108. .building_list_li {
  109. margin-top: 25px;
  110. }
  111. .abc_list {
  112. right: 0;
  113. top: 25px;
  114. overflow-y: auto;
  115. height: 90%;
  116. -ms-overflow-style: none;
  117. width: 40px;
  118. text-align: center;
  119. }
  120. .building_list_ul {
  121. -ms-overflow-style: none;
  122. overflow-y: auto;
  123. height: 90%;
  124. }
  125. .abc_list::-webkit-scrollbar {
  126. display: none;
  127. }
  128. .building_list_ul::-webkit-scrollbar {
  129. display: none;
  130. }
  131. .abc_list a {
  132. display: block;
  133. margin-bottom: 15px;
  134. color: #999999;
  135. font-size: 18px;
  136. cursor: pointer;
  137. }
  138. .abc_list a:hover {
  139. color: #28A1FF;
  140. }
  141. .hongse {
  142. color: #FE0000;
  143. }
  144. .urge_indexbg {
  145. background: #fff;
  146. padding: 25px;
  147. border-radius: 8px;
  148. height: 100%;
  149. }
  150. .noneimgs {
  151. position: absolute;
  152. top: 0;
  153. left: 0;
  154. bottom: 0;
  155. right: 0;
  156. margin: auto;
  157. }
  158. .layui-btn-primary {
  159. color: #249EFB;
  160. border: 1px solid #249EFB;
  161. background-color: #fff;
  162. }
  163. .layui-btn-primary:hover {
  164. background-color: #E3F7FF;
  165. color: #249EFB;
  166. }
  167. .layui-form-select dl dd.layui-this {
  168. color: #ffffff !important;
  169. }
  170. .widthAuto {
  171. width: calc(100% - 140px);
  172. }
  173. .istextshow {
  174. display: none;
  175. }
  176. .building_list_uls {
  177. -ms-overflow-style: none;
  178. overflow-y: auto;
  179. height: 90%;
  180. }
  181. .building_list_uls::-webkit-scrollbar {
  182. display: none;
  183. }
  184. .noneClass {
  185. display: none !important;
  186. }
  187. .c_wordlist,
  188. .c_wordlist1 {
  189. width: 20px;
  190. position: absolute;
  191. top: 43px;
  192. right: 1px;
  193. display: flex;
  194. flex-direction: column;
  195. z-index: 99999;
  196. height: auto;
  197. justify-content: flex-start;
  198. align-items: center;
  199. box-sizing: border-box;
  200. padding: 4px 0px;
  201. overflow: hidden;
  202. max-height: 297px;
  203. -ms-overflow-style: none;
  204. /* IE 10+ */
  205. scrollbar-width: none;
  206. /* Firefox */
  207. overflow-y: scroll;
  208. background-color: #f5f5f5;
  209. }
  210. .c_wordlist::-webkit-scrollbar,
  211. .c_wordlist1::-webkit-scrollbar {
  212. display: none;
  213. /* Chrome Safari */
  214. }
  215. .c_wordlist>li,
  216. .c_wordlist1>li {
  217. width: 20px;
  218. height: 37px;
  219. cursor: pointer;
  220. display: flex;
  221. justify-content: center;
  222. align-items: center;
  223. margin-bottom: 0px;
  224. line-height: 37px;
  225. }
  226. .c_wordlist>li.li_active {
  227. font-weight: 700 !important;
  228. background-color: #249EFB !important;
  229. color: #fff !important;
  230. }
  231. .c_wordlist1>li.li_active {
  232. font-weight: 700 !important;
  233. background-color: #249EFB !important;
  234. color: #fff !important;
  235. }
  236. .flex-row {
  237. display: flex;
  238. align-items: center;
  239. justify-content: space-between;
  240. }
  241. .flex-sub {
  242. flex: 1;
  243. }
  244. .layui-form-item .layui-input-inline {
  245. width: auto !important;
  246. }
  247. .justify-end {
  248. justify-content: flex-end;
  249. }
  250. .iwidth {
  251. width: 240px;
  252. text-align: center;
  253. }
  254. .layui-form-select dl {
  255. width: 100% !important;
  256. }
  257. .isdatawpsa{height: 311px;width:100%}
  258. .isdatas{display: none;}
  259. .setempHtml{
  260. overflow: hidden;
  261. }
  262. .setempHtml li{float:left;border:1px solid #999;height: 38px;line-height: 38px;text-align: center;margin:15px 1.25% 0;background: #f7f7f7;font-size: 14px;padding:0 10px;}
  263. .setempHtml li .xxx{font-size: 16px;cursor: pointer;width:16px; vertical-align: -8%;margin-left:5px}
  264. .max_content{width: max-content;}
  265. .returnico{position:fixed;bottom:9%;right:1.5%;width:68px;cursor: pointer;display:none}
  266. .noneimgs{width:20%;}
  267. #pages a,#pages span{font-size: 13px;}
  268. .layui-tab-item{height: 100%;}
  269. </style>
  270. <body>
  271. <div class="layui-fluid">
  272. <div class="layui-card" style="box-shadow:none;">
  273. <div class="layui-tab layui-tab-brief">
  274. <ul class="layui-tab-title rst_box_top">
  275. <li data-index="1" class="font16 layui_pcupload">小区楼盘</li>
  276. <li data-index="3" class="font16 layui-tjbtns">手机上传</li>
  277. <li data-index="4" class="font16 layui-lpsjtjbtns">楼盘数据统计</li>
  278. <li data-index="5" class="font16 setemp">设置可见人</li>
  279. </ul>
  280. <div class="layui-tab-content pd0 mdt20">
  281. <!--01-->
  282. <div class="layui-tab-item">
  283. <div class="layui-bodys">
  284. <div class="wauto height100_">
  285. <div class=" layui-form " style="height: 45px;">
  286. <div class="layui-form-item flex-row">
  287. <div class="layui-inline flex-row">
  288. {auth:check name="building/add"}
  289. <button type="button"
  290. class="layui-btn layuiadmin-btn-course wleft layui-btn-normal layui-btn-primary"
  291. data-type="add">添加楼盘</button>
  292. {/auth:check}
  293. <a href="#" type="button" class="layui-btn wleft layui-btn-primary" data-type="lplist"
  294. id="lplist">楼盘列表</a>
  295. </div>
  296. <div class="flex-sub flex-row justify-end">
  297. <div class="layui-inline flex-row" style="margin-right:0;">
  298. <div class="layui-input-inline flex-sub relative">
  299. <input type="text" class="iwidth layui-input" name="time" id="time_date"
  300. placeholder="上传开始时间 - 结束时间" autocomplete="off" class="layui-input">
  301. </div>
  302. </div>
  303. <div class="layui-inline flex-row" style="margin-right:0;">
  304. <div class="layui-input-inline flex-sub relative" id="box212">
  305. <select name="community" lay-filter="community" id="community" lay-search>
  306. <option value="">请选择小区</option>
  307. {notempty name="communityList"}
  308. {volist name="communityList.arr" id="t"}
  309. <option data-py="{$t.s}" value="{$t.id}">{$t.name}</option>
  310. {/volist}
  311. {/notempty}
  312. </select>
  313. <ul class="c_wordlist noneClass">
  314. {notempty name="communityList"}
  315. {volist name="communityList.sort" id="vo"}
  316. <li data-py="{$vo}">{$vo}</li>
  317. {/volist}
  318. {/notempty}
  319. </ul>
  320. </div>
  321. </div>
  322. <div class="layui-inline flex-row" style="margin-right:0;">
  323. <div class="layui-input-block mdl0">
  324. <select name="employee_id" class="pdl12" id='employee_id' lay-search
  325. lay-filter="selectuploadpeople">
  326. <option value="">请选择上传人员</option>
  327. {volist name="employee" id="e"}
  328. <option value="{$e.id}">{$e.name}</option>
  329. {/volist}
  330. </select>
  331. </div>
  332. </div>
  333. <div class="layui-inline flex-row" style="margin-right:0;">
  334. <div class="layui-input-inline mdl0 pdl12 height100_">
  335. <input type="text" name="name" required lay-verify="required" placeholder="请输入楼盘名称"
  336. autocomplete="off" class="layui-input keywords" id="keyword">
  337. </div>
  338. </div>
  339. </div>
  340. <div class="layui-inline" style="margin-right: 0;">
  341. <button class="layui-btn layuiadmin-btn-list searchIco submitbtn" style="float: right;">
  342. <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
  343. </button>
  344. </div>
  345. </div>
  346. </div>
  347. <!--body-->
  348. <div class="wpsr height100_ woverflow" style="width: 100%;">
  349. <ul class="width100_ building_list_ul buliding_list_html">
  350. <!--01-->
  351. <!--01-->
  352. </ul>
  353. <div class="wpsa abc_list"></div>
  354. <div id="pages"></div>
  355. <div class="wpsa returnico">
  356. <img class="width50_ wauto" src="__STATIC__/img/returnico.png" alt="">
  357. <p class="textc mdt05 lanse font12">返回顶部</p>
  358. </div>
  359. </div>
  360. <!--body-->
  361. </div>
  362. </div>
  363. </div>
  364. <!--01-->
  365. <!--03-->
  366. <div class="layui-tab-item">
  367. <div class="layui-bodys">
  368. <div class="wauto height100_">
  369. <div class=" layui-form" style="height: 45px;">
  370. <div class="layui-form-item flex-row">
  371. <div class="flex-sub flex-row justify-end">
  372. <div class="layui-inline flex-row" style="margin-right:0;">
  373. <div class="layui-input-inline flex-sub relative">
  374. <input type="text" class="iwidth layui-input" name="time" id="time_date1"
  375. placeholder="添加开始时间 - 添加结束时间" autocomplete="off" class="layui-input">
  376. </div>
  377. </div>
  378. <div class="layui-inline flex-row" style="margin-right:0;">
  379. <div class="layui-input-inline flex-sub relative" id="box21">
  380. <select name="community" lay-filter="community1" id="community1" lay-search>
  381. <option value="">请选择小区</option>
  382. {notempty name="communityList"}
  383. {volist name="communityList.arr" id="t"}
  384. <option data-py="{$t.s}" value="{$t.id}">{$t.name}</option>
  385. {/volist}
  386. {/notempty}
  387. </select>
  388. <ul class="c_wordlist1 noneClass">
  389. {notempty name="communityList"}
  390. {volist name="communityList.sort" id="vo"}
  391. <li data-py="{$vo}">{$vo}</li>
  392. {/volist}
  393. {/notempty}
  394. </ul>
  395. </div>
  396. </div>
  397. <div class="layui-inline flex-row" style="margin-right:0;">
  398. <div class="layui-input-block mdl0">
  399. <select name="employee_id" class="pdl12" id='employee_ids' lay-filter="selectuploadpeoples">
  400. <option value="">请选择上传人员</option>
  401. {volist name="employee_mb" id="e"}
  402. <option value="{$e.id}">{$e.name}</option>
  403. {/volist}
  404. </select>
  405. </div>
  406. </div>
  407. <div class="layui-inline flex-row" style="margin-right:0;">
  408. <div class="layui-input-inline mdl0 pdl12 height100_">
  409. <input type="text" name="name" required lay-verify="required" placeholder="请输入楼盘名称"
  410. autocomplete="off" class="layui-input keywords" id="keywords">
  411. </div>
  412. </div>
  413. </div>
  414. <div class="layui-inline">
  415. <button class="layui-btn layuiadmin-btn-list searchIcos" style="float: right;">
  416. <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
  417. </button>
  418. </div>
  419. </div>
  420. </div>
  421. <!--body-->
  422. <div class="wpsr height100_ woverflow" style="width: 100%;">
  423. <ul class="width96_ building_list_uls">
  424. <!--01-->
  425. <!--01-->
  426. </ul>
  427. <div id="mobelepage"></div>
  428. <div class="wpsa abc_list"></div>
  429. </div>
  430. <!--body-->
  431. </div>
  432. </div>
  433. </div>
  434. <!--03-->
  435. <!-- 05 -->
  436. <div class="layui-tab-item">
  437. <div class="layui-bodys" style="padding:0 10px;">
  438. <div class="body04 width100_ height100_">
  439. <iframe class="lpsjtjbtnsrc" src="" style="width: 100%;height:100%;" scrolling="0" frameborder="0"></iframe>
  440. </div>
  441. </div>
  442. </div>
  443. <!-- 05 -->
  444. <!-- 04 -->
  445. <div class="layui-tab-item">
  446. <div class="layui-bodys" style="padding:0 15px;">
  447. <div class="body04 width100_ height100_" style="overflow:auto;">
  448. <div class="isdatas wpsr width100_ height100_">
  449. <div class="isdatawpsa wpsa wpsauto">
  450. <div class="isdata_img wauto"></div>
  451. <p class="textc font16 mdt20" style="color: #999;">暂无数据请<span class="addsetemp1 lanse href">去添加</span></p>
  452. </div>
  453. </div>
  454. <div class="isdatas02">
  455. <div class="">
  456. <ul class="setempHtml mdl10">
  457. </ul>
  458. </div>
  459. </div>
  460. </div>
  461. </div>
  462. </div>
  463. <!-- 04 -->
  464. </div>
  465. </div>
  466. </div>
  467. </div>
  468. </body>
  469. {/block} {block name="js"}
  470. <script>
  471. layui.config({
  472. base: '__LAYUI__/',
  473. urlbase: '/sys'
  474. }).extend({
  475. index: 'lib/index' //主入口模块
  476. }).use(['index', 'element', 'table', 'form', 'laydate','laypage'], function () {
  477. var $ = layui.$,
  478. layer = layui.layer,
  479. laypage = layui.laypage,
  480. table = layui.table,
  481. form = layui.form
  482. element = layui.element,
  483. laydate = layui.laydate,
  484. scrollTopNum = 0,
  485. cIndex = 0,
  486. page = 1,
  487. limit=10,
  488. datass = {
  489. name: '',
  490. page:page,
  491. limit:limit
  492. },
  493. datas1 = {
  494. name: '',
  495. },
  496. returns_data = {};
  497. laydate.render({
  498. elem: '#time_date'
  499. , type: 'date'
  500. , range: true
  501. , trigger: 'click'//呼出事件改成click
  502. , done: function (value, date, endDate) { // 选择完毕的回调
  503. var keyword = $('#keyword').val();
  504. var employee_id = $('#employee_id').val();
  505. var community = $('#community').val();
  506. returns_data['time'] = value;
  507. var returns_datas=JSON.stringify(returns_data);
  508. localStorage.setItem('return_datas',returns_datas);
  509. datass = {
  510. name: keyword,
  511. employee_id: employee_id,
  512. time: value,
  513. community_id: community,
  514. page:page,
  515. limit:limit
  516. }
  517. getList(datass);
  518. }
  519. });
  520. form.on('select(community)', function (data) {
  521. var keyword = $('#keyword').val();
  522. var employee_id = $('#employee_id').val();
  523. var time = $('#time_date').val();
  524. returns_data['community_id'] = data.value;
  525. var returns_datas=JSON.stringify(returns_data);
  526. localStorage.setItem('return_datas',returns_datas);
  527. datass = {
  528. name: keyword,
  529. employee_id: employee_id,
  530. time: time,
  531. community_id: data.value,
  532. page:page,
  533. limit:limit
  534. }
  535. getList(datass);
  536. });
  537. form.on('select(selectuploadpeople)', function (data) {
  538. var keyword = $('#keyword').val();
  539. var employee_id = data.value;
  540. var time = $('#time_date').val();
  541. var community = $('#community').val();
  542. returns_data['employee_id'] = data.value;
  543. var returns_datas=JSON.stringify(returns_data);
  544. localStorage.setItem('return_datas',returns_datas);
  545. datass = {
  546. name: keyword,
  547. employee_id: employee_id,
  548. time: time,
  549. community_id: community,
  550. page:page,
  551. limit:limit
  552. }
  553. getList(datass);
  554. });
  555. $('#keyword').off('input').on('input',function(obj){
  556. returns_data['name'] = $(this).val();
  557. var returns_datas=JSON.stringify(returns_data);
  558. localStorage.setItem('return_datas',returns_datas);
  559. })
  560. $('#keyword').on('keypress', function (e) {
  561. if (e.keyCode === 13) {
  562. var keyword = $('#keyword').val();
  563. var employee_id = $('#employee_id').val();
  564. var time = $('#time_date').val();
  565. var community = $('#community').val();
  566. datass = {
  567. name: keyword,
  568. employee_id: employee_id,
  569. time: time,
  570. community_id: community,
  571. page:page,
  572. limit:limit
  573. }
  574. getList(datass);
  575. }
  576. })
  577. laydate.render({
  578. elem: '#time_date1'
  579. , type: 'date'
  580. , range: true
  581. , trigger: 'click'//呼出事件改成click
  582. , done: function (value, date, endDate) { // 选择完毕的回调
  583. var keyword = $('#keywords').val();
  584. var employee_id = $('#employee_ids').val();
  585. var community = $('#community1').val();
  586. datas1 = {
  587. name: keyword,
  588. employee_id: employee_id,
  589. time: value,
  590. community_id: community
  591. }
  592. getList(datas1, 's');
  593. }
  594. });
  595. form.on('select(community1)', function (data) {
  596. var keyword = $('#keywords').val();
  597. var employee_id = $('#employee_ids').val();
  598. var time = $('#time_date1').val();
  599. datas1 = {
  600. name: keyword,
  601. employee_id: employee_id,
  602. time: time,
  603. community_id: data.value
  604. }
  605. getList(datas1, 's');
  606. });
  607. $('#keywords').on('keypress', function (e) {
  608. if (e.keyCode === 13) {
  609. var keyword = $('#keywords').val();
  610. var employee_id = $('#employee_ids').val();
  611. var time = $('#time_date1').val();
  612. var community = $('#community1').val();
  613. datas1 = {
  614. name: keyword,
  615. employee_id: employee_id,
  616. time: time,
  617. community_id: community
  618. }
  619. getList(datas1, 's');
  620. }
  621. })
  622. form.on('select(selectuploadpeoples)', function (data) {
  623. var keyword = $('#keywords').val();
  624. var employee_id = data.value;
  625. var time = $('#time_date1').val();
  626. var community = $('#community1').val();
  627. datas1 = {
  628. name: keyword,
  629. employee_id: employee_id,
  630. time: time,
  631. community_id: community
  632. }
  633. getList(datas1, 's');
  634. });
  635. $('.searchIco').click(function () {
  636. var keyword = $('#keyword').val();
  637. var employee_id = $('#employee_id').val();
  638. var time = $('#time_date').val();
  639. var community = $('#community').val();
  640. datass = {
  641. name: keyword,
  642. employee_id: employee_id,
  643. time: time,
  644. community_id: community,
  645. page:page,
  646. limit:limit
  647. }
  648. getList(datass);
  649. })
  650. $('.searchIcos').click(function () {
  651. var keyword = $('#keywords').val();
  652. var employee_id = $('#employee_ids').val();
  653. var time = $('#time_date1').val();
  654. var community = $('#community1').val();
  655. datas1 = {
  656. name: keyword,
  657. employee_id: employee_id,
  658. time: time,
  659. community_id: community
  660. }
  661. getList(datas1, 's');
  662. })
  663. $('.rst_box_top li').click(function(e) {
  664. let props = $(this).prop('dataset');
  665. localStorage.setItem('CUR_TAB_INDEX',props.index);
  666. })
  667. $('.layui_pcupload').click(function () {
  668. getList(datass);
  669. })
  670. $('.layui-tjbtns').click(function () {
  671. $('.buliding_list_html').html('');
  672. getList(datas1, 's');
  673. })
  674. $('.layui-lpsjtjbtns').click(function () {
  675. $('.lpsjtjbtnsrc').attr('src','analysis.html');
  676. })
  677. let TAB_INDEX = localStorage.getItem('CUR_TAB_INDEX');
  678. if (TAB_INDEX) {
  679. let index = parseInt(TAB_INDEX) - 1;
  680. $('.rst_box_top li').eq(index).addClass('layui-this').siblings().removeClass("layui-this");
  681. $('.layui-tab-item').eq(index).addClass('layui-show').siblings().removeClass("layui-show");
  682. if (index == 2) {
  683. getList(datas1, 's');
  684. }
  685. if (index == 0) {
  686. getList(datass);
  687. }
  688. if (index == 1) {
  689. urge_list();
  690. }
  691. if (index == 4) {
  692. empapi();
  693. }
  694. if (index == 3) {
  695. $('.lpsjtjbtnsrc').attr('src','analysis.html');
  696. }
  697. } else {
  698. $('.rst_box_top li').eq(0).addClass('layui-this').siblings().removeClass("layui-this");
  699. $('.layui-tab-item').eq(0).addClass('layui-show').siblings().removeClass("layui-show");
  700. getList(datass);
  701. }
  702. function getList(datass, t = '') {
  703. var url = '{:url("building/index")}';
  704. if (t == 's') {
  705. url = '{:url("building/index",array("from"=>1))}';
  706. }
  707. $.ajax({
  708. url: url,
  709. type: 'post',
  710. dataType: 'json',
  711. data: datass,
  712. success: function (res) {
  713. if (res.code == 0) {
  714. setListHtml(res.data, t);
  715. if (res.data.length == 0) {
  716. $('.building_list_ul' + t).append('<img class="noneimgs" src="__STATIC__/img/nonedata.png"/>');
  717. }
  718. if(t==''){
  719. pages('pages',datass, res.count);
  720. }else{
  721. pages('mobelepage',datass, res.count);
  722. }
  723. }
  724. }
  725. });
  726. }
  727. function pages(objname,where,count) {
  728. laypage.render({
  729. elem: objname
  730. , count: count
  731. , curr: where.page
  732. , limit: where.limit
  733. , prev:'<i class="layui-icon layui-icon-left"></i>'
  734. , next:'<i class="layui-icon layui-icon-right"></i>'
  735. , layout: ['prev', 'page', 'next' , 'skip','count','limit']
  736. , jump: function (obj, first) {
  737. limit = obj.limit;
  738. where.page = obj.curr;
  739. where.limit = obj.limit;
  740. if (!first) {
  741. $('.building_list_ul').animate({scrollTop:0}, 0);
  742. if(objname == 'pages'){
  743. getList(where);
  744. }
  745. if(objname == 'mobelepage'){
  746. getList(where,'s');
  747. }
  748. }
  749. }
  750. });
  751. }
  752. // 04
  753. $('.setemp').click(function(){
  754. empapi();
  755. })
  756. function empapi(){
  757. $.ajax({
  758. url: '{:url("building/special_emplist")}',
  759. type: 'post',
  760. dataType: 'json',
  761. success: function(res) {
  762. if(res.code==0){
  763. emphtmls(res.data);
  764. }
  765. }
  766. });
  767. }
  768. function emphtmls(data){
  769. var emplistHtml = '';
  770. if(data.length==0){
  771. $('.setempHtml').html('<li style="border: 0;background:none;padding:0;"><button type="button" class="layui-btn layui-btn-primary addsetemp2" style="vertical-align: 13px;">+添加</button></li>');
  772. $('.isdatas').show();
  773. $('.isdatas02').hide();
  774. $('.isdata_img').html('<img class="width20_ wauto" src="__STATIC__/img/nonedata.png"/>');
  775. }else{
  776. $('.setempHtml').html('<li style="border: 0;background:none;padding:0;"><button type="button" class="layui-btn layui-btn-primary addsetemp2" style="vertical-align: 13px;">+添加</button></li>');
  777. for(let i=0;i<data.length;i++){
  778. emplistHtml+='<li><div class="max_content"><span class="ids">'+data[i].name+'</span><img data-id="'+data[i].id+'" class="deletebtns xxx ids" src="__STATIC__/img/xxx.png"/></div></li>'
  779. }
  780. $('.setempHtml').append(emplistHtml);
  781. $('.isdatas').hide();
  782. $('.isdatas02').show();
  783. $('.deletebtns').on('click',function(){
  784. var id = $(this).data('id');
  785. $.ajax({
  786. url: '{:url("building/del_special_emp")}',
  787. type: 'post',
  788. dataType: 'json',
  789. data:{
  790. eid:id
  791. },
  792. success: function(res) {
  793. if(res.code==0){
  794. empapi();
  795. }
  796. }
  797. });
  798. })
  799. addsetemp('.addsetemp2');
  800. }
  801. }
  802. addsetemp('.addsetemp1');
  803. function addsetemp(obj){
  804. $(obj).on('click',function() {
  805. layer.open({
  806. type: 2,
  807. title: ['设置可见人', 'color:#333333;background-color:#D8E6F1;'],
  808. content: '{:url("building/building_special_assigns")}',
  809. area: ['80%', '80%'],
  810. btn: ['确定', '取消'],
  811. yes: function (index, layero) {
  812. layer.close(index);
  813. empapi();
  814. },
  815. end: function() {
  816. cIndex = 0;
  817. }
  818. });
  819. })
  820. }
  821. function setListHtml(arr, t = '') {
  822. let htmls = arr.map((u, x) => {
  823. return `<li class="building_list_li" id="A">
  824. <dl class="building_list_li_dl mdt15">
  825. <dd class="mdt15" style="min-width:1120px;">
  826. <div class="building_list_li_dd_img wleft">
  827. <img class="width100_ height100_" src="${u.cover[0]}"/>
  828. </div>
  829. <div class="wleft mdl01_ widthAuto">
  830. <div class="lh16 mdt14">
  831. <span class="huise999 font16">名称 ${u.name}</span>
  832. <img class="ids vrico mdl06 ${u.vr_link ? '' : 'dsnone'}" src="__STATIC__/img/vrico.png"/>
  833. <span class="font12 huise999 mdl20">上传时间:${u.addtime}</span>
  834. </div>
  835. <p class="font14 width100_ huise999 ids textlh1 content_txt_span lh24 mdtb15">简介:<span class="contentspan">${u.content}</span> <span class="istextshow lanse href" data-index="${x}" data-isshow=1>[展开]</span></p>
  836. <div class="">
  837. <ul class="building_list_li_dd_ul lh22 woverflow">
  838. <li class="font14 huise333">交房 <span class="huise999">${u.duetime?u.duetime:'暂未填写'}</span></li>
  839. <li class="font14 huise333">进度 <span class="huise999">${u.progress_count}条</span></li>
  840. <li class="font14 huise333">VR <span class="huise999">${u.vr_count}条</span></li>
  841. <li class="font14 huise333 href material_case" data-type="material_case">案例 <span class="huise999">${u.material_case_count}个</span></li>
  842. <li class="font14 huise333">浏览次数 <span class="huise999">${u.view_times}次</span></li>
  843. <li class="font14 huise333">上传人 <span class="huise999">${(u.from == 1 && u.employee && u.employee.name) ? u.employee.name : (u.employee && u.employee.opt_name) ? u.employee.opt_name : (u.employee && u.employee.name) ? u.employee.name : '无'}</span></li>
  844. <li class="font14 href housetype"><a href="housetype.html?building_id=${u.id}" class="lanse xiaoqubtn">小区户型${u.housetype_count}个</a></li>
  845. <li class="font14 href progress" data-id="${u.id}"><a href="progress.html?building_id=${u.id}" class="lanse lpjdbtn">楼盘进度</a></li>
  846. <li class="font14 lanse href vr_edit" data-id="${u.id}" data-type="edit">
  847. <span data-id="${u.id}" data-xin="${t}" class="mdl03">编辑</span>
  848. </li>
  849. <li data-id="${u.id}" class="font14 lanse href cluesBtn">线索记录</li>
  850. <li data-id="${u.id}" data-xin="${t}" class="font14 lanse href assignTask">指派</li>
  851. <li data-id="${u.id}" class="font14 hongse href vr_del">
  852. <span data-id="${u.id}" data-xin="${t}" class="hongse">删除</span>
  853. </li>
  854. </ul>
  855. </div>
  856. </div>
  857. </dd>
  858. </dl>
  859. </li>`;
  860. }).join('');
  861. $('.building_list_ul' + t).html(htmls);
  862. $('.lpjdbtn').on('click',function(){
  863. returns_data['scrollPos'] = scrollTopNum;
  864. var returns_datas=JSON.stringify(returns_data);
  865. localStorage.setItem('return_datas',returns_datas);
  866. })
  867. $('.xiaoqubtn').on('click',function(){
  868. returns_data['scrollPos'] = scrollTopNum;
  869. var returns_datas=JSON.stringify(returns_data);
  870. localStorage.setItem('return_datas',returns_datas);
  871. })
  872. var content_arr = [];
  873. $('.building_list_li').each(function () {
  874. var content = $.trim($(this).find('.contentspan').html());
  875. content_arr.push(content);
  876. })
  877. for (let i = 0; i < content_arr.length; i++) {
  878. if (content_arr[i].length < 64) {
  879. $('.istextshow').eq(i).hide();
  880. } else {
  881. $('.istextshow').eq(i).show();
  882. content = content_arr[i].substr(0, 60) + '...';
  883. $(".contentspan").eq(i).html(content);
  884. }
  885. }
  886. $('.istextshow').on('click', function () {
  887. var this_ = $(this);
  888. indexs = this_.data('index');
  889. offshows = parseInt(this_.attr('data-isshow'));
  890. if (offshows == 1) {
  891. content = content_arr[indexs];
  892. this_.parents(".content_txt_span").removeClass('textlh1');
  893. this_.siblings(".contentspan").html(content);
  894. this_.html('[收起]');
  895. this_.attr('data-isshow', 2)
  896. } else {
  897. content = content_arr[indexs].substr(0, 64) + '...';
  898. this_.parents(".content_txt_span").addClass('textlh1');
  899. this_.siblings(".contentspan").html(content);
  900. this_.html('[展开]');
  901. this_.attr('data-isshow', 1)
  902. }
  903. })
  904. setTimeout(() => {
  905. $('.vr_edit').on('click', (e) => {
  906. let id = e.target.dataset.id;
  907. let xin = e.target.dataset.xin;
  908. if (cIndex == 0) {
  909. cIndex++;
  910. layer.open({
  911. type: 2,
  912. title: ['编辑楼盘', 'color:#333333;background-color:#D8E6F1;'],
  913. content: '{:url("building/edit")}?id=' + id,
  914. resize: false,
  915. area: ['80%', '80%'],
  916. end: function (index, layero) {
  917. getList('', xin);
  918. scrollPostion(scrollTopNum);
  919. cIndex = 0;
  920. }
  921. });
  922. }
  923. })
  924. $('.vr_del').on('click', (e) => {
  925. let id = e.target.dataset.id;
  926. let xin = e.target.dataset.xin;
  927. if (cIndex == 0) {
  928. cIndex++;
  929. layer.confirm('确定删除当前楼盘信息', {
  930. title: ['信息', 'color:#333333;background-color:#D8E6F1;'],
  931. end: function () {
  932. cIndex = 0;
  933. }
  934. }, function (index) {
  935. $.ajax({
  936. url: "{:url('building/delete')}",
  937. data: {
  938. id: id
  939. },
  940. type: 'post',
  941. success: function (res) {
  942. if (res.code == 0) {
  943. layer.msg('删除成功')
  944. getList('', xin);
  945. scrollPostion(scrollTopNum);
  946. layer.close(index);
  947. } else {
  948. layer.msg(res.msg)
  949. }
  950. }
  951. });
  952. });
  953. }
  954. })
  955. $('.cluesBtn').on('click', (e) => {
  956. let id = e.target.dataset.id;
  957. if (cIndex == 0) {
  958. cIndex++;
  959. layer.open({
  960. type: 2,
  961. title: ['线索记录', 'color:#333333;background-color:#D8E6F1;'],
  962. content: '{:url("data/cluedata")}?type=building&id=' + id,
  963. resize: false,
  964. area: ['80%', '80%'],
  965. end: function () {
  966. cIndex = 0;
  967. }
  968. });
  969. }
  970. })
  971. $('.change_construction').on('click', (e) => {
  972. let id = e.target.dataset.id;
  973. if (cIndex == 0) {
  974. cIndex++;
  975. layer.open({
  976. type: 2,
  977. title: ['在施工地绑定', 'color:#333333;background-color:#D8E6F1;'],
  978. content: '{:url("building/construction")}?building_id=' + id,
  979. resize: false,
  980. area: ['80%', '80%'],
  981. end: function () {
  982. cIndex = 0;
  983. }
  984. });
  985. }
  986. })
  987. $('.assignTask').click(function () {
  988. let id = $(this).prop('dataset').id;
  989. let xin = $(this).prop('dataset').xin;
  990. if (cIndex == 0) {
  991. cIndex++;
  992. layer.open({
  993. type: 2,
  994. title: ['指派', 'color:#333333;background-color:#D8E6F1;'],
  995. content: '{:url("building/building_assigns")}?id=' + id,
  996. area: ['80%', '80%'],
  997. btn: ['确定', '取消'],
  998. yes: function (index, layero) {
  999. if (xin) {
  1000. getList(datas1, xin);
  1001. } else {
  1002. getList(datass, xin);
  1003. }
  1004. layer.close(index);
  1005. //点击确认触发 iframe 内容中的按钮提交
  1006. },
  1007. end: function () {
  1008. cIndex = 0;
  1009. }
  1010. });
  1011. }
  1012. })
  1013. }, 300)
  1014. }
  1015. if(localStorage.getItem('return02')==1){
  1016. setTimeout(function(){
  1017. localStorage.setItem('return02','');
  1018. },3000)
  1019. }else{
  1020. localStorage.setItem('return_datas','');
  1021. }
  1022. if(localStorage.getItem('return_datas')){
  1023. var bodyjson = JSON.parse(localStorage.getItem('return_datas'));
  1024. returns_data['time'] = bodyjson.time?bodyjson.time:'';
  1025. if(bodyjson.employee_id==''||bodyjson.employee_id==undefined||bodyjson.employee_id==null){
  1026. }else{
  1027. set_select('employee_id',bodyjson.employee_id);
  1028. returns_data['employee_id'] = parseInt(bodyjson.employee_id)
  1029. }
  1030. if(bodyjson.community_id==''||bodyjson.community_id==undefined||bodyjson.community_id==null){
  1031. }else{
  1032. set_select('community',bodyjson.community_id);
  1033. returns_data['community_id'] = parseInt(bodyjson.community_id)
  1034. }
  1035. if(bodyjson.name==''||bodyjson.name==undefined||bodyjson.name==null){
  1036. }else{
  1037. $('#keyword').val(bodyjson.name);
  1038. returns_data['name'] = bodyjson.name;
  1039. }
  1040. if(bodyjson.time==''||bodyjson.time==undefined||bodyjson.time==null){
  1041. }else{
  1042. $('#time_date').val(bodyjson.time);
  1043. returns_data['time'] = bodyjson.time;
  1044. }
  1045. setTimeout(function() {
  1046. getList(returns_data);
  1047. scrollPostion(bodyjson.scrollPos);
  1048. },1000);
  1049. }
  1050. function set_select(id,value){
  1051. let obj=$("#"+id);
  1052. let names='';
  1053. for(var i=0;i<obj.find('option').length;i++){
  1054. if(obj.find('option').eq(i).val()==value){
  1055. obj.find("option").eq(i).attr("selected",true);
  1056. names=obj.find('option').eq(i).html();
  1057. }
  1058. }
  1059. setTimeout(function(){
  1060. obj.parent().find(".layui-select-title").find("input").val(names);
  1061. },500)
  1062. }
  1063. setTimeout(() => {
  1064. $('.building_list_ul').scroll(function (e) {
  1065. scrollTopNum = $(this).scrollTop();
  1066. // console.log(scrollTopNum, '<<<记录位置');
  1067. if(scrollTopNum>550){
  1068. $('.returnico').show();
  1069. }else{
  1070. $('.returnico').hide();
  1071. }
  1072. })
  1073. }, 800)
  1074. function scrollPostion(num) {
  1075. $('.building_list_ul').scrollTop(num)
  1076. }
  1077. $('.returnico').on('click',function(){
  1078. $('.building_list_ul').animate({scrollTop:0}, 500);
  1079. scrollTopNum = 0;
  1080. })
  1081. //查询页面返回值
  1082. function getQueryString(name) {
  1083. var reg = new RegExp('(^|&)' + name +'=([^&]*)(&|$)', 'i');
  1084. var r = window.location.search.substr(1).match(reg);
  1085. if (r != null) {
  1086. return unescape(r[2]);
  1087. }
  1088. return null;
  1089. }
  1090. let xqElement = $('.layui-anim-upbit')[0];
  1091. xqElement.classList.add('xqElement');
  1092. let options = [];
  1093. let xqDatalist = $('#community').children();
  1094. for (let i = 0; i < xqDatalist.length; i++) {
  1095. if (xqDatalist[i].dataset.py) {
  1096. options.push(xqDatalist[i].dataset.py)
  1097. }
  1098. }
  1099. $('dd').click(() => {
  1100. $('.c_wordlist').addClass('noneClass');
  1101. $('.c_wordlist1').addClass('noneClass');
  1102. })
  1103. $('#box212').click(() => {
  1104. $('.c_wordlist').toggleClass('noneClass');
  1105. })
  1106. $('#box21').click(() => {
  1107. $('.c_wordlist1').toggleClass('noneClass');
  1108. })
  1109. $(document).click((e) => {
  1110. let c_element = $('#community').next();
  1111. if (c_element[0].className.indexOf('layui-form-selected') < 0) {
  1112. $('.c_wordlist').addClass('noneClass');
  1113. }
  1114. let c_element1 = $('#community1').next();
  1115. if (c_element1[0].className.indexOf('layui-form-selected') < 0) {
  1116. $('.c_wordlist1').addClass('noneClass');
  1117. }
  1118. })
  1119. $('.c_wordlist').click((e) => {
  1120. if (e.target.localName != 'li') {
  1121. e.stopPropagation();
  1122. return;
  1123. }
  1124. let index = 0;
  1125. let curWord = e.target.dataset.py;
  1126. let lilist = $('.c_wordlist').children();
  1127. for (let i = 0; i < lilist.length; i++) {
  1128. lilist[i].className = '';
  1129. }
  1130. if (parseInt(curWord) != NaN) {
  1131. let word1 = curWord.toLowerCase();
  1132. index = options.indexOf(word1)
  1133. } else {
  1134. index = options.indexOf(curWord)
  1135. }
  1136. setTimeout(() => {
  1137. e.target.className = 'li_active';
  1138. let num = index * 36 + 36;
  1139. $('.xqElement').scrollTop(num);
  1140. }, 50)
  1141. e.stopPropagation();
  1142. })
  1143. let xqElement1 = $('.layui-anim-upbit')[2];
  1144. xqElement1.classList.add('xqElement1');
  1145. let options1 = [];
  1146. let xqDatalist1 = $('#community1').children();
  1147. for (let i = 0; i < xqDatalist1.length; i++) {
  1148. if (xqDatalist1[i].dataset.py) {
  1149. options1.push(xqDatalist1[i].dataset.py)
  1150. }
  1151. }
  1152. $('.c_wordlist1').click((e) => {
  1153. if (e.target.localName != 'li') {
  1154. e.stopPropagation();
  1155. return;
  1156. }
  1157. let index = 0;
  1158. let curWord = e.target.dataset.py;
  1159. let lilist = $('.c_wordlist1').children();
  1160. for (let i = 0; i < lilist.length; i++) {
  1161. lilist[i].className = '';
  1162. }
  1163. if (parseInt(curWord) != NaN) {
  1164. let word1 = curWord.toLowerCase();
  1165. index = options1.indexOf(word1)
  1166. } else {
  1167. index = options1.indexOf(curWord)
  1168. }
  1169. setTimeout(() => {
  1170. e.target.className = 'li_active';
  1171. let num = index * 36 + 36;
  1172. $('.xqElement1').scrollTop(num);
  1173. }, 50)
  1174. e.stopPropagation();
  1175. })
  1176. function scrollTo(ele, time, type) {
  1177. var eletop = $(ele).offset().top;
  1178. if (type) {
  1179. var boxscroll = $(".building_list_uls").scrollTop();
  1180. var boxtop = $(".building_list_uls").offset().top;
  1181. $(".building_list_uls").animate({
  1182. scrollTop: boxscroll + eletop - boxtop - 24
  1183. }, 300);
  1184. } else {
  1185. var boxscroll = $(".building_list_ul").scrollTop();
  1186. var boxtop = $(".building_list_ul").offset().top;
  1187. $(".building_list_ul").animate({
  1188. scrollTop: boxscroll + eletop - boxtop - 24
  1189. }, 300);
  1190. }
  1191. }
  1192. $('.layui-select-title input').on('input',function(e) {
  1193. if (e.target.placeholder == '请选择小区') {
  1194. let val = $(this).val();
  1195. if (!val) {
  1196. $('.c_wordlist').removeClass('noneClass');
  1197. $('.c_wordlist1').removeClass('noneClass');
  1198. return;
  1199. }
  1200. $('.c_wordlist').addClass('noneClass');
  1201. $('.c_wordlist1').addClass('noneClass');
  1202. }
  1203. })
  1204. //----------------------------------------------------------------------------------------
  1205. //事件
  1206. var active = {
  1207. add: function () {
  1208. layer.open({
  1209. type: 2,
  1210. title: ['添加楼盘', 'color:#333333;background-color:#D8E6F1;'],
  1211. content: '{:url("building/add")}',
  1212. resize: false,
  1213. area: ['80%', '80%'],
  1214. end: function (index, layero) {
  1215. getList();
  1216. }
  1217. });
  1218. },
  1219. };
  1220. $('#lplist').click(function () {
  1221. layer.open({
  1222. type: 2,
  1223. title: ['添加楼盘', 'color:#333333;background-color:#D8E6F1;'],
  1224. content: '{:url("building/community")}',
  1225. resize: false,
  1226. area: ['80%', '80%'],
  1227. end: function (index, layero) {
  1228. }
  1229. });
  1230. })
  1231. $('.material_case').click(function () {
  1232. layer.open({
  1233. type: 2,
  1234. title: ['关联案例', 'color:#333333;background-color:#D8E6F1;'],
  1235. content: '{:url("building/material_case")}',
  1236. resize: false,
  1237. area: ['900px', '520px'],
  1238. yes: function (index, layero) {
  1239. }
  1240. });
  1241. })
  1242. $('.layui-btn.layuiadmin-btn-course').on('click', function () {
  1243. var type = $(this).data('type');
  1244. active[type] ? active[type].call(this) : '';
  1245. });
  1246. $('.layui-tjbtn').click(function () {
  1247. urge_list();
  1248. })
  1249. function urge_list() {
  1250. table.render({
  1251. elem: '#urge_index',
  1252. url: '{:url("building/urge_index")}',
  1253. page: true,
  1254. height: 'full-160',
  1255. cols: [
  1256. [{
  1257. align: 'center', title: '客户名称', templet: function (e) {
  1258. var str;
  1259. if (e.user.nickname !== null) {
  1260. str = e.user.nickname
  1261. } else {
  1262. str = '暂无数据'
  1263. }
  1264. return str;
  1265. }
  1266. }, {
  1267. title: '所属业务员',
  1268. align: 'center',
  1269. templet: function (e) {
  1270. var str;
  1271. if (e.employee.name !== null) {
  1272. str = e.employee.name
  1273. } else {
  1274. str = '暂无数据'
  1275. }
  1276. return str;
  1277. }
  1278. }, {
  1279. title: '催更小区 ',
  1280. align: 'center',
  1281. templet: function (e) {
  1282. var str;
  1283. if (e.building && e.building.name !== null) {
  1284. str = e.building.name
  1285. } else {
  1286. str = '暂无数据'
  1287. }
  1288. return str;
  1289. }
  1290. }, {
  1291. field: 'addtime',
  1292. title: '催更时间',
  1293. align: 'center'
  1294. }]
  1295. ],
  1296. text: '对不起,加载出现异常!'
  1297. });
  1298. }
  1299. })
  1300. </script>
  1301. {/block}