Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
e5b7d07b
Commit
e5b7d07b
authored
Jul 12, 2023
by
张耀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
优化逻辑
parent
acaaa56d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
3 deletions
+57
-3
src/page/main/ticket/business-ticket-manage/detail/index.vue
src/page/main/ticket/business-ticket-manage/detail/index.vue
+57
-3
No files found.
src/page/main/ticket/business-ticket-manage/detail/index.vue
View file @
e5b7d07b
...
...
@@ -46,6 +46,34 @@
</div>
<gap-title
:hasLine=
"true"
title=
"实例工单"
></gap-title>
<div>
<div
class=
"filter_list"
>
<div
class=
"filter_item"
>
<span
class=
"filter_title"
>
工单等级
</span>
<el-select
v-model=
"filter.order_level"
@
change=
"filterAction"
placeholder=
"请选择"
style=
"width: 160px"
>
<el-option
v-for=
"(item, index) in ticketLevelOptions"
:key=
"'order_level_options' + index"
:label=
"item"
:value=
"index"
>
</el-option>
</el-select>
</div>
<div
class=
"filter_item"
>
<span
class=
"filter_title"
>
状态
</span>
<el-select
v-model=
"filter.order_state"
@
change=
"filterAction"
placeholder=
"请选择"
style=
"width: 160px"
>
<el-option
v-for=
"(item, index) in statusOptions"
:key=
"'order_state_options' + index"
:label=
"item"
:value=
"index"
>
</el-option>
</el-select>
</div>
<div
class=
"right-action apaas_button"
>
<el-button
type=
"primary"
@
click=
"filterAction"
>
查询
</el-button>
<el-button
type=
"default"
@
click=
"filterClear"
>
重置
</el-button>
</div>
</div>
<bg-table
ref=
"ticket_table"
:headers=
"ticketHeaders"
...
...
@@ -90,7 +118,7 @@
</template>
<
script
setup
>
import
{
onBeforeMount
,
ref
}
from
"
vue
"
;
import
{
nextTick
,
onBeforeMount
,
reactive
,
ref
}
from
"
vue
"
;
import
bgBreadcrumb
from
"
@/components/bg-breadcrumb.vue
"
;
import
Info
from
"
@/components/warn-detail/info.vue
"
;
import
gapTitle
from
"
@/components/gap-title.vue
"
;
...
...
@@ -103,8 +131,8 @@ import { dateStringToDate } from "@/components/env";
const
route
=
useRoute
();
const
{
id
}
=
route
.
query
;
const
router
=
useRouter
();
const
ticketLevelOptions
=
[
""
,
"
紧急任务
"
,
"
重要任务
"
,
"
一般任务
"
];
const
statusOptions
=
[
""
,
"
待处置
"
,
"
已完成
"
,
"
已关闭
"
];
const
ticketLevelOptions
=
[
"
全部
"
,
"
紧急任务
"
,
"
重要任务
"
,
"
一般任务
"
];
const
statusOptions
=
[
"
全部
"
,
"
待处置
"
,
"
已完成
"
,
"
已关闭
"
];
const
timeStateOptions
=
[
"
禁用
"
,
"
启用
"
];
const
weekDayOptions
=
{
1
:
"
周一
"
,
...
...
@@ -115,6 +143,10 @@ const weekDayOptions = {
6
:
"
周六
"
,
7
:
"
周日
"
,
};
const
filter
=
reactive
({
order_level
:
0
,
order_state
:
0
,
});
const
labelData
=
[
[
{
...
...
@@ -293,8 +325,18 @@ const changePage = (p) => {
page
.
value
=
p
;
getOrderLists
();
};
const
filterAction
=
async
()
=>
{
await
nextTick
();
getOrderLists
();
};
const
filterClear
=
()
=>
{
filter
.
order_level
=
0
;
filter
.
order_state
=
0
;
getOrderLists
();
};
const
getOrderLists
=
()
=>
{
const
params
=
{
...
filter
,
id
,
page
:
page
.
value
,
page_size
:
page_size
.
value
,
...
...
@@ -368,6 +410,18 @@ onBeforeMount(() => {
display
:
flex
;
align-items
:
center
;
}
.filter_list
{
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-end
;
margin-bottom
:
16px
;
.filter_item
{
margin-bottom
:
0
;
}
.filter_title
{
width
:
auto
;
}
}
}
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment