diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..7549542 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmmirror.com diff --git a/src/components/Banner/index.vue b/src/components/Banner/index.vue index 53295f8..8106bed 100644 --- a/src/components/Banner/index.vue +++ b/src/components/Banner/index.vue @@ -132,9 +132,7 @@ showAdd: true, } }, - mounted() { - this.getList() - }, + components: { AddOrEdit, }, diff --git a/src/components/Detail/addOrEdit.vue b/src/components/Detail/addOrEdit.vue index 36041d0..08634e2 100644 --- a/src/components/Detail/addOrEdit.vue +++ b/src/components/Detail/addOrEdit.vue @@ -11,7 +11,13 @@ - + + + 确定 @@ -22,21 +28,22 @@ diff --git a/src/components/Detail/editor copy.vue b/src/components/Detail/editor copy.vue new file mode 100644 index 0000000..01d2efb --- /dev/null +++ b/src/components/Detail/editor copy.vue @@ -0,0 +1,43 @@ + + + + + + + diff --git a/src/components/Detail/editor.vue b/src/components/Detail/editor.vue index 01d2efb..c1e74a4 100644 --- a/src/components/Detail/editor.vue +++ b/src/components/Detail/editor.vue @@ -1,42 +1,38 @@ - + + + diff --git a/src/components/News/index.vue b/src/components/News/index.vue new file mode 100644 index 0000000..833693c --- /dev/null +++ b/src/components/News/index.vue @@ -0,0 +1,293 @@ + + + + 添加 + + + + + + + + + 暂无 + + + + + + + {{ setCode(lists.row.showPage) }} + + + + + {{ $moment(lists.row.createdAt).format('YYYY-MM-DD HH:mm') }} + + + + + {{ $moment(lists.row.updatedAt).format('YYYY-MM-DD HH:mm') }} + + + + + {{ lists.row.modifyName }} + + + + + + + 编辑 + + + + 确定删除吗? + + 取消 + 确定 + + 删除 + + + + + + + + + + + + + + + + + + + + diff --git a/src/router/menus/others.js b/src/router/menus/others.js index c052ffb..ce9216f 100644 --- a/src/router/menus/others.js +++ b/src/router/menus/others.js @@ -6,7 +6,7 @@ const others = { meta: {title: '其他', icon: 'dingdan', noCache: true, affix: false}, children: [ { - path: '/others0', + path: '/configuration', code: '9904', component: () => import('@/views/otherPage/index'), name: '页面配置', diff --git a/src/views/index/index.vue b/src/views/index/index.vue index 5c10e31..57d244c 100644 --- a/src/views/index/index.vue +++ b/src/views/index/index.vue @@ -2,7 +2,7 @@ - + - - - - - {{ $moment(lists.row.startTime-0).format("YYYY-MM-DD HH:mm") }} - - - 暂无 - - - - - - - - - - - - - {{ $moment(lists.row.endTime-0).format("YYYY-MM-DD HH:mm") }} - - - 暂无 - - - - - - - - - {{ item.title }} - - - - {{ itemA }} - - - - - - {{ item.value }} - - - - - - - - - - {{ lists.row.description }} - - - - - - {{ lists.row.modifyName }} - - - - - - - - - - - + + + + + + + + + diff --git a/src/views/richText/index.vue b/src/views/richText/index.vue index deabf90..7b22ecb 100644 --- a/src/views/richText/index.vue +++ b/src/views/richText/index.vue @@ -2,10 +2,10 @@ - + - + @@ -30,9 +30,20 @@ created() { this.showPage = localStorage.getItem('code') }, + mounted() { + this.$nextTick(() => { + this.$refs.banner.getList() + }) + }, methods: { - handleClick() { - console.log('切换tab'); + handleClick(value) { + this.activeName =value + if(value === 'IMAGE'){ + this.$refs.banner.getList() + } + if(value === 'DETAIL'){ + this.$refs.detail.getList() + } }, } }
确定删除吗?