|
@@ -23,6 +23,7 @@ export default {
|
|
|
title: null,
|
|
|
tag: null,
|
|
|
organizationNo: null,
|
|
|
+ organizationName: null,
|
|
|
postNames: [],
|
|
|
rewriteType: 0
|
|
|
},
|
|
@@ -58,6 +59,7 @@ export default {
|
|
|
prop: 'organizationNo',
|
|
|
type: 'cascader',
|
|
|
options: {
|
|
|
+ ref: 'organizationNo',
|
|
|
filterable: true,
|
|
|
clearable: true,
|
|
|
placeholder: '请选择机构',
|
|
@@ -102,6 +104,7 @@ export default {
|
|
|
this.formQuery.title = item?.title ?? null
|
|
|
this.formQuery.tag = item?.tag ?? null
|
|
|
this.formQuery.organizationNo = item?.organizationNo ?? null
|
|
|
+ this.formQuery.organizationName = item?.organizationName ?? null
|
|
|
this.formQuery.postNames = []
|
|
|
this.itemData = {}
|
|
|
this.$nextTick(() => {
|
|
@@ -125,6 +128,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async onchange (organizationNo) {
|
|
|
+ const nodes = this.$refs.form.$refs.organizationNo.getCheckedNodes()
|
|
|
+ this.formQuery.organizationName = nodes[0].data.organizationName
|
|
|
this.formQuery.postNames = []
|
|
|
if (!organizationNo) {
|
|
|
return
|