From 0a0dc4160f4c98ddfec6879f4ca1db152d566c0f Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Tue, 26 Dec 2023 08:55:54 +0800 Subject: [PATCH] 'commit' --- WebRoot/view/tb/org/clone_task.html | 4 +- WebRoot/view/tb/org/fields_set.html | 7 +- WebRoot/view/tb/org/iconfont/demo_index.html | 52 ++++++++- WebRoot/view/tb/org/iconfont/iconfont.css | 14 ++- WebRoot/view/tb/org/iconfont/iconfont.js | 2 +- WebRoot/view/tb/org/iconfont/iconfont.json | 14 +++ WebRoot/view/tb/org/iconfont/iconfont.ttf | Bin 2012 -> 2828 bytes WebRoot/view/tb/org/iconfont/iconfont.woff | Bin 1268 -> 1900 bytes WebRoot/view/tb/org/iconfont/iconfont.woff2 | Bin 880 -> 1456 bytes WebRoot/view/tb/org/imgs/yjz.svg | 1 + WebRoot/view/tb/org/postpone.html | 116 +++++++++++++++++++ WebRoot/view/tb/org/publish.html | 9 -- WebRoot/view/tb/org/rename_task.html | 4 +- WebRoot/view/tb/org/task_list.html | 70 ++++++++--- 14 files changed, 252 insertions(+), 41 deletions(-) create mode 100644 WebRoot/view/tb/org/imgs/yjz.svg create mode 100644 WebRoot/view/tb/org/postpone.html diff --git a/WebRoot/view/tb/org/clone_task.html b/WebRoot/view/tb/org/clone_task.html index 39a83973..de5db99d 100644 --- a/WebRoot/view/tb/org/clone_task.html +++ b/WebRoot/view/tb/org/clone_task.html @@ -68,7 +68,7 @@ form.on('submit(save)', function (data) { $.ajax({ - url: '/QingLong/collect/saveJob', + url: '/QingLong/collect/cloneJob', type: 'post', data: { "job_id": jobId, @@ -81,7 +81,7 @@ time: 1000 }, function () { parent.layer.close(parent.layer.getFrameIndex(window.name)); - parent.returnTaskList(); + parent.refresh(); }); } else { layer.msg(result.message, { diff --git a/WebRoot/view/tb/org/fields_set.html b/WebRoot/view/tb/org/fields_set.html index d03edcdc..783cef5c 100644 --- a/WebRoot/view/tb/org/fields_set.html +++ b/WebRoot/view/tb/org/fields_set.html @@ -44,9 +44,10 @@
创建任务
-
+
+ + +
diff --git a/WebRoot/view/tb/org/iconfont/demo_index.html b/WebRoot/view/tb/org/iconfont/demo_index.html index 971b1576..4d632837 100644 --- a/WebRoot/view/tb/org/iconfont/demo_index.html +++ b/WebRoot/view/tb/org/iconfont/demo_index.html @@ -54,6 +54,18 @@
@@ -42,11 +42,15 @@ {{# } else { }} {{= d.fill_progress }} - {{# } }} - + {{# } }} + + @@ -62,19 +66,27 @@ - + {{# } }} + {{# } }} - + - + {{# if(d.publish_state === 1){ }} + + + {{# } }} @@ -118,7 +130,7 @@ }, cols: [[ { title: '序号', align: 'center', width: "5%", type: 'numbers' }, - { title: '任务名称', field: 'job_name', align: 'center' }, + { title: '任务名称', align: 'center', templet: '#jobName-Templet' }, { title: '发布时间', field: 'publish_time', align: 'center', width: "10%" }, { title: '截止时间', field: 'deadline_time', align: 'center', width: "10%" }, { title: '填报格式', field: 'job_type_name', align: 'center', width: "10%" }, @@ -143,6 +155,8 @@ window.export(obj); } else if (obj.event === 'copy') { window.copy(obj); + } else if (obj.event === 'postpone') { + window.postpone(obj); } else if (obj.event === 'del') { window.del(obj); } @@ -163,15 +177,38 @@ } window.rename = function (obj) { + layer.open({ + type: 2, + title: '重命名', + shade: 0.1, + area: ['450px', '230px'], + content: './rename_task.html?job_id=' + obj.data.job_id + }); + } + window.postpone = function (obj) { + layer.open({ + type: 2, + title: '延长截止时间', + shade: 0.1, + area: ['450px', '400px'], + content: './postpone.html?job_id=' + obj.data.job_id + }); } + window.export = function (obj) { } window.copy = function (obj) { - + layer.open({ + type: 2, + title: '复制任务', + shade: 0.1, + area: ['450px', '230px'], + content: './clone_task.html?job_id=' + obj.data.job_id + }); } window.del = function (obj) { @@ -194,9 +231,6 @@ }); } - - - window.remove = function (obj) { layer.confirm('确定要删除该系统吗?', { icon: 3,