修改参数,接口报错

This commit is contained in:
zhangsir
2024-10-28 16:54:22 +08:00
parent 8b0757778d
commit 24660182ec
2 changed files with 5 additions and 5 deletions

View File

@@ -118,8 +118,8 @@ const props = defineProps({
default: "" default: ""
}, },
ids:{ ids:{
type: Array, type: String,
default: ()=>[] default: ''
} }
}); });
const modalVisible = ref(false) const modalVisible = ref(false)

View File

@@ -435,7 +435,7 @@
setup() { setup() {
const formRef = ref(); const formRef = ref();
const state = reactive({ const state = reactive({
selectsIds: [], selectsIds: '',
visibleConfirm: false, visibleConfirm: false,
title:'导入讲师费记录', title:'导入讲师费记录',
allFeedialog:false, allFeedialog:false,
@@ -1101,12 +1101,12 @@ console.log( "讲师体系id" +val);
state.allFeedialog=true state.allFeedialog=true
} }
const selectedRowKeys = (val) => { const selectedRowKeys = (val) => {
state.selectsIds = val; state.selectsIds = val?.join(',');
state.visibleConfirm = true; state.visibleConfirm = true;
} }
watch(()=>state.visibleConfirm,(val)=>{ watch(()=>state.visibleConfirm,(val)=>{
if(!val){ if(!val){
state.selectsIds = []; state.selectsIds = '';
} }
}) })
const tableDatas = ref([]) const tableDatas = ref([])