|
@@ -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) {}
|
|
|
}
|
|
|
|
|
|
// 弹窗显隐
|