|
|
@@ -34,6 +34,22 @@ getSpanHtml = function(data){
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+copy2board = function(){
|
|
|
+ var content = generateJson(2);
|
|
|
+ var clipboard = new Clipboard('#copyButton', {
|
|
|
+ text: function() {
|
|
|
+ return content;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ clipboard.on('success', function(e) {
|
|
|
+ alert("复制成功");
|
|
|
+ });
|
|
|
+ clipboard.on('error', function(e) {
|
|
|
+ console.log(e);
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
getRealData = function(str){
|
|
|
var arr = str.split("~");
|
|
|
var start = new Number(arr[0]);
|
|
|
@@ -533,8 +549,7 @@ showExampleText = function (element) {
|
|
|
' </div>\n' +
|
|
|
' </div>')
|
|
|
}
|
|
|
-showExampleRatio = function (element) { // xuanxiang shuju
|
|
|
- // 显示单选框
|
|
|
+showExampleRatio = function (element) { // xuanxiang shuju// 显示单选框
|
|
|
var dataRatio = $(element).parents("td").prev("td").prev("td"); // 获取展示的元素
|
|
|
var data = $(element).val();
|
|
|
var label = $(element).parents("td").prev("td").children("input").val();
|
|
|
@@ -778,7 +793,10 @@ generateJson = function( type ){
|
|
|
data.item_group_list = item_group_list
|
|
|
data.report_list = getReportInfo()
|
|
|
// data.group_list = getDeliverInfo()
|
|
|
- console.log(JSON.stringify(data));
|
|
|
+ if(type == 2){
|
|
|
+ return JSON.stringify(data);
|
|
|
+ }
|
|
|
+ // console.log(JSON.stringify(data));
|
|
|
// 提交
|
|
|
|
|
|
//check
|