国内外标准库 - 编辑 - 选人组件完善
This commit is contained in:
@@ -735,14 +735,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-if="field.attrField === 'WSSMR'">
|
||||
@@ -752,14 +754,16 @@
|
||||
class="add-form-item"
|
||||
>
|
||||
<template slot="label">我司署名人</template>
|
||||
<el-input
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
clearable
|
||||
v-model="sarStandardsInfoEO['WSSMR']"
|
||||
:disabled="formdisableflag" placeholder="选择我司署名人"
|
||||
@click.native="choiceRole('WSSMRUserId', '我司署名人', sarStandardsInfoEO.WSSMRUserId)">
|
||||
<el-input v-model="sarStandardsInfoEO['WSSMR']" placeholder="选择我司署名人" @click.native="choiceZRRS('wssmr', '选择我司署名人', sarStandardsInfoEO['WSSMR'])">
|
||||
</el-input>
|
||||
<!-- <el-input-->
|
||||
<!-- :key="field.attrField"-->
|
||||
<!-- :config="field"-->
|
||||
<!-- clearable-->
|
||||
<!-- v-model="sarStandardsInfoEO['WSSMR']"-->
|
||||
<!-- :disabled="formdisableflag" placeholder="选择我司署名人"-->
|
||||
<!-- @click.native="choiceRole('WSSMRUserId', '我司署名人', sarStandardsInfoEO.WSSMRUserId)">-->
|
||||
<!-- </el-input>-->
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else>
|
||||
@@ -1819,6 +1823,12 @@
|
||||
@confirm="isTreeOk"
|
||||
></org-table>
|
||||
<loading style="z-index: 2099;" :loading="importLoading">导入中...</loading>
|
||||
<Role-tree
|
||||
:is-title="drawerTitle"
|
||||
:is-visible.sync="modalShowRoleFlag"
|
||||
@checkedRole="checkedRole2"
|
||||
:nodeList="nodeList2"
|
||||
></Role-tree>
|
||||
<Role-tree
|
||||
is-title="选择人员信息"
|
||||
:is-visible.sync="modalshowflagRole"
|
||||
@@ -1944,7 +1954,9 @@ export default {
|
||||
OCRModel: false,
|
||||
ocrList: [],
|
||||
nodeList: [],
|
||||
nodeList2: [],
|
||||
nodeListZRBM: [],
|
||||
modalShowRoleFlag: false,
|
||||
modalshowflagRole: false,
|
||||
modalshowflagZRBM: false,
|
||||
filterText: '', // 国内法规过滤
|
||||
@@ -5315,6 +5327,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
|
||||
}
|
||||
|
||||
},
|
||||
choiceRole(type, title, id) {
|
||||
this.nodeList = []
|
||||
this.nodeList.push(id)
|
||||
|
||||
Reference in New Issue
Block a user