新增前端vue

This commit is contained in:
2025-12-16 18:01:22 +08:00
parent f47e04bf0f
commit 26f4a20b54
4 changed files with 27 additions and 13 deletions

View File

@@ -34,6 +34,8 @@
const { t } = useI18n('biz.listItem');
const { showMessage } = useMessage();
const { meta } = unref(router.currentRoute);
const types = ref<string>('');
const record = ref<BizListItem>({} as BizListItem);
const getTitle = computed(() => ({
@@ -50,6 +52,7 @@
maxlength: 512,
},
required: true,
colProps: { md: 24, lg: 24 },
},
{
label: t('到期时间'),
@@ -67,6 +70,9 @@
componentProps: {
dictType: 'msg_type',
allowClear: true,
onChange: (value: string) => {
types.value = value
}
},
required: true,
},
@@ -78,7 +84,9 @@
componentProps: {
selectType: 'userSelect',
},
ifShow: () => types.value === '3',
required: true,
colProps: { md: 24, lg: 24 },
},
{
label: t('内容信息'),
@@ -101,6 +109,7 @@
const res = await bizListItemForm(data);
record.value = (res.bizListItem || {}) as BizListItem;
record.value.__t = new Date().getTime();
types.value = record.value.type || '';
await setFieldsValue(record.value);
setModalProps({ loading: false });
});

View File

@@ -265,9 +265,9 @@
api: bizListItemListData,
beforeFetch: (params) => {
return {
...params,
createUser: userinfo.value.loginCode ,
};
...params,
createUser: userinfo.value.loginCode ,
};
},
columns: tableColumns,
actionColumn: actionColumn,
@@ -294,7 +294,10 @@
const { ctxAdminPath } = useGlobSetting();
await downloadByUrl({
url: ctxAdminPath + '/biz/listItem/exportData',
params: getForm().getFieldsValue(),
params: {
... getForm().getFieldsValue(),
createUser: userinfo.value.loginCode ,
}
});
loading.value = false;
}

View File

@@ -56,9 +56,9 @@
fieldNames: { label: 'provinceName', value: 'provinceCode' },
immediate: true,
allowClear: true,
onChange: (value: string) => {
provListParams.value.provinceCode = value;
},
onChange: (value: string) => {
provListParams.value.provinceCode = value;
},
},
required: true,
colProps: { md: 24, lg: 24 },