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
0512146c
Commit
0512146c
authored
Jul 31, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc商学院修改
parent
ea858e19
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
5 deletions
+35
-5
new_text.html
application/index/view/news/new_text.html
+20
-0
weekly_achieve_dz.js
public/app/js/weekly_achieve_dz.js
+1
-1
schoolBusinessNew.js
public/resource/js/schoolBusinessNew.js
+14
-4
No files found.
application/index/view/news/new_text.html
View file @
0512146c
...
...
@@ -306,6 +306,26 @@
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
附件(格式为pdf/doc/xls):
</label>
<div
class=
"col-sm-9"
>
<!--选择图片-->
<ul
class=
"list-group"
>
<li
class=
"list-group-item"
>
<!--封面图 一张-->
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--<label for="">列表页封面图(1张)</label>-->
<input
readonly=
"readonly"
type=
"text"
name=
"fujian_input"
class=
"form-control"
style=
"width: 150px !important;display:none"
id=
"fujian_input"
placeholder=
"请选择图片"
>
<button
class=
"btn btn-default upload-image-btn"
id=
"fujian_btn"
data-spfile=
"pdf"
type=
"button"
data-limittop=
"5"
>
选择附件
</button>
<span
class=
"tip"
></span>
</div>
<ul
class=
"img-pre-ul"
id=
"liebiao_pic_ul"
></ul>
</li>
</ul>
</div>
</div>
</form>
<button
type=
"button"
class=
"btn btn-primary"
id=
"add_news"
>
...
...
public/app/js/weekly_achieve_dz.js
View file @
0512146c
...
...
@@ -73,7 +73,7 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
_htmlGroupInfo
+=
'<tr><td>{0}</td><td>{1}</td><td><input type="number" placeholder="填写" value="{keyuan}" /></td><td>{2}</td><td><input type="number" placeholder="填写" value="{yeji}" /></td></tr>'
.
stringFormatObj
({
'0'
:
item
[
'agent_name'
],
'1'
:
item
[
'house_num'
],
'keyuan'
:
item
[
'add_user_num
_week
'
],
'keyuan'
:
item
[
'add_user_num'
],
'2'
:
item
[
'follow_up_num'
],
'yeji'
:
item
[
'performance_week'
]
});
...
...
public/resource/js/schoolBusinessNew.js
View file @
0512146c
...
...
@@ -71,6 +71,17 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
_this
.
parent
().
prev
().
val
(
_this
.
html
()).
attr
(
'data-id'
,
_this
.
attr
(
'data-id'
));
_this
.
parent
().
html
(
''
).
hide
();
});
//处理文件名,长度过长时处理
function
dealFileName
(
str
)
{
//如果文件超过30的长度,则用*代替
if
(
str
.
length
>
26
)
{
return
str
.
slice
(
0
,
23
)
+
'***'
+
str
.
slice
(
-
4
);
}
else
{
return
str
;
};
};
//图片上传,附件上传处理事件
$
(
".upload-image-btn"
).
click
(
function
()
{
var
_this
=
$
(
this
),
...
...
@@ -82,13 +93,13 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
BrowseServer
(
_this
.
prev
().
attr
(
'id'
),
function
(
url
)
{
console
.
log
(
url
);
if
(
_spFile
==
'pdf'
)
{
if
(
/
(\.
pdf
)
$/i
.
test
(
url
))
{
if
(
/
(\.
pdf
|
\.
doc|
\.
xls
)
$/i
.
test
(
url
))
{
_this
.
parent
().
next
().
prepend
(
'<li class="pdf-pre-li"><a class="pdf-pre-a" href="{0}" target="_blank" title="点击查看">{1}</a><a href="javascript:;" class="delet-pic-btn">删除</a></li>'
.
stringFormatObj
({
'0'
:
url
,
'1'
:
dealFileName
(
decodeURI
(
url
.
slice
(
url
.
lastIndexOf
(
'/'
)
+
1
)))
}));
}
else
{
alert
(
'所选择的格式不是pdf,请重新选择'
);
alert
(
'所选择的格式不是pdf
/doc/xls
,请重新选择'
);
return
false
;
}
}
else
{
...
...
@@ -113,10 +124,9 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
_this
.
parent
().
remove
();
if
(
confirm
(
'确定删除该文件吗?'
))
{
var
_imgId
=
_this
.
parent
().
attr
(
'data-imgid'
);
_this
.
parent
().
remove
();
};
});
//图片预览点击放大事件
...
...
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