diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index f149411..c2fb991 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -48,6 +48,7 @@ export default { pagesSteps: 'Steps', pagesPreview: 'Large preview', pagesWaves: 'Wave effect', + pagesTree: 'tree alter table', chartIndex: 'chartIndex', personal: 'personal', tools: 'tools', diff --git a/src/i18n/lang/zh-cn.ts b/src/i18n/lang/zh-cn.ts index c88fc5f..adcd866 100644 --- a/src/i18n/lang/zh-cn.ts +++ b/src/i18n/lang/zh-cn.ts @@ -48,6 +48,7 @@ export default { pagesSteps: '步骤条', pagesPreview: '大图预览', pagesWaves: '波浪效果', + pagesTree: '树形改表格', chartIndex: '大数据图表', personal: '个人中心', tools: '工具类集合', diff --git a/src/i18n/lang/zh-tw.ts b/src/i18n/lang/zh-tw.ts index 4849a74..08a0614 100644 --- a/src/i18n/lang/zh-tw.ts +++ b/src/i18n/lang/zh-tw.ts @@ -48,6 +48,7 @@ export default { pagesSteps: '步驟條', pagesPreview: '大圖預覽', pagesWaves: '波浪效果', + pagesTree: '樹形改表格', chartIndex: '大資料圖表', personal: '個人中心', tools: '工具類集合', diff --git a/src/router/index.ts b/src/router/index.ts index ee3a70c..7aa7a4d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -742,6 +742,21 @@ export const dynamicRoutes = [ icon: 'iconfont icon-bolangneng', }, }, + { + path: '/pages/tree', + name: 'pagesTree', + component: () => import('/@/views/pages/tree/index.vue'), + meta: { + title: 'message.router.pagesTree', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + auth: ['admin', 'test'], + icon: 'iconfont icon-shuxingtu', + }, + }, ], }, { diff --git a/src/utils/customDirective.ts b/src/utils/customDirective.ts index 5391121..39e7b90 100644 --- a/src/utils/customDirective.ts +++ b/src/utils/customDirective.ts @@ -9,7 +9,7 @@ export function wavesDirective(app: App) { function setConvertStyle(obj: any) { let style: string = ''; for (let i in obj) { - if (obj.hasOwnProperty(i)) style += i + ':' + obj[i] + ';'; + if (obj.hasOwnProperty(i)) style += `${i}:${obj[i]};`; } return style; } diff --git a/src/utils/setIconfont.ts b/src/utils/setIconfont.ts index 9f805dc..8db0a93 100644 --- a/src/utils/setIconfont.ts +++ b/src/utils/setIconfont.ts @@ -1,6 +1,6 @@ // 字体图标 url const cssCdnUrlList: Array = [ - '//at.alicdn.com/t/font_2298093_zyqji9hnk.css', + '//at.alicdn.com/t/font_2298093_ysc3z187xhh.css', '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', ]; // 第三方 js url diff --git a/src/views/pages/tree/index.vue b/src/views/pages/tree/index.vue new file mode 100644 index 0000000..ae4795a --- /dev/null +++ b/src/views/pages/tree/index.vue @@ -0,0 +1,213 @@ + + + + +