更新列表

This commit is contained in:
2025-07-03 15:13:09 +08:00
parent fe5bd8324c
commit 1d3534bcb9
3 changed files with 9 additions and 5 deletions

View File

@ -73,7 +73,7 @@ const props = defineProps({
default: () => []
}
});
const emit = defineEmits(['onSearch'])
const emit = defineEmits(['upadate'])
const dialogVisible = ref(false);
const pageData = reactive({
dtoList: [],
@ -150,7 +150,7 @@ const submitData = () => {
qcckPost(validData, "/mosty-gsxt/tbGsxtRqfjRy/saveList").then((res) => {
ElMessage.success("新增成功");
dialogVisible.value = false;
emit("onSearch");
emit("upadate");
close();
})
};

View File

@ -61,7 +61,10 @@ const submitForm = () =>{
formValidate.value.validate((valid) => {
if (!valid) return false;
let params = { ids:props.ids, ...listQuery.value }
let url = props.type == '指定分配' ? '/mosty-gsxt/tbGsxtRqfjRy/updateByMj':'/mosty-gsxt/tbGsxtRqfjRy/updateByFxDj'
let url = ''
if( props.type == '警种变更') '/mosty-gsxt/tbGsxtRqfjRy/updateByBm'
if( props.type == '指定分配') '/mosty-gsxt/tbGsxtRqfjRy/updateByMj'
if( props.type == '级别变更') '/mosty-gsxt/tbGsxtRqfjRy/updateByFxDj'
qcckPost(params,url).then(res=>{
ElMessage.success("修改成功");
emits('update:modelValue',false)