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
9264ee33
Commit
9264ee33
authored
Aug 14, 2024
by
裴文涛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.91isoft.com:90/hikvision/web-project
parents
d012103a
f502f925
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
68 additions
and
22 deletions
+68
-22
index.js
src/components/FormComponents/index.js
+3
-1
select.vue
src/components/FormComponents/select.vue
+5
-15
switchs.vue
src/components/FormComponents/switchs.vue
+19
-0
uploading.vue
src/components/FormComponents/uploading.vue
+20
-0
index.js
src/router/index.js
+2
-2
AlarmStatusPage.vue
src/views/AlarmPage/AlarmStatusPage.vue
+1
-1
InstantHeatPage.vue
src/views/SchedulingPage/InstantHeatPage.vue
+3
-3
formSchems.js
src/views/SmartNumbers/formSchems.js
+15
-0
No files found.
src/components/FormComponents/index.js
View file @
9264ee33
import
select
from
"./select.vue"
;
import
input
from
"./input.vue"
;
import
dateTimePicker
from
"./dateTimePicker.vue"
;
import
switchs
from
"./switchs.vue"
export
default
{
select
,
input
,
dateTimePicker
dateTimePicker
,
switchs
};
src/components/FormComponents/select.vue
View file @
9264ee33
<
script
setup
>
import
{
ref
}
from
"vue"
;
import
e
mitter
from
"@/utils/mitter"
;
import
mitter
from
"@/utils/mitter"
;
const
porps
=
defineProps
({
items
:
Object
,
prop
:
String
,
...
...
@@ -10,22 +10,12 @@ const value = ref("");
// 选择某一项之后触发changeVale事件
const
onChangeFirstValue
=
(
val
)
=>
{
e
mitter
.
emit
(
"changeVal"
,
{
name
:
porps
.
prop
,
value
:
value
.
value
});
mitter
.
emit
(
"changeVal"
,
{
name
:
porps
.
prop
,
value
:
value
.
value
});
};
</
script
>
<
template
>
<el-select
v-model=
"value"
:v-bind=
"items"
style=
"width: 100%;"
@
change=
"onChangeFirstValue(value)"
>
<el-option
v-for=
"item in items.options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
<el-select
v-model=
"value"
:v-bind=
"items"
style=
"width: 100%;"
@
change=
"onChangeFirstValue(value)"
>
<el-option
v-for=
"item in items.options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</
template
>
\ No newline at end of file
src/components/FormComponents/switchs.vue
0 → 100644
View file @
9264ee33
<
script
setup
>
import
mitter
from
"@/utils/mitter"
;
import
{
ref
}
from
"vue"
;
const
props
=
defineProps
({
items
:
Object
,
prop
:
String
,
});
const
value
=
ref
(
""
);
const
switchs
=
()
=>
{
mitter
.
emit
(
"changeVal"
,
{
name
:
props
.
prop
,
value
:
value
.
value
});
};
</
script
>
<
template
>
<el-switch
@
change=
"switchs"
v-model=
"value"
class=
"ml-2"
:v-bind=
"items"
style=
"--el-switch-on-color: #13ce66; --el-switch-off-color: #ff4949"
/>
</
template
>
src/components/FormComponents/uploading.vue
0 → 100644
View file @
9264ee33
<
script
setup
>
import
mitter
from
"@/utils/mitter"
;
import
{
ref
}
from
"vue"
;
const
props
=
defineProps
({
items
:
Object
,
prop
:
String
,
});
const
fileList
=
ref
(
""
);
const
upload
=
()
=>
{
mitter
.
emit
(
"changeVal"
,
{
name
:
props
.
prop
,
value
:
fileList
.
value
});
};
</
script
>
<
template
>
<el-upload
v-model:file-list=
"fileList"
class=
"upload-demo"
@
upload=
"upload"
v-bind=
"items"
action=
"https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15"
multiple
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:before-remove=
"beforeRemove"
:limit=
"3"
:on-exceed=
"handleExceed"
/>
</
template
>
src/router/index.js
View file @
9264ee33
...
...
@@ -404,8 +404,8 @@ const routes = [
{
path
:
"/Scheduling/EnergyManage"
,
name
:
"EnergyManagePage"
,
component
:
()
=>
import
(
"@/views/SmartNumbers/PipeTemperature.vue"
),
//
component: () => import("@/views/SchedulingPage/EnergyManagePage.vue"),
//
component: () => import("@/views/SmartNumbers/PipeTemperature.vue"),
component
:
()
=>
import
(
"@/views/SchedulingPage/EnergyManagePage.vue"
),
meta
:
{
title
:
"能源消耗"
,
},
...
...
src/views/AlarmPage/AlarmStatusPage.vue
View file @
9264ee33
...
...
@@ -105,7 +105,7 @@
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<td
style=
"text-align: left"
>
<el-input
style=
"width: 80%"
v-model=
"param.cnName"
></el-input>
<el-input
:disabled=
"true"
style=
"width: 80%"
v-model=
"param.cnName"
></el-input>
</td>
</tr>
</table>
...
...
src/views/SchedulingPage/InstantHeatPage.vue
View file @
9264ee33
...
...
@@ -8,7 +8,7 @@
<el-form
ref=
"formRef"
:rules=
"rules"
:model=
"List"
label-width=
"auto"
>
<table
v-loading=
"loading"
cellpadding=
"0"
cellspacing=
"1"
>
<tr>
<th
style=
"width: 25%"
>
计划名称
:
</th>
<th
style=
"width: 25%"
>
计划名称
</th>
<td
style=
"width: 60%; margin:0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
...
...
@@ -22,7 +22,7 @@
</td>
</tr>
<tr>
<th
style=
"width: 25%"
>
偏差百分比 (%)
:
</th>
<th
style=
"width: 25%"
>
偏差百分比 (%)
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
...
...
@@ -36,7 +36,7 @@
</td>
</tr>
<tr>
<th
style=
"width: 25%"
>
判断时间 (分)
:
</th>
<th
style=
"width: 25%"
>
判断时间 (分)
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
...
...
src/views/SmartNumbers/formSchems.js
View file @
9264ee33
...
...
@@ -116,4 +116,19 @@ export const schemas = ref([
timeFormat
:
"HH:mm:ss"
,
},
},
{
// label: "设备名称",
prop
:
"name"
,
type
:
"switchs"
,
colProps
:
{
xs
:
12
,
sm
:
12
,
md
:
12
,
lg
:
6
,
xl
:
6
,
},
componentProps
:
{
placeholder
:
"请输入设备名称"
,
},
}
]);
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