123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310 |
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <title>附件管理</title>
- <link href="../../AFrontEnd/css/animate.css" rel="stylesheet" />
- <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
- <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
- <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
- <link rel="stylesheet" href="../../AFrontEnd/plugins/cropper/cropper.css">
- <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
- <script>document.write("<link href='css/index.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
- <script>document.write("<link href='../shouwenbg/css/imgCut.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
- </head>
- <body>
- <div ng-controller="indexCtrl as ctl" id="app" ng-cloak>
- <div class="wrapper wrapper-content">
- <div class="loading" ng-if="ctl.loading">
- <div class="loading-msg">
- <h3>数据加载中,请等待</h3>
- <div class="spinner">
- <div class="bounce1"></div>
- <div class="bounce2"></div>
- <div class="bounce3"></div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-4">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <div class="row">
- <div class="sp-page">
- <div class="sp-col-20 sp-text-right">
- <div class="sp-page">
- <button ng-click="ctl.moveUp()" class="sp-btn-gray-outline sp-btn-radius sp-mt-10">上移</button>
- </div>
- <div class="sp-page">
- <button ng-click="ctl.moveDown()" class="sp-btn-gray-outline sp-btn-radius sp-mt-10">下移</button>
- </div>
- </div>
- <div class="sp-col-80">
- <ul class="role-list" id="js-role-list" style="max-height:500px; overflow-y:auto;">
- <li id="js-role-list-tit" style=" padding: 15px 10px 15px 30px;">
- <i class="fa fa-minus-square sp-mr-5"></i>插件来源
- <span class="sp-pull-right sp-btn-blue sp-btn-radius" style="margin-top:-4px; color:#fff;" ng-click="ctl.btnAddLaiYuan()">新增来源</span>
- </li>
- <li ng-click="ctl.chooseRole($index,item)" ng-class="{roleActive:ctl.activeRole==$index}" ng-repeat="item in ctl.rows">
- {{item.CNAME}}
- <!--<span style=" right: 45px;" title="上移">
- <i ng-click="ctl.moveUp(item)" class="fa fa-arrow-up"></i>
- </span>
- <span style=" right: 25px;" title="下移">
- <i ng-click="ctl.moveDown(item)" class="fa fa-arrow-down"></i>
- </span>-->
- <span title="编辑" style=" right: 25px;">
- <i ng-click="ctl.btnEditLaiYuan(item)" class="fa fa-edit"></i>
- </span>
- <span title="删除">
- <i ng-click="ctl.removeKinds(item)" class="fa fa-close"></i>
- </span>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-md-8">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <div class="row" style="border:1px solid #eee; padding:20px;">
- <div class="sp-page">
- <div class="sp-page-col">
- <span class="sp-lh-24">使用方式</span>
- </div>
- <div class="sp-page-col sp-ml-10">
- <select class="sp-select" ng-model="ctl.search.ctype" ng-change="ctl.selectChange()">
- <option ng-repeat="item in ctl.useType_search" ng-init="ctl.search.ctype=ctl.useType_search[0].CODE" value="{{item.CODE}}">{{item.CNAME}}</option>
- </select>
- </div>
-
- <div class="sp-page-col" style="margin-left:50px;">
- <span class="sp-lh-24">插件类型</span>
- </div>
- <div class="sp-page-col sp-ml-10">
- <select class="sp-select" ng-model="ctl.search.dtype" ng-change="ctl.selectChange()">
- <option ng-repeat="item in ctl.dTypeData_search" ng-init="ctl.search.dtype=ctl.dTypeData_search[0].CODE" value="{{item.CODE}}">{{item.CNAME}}</option>
- </select>
- </div>
- <div class="sp-page-col sp-pull-right" style="margin-top:4px;">
- <span class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnAdd()">新增插件</span>
- </div>
- </div>
- <div class="sp-line-gray-dotted" style="margin-top:15px;"></div>
- <div class="sp-page" ng-if="ctl.pluginArray.length>0" style="max-height:500px; overflow-y:auto;">
- <div class="rgh-plgn-list" ng-repeat="item in ctl.pluginArray">
- <div class="rgh-plgn-list-left">
- <img ng-src="../../{{item.IMAGEURL}}" style="width:100%; height:144px; float:left;" />
- </div>
- <div class="rgh-plgn-list-center">
- <div class="sp-lh-22">
- <div class="sp-col-20" style="width:100px;">名称:</div>
- <div class="sp-col-80" style="width: calc(100% - 100px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" ng-bind="item.CNAME"></div>
- </div>
- <div class="sp-lh-22 sp-mt-10">
- <div class="sp-col-20" style="width:100px;">接入地址:</div>
- <div class="sp-col-80" style="width: calc(100% - 100px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" ng-bind="item.URL"></div>
- </div>
- <div class="sp-lh-22 sp-mt-10">
- <div class="sp-col-20" style="width:100px;">访问权限:</div>
- <div class="sp-col-80" style="width: calc(100% - 100px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" ng-bind="item.AUTHMAN_set"></div>
- </div>
- <div class="sp-lh-22 sp-mt-10">
- <div class="sp-col-20" style="width:100px;">备注说明: </div>
- <div class="sp-col-80" style="width: calc(100% - 100px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" ng-bind="item.REMARK"></div>
- </div>
- </div>
- <div class="rgh-plgn-list-right">
- <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>
- <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>
- <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>
- <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>
- </div>
- </div>
- </div>
- <div class="sp-page sp-mt-30" ng-if="ctl.pluginArray.length<1">
- <div class="sp-lh-50 sp-text-center">暂无数据!</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--插件来源-->
- <div class="sp-layer" id="layer_laiyuan" data-title="插件来源" style="width:500px;">
- <div class="sp-layer-body">
- <div class="sp-page">
- <table class="sp-grid-job">
- <tbody>
- <tr>
- <td style="width:80px;">来源名称:</td>
- <td>
- <input type="text" ng-model="ctl.laiyuan.cname" sp-required />
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-lh-26 sp-hide sp-text-center sp-color-red" id="setPasswordTip"></div>
- <div class="sp-page sp-text-center sp-mt-20">
- <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.submit_laiYuan()">
- <i class="fa fa-check sp-mr-5"></i>提 交
- </button>
- <button class="sp-btn-default sp-btn-radius" ng-click="ctl.cancel_laiYuan()">
- <i class="fa fa-close sp-mr-5"></i>取 消
- </button>
- </div>
- </div>
- </div>
- </div>
- <!--插件弹层-->
- <div class="sp-layer" id="layer_addplgn" data-title="插件信息" style="width: 760px;">
- <div class="sp-layer-body">
- <div class="sp-page" ng-hide="ctl.pluginUpload_view">
- <table class="sp-grid-job">
- <tbody>
- <tr>
- <td style="width:120px;">使用方式:</td>
- <td>
- <select class="sp-select" ng-model="ctl.info.ctype" ng-options="item.CODE as item.CNAME for item in ctl.useType"></select>
- </td>
- </tr>
- <tr ng-if="ctl.info.ctype=='C01'">
- <td>桌面插件样式:</td>
- <td>
- <select class="sp-select" ng-model="ctl.info.ctypemodel">
- <option ng-repeat="item in ctl.ctypemodelArray" ng-init="ctl.info.ctypemodel=ctl.ctypemodelArray[0].CODE" value="{{item.CODE}}">{{item.CNAME}}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td>插件类型:</td>
- <td>
- <select class="sp-select" ng-model="ctl.info.dtype">
- <option ng-repeat="item in ctl.dTypeData" ng-init="ctl.info.dtype=ctl.dTypeData[0].CODE" value="{{item.CODE}}">{{item.CNAME}}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td>名称:</td>
- <td>
- <input type="text" ng-model="ctl.info.cname" sp-required />
- </td>
- </tr>
- <tr>
- <td>接入地址:</td>
- <td>
- <input type="text" ng-model="ctl.info.url" sp-required />
- </td>
- </tr>
- <tr>
- <td>访问权限:</td>
- <td>
- <select class="sp-select" ng-model="ctl.info.authman">
- <option ng-repeat="item in ctl.userAuth" ng-init="ctl.info.authman=ctl.userAuth[0].CODE" value="{{item.CODE}}">{{item.CNAME}}</option>
- </select>
- </td>
- </tr>
- <tr>
- <td>备注说明:</td>
- <td>
- <input type="text" ng-model="ctl.info.remark" />
- </td>
- </tr>
- <tr>
- <td>图片:</td>
- <td class="sp-text-left">
- <div class="sp-page">
- <img class="ng-hide" ng-show="ctl.info.imageurl!= ''" style="width: 256px; height: 144px; float: left; margin-left: 5px;" ng-src="../../{{ctl.info.imageurl}}" />
- </div>
- <div class="sp-page">
- <span class="sp-btn-blue-outline sp-btn-radius" ng-click="ctl.joinItem();">设置</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <!--<div class="sp-lh-26 sp-text-center sp-color-red" id="setPasswordTip">111</div>-->
- <div class="sp-page sp-text-center sp-mt-20">
- <button ng-disabled="ctl.btnSubmitPlnDsabled" class="sp-btn-blue sp-btn-radius" ng-click="ctl.submit_plguin()">
- <i class="fa fa-check sp-mr-5"></i>{{ctl.btnSubmitPln_text}}
- </button>
- <button class="sp-btn-default sp-btn-radius" ng-click="ctl.cancel_plguin()">
- <i class="fa fa-close sp-mr-5"></i>取 消
- </button>
- </div>
- </div>
- <div class="sp-page ng-hide" ng-show="ctl.pluginUpload_view">
- <div class="fav-box">
- <div class="img-box">
- <div class="img-box-right">
- <div class="img-content">
- <div ng-show="ctl.nowImgUrl== ''" class="img-tips ng-hide">右侧文件上传或CTRL+V复制</div>
- <img id="image" src="" alt="">
- </div>
- <div class="img-action">
- <div class="img-btn sp-cursor-pointer">
- <input id="imgUpload" onchange="imgChange(event)" class=" sp-cursor-pointer" type="file" accept=".gif,.jpg,.jpeg,.png">
- <div class="file-btn file-open sp-cursor-pointer" title="上传图片"></div>
- </div>
- <div class="img-btn sp-cursor-pointer">
- <div class="file-btn file-reset" ng-click="ctl.reset()" title="重置"></div>
- </div>
- <div class="img-btn sp-cursor-pointer">
- <div class="file-btn file-delete" ng-click="ctl.clear()" title="清空"></div>
- </div>
- <div class="img-btn sp-cursor-pointer">
- <div class="file-btn file-out" ng-click="ctl.zoomOut()" title="放大"></div>
- </div>
- <div class="img-btn sp-cursor-pointer">
- <div class="file-btn file-in" ng-click="ctl.zoomIn()" title="缩小"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="sp-line-txt sp-text-center sp-pt-10">
- <button ng-disabled="ctl.nowImgUrl== ''" class="sp-btn-blue sp-sm sp-radius"
- ng-click="ctl.saveData()">
- <i class="fa fa-save"></i> 保存切图
- </button>
- <a class="sp-btn-blue sp-sm sp-radius" ng-click="ctl.closeImgLayer()">
- <i class="fa fa-close"></i> 关闭
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script src="../../AFrontEnd/plugins/cropper/cropper.js"></script>
- <script src="../../AFrontEnd/js/jquery/jquery-1.8.3.min.js"></script>
- <script src="../../AFrontEnd/js/laydate/laydate.js"></script>
- <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
- <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
- <script src="../../apiurljs.js"></script>
- <script src="../../js/sm4.js"></script>
- <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
- <script>document.write('<scri' + 'pt src="js/index.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
- <script src="../../AFrontEnd/js/special/spng.js"></script>
- <script src="../../AFrontEnd/js/special/spngvld.js"></script>
- </body>
- </html>
|