修复TypeScript类型定义问题并删除未使用的客服管理页面文件

This commit is contained in:
WUSIJIAN
2026-01-04 14:23:58 +08:00
parent 781c5222de
commit a780df0231
7 changed files with 9 additions and 50 deletions

View File

@@ -261,7 +261,7 @@ const handleCustomUpload = async (file: File) => {
formData.append('type', 'zip'); formData.append('type', 'zip');
formData.append('fileName', file.name); formData.append('fileName', file.name);
const response = await importProduct(formData); const response: any = await importProduct(formData);
console.log('导入响应:', response); console.log('导入响应:', response);
if (response.code === 0 || response.failCount !== undefined) { if (response.code === 0 || response.failCount !== undefined) {

View File

@@ -172,7 +172,7 @@ export default defineComponent({
editDicRef.value.openDialog(row); editDicRef.value.openDialog(row);
}; };
// 删除字典 // 删除字典
const onRowDel = (row: TableDataRow) => { const onRowDel = (row: TableDataRow | null) => {
let msg = '你确定要删除所选数据?'; let msg = '你确定要删除所选数据?';
let ids:number[] = [] ; let ids:number[] = [] ;
if(row){ if(row){

View File

@@ -151,7 +151,7 @@ export default defineComponent({
components: { IconSelector }, components: { IconSelector },
props:{ props:{
visibleOptions:{ visibleOptions:{
type:Array, type:Array as () => any[],
default:()=>[], default:()=>[],
}, },
acType:{ acType:{
@@ -165,7 +165,7 @@ export default defineComponent({
const state = reactive({ const state = reactive({
loading: false, loading: false,
isShowDialog: false, isShowDialog: false,
roles:[], roles:[] as any[],
// 参数请参考 `/src/router/route.ts` 中的 `dynamicRoutes` 路由菜单格式 // 参数请参考 `/src/router/route.ts` 中的 `dynamicRoutes` 路由菜单格式
ruleForm: { ruleForm: {
id:undefined, id:undefined,

View File

@@ -1,15 +0,0 @@
<template>
<div>
<b>客服账号管理</b>
</div>
</template>
<script>
export default {
}
</script>
<style>
</style>

View File

@@ -1,13 +0,0 @@
<template>
<div>server <b>话术模板管理</b></div>
</template>
<script>
export default {
}
</script>
<style>
</style>

View File

@@ -1,13 +0,0 @@
<template>
<div><b>跟踪策略</b></div>
</template>
<script>
export default {
}
</script>
<style>
</style>

View File

@@ -120,18 +120,18 @@ export default defineComponent({
name: 'systemEditUser', name: 'systemEditUser',
props: { props: {
deptData: { deptData: {
type: Array, type: Array as () => any[],
default: () => [], default: () => [],
}, },
genderData: { genderData: {
type: Array, type: Array as () => any[],
default: () => [], default: () => [],
}, },
}, },
setup(prop, { emit }) { setup(prop, { emit }) {
const roleList = ref([]); const roleList = ref<any[]>([]);
const postList = ref([]); const postList = ref<any[]>([]);
const tenantList = ref([]); // 新增租户列表 const tenantList = ref<any[]>([]); // 新增租户列表
const formRef = ref<HTMLElement | null>(null); const formRef = ref<HTMLElement | null>(null);
const state = reactive({ const state = reactive({
isShowDialog: false, isShowDialog: false,