|
@@ -1240,8 +1240,15 @@ export default {
|
|
|
this.dictData = res.data.items
|
|
this.dictData = res.data.items
|
|
|
this.organizeOption = res.data.items['Organizes']
|
|
this.organizeOption = res.data.items['Organizes']
|
|
|
this.orgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
|
|
this.orgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
|
|
|
- this.UnitOrgOptions = res.data.items['UnitOrgList']
|
|
|
|
|
this.UnitOrg = res.data.items['Register'].CheckUnitId
|
|
this.UnitOrg = res.data.items['Register'].CheckUnitId
|
|
|
|
|
+ var item = res.data.items['UnitOrgList'].find(n => n.Id == this.UnitOrg)
|
|
|
|
|
+ var list = res.data.items['UnitOrgList'].filter(n => n.Id != this.UnitOrg)
|
|
|
|
|
+
|
|
|
|
|
+ if (item != null && item != undefined) {
|
|
|
|
|
+ list.unshift(item)
|
|
|
|
|
+ }
|
|
|
|
|
+ this.UnitOrgOptions = list
|
|
|
|
|
+ // this.UnitOrgOptions = res.data.items['UnitOrgList']
|
|
|
this.allorgunitOptions = res.data.items['Allunitorglist']
|
|
this.allorgunitOptions = res.data.items['Allunitorglist']
|
|
|
this.orgunitChange(this.UnitOrg)
|
|
this.orgunitChange(this.UnitOrg)
|
|
|
/* this.UnitRelationOptions = res.data.items['UnitRelation']
|
|
/* this.UnitRelationOptions = res.data.items['UnitRelation']
|