修改bug

This commit is contained in:
yangjun 2024-05-10 21:48:26 +08:00
parent aa2e2bcfcc
commit f4b315f3b1
3 changed files with 19 additions and 10 deletions

View File

@ -1,10 +1,10 @@
<template>
<div id="siteMain" style="min-height: calc(100vh - 150px);">
<div id="siteMain" style="min-height: calc(100vh - 160px);">
<a-row>
<a-col :span="24">
<a-menu
v-model:selectedKeys="selectedKeys"
style="width: 98%;min-height: calc(100vh - 130px);margin: 10px 0;"
style="width: 98%;min-height: calc(100vh - 142px);margin: 10px 0;"
mode="inline"
>
<a-sub-menu key="sub1">
@ -89,7 +89,7 @@
#maxSite {
//
max-width: 1070px;
min-height: 750px;
min-height: 730px;
//
margin: 0 auto;
.rowGutter{

View File

@ -1,5 +1,5 @@
<template>
<div>
<div style="background: #fff;min-height:97%;margin-top:10px;">
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
@ -26,7 +26,7 @@
</a-form>
</div>
<!--引用表格-->
<BasicTable @register="registerTable">
<BasicTable @register="registerTable" style="top: -46px;position: relative;">
<!--插槽:table标题-->
<template #tableTitle>
</template>
@ -53,7 +53,7 @@
</template>
<script lang="ts" name="zyGonggao-zyGonggao" setup>
import { ref, reactive } from 'vue';
import { ref, reactive, unref } from 'vue';
import { BasicTable, useTable, TableAction } from '/@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { columns } from './ZyGonggao.data';
@ -62,11 +62,15 @@
import ZyGonggaoModal from './components/ZyGonggaoModal.vue';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
import { JJInput } from '/@/components/Form';
import { JInput } from '/@/components/Form';
import { useRouter } from 'vue-router';
const { createConfirm } = useMessage();
const queryParam = ref<any>({});
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
const { rwbh,xqxn } = query;//
const queryParam = ref<any>({rwbh, xqxn});
const toggleSearchStatus = ref<boolean>(false);
const registerModal = ref();
//table

View File

@ -18,19 +18,23 @@
</template>
<script lang="ts" setup>
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted,unref } from 'vue';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage';
import JEditor from '/@/components/Form/src/jeecg/components/JEditor.vue';
import { getValueType } from '/@/utils';
import { saveOrUpdate } from '../ZyGonggao.api';
import { Form } from 'ant-design-vue';
import { useRouter } from 'vue-router';
const props = defineProps({
formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: ()=>{} },
formBpm: { type: Boolean, default: true }
});
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
const { rwbh,xqxn } = query;//
const formRef = ref();
const useForm = Form.useForm;
const emit = defineEmits(['register', 'ok']);
@ -67,7 +71,7 @@
* 新增
*/
function add() {
edit({});
edit({rwbh,xqxn});
}
/**
@ -105,6 +109,7 @@
}
}
}
console.log(`🚀 ~ submitForm ~ model:`, model)
await saveOrUpdate(model, isUpdate.value)
.then((res) => {
if (res.success) {