|
@@ -86,7 +86,7 @@
|
|
|
<el-checkbox-group v-if="!readonly" v-model="checkRoleList">
|
|
<el-checkbox-group v-if="!readonly" v-model="checkRoleList">
|
|
|
<el-checkbox v-for="item in roleList" :key="item.id" :label="item.id">{{ item.name }}</el-checkbox>
|
|
<el-checkbox v-for="item in roleList" :key="item.id" :label="item.id">{{ item.name }}</el-checkbox>
|
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
|
- <span v-else>{{ bpmAgent.roleName }}</span>
|
|
|
|
|
|
|
+ <span v-else>{{ getWeiTuoName(checkRoleList,roleList) }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -478,7 +478,6 @@ export default {
|
|
|
this.bpmAgent = response.data
|
|
this.bpmAgent = response.data
|
|
|
this.checkRoleList = response.data.bpmAgentRoleList || []
|
|
this.checkRoleList = response.data.bpmAgentRoleList || []
|
|
|
// this.bpmAgent.bpmAgentRoleList = response.data.bpmAgentRoleList || []
|
|
// this.bpmAgent.bpmAgentRoleList = response.data.bpmAgentRoleList || []
|
|
|
- console.log(this.bpmAgent)
|
|
|
|
|
this.formValidate()
|
|
this.formValidate()
|
|
|
this.dialogLoading = false
|
|
this.dialogLoading = false
|
|
|
})
|
|
})
|
|
@@ -594,6 +593,14 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ getWeiTuoName (data, list) {
|
|
|
|
|
+ const nameList = list.map((item) => {
|
|
|
|
|
+ if (data.includes(item.id)) {
|
|
|
|
|
+ return item.name
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ return nameList.join(',')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|