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