diff --git a/WebRoot/view/jrgl/sync/index.html b/WebRoot/view/jrgl/sync/index.html
index d43c2555..da7329b3 100644
--- a/WebRoot/view/jrgl/sync/index.html
+++ b/WebRoot/view/jrgl/sync/index.html
@@ -24,41 +24,34 @@
top: -1px;
cursor: pointer;
}
+
+ .layui-table-tool-temp {
+ padding-right: 0;
+ }
-
-
+
@@ -74,33 +67,29 @@
tableRender();
- form.on('submit(user-query)', function () {
- tableRender();
- return false;
- });
-
- form.on('input-affix(clear)', function (data) {
- tableRender();
- });
-
function tableRender() {
table.render({
elem: '#data-table',
- url: '/QingLong/dataShare/listConfig',
+ url: '/QingLong/yunxiao/getTop10',
where: {
- keyword: $("#config_name").val()
- },
- height: 'full-150',
- page: {
- limit: 15
- , layout: ['count', 'prev', 'page', 'next', 'skip']
- , prev: "上一页"
- , next: "下一页"
+ page: 1,
+ limit: 100,
+ system_id: 0
},
+ height: 'full-60',
cols: [[
- { title: '序号', align: 'center', width: "5%", type: 'numbers' },
- { title: '配置名称', field: 'config_name', align: 'center' },
- { title: '配置值', field: 'config_value', align: 'center', width: "20%" },
+ { title: '开始时间', field: 'st', align: 'center', width: "10%" },
+ { title: '结束时间', field: 'ed', align: 'center', width: "10%" },
+ { title: '单位数', field: 'ds_base_bureau', align: 'center' },
+ { title: '部门数', field: 'ds_base_org', align: 'center' },
+ { title: '班级数', field: 'ds_base_class', align: 'center' },
+ { title: '教师数', field: 'ds_base_teacher', align: 'center' },
+ { title: '学生数', field: 'ds_base_student', align: 'center' },
+ { title: '学段数', field: 'ds_res_stage', align: 'center' },
+ { title: '学科数', field: 'ds_res_subject', align: 'center' },
+ { title: '版本数', field: 'ds_res_edition', align: 'center' },
+ { title: '教材数', field: 'ds_res_textbook', align: 'center' },
+ { title: '教材章节数', field: 'ds_res_chapter', align: 'center' },
{ title: '操作', toolbar: '#table-bar', align: 'center', width: "20%" }
]],
skin: 'line',
@@ -108,23 +97,39 @@
});
}
-
table.on('tool(data-table)', function (obj) {
- if (obj.event === 'edit') {
- window.edit(obj);
+ if (obj.event === 'viewDetails') {
+ window.viewDetails(obj);
+ } else if (obj.event === 'downExcel') {
+ window.downExcel(obj);
+ } else if (obj.event === 'viewLog') {
+ window.viewLog(obj);
}
});
- window.edit = function (obj) {
+
+
+ window.viewDetails = function (obj) {
+ window.open('/QingLong/Logs/' + obj.data.start_time + '.html');
+ }
+
+ window.downExcel = function (obj) {
+ window.location = '/QingLong/Logs/' + obj.data.start_time + '.xlsx';
+ }
+
+ window.viewLog = function (obj) {
layer.open({
type: 2,
- title: '编辑',
+ title: '日志',
shade: 0.1,
- area: ['650px', '180px'],
- content: './update.html?config_id=' + obj.data.config_id
+ area: ['800px', '680px'],
+ content: './viewLog.html?ts=' + obj.data.start_time
});
}
+
+
+
function GetQueryString(name, istop) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
diff --git a/WebRoot/view/jrgl/sync/test.html b/WebRoot/view/jrgl/sync/test.html
new file mode 100644
index 00000000..b69b0ebb
--- /dev/null
+++ b/WebRoot/view/jrgl/sync/test.html
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+ Demo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebRoot/view/jrgl/sync/viewLog.html b/WebRoot/view/jrgl/sync/viewLog.html
new file mode 100644
index 00000000..3d2bb234
--- /dev/null
+++ b/WebRoot/view/jrgl/sync/viewLog.html
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file