Skip to content

Commit 9d8e06a

Browse files
committed
Merge branch 'feature/bpm' of https://gitee.com/tuituji111/yudao-ui-admin-vue3 into feature/bpm
# Conflicts: # src/views/bpm/processInstance/index.vue
2 parents 929b67b + f125df7 commit 9d8e06a

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

src/views/bpm/processInstance/index.vue

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@
2626

2727
<!-- TODO @ tuituji:style 可以使用 unocss -->
2828
<el-form-item label="" prop="category" :style="{ position: 'absolute', right: '130px' }">
29-
<!-- TODO @tuituji:应该选择好分类,就触发搜索啦。 -->
29+
<!-- TODO @tuituji:应该选择好分类,就触发搜索啦。 RE:done & to check-->
3030
<el-select
3131
v-model="queryParams.category"
3232
placeholder="请选择流程分类"
3333
clearable
3434
class="!w-155px"
35+
@change="handleQuery"
3536
>
3637
<el-option
3738
v-for="category in categoryList"
@@ -42,21 +43,20 @@
4243
</el-select>
4344
</el-form-item>
4445

45-
<!-- 高级筛选 -->
46-
<!-- TODO @ tuituji:style 可以使用 unocss -->
4746
<el-form-item :style="{ position: 'absolute', right: '0px' }">
48-
<el-button v-popover="popoverRef" v-click-outside="onClickOutside" :icon="List">
49-
高级筛选
50-
</el-button>
5147
<el-popover
52-
ref="popoverRef"
53-
trigger="click"
54-
virtual-triggering
48+
:visible="showPopover"
5549
persistent
5650
:width="400"
5751
:show-arrow="false"
5852
placement="bottom-end"
5953
>
54+
<template #reference>
55+
<el-button @click="showPopover = !showPopover" >
56+
<Icon icon="ep:plus" class="mr-5px" />高级筛选
57+
</el-button>
58+
59+
</template>
6060
<el-form-item label="流程发起人" class="bold-label" label-position="top" prop="category">
6161
<el-select
6262
v-model="queryParams.category"
@@ -112,8 +112,13 @@
112112
class="!w-240px"
113113
/>
114114
</el-form-item>
115+
<el-form-item class="bold-label" label-position="top">
116+
<el-button @click="handleQuery"> 确认</el-button>
117+
<el-button @click="showPopover = false"> 取消</el-button>
118+
<el-button @click="resetQuery"> 清空</el-button>
119+
</el-form-item>
115120
</el-popover>
116-
<!-- TODO @tuituji:这里应该有确认,和取消、清空搜索条件,三个按钮。 -->
121+
<!-- TODO @tuituji:这里应该有确认,和取消、清空搜索条件,三个按钮。 RE:done & to check-->
117122
</el-form-item>
118123
</el-form>
119124
</ContentWrap>
@@ -130,7 +135,7 @@
130135
fixed="left"
131136
/>
132137
<!-- TODO @芋艿:摘要 -->
133-
<!-- TODO @tuituji:流程状态。可见需求文档里 -->
138+
<!-- TODO @tuituji:流程状态。可见需求文档里 Re:没看懂-->
134139
<el-table-column label="流程状态" prop="status" width="120">
135140
<template #default="scope">
136141
<dict-tag :type="DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS" :value="scope.row.status" />
@@ -198,8 +203,6 @@
198203
</ContentWrap>
199204
</template>
200205
<script lang="ts" setup>
201-
// TODO @tuituji:List 改成 <Icon icon="ep:plus" class="mr-5px" /> 类似这种组件哈。
202-
import { List } from '@element-plus/icons-vue'
203206
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
204207
import { dateFormatter } from '@/utils/formatTime'
205208
import { ElMessageBox } from 'element-plus'
@@ -241,6 +244,8 @@ const getList = async () => {
241244
}
242245
}
243246
247+
const showPopover = ref(false)
248+
244249
/** 搜索按钮操作 */
245250
const handleQuery = () => {
246251
queryParams.pageNo = 1
@@ -299,7 +304,7 @@ const handleCancel = async (row) => {
299304
}
300305
301306
// TODO @tuituji:这个 import 是不是没用哈?
302-
import { ClickOutside as vClickOutside } from 'element-plus'
307+
// import { ClickOutside as vClickOutside } from 'element-plus'
303308
304309
// TODO @tuituji:onClickAdvancedSearch。方法名叫这个,会更好一些哇?打开高级搜索。
305310
const popoverRef = ref()

0 commit comments

Comments
 (0)