Quellcode durchsuchen

分机组调整

zhangchong vor 1 Jahr
Ursprung
Commit
19e173f241
1 geänderte Dateien mit 3 neuen und 23 gelöschten Zeilen
  1. 3 23
      src/views/device/phoneGroup/index.vue

+ 3 - 23
src/views/device/phoneGroup/index.vue

@@ -126,30 +126,10 @@ import { getTelsGroupList, addTelsGroup, updateTelsGroup, baseInfoTelsGroup } fr
 import { getTelsList } from '/@/api/device/phone';
 import { voiceQueryList } from '/@/api/device/ivr';
 
-// 定义接口来定义对象的类型
-interface TelsGroupState {
-	ruleForm: {
-		no: string; // 分机组编号
-		name: string; // 分机组名称
-		remark: string; // 分机组备注
-		telNos: Array<any>; //选择的分机
-		voiceList: Array<any>; //语音列表
-		voice: string; //格式化之后的语音列表
-		distribution: object; //呼叫分配方式
-		isDefault: boolean; //是否默认分组
-	};
-	distributions: Array<any>; //呼叫分配方式列表
-	loading: boolean;
-	tableData: Array<any>; //列表数据
-	voiceData: Array<any>; //音频文件
-	isShowDialog: boolean;
-	telsList: Array<any>; //分机列表
-}
-
 // 定义变量内容
 const dialogTitle = ref('配置分机组');
 const ruleFormRef = ref<RefType>();
-const state = reactive<TelsGroupState>({
+const state = reactive<any>({
 	ruleForm: {
 		no: '', // 分机组编号
 		name: '', // 分机组名称
@@ -157,7 +137,7 @@ const state = reactive<TelsGroupState>({
 		telNos: [],
 		voiceList: [],
 		voice: '',
-		distribution: {},
+		distribution: '',
 		isDefault: false,
 	},
 	distributions: [],
@@ -229,7 +209,7 @@ const onAddTelsGroup = () => {
 			telNos: [],
 			voiceList: [],
 			voice: '',
-			distribution: {},
+			distribution: '',
 			isDefault: false,
 		};
 	} else {