master
parent
5369221251
commit
dd86bb3af5
@ -0,0 +1,125 @@
|
||||
<template>
|
||||
<div>
|
||||
<vxe-modal
|
||||
title="批量审批"
|
||||
:z-index="zIndex"
|
||||
:value="isShow"
|
||||
@input="e => $emit('update:isShow', e)"
|
||||
:min-height="300"
|
||||
resize
|
||||
:width="defaultModalSize.sWidth"
|
||||
:height="defaultModalSize.sHeight"
|
||||
:fullscreen="$store.getters.device === 'mobile'"
|
||||
show-zoom
|
||||
draggable
|
||||
storage
|
||||
show-footer
|
||||
>
|
||||
<vxe-table
|
||||
ref="table"
|
||||
stripe
|
||||
keep-source
|
||||
show-overflow
|
||||
:column-config="{ resizable: true }"
|
||||
:print-config="{}"
|
||||
:export-config="{}"
|
||||
:row-config="{ keyField: 'id' }"
|
||||
:custom-config="{ mode: 'popup' }"
|
||||
:data="flows"
|
||||
>
|
||||
<vxe-column
|
||||
min-width="140"
|
||||
header-align="center"
|
||||
field="title"
|
||||
title="工作名称"
|
||||
></vxe-column>
|
||||
<vxe-column
|
||||
width="80"
|
||||
align="center"
|
||||
field="id"
|
||||
title="流水号"
|
||||
></vxe-column>
|
||||
<vxe-column
|
||||
width="80"
|
||||
title="发起人"
|
||||
align="center"
|
||||
field="creator.name"
|
||||
></vxe-column>
|
||||
<vxe-column
|
||||
width="80"
|
||||
title="承办人员"
|
||||
align="center"
|
||||
field="last_log.user.name"
|
||||
></vxe-column>
|
||||
<vxe-column
|
||||
header-align="center"
|
||||
min-width="120"
|
||||
field="custom_model.name"
|
||||
title="流程名称"
|
||||
></vxe-column>
|
||||
<vxe-column
|
||||
width="164"
|
||||
field="no"
|
||||
align="center"
|
||||
title="编号"
|
||||
></vxe-column>
|
||||
<vxe-column
|
||||
width="200"
|
||||
:visible="$route.params.type === 'all'"
|
||||
align="center"
|
||||
field="created_at"
|
||||
title="发起日期"
|
||||
:formatter="
|
||||
({ cellValue }) =>
|
||||
$moment(cellValue).format('YYYY-MM-DD HH:mm:ss')
|
||||
"
|
||||
:export-method="
|
||||
({ row, column, options }) =>
|
||||
$moment(row['created_at']).format('YYYY-MM-DD HH:mm:ss')
|
||||
"
|
||||
></vxe-column>
|
||||
</vxe-table>
|
||||
|
||||
<template #footer>
|
||||
<el-button type="primary" :loading="loading" @click="">确认</el-button>
|
||||
</template>
|
||||
</vxe-modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { PopupManager } from 'element-ui/lib/utils/popup'
|
||||
import { defaultModalSize } from "@/settings";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
isShow: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
flows: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
defaultModalSize,
|
||||
zIndex: PopupManager.nextZIndex(),
|
||||
}
|
||||
},
|
||||
methods: {},
|
||||
computed: {},
|
||||
watch: {
|
||||
isShow(newVal) {
|
||||
if (newVal) {
|
||||
this.zIndex = PopupManager.nextZIndex()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
</style>
|
||||
Loading…
Reference in new issue