Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
海康威视
web-project
Commits
e78f8f67
Commit
e78f8f67
authored
Aug 08, 2024
by
xuke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://gitlab.91isoft.com:10022/hikvision/web-project
parents
ff08c5c5
7ed9fbec
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
126 additions
and
101 deletions
+126
-101
AnnualParamPage.vue
src/views/SchedulingPage/AnnualParamPage.vue
+115
-99
PhenomenonPage.vue
src/views/SchedulingPage/PhenomenonPage.vue
+11
-2
No files found.
src/views/SchedulingPage/AnnualParamPage.vue
View file @
e78f8f67
This diff is collapsed.
Click to expand it.
src/views/SchedulingPage/PhenomenonPage.vue
View file @
e78f8f67
...
...
@@ -4,6 +4,7 @@ import {ElMessageBox} from "element-plus";
import
{
getPhenomenon
,
addPhenomenon
,
alterPhenomenon
,
deletePhenomenon
}
from
"@/api/scheduling.js"
const
data
=
ref
()
const
dataBackup
=
ref
([])
const
searchKey
=
ref
(
''
)
// 查询参数
const
reviseWindowOpen
=
ref
(
false
)
const
addWindowOpen
=
ref
(
false
)
...
...
@@ -39,6 +40,13 @@ function omit(val){
})
}).
catch
(
err
=>
{})
}
// 删除按钮单击事件
function
search
(){
if
(
!
searchKey
.
value
){
getData
()
}
else
{
data
.
value
=
dataBackup
.
value
.
filter
(
item
=>
item
.
phenomenonName
.
includes
(
searchKey
.
value
)
)
}
}
function
handleClose
(){
reviseWindowOpen
.
value
=
false
addWindowOpen
.
value
=
false
...
...
@@ -72,6 +80,7 @@ onMounted(()=>{
function
getData
(){
getPhenomenon
().
then
(
res
=>
{
data
.
value
=
res
.
data
dataBackup
.
value
=
[...
data
.
value
]
})
}
</
script
>
...
...
@@ -81,10 +90,10 @@ function getData(){
<el-row>
<el-col
:span=
"8"
label
>
名称:
</el-col>
<el-col
:span=
"16"
>
<el-input
v-model=
"searchKey"
/>
<el-input
clearable
v-model=
"searchKey"
/>
</el-col>
</el-row>
<el-button
type=
"primary"
class=
"add-search-btn"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"search"
class=
"add-search-btn"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"add"
class=
"add-search-btn"
>
新增
</el-button>
</div>
<div
class=
"table-wrapper"
>
...
...
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