国内外标准库 - 编辑 - 选人组件完善
This commit is contained in:
@@ -1093,14 +1093,16 @@
|
||||
class="add-form-item"
|
||||
>
|
||||
<template slot="label">责任工程师</template>
|
||||
<el-input
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
clearable
|
||||
v-model="sarStandardsInfoEO['ZRGCS']"
|
||||
:disabled="formdisableflag" placeholder="选择责任工程师"
|
||||
@click.native="choiceRole('ZRGCSUserId', '责任工程师', sarStandardsInfoEO.ZRGCSUserId)">
|
||||
<el-input v-model="sarStandardsInfoEO['ZRGCS']" placeholder="选择责任工程师" @click.native="choiceZRRS('zrgcs', '选择责任工程师', sarStandardsInfoEO['ZRGCS'])">
|
||||
</el-input>
|
||||
<!-- <el-input-->
|
||||
<!-- :key="field.attrField"-->
|
||||
<!-- :config="field"-->
|
||||
<!-- clearable-->
|
||||
<!-- v-model="sarStandardsInfoEO['ZRGCS']"-->
|
||||
<!-- :disabled="formdisableflag" placeholder="选择责任工程师"-->
|
||||
<!-- @click.native="choiceRole('ZRGCSUserId', '责任工程师', sarStandardsInfoEO.ZRGCSUserId)">-->
|
||||
<!-- </el-input>-->
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else>
|
||||
@@ -1599,6 +1601,12 @@
|
||||
@confirm="isTreeOk"
|
||||
></org-table>
|
||||
<loading style="z-index: 2099;" :loading="exportLoading">导入中...</loading>
|
||||
<Role-tree
|
||||
:is-title="drawerTitle"
|
||||
:is-visible.sync="modalShowRoleFlag"
|
||||
@checkedRole="checkedRole2"
|
||||
:nodeList="nodeList2"
|
||||
></Role-tree>
|
||||
<Role-tree
|
||||
is-title="选择人员信息"
|
||||
:is-visible.sync="modalshowflagRole"
|
||||
@@ -1667,7 +1675,9 @@ export default {
|
||||
return {
|
||||
// 人员树形和部门树形参数
|
||||
nodeList: [],
|
||||
nodeList2: [],
|
||||
nodeListZRBM: [],
|
||||
modalShowRoleFlag: false,
|
||||
modalshowflagRole: false,
|
||||
modalshowflagZRBM: false,
|
||||
|
||||
@@ -2473,6 +2483,33 @@ export default {
|
||||
this.$set(this.textStatusMap, item.value, item.label)
|
||||
})
|
||||
},
|
||||
choiceZRRS (type, title, id) {
|
||||
console.log('2077',title)
|
||||
this.nodeList = []
|
||||
this.nodeList.push(id)
|
||||
this.userType = type
|
||||
this.drawerTitle = title
|
||||
this.modalShowRoleFlag = true
|
||||
},
|
||||
checkedRole2 (data) {
|
||||
console.log('1712',this.drawerTitle)
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
data.forEach( item => {
|
||||
if (nameList.length > 0) {
|
||||
nameList += ','
|
||||
idList += ','
|
||||
}
|
||||
idList += item.id
|
||||
nameList += item.name
|
||||
})
|
||||
if (this.drawerTitle === '选择我司署名人'){
|
||||
this.sarStandardsInfoEO['WSSMR'] = nameList
|
||||
}else if (this.drawerTitle === '选择责任工程师'){
|
||||
this.sarStandardsInfoEO['ZRGCS'] = nameList
|
||||
}
|
||||
|
||||
},
|
||||
busVsFunc() {
|
||||
this.$http.get('sarVppsTree/list', '', {
|
||||
_this: this
|
||||
|
||||
Reference in New Issue
Block a user