Commit 46bbd76e authored by zhangyanni's avatar zhangyanni

编辑需求

parent 67ac1ed3
......@@ -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;
......
......@@ -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"-->
<!--&gt;-->
<!--<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.empPhone?this.detailInfo.requirementContacts.empId:null
empId:this.ruleForm.empPhone==this.detailInfo.requirementContacts.empAccount?this.detailInfo.requirementContacts.empId:null
};
api.addRequirePeopleAxios(params).then((res)=>{
if(res.code==0)this.submitDataFunc();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment