重新编写业务流程框架
Showing
3 changed files
with
136 additions
and
1 deletions
| ... | @@ -33,6 +33,14 @@ export const constantRoutes = [ | ... | @@ -33,6 +33,14 @@ export const constantRoutes = [ |
| 33 | name: 'fqsq', | 33 | name: 'fqsq', |
| 34 | hidden: true, | 34 | hidden: true, |
| 35 | meta: { title: '发起申请' } | 35 | meta: { title: '发起申请' } |
| 36 | }, | ||
| 37 | // 业务流程框架 | ||
| 38 | { | ||
| 39 | path: '/workFrame', | ||
| 40 | component: () => import('@/views/ywbl/fqsq/workFrame.vue'), | ||
| 41 | name: 'workFrame', | ||
| 42 | hidden: true, | ||
| 43 | meta: { title: '发起申请' } | ||
| 36 | } | 44 | } |
| 37 | ] | 45 | ] |
| 38 | 46 | ... | ... |
| ... | @@ -150,7 +150,8 @@ export default { | ... | @@ -150,7 +150,8 @@ export default { |
| 150 | }); | 150 | }); |
| 151 | }, | 151 | }, |
| 152 | ywhClick (item) { | 152 | ywhClick (item) { |
| 153 | const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1') | 153 | const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1'); |
| 154 | //const { href } = this.$router.resolve('/workFrame?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1'); | ||
| 154 | window.open(href, '_blank'); | 155 | window.open(href, '_blank'); |
| 155 | }, | 156 | }, |
| 156 | }, | 157 | }, | ... | ... |
src/views/ywbl/fqsq/workFrame.vue
0 → 100644
| 1 | <template> | ||
| 2 | <div class="container"> | ||
| 3 | <!-- 顶部内容框 --> | ||
| 4 | <div class="topButton"> | ||
| 5 | <!-- 左侧业务功能按钮 --> | ||
| 6 | <ul> | ||
| 7 | <li | ||
| 8 | @click="operation(index, item)" | ||
| 9 | v-for="(item, index) in leftButtonList" | ||
| 10 | :key="index" | ||
| 11 | > | ||
| 12 | <svg-icon :icon-class="item.icon" /> | ||
| 13 | <span class="iconName">{{ item.name }}</span> | ||
| 14 | </li> | ||
| 15 | </ul> | ||
| 16 | <!-- 右侧流程按钮 --> | ||
| 17 | <ul> | ||
| 18 | <li | ||
| 19 | @click="operation(index, item)" | ||
| 20 | v-for="(item, index) in rightButtonList" | ||
| 21 | :key="index" | ||
| 22 | > | ||
| 23 | <svg-icon class="icon" :icon-class="item.icon" /> | ||
| 24 | <span class="iconName">{{ item.name }}</span> | ||
| 25 | </li> | ||
| 26 | </ul> | ||
| 27 | </div> | ||
| 28 | <!-- 内容框架 --> | ||
| 29 | <div> | ||
| 30 | <!-- 左侧菜单栏 --> | ||
| 31 | <div></div> | ||
| 32 | <!-- 表单内容区域 --> | ||
| 33 | <div></div> | ||
| 34 | </div> | ||
| 35 | </div> | ||
| 36 | </template> | ||
| 37 | |||
| 38 | <style scoped lang='scss'> | ||
| 39 | @import "~@/styles/mixin.scss"; | ||
| 40 | |||
| 41 | .svg-icon { | ||
| 42 | width: 2.5em; | ||
| 43 | height: 2.5em; | ||
| 44 | } | ||
| 45 | .iconName { | ||
| 46 | line-height: 24px; | ||
| 47 | font-size: 12px; | ||
| 48 | } | ||
| 49 | .container { | ||
| 50 | width: 100%; | ||
| 51 | height: 100%; | ||
| 52 | padding: 0; | ||
| 53 | box-sizing: border-box; | ||
| 54 | background-color: #ffffff; | ||
| 55 | overflow: hidden; | ||
| 56 | } | ||
| 57 | .topButton { | ||
| 58 | @include flex; | ||
| 59 | width: 100%; | ||
| 60 | height: 80px; | ||
| 61 | background-color: #3498db; | ||
| 62 | color: #ffffff; | ||
| 63 | justify-content: space-between; | ||
| 64 | padding-left: 15px; | ||
| 65 | position: sticky; | ||
| 66 | top: 0; | ||
| 67 | z-index: 100; | ||
| 68 | |||
| 69 | ul { | ||
| 70 | @include flex; | ||
| 71 | |||
| 72 | li { | ||
| 73 | @include flex-center; | ||
| 74 | cursor: pointer; | ||
| 75 | flex-direction: column; | ||
| 76 | margin-right: 15px; | ||
| 77 | box-sizing: border-box; | ||
| 78 | width: 70px; | ||
| 79 | margin: 0 5px; | ||
| 80 | } | ||
| 81 | |||
| 82 | li:hover { | ||
| 83 | border: 1px solid #ffffff; | ||
| 84 | border-radius: 5px; | ||
| 85 | //color: $light-blue ; | ||
| 86 | |||
| 87 | .svg-icon { | ||
| 88 | //color: $light-blue ; | ||
| 89 | } | ||
| 90 | } | ||
| 91 | } | ||
| 92 | } | ||
| 93 | </style> | ||
| 94 | |||
| 95 | <script> | ||
| 96 | import { leftMenu, stepExpandInfo, record } from "@/api/fqsq.js"; | ||
| 97 | export default { | ||
| 98 | data() { | ||
| 99 | return { | ||
| 100 | bsmSlsq: "", | ||
| 101 | bestepid: "", | ||
| 102 | leftButtonList: [], | ||
| 103 | rightButtonList: [], | ||
| 104 | }; | ||
| 105 | }, | ||
| 106 | mounted() { | ||
| 107 | this.bsmSlsq = this.$route.query.bsmSlsq; | ||
| 108 | this.bestepid = this.$route.query.bestepid; | ||
| 109 | this.loadButton(); | ||
| 110 | }, | ||
| 111 | methods: { | ||
| 112 | //读取顶部按钮事件 | ||
| 113 | loadButton() { | ||
| 114 | var formdata = new FormData(); | ||
| 115 | formdata.append("bsmSlsq", this.bsmSlsq); | ||
| 116 | formdata.append("bestepid", this.bestepid); | ||
| 117 | stepExpandInfo(formdata).then((res) => { | ||
| 118 | if (res.code === 200) { | ||
| 119 | this.leftButtonList = res.result.button; | ||
| 120 | this.rightButtonList = res.result.operation; | ||
| 121 | } | ||
| 122 | }); | ||
| 123 | }, | ||
| 124 | }, | ||
| 125 | }; | ||
| 126 | </script> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment