Commit 16fe8a9a authored by zhangyanni's avatar zhangyanni

报名

parent 42e09662
......@@ -148,7 +148,7 @@
<el-form-item style="text-align: center;padding-bottom: .5rem;padding-top: .6rem;">
<el-button type="primary" style="width: 48%" @click="submitForm('ruleForm')"
:disabled="disabledFlag>0"
v-loading.fullscreen.lock="fullscreenLoading">填报项目信息
v-loading.fullscreen.lock="fullscreenLoading">{{detailInfo.channelType==3?'提交':'填报项目信息'}}
</el-button>
<el-button type="primary" style="width: 48%" plain @click="handleCancel"
:disabled="disabledFlag>0"
......@@ -197,7 +197,8 @@
dialogVisible: false,
dialogImageUrl:"",
fileList:[],
empUserInfo:null
empUserInfo:null,
moduleId:null
}
},
methods: {
......@@ -345,7 +346,10 @@
var resultObj = {
activityId:this.$route.query.id,
createdBy:this.userInfo?this.userInfo.empId:null,
baseModuleEnter:{}
baseModuleEnter:{
activityId:this.$route.query.id,
moduleId:this.moduleId
}
};
this.basicInfoObj.basicInfoList.forEach((item)=>{
......@@ -434,6 +438,7 @@
if(res.result.length>0){
res.result.forEach((item) => {
if (item.isBase == 0) {
this.moduleId = item.moduleId;
item.fieldList.forEach((data,index) => {
data.modelValue = "";
this.$set(this.ruleForm,data.fieldValue,null);
......
......@@ -163,7 +163,7 @@ router.beforeEach((to, from, next) => {
}
}
if(window.sessionStorage.getItem("userInfo") ==null){
if(to.name == 'dashboard'||to.name=='indexView'|| to.name == 'login' || to.name == 'mobileLoginCmpt'|| to.name == 'emailLoginCmpt'|| to.name == 'mobileRegisterCmpt'|| to.name == 'emailRegisterCmpt'||to.name=='completeInfoCmpt'|| to.name == 'successCmpt'||to.name=='findPasswordCmpt'||to.name=='modifyPasswordCmpt'||to.name=='passSuccessCmpt'||to.name=='indexView'||to.name=="mobileIndex"||to.name=="mobileLogin"||to.name=="loginByPhone"||to.name=="loginByEmail"||to.name=="mobileRegister"||to.name=="registerComplete"||to.name=="shareRequire"||to.name=="shareProject"||to.name=="knowledgeList"||to.name=="knowledgeDetail"||to.name=='vip'||to.name=='vipList'||to.name=='loadEmail'||to.name=='openEmail'||to.name=="viewRequire"||to.name=="phoneBusinessList"||to.name=="phoneBusinessDetail"||to.name=="phoneRequireDetail"||to.name=="bigBusinessList"||to.name=="bigBusinessDetail"||to.name=="requireDetail"||to.name=="mixSearch"||to.name=="activitylist"||to.name=="activitydetail"||to.name=="activitysearch"||to.name=="applyForProject"){
if(to.name == 'dashboard'||to.name=='indexView'|| to.name == 'login' || to.name == 'mobileLoginCmpt'|| to.name == 'emailLoginCmpt'|| to.name == 'mobileRegisterCmpt'|| to.name == 'emailRegisterCmpt'||to.name=='completeInfoCmpt'|| to.name == 'successCmpt'||to.name=='findPasswordCmpt'||to.name=='modifyPasswordCmpt'||to.name=='passSuccessCmpt'||to.name=='indexView'||to.name=="mobileIndex"||to.name=="mobileLogin"||to.name=="loginByPhone"||to.name=="loginByEmail"||to.name=="mobileRegister"||to.name=="registerComplete"||to.name=="shareRequire"||to.name=="shareProject"||to.name=="knowledgeList"||to.name=="knowledgeDetail"||to.name=='vip'||to.name=='vipList'||to.name=='loadEmail'||to.name=='openEmail'||to.name=="viewRequire"||to.name=="phoneBusinessList"||to.name=="phoneBusinessDetail"||to.name=="phoneRequireDetail"||to.name=="bigBusinessList"||to.name=="bigBusinessDetail"||to.name=="requireDetail"||to.name=="mixSearch"||to.name=="activitylist"||to.name=="activitydetail"||to.name=="activitySearchResult"||to.name=="applyForProject"){
} else{
if(to.path == '/casedetailschild'||to.path == '/lndustryfocuschild'||to.path == '/successfulcasechild'||to.path == '/projectdetails'||to.path == '/seeprojectlist'||to.path == '/projectlist'||to.path == '/viewproject'||to.path == '/templateMobile1'||to.path == '/knowledge'||to.path == '/knowledgedetails'||to.path == '/termserviceed'||to.path == '/privacypolicyed'||to.path == '/contactused'||to.path == '/aboutused'||to.path == '/casedetailsed'||to.path == '/lndustryfocused'||to.path == '/successfulcaseed'||to.path == '/usehelped'||to.path == '/useHelp'||to.path == '/reminder'||to.path == '/contactus' ||to.path == '/privacypolicy' ||to.path == '/termservice' ||to.path == '/casedetails' ||to.path == '/successfulcase' ||to.path == '/lndustryfocus' ||to.path == '/aboutus' ){
......
......@@ -7,7 +7,7 @@
<el-form :label-position="labelPosition" ref="ruleForm" :rules="rules" :model="ruleForm"
class="auth-ruleForm" v-if="detailInfoList!=undefined&&detailInfoList.length>0">
<div class="contentInfo" v-for="(module,moduleIndex) in detailInfoList">
<p class="activityIntro"><span class="leftTab"></span><span>{{module.moduleName}}{{moduleIndex}}</span></p>
<p class="activityIntro"><span class="leftTab"></span><span>{{module.moduleName}}</span></p>
<div>
<el-form-item :class="item.fieldType==-1?'yzcodeItem':item.fieldType==6||item.fieldType==7?'dateform':''" :label="item.fieldName+':'" v-for="(item,index) in module.fieldList" :key="index" :prop="item.fieldValue=='compantAddress'?'':item.fieldValue+moduleIndex" >
<el-input v-if="item.fieldType==2&&item.fieldValue!='technology'&&item.fieldValue!='companyLogo'" v-model="ruleForm[item.fieldValue+moduleIndex]" :placeholder="item.placeholderVal+item.fieldName"
......@@ -237,7 +237,7 @@
<el-form-item style="text-align: center;padding-bottom: .5rem;padding-top: .6rem;">
<el-button type="primary" style="width: 48%" @click="submitForm('ruleForm')"
:disabled="disabledFlag>0"
v-loading.fullscreen.lock="fullscreenLoading">填报项目信息
v-loading.fullscreen.lock="fullscreenLoading">提交
</el-button>
<el-button type="primary" style="width: 48%" plain @click="handleCancel"
:disabled="disabledFlag>0"
......@@ -662,11 +662,16 @@
},
//删除
handleRemovePic(data,index,value) {
if(data.fileList.length>1){
data.fileList.forEach((item,index)=>{
if(item.uid==value.uid){
data.fileList.splice(index,1);
}
})
}else{
data.fileList = [];
}
this.ruleForm[data.fieldValue+index].forEach((item,index)=>{
if(item==value.response.result.fileUpload){
this.ruleForm[data.fieldValue+index].splice(index,1);
......@@ -912,6 +917,7 @@
enterId:this.$route.query.id
};
this.detailInfoList.forEach((data,index)=>{
this.$set(resultObj.baseModuleEnterList,index-1,{'moduleId':data.moduleId,activityId:this.$route.query.aid})
data.fieldList.forEach((item,itemInd)=>{
if(item.fieldType==1||item.fieldType==8){
......
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