|
|
@@ -16,44 +16,58 @@
|
|
|
:model="formState">
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="12">
|
|
|
- <a-form-item label="登录账号"
|
|
|
+ <a-form-item label="所属用户"
|
|
|
name="">
|
|
|
- <span class="white">{{formState.accountname}}</span>
|
|
|
+ <span class="white">{{rolename}}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="账户名称"
|
|
|
- name="">
|
|
|
- <span class="white">{{formState.logincode}}</span>
|
|
|
+ name="logincode">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.logincode"
|
|
|
+ placeholder="请输入账户名称" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="登录账号"
|
|
|
+ name="accountname">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.accountname"
|
|
|
+ placeholder="请输入登录账号" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="登录密码"
|
|
|
- name="">
|
|
|
+ name="password">
|
|
|
<a-input-password class="dialogInput"
|
|
|
style="width: 200px"
|
|
|
- value="2323423"
|
|
|
v-model:value="formState.password"
|
|
|
- readonly />
|
|
|
+ placeholder="请输入登录密码" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :span="12">
|
|
|
+ <a-col :span="24">
|
|
|
<a-form-item label="手机号码"
|
|
|
- name="">
|
|
|
- <span class="white">{{formState.mobile}}</span>
|
|
|
+ name="mobile">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ v-model:value="formState.mobile"
|
|
|
+ style="width: 200px"
|
|
|
+ placeholder="请输入手机号码" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
|
- <a-form-item label="账户角色"
|
|
|
- name="userinfotype">
|
|
|
+ <a-form-item label="授权期货账户"
|
|
|
+ class="checkboxGroupItem"
|
|
|
+ name="logintaaccounts">
|
|
|
<a-checkbox-group class="commonCheckboxGroup"
|
|
|
- v-model:value="formState.roleids">
|
|
|
+ v-model:value="formState.logintaaccounts">
|
|
|
<a-row>
|
|
|
- <a-col :span="12">
|
|
|
- <a-checkbox :value="22">业务员</a-checkbox>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-checkbox :value="23">跟单员</a-checkbox>
|
|
|
+ <a-col :span="12"
|
|
|
+ v-for="(item, index) in accountList"
|
|
|
+ :key="index">
|
|
|
+ <a-checkbox :value="item.accountid">{{item.accountname}}/{{item.accountid}}</a-checkbox>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</a-checkbox-group>
|
|
|
@@ -65,27 +79,39 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, PropType, watchEffect } from 'vue';
|
|
|
+import { defineComponent, PropType, ref, watchEffect } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { mergeTwoObj } from '@/utils/objHandle';
|
|
|
import { handleBusinessForm } from '../setup';
|
|
|
-import { ErmcpLoginUser } from '@/services/go/ermcp/account/interface';
|
|
|
+import { ErmcpLoginUser, ErmcpLoginUserEx } from '@/services/go/ermcp/account/interface';
|
|
|
|
|
|
export default defineComponent({
|
|
|
- name: 'business-detail',
|
|
|
+ name: 'trader-detail',
|
|
|
components: {},
|
|
|
props: {
|
|
|
selectedData: {
|
|
|
type: Object as PropType<ErmcpLoginUser>,
|
|
|
default: {},
|
|
|
},
|
|
|
+ tableList: {
|
|
|
+ type: Array as PropType<ErmcpLoginUserEx[]>,
|
|
|
+ default: [],
|
|
|
+ },
|
|
|
},
|
|
|
setup(props) {
|
|
|
const { visible, cancel } = closeModal('detail');
|
|
|
const { formState } = handleBusinessForm();
|
|
|
+ const rolename = ref<string>('');
|
|
|
watchEffect(() => {
|
|
|
if (visible.value) {
|
|
|
mergeTwoObj(formState, props.selectedData);
|
|
|
+ props.tableList.forEach((el) => {
|
|
|
+ el.userlist.forEach((item) => {
|
|
|
+ if (item.loginid === props.selectedData.loginid) {
|
|
|
+ rolename.value = el.rolename;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
return {
|
|
|
@@ -93,6 +119,7 @@ export default defineComponent({
|
|
|
cancel,
|
|
|
formState,
|
|
|
maskClosableFlag: false,
|
|
|
+ rolename,
|
|
|
};
|
|
|
},
|
|
|
});
|