|
@ -57,35 +57,35 @@ export default { |
|
|
options: [] |
|
|
options: [] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
// { |
|
|
label: "机构类型:", |
|
|
// label: "机构类型2233:", |
|
|
key: "organizationType", |
|
|
// key: "organizationType", |
|
|
required: true, |
|
|
// required: true, |
|
|
type: 'select', |
|
|
// type: 'select', |
|
|
ons: { |
|
|
// ons: { |
|
|
change: (value, { data }) => { |
|
|
// change: (value, { data }) => { |
|
|
if (value == 1) { |
|
|
// if (value == 1) { |
|
|
data.parentId = null; |
|
|
// data.parentId = null; |
|
|
} |
|
|
// } |
|
|
|
|
|
|
|
|
this.formList[0].options.options.forEach((item, index) => { |
|
|
// this.formList[0].options.options.forEach((item, index) => { |
|
|
item.disabled = value == 1 |
|
|
// item.disabled = value == 1 |
|
|
}) |
|
|
// }) |
|
|
} |
|
|
// } |
|
|
}, |
|
|
// }, |
|
|
options: { |
|
|
// options: { |
|
|
options: [ |
|
|
// options: [ |
|
|
{ |
|
|
// { |
|
|
key: 1, |
|
|
// key: 1, |
|
|
label: "路管中心" |
|
|
// label: "路管中心" |
|
|
}, |
|
|
// }, |
|
|
{ |
|
|
// { |
|
|
key: 2, |
|
|
// key: 2, |
|
|
label: "驻点" |
|
|
// label: "驻点" |
|
|
}, |
|
|
// }, |
|
|
] |
|
|
// ] |
|
|
} |
|
|
// } |
|
|
}, |
|
|
// }, |
|
|
{ |
|
|
{ |
|
|
label: "机构名称:", |
|
|
label: "机构名称:", |
|
|
key: "organizationName", |
|
|
key: "organizationName", |
|
@ -199,7 +199,11 @@ export default { |
|
|
if (this.data) data.id = this.data.dcOrganizations.id; |
|
|
if (this.data) data.id = this.data.dcOrganizations.id; |
|
|
|
|
|
|
|
|
if (typeof data.parentId != 'number') data.parentId = 0; |
|
|
if (typeof data.parentId != 'number') data.parentId = 0; |
|
|
if (data.stakeMark[0]) data.stakeMark = `K${data.stakeMark[0]}+${data.stakeMark[1]}`; |
|
|
if (data.stakeMark[0]) { |
|
|
|
|
|
data.stakeMark = `K${data.stakeMark[0]}+${data.stakeMark[1]}` |
|
|
|
|
|
}else{ |
|
|
|
|
|
data.stakeMark = '' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
request({ |
|
|
request({ |
|
|
url: `/business/organization`, |
|
|
url: `/business/organization`, |
|
|