1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <template>
- <view class="task-page">
- <div class="head">
- <uni-segmented-control
- :current="current"
- :values="items" @clickItem="onClickItem"
- activeColor="#007aff">
- </uni-segmented-control>
- </div>
- <view class="content">
- <view v-show="current === 0">
- <rectify-form ref="rectify-form" @success="getWorkflow"></rectify-form>
- </view>
- <view v-show="current === 1">
- <rectify-history ref="rectify-history"></rectify-history>
- </view>
- </view>
- </view>
- </template>
- <script>
- import rectifyForm from './form/form.vue'
- import rectifyHistory from './history/index.vue'
- export default {
- data() {
- return {
- items: ['基本信息', '历史记录'],
- current: 0
- }
- },
- components:{
- rectifyForm,
- rectifyHistory
- },
- onLoad() {
- },
- methods: {
- onClickItem(e) {
- if (this.current != e.currentIndex) {
- this.current = e.currentIndex;
- }
- },
- getWorkflow(data){
- if(data&&data.activityInsRecordList){
- this.$refs['rectify-history'].loadData(data.activityInsRecordList)
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .task-page{
- padding:20rpx;
- position: relative;
- .head{
- position: fixed;
- z-index: 999;
- width: 710rpx;
- left: 10px;
- top: var(--window-top);
- background-color: #fff;
- box-sizing: border-box;
- padding-top: 5px;
- }
- .content{
- margin-top:36px;
- }
- }
- </style>
|