|
@@ -228,14 +228,18 @@
|
|
|
|
|
|
<!-- Report List Table -->
|
|
|
<div class="assign-div pull-right">
|
|
|
- <button id="distribute-btn" class="btn btn-sm btn-assign pull-right">
|
|
|
- <i class="fa fa-coffee" style="margin-right: 3px;"></i>
|
|
|
- <span>人员分配</span>
|
|
|
- </button>
|
|
|
+<!-- <button id="distribute-btn" class="btn btn-sm btn-assign pull-right">-->
|
|
|
+<!-- <i class="fa fa-coffee" style="margin-right: 3px;"></i>-->
|
|
|
+<!-- <span>人员分配</span>-->
|
|
|
+<!-- </button>-->
|
|
|
<!-- <button id="blockChain-btn" class="btn btn-sm btn-assign pull-right">-->
|
|
|
<!-- <i class="fa fa-coffee" style="margin-right: 3px;"></i>-->
|
|
|
<!-- <span>导入数据到区块链</span>-->
|
|
|
<!-- </button>-->
|
|
|
+ <button th:if="${!aggregated}" id="taskUrl-btn" class="btn btn-sm btn-assign pull-right" onclick="copyUrl()">
|
|
|
+ <i class="fa fa-coffee" style="margin-right: 3px;"></i>
|
|
|
+ <span>复制任务url</span>
|
|
|
+ </button>
|
|
|
<button th:if="${!aggregated}" id="assign-btn" class="btn btn-sm btn-assign pull-right">
|
|
|
<i class="fa fa-coffee" style="margin-right: 3px;"></i>
|
|
|
<span>自动融合</span>
|
|
@@ -351,10 +355,13 @@
|
|
|
<script src="/static/AdminLTE/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
|
|
|
<script src="/static/AdminLTE/bower_components/select2/dist/js/select2.min.js"></script>
|
|
|
<script src="/static/js/app_info.js"></script>
|
|
|
+<script src="/static/AdminLTE/bower_components/bootstrap-notify/dist/bootstrap-notify.min.js"></script>
|
|
|
+<script type="text/javascript" src="http://www.jq22.com/demo/clipboard.js-master201703170013/dist/clipboard.min.js"></script>
|
|
|
<script type="text/javascript" xmlns:th="http://www.thymeleaf.org" th:inline="javascript">
|
|
|
|
|
|
/*<![CDATA[*/
|
|
|
var reportHost = [[${reportHost}]]
|
|
|
+ var encodedReportDetailUrl = [[${encodedUrl}]]
|
|
|
/*]]>*/
|
|
|
|
|
|
|
|
@@ -392,4 +399,28 @@
|
|
|
});
|
|
|
|
|
|
|
|
|
+ copyUrl = function(){
|
|
|
+ var clipboard = new Clipboard('#taskUrl-btn', {
|
|
|
+ text: function() {
|
|
|
+ return encodedReportDetailUrl;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ clipboard.on('success', function(e) {
|
|
|
+ $.notify({
|
|
|
+ // options
|
|
|
+ message: '已成功复制到你的剪切板'
|
|
|
+ },{
|
|
|
+ // settings
|
|
|
+ delay: 100,
|
|
|
+ timer: 3000,
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ clipboard.on('error', function(e) {
|
|
|
+ console.log(e);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
</script>
|