Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
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
front-end-dev
techbook
Commits
46bbd76e
Commit
46bbd76e
authored
Jan 10, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑需求
parent
67ac1ed3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
26 deletions
+69
-26
uploadCmpt.vue
src/components/common/uploadCmpt.vue
+8
-0
editRequireCmpt.vue
src/components/require/editRequireCmpt.vue
+61
-26
No files found.
src/components/common/uploadCmpt.vue
View file @
46bbd76e
...
...
@@ -121,6 +121,11 @@
border-radius
:
6px
;
}
&
:hover
{
border
:
1px
dashed
#5d78ff
;
background-size
:
105%
;
background-position
:
center
;
}
}
.uploadCmptEn
{
position
:
relative
;
...
...
@@ -134,6 +139,9 @@
border-radius
:
6px
;
}
&
:hover
{
border
:
1px
dashed
#5d78ff
;
}
}
.uploadClick
{
width
:
130px
;
...
...
src/components/require/editRequireCmpt.vue
View file @
46bbd76e
...
...
@@ -43,32 +43,42 @@
<el-form-item
:label=
"$t('workPlace.basicForm.companyLogo')+':'"
required
class=
"businesscard"
v-if=
"companyInfo.authenticationState=='AS04'"
>
<p
class=
"imgTitle"
style=
"margin-bottom: 10px;"
>
{{
$t
(
"workPlace.basicForm.imgLogoTitle"
)
}}
</p>
<div
class=
"uploadImg"
>
<el-upload
name=
"fileUpload"
:limit=
"1"
:on-exceed=
"handleExceed"
list-type=
"picture-card"
class=
"uploadImgCircle"
:action=
uploadHostHeader
:multiple=
"false"
:file-list=
"fileList"
:on-preview=
"handlePictureCardPreview"
:on-success=
"uploadComplete"
:before-upload=
"handleBeforeFile"
:on-remove=
"handleRemove"
>
<i
class=
"iconfont icon-jiahao"
></i>
<p
class=
"uploadImgTitle"
>
{{
$t
(
"workPlace.basicForm.uploadImg"
)
}}
</p>
</el-upload>
<el-dialog
:visible
.
sync=
"dialogVisible"
>
<img
width=
"100%"
:src=
"dialogImageUrl"
alt=
""
>
</el-dialog>
<!--
<el-upload-->
<!--name="fileUpload"-->
<!--:limit="1"-->
<!--:on-exceed="handleExceed"-->
<!--list-type="picture-card"-->
<!--class="uploadImgCircle"-->
<!--:action=uploadHostHeader-->
<!--:multiple="false"-->
<!--:file-list="fileList"-->
<!--:on-preview="handlePictureCardPreview"-->
<!--:on-success="uploadComplete"-->
<!--:before-upload="handleBeforeFile"-->
<!--:on-remove="handleRemove"-->
<!-->-->
<!--
<i
class=
"iconfont icon-jiahao"
></i>
-->
<!--
<p
class=
"uploadImgTitle"
>
{{
$t
(
"workPlace.basicForm.uploadImg"
)
}}
</p>
-->
<!--
</el-upload>
-->
<!--
<el-dialog
:visible
.
sync=
"dialogVisible"
>
-->
<!--
<img
width=
"100%"
:src=
"dialogImageUrl"
alt=
""
>
-->
<!--
</el-dialog>
-->
<uploadCmpt
:returnFrom=
"ruleForm"
@
postOneThing=
"handelChangeImgUrl"
@
postErrorText=
"postErrorText"
@
postErrorText2=
"postErrorText2"
>
</uploadCmpt>
</div>
<span
class=
"errorText"
v-if=
"isShowErrorText1"
>
{{
$t
(
"workPlace.basicForm.emptyLogo"
)
}}
</span>
<span
class=
"errorText"
v-if=
"isShowErrorText2"
>
{{
$t
(
"personalAuth.errorformatCard"
)
}}
</span>
<span
class=
"errorText"
v-if=
"isShowErrorText3"
>
{{
$t
(
"personalAuth.errorSizeCard"
)
}}
</span>
<span
class=
"errorText"
v-if=
"isShowErrorText4"
>
{{
$t
(
"personalAuth.uploadingCard"
)
}}
</span>
<span
class=
"errorText"
v-if=
"isShowErrorText5"
>
{{
$t
(
"personalAuth.errorExceedCard"
)
}}
</span>
<div
class=
"errorTitle"
>
<span
class=
"errorText"
v-if=
"isShowErrorText1"
>
{{
$t
(
"workPlace.basicForm.emptyLogo"
)
}}
</span>
<span
class=
"errorText"
v-if=
"isShowErrorText2"
>
{{
$t
(
"personalAuth.errorformatCard"
)
}}
</span>
<span
class=
"errorText"
v-if=
"isShowErrorText3"
>
{{
$t
(
"personalAuth.errorSizeCard"
)
}}
</span>
<span
class=
"errorText"
v-if=
"isShowErrorText4"
>
{{
$t
(
"personalAuth.uploadingCard"
)
}}
</span>
<span
class=
"errorText"
v-if=
"isShowErrorText5"
>
{{
$t
(
"personalAuth.errorExceedCard"
)
}}
</span>
</div>
<!--
<span
class=
"errorText"
v-if=
"isShowErrorText1"
>
{{
$t
(
"workPlace.basicForm.emptyLogo"
)
}}
</span>
-->
<!--
<span
class=
"errorText"
v-if=
"isShowErrorText2"
>
{{
$t
(
"personalAuth.errorformatCard"
)
}}
</span>
-->
<!--
<span
class=
"errorText"
v-if=
"isShowErrorText3"
>
{{
$t
(
"personalAuth.errorSizeCard"
)
}}
</span>
-->
<!--
<span
class=
"errorText"
v-if=
"isShowErrorText4"
>
{{
$t
(
"personalAuth.uploadingCard"
)
}}
</span>
-->
<!--
<span
class=
"errorText"
v-if=
"isShowErrorText5"
>
{{
$t
(
"personalAuth.errorExceedCard"
)
}}
</span>
-->
</el-form-item>
<el-form-item
:label=
"$t('workPlace.basicForm.industryInvolved')+':'"
...
...
@@ -496,10 +506,12 @@
import
publicFunc
from
'../../common/public'
;
import
api
from
'../../views/bigbusiness/api/api'
;
import
loadingCmpt
from
'../common/loading'
;
import
uploadCmpt
from
'../common/uploadCmpt'
export
default
{
name
:
"editRequireCmpt"
,
components
:{
loadingCmpt
,
uploadCmpt
},
props
:{
...
...
@@ -1085,6 +1097,29 @@
this
.
dialogVisible
=
true
;
},
//给图片路径赋值
handelChangeImgUrl
(
data
){
this
.
ruleForm
.
companyLogoUrl
=
data
;
},
postErrorText
(
data
){
this
.
flag
=
data
;
this
.
isShowErrorText1
=
false
;
this
.
isShowErrorText2
=
false
;
this
.
isShowErrorText3
=
false
;
this
.
isShowErrorText4
=
false
;
this
.
isShowErrorText5
=
false
;
},
postErrorText2
(
data
){
this
.
flag
=
data
;
this
.
isShowErrorText1
=
false
;
this
.
isShowErrorText2
=
true
;
this
.
isShowErrorText3
=
false
;
this
.
isShowErrorText4
=
false
;
this
.
isShowErrorText5
=
false
;
},
//获取公司规模
getCompanyScale
()
{
let
params
=
{
...
...
@@ -1609,7 +1644,7 @@
empPhone
:
this
.
ruleForm
.
empPhone
,
detailId
:
this
.
detailInfo
.
detailId
,
businessId
:
this
.
companyInfo
.
businessId
,
empId
:
this
.
ruleForm
.
empPhone
==
this
.
detailInfo
.
requirementContacts
.
emp
Phone
?
this
.
detailInfo
.
requirementContacts
.
empId
:
null
empId
:
this
.
ruleForm
.
empPhone
==
this
.
detailInfo
.
requirementContacts
.
emp
Account
?
this
.
detailInfo
.
requirementContacts
.
empId
:
null
};
api
.
addRequirePeopleAxios
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
this
.
submitDataFunc
();
...
...
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