Commit 6f71c0b8 by lanyulei

feat: 工单筛选支持流程搜索。

parent d67b741d
{ {
"name": "vue-element-admin", "name": "ferry_web",
"version": "4.2.1", "version": "1.0.0",
"description": "A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features", "description": "A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features",
"author": "Pan <panfree23@gmail.com>", "author": "lanyulei<fdevops@163.com>",
"license": "MIT", "license": "LGPL-3.0",
"scripts": { "scripts": {
"dev": "vue-cli-service serve", "dev": "vue-cli-service serve",
"build:prod": "vue-cli-service build", "build:prod": "vue-cli-service build",
......
...@@ -54,6 +54,16 @@ ...@@ -54,6 +54,16 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="流程">
<el-select v-model="listQuery.process" placeholder="请选择流程" size="small" filterable clearable style="width: 230px" @change="getList">
<el-option
v-for="item in processValueList"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item>
<el-form-item label="优先级"> <el-form-item label="优先级">
<el-select v-model="listQuery.priority" placeholder="请选择优先级" size="small" clearable style="width: 130px" @change="getList"> <el-select v-model="listQuery.priority" placeholder="请选择优先级" size="small" clearable style="width: 130px" @change="getList">
<el-option label="一般" :value="1" /> <el-option label="一般" :value="1" />
...@@ -93,12 +103,14 @@ import { ...@@ -93,12 +103,14 @@ import {
} from '@/api/system/sysuser' } from '@/api/system/sysuser'
import { parseTime } from '@/utils' import { parseTime } from '@/utils'
import { processList } from '@/api/process/admin/process'
export default { export default {
name: 'WorkOrderSearch', name: 'WorkOrderSearch',
// eslint-disable-next-line vue/require-prop-types // eslint-disable-next-line vue/require-prop-types
props: ['genre'], props: ['genre'],
data() { data() {
return { return {
processValueList: [],
loading: false, loading: false,
timeValue: '', timeValue: '',
listQuery: {}, listQuery: {},
...@@ -132,6 +144,9 @@ export default { ...@@ -132,6 +144,9 @@ export default {
} }
} }
}, },
created() {
this.getProcessList()
},
methods: { methods: {
getList() { getList() {
if (this.timeValue === null || this.timeValue === undefined || this.timeValue === '') { if (this.timeValue === null || this.timeValue === undefined || this.timeValue === '') {
...@@ -150,6 +165,13 @@ export default { ...@@ -150,6 +165,13 @@ export default {
}).then(res => { }).then(res => {
this.UserOptions = res.data.list this.UserOptions = res.data.list
}) })
},
getProcessList() {
processList({
per_page: 999999
}).then(response => {
this.processValueList = response.data.data
})
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment