123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <div class="form-group">
- <label for="{{id}}" class="">
- {{to.label}}:
- </label>
- </div>
- <table class="table table-hover margin-bottom-10" id="sample-table-1">
- <thead>
- <tr>
- <th class="center">序号</th>
- <th>附件名称</th>
- <!--<th class="hidden-xs">上传者</th>-->
- <th>上传时间</th>
- <!-- <th>任务Id</th> -->
- <th class="hidden-xs">文件类型</th>
- <th class="center">附件下载</th>
- <!-- <th class="center">附件预览</th> -->
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="attachment in attachments">
- <td class="center">{{$index + 1}}</td>
- <td class="hidden-xs">{{attachment.name}}</td>
- <!--<td>{{attachment.userName}}</td>-->
- <td>{{attachment.addTime|date:'yyyy-MM-dd HH:mm:ss'}}</td>
- <!-- <td>{{attachment.taskId}}</td> -->
- <td>{{attachment.suffix}}</td>
- <td class="center">
- <!-- <div class="visible-md visible-lg hidden-sm hidden-xs">
- <a ng-href="{{attachment.link}}" ng-init="attachment.link=downloadUrl(attachment.id)" class="btn btn-transparent btn-xs" tooltip-placement="top" tooltip="下载"><i class="fa fa-download"></i></a>
- </div> -->
- <div class="visible-md visible-lg hidden-sm hidden-xs">
- <a ng-click="download(attachment.token,attachment.name)" class="btn btn-transparent btn-xs" tooltip-placement="top" tooltip="下载"><i class="fa fa-download"></i></a>
- </div>
- </td>
- <!-- <td class="center">
- <div class="visible-md visible-lg hidden-sm hidden-xs">
- <a ng-click="view(attachment.id,attachment.token,attachment.name,attachment.image,attachment.previewUrl)" class="btn btn-transparent btn-xs" tooltip-placement="top" tooltip="预览"><i class="fa fa-file-text-o"></i></a>
- </div>
- </td> -->
- <!-- <div ng-thumb="{ file: item._file, height: 100 }"></div> -->
- <!-- <img ng-src="{{imageurl}}" /> {{imageurl}} -->
- </tr>
- </tbody>
- </table>
- <!-- <div id="div2" ng-if="imageurl"><img ng-src="{{imageurl}}" style="width:100%;height:100%" /></div> -->
- <!-- <script type="text/javascript" language="javascript">
- var _move = false; //移动标记
- var _x, _y; //鼠标离控件左上角的相对位置
- $(document).ready(function() {
- $("#div2").click(function() {
- //alert("click");//点击(松开后触发)
- }).mousedown(function(e) {
- _move = true;
- _x = e.pageX - parseInt($("#div2").css("left"));
- _y = e.pageY - parseInt($("#div2").css("top"));
- $("#div2").fadeTo(20, 0.25); //点击后开始拖动并透明显示
- });
- $(document).mousemove(function(e) {
- if (_move) {
- var x = e.pageX - _x; //移动时根据鼠标位置计算控件左上角的绝对位置
- var y = e.pageY - _y;
- $("#div2").css({
- top: y,
- left: x
- }); //控件新位置
- }
- }).mouseup(function() {
- _move = false;
- $("#div2").fadeTo("fast", 1); //松开鼠标后停止移动并恢复成不透明
- });
- });
- </script>
- <style type="text/css">
- #div2 {
- position: absolute;
- width: 600px;
- height: 500px;
- z-index: 8888;
- border: 1px solid #333333;
- background-color: #777788;
- text-align: center;
- line-height: 400%;
- font-size: 13px;
- left: 80px;
- top: 20px;
- }
- </style> -->
|