diff --git a/client/src/router/index.js b/client/src/router/index.js index 804a435..690af7b 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -97,17 +97,7 @@ export const asyncRoutes = [ name: 'Dict', component: () => import('@/views/system/dict'), meta: { title: '数据字典', icon: 'example', perms: ['dict_manage'] } - }, - { - path: 'external-link', - component: Layout, - children: [ - { - path: process.env.VUE_APP_BASE_API + '/docs/', - meta: { title: '接口文档', icon: 'link', perms: ['docs'] } - } - ] - }, + } ] }, { diff --git a/docs/导图.km b/docs/导图.km index 7e11a03..1aae88c 100644 --- a/docs/导图.km +++ b/docs/导图.km @@ -3,40 +3,197 @@ "data": { "id": "c2r5hcwbvx40", "created": 1589530347633, - "text": "认证类型" + "text": "认证", + "expandState": "expand" }, "children": [ { "data": { - "id": "c2r5hwut7340", - "created": 1589530391077, - "text": "CCC认证-中国强制性产品认证 " + "id": "c2tfyug5x940", + "created": 1589763049041, + "text": "产品认证", + "expandState": "expand", + "layout_right_offset": { + "x": -34, + "y": -15 + } }, - "children": [] + "children": [ + { + "data": { + "id": "c2th06hn3340", + "created": 1589765974726, + "text": "分类", + "expandState": "expand" + }, + "children": [ + { + "data": { + "id": "c2r5hwut7340", + "created": 1589530391077, + "text": "CCC认证-中国强制性产品认证 " + }, + "children": [] + }, + { + "data": { + "id": "c2tfz1bts0w0", + "created": 1589763064016, + "text": "自愿性产品认证" + }, + "children": [] + } + ] + }, + { + "data": { + "id": "c2th150iksw0", + "created": 1589766049878, + "text": "申请类型" + }, + "children": [ + { + "data": { + "id": "c2th17zokzs0", + "created": 1589766056358, + "text": "初次、扩大、再认证、暂停恢复、注销" + }, + "children": [] + } + ] + }, + { + "data": { + "id": "c2thag6rv880", + "created": 1589766779478, + "text": "认证类型" + }, + "children": [ + { + "data": { + "id": "c2thaj9wel40", + "created": 1589766786198, + "text": "质量、节能、节水、安全、环保、健康、低碳" + }, + "children": [] + } + ] + } + ] }, { "data": { - "id": "c2r5i3fhveg0", - "created": 1589530405389, - "text": "QMS认证-质量管理体系认证" + "id": "c2tfz5p06uo0", + "created": 1589763073520, + "text": "体系认证", + "expandState": "expand", + "layout_right_offset": { + "x": -64, + "y": -29 + } }, - "children": [] + "children": [ + { + "data": { + "id": "c2th2kkvybs0", + "created": 1589766162126, + "text": "分类", + "expandState": "expand", + "layout_right_offset": { + "x": 153, + "y": 49 + } + }, + "children": [ + { + "data": { + "id": "c2r5i3fhveg0", + "created": 1589530405389, + "text": "QMS认证-质量管理体系认证" + }, + "children": [] + }, + { + "data": { + "id": "c2r5iakzoqo0", + "created": 1589530420958, + "text": "EMS认证-环境管理体系认证" + }, + "children": [] + }, + { + "data": { + "id": "c2r5iii881c0", + "created": 1589530438206, + "text": "OHSMS认证-职业健康安全管理体系认证" + }, + "children": [] + }, + { + "data": { + "id": "c2tg0ibeh400", + "created": 1589763179360, + "text": "EnMS认证-能源管理体系认证" + }, + "children": [] + } + ] + }, + { + "data": { + "id": "c2th2ui8t740", + "created": 1589766183734, + "text": "申请类型", + "layout_right_offset": { + "x": -1, + "y": 40 + } + }, + "children": [ + { + "data": { + "id": "c2th69xq1400", + "created": 1589766452414, + "text": "一阶段、二阶段、再认证、暂停恢复、注销" + }, + "children": [] + } + ] + } + ] }, { "data": { - "id": "c2r5iakzoqo0", - "created": 1589530420958, - "text": "EMS认证-环境管理体系认证" + "id": "c2ucsjp1za00", + "created": 1589855652076, + "text": "认证类别" }, - "children": [] - }, - { - "data": { - "id": "c2r5iii881c0", - "created": 1589530438206, - "text": "OHSMS认证-职业健康安全管理体系认证" - }, - "children": [] + "children": [ + { + "data": { + "id": "c2ucsookoo00", + "created": 1589855662931, + "text": "产品——21个认证领域" + }, + "children": [] + }, + { + "data": { + "id": "c2ucssqwa3c0", + "created": 1589855671779, + "text": "服务——22个认证领域" + }, + "children": [] + }, + { + "data": { + "id": "c2ucsujbun40", + "created": 1589855675675, + "text": "管理体系——6个认证领域" + }, + "children": [] + } + ] } ] }, diff --git a/server/apps/system/models.py b/server/apps/system/models.py index 8ac7e54..b5060f1 100644 --- a/server/apps/system/models.py +++ b/server/apps/system/models.py @@ -27,6 +27,7 @@ class Dict(SoftModel): """ name = models.CharField('名称', max_length=30, unique=True) desc = models.TextField('描述', blank=True, null=True) + enabled = models.BooleanField('是否有效', default=True) type = models.ForeignKey( DictType, on_delete=models.CASCADE, verbose_name='类型') sort = models.IntegerField('排序', default=1)