dict enable
This commit is contained in:
parent
1200dda3a9
commit
ecdf44a64d
|
@ -97,19 +97,9 @@ 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'] }
|
||||
}
|
||||
]
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/develop',
|
||||
component: Layout,
|
||||
|
|
159
docs/导图.km
159
docs/导图.km
|
@ -3,7 +3,28 @@
|
|||
"data": {
|
||||
"id": "c2r5hcwbvx40",
|
||||
"created": 1589530347633,
|
||||
"text": "认证类型"
|
||||
"text": "认证",
|
||||
"expandState": "expand"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"data": {
|
||||
"id": "c2tfyug5x940",
|
||||
"created": 1589763049041,
|
||||
"text": "产品认证",
|
||||
"expandState": "expand",
|
||||
"layout_right_offset": {
|
||||
"x": -34,
|
||||
"y": -15
|
||||
}
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"data": {
|
||||
"id": "c2th06hn3340",
|
||||
"created": 1589765974726,
|
||||
"text": "分类",
|
||||
"expandState": "expand"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
|
@ -14,6 +35,76 @@
|
|||
},
|
||||
"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": "c2tfz5p06uo0",
|
||||
"created": 1589763073520,
|
||||
"text": "体系认证",
|
||||
"expandState": "expand",
|
||||
"layout_right_offset": {
|
||||
"x": -64,
|
||||
"y": -29
|
||||
}
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"data": {
|
||||
"id": "c2th2kkvybs0",
|
||||
"created": 1589766162126,
|
||||
"text": "分类",
|
||||
"expandState": "expand",
|
||||
"layout_right_offset": {
|
||||
"x": 153,
|
||||
"y": 49
|
||||
}
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"data": {
|
||||
"id": "c2r5i3fhveg0",
|
||||
|
@ -37,6 +128,72 @@
|
|||
"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": "c2ucsjp1za00",
|
||||
"created": 1589855652076,
|
||||
"text": "认证类别"
|
||||
},
|
||||
"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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue