12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <template>
- <view>
- <view class="" v-if="type == 1">
- <allAppWorkFlow ref="allAppWorkFlow" :categoryList='categoryList'></allAppWorkFlow>
- </view>
- <view class="" v-if="type == 2">
- <allAppApply ref="allAppApply"></allAppApply>
- </view>
- </view>
- </template>
- <script>
- import allAppWorkFlow from './allApp_workFlow.vue'
- import allAppApply from './allApp_apply.vue'
- import {
- FlowEngineListAll
- } from '@/api/workFlow/flowEngine'
- import {
- getFlowList,
- getDataList,
- getUsualList,
- addUsual,
- delUsual
- } from '@/api/apply/apply.js'
- export default {
- components: {
- allAppWorkFlow,
- allAppApply
- },
- data() {
- return {
- type: '1',
- categoryList: []
- }
- },
- onLoad(option) {
- this.type = option.type || '1'
- uni.setNavigationBarTitle({
- title: this.type == '1' ? '收藏流程' : '收藏菜单'
- })
- this.categoryList = option.categoryList ? JSON.parse(decodeURIComponent(option.categoryList)) : []
- this.init()
- },
- methods: {
- init(option) {
- this.$nextTick(() => {
- if (this.type == 1) {
- this.$refs.allAppWorkFlow.init()
- } else {
- this.$refs.allAppApply.init()
- }
- })
- },
- }
- }
- </script>
- <style>
- page {
- background-color: #f0f2f6;
- }
- </style>
|