Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web
Showing
5 changed files
with
150 additions
and
4 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 | }, | ... | ... |
| ... | @@ -213,7 +213,8 @@ import InformationTable from "./InformationTable"; | ... | @@ -213,7 +213,8 @@ import InformationTable from "./InformationTable"; |
| 213 | import { Init, fristReg } from "@/api/cfdjFlow.js"; | 213 | import { Init, fristReg } from "@/api/cfdjFlow.js"; |
| 214 | import { mapGetters } from "vuex"; | 214 | import { mapGetters } from "vuex"; |
| 215 | export default { | 215 | export default { |
| 216 | async created() { | 216 | created() { |
| 217 | console.log(1111111111111111); | ||
| 217 | var bsmSldy = this.$parent._data.unitData[0].bsmSldy; | 218 | var bsmSldy = this.$parent._data.unitData[0].bsmSldy; |
| 218 | var formdata = new FormData(); | 219 | var formdata = new FormData(); |
| 219 | formdata.append("bsmSldy", bsmSldy); | 220 | formdata.append("bsmSldy", bsmSldy); |
| ... | @@ -227,12 +228,19 @@ export default { | ... | @@ -227,12 +228,19 @@ export default { |
| 227 | } | 228 | } |
| 228 | }); | 229 | }); |
| 229 | }, | 230 | }, |
| 231 | watch: { | ||
| 232 | |||
| 233 | }, | ||
| 230 | components: { InformationTable }, | 234 | components: { InformationTable }, |
| 231 | props: { | 235 | props: { |
| 232 | flag: { | 236 | flag: { |
| 233 | type: Boolean, | 237 | type: Boolean, |
| 234 | default: false, | 238 | default: false, |
| 235 | }, | 239 | }, |
| 240 | fetch: { | ||
| 241 | type: Boolean, | ||
| 242 | default: false, | ||
| 243 | }, | ||
| 236 | }, | 244 | }, |
| 237 | computed: { | 245 | computed: { |
| 238 | ...mapGetters(["dictData"]), | 246 | ...mapGetters(["dictData"]), | ... | ... |
| ... | @@ -74,9 +74,10 @@ | ... | @@ -74,9 +74,10 @@ |
| 74 | v-if="activeName == 'slsq'" | 74 | v-if="activeName == 'slsq'" |
| 75 | :is="editItem" | 75 | :is="editItem" |
| 76 | :flag="flag" | 76 | :flag="flag" |
| 77 | :fetch='fetch' | ||
| 77 | :key="key" | 78 | :key="key" |
| 78 | /> | 79 | /> |
| 79 | <component :is="editItem" :key="key" /> | 80 | <component :is="editItem" v-else :key="key" /> |
| 80 | </div> | 81 | </div> |
| 81 | </div> | 82 | </div> |
| 82 | </div> | 83 | </div> |
| ... | @@ -115,13 +116,14 @@ export default { | ... | @@ -115,13 +116,14 @@ export default { |
| 115 | flag: false, | 116 | flag: false, |
| 116 | headerleftList: [], | 117 | headerleftList: [], |
| 117 | headerRightList: [], | 118 | headerRightList: [], |
| 118 | activeName: "slxx", | 119 | activeName: "", |
| 119 | tabList1: [], | 120 | tabList1: [], |
| 120 | tabList: [], | 121 | tabList: [], |
| 121 | editItem: "", | 122 | editItem: "", |
| 122 | issplitScreen: false, | 123 | issplitScreen: false, |
| 123 | unitData: [], | 124 | unitData: [], |
| 124 | bsmBusiness: "", | 125 | bsmBusiness: "", |
| 126 | fetch: false | ||
| 125 | }; | 127 | }; |
| 126 | }, | 128 | }, |
| 127 | watch: { | 129 | watch: { |
| ... | @@ -173,6 +175,7 @@ export default { | ... | @@ -173,6 +175,7 @@ export default { |
| 173 | if (res.code === 200) { | 175 | if (res.code === 200) { |
| 174 | this.tabList1 = [...res.result.form]; | 176 | this.tabList1 = [...res.result.form]; |
| 175 | this.tabList = res.result.form; | 177 | this.tabList = res.result.form; |
| 178 | this.activeName = res.result.form[0].value; | ||
| 176 | this.headerleftList = res.result.button; | 179 | this.headerleftList = res.result.button; |
| 177 | this.headerRightList = res.result.operation; | 180 | this.headerRightList = res.result.operation; |
| 178 | } | 181 | } | ... | ... |
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