From a780df0231167a10400ec2a402d700981f7fb964 Mon Sep 17 00:00:00 2001 From: WUSIJIAN <13825895+wsj0228@user.noreply.gitee.com> Date: Sun, 4 Jan 2026 14:23:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DTypeScript=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E9=97=AE=E9=A2=98=E5=B9=B6=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=E5=AE=A2=E6=9C=8D=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../product/component/importDialog.vue | 2 +- src/views/system/dict/dataList.vue | 2 +- src/views/system/menu/component/editMenu.vue | 4 ++-- src/views/system/service/account.vue | 15 --------------- src/views/system/service/index.vue | 13 ------------- src/views/system/service/tail.vue | 13 ------------- src/views/system/user/component/editUser.vue | 10 +++++----- 7 files changed, 9 insertions(+), 50 deletions(-) delete mode 100644 src/views/system/service/account.vue delete mode 100644 src/views/system/service/index.vue delete mode 100644 src/views/system/service/tail.vue diff --git a/src/views/customerService/product/component/importDialog.vue b/src/views/customerService/product/component/importDialog.vue index 57ee4ca..1d2109e 100644 --- a/src/views/customerService/product/component/importDialog.vue +++ b/src/views/customerService/product/component/importDialog.vue @@ -261,7 +261,7 @@ const handleCustomUpload = async (file: File) => { formData.append('type', 'zip'); formData.append('fileName', file.name); - const response = await importProduct(formData); + const response: any = await importProduct(formData); console.log('导入响应:', response); if (response.code === 0 || response.failCount !== undefined) { diff --git a/src/views/system/dict/dataList.vue b/src/views/system/dict/dataList.vue index b2ea64a..aae7843 100644 --- a/src/views/system/dict/dataList.vue +++ b/src/views/system/dict/dataList.vue @@ -172,7 +172,7 @@ export default defineComponent({ editDicRef.value.openDialog(row); }; // 删除字典 - const onRowDel = (row: TableDataRow) => { + const onRowDel = (row: TableDataRow | null) => { let msg = '你确定要删除所选数据?'; let ids:number[] = [] ; if(row){ diff --git a/src/views/system/menu/component/editMenu.vue b/src/views/system/menu/component/editMenu.vue index e817728..a08d4d9 100644 --- a/src/views/system/menu/component/editMenu.vue +++ b/src/views/system/menu/component/editMenu.vue @@ -151,7 +151,7 @@ export default defineComponent({ components: { IconSelector }, props:{ visibleOptions:{ - type:Array, + type:Array as () => any[], default:()=>[], }, acType:{ @@ -165,7 +165,7 @@ export default defineComponent({ const state = reactive({ loading: false, isShowDialog: false, - roles:[], + roles:[] as any[], // 参数请参考 `/src/router/route.ts` 中的 `dynamicRoutes` 路由菜单格式 ruleForm: { id:undefined, diff --git a/src/views/system/service/account.vue b/src/views/system/service/account.vue deleted file mode 100644 index f806326..0000000 --- a/src/views/system/service/account.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/system/service/index.vue b/src/views/system/service/index.vue deleted file mode 100644 index 9bd3256..0000000 --- a/src/views/system/service/index.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/system/service/tail.vue b/src/views/system/service/tail.vue deleted file mode 100644 index 5839587..0000000 --- a/src/views/system/service/tail.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/system/user/component/editUser.vue b/src/views/system/user/component/editUser.vue index 0fc35b9..c117668 100644 --- a/src/views/system/user/component/editUser.vue +++ b/src/views/system/user/component/editUser.vue @@ -120,18 +120,18 @@ export default defineComponent({ name: 'systemEditUser', props: { deptData: { - type: Array, + type: Array as () => any[], default: () => [], }, genderData: { - type: Array, + type: Array as () => any[], default: () => [], }, }, setup(prop, { emit }) { - const roleList = ref([]); - const postList = ref([]); - const tenantList = ref([]); // 新增租户列表 + const roleList = ref([]); + const postList = ref([]); + const tenantList = ref([]); // 新增租户列表 const formRef = ref(null); const state = reactive({ isShowDialog: false,