commit
This commit is contained in:
@@ -288,10 +288,15 @@
|
|||||||
<el-input
|
<el-input
|
||||||
clearable
|
clearable
|
||||||
v-model="addForm.unitName"
|
v-model="addForm.unitName"
|
||||||
placeholder="请选择起草责任单位"
|
readonly>
|
||||||
readonly
|
|
||||||
@click.native="choiceZRBM(addForm.unit)">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- v-model="addForm.unitName"-->
|
||||||
|
<!-- placeholder="请选择起草责任单位"-->
|
||||||
|
<!-- readonly-->
|
||||||
|
<!-- @click.native="choiceZRBM(addForm.unit)">-->
|
||||||
|
<!-- </el-input>-->
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="drafter" label="起草人" style="width: 100%; margin-right:10px" class="add-form-item" :class="DrawerType === 'see' ? 'form-item-disabled' : ''">
|
<el-form-item prop="drafter" label="起草人" style="width: 100%; margin-right:10px" class="add-form-item" :class="DrawerType === 'see' ? 'form-item-disabled' : ''">
|
||||||
@@ -834,11 +839,6 @@
|
|||||||
this.addForm.unit = list
|
this.addForm.unit = list
|
||||||
this.addForm.unitName = listName
|
this.addForm.unitName = listName
|
||||||
this.modalshowflagZRBM = false
|
this.modalshowflagZRBM = false
|
||||||
this.$http.get('SarInstitution/institution/getInstitutionIdToDept', {
|
|
||||||
institutionIds: list
|
|
||||||
}, {}, res => {
|
|
||||||
console.log(res);
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
choiceZRBM(id) {
|
choiceZRBM(id) {
|
||||||
if (this.DrawerType === 'see') {
|
if (this.DrawerType === 'see') {
|
||||||
@@ -891,15 +891,22 @@
|
|||||||
this.modalshowflag2 = true
|
this.modalshowflag2 = true
|
||||||
},
|
},
|
||||||
checkedRole2 (data) {
|
checkedRole2 (data) {
|
||||||
var idList = ''
|
console.log(data);
|
||||||
var nameList = ''
|
let idList = ''
|
||||||
|
let nameList = ''
|
||||||
|
let bmIdList = ''
|
||||||
|
let bmNameList = ''
|
||||||
data.forEach( item => {
|
data.forEach( item => {
|
||||||
if (nameList.length > 0) {
|
if (nameList.length > 0) {
|
||||||
nameList += ','
|
nameList += ','
|
||||||
idList += ','
|
idList += ','
|
||||||
|
bmIdList += ','
|
||||||
|
bmNameList += ','
|
||||||
}
|
}
|
||||||
idList += item.id
|
idList += item.id
|
||||||
nameList += item.name
|
nameList += item.name
|
||||||
|
bmIdList += item.institutionId
|
||||||
|
bmNameList += item.institutionName
|
||||||
})
|
})
|
||||||
if (this.type === 'resPerson') {
|
if (this.type === 'resPerson') {
|
||||||
this.addForm.resPerson = idList
|
this.addForm.resPerson = idList
|
||||||
@@ -907,6 +914,8 @@
|
|||||||
} else if (this.type === 'drafter') {
|
} else if (this.type === 'drafter') {
|
||||||
this.addForm.drafter = idList
|
this.addForm.drafter = idList
|
||||||
this.addForm.drafterName = nameList
|
this.addForm.drafterName = nameList
|
||||||
|
this.addForm.unitName = bmNameList
|
||||||
|
this.addForm.unit = bmIdList
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addDrawerSubmit () {
|
addDrawerSubmit () {
|
||||||
|
|||||||
Reference in New Issue
Block a user