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
7db8ab15
Commit
7db8ab15
authored
Feb 19, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2f11cd04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
new_text.html
application/index/view/news/new_text.html
+1
-1
schoolBusinessNew.js
public/resource/js/schoolBusinessNew.js
+2
-2
No files found.
application/index/view/news/new_text.html
View file @
7db8ab15
...
...
@@ -341,7 +341,7 @@
<input
type=
"file"
id=
"file_input"
class=
""
data-limittop=
"10"
/>
<!--修改上传文件的最大数字-->
<button
class=
"btn btn-default"
>
选择附件
</button>
</div>
<ul
class=
"img-pre-ul"
id=
"fujian_ul"
></ul>
<ul
class=
"img-pre-ul"
id=
"fujian_ul
_liu
"
></ul>
<p
class=
"text-danger"
>
保存成功后,点击文件名称即可下载
</p>
</div>
</div>
...
...
public/resource/js/schoolBusinessNew.js
View file @
7db8ab15
...
...
@@ -346,7 +346,7 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
for
(
var
i
=
0
;
i
<
file_paths
.
length
;
i
++
){
console
.
log
(
file_paths
[
i
][
'file_name'
])
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
][
'file_id'
]
+
'><a class="pdf-pre-a pdf-pre-a-download" download="{1}" href="javascript:;" title="点击可下载">{2}</a><a href="javascript:;" class="delet-pic-btn">删除</a></li>'
.
stringFormatObj
({
file_paths
[
i
][
'file_name'
]
&&
$
(
'#fujian_ul
_liu
'
).
append
(
'<li class="pdf-pre-li" id='
+
file_paths
[
i
][
'file_id'
]
+
'><a class="pdf-pre-a pdf-pre-a-download" download="{1}" href="javascript:;" title="点击可下载">{2}</a><a href="javascript:;" class="delet-pic-btn">删除</a></li>'
.
stringFormatObj
({
'0'
:
'/'
+
file_paths
[
i
][
'show_file'
],
'1'
:
dealFileName
(
decodeURI
(
_tempArr
[
_tempArr
.
length
-
1
])),
'2'
:
file_paths
[
i
][
'file_former_name'
]?
file_paths
[
i
][
'file_former_name'
]:
dealFileName
(
decodeURI
(
_tempArr
[
_tempArr
.
length
-
1
]))
...
...
@@ -424,7 +424,7 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
_data
.
content
=
_dajiangtangVal
;
//附件相关
var
_fujianObj
=
$
(
'#fujian_ul'
).
find
(
'li>a.pdf-pre-a'
);
//附件看的是删除按钮的个数
var
_fujianObj
=
$
(
'#fujian_ul
_liu
'
).
find
(
'li>a.pdf-pre-a'
);
//附件看的是删除按钮的个数
if
(
_fujianObj
.
length
>
0
){
//判断附件存在,同时,附件可能存在0到5个
for
(
var
i
=
0
;
i
<
_fujianObj
.
length
;
i
++
){
var
one_name
=
_fujianObj
[
i
].
getAttribute
(
'data-filename'
);
//附件取得是data-filename
...
...
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