初始代码
This commit is contained in:
61
pages/commonPage/allApp/index.vue
Normal file
61
pages/commonPage/allApp/index.vue
Normal file
@@ -0,0 +1,61 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user