修复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('fileName', file.name);
const response = await importProduct(formData);
const response: any = await importProduct(formData);
console.log('导入响应:', response);
if (response.code === 0 || response.failCount !== undefined) {

View File

@@ -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){

View File

@@ -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,

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',
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<any[]>([]);
const postList = ref<any[]>([]);
const tenantList = ref<any[]>([]); // 新增租户列表
const formRef = ref<HTMLElement | null>(null);
const state = reactive({
isShowDialog: false,