diff --git a/src/router/index.js b/src/router/index.js index 0658ed8..cc804de 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -75,9 +75,18 @@ export const constantRoutes = [{ }, ] }, { - path: '/fill/formindex', - component: () => import('@/views/fill/formindex.vue'), - hidden: true + path: '/fill', + component: Layout, + hidden:true, + children:[{ + path: 'formindex', + name: '填报查看', + component: () => import('@/views/fill/formindex.vue'), + meta: { + title: '填报查看', + icon: 'dashboard' + } + }], }, { path: "/h5", diff --git a/src/views/fill/formindex.vue b/src/views/fill/formindex.vue index 7dee146..cb3d0dc 100644 --- a/src/views/fill/formindex.vue +++ b/src/views/fill/formindex.vue @@ -268,7 +268,8 @@ export default { .card { height: 100%; background-color: #fff; - margin: 40px; + // margin: 40px; + margin-top:20px; } .info { border-top: 1px solid #EBEEF5; diff --git a/src/views/fill/formshow.vue b/src/views/fill/formshow.vue index 7c63bd2..b601a86 100644 --- a/src/views/fill/formshow.vue +++ b/src/views/fill/formshow.vue @@ -1,6 +1,6 @@ @@ -22,6 +80,8 @@ export default { return { auth: [], visible: false, + isShowDrawer:false, + showInfoDetail:{}, list:[], select:{ category_id: "", @@ -49,8 +109,8 @@ export default { { prop: "operate", label: "操作", - align: "left", - width: 140, + align: "center", + width: 80, customFn: row => { const _this = this return ( @@ -95,7 +155,12 @@ export default { this.$refs['xyTable'].getTableData() }, showInfo(id){ - + recordShow({ + id:id + }).then(res=>{ + this.showInfoDetail = res + this.isShowDrawer = true + }) }, }, diff --git a/src/views/fill/index.vue b/src/views/fill/index.vue index 0101131..862e55b 100644 --- a/src/views/fill/index.vue +++ b/src/views/fill/index.vue @@ -5,7 +5,7 @@
- +