From b9204670aae30925bfa33780d0064334c74d262d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 27 Apr 2021 15:17:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=9F=A5=E8=A1=A8=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/.env.production | 2 +- client_mp/pages/subtask/subtaskdetail.vue | 2 +- server/apps/quality/urls.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/.env.production b/client/.env.production index 9b8874a..8802f8c 100644 --- a/client/.env.production +++ b/client/.env.production @@ -2,5 +2,5 @@ ENV = 'production' # base api -VUE_APP_BASE_API = 'http://testsearch.ctc.ac.cn:8000/api' +VUE_APP_BASE_API = 'https://testsearch.ctc.ac.cn/api' diff --git a/client_mp/pages/subtask/subtaskdetail.vue b/client_mp/pages/subtask/subtaskdetail.vue index e22e13b..d3b722a 100644 --- a/client_mp/pages/subtask/subtaskdetail.vue +++ b/client_mp/pages/subtask/subtaskdetail.vue @@ -23,7 +23,7 @@ {{subtask.members.length}} - + diff --git a/server/apps/quality/urls.py b/server/apps/quality/urls.py index 3477bf1..b2db3df 100644 --- a/server/apps/quality/urls.py +++ b/server/apps/quality/urls.py @@ -1,6 +1,6 @@ from django.urls import path, include from rest_framework import routers -from .views import InspectItemViewSet, InspectTaskViewSet, SubtaskViewSet, InspectRecordViewSet, InspectDeptViewSet +from .views import InspectItemViewSet, InspectTaskViewSet, InspectTemplateViewSet, SubtaskViewSet, InspectRecordViewSet, InspectDeptViewSet, InspectTemplate router = routers.DefaultRouter() router.register('inspectitem', InspectItemViewSet, basename="inspectitem") @@ -8,6 +8,7 @@ router.register('inspecttask', InspectTaskViewSet, basename="inspecttask") router.register('subinspecttask', SubtaskViewSet, basename="subinspecttask") router.register('inspectrecord', InspectRecordViewSet, basename='inspectrecord') router.register('inspectdept', InspectDeptViewSet, basename='inspectdept') +router.register('inspecttemplate', InspectTemplateViewSet, basename='inspecttemplate') urlpatterns = [ path('', include(router.urls)) ] \ No newline at end of file