This commit is contained in:
weiwei committed 2025-02-25 21:44:11 +08:00
1 parent 9ac9c0634c
commit f0bb087f31
4 files changed
+95 -94

No files matched your search

+3 -16
View File
@@ -62,15 +62,15 @@
<!-- 右侧抽屉 -->
<taskDrawer
v-model="taskDrawerVisible"
:process-id="currentData?.taskId"
:current-data="currentData"
:current-open-flow-form="currentOpenFlowForm"
@task-submit-event="taskSubmitEvent"
/>
</div>
</div>
</template>
<script setup lang="ts">
import { queryMineTask, queryTask } from "/@/api/flow/task"
import { queryMineTask } from "/@/api/flow/task"
import { BasicTableProps, useTable } from "/@/hooks/table"
import taskDrawer from "/@/components/taskDrawer/index.vue"
@@ -79,7 +79,6 @@ const showSearch = ref(true)
const loading = ref(false)
const queryRef = ref()
const currentData = ref()
const currentOpenFlowForm = ref()
const state: BasicTableProps = reactive<BasicTableProps>({
pageList: queryMineTask,
@@ -97,10 +96,7 @@ const { tableStyle, getDataList, currentChangeHandle, sizeChangeHandle } = useTa
*/
const deal = (row: any) => {
currentData.value = row
queryTask(row.taskId, false).then((res) => {
currentOpenFlowForm.value = res.data.formItems
taskDrawerVisible.value = true
})
taskDrawerVisible.value = true
}
// 清空搜索条件
@@ -118,13 +114,4 @@ const taskSubmitEvent = () => {
onMounted(() => {
getDataList()
})
const formValue = computed(() => {
const obj: any = {}
for (var item of currentOpenFlowForm.value) {
obj[item.id] = item.props.value
}
return obj
})
</script>