Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
55a17904
Commit
55a17904
authored
Sep 10, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公告 上传附件
parent
a9e147c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
20 deletions
+17
-20
index.html
application/index/view/notice/index.html
+3
-0
addNoticeView.js
public/resource/js/addNoticeView.js
+1
-9
notice.js
public/resource/js/notice.js
+13
-11
No files found.
application/index/view/notice/index.html
View file @
55a17904
...
@@ -263,6 +263,9 @@
...
@@ -263,6 +263,9 @@
<div
class=
"notice-text"
></div>
<div
class=
"notice-text"
></div>
<div
class=
"notice-fujian-area"
>
<div
class=
"notice-fujian-area"
>
<span>
附件(点击可下载):
</span>
<span>
附件(点击可下载):
</span>
<ul
id=
"#fujian_ul"
>
</ul>
</div>
</div>
</div>
</div>
...
...
public/resource/js/addNoticeView.js
View file @
55a17904
...
@@ -133,15 +133,7 @@ define (['doT', 'text!temp/notice_template_tpl.html','ckfinder','ckfinderStart',
...
@@ -133,15 +133,7 @@ define (['doT', 'text!temp/notice_template_tpl.html','ckfinder','ckfinderStart',
}
}
}
}
params
.
exclusive_file
=
_data
.
join
(
','
);
params
.
annex_file_name
=
_data
.
join
(
','
);
// params.del_file_id= _data.join(',');
// params
// var _fujianObj = $('#fujian_ul').find('li>a.pdf-pre-a'); 附件看的是删除按钮的个数
// if(_fujianObj.length === 1) {
// params['annex_file_name'] = _fujianObj[0].getAttribute('data-filename'); 附件取得是data-filename
// };
$
.
ajax
({
$
.
ajax
({
url
:
'/index/addNotice'
,
url
:
'/index/addNotice'
,
type
:
'POST'
,
type
:
'POST'
,
...
...
public/resource/js/notice.js
View file @
55a17904
...
@@ -82,19 +82,21 @@ define (['doT', 'text!temp/notice_template_tpl.html','ckfinder','ckfinderStart',
...
@@ -82,19 +82,21 @@ define (['doT', 'text!temp/notice_template_tpl.html','ckfinder','ckfinderStart',
var
_filePath
=
$
(
this
).
attr
(
'data-fujian'
);
var
_filePath
=
$
(
this
).
attr
(
'data-fujian'
);
var
_tempArr
=
_filePath
.
split
(
'/'
);
var
_tempArr
=
_filePath
.
split
(
'/'
);
var
_lastObj
=
dealFileName
(
decodeURI
(
_tempArr
[
_tempArr
.
length
-
1
]));
var
_lastObj
=
dealFileName
(
decodeURI
(
_tempArr
[
_tempArr
.
length
-
1
]));
if
(
_lastObj
){
$
(
'.notice-fujian-area'
).
show
().
html
(
'<span>附件(点击可下载):</span><a download="{0}" href="{1}" title="点击可下载">{0}</a>'
.
stringFormatObj
({
// if(_lastObj){
'0'
:
_lastObj
,
// $('.notice-fujian-area').show().html('<span>附件(点击可下载):</span><a download="{0}" href="{1}" title="点击可下载">{0}</a>'.stringFormatObj({
'1'
:
_filePath
// '0': _lastObj,
}))
// '1': _filePath
}
else
{
// }))
$
(
'.notice-fujian-area'
).
html
(
''
).
hide
();
// }else{
}
// $('.notice-fujian-area').html('').hide();
//获取附件 对接口
// }
// var file_paths = _data['exclusive_file'];
// 获取附件 对接口
// if(file_paths){
// if(file_paths){
// for ( var i = 0 ; i < file_paths.length ; i++ ){
// for ( var i = 0 ; i < file_paths.length ; i++ ){
// console.log(file_paths[i]['file_name'])
// var _tempArr = file_paths[i]['file_name'].split('/');
// var _tempArr = file_paths[i]['file_name'].split('/');
// file_paths[i]['file_name'] && $('#fujian_ul').append('<li class="pdf-pre-li" id='+file_paths[i]['id'] +'><a class="pdf-pre-a" download="{1}" href="{0}" title="点击可下载">{1}</a><a href="javascript:;" class="delet-pic-btn">删除</a></li>'.stringFormatObj({
// file_paths[i]['file_name'] && $('#fujian_ul').append('<li class="pdf-pre-li" id='+file_paths[i]['id'] +'><a class="pdf-pre-a" download="{1}" href="{0}" title="点击可下载">{1}</a><a href="javascript:;" class="delet-pic-btn">删除</a></li>'.stringFormatObj({
// '0': file_paths[i]['file_name'],
// '0': file_paths[i]['file_name'],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment