This commit is contained in:
yangjun 2024-05-23 13:18:40 +08:00
commit 1aa18e9b97
4 changed files with 36 additions and 40 deletions

View File

@ -218,8 +218,7 @@
function handleFabu(record: Recordable) { function handleFabu(record: Recordable) {
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "6" } }).then(res => { defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "6" } }).then(res => {
total.value = 1; total.value = 1;
pageNo.value = 0; handlePageChange(1);
reload();
}); });
} }
/** /**
@ -230,8 +229,8 @@
} }
function reload(){ function reload(){
queryParam.value.pageNo = pageNo; queryParam.value.pageNo = pageNo.value;
queryParam.value.pageSize = pageSize; queryParam.value.pageSize = pageSize.value;
queryParam.value.rwbh = rwbh; queryParam.value.rwbh = rwbh;
queryParam.value.xqxn = xqxn; queryParam.value.xqxn = xqxn;
queryParam.value.atype = "6"; queryParam.value.atype = "6";
@ -249,16 +248,15 @@
*/ */
function handleSuccess() { function handleSuccess() {
total.value = 1; total.value = 1;
pageNo.value = 0; handlePageChange(1);
reload();
} }
/** /**
* 查询 * 查询
*/ */
function searchQuery() { function searchQuery() {
pageNo.value = 0; total.value = 1;
reload(); handlePageChange(1);
} }
/** /**

View File

@ -219,8 +219,7 @@
function handleFabu(record: Recordable) { function handleFabu(record: Recordable) {
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "1" } }).then(res => { defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "1" } }).then(res => {
total.value = 1; total.value = 1;
pageNo.value = 0; handlePageChange(1);
reload();
}); });
} }
/** /**
@ -231,8 +230,8 @@
} }
function reload(){ function reload(){
queryParam.value.pageNo = pageNo; queryParam.value.pageNo = pageNo.value;
queryParam.value.pageSize = pageSize; queryParam.value.pageSize = pageSize.value;
queryParam.value.rwbh = rwbh; queryParam.value.rwbh = rwbh;
queryParam.value.xqxn = xqxn; queryParam.value.xqxn = xqxn;
queryParam.value.atype = "1"; queryParam.value.atype = "1";
@ -252,16 +251,15 @@
*/ */
function handleSuccess() { function handleSuccess() {
total.value = 1; total.value = 1;
pageNo.value = 0; handlePageChange(1);
reload();
} }
/** /**
* 查询 * 查询
*/ */
function searchQuery() { function searchQuery() {
pageNo.value = 0; total.value = 1;
reload(); handlePageChange(1);
} }
/** /**

View File

@ -91,14 +91,14 @@ const disabled = ref<boolean>(false);
const confirmLoading = ref<boolean>(false); const confirmLoading = ref<boolean>(false);
const tiganData = ref<any>([]); const tiganData = ref<any>([]);
const tmxxPar = ref<any>({}); const tmxxPar = ref<any>({});
const openTime = ref<string>(''); // const openTime = ref<string>('');
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const emit = defineEmits(['ok', 'closeLoading']); const emit = defineEmits(['ok', 'closeLoading']);
// //
function edit(record,isDisabled,type,flag){ function edit(record,isDisabled,type,flag){
openTime.value = getCurrentTimeFormat(); // openTime.value = getCurrentTimeFormat();
tiganData.value = []; tiganData.value = [];
disabled.value = isDisabled; disabled.value = isDisabled;
if(type == '6'){ if(type == '6'){
@ -152,7 +152,7 @@ async function submitForm(){
return; return;
} }
} }
values[i].openTime = openTime.value; // values[i].openTime = openTime.value;
} }
const isUpdate = false const isUpdate = false
await djtj(values, isUpdate); await djtj(values, isUpdate);

View File

@ -207,7 +207,8 @@ import dayjs from 'dayjs';
* 成功回调 * 成功回调
*/ */
function handleSuccess() { function handleSuccess() {
reload() total.value = 1;
handlePageChange(1);
} }
function handleZySuccess(zyid){ function handleZySuccess(zyid){
@ -224,8 +225,8 @@ import dayjs from 'dayjs';
* 查询 * 查询
*/ */
function searchQuery() { function searchQuery() {
queryParam.value.pageNo = 1; total.value = 1;
reload(); handlePageChange(1);
} }
/** /**
@ -233,9 +234,8 @@ import dayjs from 'dayjs';
*/ */
function searchReset() { function searchReset() {
queryParam.value = {}; queryParam.value = {};
queryParam.value.pageNo = 1; total.value = 1;
// handlePageChange(1);
reload();
} }
function reload(){ function reload(){
@ -258,7 +258,7 @@ import dayjs from 'dayjs';
function handlePageChange(record){ function handlePageChange(record){
pageNo.value = record; pageNo.value = record;
searchQuery(); reload();
} }
onMounted(() => { onMounted(() => {