|
@@ -31,9 +31,9 @@
|
|
<mySelectTree style="width:100%" v-model="ruleForm.departmentId" :options="departmentList"></mySelectTree>
|
|
<mySelectTree style="width:100%" v-model="ruleForm.departmentId" :options="departmentList"></mySelectTree>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="负责人" prop="person">
|
|
<el-form-item label="负责人" prop="person">
|
|
- <el-select style="width:100%" v-model.number="ruleForm.headId" filterable remote clearable placeholder="请选择"
|
|
|
|
|
|
+ <el-select style="width:100%" v-model="ruleForm.headId" filterable remote clearable placeholder="请选择"
|
|
:loading="personnelList.loading" v-SelectLazyLoading="loadHead" :remote-method="remoteMethod">
|
|
:loading="personnelList.loading" v-SelectLazyLoading="loadHead" :remote-method="remoteMethod">
|
|
- <el-option v-for="item in personnelList.data" :key="item.id" :label="item.name" :value="parseInt(item.id)">
|
|
|
|
|
|
+ <el-option v-for="item in personnelList.data" :key="item.id" :label="item.name" :value="item.id">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -292,7 +292,7 @@ export default {
|
|
//获取产品架构集合
|
|
//获取产品架构集合
|
|
getFramework(){
|
|
getFramework(){
|
|
let params = {
|
|
let params = {
|
|
- type: this.ruleForm.products.treeType,//类型:1产品类别,2产品,3技术分类,4自定义树
|
|
|
|
|
|
+ type: this.ruleForm.products.treeType == 3?1:this.ruleForm.products.treeType,//类型:1产品类别,2产品,3技术分类,4自定义树
|
|
typeId: this.ruleForm.products.fieldId,//产品或类别id
|
|
typeId: this.ruleForm.products.fieldId,//产品或类别id
|
|
}
|
|
}
|
|
this.$api.queryTreeNodeTree(params).then(res => {
|
|
this.$api.queryTreeNodeTree(params).then(res => {
|
|
@@ -350,7 +350,6 @@ export default {
|
|
|
|
|
|
this.personnelList.data = []
|
|
this.personnelList.data = []
|
|
this.personnelList.queryParams.name = ''
|
|
this.personnelList.queryParams.name = ''
|
|
- console.log(this.ruleForm)
|
|
|
|
if(this.ruleForm.headId){
|
|
if(this.ruleForm.headId){
|
|
this.personnelList.queryParams.id = this.ruleForm.headId
|
|
this.personnelList.queryParams.id = this.ruleForm.headId
|
|
await this.getPersonnelList(1)
|
|
await this.getPersonnelList(1)
|
|
@@ -363,6 +362,9 @@ export default {
|
|
this.ruleForm.updateTime = this.getType(this.ruleForm.crons)
|
|
this.ruleForm.updateTime = this.getType(this.ruleForm.crons)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if(this.ruleForm.products){
|
|
|
|
+ this.getFramework()
|
|
|
|
+ }
|
|
this.title = title
|
|
this.title = title
|
|
this.drawer = true
|
|
this.drawer = true
|
|
},
|
|
},
|
|
@@ -578,7 +580,11 @@ export default {
|
|
this.show = false
|
|
this.show = false
|
|
this.loading = true
|
|
this.loading = true
|
|
this.ruleForm.trees = []
|
|
this.ruleForm.trees = []
|
|
|
|
+
|
|
if(this.ruleForm.products){
|
|
if(this.ruleForm.products){
|
|
|
|
+ if(this.ruleForm.structureId){
|
|
|
|
+ this.ruleForm.products.valueIds.push(this.ruleForm.structureId)
|
|
|
|
+ }
|
|
this.ruleForm.trees.push(this.ruleForm.products)
|
|
this.ruleForm.trees.push(this.ruleForm.products)
|
|
}
|
|
}
|
|
var scenarioIds = JSON.parse(JSON.stringify(this.ruleForm.scenarioIds))
|
|
var scenarioIds = JSON.parse(JSON.stringify(this.ruleForm.scenarioIds))
|