|
|
@@ -152,6 +152,8 @@
|
|
|
import Layer from '@/components/layer/index.vue'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import { getUserList, riskBannedUser, riskLockUser, appUserEcpm } from '@/api/userModule.js'
|
|
|
+ import { ditchList } from '@/api/outBagModule.js'
|
|
|
+ import { appList } from "@/api/formworkErection.js";
|
|
|
import { riskChangeUserStatus } from '@/api/riskModule.js'
|
|
|
import { convertUTCToBeijing, roundPrice } from '@/utils/index.js'
|
|
|
import { useGetDictList } from '@/hooks/useGetDictList.js'
|
|
|
@@ -178,7 +180,8 @@
|
|
|
page: 1,// 当前页码
|
|
|
registryTimeBegin: undefined,// 注册时间
|
|
|
registryTimeEnd: undefined,// 注册时间
|
|
|
- userStatus: undefined,// 用户类型
|
|
|
+ userStatus: 1,// 用户类型
|
|
|
+ appIds: undefined, //所属应用
|
|
|
});
|
|
|
|
|
|
const dynamicFormItems = ref([])
|
|
|
@@ -187,6 +190,7 @@
|
|
|
onBeforeMount(() => {
|
|
|
settingData()
|
|
|
getList();
|
|
|
+ getApiOptions()
|
|
|
});
|
|
|
|
|
|
// 获取缓存数据设置筛选数据
|
|
|
@@ -205,6 +209,12 @@
|
|
|
type: 'input',
|
|
|
needEnterEvent: true
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '所属应用',
|
|
|
+ prop: 'appIds',
|
|
|
+ type: 'select',
|
|
|
+ options: [],
|
|
|
+ },
|
|
|
{
|
|
|
label: '渠道来源',
|
|
|
prop: 'ditchId',
|
|
|
@@ -215,6 +225,7 @@
|
|
|
label: '用户状态',
|
|
|
prop: 'userStatus',
|
|
|
type: 'select',
|
|
|
+ defaultVal: 1,
|
|
|
options: getOptions('user_status'),
|
|
|
},
|
|
|
{ label: '注册时间开始', prop: 'registryTimeBegin', type: 'date' },
|
|
|
@@ -234,6 +245,31 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ //渠道来源
|
|
|
+ const getApiOptions = async() => {
|
|
|
+ let ditchOptions = []
|
|
|
+ let appsOptions = []
|
|
|
+ let res = await ditchList({page:1,limit:9999})
|
|
|
+ res.data.map((item)=>{
|
|
|
+ ditchOptions.push({
|
|
|
+ label: item.ditchName,
|
|
|
+ value: item.ditchId
|
|
|
+ })
|
|
|
+ })
|
|
|
+ dynamicFormItems.value[3].options = ditchOptions
|
|
|
+
|
|
|
+
|
|
|
+ let app = await appList({page:1,limit:9999})
|
|
|
+ app.data.map((item)=>{
|
|
|
+ appsOptions.push({
|
|
|
+ label: item.appName,
|
|
|
+ value: item.appId
|
|
|
+ })
|
|
|
+ })
|
|
|
+ dynamicFormItems.value[2].options = appsOptions
|
|
|
+ }
|
|
|
+
|
|
|
// 分页数据
|
|
|
const getList = async () => {
|
|
|
let res = await getUserList({ ...formSearch.value });
|
|
|
@@ -241,14 +277,12 @@
|
|
|
page.total = res.pageMeta.total;
|
|
|
};
|
|
|
|
|
|
- const changeTableData = () => {
|
|
|
- formSearch.value.page = page.pageNum;
|
|
|
+ const changeTableData = (type) => {
|
|
|
+ formSearch.value.page = type ? 1 : page.pageNum;
|
|
|
formSearch.value.limit = page.pageSize;
|
|
|
-
|
|
|
- console.log('page',page)
|
|
|
// 分页切换
|
|
|
getList();
|
|
|
- };
|
|
|
+};
|
|
|
|
|
|
// 搜索
|
|
|
const handleFormSubmitted = (formData) => {
|
|
|
@@ -259,6 +293,7 @@
|
|
|
formSearch.value.userId = formData.userId;
|
|
|
formSearch.value.ditchId = formData.ditchId;
|
|
|
formSearch.value.userStatus = formData.userStatus;
|
|
|
+ formSearch.value.appIds = formData.appIds;
|
|
|
formSearch.value.registryTimeBegin = formData.registryTimeBegin || null
|
|
|
formSearch.value.registryTimeEnd = formData.registryTimeEnd || null
|
|
|
|
|
|
@@ -277,6 +312,7 @@
|
|
|
page: 1,// 当前页码
|
|
|
registryTime: undefined,// 注册时间
|
|
|
userType: undefined,// 用户类型
|
|
|
+ appIds: undefined, //所属应用
|
|
|
};
|
|
|
getList();
|
|
|
};
|