Import.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <ion-view view-title="一键导入">
  2. <div class="bar bar-header" style="background-image: none;background-color: #3B8BD0;">
  3. <div class="button button-icon icon pus_blue" ng-click="goback()"></div>
  4. <button class="button button-icon icon goback whiteGoBack noneContent" ng-click="goback()"></button>
  5. <h1 class="bar_title" style="color: #fff">一键导入</h1>
  6. </div>
  7. <ion-content class="has-header" has-bouncing="false" scroll="true" delegate-handle="privateContent" style="max-width:20.5rem;margin: 0 auto">
  8. <div style="width: 100%;height: 63px">
  9. <div style="float: left">
  10. <select
  11. ng-model="selectedtypes"
  12. ng-change="handletypes(selectedtypes)"
  13. ng-options="x.modelName for x in types"
  14. style="height: 43px;margin: 10px;border: none;font-size: 20px">
  15. </select>
  16. </div>
  17. <div style="float: left;margin: 10px">
  18. <button class="button button-balanced" style="min-height: 30px" ng-click="handleDownload(selectedtypes)">下载模板</button>
  19. <button class="button button-calm" style="min-height: 30px" ng-click="ImportFile()" ng-disabled="myCheck">导入文件</button>
  20. <input type="file" name="file" id="file" onchange="angular.element(this).scope().change()" multiple="multiple"
  21. style="display:none"/>
  22. </div>
  23. <div>
  24. <span style="margin: 10px;float: left;font-size: 16px;line-height: 30px">{{filesName}}</span>
  25. <progress id="myProgress" value="0" max="100" style="width: 300px;height: 30px;margin: 10px;float: left" ng-show="myCheck"></progress>
  26. <span style="margin: 10px;float: left;font-size: 16px;line-height: 30px" id="myProgressval"></span>
  27. </div>
  28. </div>
  29. <div >
  30. <table class="table">
  31. <tr>
  32. <th >文件名</th>
  33. <th>日期</th>
  34. <th>操作</th>
  35. </tr>
  36. <tr ng-repeat="item in tableData">
  37. <td>{{ item.fileName }}</td>
  38. <td>{{ item.updatetime }}</td>
  39. <td>
  40. <button class="button button-balanced " style="line-height: 25px;min-height: 30px" ng-click="ImportEdit(1,item)">查看</button>
  41. <!-- <button class="button button-assertive" style="line-height: 25px;min-height: 30px" ng-click="ImportEdit(2,item )" >编辑</button>-->
  42. </td>
  43. </tr>
  44. </table>
  45. </div>
  46. <ion-infinite-scroll
  47. immediate-check="false"
  48. on-infinite="loadMore()"
  49. ng-if="!nomore"
  50. distance="1%">
  51. </ion-infinite-scroll>
  52. <div class="emptyDiscussDatelistWrap" style="top:15px;" ng-if="nomore">
  53. <p class="empty_p" ng-if="defaultLan == 'Chinese'">亲,没有更多了哦~</p>
  54. <p class="empty_p" ng-if="defaultLan == 'English'">Dear,no more~</p>
  55. </div>
  56. </ion-content>
  57. <div ng-if="isWechat" ng-show="showMessage" class="container">
  58. <div class="message-box">{{messageTitle}}</div>
  59. </div>
  60. </ion-view>
  61. <style>
  62. #boxx{
  63. width: 300px;
  64. height: 300px;
  65. border:1px dashed #000;
  66. position:absolute;
  67. top: 50%;
  68. left: 50%;
  69. margin:-150px 0 0 -150px;
  70. text-align:center;
  71. font:20px/300px '微软雅黑';
  72. /*display:none;*/
  73. }
  74. .ng-hide {
  75. height: 0;
  76. width: 0;
  77. background-color: transparent;
  78. top:-200px;
  79. left: 200px;
  80. }
  81. .popup-container .popup{
  82. max-width: 850px!important;
  83. }
  84. .popup-container .popup .popup-body{
  85. max-height: 500px;
  86. overflow-y: auto;
  87. }
  88. </style>