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>
@@ -133,8 +133,8 @@
<!-- 右侧抽屉 -->
<taskDrawer
v-model="taskDrawerVisible"
:process-id="currentData?.processId"
:current-data="currentData"
:current-open-flow-form="currentOpenFlowForm"
@task-submit-event="taskSubmitEvent"
/>
</div>
@@ -146,7 +146,6 @@ import * as walletRechargeApplyApi from "/@/api/wallet/wallet-recharge-apply"
import { useMessage, useMessageBox } from "/@/hooks/message"
import { useDict } from "/@/hooks/dict"
import { ElLoading } from "element-plus"
import { queryTask } from "/@/api/flow/task"
import taskDrawer from "/@/components/taskDrawer/index.vue"
const { push } = useRouter()
@@ -166,7 +165,6 @@ const selectObjs = ref([]) as any
const multiple = ref(true)
const taskDrawerVisible = ref<boolean>()
const currentData = ref()
const currentOpenFlowForm = ref()
const state: BasicTableProps = reactive<BasicTableProps>({
queryForm: {},
@@ -244,10 +242,7 @@ const handleDelete = async (ids: string[]) => {
*/
const deal = (row: any) => {
currentData.value = row
queryTask(row.processId, false).then((res) => {
currentOpenFlowForm.value = res.data.formItems
taskDrawerVisible.value = true
})
taskDrawerVisible.value = true
}
// 任务提交事件