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
6852adcd
Commit
6852adcd
authored
Dec 03, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 保存后才能下载
parent
0a8de33a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
schoolBusinessNew.js
public/resource/js/schoolBusinessNew.js
+2
-2
No files found.
public/resource/js/schoolBusinessNew.js
View file @
6852adcd
...
@@ -45,7 +45,7 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
...
@@ -45,7 +45,7 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
_doc
.
on
(
'click'
,
'.add-pic'
,
function
()
{
_doc
.
on
(
'click'
,
'.add-pic'
,
function
()
{
follow
.
getaddPicList
();
follow
.
getaddPicList
();
});
});
_doc
.
on
(
'click'
,
'.pdf-pre-a'
,
function
()
{
_doc
.
on
(
'click'
,
'.pdf-pre-a
-download
'
,
function
()
{
var
file_id
=
$
(
this
).
parent
(
'li'
).
attr
(
'id'
)
-
0
;
var
file_id
=
$
(
this
).
parent
(
'li'
).
attr
(
'id'
)
-
0
;
var
_url
=
'/index/downloadFile'
;
var
_url
=
'/index/downloadFile'
;
window
.
open
(
_url
+
'?file_id='
+
file_id
);
window
.
open
(
_url
+
'?file_id='
+
file_id
);
...
@@ -270,7 +270,7 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
...
@@ -270,7 +270,7 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
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'
])
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
][
'file_id'
]
+
'><a class="pdf-pre-a" download="{1}" href="javascript:;" title="点击可下载">{2}</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
][
'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'
],
'0'
:
'/'
+
file_paths
[
i
][
'show_file'
],
'1'
:
dealFileName
(
decodeURI
(
_tempArr
[
_tempArr
.
length
-
1
])),
'1'
:
dealFileName
(
decodeURI
(
_tempArr
[
_tempArr
.
length
-
1
])),
'2'
:
file_paths
[
i
][
'file_former_name'
]
'2'
:
file_paths
[
i
][
'file_former_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