更新页面

This commit is contained in:
2025-09-25 10:36:27 +08:00
parent 265c0e618e
commit 2b1ac200aa
5 changed files with 90 additions and 128 deletions

View File

@ -69,10 +69,12 @@ function getDateById (id) {
}
const save = () => {
FormRef.value.submit(()=>{
FormRef.value.submit((val)=>{
loading.value = true;
let url = title.value == '新增' ? `/mosty-base/baxx/jxda/add` : `/mosty-base/baxx/jxda/edit`;
qcckPost(listQuery.value, url).then(() => {
let params = { ...val }
params.fj = params.fj ? params.fj.join(','):''
qcckPost(params, url).then(() => {
loading.value = false;
proxy.$message.success("保存成功");
emit("refresh");
@ -84,7 +86,7 @@ const save = () => {
}
const close = () => {
dialogForm.value = false;
listQuery.value = {fj:''}
listQuery.value = {fj:[]}
FormRef.value.reset()
};;