feat: 前后端联调代码生成接口

This commit is contained in:
橙子
2024-02-16 17:16:54 +08:00
parent 12ec7a0392
commit 6675376241
20 changed files with 62 additions and 50 deletions

View File

@@ -224,7 +224,7 @@ import {
updateData,
delData,
getType
} from "@/api/webfirst/fieldApi";
} from "@/api/code/fieldApi";
import { computed, onMounted, defineProps, ref } from "vue";
const { proxy } = getCurrentInstance();
@@ -267,7 +267,8 @@ const data = reactive({
const { queryParams, form, rules } = toRefs(data);
const getFieldTypeEnum=(field)=>{
return fieldList.value.filter(x=>x.value==field)[0].lable;
return field;
// return fieldList.value.filter(x=>x.value==field)[0]?.lable??'未知';
}
watch(

View File

@@ -1,4 +1,4 @@
import {listData} from "@/api/webfirst/tableApi.js"
import {listData} from "@/api/code/tableApi.js"
const useTable=()=>{
const dataList=ref([]);