update:动态表格优化

This commit is contained in:
2025-11-04 16:28:34 +08:00
parent 0674563cbc
commit bc2781d7ba
2 changed files with 7 additions and 1 deletions

View File

@@ -15,6 +15,8 @@ const service = axios.create({
service.interceptors.request.use(
(config) => {
config.headers['company'] = 'carsafe';
config.headers['jobNumber'] = $wujie?.props?.USER_ID || '';
config.headers['token'] = $wujie?.props?.TOKEN || '';
config.headers['userId'] = $wujie?.props?.USER_ID || '';
config.headers['tenantId'] = $wujie?.props?.TENANT_ID || '';

View File

@@ -27,7 +27,7 @@
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { ref, onMounted, watch } from 'vue';
import FormItem from './formItem.vue';
import { getFormConfigureApi } from '@/api/system/systemData';
import { isPhone, isEmail, hasNoSpecialChar, length20, length100 } from '@/utils/validate';
@@ -168,6 +168,10 @@ const setOptionsFun = (key: string, options: any[]) => {
});
};
watch(() => props.tableName, () => {
getHeadDataFun();
});
defineExpose({
getFormDataFun,
setFormDataFun,