|
@@ -25,7 +25,8 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
<!-- TODO @ tuituji:style 可以使用 unocss -->
|
|
|
- <el-form-item label="" prop="category" :style="{ position: 'absolute', right: '130px' }">
|
|
|
+ <el-form-item label="" prop="category" :style="{ position: 'absolute', right: '300px' }">
|
|
|
+ <!-- TODO @tuituji:应该选择好分类,就触发搜索啦。 RE:done & to check-->
|
|
|
<el-select
|
|
|
v-model="queryParams.category"
|
|
|
placeholder="请选择流程分类"
|
|
@@ -42,6 +43,25 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
+ <el-form-item label="" prop="status" :style="{ position: 'absolute', right: '130px' }">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.status"
|
|
|
+ placeholder="请选择流程状态"
|
|
|
+ clearable
|
|
|
+ class="!w-155px"
|
|
|
+ @change="handleQuery"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in getIntDictOptions(DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS)"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <!-- 高级筛选 -->
|
|
|
+ <!-- TODO @ tuituji:style 可以使用 unocss -->
|
|
|
<el-form-item :style="{ position: 'absolute', right: '0px' }">
|
|
|
<el-popover
|
|
|
:visible="showPopover"
|
|
@@ -51,9 +71,10 @@
|
|
|
placement="bottom-end"
|
|
|
>
|
|
|
<template #reference>
|
|
|
- <el-button @click="showPopover = !showPopover">
|
|
|
- <Icon icon="ep:plus" class="mr-5px" />高级筛选
|
|
|
+ <el-button @click="showPopover = !showPopover" >
|
|
|
+ <Icon icon="ep:plus" class="mr-5px" />高级筛选
|
|
|
</el-button>
|
|
|
+
|
|
|
</template>
|
|
|
<el-form-item label="流程发起人" class="bold-label" label-position="top" prop="category">
|
|
|
<el-select
|
|
@@ -84,21 +105,6 @@
|
|
|
class="!w-390px"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="流程状态" class="bold-label" label-position="top" prop="status">
|
|
|
- <el-select
|
|
|
- v-model="queryParams.status"
|
|
|
- placeholder="请选择流程状态"
|
|
|
- clearable
|
|
|
- class="!w-390px"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="dict in getIntDictOptions(DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS)"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
<el-form-item label="发起时间" class="bold-label" label-position="top" prop="createTime">
|
|
|
<el-date-picker
|
|
|
v-model="queryParams.createTime"
|
|
@@ -111,11 +117,12 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item class="bold-label" label-position="top">
|
|
|
- <el-button @click="resetQuery"> 清空</el-button>
|
|
|
+ <el-button @click="handleQuery"> 确认</el-button>
|
|
|
<el-button @click="showPopover = false"> 取消</el-button>
|
|
|
- <el-button @click="handleQuery" type="primary"> 确认</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-popover>
|
|
|
+ <el-button @click="resetQuery"> 清空</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-popover>
|
|
|
+ <!-- TODO @tuituji:这里应该有确认,和取消、清空搜索条件,三个按钮。 RE:done & to check-->
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</ContentWrap>
|
|
@@ -132,7 +139,7 @@
|
|
|
fixed="left"
|
|
|
/>
|
|
|
<!-- TODO @芋艿:摘要 -->
|
|
|
- <!-- TODO @tuituji:流程状态。可见需求文档里 Re:没看懂;回复:1)就是审批中的时候,展示审批人;2)审批结束的时候,就展示状态 -->
|
|
|
+ <!-- TODO @tuituji:流程状态。可见需求文档里 Re:没看懂-->
|
|
|
<el-table-column label="流程状态" prop="status" width="120">
|
|
|
<template #default="scope">
|
|
|
<dict-tag :type="DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS" :value="scope.row.status" />
|
|
@@ -200,6 +207,7 @@
|
|
|
</ContentWrap>
|
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
|
+// TODO @tuituji:List 改成 <Icon icon="ep:plus" class="mr-5px" /> 类似这种组件哈。 RE:done & to check
|
|
|
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
@@ -275,7 +283,7 @@ const handleCreate = async (row?: ProcessInstanceVO) => {
|
|
|
}
|
|
|
|
|
|
/** 查看详情 */
|
|
|
-const handleDetail = (row: any) => {
|
|
|
+const handleDetail = (row) => {
|
|
|
router.push({
|
|
|
name: 'BpmProcessInstanceDetail',
|
|
|
query: {
|
|
@@ -285,7 +293,7 @@ const handleDetail = (row: any) => {
|
|
|
}
|
|
|
|
|
|
/** 取消按钮操作 */
|
|
|
-const handleCancel = async (row: any) => {
|
|
|
+const handleCancel = async (row) => {
|
|
|
// 二次确认
|
|
|
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
|
|
|
confirmButtonText: t('common.ok'),
|
|
@@ -300,6 +308,15 @@ const handleCancel = async (row: any) => {
|
|
|
await getList()
|
|
|
}
|
|
|
|
|
|
+// TODO @tuituji:这个 import 是不是没用哈?
|
|
|
+// import { ClickOutside as vClickOutside } from 'element-plus'
|
|
|
+
|
|
|
+// TODO @tuituji:onClickAdvancedSearch。方法名叫这个,会更好一些哇?打开高级搜索。
|
|
|
+const popoverRef = ref()
|
|
|
+const onClickOutside = () => {
|
|
|
+ unref(popoverRef).popperRef?.delayHide?.()
|
|
|
+}
|
|
|
+
|
|
|
/** 激活时 **/
|
|
|
onActivated(() => {
|
|
|
getList()
|