main
kgdxpr 9 months ago
parent 34d297affa
commit c464834b12

@ -58,6 +58,9 @@
<i class="woo-tool-text-delimiter"></i> <i class="woo-tool-text-delimiter"></i>
<span class="woo-tool-span woo-tool-text-span" lay-event="downloadData"><a <span class="woo-tool-span woo-tool-text-span" lay-event="downloadData"><a
class="woo-theme-color">下载数据</a></span> class="woo-theme-color">下载数据</a></span>
<i class="woo-tool-text-delimiter"></i>
<span class="woo-tool-span woo-tool-text-span" lay-event="mod"><a
class="woo-theme-color">数据维护</a></span>
</script> </script>
@ -122,8 +125,10 @@
} else if (obj.event === 'downloadSample') { } else if (obj.event === 'downloadSample') {
window.location.href = "/dsBase/dataease/downSampleExcel?id=" + obj.data.id; window.location.href = "/dsBase/dataease/downSampleExcel?id=" + obj.data.id;
} else { } else if (obj.event === 'downloadData') {
window.location.href = "/dsBase/dataease/downloadExcel?id=" + obj.data.id; window.location.href = "/dsBase/dataease/downloadExcel?id=" + obj.data.id;
} else {
window.location.href = "./dataMod.html?id=" + obj.data.id;
} }
}); });
}); });

@ -107,7 +107,7 @@
$.ajax({ $.ajax({
type: "GET", type: "GET",
async: false, async: false,
url: '/dsBase/dataease/getDataSetTable?dataset_id=' + id, url: '/dsBase/dataease/getDataSetContent?dataset_id=' + id,
dataType: "json", dataType: "json",
success: function (res) { success: function (res) {
_data = res.data; _data = res.data;
@ -157,7 +157,7 @@
type: "POST", type: "POST",
dataType: "json", dataType: "json",
async: false, async: false,
url: '/dsBase/dataease/saveDataSetTable', url: '/dsBase/dataease/saveDataSet',
data: { data: {
"dataset_id": id, "dataset_id": id,
"data": JSON.stringify(cleanedData) "data": JSON.stringify(cleanedData)

Loading…
Cancel
Save