Handy_Cao 7 mēneši atpakaļ
vecāks
revīzija
0c7e9db434

+ 9 - 2
src/packages/pc/views/member/institution/broker/components/edit/index.vue

@@ -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="userid">
                     <app-select-member2 v-model="formData.userid" />
@@ -58,6 +60,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: {
@@ -96,6 +99,10 @@ const onSubmit = () => {
     })
 }
 
+const onMemberChange = (item?: Model.OrganSelectRsp) => {
+    organSelect.value = item
+}
+
 const onCancel = (isRefresh = false) => {
     show.value = false
     refresh.value = isRefresh

+ 9 - 2
src/packages/pc/views/member/institution/industry/components/edit/index.vue

@@ -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>
             </fieldset>
             <fieldset class="g-fieldset el-form--vertical">
@@ -43,6 +45,7 @@ const { global: { t } } = i18n
 const formRef = ref<FormInstance>()
 const show = shallowRef(true)
 const refresh = shallowRef(false)
+const organSelect = ref<Model.OrganSelectRsp>()
 
 const props = defineProps({
     record: {
@@ -92,6 +95,10 @@ const onSubmit = () => {
     })
 }
 
+const onMemberChange = (item?: Model.OrganSelectRsp) => {
+    organSelect.value = item
+}
+
 const onCancel = (isRefresh = false) => {
     show.value = false
     refresh.value = isRefresh

+ 9 - 2
src/packages/pc/views/member/institution/marketer/components/edit/index.vue

@@ -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

+ 9 - 2
src/packages/pc/views/member/institution/marketing/components/edit/index.vue

@@ -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>
             </fieldset>
         </el-form>
@@ -45,6 +47,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: {
@@ -83,6 +86,10 @@ const onSubmit = () => {
     })
 }
 
+const onMemberChange = (item?: Model.OrganSelectRsp) => {
+    organSelect.value = item
+}
+
 const onCancel = (isRefresh = false) => {
     show.value = false
     refresh.value = isRefresh

+ 9 - 2
src/packages/pc/views/member/institution/operation/components/edit/index.vue

@@ -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>
             </fieldset>
             <fieldset class="g-fieldset el-form--vertical">
@@ -54,6 +56,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: {
@@ -93,6 +96,10 @@ const onSubmit = () => {
     })
 }
 
+const onMemberChange = (item?: Model.OrganSelectRsp) => {
+    organSelect.value = item
+}
+
 const onCancel = (isRefresh = false) => {
     show.value = false
     refresh.value = isRefresh

+ 2 - 2
src/packages/pc/views/member/institution/operation/components/modify/index.vue

@@ -5,9 +5,9 @@
             <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"/>
                 </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>
                 </el-form-item>
             </fieldset>

+ 9 - 2
src/packages/pc/views/member/institution/self/components/edit/index.vue

@@ -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>
             </fieldset>
             <fieldset class="g-fieldset el-form--vertical">
@@ -54,6 +56,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: {
@@ -92,6 +95,10 @@ const onSubmit = () => {
     })
 }
 
+const onMemberChange = (item?: Model.OrganSelectRsp) => {
+    organSelect.value = item
+}
+
 const onCancel = (isRefresh = false) => {
     show.value = false
     refresh.value = isRefresh

+ 9 - 2
src/packages/pc/views/member/institution/warehouse/components/edit/index.vue

@@ -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>
             </fieldset>
         </el-form>
@@ -45,6 +47,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: {
@@ -83,6 +86,10 @@ const onSubmit = () => {
     })
 }
 
+const onMemberChange = (item?: Model.OrganSelectRsp) => {
+    organSelect.value = item
+}
+
 const onCancel = (isRefresh = false) => {
     show.value = false
     refresh.value = isRefresh