index.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title>附件管理</title>
  7. <link href="../../AFrontEnd/css/animate.css" rel="stylesheet" />
  8. <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
  9. <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
  10. <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
  11. <link rel="stylesheet" href="../../AFrontEnd/plugins/cropper/cropper.css">
  12. <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  13. <script>document.write("<link href='css/index.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  14. <script>document.write("<link href='../shouwenbg/css/imgCut.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  15. </head>
  16. <body>
  17. <div ng-controller="indexCtrl as ctl" id="app" ng-cloak>
  18. <div class="wrapper wrapper-content">
  19. <div class="loading" ng-if="ctl.loading">
  20. <div class="loading-msg">
  21. <h3>数据加载中,请等待</h3>
  22. <div class="spinner">
  23. <div class="bounce1"></div>
  24. <div class="bounce2"></div>
  25. <div class="bounce3"></div>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="row">
  30. <div class="col-md-4">
  31. <div class="ibox float-e-margins">
  32. <div class="ibox-content">
  33. <div class="row">
  34. <div class="sp-page">
  35. <div class="sp-col-20 sp-text-right">
  36. <div class="sp-page">
  37. <button ng-click="ctl.moveUp()" class="sp-btn-gray-outline sp-btn-radius sp-mt-10">上移</button>
  38. </div>
  39. <div class="sp-page">
  40. <button ng-click="ctl.moveDown()" class="sp-btn-gray-outline sp-btn-radius sp-mt-10">下移</button>
  41. </div>
  42. </div>
  43. <div class="sp-col-80">
  44. <ul class="role-list" id="js-role-list" style="max-height:500px; overflow-y:auto;">
  45. <li id="js-role-list-tit" style=" padding: 15px 10px 15px 30px;">
  46. <i class="fa fa-minus-square sp-mr-5"></i>插件来源
  47. <span class="sp-pull-right sp-btn-blue sp-btn-radius" style="margin-top:-4px; color:#fff;" ng-click="ctl.btnAddLaiYuan()">新增来源</span>
  48. </li>
  49. <li ng-click="ctl.chooseRole($index,item)" ng-class="{roleActive:ctl.activeRole==$index}" ng-repeat="item in ctl.rows">
  50. {{item.CNAME}}
  51. <!--<span style=" right: 45px;" title="上移">
  52. <i ng-click="ctl.moveUp(item)" class="fa fa-arrow-up"></i>
  53. </span>
  54. <span style=" right: 25px;" title="下移">
  55. <i ng-click="ctl.moveDown(item)" class="fa fa-arrow-down"></i>
  56. </span>-->
  57. <span title="编辑" style=" right: 25px;">
  58. <i ng-click="ctl.btnEditLaiYuan(item)" class="fa fa-edit"></i>
  59. </span>
  60. <span title="删除">
  61. <i ng-click="ctl.removeKinds(item)" class="fa fa-close"></i>
  62. </span>
  63. </li>
  64. </ul>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="col-md-8">
  72. <div class="ibox float-e-margins">
  73. <div class="ibox-content">
  74. <div class="row" style="border:1px solid #eee; padding:20px;">
  75. <div class="sp-page">
  76. <div class="sp-page-col">
  77. <span class="sp-lh-24">使用方式</span>
  78. </div>
  79. <div class="sp-page-col sp-ml-10">
  80. <select class="sp-select" ng-model="ctl.search.ctype" ng-change="ctl.selectChange()">
  81. <option ng-repeat="item in ctl.useType_search" ng-init="ctl.search.ctype=ctl.useType_search[0].CODE" value="{{item.CODE}}">{{item.CNAME}}</option>
  82. </select>
  83. </div>
  84. <div class="sp-page-col" style="margin-left:50px;">
  85. <span class="sp-lh-24">插件类型</span>
  86. </div>
  87. <div class="sp-page-col sp-ml-10">
  88. <select class="sp-select" ng-model="ctl.search.dtype" ng-change="ctl.selectChange()">
  89. <option ng-repeat="item in ctl.dTypeData_search" ng-init="ctl.search.dtype=ctl.dTypeData_search[0].CODE" value="{{item.CODE}}">{{item.CNAME}}</option>
  90. </select>
  91. </div>
  92. <div class="sp-page-col sp-pull-right" style="margin-top:4px;">
  93. <span class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnAdd()">新增插件</span>
  94. </div>
  95. </div>
  96. <div class="sp-line-gray-dotted" style="margin-top:15px;"></div>
  97. <div class="sp-page" ng-if="ctl.pluginArray.length>0" style="max-height:500px; overflow-y:auto;">
  98. <div class="rgh-plgn-list" ng-repeat="item in ctl.pluginArray">
  99. <div class="rgh-plgn-list-left">
  100. <img ng-src="../../{{item.IMAGEURL}}" style="width:100%; height:144px; float:left;" />
  101. </div>
  102. <div class="rgh-plgn-list-center">
  103. <div class="sp-lh-22">
  104. <div class="sp-col-20" style="width:100px;">名称:</div>
  105. <div class="sp-col-80" style="width: calc(100% - 100px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" ng-bind="item.CNAME"></div>
  106. </div>
  107. <div class="sp-lh-22 sp-mt-10">
  108. <div class="sp-col-20" style="width:100px;">接入地址:</div>
  109. <div class="sp-col-80" style="width: calc(100% - 100px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" ng-bind="item.URL"></div>
  110. </div>
  111. <div class="sp-lh-22 sp-mt-10">
  112. <div class="sp-col-20" style="width:100px;">访问权限:</div>
  113. <div class="sp-col-80" style="width: calc(100% - 100px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" ng-bind="item.AUTHMAN_set"></div>
  114. </div>
  115. <div class="sp-lh-22 sp-mt-10">
  116. <div class="sp-col-20" style="width:100px;">备注说明: </div>
  117. <div class="sp-col-80" style="width: calc(100% - 100px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" ng-bind="item.REMARK"></div>
  118. </div>
  119. </div>
  120. <div class="rgh-plgn-list-right">
  121. <div class="sp-page sp-text-center sp-mt-5"><button class="sp-btn-default-outline sp-btn-radius" ng-click="ctl.btnEditPlugin(item)">编辑</button></div>
  122. <div class="sp-page sp-text-center sp-mt-5"><button class="sp-btn-default-outline sp-btn-radius" ng-click="ctl.removePlugin(item)">删除</button></div>
  123. <div class="sp-page sp-text-center sp-mt-5"><button class="sp-btn-default-outline sp-btn-radius" ng-disabled="{{item.indexnum==1}}" ng-click="ctl.moveUp_plugin(item,item.indexnum)">上移</button></div>
  124. <div class="sp-page sp-text-center sp-mt-5"><button class="sp-btn-default-outline sp-btn-radius" ng-disabled="{{item.indexnum==ctl.pluginArray.length}}" ng-click="ctl.moveDown_plugin(item,item.indexnum)">下移</button></div>
  125. </div>
  126. </div>
  127. </div>
  128. <div class="sp-page sp-mt-30" ng-if="ctl.pluginArray.length<1">
  129. <div class="sp-lh-50 sp-text-center">暂无数据!</div>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. <!--插件来源-->
  138. <div class="sp-layer" id="layer_laiyuan" data-title="插件来源" style="width:500px;">
  139. <div class="sp-layer-body">
  140. <div class="sp-page">
  141. <table class="sp-grid-job">
  142. <tbody>
  143. <tr>
  144. <td style="width:80px;">来源名称:</td>
  145. <td>
  146. <input type="text" ng-model="ctl.laiyuan.cname" sp-required />
  147. </td>
  148. </tr>
  149. </tbody>
  150. </table>
  151. <div class="sp-lh-26 sp-hide sp-text-center sp-color-red" id="setPasswordTip"></div>
  152. <div class="sp-page sp-text-center sp-mt-20">
  153. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.submit_laiYuan()">
  154. <i class="fa fa-check sp-mr-5"></i>提 交
  155. </button>
  156. <button class="sp-btn-default sp-btn-radius" ng-click="ctl.cancel_laiYuan()">
  157. <i class="fa fa-close sp-mr-5"></i>取 消
  158. </button>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. <!--插件弹层-->
  164. <div class="sp-layer" id="layer_addplgn" data-title="插件信息" style="width: 760px;">
  165. <div class="sp-layer-body">
  166. <div class="sp-page" ng-hide="ctl.pluginUpload_view">
  167. <table class="sp-grid-job">
  168. <tbody>
  169. <tr>
  170. <td style="width:120px;">使用方式:</td>
  171. <td>
  172. <select class="sp-select" ng-model="ctl.info.ctype" ng-options="item.CODE as item.CNAME for item in ctl.useType"></select>
  173. </td>
  174. </tr>
  175. <tr ng-if="ctl.info.ctype=='C01'">
  176. <td>桌面插件样式:</td>
  177. <td>
  178. <select class="sp-select" ng-model="ctl.info.ctypemodel">
  179. <option ng-repeat="item in ctl.ctypemodelArray" ng-init="ctl.info.ctypemodel=ctl.ctypemodelArray[0].CODE" value="{{item.CODE}}">{{item.CNAME}}</option>
  180. </select>
  181. </td>
  182. </tr>
  183. <tr>
  184. <td>插件类型:</td>
  185. <td>
  186. <select class="sp-select" ng-model="ctl.info.dtype">
  187. <option ng-repeat="item in ctl.dTypeData" ng-init="ctl.info.dtype=ctl.dTypeData[0].CODE" value="{{item.CODE}}">{{item.CNAME}}</option>
  188. </select>
  189. </td>
  190. </tr>
  191. <tr>
  192. <td>名称:</td>
  193. <td>
  194. <input type="text" ng-model="ctl.info.cname" sp-required />
  195. </td>
  196. </tr>
  197. <tr>
  198. <td>接入地址:</td>
  199. <td>
  200. <input type="text" ng-model="ctl.info.url" sp-required />
  201. </td>
  202. </tr>
  203. <tr>
  204. <td>访问权限:</td>
  205. <td>
  206. <select class="sp-select" ng-model="ctl.info.authman">
  207. <option ng-repeat="item in ctl.userAuth" ng-init="ctl.info.authman=ctl.userAuth[0].CODE" value="{{item.CODE}}">{{item.CNAME}}</option>
  208. </select>
  209. </td>
  210. </tr>
  211. <tr>
  212. <td>备注说明:</td>
  213. <td>
  214. <input type="text" ng-model="ctl.info.remark" />
  215. </td>
  216. </tr>
  217. <tr>
  218. <td>图片:</td>
  219. <td class="sp-text-left">
  220. <div class="sp-page">
  221. <img class="ng-hide" ng-show="ctl.info.imageurl!= ''" style="width: 256px; height: 144px; float: left; margin-left: 5px;" ng-src="../../{{ctl.info.imageurl}}" />
  222. </div>
  223. <div class="sp-page">
  224. <span class="sp-btn-blue-outline sp-btn-radius" ng-click="ctl.joinItem();">设置</span>
  225. </div>
  226. </td>
  227. </tr>
  228. </tbody>
  229. </table>
  230. <!--<div class="sp-lh-26 sp-text-center sp-color-red" id="setPasswordTip">111</div>-->
  231. <div class="sp-page sp-text-center sp-mt-20">
  232. <button ng-disabled="ctl.btnSubmitPlnDsabled" class="sp-btn-blue sp-btn-radius" ng-click="ctl.submit_plguin()">
  233. <i class="fa fa-check sp-mr-5"></i>{{ctl.btnSubmitPln_text}}
  234. </button>
  235. <button class="sp-btn-default sp-btn-radius" ng-click="ctl.cancel_plguin()">
  236. <i class="fa fa-close sp-mr-5"></i>取 消
  237. </button>
  238. </div>
  239. </div>
  240. <div class="sp-page ng-hide" ng-show="ctl.pluginUpload_view">
  241. <div class="fav-box">
  242. <div class="img-box">
  243. <div class="img-box-right">
  244. <div class="img-content">
  245. <div ng-show="ctl.nowImgUrl== ''" class="img-tips ng-hide">右侧文件上传或CTRL+V复制</div>
  246. <img id="image" src="" alt="">
  247. </div>
  248. <div class="img-action">
  249. <div class="img-btn sp-cursor-pointer">
  250. <input id="imgUpload" onchange="imgChange(event)" class=" sp-cursor-pointer" type="file" accept=".gif,.jpg,.jpeg,.png">
  251. <div class="file-btn file-open sp-cursor-pointer" title="上传图片"></div>
  252. </div>
  253. <div class="img-btn sp-cursor-pointer">
  254. <div class="file-btn file-reset" ng-click="ctl.reset()" title="重置"></div>
  255. </div>
  256. <div class="img-btn sp-cursor-pointer">
  257. <div class="file-btn file-delete" ng-click="ctl.clear()" title="清空"></div>
  258. </div>
  259. <div class="img-btn sp-cursor-pointer">
  260. <div class="file-btn file-out" ng-click="ctl.zoomOut()" title="放大"></div>
  261. </div>
  262. <div class="img-btn sp-cursor-pointer">
  263. <div class="file-btn file-in" ng-click="ctl.zoomIn()" title="缩小"></div>
  264. </div>
  265. </div>
  266. </div>
  267. </div>
  268. </div>
  269. <div class="sp-line-txt sp-text-center sp-pt-10">
  270. <button ng-disabled="ctl.nowImgUrl== ''" class="sp-btn-blue sp-sm sp-radius"
  271. ng-click="ctl.saveData()">
  272. <i class="fa fa-save"></i>&nbsp;保存切图
  273. </button>
  274. <a class="sp-btn-blue sp-sm sp-radius" ng-click="ctl.closeImgLayer()">
  275. <i class="fa fa-close"></i>&nbsp;关闭
  276. </a>
  277. </div>
  278. </div>
  279. </div>
  280. </div>
  281. </div>
  282. <script src="../../AFrontEnd/plugins/cropper/cropper.js"></script>
  283. <script src="../../AFrontEnd/js/jquery/jquery-1.8.3.min.js"></script>
  284. <script src="../../AFrontEnd/js/laydate/laydate.js"></script>
  285. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  286. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  287. <script src="../../apiurljs.js"></script>
  288. <script src="../../js/sm4.js"></script>
  289. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  290. <script>document.write('<scri' + 'pt src="js/index.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  291. <script src="../../AFrontEnd/js/special/spng.js"></script>
  292. <script src="../../AFrontEnd/js/special/spngvld.js"></script>
  293. </body>
  294. </html>