Commit 1c4f2361 authored by xiongjinke's avatar xiongjinke

修改

parent 1f742afe
...@@ -76,9 +76,9 @@ ...@@ -76,9 +76,9 @@
</el-form-item> </el-form-item>
</div> </div>
<div class="elcol"> <div class="elcol">
<el-form-item label="项目类型:" prop="projectType"> <el-form-item label="项目类别:" prop="projectCategory">
<el-select v-model="addParam.projectType" style="width: 175px" class="form-content-width" placeholder="请选择项目类型"> <el-select v-model="addParam.projectCategory" style="width: 175px" class="form-content-width" placeholder="请选择项目类别">
<el-option v-for="(item, index) in projectType" :key="index" :label="item.dictLabel" :value="item.dictValue" /> <el-option v-for="(item, index) in projectCategory" :key="index" :label="item.dictLabel" :value="item.dictValue" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
...@@ -86,9 +86,9 @@ ...@@ -86,9 +86,9 @@
<div class="erow"> <div class="erow">
<div class="elcol"> <div class="elcol">
<el-form-item label="项目类别:" prop="projectCategory"> <el-form-item label="项目状态:" prop="status">
<el-select v-model="addParam.projectCategory" style="width: 175px" class="form-content-width" placeholder="请选择项目类别"> <el-select v-model="addParam.status" style="width: 175px" class="form-content-width" placeholder="请选择项目状态">
<el-option v-for="(item, index) in projectCategory" :key="index" :label="item.dictLabel" :value="item.dictValue" /> <el-option v-for="(item, index) in status" :key="index" :label="item.dictLabel" :value="item.dictValue" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
...@@ -188,6 +188,7 @@ export default { ...@@ -188,6 +188,7 @@ export default {
projectStage:'', projectStage:'',
projectCategory:'', projectCategory:'',
investmentAmount:'', investmentAmount:'',
status:'',
isPrivate:0, isPrivate:0,
customerId:'', customerId:'',
}, },
...@@ -202,6 +203,7 @@ export default { ...@@ -202,6 +203,7 @@ export default {
projectStage:[], //项目阶段 projectStage:[], //项目阶段
projectType:[], //项目类型 projectType:[], //项目类型
projectCategory:[], //项目类别 projectCategory:[], //项目类别
status:[], //项目状态
isPrivate:[ isPrivate:[
{ {
value: 0, value: 0,
...@@ -342,6 +344,7 @@ export default { ...@@ -342,6 +344,7 @@ export default {
value:res.data[i].dictValue value:res.data[i].dictValue
}) })
} }
this.status = res.data
} }
}) })
}, },
......
...@@ -219,18 +219,20 @@ export default { ...@@ -219,18 +219,20 @@ export default {
}, },
// 判断客户是否关联显示修改 // 判断客户是否关联显示修改
association(id){ association(id){
customerInfo(id).then(res=>{ if(id) {
if(res.code == 200){ customerInfo(id).then(res => {
if(res.data.companyId == this.companyId && res.data.userId == this.$store.state.user.userId){ if (res.code == 200) {
this.customerInfo = res.data if (res.data.companyId == this.companyId && res.data.userId == this.$store.state.user.userId) {
this.customerId = res.data.customerId this.customerInfo = res.data
}else{ this.customerId = res.data.customerId
this.currentPath.pathName = 'overview' } else {
this.currentPath.pathName = 'overview'
}
} }
} }).catch(err => {
}).catch(err=>{ this.currentPath.pathName = 'overview'
this.currentPath.pathName = 'overview' })
}) }
} }
} }
......
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