|
|
@@ -78,6 +78,7 @@ import Card from './components/card/index.vue'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import { riskDeblockingList, riskChangeUserStatus } from '@/api/riskModule.js'
|
|
|
import { convertUTCToBeijing, camelToSnake } from '@/utils/index.js'
|
|
|
+import { ditchList } from '@/api/outBagModule.js'
|
|
|
import { useGetDictList } from '@/hooks/useGetDictList.js'
|
|
|
import { useStore } from 'vuex'
|
|
|
|
|
|
@@ -110,7 +111,7 @@ const dynamicFormItems = ref([])
|
|
|
|
|
|
onBeforeMount(() => {
|
|
|
settingData()
|
|
|
- getList();
|
|
|
+ // getList();
|
|
|
});
|
|
|
|
|
|
// 获取缓存数据设置筛选数据
|
|
|
@@ -143,9 +144,31 @@ const settingData = () => {
|
|
|
},
|
|
|
{ label: '解封时间', prop: 'deblockingTime', type: 'daterange' },
|
|
|
]
|
|
|
+
|
|
|
+ await getApiOptions()
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+// 渠道来源
|
|
|
+const getApiOptions = async () => {
|
|
|
+ try {
|
|
|
+ const { data: ditchData } = await ditchList({ page: 1, limit: 9999 })
|
|
|
+
|
|
|
+ const ditchOptions = ditchData.map(item => ({
|
|
|
+ label: item.ditchName,
|
|
|
+ value: item.ditchId
|
|
|
+ }))
|
|
|
+
|
|
|
+ // 赋值到表单项
|
|
|
+ dynamicFormItems.value[2].options = ditchOptions
|
|
|
+
|
|
|
+ // 获取列表数据
|
|
|
+ getList()
|
|
|
+ } catch (err) {
|
|
|
+ console.error('获取选项失败:', err)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
// 分页数据
|
|
|
const getList = async () => {
|
|
|
let res = await riskDeblockingList({ ...formSearch.value });
|