From 338e2204be7a6c7ad280c1d235bcabd5d1842475 Mon Sep 17 00:00:00 2001 From: zty Date: Fri, 9 May 2025 09:54:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:dppz=20youpei=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E4=BB=8B=E7=BB=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_client/src/api/cms.js | 22 +++++++ test_client/src/views/youpei/index.vue | 66 ++++++++++++++++--- .../cms/migrations/0025_youpeidetail.py | 27 ++++++++ test_server/cms/models.py | 6 ++ test_server/cms/serializers.py | 6 +- test_server/cms/urls.py | 3 +- test_server/cms/views.py | 17 ++++- 7 files changed, 133 insertions(+), 14 deletions(-) create mode 100644 test_server/cms/migrations/0025_youpeidetail.py diff --git a/test_client/src/api/cms.js b/test_client/src/api/cms.js index ea1da70..0fb8948 100644 --- a/test_client/src/api/cms.js +++ b/test_client/src/api/cms.js @@ -181,7 +181,29 @@ export function deleteArt(id) { }) } +// 优培详情 +export function createypDetail(data) { + return request({ + url: '/cms/ypdetail/', + method: 'post', + data + }) +} +export function getYpDetailList(query) { + return request({ + url: '/cms/ypdetail/', + method: 'get', + params: query + }) +} +export function updateyp(id, data) { + return request({ + url: `/cms/ypdetail/${id}/`, + method: 'put', + data + }) +} export function getChildcompanyList(query) { return request({ diff --git a/test_client/src/views/youpei/index.vue b/test_client/src/views/youpei/index.vue index 462b592..925452e 100644 --- a/test_client/src/views/youpei/index.vue +++ b/test_client/src/views/youpei/index.vue @@ -89,7 +89,8 @@ v-if="showEditor" v-model="companydata.remark" :height="400" - width="90%"/> + width="90%" + />
@@ -108,10 +109,22 @@ -
+ + + + 保存 + + + + @@ -193,7 +206,8 @@