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
1a909465
Commit
1a909465
authored
Jun 11, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日报验证
parent
16e4a6ee
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
127 additions
and
3 deletions
+127
-3
daily_achieve_ywy.html
application/app_broker/view/index/daily_achieve_ywy.html
+0
-0
report_achieve.css
public/app/css/report_achieve.css
+20
-0
daily_achieve_ywy.js
public/app/js/daily_achieve_ywy.js
+105
-1
my_collection_office_template_tpl.html
.../resource/template/my_collection_office_template_tpl.html
+1
-1
office_building_list_template_tpl.html
.../resource/template/office_building_list_template_tpl.html
+1
-1
No files found.
application/app_broker/view/index/daily_achieve_ywy.html
View file @
1a909465
This diff is collapsed.
Click to expand it.
public/app/css/report_achieve.css
View file @
1a909465
...
...
@@ -193,6 +193,26 @@ div.div-textarea.color-submit{
color
:
#333
;
text-align
:
left
;
}
/*字数限制*/
div
.div-textarea-limit
{
float
:
left
;
width
:
100%
;
box-sizing
:
border-box
;
/*padding: 20px 8px;*/
padding
:
20px
0
;
overflow-x
:
hidden
;
overflow-y
:
auto
;
color
:
#757575
;
line-height
:
normal
;
}
div
.div-textarea-limit.color-submit
{
color
:
#333
;
text-align
:
left
;
}
div
.div-textarea.div-textarea-mdzj-header
{
color
:
#F13D2F
;
padding
:
20px
0
;
...
...
public/app/js/daily_achieve_ywy.js
View file @
1a909465
...
...
@@ -7,6 +7,9 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
};
$
(
'title'
).
after
(
'<meta name="viewport" content="width=device-width,initial-scale='
+
(
window
.
screen
.
width
/
750
)
+
',maximum-scale=2.0,user-scalable=0" />'
);
var
_appToken
=
getUrlParam
(
'token'
);
//变量 验证所有input
var
_isBreakFlag
=
false
;
var
vm
=
new
Vue
({
el
:
'#app'
,
data
:
{
...
...
@@ -137,6 +140,93 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
});
},
save
:
function
()
{
//多个input输入框验证
$
.
each
([
$
(
".input-bitian-1"
),
$
(
".input-bitian-2"
),
$
(
".input-bitian-3"
),
$
(
".input-bitian-4"
),
$
(
".input-bitian-5"
),
$
(
".input-bitian-6"
),
$
(
".input-bitian-7"
),
$
(
".input-bitian-8"
),
$
(
".input-bitian-9"
),
$
(
".input-bitian-10"
),
$
(
".input-bitian-11"
),
$
(
".input-bitian-12"
),
$
(
".input-bitian-13"
),
$
(
".input-bitian-14"
),
$
(
".input-bitian-15"
),
$
(
".input-bitian-16"
),
$
(
".input-bitian-17"
),
$
(
".input-bitian-18"
),
$
(
".input-bitian-19"
),
$
(
".input-bitian-20"
),
$
(
".input-bitian-21"
),
$
(
".input-bitian-22"
),
$
(
".input-bitian-23"
),
$
(
".input-bitian-24"
),
$
(
".input-bitian-25"
),
$
(
".input-bitian-26"
),
$
(
".input-bitian-27"
)
],
function
(
i
,
item
)
{
if
(
$
.
trim
(
item
.
val
())
==
''
)
{
alert
(
item
.
attr
(
'data-alert'
));
_isBreakFlag
=
true
;
return
false
;
}
else
{
_isBreakFlag
=
false
;
};
});
var
yanzhengArr
=
[];
if
(
$
(
".input-limit-7"
).
html
()
!=
'点击填写'
&&
$
(
".input-limit-7"
).
html
()
!=
''
){
yanzhengArr
.
push
(
1
);
}
if
(
$
(
".input-limit-8"
).
html
()
!=
'点击填写'
&&
$
(
".input-limit-8"
).
html
()
!=
''
){
yanzhengArr
.
push
(
1
);
}
if
(
$
(
".input-limit-9"
).
html
()
!=
'点击填写'
&&
$
(
".input-limit-9"
).
html
()
!=
''
){
yanzhengArr
.
push
(
1
);
}
if
(
$
(
".input-limit-10"
).
html
()
!=
'点击填写'
&&
$
(
".input-limit-10"
).
html
()
!=
''
){
yanzhengArr
.
push
(
1
);
}
if
(
$
(
".input-limit-11"
).
html
()
!=
'点击填写'
&&
$
(
".input-limit-11"
).
html
()
!=
''
){
yanzhengArr
.
push
(
1
);
}
//验证div 字数要求
if
(
_isBreakFlag
){
//true 不进行义验证
return
}
else
{
if
(
$
(
".input-limit-1"
).
html
()
==
''
||
$
(
".input-limit-1"
).
html
().
length
<
10
){
alert
(
'核心目标量化须填写完整且字数不少于10字'
);
return
;
}
if
(
$
(
".input-limit-2"
).
html
()
==
''
||
$
(
".input-limit-2"
).
html
().
length
<
10
){
alert
(
'核心目标量化须填写完整且字数不少于10字'
);
return
;
}
if
(
$
(
".input-limit-3"
).
html
()
==
''
||
$
(
".input-limit-3"
).
html
().
length
<
10
){
alert
(
'核心目标量化须填写完整且字数不少于10字'
);
return
;
}
if
(
$
(
".input-limit-4"
).
html
()
==
''
||
$
(
".input-limit-4"
).
html
().
length
<
10
){
alert
(
'核心目标量化须填写完整且字数不少于10字'
);
return
;
}
if
(
$
(
".input-limit-5"
).
html
()
==
''
||
$
(
".input-limit-5"
).
html
()
==
'点击填写'
){
alert
(
'业绩目标必填'
);
return
;
}
if
(
$
(
".input-limit-6"
).
html
()
==
''
||
$
(
".input-limit-6"
).
html
()
==
'点击填写'
){
alert
(
'业绩动力必填'
);
return
;
}
if
(
yanzhengArr
.
length
<
2
){
alert
(
'提高方法至少填两项'
);
return
;
}
}
var
_this
=
this
;
var
_timeStampObj
=
$
(
'#time_stamp_area'
);
//时间区域div获取
var
_titleBeforeObj
=
$
(
'#titile_before'
);
//titile区域截图前后的div获取
...
...
@@ -188,7 +278,6 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
$
.
ajax
({
type
:
'POST'
,
url
:
ServerHostTempCLiu
+
'/broker/weekWorkImg'
,
//url: '/broker/weekWorkImg',
data
:
{
'agent_id'
:
_this
.
userId
,
'img'
:
img
,
...
...
@@ -251,4 +340,18 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
_this
.
html
(
'点击填写'
).
removeClass
(
'color-submit'
);
}
});
//填写字数限制
_doc
.
on
(
'click'
,
'.div-textarea-limit'
,
function
(
e
)
{
var
_this
=
$
(
this
);
if
(
_this
.
html
()
===
'填写不少于10字'
)
{
_this
.
html
(
''
).
addClass
(
'color-submit'
);
}
});
_doc
.
on
(
'blur'
,
'.div-textarea-limit'
,
function
(
e
)
{
var
_this
=
$
(
this
);
if
(
_this
.
html
()
===
''
)
{
_this
.
html
(
'填写不少于10字'
).
removeClass
(
'color-submit'
);
}
});
});
\ No newline at end of file
public/resource/template/my_collection_office_template_tpl.html
View file @
1a909465
...
...
@@ -59,7 +59,7 @@
否
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
dish_
name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
width
=
"10%"
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
...
...
public/resource/template/office_building_list_template_tpl.html
View file @
1a909465
...
...
@@ -51,7 +51,7 @@
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"is_rent"
]
==
0
)
{
%
]
未
租
求
租
[
%
}
else
{
%
]
已租
[
%
}
%
]
...
...
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