|
@@ -122,12 +122,12 @@ import type { FormInstance } from 'element-plus';
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
|
import { formatDate } from '@/utils/formatTime';
|
|
|
import { delUser, getBaseData, getCanUseOrgByUser, getRoles, getUserListPaged, restPwd } from '@/api/system/user';
|
|
|
-import { getTelList } from '@/api/public/wex';
|
|
|
import { Splitpanes, Pane } from 'splitpanes';
|
|
|
import 'splitpanes/dist/splitpanes.css';
|
|
|
import { getCallCenterGroupList, getCallCenterList } from '@/api/callCenter';
|
|
|
import { useThemeConfig } from '@/stores/themeConfig';
|
|
|
import { storeToRefs } from 'pinia';
|
|
|
+import { extensionList } from '@/api/tels/extension';
|
|
|
|
|
|
// 引入组件
|
|
|
const UserAdd = defineAsyncComponent(() => import('@/views/system/user/component/User-add.vue')); // 新增用户组件
|
|
@@ -244,7 +244,7 @@ const getTelsListFn = async () => {
|
|
|
if (['ZiGong', 'LuZhou'].includes(themeConfig.value.appScope)) {
|
|
|
[tels, telGroup] = await Promise.all([getCallCenterList(), getCallCenterGroupList()]);
|
|
|
} else if (['YiBin'].includes(themeConfig.value.appScope)) {
|
|
|
- [tels] = await Promise.all([getTelList()]);
|
|
|
+ [tels] = await Promise.all([extensionList({ hasListen: false })]);
|
|
|
tels.result = tels.result.map((item: any) => {
|
|
|
return {
|
|
|
...item,
|