|
@@ -4,18 +4,19 @@ import { h } from 'vue';
|
|
|
import { FormSchema } from '/@/components/Form/index';
|
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
const { t } = useI18n();
|
|
|
-export const columnsDown: BasicColumn[] = [
|
|
|
+import { dincrementList } from '/@/api/equity'
|
|
|
+ export const columnsDown: BasicColumn[] = [
|
|
|
{
|
|
|
- title: '用户账号',
|
|
|
+ title: t('routes.equity.count'),
|
|
|
dataIndex: 'userName',
|
|
|
},
|
|
|
{
|
|
|
- title: '下载次数',
|
|
|
+ title: t('routes.equity.dowmCount'),
|
|
|
dataIndex: 'count',
|
|
|
// slots: { customRender: 'orderStatus' },
|
|
|
},
|
|
|
{
|
|
|
- title: '下载次数',
|
|
|
+ title: t('routes.equity.timeList'),
|
|
|
dataIndex: 'createTime',
|
|
|
// slots: { customRender: 'orderStatus' },
|
|
|
},
|
|
@@ -111,25 +112,25 @@ export const searchForm: Partial<FormProps> = {
|
|
|
},
|
|
|
{
|
|
|
field: 'incrementTypeId',
|
|
|
- component: 'Select',
|
|
|
+ component: 'ApiSelect',
|
|
|
label: t('routes.equity.Type'),
|
|
|
colProps: {
|
|
|
xl: 6,
|
|
|
xxl: 6,
|
|
|
},
|
|
|
componentProps: {
|
|
|
- options: [
|
|
|
- {
|
|
|
- label: t('routes.equity.equityType.0'),
|
|
|
- value: 0,
|
|
|
- key: '0',
|
|
|
- },{
|
|
|
- label: t('routes.equity.equityType.1'),
|
|
|
- value: 1,
|
|
|
- key: '1',
|
|
|
- }
|
|
|
- ],
|
|
|
- },
|
|
|
+ maxLength: 50,
|
|
|
+ api: async function () {
|
|
|
+ const list = await dincrementList();
|
|
|
+ return list.map(ele => {
|
|
|
+ return {name:t(`routes.finance.equityType.${ele.id}`),value:ele.id}
|
|
|
+ });
|
|
|
+ },
|
|
|
+ numberToString: true,
|
|
|
+ labelField: 'name',
|
|
|
+ valueField: 'value',
|
|
|
+ immediate: true,
|
|
|
+ },
|
|
|
},
|
|
|
],
|
|
|
};
|