|
@@ -1,11 +1,10 @@
|
|
|
import { Column, ColumnType } from '@/common/setup/table/index';
|
|
import { Column, ColumnType } from '@/common/setup/table/index';
|
|
|
import { getItemEnum } from '@/services/bus/allEnum';
|
|
import { getItemEnum } from '@/services/bus/allEnum';
|
|
|
import { QueryAccMgrLoginUser } from '@/services/go/ermcp/account';
|
|
import { QueryAccMgrLoginUser } from '@/services/go/ermcp/account';
|
|
|
-import { ErmcpLoginUser } from '@/services/go/ermcp/account/interface';
|
|
|
|
|
|
|
+import { ErmcpLoginUser, ErmcpLoginUserEx } from '@/services/go/ermcp/account/interface';
|
|
|
import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
|
|
import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
|
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
|
import { ref } from 'vue';
|
|
import { ref } from 'vue';
|
|
|
-import { Value } from './interface';
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 处理 /账号列表: 交易用户 业务员 跟单员
|
|
* 处理 /账号列表: 交易用户 业务员 跟单员
|
|
@@ -13,19 +12,20 @@ import { Value } from './interface';
|
|
|
*/
|
|
*/
|
|
|
export function handleAccountManager() {
|
|
export function handleAccountManager() {
|
|
|
// 交易用户
|
|
// 交易用户
|
|
|
- const traderList = ref<Value[]>([])
|
|
|
|
|
|
|
+ const traderList = ref<ErmcpLoginUserEx[]>([])
|
|
|
function getRoleList() {
|
|
function getRoleList() {
|
|
|
QueryAccMgrLoginUser(2).then(res => {
|
|
QueryAccMgrLoginUser(2).then(res => {
|
|
|
const set = new Set<number>([])
|
|
const set = new Set<number>([])
|
|
|
traderList.value.length = 0;
|
|
traderList.value.length = 0;
|
|
|
res.forEach(e => {
|
|
res.forEach(e => {
|
|
|
const { roleid, rolename, accountstatus } = e;
|
|
const { roleid, rolename, accountstatus } = e;
|
|
|
- if (accountstatus === 4) { // 账户的状态 - 4 正常
|
|
|
|
|
- if (!set.has(roleid)) { // 去重
|
|
|
|
|
- set.add(roleid)
|
|
|
|
|
- traderList.value.push({ id: roleid, name: rolename })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (accountstatus === 4) { // 账户的状态 - 4 正常
|
|
|
|
|
+ if (!set.has(roleid)) { // 去重
|
|
|
|
|
+ set.add(roleid)
|
|
|
|
|
+ // traderList.value.push({ id: roleid, name: rolename })
|
|
|
|
|
+ traderList.value.push(e)
|
|
|
}
|
|
}
|
|
|
|
|
+ // }
|
|
|
})
|
|
})
|
|
|
}).catch(err => message.error(err))
|
|
}).catch(err => message.error(err))
|
|
|
}
|
|
}
|