更新列表
This commit is contained in:
@ -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();
|
||||
})
|
||||
};
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user