|
|
@@ -5,10 +5,12 @@
|
|
|
<fieldset class="g-fieldset el-form--horizontal">
|
|
|
<legend class="g-fieldset__legend">机构</legend>
|
|
|
<el-form-item label="机构" prop="userid">
|
|
|
- <app-select-member v-model="formData.userid" />
|
|
|
+ <app-select-member v-model="formData.userid" :placeholder="t('investor.custom.riskcfg.edit.tips1')"
|
|
|
+ :disabled="!!record" @change="onMemberChange"/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="角色权限信息:" prop="userid" >
|
|
|
+ <el-form-item label="角色权限信息:" prop="userid" v-if="!record" >
|
|
|
<el-button @click="openComponent('Roles')">查看</el-button>
|
|
|
+ <span>{{ organSelect?.accountname }}</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="客户类别" prop="customertype">
|
|
|
<el-select v-model="formData.customertype" :placeholder="t('common.pleasechoice')">
|
|
|
@@ -52,6 +54,7 @@ const { global: { t } } = i18n
|
|
|
const formRef = ref<FormInstance>()
|
|
|
const show = shallowRef(true)
|
|
|
const refresh = shallowRef(false)
|
|
|
+const organSelect = ref<Model.OrganSelectRsp>()
|
|
|
|
|
|
const { data, loading } = useRequest(initAdd, {
|
|
|
params: {
|
|
|
@@ -90,6 +93,10 @@ const onSubmit = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+const onMemberChange = (item?: Model.OrganSelectRsp) => {
|
|
|
+ organSelect.value = item
|
|
|
+}
|
|
|
+
|
|
|
const onCancel = (isRefresh = false) => {
|
|
|
show.value = false
|
|
|
refresh.value = isRefresh
|