소스 검색

feat: 签出联调,去掉了checkbox, 右上角三个按钮待处理

luoyali 1 년 전
부모
커밋
06fed6bc8e
2개의 변경된 파일7개의 추가작업 그리고 8개의 파일을 삭제
  1. 6 7
      src/views/flow/group/components/historyProcessList.vue
  2. 1 1
      src/views/flow/group/components/listGroup.vue

+ 6 - 7
src/views/flow/group/components/historyProcessList.vue

@@ -51,7 +51,7 @@ const props = defineProps({
 })
 
 // 同步值
-const $myEmit = defineEmits(['update:modelValue'])
+const $myEmit = defineEmits(['update:modelValue', 'successFn'])
 
 // 关闭弹窗
 const closeDialog = () => {
@@ -63,7 +63,7 @@ const queryList = async () => {
 	const { options, searchParams } = tableOpts
 	options.loading = true
 	try {
-		const { records: list, total } = await process.pageHistoryListApi({...searchParams, data: { processId: props.processId } })
+		const { records: list, total } = await process.pageHistoryListApi({ ...searchParams, data: { processId: props.processId } })
 		tableOpts.total = total
 		tableOpts.list = list
 	} catch {
@@ -118,7 +118,7 @@ const { searchData, tableOpts, activeColumns, updateParams } = useTablePage(
 	{
 		options: {
 			showIndex: false,
-			defaultExpandAll: true
+			multipleSelect: false
 		},
 		// 需要展示的列
 		columns,
@@ -136,12 +136,11 @@ const { searchData, tableOpts, activeColumns, updateParams } = useTablePage(
 // 签出按钮操作
 const checkoutHistoryEv = async row => {
 	try {
-		await process.checkoutHistoryApi(row.processId)
+		await process.checkoutHistoryApi(row.id)
 		ElMessage({ message: '签出成功', type: 'success' })
 		closeDialog()
-	} catch (e) {
-		ElMessage({ message: '签出失败', type: 'error' })
-	}
+		$myEmit('successFn')
+	} catch (e) {}
 }
 
 // 弹窗显隐

+ 1 - 1
src/views/flow/group/components/listGroup.vue

@@ -124,7 +124,7 @@
 		</draggable>
 
 		<!-- 历史流程签出 -->
-		<history-process-list v-if="visibleHistory" ref="historyDialog" v-model="visibleHistory" :process-id="currentProcessId"></history-process-list>
+		<history-process-list v-if="visibleHistory" ref="historyDialog" v-model="visibleHistory" :process-id="currentProcessId" @successFn="flowGroupListAll"></history-process-list>
 	</div>
 </template>