帮扶任务分配、帮扶任务下发
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<AppLayout :title="title" :show-bg-image="false" >
|
||||
<view class="page-container" v-if="showView=='main'">
|
||||
<view class="page-container">
|
||||
<scroll-view :scroll-y="true" class="nearby-scroll" @scrolltolower="scrollBottom" lower-threshold="50">
|
||||
<view class="info-box">
|
||||
<view class="info-item info-line">
|
||||
@@ -184,15 +184,7 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!-- <view class="" v-else-if="showView=='add'" >
|
||||
<task-created :taskTypeOptions="taskTypeOptions" :priorityOptions="priorityOptions" :executeDeptOptions="executeDeptOptions" @update:show-view="handleShowViewChange"></task-created>
|
||||
</view> -->
|
||||
<view class="" v-else-if="showView=='detail'" >
|
||||
<task-detail :currentItem="currentItem" :taskTypeOptions="taskTypeOptions" :priorityOptions="priorityOptions" :executeDeptOptions="executeDeptOptions" :allocationStatusOptions="allocationStatusOptions" @update:show-view="handleShowViewChange"></task-detail>
|
||||
</view>
|
||||
<view class="" v-else-if="showView=='targetPersonnel'" >
|
||||
<target-personnel :currentItem="currentItem" :taskName="taskName" @update:show-view="handleShowViewChange"></target-personnel>
|
||||
</view>
|
||||
|
||||
</AppLayout>
|
||||
</template>
|
||||
|
||||
@@ -201,11 +193,7 @@ import { inject, ref, reactive } from 'vue';
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
const { $api, navTo, navBack } = inject('globalFunction');
|
||||
import config from "@/config.js"
|
||||
// import taskCreated from './components/taskCreated.vue';
|
||||
import taskDetail from './components/taskDetail.vue';
|
||||
import targetPersonnel from './components/targetPersonnel.vue';
|
||||
|
||||
const showView=ref('main')
|
||||
const title = ref('');
|
||||
const stats=ref({})
|
||||
const formData = reactive({
|
||||
@@ -356,11 +344,6 @@ const handleReset = () => {
|
||||
filterTimeRange.value=[]
|
||||
getDataList()
|
||||
}
|
||||
function handleShowViewChange(newValue) {
|
||||
showView.value = newValue
|
||||
dataList.value=[]
|
||||
getDataList()
|
||||
}
|
||||
const creatTask = () => {
|
||||
navTo('/packageB/priority/taskCreated');
|
||||
}
|
||||
@@ -368,13 +351,10 @@ function goRecommend(item){
|
||||
navTo('/packageB/priority/allocate?id='+item.id);
|
||||
}
|
||||
function goDetail(item){
|
||||
currentItem.value=item.id
|
||||
showView.value='detail'
|
||||
navTo('/packageB/priority/taskDetail?item='+JSON.stringify(item)+'&url=taskAssignment');
|
||||
}
|
||||
function goTarget(item){
|
||||
currentItem.value=item.taskAllocation.id
|
||||
taskName.value=item.taskName
|
||||
showView.value='targetPersonnel'
|
||||
navTo('/packageB/priority/targetPersonnel?id='+item.taskAllocation.id+'&taskName='+item.taskName);
|
||||
}
|
||||
function scrollBottom(){
|
||||
if(formData.pageNum<totalNum.value/formData.pageSize){
|
||||
|
||||
Reference in New Issue
Block a user