diff --git a/app/Gdoo/Project/views/task/index/gantt.blade.php b/app/Gdoo/Project/views/task/index/gantt.blade.php
index a6e9a245..fbf2b010 100644
--- a/app/Gdoo/Project/views/task/index/gantt.blade.php
+++ b/app/Gdoo/Project/views/task/index/gantt.blade.php
@@ -4,11 +4,9 @@
-
-
- {{$project['name']}} {{$project['description']}}
-
-
-
+
@@ -163,7 +117,6 @@ var params = {project_id:project_id};
gantt.config.columns = [
{name:"name", label:"任务列表", tree:true, width:'*', resize: true}
];
-
gantt.config.scale_unit = 'month';
gantt.config.date_scale = '%Y - %m';
gantt.config.scale_height = 50;
@@ -284,7 +237,7 @@ gantt._do_autosize = function() {
// 设置高度
var height = $('#gantt-wrapper').outerHeight();
var iframeHeight = $(window).height();
- $('#gantt-view').height(iframeHeight - height - 68 + 'px');
+ $('#gantt-view').height(iframeHeight - height - 102 + 'px');
var resize = this._get_resize_options();
var boxSizes = this._get_box_styles();
@@ -308,15 +261,6 @@ gantt._do_autosize = function() {
gantt.init("gantt-view");
gantt.load(app.url('project/task/index', params));
-$('#search-submit').on('click', function() {
- var query = $('#search-task-form').serializeArray();
- $.map(query, function(row) {
- params[row.name] = row.value;
- });
- dataReload();
- return false;
-});
-
function dataReload() {
gantt.clearAll();
gantt.load(app.url('project/task/index', params));
diff --git a/app/Gdoo/Project/views/task/index/header.blade.php b/app/Gdoo/Project/views/task/index/header.blade.php
new file mode 100644
index 00000000..aa4d1d13
--- /dev/null
+++ b/app/Gdoo/Project/views/task/index/header.blade.php
@@ -0,0 +1,35 @@
+
+ {{$project['name']}} {{$project['description']}}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/Gdoo/Project/views/task/index/index.blade.php b/app/Gdoo/Project/views/task/index/index.blade.php
index 19873ef6..13e25b13 100644
--- a/app/Gdoo/Project/views/task/index/index.blade.php
+++ b/app/Gdoo/Project/views/task/index/index.blade.php
@@ -1,40 +1,8 @@
-
-
-
- {{$project['name']}} {{$project['description']}}
-
-
-
-
+
diff --git a/app/Gdoo/Project/views/task/index/js.blade.php b/app/Gdoo/Project/views/task/index/js.blade.php
index 9782cd0c..f6121621 100644
--- a/app/Gdoo/Project/views/task/index/js.blade.php
+++ b/app/Gdoo/Project/views/task/index/js.blade.php
@@ -1,4 +1,59 @@
-
-
-
-
文件上传
-
文件大小限制{{$setting['upload_max']}} MB
-
-
-
-
-@if($attachList['queue'])
- @foreach($attachList['queue'] as $n => $v)
-
- @endforeach
-@endif
-
-
-
-@if($attachList['draft'])
- @foreach($attachList['draft'] as $n => $v)
-
- @endforeach
-@endif
-
\ No newline at end of file
diff --git a/resources/views/attachment/create.blade.php b/resources/views/attachment/create.blade.php
index 0ceaae9b..8a2edb68 100644
--- a/resources/views/attachment/create.blade.php
+++ b/resources/views/attachment/create.blade.php
@@ -1,4 +1,4 @@
-
diff --git a/resources/views/attachment/create2.blade.php b/resources/views/attachment/create2.blade.php
deleted file mode 100644
index 11846b2d..00000000
--- a/resources/views/attachment/create2.blade.php
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
附件
-
-
-
-
- @if($attachments['rows'])
- @foreach($attachments['rows'] as $n => $file)
-
-
- @endforeach
- @endif
-
-
-
-
- @if($attachments['draft'])
- @foreach($attachments['draft'] as $n => $file)
-
-
- @endforeach
- @endif
-
-
diff --git a/resources/views/attachment/file.blade.php b/resources/views/attachment/file.blade.php
deleted file mode 100644
index 25f2d4f0..00000000
--- a/resources/views/attachment/file.blade.php
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
-@if($attach['auth']['add'] == true)
-
-
文件上传
-
文件大小限制{{$setting['upload_max']}} MB
-
-
-@endif
-
-
-@if($attach['queue'])
- @if($attach['queue'])
- @foreach($attach['queue'] as $v)
-
-
{{$v['title']}}
-
(
- 上传者: {{get_user($v['add_user_id'], 'name')}}
- 上传时间: @datetime($v['add_time'])
- 大小: {{human_filesize($v['size'])}}
- )
-
- @if($attach['auth']['add'] == true)
-
删除
- @endif
-
-
-
- @endforeach
- @endif
-@endif
-
-
-
- @if($attach['draft'])
- @foreach($attach['draft'] as $k => $v)
-
-
! {{$v['title']}}
-
(
- 上传者: {{get_user($v['add_user_id'], 'name')}}
- 上传时间: @datetime($v['add_time'])
- 大小: {{human_filesize($v['size'])}}
- )
-
- @if($attach['auth']['add'] == true)
-
删除
- @endif
-
-
-
- @endforeach
- @endif
-
diff --git a/resources/views/attachment/image.blade.php b/resources/views/attachment/image.blade.php
deleted file mode 100644
index fd8e8fb2..00000000
--- a/resources/views/attachment/image.blade.php
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/resources/views/attachment/mobile/file.blade.php b/resources/views/attachment/mobile/file.blade.php
deleted file mode 100644
index 568600dc..00000000
--- a/resources/views/attachment/mobile/file.blade.php
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-
-
-
-@if($attach['auth']['add'] == true)
-
文件上传
-
文件大小限制{{$setting['upload_max']}} MB
-@endif
-
-
-@if($attach['queue'])
- @if($attach['queue'])
- @foreach($attach['queue'] as $v)
-
-
{{$v['title']}}
-
(
- 上传者: {{get_user($v['add_user_id'], 'name')}}
- 上传时间: @datetime($v['add_time'])
- 大小: {{human_filesize($v['size'])}}
- )
-
- @if($attach['auth']['add'] == true)
-
删除
- @endif
-
-
-
- @endforeach
- @endif
-@endif
-
-
- @if($attach['draft'])
- @foreach($attach['draft'] as $k => $v)
-
-
! {{$v['title']}} ({{human_filesize($v['size'])}})
-
- {{get_user($v['add_user_id'], 'name')}} - @datetime($v['add_time'])
-
- @if($attach['auth']['add'] == true)
-
删除
- @endif
-
-
-
- @endforeach
- @endif
-
diff --git a/resources/views/attachment/qrcode.blade.php b/resources/views/attachment/qrcode.blade.php
deleted file mode 100644
index 7cb066b2..00000000
--- a/resources/views/attachment/qrcode.blade.php
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-
-
-
{{$setting['title']}}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/resources/views/attachment/show.blade.php b/resources/views/attachment/show.blade.php
index 9254a245..a80feba8 100644
--- a/resources/views/attachment/show.blade.php
+++ b/resources/views/attachment/show.blade.php
@@ -1,19 +1,35 @@
-
-
- @if(count($attachments['main']))
- @foreach($attachments['main'] as $n => $file)
-
-
- @endforeach
+ @if($attachment['rows'])
+ @foreach($attachment['rows'] as $n => $file)
+
+
{{$file['name']}}
+
({{human_filesize($file['size'])}})
+
+ @if(in_array($file['type'], ['pdf']))
+
[预览]
+ @endif
+
+ @if(in_array($file['type'], ['jpg','png','gif','bmp']))
+
[预览]
+ @endif
+
+
+
+ @endforeach
@endif
-
-
+
\ No newline at end of file
diff --git a/resources/views/attachment/show2.blade.php b/resources/views/attachment/show2.blade.php
deleted file mode 100644
index 44cb5424..00000000
--- a/resources/views/attachment/show2.blade.php
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
- @if($attachments['main'])
- @foreach($attachments['main'] as $n => $file)
-
-
- @endforeach
- @endif
-
-
diff --git a/resources/views/attachment/uploader.blade.php b/resources/views/attachment/upload.blade.php
similarity index 87%
rename from resources/views/attachment/uploader.blade.php
rename to resources/views/attachment/upload.blade.php
index 99a1cd5a..77403405 100644
--- a/resources/views/attachment/uploader.blade.php
+++ b/resources/views/attachment/upload.blade.php
@@ -20,8 +20,8 @@
diff --git a/resources/views/attachment/view.blade.php b/resources/views/attachment/view.blade.php
deleted file mode 100644
index 141ed10c..00000000
--- a/resources/views/attachment/view.blade.php
+++ /dev/null
@@ -1,23 +0,0 @@
-
- 附件 {{count($attachment['rows'])}}
-
-
-
- @foreach($attachment['rows'] as $row)
-
-
- {{$row['name']}}
-
-
({{human_filesize($row['size'])}})
-
- @if(in_array(strtolower($row['type']), ['pdf']))
-
预览
- @elseif(in_array(strtolower($row['type']), ['jpg','png','gif','bmp']))
-
预览
- @else
-
下载
- @endif
-
-
- @endforeach
-
新建
@endif
-
+
+ @yield('left_buttons')
+
{{:$button_count = 0}}
@foreach($header['buttons'] as $button)
@if($button['display'])
@@ -62,10 +64,6 @@
@else
@if($button['display'])
-
- @if($header['exist_sub_table'] == 1 && $button['action'] == 'delete')
-
- @endif
{{$button['name']}}
@endif
@endif
@@ -110,13 +108,6 @@
@@ -147,11 +138,6 @@
@endif
@endforeach
-