This commit is contained in:
zhutianqi
2022-01-11 17:12:22 +08:00
parent b1c616ff5a
commit 3b01c76163
@@ -288,10 +288,15 @@
<el-input
clearable
v-model="addForm.unitName"
placeholder="请选择起草责任单位"
readonly
@click.native="choiceZRBM(addForm.unit)">
readonly>
</el-input>
<!-- <el-input-->
<!-- clearable-->
<!-- v-model="addForm.unitName"-->
<!-- placeholder="请选择起草责任单位"-->
<!-- readonly-->
<!-- @click.native="choiceZRBM(addForm.unit)">-->
<!-- </el-input>-->
</div>
</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' : ''">
@@ -834,11 +839,6 @@
this.addForm.unit = list
this.addForm.unitName = listName
this.modalshowflagZRBM = false
this.$http.get('SarInstitution/institution/getInstitutionIdToDept', {
institutionIds: list
}, {}, res => {
console.log(res);
})
},
choiceZRBM(id) {
if (this.DrawerType === 'see') {
@@ -891,15 +891,22 @@
this.modalshowflag2 = true
},
checkedRole2 (data) {
var idList = ''
var nameList = ''
console.log(data);
let idList = ''
let nameList = ''
let bmIdList = ''
let bmNameList = ''
data.forEach( item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
bmIdList += ','
bmNameList += ','
}
idList += item.id
nameList += item.name
bmIdList += item.institutionId
bmNameList += item.institutionName
})
if (this.type === 'resPerson') {
this.addForm.resPerson = idList
@@ -907,6 +914,8 @@
} else if (this.type === 'drafter') {
this.addForm.drafter = idList
this.addForm.drafterName = nameList
this.addForm.unitName = bmNameList
this.addForm.unit = bmIdList
}
},
addDrawerSubmit () {