From 62b4bf5d209a10d4b6684f9a28fb1b0431625e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=ADvier?= Date: Fri, 29 Mar 2024 04:03:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?'=E5=85=B3=E8=81=94=E8=A1=A8=E6=95=B0=E6=8D=AE'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/components/ds-select/index.vue | 102 ++++++++++++++++++ admin/src/views/dev_tools/code/edit.vue | 5 + .../service/generator/core/ModelGenerator.php | 26 +++++ .../generator/core/VueEditGenerator.php | 6 ++ .../generator/core/VueIndexGenerator.php | 90 +++++++++++++++- .../generator/stub/php/controller.stub | 19 ++++ .../service/generator/stub/php/logic.stub | 12 +++ .../stub/php/model/relation_data.stub | 25 +++++ .../service/generator/stub/vue/api.stub | 5 + .../service/generator/stub/vue/edit.stub | 2 +- .../stub/vue/form_item/relationData.stub | 10 ++ .../service/generator/stub/vue/index.stub | 6 +- .../stub/vue/other_item/fetchFun.stub | 10 ++ .../stub/vue/other_item/fetchFunItem.stub | 5 + .../stub/vue/search_item/relationData.stub | 10 ++ .../stub/vue/table_item/relationData.stub | 5 + 16 files changed, 332 insertions(+), 6 deletions(-) create mode 100644 admin/src/components/ds-select/index.vue create mode 100644 server/app/common/service/generator/stub/php/model/relation_data.stub create mode 100644 server/app/common/service/generator/stub/vue/form_item/relationData.stub create mode 100644 server/app/common/service/generator/stub/vue/other_item/fetchFun.stub create mode 100644 server/app/common/service/generator/stub/vue/other_item/fetchFunItem.stub create mode 100644 server/app/common/service/generator/stub/vue/search_item/relationData.stub create mode 100644 server/app/common/service/generator/stub/vue/table_item/relationData.stub diff --git a/admin/src/components/ds-select/index.vue b/admin/src/components/ds-select/index.vue new file mode 100644 index 000000000..a389d02f2 --- /dev/null +++ b/admin/src/components/ds-select/index.vue @@ -0,0 +1,102 @@ + + + diff --git a/admin/src/views/dev_tools/code/edit.vue b/admin/src/views/dev_tools/code/edit.vue index 676408863..d05aa3f87 100644 --- a/admin/src/views/dev_tools/code/edit.vue +++ b/admin/src/views/dev_tools/code/edit.vue @@ -129,12 +129,17 @@ +