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
3054a2a7
Commit
3054a2a7
authored
Aug 21, 2018
by
hefan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改上传文件的最大数量,修改的是js的代码结构,同时上传的多个文件已字符串的形式上传,用逗号分割.
parent
123c4e57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
schoolBusinessNew.js
public/resource/js/schoolBusinessNew.js
+14
-1
No files found.
public/resource/js/schoolBusinessNew.js
View file @
3054a2a7
...
...
@@ -289,7 +289,7 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
var
_dajiangtangObj
=
$
(
'#dajiangtang'
);
//大讲堂
var
_dajiangtangVal
=
getCKeditorValue
(
"goods_sup_id"
);
console
.
log
(
_dajiangtangVal
);
if
(
_liebiaoPicObj
.
length
<
1
)
{
alert
(
'列表页封面图需要上传'
);
return
false
;
...
...
@@ -305,6 +305,19 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
//附件相关
var
_fujianObj
=
$
(
'#fujian_ul'
).
find
(
'li>a.pdf-pre-a'
);
//附件看的是删除按钮的个数
/* var fileName = '' ;
if ( _fujianObj.length > 0 ){ //判断附件存在,同时,附件可能存在0到5个
for ( vari= 0 ; i < _fujianObj.length ; i++ ){
var one_name = _fujianObj[i].getAttribute('data-filename');
if ( i == _fujianObj.length-1 ){
fileName += one_name;
} else {
fileName += one_name + ",";
}
}
_data['annex_file_name'] = fileName //上传的是一个字符串,以','分割;
}
*/
if
(
_fujianObj
.
length
===
1
)
{
_data
[
'annex_file_name'
]
=
_fujianObj
[
0
].
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